upgrade discord.net package to >2.0.0-beta2-00944

I have recently noticed I'm not able to run the bot on a fresh environment.
build log:
+ dotnet publish -c Release -o /app
Microsoft (R) Build Engine version <IP_ADDRESS>72 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

/NadekoBot/src/NadekoBot/NadekoBot.csproj : warning NU1603: NadekoBot.Core depends on Discord.Net (>= 2.0.0-beta2-00937) but Discord.Net 2.0.0-beta2-00937 was not found. An approximate best match of Discord.Net 2.0.0-beta2-00944 was resolved.
/NadekoBot/NadekoBot.Core/NadekoBot.Core.csproj : warning NU1603: NadekoBot.Core depends on Discord.Net (>= 2.0.0-beta2-00937) but Discord.Net 2.0.0-beta2-00937 was not found. An approximate best match of Discord.Net 2.0.0-beta2-00944 was resolved. [/NadekoBot/src/NadekoBot/NadekoBot.csproj]
  Restore completed in 53.18 ms for /NadekoBot/src/NadekoBot/NadekoBot.csproj.
  Restore completed in 53.34 ms for /NadekoBot/NadekoBot.Core/NadekoBot.Core.csproj.
/NadekoBot/src/NadekoBot/NadekoBot.csproj : warning NU1603: NadekoBot.Core depends on Discord.Net (>= 2.0.0-beta2-00937) but Discord.Net 2.0.0-beta2-00937 was not found. An approximate best match of Discord.Net 2.0.0-beta2-00944 was resolved.
/NadekoBot/NadekoBot.Core/NadekoBot.Core.csproj : warning NU1603: NadekoBot.Core depends on Discord.Net (>= 2.0.0-beta2-00937) but Discord.Net 2.0.0-beta2-00937 was not found. An approximate best match of Discord.Net 2.0.0-beta2-00944 was resolved.
  NadekoBot.Core -> /NadekoBot/NadekoBot.Core/bin/Release/netcoreapp2.1/NadekoBot.Core.dll
  NadekoBot -> /NadekoBot/src/NadekoBot/bin/Release/netcoreapp2.1/NadekoBot.dll
  NadekoBot -> /app/

nadeko output:
nadeko_1  | 2018-10-01T13:37:17.869851397Z -1 15:37:17 ShardsCoordinator | Shard 0 is scheduled for a restart because it's unresponsive.
nadeko_1  | 2018-10-01T13:37:20.784679070Z -1 15:37:20 ShardsCoordinator | Auto-restarting shard 0, 1 more in queue.
nadeko_1  | 2018-10-01T13:37:24.227425585Z
nadeko_1  | 2018-10-01T13:37:24.243242820Z Unhandled Exception: System.MissingMethodException: Method not found: 'System.Threading.Tasks.Task`1<Discord.IUserMessage> Discord.IMessageChannel.SendFileAsync(System.String, System.String, Boolean, Discord.Embed, Discord.RequestOptions)'.
nadeko_1  | 2018-10-01T13:37:24.243261760Z    at Discord.WebSocket.ClientState..ctor(Int32 guildCount, Int32 dmChannelCount)
nadeko_1  | 2018-10-01T13:37:24.243264694Z    at Discord.WebSocket.DiscordSocketClient..ctor(DiscordSocketConfig config, DiscordSocketApiClient client, SemaphoreSlim groupLock, DiscordSocketClient parentClient)
nadeko_1  | 2018-10-01T13:37:24.243267067Z    at NadekoBot.NadekoBot..ctor(Int32 shardId, Int32 parentProcessId) in /NadekoBot/NadekoBot.Core/Services/NadekoBot.cs:line 80
nadeko_1  | 2018-10-01T13:37:24.243269320Z    at NadekoBot.Program.Main(String[] args) in /NadekoBot/src/NadekoBot/Program.cs:line 15
nadeko_1  | 2018-10-01T13:37:24.243272327Z    at NadekoBot.Program.<Main>(String[] args)

It seems the Discord beta repository does not contains the package Discord.Net 2.0.0-beta2-00937 anymore.
This update ensures all Discord.* package are at the same version.
I've choosen v998 as it's the last available version.

With the build logs from here and from #2596, it seems the beta repository si regularly clean up to only let like the 50 last versions online.

Thanks


Drop-in LuaJIT replacement in place of Lua 5.4

Description
This PR replaces vanilla Lua 5.4 (from LuaRaw dep) with LuaJIT, hoping to provide large performance improvements, and advanced functionality with FFI to, e.g., access raw game/process memory, interact with C datatypes, and load and use external C libraries (that does not need to be (re-)built for Lua).
A compatibility layer is also made to emplace Lua 5.4 functions that are not present in Lua 5.2/LuaJIT, some implementing similar functionality, some as workarounds, some as no-ops. So being a drop-in replacement, it probably can't ensure 100% compatibility with the Lua 5.4 API, which may cause issues with UE4SS - but so far I have not seen any (yet).
OpenResty's LuaJIT branch is used instead of upstream to make use of tagged releases (upstream rolling release tag does not refer to a single commit throughout time), and this also probably ensures a bit of stability. Xrepo packages for upstream/openresty LuaJIT exist but they seem to be meant for old versions of LuaJIT 2.1.0b3, so I ported over the scripts and modified it to work with current versions.
Also added __tostring metamethods to UE4SS objects, since printing them with the current LuaJIT replacement does not print as it used to anymore (they only appear like userdata: 0x07ffd3adb33f09a0). Now they should print with more detailed type info (subtype, etc. along with address), see screenshots.
Obviously, Lua 5.3+ syntax won't work anymore, like bitwise operators, and 5.4's <const> markers. (Changed ConsoleCommandsMod to use the bit library from LuaJIT instead). Other than that, existing Lua scripts should work fine.
As mentioned, JIT should help with performance, and FFI would allow for easily loading C libraries without the need to do it through the Lua C API, among other things. An example usage is shown under screenshots, where a UE4SS Lua script creates a local web server using libmicrohttpd via FFI.
So far seems to work with two games I tested this on. UE4SS functions work, script reloading works, callbacks seem to be fine too. But I have done extensive testing for everything Lua, hence:

[!IMPORTANT]
This PR is a DRAFT as it has not seen extensive testing yet and is likely to break obvious and non-obvious things. Testing would be much appreciated.

Type of change

[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?
Haven't done detailed testing for compat aside from using the same Lua mods (base and custom) on the JIT build. UE4SS functions seem to work fine. Tested FFI functionality, and the __tostring metamethods for some UE4SS objects.
Checklist

[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation.
[ ] I have added the necessary description of this PR to the changelog, and I have followed the same format as other entries.
[ ] Any dependent changes have been merged and published in downstream modules.

Screenshots

Screenshots
__tostring metamethods addition - Source

webserver FFI usage demo - Source - (video may be flashing a bit)
https://github.com/user-attachments/assets/32694b96-abdd-4a5a-852d-eeac8d211648

What caused the difference?

Lua 5.4 introduced the __name metatable key, which "When it contains a string, may be used by tostring and in error messages." This gets set when lua.new_metatable (from LuaMadeSimple) is called with metatable_name, which contains the type string, and it then gets used when the object is passed to Lua print/tostring/(anything that coerces the type to string). It's what puts the 'UObject' in UObject: 07FFD3ADB33F09A0
Of course, LuaJIT being based on 5.2, does not have that; instead, the __tostring metamethod for it is used to produce similar results.

Do we want more detailed type info when printing to string?

It's optional, but as I'm already composing the string anyway to bring back the functionality, putting in more info doesn't sound bad - it's mostly used for debugging after all (i.e., printing them). I don't think anyone would be reliant on its tostring behavior, and if they do, they should just use :type() and :GetAddress() (the address in vanilla Lua UE4SS tostring isn't even the underlying Unreal object's address, it's the address of the Lua object itself - i.e.:
local ksl = StaticFindObject("/Script/Engine.Default__KismetSystemLibrary")
print(tostring(ksl))
print(("%016X"):format(ksl:GetAddress()))

will print different addresses for vanilla UE4SS.)
(P.S. I forgot to mention that this __tostring change will also print the underlying object's address, the same as what :GetAddress() gives, for convenience. I don't think the address of the Lua object itself is useful anyway)

Don't we just want the string so we can operate on it as an exact string?

I'm not sure what you're referring to here, but if you're talking about UObject :ToString(), no, that's not touched by this. Its behavior should remain the same even with this change.

Can you please pull latest main into your branch and resolve conflicts, I would like to test it.

Can you please pull latest main into your branch and resolve conflicts, I would like to test it.

Rebased.

In case you're still working on it. Want to report my initial feedback.
First thing that I've noticed that simply using the build from this branch with all my mods crashes my game (Abiotic Factor) pretty fast.
I'm now trying to enable mods one by one too see what causes it.
Obviously Lua 5.3 and up features doesn't work, for example string.pack, which I used in one of my function, but it's not important for any of my mods yet.
The first thing that I've found is that my mod that runs in an infinite LoopAsync and uses json.lua crashes the game randomly after a while without any crash dumps.
But I couldn't pin point it. It happens one time, another time it doesn't happen. I commented something out, no crash, then I comment it back in, also no crash. Then I restart the game again and it crashes.
I tried to restart the game after each my code changes to be sure.
For now I'll move to other less complex mod to test them.

After a while I got error:
[18:01:42.4137924] Error: [Lua::call_function] lua_pcall returned [process_lua_function] The lua state '0x1b130ccb788' has no instance inside lua_instances unordered map
stack traceback:
	[C]: in function '__index'
	...in64\ue4ss\Mods\MyPlayground\Scripts\AFUtils\AFUtils.lua:334: in function 'GetMyPlayer'
	...\Binaries\Win64\ue4ss\Mods\MyPlayground\scripts\main.lua:323: in function <...\Binaries\Win64\ue4ss\Mods\MyPlayground\scripts\main.lua:322>

AFUtils.lua:334 is if PlayerCache and PlayerCache:IsValid() then This never happened before with normal UE4SS.
The JIT version will need a LOT of testing to make sure that nothing breaks on the lua stack.

I suspect any issues with it would most likely be from weird race conditions due to it being much faster. Ideally we'd somehow pull back in the lua jit/sol branch because that was much more stable than our current lua bindings.


Fix for yearly intervals not getting default offsets from the start date if none present

May only be required in tandem with #20

This was partially fixed, I added the bymonthdays. Thanks!


no_space_left_on_device

Describe the bug
A clear and concise description of what the bug is.
unaccepted status code found: 422 expected: [202], MeilisearchApiError Message: Meilisearch cannot receive write operations because the limit of the task database has been reached. Please delete tasks to continue performing write operations., Code: no_space_left_on_device, Type: system, Link: https://docs.meilisearch.com/errors#no_space_left_on_device (path "POST /indexes/jishuwz/documents" with method "AddDocuments")
Screenshots
If applicable, add screenshots to help explain your problem.

Meilisearch version:
[e.g. v1.1.1]

First the disk ran out, then it was cleaned up, and it still couldn't be stored

Always be 20  GetTasks

I finally figured out that's what's causing it

Hi @yongheng0911 that's great 🎉 I'm delighted to see you figured it out. I'm not sure I fully understand how you got there 🤔 would you mind expanding/explaining further? Just for information purposes, if you have time.
Thanks!
Gillian


spec.domain.devices.interfaces.tftpServerName in body is a forbidden property

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

/kind bug
What happened:
I am trying to PXE boot using the spec 'spec.domain.devices.interfaces.tftpServerName' in the VM yaml file.
I am trying to use similar to snippet below in my yaml file.  I provide the TFTP server IP address and grubx64.efi file to bootFileName.
https://kubevirt.io/user-guide/#/creation/interfaces-and-networks
devices:
  interfaces:
    - name: default
      masquerade: {}
      bootFileName: default_image.bin
      tftpServerName: tftp.example.com
      bootOrder: 1   # attempt to boot from an external tftp server

but I am getting error the spec 'spec.domain.devices.interfaces.tftpServerName' and 'spec.domain.devices.interfaces.bootFileName'
The request is invalid:

: spec.domain.devices.interfaces.tftpServerName in body is a forbidden property
: spec.domain.devices.interfaces.bootFileName in body is a forbidden property

What you expected to happen:
I expected VM to pxe boot using the boot files saved at /var/lib/tftpboot/ on the tftp server.
How to reproduce it (as minimally and precisely as possible):

Configure TFTP server to serve OS images and boot file.
Add the section in the VM spec file with the appropriate values.

devices:
  interfaces:
    - name: default
      masquerade: {}
      bootFileName: default_image.bin
      tftpServerName: tftp.example.com
      bootOrder: 1   # attempt to boot from an external tftp server

Try to apply the spec file.
$ kubectl apply -f vm.yaml

Anything else we need to know?:
Environment:

KubeVirt version (use virtctl version):
Not using virctl as PXE booting.
Kubernetes version (use kubectl version):
v1.16.8
VM or VMI specifications:
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release): Centos 7.6
Kernel (e.g. uname -a): 3.10.0-957.el7.x86_64
Install tools:
Others:

@sanzende thank you for the report. It seems like our user-guide is not accurate here. I think it should look like this:
devices:
  interfaces:
    - name: default
      masquerade: {}
      bootOrder: 1   # attempt to boot from an external tftp server
      dhcpOptions:
        bootFileName: default_image.bin
        tftpServerName: tftp.example.com

Note the dhcpOptions subsection.

Thanks much Roman. It indeed moved forward and I do not see this forbidden error but in the config setup of ipxe client I can see the bootfilename that I mentioned in the spec file but I do not see the value of tftpservername in the next-server details in the ipxe config.

Could you execute commands similar to what we do in this test to check the dhcp offer from inside your guest: https://github.com/kubevirt/kubevirt/blob/38cacd56078e1946536d5a217c3e624113458d44/tests/vmi_networking_test.go#L554 and check if the tftp server is offered?


no sensor values and time out on register 0x..

When I check the AlthermaSensors in Home Assistant I only get
WifiRSSI: -35dBm
FreeMem: 255472
friendly_name: AlthermaSensors

when I check the mqtt logs I get a lot of:
Message 7 received on espaltherma/log at 9:58 PM:

QoS: 0 - Retain: false
Message 6 received on espaltherma/log at 9:58 PM:
Retrying...
QoS: 0 - Retain: false
Message 5 received on espaltherma/log at 9:58 PM:
Time out! Check connection
QoS: 0 - Retain: false
Message 4 received on espaltherma/log at 9:58 PM:
Querying register 0x21...
QoS: 0 - Retain: false
Message 3 received on espaltherma/log at 9:58 PM:
0xf9 0xfa
QoS: 0 - Retain: false
Message 2 received on espaltherma/log at 9:58 PM:
ERR: Time out on register 0x20! got 2/12 bytes
QoS: 0 - Retain: false
Message 1 received on espaltherma/log at 9:58 PM:
Querying register 0x20...
QoS: 0 - Retain: false
Message 0 received on espaltherma/LWT at 9:58 PM:
Online
QoS: 0 - Retain: true

there is a common ground
I am using config ALTHERMA(LT_CA_CB_04-08KW).h
my device is EHVX08S23EJ9W

I was using the x9 port instead op x10. Will open a different issue discussing models without x10 port.


types-aiobotocore[s3] requires boto3

Describe the bug
Generated types_aiobotocore_s3/client.py on line 27 looks like:
from boto3.s3.transfer import TransferConfig

which obviously leads to ImportError as far as boto3 is not required for either aiobotocore or types-aiobotocore packages.
(seems to be it's accidental import as far as none of boto3 should be used here :thinking:)
To Reproduce
Steps to reproduce the behavior:
~/.pyenv/versions/3.12.4/bin/python -m venv venv
source venv/bin/activate

pip install types-aiobotocore[s3] aiobotocore

python -c "import types_aiobotocore_s3"

Actual output
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/.../Temp/venv/lib/python3.12/site-packages/types_aiobotocore_s3/__init__.py", line 49, in <module>
    from .client import S3Client
  File "/home/.../Temp/venv/lib/python3.12/site-packages/types_aiobotocore_s3/client.py", line 27, in <module>
    from boto3.s3.transfer import TransferConfig
ModuleNotFoundError: No module named 'boto3'

Additional context
Your OS, types-boto3 installation method, boto3 version, etc.
Os: 6.1.112-1-MANJARO / Ubuntu 22/23/24 / Amazon Linux 2
Installation method: pip / uv
Pip freeze:
aiobotocore==2.16.1
aiohappyeyeballs==2.4.4
aiohttp==3.11.11
aioitertools==0.12.0
aiosignal==1.3.2
attrs==24.3.0
botocore==1.35.88
botocore-stubs==1.35.88
frozenlist==1.5.0
idna==3.10
jmespath==1.0.1
multidict==6.1.0
propcache==0.2.1
python-dateutil==2.9.0.post0
six==1.17.0
types-aiobotocore==2.16.1
types-aiobotocore-s3==2.16.1
types-awscrt==0.23.6
urllib3==2.3.0
wrapt==1.17.0
yarl==1.18.3

Thank you for the bug report. Yes, imports in client.pyi/py should use try-expect fallback. I will fix it in the upcoming release.

Fixed in the latest release: https://github.com/youtype/mypy_boto3_builder/releases/tag/8.7.1
Please update and let me know if it works as expected.

@vemel, it works for me, thanks for quick fix :heart:


a weird problem with promise-type check

TypeScript Version:  3.9.2

Search Terms: promise
Code
type FuncType = () => boolean | Promise<boolean>

function imok(fn: FuncType) {
    const flag = fn()
    if (typeof flag === 'boolean') {
        flag  // flag is boolean
    } else {
        flag  // flag is Promise<boolean>
    }
}

function imconfused(fn: FuncType) {
    const flag = fn()
    if (Promise.resolve(flag) === flag) {
        flag  // flag is Promise<boolean>
    } else {
        flag  // flag is boolean | Promise<boolean> . so i'm confused.
    }
}

Expected behavior:
function imconfused(fn: FuncType) {
    const flag = fn()
    if (Promise.resolve(flag) === flag) {
        flag  // flag is Promise<boolean>
    } else {
        flag  // flag is boolean
    }
}

Actual behavior:
function imconfused(fn: FuncType) {
    const flag = fn()
    if (Promise.resolve(flag) === flag) {
        flag  // flag is Promise<boolean>
    } else {
        flag  // flag is boolean | Promise<boolean> . so i'm confused.
    }
}

Playground Link:
click me
Related Issues:
Haven't found one.

While we know that Promise.resolve passes through the original value if it's a promise, the type-checker doesn't.
In the positive case, we can narrow the type to Promise<boolean>, but in the negative case, it would be bad to narrow the Promise<boolean> type out based on object identity. We only do this when we have singleton types.
The relevant code in the compiler is narrowTypeByEquality.

Thanks! Got it. 👍


Remove CSRA 'no' image

The allowed flags do not include 'no'.
Currently they can only be: high, standard & unknown.

:art:


The project isn't running!

The project isn't starting, do I need to install some more packages to run the package!

Thanks for taking time contrbuting to the project! I hope you have triggered some issue while using project! Do not worry, we will resolve it as soon as possible! Also, you can check out other issues if you want more help!

You need to install Microsoft VSC Build Tools into the VSCode Software to run this project and enable speech recognition!  I hope you're issue has been resolved!


File Size Limit

Hi! I have a question.
is there any way to define the size limits for the files sent in chat?
Thank you.

No, but I will add this shortly

Actually, this needs to be implemented on your side.
The sendMessage event gives a file object with its size.
This is where you can show some popup if the size is too big.


Automatically resized feeds in list

The thumbnails are currently fixed at 100px wide. The plan has always being to have them automatically adjusted between 126 and 80 pixels, based on the available space. With the current flex box, that should be very easy to implement using only css with the min-width and max-width properties. The problem is that those properties, that work as expected with figures containing images, doesn't seem to work with videos.
Two options:

CSS based solution. Not sure if it's possible but maybe we can force the videos to act as images and allow the resizing.
JS solution, use this method https://github.com/jangouts/jangouts/blob/master/src/app/components/videochat/jh-video-chat.directive.js#L146 to resize the thumbnails to one of these predefined widths: 80, 96, 112, 126.

After some css with flexbox, I'd say a CSS solution is not possible. Not because the use of video tags, it's even impossible with images. Flex boxes only take into account the main axis when deciding the size of the elements, and we need to take both into account.


Cast to Open Generic

Here is test case:
using System;

public interface Interface1<T>
{

}

public interface Interface2<T>
{

}

public class GenericClass<T> : Interface1<T>, Interface2<T>
{
    public bool Test(Interface1<T> input)
    {
        var asInterface2 = input as Interface2<T>;
        if (asInterface2 != null)
        {
            return this == asInterface2;
        }
        return false;
    }
}

public static class Program {
    public static void Main (string[] args) {
        var instance = new GenericClass<object>();
        Console.WriteLine(instance.Test(instance) ? "True" : "False");
    }
}

And here is translation of Test function:
  function GenericClass$b1_Test (input) {
    var asInterface2 = $asm00.Interface2$b1.Of($thisType.T.get(this)).$As(input);
    return ((asInterface2 !== null) && (this === $thisType.$Cast(asInterface2)));
  };

JSIL tries to cast object to $thisType, but $thisType is open generic. Bad news is that ILSpy set open generic as ExpectedType of comparison operand. Will think how to fix/workaround it, as this pattern is used in BCL List<T> implementation.

Yeah, ILSpy type inference screws up a lot of these cases. I have workarounds for some of them already

I've found two options of fixing this problem (and will create PR to discuss it), but really we have here also (or maybe only) anther problem, that is same with #770.
In translated sources JSIL tries to downcast Interface2 to GenericClass, which may be impossible.
I'm not sure if we need cast here at all.

Really much simpler test case:
using System;

public interface Interface1<T>
{
}

public class GenericClass<T> : Interface1<T>
{
    public bool Test(Interface1<T> input)
    {
            return this == input;
    }
}

public static class Program {
    public static void Main (string[] args) {
        var instance = new GenericClass<object>();
        Console.WriteLine(instance.Test(instance) ? "True" : "False");
    }
}

Fixed via #786.


Typo in addHeadStyle

See https://github.com/mjmlio/mjml/blob/804760ad2ff9afcb14e903404900671b6978e3b9/packages/mjml-core/src/index.js#L208-L212

Hi @malonehedges thanks for noticing this, for now it's used with the same typo so it's ok but we should change that to prevent any mistake in the future 👍

cc @kmcb777 can we fix this in 4.4 it's a bit annoying to have this typo in our current component API

Actually the fix had been merged in 4.4beta, so i'll close this one 👍


Always on tag

Hello,
is there a way to define a tag or period that does not shutdown or start the instance? We want to introduce the tag key as a mandatory value but want to give the users the chance to run their instances 24/7.
Thank you
BR

@arturschneider389 You can create a schedule and period with following configuration,
{
         "UseMaintenanceWindow": false,
         "StopNewInstances": false,
         "UseMetrics": false,
         "Hibernate": false,
         "Timezone": "UTC",
         "Enforced": true,
         "RetainRunning": true,
         "Description": "Keep instances running",
         "Periods": [
            "entire-day"
         ],
         "Name": "running",
         "Type": "schedule"
}

and Period as
{
         "Begintime": "00:00",
         "Description": "Running for the entire duration of the week.",
         "Endtime": "23:59",
         "Weekdays": [
            "mon-sun"
         ],
         "Name": "entire-day",
         "Type": "period"
      }

Thank you, this is the way!


Semanal and Monthly View?

Hi,
I don't undersetand the question.

First, Semanal = Weekly?
It's possible to see the whole week or the whole month. Just set the visibleTimeStart and visibleTimeEnd props if you wish to control this manually


fix(falco): correctly escape FALCO_K8S_NODE_NAME

What type of PR is this?
/kind bug
/kind chart-release
Any specific area of the project related to this PR?
/area falco-chart
What this PR does / why we need it:
This fixes the escaping for the FALCO_K8S_NODE_NAME value, which passed a broken node name when using the --k8s-node cli parameter. This has been reported here 👉🏼  https://github.com/falcosecurity/falco/issues/1786
The version has been bumped to 1.16.1 to reflect the new change.
Which issue(s) this PR fixes:
Special notes for your reviewer:

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: jasondellaluce
To complete the pull request process, please assign bencer after the PR has been reviewed.
You can assign the PR to them by writing /assign @bencer in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

falco/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jasondellaluce, leogr
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

falco/OWNERS [leogr]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: f04de623df04628339a928109c23f690aa827cda


Cleanup linter error

It will be good to clean up these linter errors before it is causing problems. Also by following some simplification and code practice, it will make the code easier to maintain
What should be cleaned up or changed
from make lint
pkg/config/config.go:86:15: exported func Source returns unexported type *config.source, which can be annoying to use

pkg/processor/native/utils_test.go:162:41: exported func NewMockImage returns unexported type *native.mockImage, which can be annoying to use

pkg/service/manipulator.go:166:52: exported func NewManipulator returns unexported type *service.manipulator, which can be annoying to use

pkg/processor/native/encoder.go:79:1: comment on exported method Encoders.Options should be of the form "Options ..."

from golangci-lint
pkg/processor/native/processor_test.go:21:2: `badImage` is unused (structcheck)
	badImage      image.Image
	^
pkg/processor/native/processor_test.go:181:11: ineffectual assignment to `err` (ineffassign)
		img, _, err := s.processor.Decode(file)
		        ^
internal/handler/ping.go:12:3: S1023: redundant `return` statement (gosimple)
		return
		^
pkg/server/api.go:63:2: S1005: '_ = <-ch' can be simplified to '<-ch' (gosimple)
	_ = <-sig
	^
pkg/service/manipulator_test.go:132:27: S1019: should use make([]byte, 10) instead (gosimple)
		ImageData: make([]byte, 10, 10),

To Cleanup makefile
-  We don't need to show the makefile command, can be achieved by using silent @

Provide any links for context

https://github.com/golangci/golangci-lint

Do anyone want to pick this up or Can I pick this up?

Thanks, @imjuanleonard for pointing this out, feel free to fix this.

Thanks, feel free to pick this up.

@baskarap regarding this, do we want to be strict and follow golint? If yes, to prevent this from happening again, maybe it would be nice to let golint return non-zero code when there's linter error so that the CI fails? wdyt?

Sure, making it to return non-zero code can be done as well.

Sure, will pick by today. Noted, will add the lint to the pipeline

Hi, after checking several blog and communities about linter in pipeline convention.
Linter will make the pipeline slower, and some people still argue it is not a good practice to add linter in gitlab. The suggestion was to put any code-cleaner task inside the git hooks or the IDE itself. So it will always happen and not slowing.
What do you guys think?

@imjuanleonard IMO making it in the pipeline is still fine because the thing with Git hook and IDE task is that it's local and need some setup on the user side and we can't control that. It would be nice to make it in the pipeline to make sure that the style is consistent across the repository with different contributors since we can't catch every inconsistency manually


Pre select the Tag for the uploaded keys

Suggestion PR, to tag uploaded keys with the phrase push
https://github.com/phrase/phrase-cli/pull/74

Hi @GMetaxakis Thanks for taking your time to contribute. I created a task for our next sprint to check your PR. You will hear something in a week or two.

Hi @GMetaxakis Thanks for taking your time to contribute. I created a task for our next sprint to check your PR. You will hear something in a week or two.

Hey @egze any update?

Hi @GMetaxakis, just a couple of questions about your use case. Do you want to be able to dynamically add tags to all pushed translation keys (in case some of the keys and translations already exist in Phrase) or only those for which translations have changed during a push? And how are you then later using the tag?
Each upload also receives a tag in the form upload-<identifier> which can be helpful in some cases.

In our CI we are creating a job for all the new keys that got created after the phrase push . This to happen we are fetching the response from the uploads  API and we are checking the new keys number that exist there and the last uploaded tag. This work OK for now for Android as we do only 1 upload (on iOS we do 2 for strings and stringsdict), but we are exploring ways of modularization the phrase pushes to different android modules, again it kind of works great in the config file with the tag option, but we cannot check the last 5 uploads or 50 last uploads (if we go with 50 modules with copies) if we have new keys or what is the tag to create the job. Does it make sense?
So in a way we want only for the new keys a predefined tag to create the job instead of searching in all the uploads what is this tag.

@GMetaxakis Thanks for the explanation! That sounds very useful. Left one comment on your PR. Everything else looks good to me

Thanks for adding this to the CLI :tada:  This is now part of CLI 2.3.0 https://github.com/phrase/phrase-cli/releases/tag/2.3.0


Server still seeing live even if interrupted by internet  connexion down from emetter?

Hi,
I had setup a video server with nginx and rtmp module.
Streamers use OBS to send stream.
All works fine but if streamer has an internet connexion interruption, the server stil seeing the stream (but with 0 kbps), and the streamer can not reconnect (once internet came back).
Is there a parameter to set in the config to kill the stream if not longer received ?
Thanks :)
Couin

Hi,
I had setup a video server with nginx and rtmp module. Streamers use OBS to send stream. All works fine but if streamer has an internet connexion interruption, the server stil seeing the stream (but with 0 kbps), and the streamer can not reconnect (once internet came back).
Is there a parameter to set in the config to kill the stream if not longer received ?
Thanks :) Couin

Just a suggestion use ffmpeg to end the stream

What do you mean ?  :)

use
ffmpeg.process.end()
i was saying

What do you mean ? :)


fix: Make version optional and return latest block data

fix: Use optional version param for timestamp lookup (#467)
Problem:
Default Version parameter causes storage errors when lookup timestamp exceeds available block data.
Solution:

Make version parameter optional
Return latest block data when version=None
Maintain expected error behavior for out-of-bounds blocks/timestamps
Align protocol_state behavior with contract_state timestamp queries

While this fixes the issue, I am thinking of a more robust fix.

While this fixes the issue, I am thinking of a more robust fix.

Problem: Latest timestamp comes from Version default, which results in storage error because when the lookup happens, it cannot find block for that timestamp as latest ts is greater than any block.
Proposed solution: Instead of relying on Version default, we should make the version param optional, so that when None is provided, it gives the latest block data, and when out of bound Block or TS is provided, it errors as expected.

@kayibal My previous changes were limiting the upper bound of the get_block_range so that when a future timestamp (Now and greater) is provided, it will always return the latest block data without returning storage error. That fixed the issue, but the edge case was that anyone querying with a future block (not existing one) will still get a response and may mistake it with the data of that block. Instead, I made the version param optional so that the following scenarios satisfies:

Explicit latest data retrieval via version=None
Predictable errors for invalid block/timestamp queries
No ambiguity between requested vs returned block data

Let me know your thoughts.

Hey @royvardhan, thanks for your contribution!
I like your changes, they make sense. However, this introduces a breaking change on our dto struct which can become a big headache for our users. Would there be a way to do it without breaking the interfaces?
@tvinagre @kayibal any input here?

Hey @royvardhan, thanks for your contribution!
I like your changes, they make sense. However, this introduces a breaking change on our dto struct which can become a big headache for our users. Would there be a way to do it without breaking the interfaces?
@tvinagre @kayibal any input here?

Thanks! There is also a third option without any breaking changes where we verify that the version is generated by default, if yes then:

None goes here

Which then triggers update_native_states with None and get_block_range gets both start and end as None.

Here
Allowing it to return full buffer range here


Jonny the beard is incorrectly highlighted when on a Bear slayer task

Describe the bug
Title - when you are on a Bear slayer task, the slayer plugin highlights Jonny the beard. Presumably because the plugin matches any NPC with "bear" in their name.
To Reproduce
Be on a Bear slayer task and go to Varrock's Blue Moon Inn to see the bug, with one of the highlight settings active on the Slayer plugin.
Expected behavior
Jonny the beard should not be highlighted on a Bear slayer task.
Screenshots

Environment (please complete the following information):

OS: Microsoft Windows 10 Home 10.0.19043
RuneLite version: 1.8.8
Launcher version: 2.1.7

Additional context
Confirmed that killing him does not count as a bear for the slayer task. The plugin does not decrement the counter when you kill him.

Duplicate of #6285


add arguments to discretize

Please ensure your pull request adheres to the following guidelines:

[ ] Tests for new functionality/models or Tests to reproduce the bug-fix in code.
[ ] Updated documentation of features that add new functionality.
[ ] Update CHANGELOG.md with major/minor changes.

Looks good. Changelog?

Docs too please

TODO: Apply to cstwMPC

It looks like this PR was forgotten about. I'm merging after tests finish running.


OpenCV and LIBCLANG_PATH

Hello,
I use OpenCV in my Rust project and I'm unable to see where I can set the LIBCLANG_PATH variable to be detected by OpenCV crate.
Do you have an idea where I can look to fix this issue?
Thank you
{
  description = "Build a cargo project";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";

    crane = {
      url = "github:ipetkov/crane";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    flake-utils.url = "github:numtide/flake-utils";

    advisory-db = {
      url = "github:rustsec/advisory-db";
      flake = false;
    };
  };

  outputs = { self, nixpkgs, crane, flake-utils, advisory-db, ... }:
    flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = import nixpkgs {
          inherit system;
        };

        inherit (pkgs) lib;

        craneLib = crane.lib.${system};
        src = craneLib.cleanCargoSource ./.;

        # Common arguments can be set here to avoid repeating them later
        commonArgs = {
          inherit src;

          buildInputs = [
            # Add additional build inputs here
            pkgs.openssl
            pkgs.pkg-config
            pkgs.clang
            pkgs.libclang
            pkgs.llvm
            pkgs.opencv
          ] ++ lib.optionals pkgs.stdenv.isDarwin [
            # Additional darwin specific inputs can be set here
            pkgs.libiconv
          ];

        };

        # Build *just* the cargo dependencies, so we can reuse
        # all of that work (e.g. via cachix) when running in CI
        cargoArtifacts = craneLib.buildDepsOnly commonArgs;

        # Build the actual crate itself, reusing the dependency
        # artifacts from above.
        my-crate = craneLib.buildPackage (commonArgs // {
          inherit cargoArtifacts;

          stdenv = pkgs.clangStdenv;
          LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";

          #  LIBCLANG_PATH="${pkgs.libclang.lib}/lib";
          # LIBCLANG_PATH = "${pkgs.llvmPackages_11.libclang.lib}/lib";

          nativeBuildInputs = with pkgs; [
            pkg-config
            clang
            libclang
            llvm
          ];
        });
      in
      {
        checks = {
          # Build the crate as part of `nix flake check` for convenience
          inherit my-crate;

          # Run clippy (and deny all warnings) on the crate source,
          # again, resuing the dependency artifacts from above.
          #
          # Note that this is done as a separate derivation so that
          # we can block the CI if there are issues here, but not
          # prevent downstream consumers from building our crate by itself.
          my-crate-clippy = craneLib.cargoClippy (commonArgs // {
            inherit cargoArtifacts;
            cargoClippyExtraArgs = "--all-targets -- --deny warnings";
          });

          my-crate-doc = craneLib.cargoDoc (commonArgs // {
            inherit cargoArtifacts;
          });

          # Check formatting
          my-crate-fmt = craneLib.cargoFmt {
            inherit src;
          };

          # Audit dependencies
          my-crate-audit = craneLib.cargoAudit {
            inherit src advisory-db;
          };

          # Run tests with cargo-nextest
          # Consider setting `doCheck = false` on `my-crate` if you do not want
          # the tests to run twice
          my-crate-nextest = craneLib.cargoNextest (commonArgs // {
            inherit cargoArtifacts;
            partitions = 1;
            partitionType = "count";
          });
        } // lib.optionalAttrs (system == "x86_64-linux") {
          # NB: cargo-tarpaulin only supports x86_64 systems
          # Check code coverage (note: this will not upload coverage anywhere)
          my-crate-coverage = craneLib.cargoTarpaulin (commonArgs // {
            inherit cargoArtifacts;
          });
        };

        packages.default = my-crate;

        apps.default = flake-utils.lib.mkApp {
          drv = my-crate;
        };

        devShells.default = pkgs.mkShell {
          inputsFrom = builtins.attrValues self.checks;

          # Extra inputs can be added here
          nativeBuildInputs = with pkgs; [

            openssl
            pkg-config
            clang
            libclang
            llvm
            opencv
            cargo
            rustc
          ];
        };
      });
}

After nix develop -i, a cargo build gives
  === Detected OpenCV module header dir at: /nix/store/g5gsi3i21h2dw8xq6ai7n80ai14sbygm-opencv-4.7.0/include/opencv4/opencv2
  === Found OpenCV version: 4.7.0 in headers located at: /nix/store/g5gsi3i21h2dw8xq6ai7n80ai14sbygm-opencv-4.7.0/include/opencv4
  === Generating code in: /home/harold/src/gate_state_rs/target/debug/build/opencv-1bfdd69d4becec3d/out
  === Placing generated bindings into: /home/harold/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.74.2/src/opencv
  === Using OpenCV headers from: /nix/store/g5gsi3i21h2dw8xq6ai7n80ai14sbygm-opencv-4.7.0/include/opencv4
  thread 'main' panicked at 'Cannot initialize clang: "the `libclang` shared library at /usr/lib/libclang.so.15.0.7 could not be opened: libLLVM-15.so: cannot open shared object file: No such file or directory"', /home/harold/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.74.2/build/generator.rs:75:37

Like you're doing it seems OK. Corresponding line from our flake. There's something else wrong here, from what I can tell. Try different clang version maybe?

It's worth noting that you can set environment variables in a devshell just like you can for a regular derivation:
devShells.default = pkgs.mkShell {
  LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
  # other arguments...
}

Not sure if that's what the issue is here, specifically, but hope that helps!

Thank you for your responses, I managed to pass the CLang issue by testing inside a dev shell.
But still getting other errors of mismatched version. I'll look into it as it's no more linked to this issue.
       >   === Building binding-generator binary:
       >   === error: failed to select a version for the requirement `once_cell = "^1"` (locked to 1.17.0)
       >   === candidate versions found which didn't match: 1.17.1
       ...
       >   === perhaps a crate was updated and forgotten to be re-vendored?


Changes to add CASMREL-755 basecamp data to 0.9.6

This change also includes cherry-picking some commits to get 0.9.6 to build/publish in github.

not going this direction


CrossValidation CrossValidate ProbabilityPredictions error means?

Hi,
when I run "CrossValidation_CrossValidate_ProbabilityPredictions" example with my data, it gives these values:
Cross-validation error: 6.88921441267999
Training error: 6.86281040890985
I searched a lot but couldn't find any documantation abput it? Could you explain what's this values mean, and for best prediction what they should be?
Thanks.
Regards!

Hi,
That example uses LogLoss as the error metric, you can read more about it here: Log_Loss. But basically 0.0 is the best value you can achieve.
As mention in one of the other issues, you should probably use the TimeSeriesCrossValidation class for your problem, since the data is a time series.
best regards
Mads

Closing this issue since an answer has been provided.


Certificate Verify Fails

Since February 27th, I'm having a lot of issues with Certificate Verification. Sometimes I manage to get the calendar data, but most of the time I get this traceback:

Traceback (most recent call last):
File "/usr/lib/python-exec/python2.7/gcalcli", line 2500, in
BowChickaWowWow()
File "/usr/lib/python-exec/python2.7/gcalcli", line 2382, in BowChickaWowWow
options=FLAGS)
File "/usr/lib/python-exec/python2.7/gcalcli", line 587, in init
self._GetCached()
File "/usr/lib/python-exec/python2.7/gcalcli", line 714, in _GetCached
self._CalService().calendarList().list())
File "/usr/lib/python-exec/python2.7/gcalcli", line 670, in _CalService
http=self._GoogleAuth())
File "/home/penaz/.local/lib64/python2.7/site-packages/oauth2client/util.py", line 132, in positional_wrapper
return wrapped(*args, **kwargs)
File "/home/penaz/.local/lib64/python2.7/site-packages/apiclient/discovery.py", line 192, in build
resp, content = http.request(requested_url)
File "/home/penaz/.local/lib64/python2.7/site-packages/oauth2client/util.py", line 132, in positional_wrapper
return wrapped(*args, **kwargs)
File "/home/penaz/.local/lib64/python2.7/site-packages/oauth2client/client.py", line 490, in new_request
redirections, connection_type)
File "/home/penaz/.local/lib64/python2.7/site-packages/httplib2/init.py", line 1570, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/home/penaz/.local/lib64/python2.7/site-packages/httplib2/init.py", line 1317, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/home/penaz/.local/lib64/python2.7/site-packages/httplib2/init.py", line 1252, in >_conn_request
conn.connect()
File "/home/penaz/.local/lib64/python2.7/site-packages/httplib2/init.py", line 1044, in connect
raise SSLHandshakeError(e)
httplib2.SSLHandshakeError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)

I reinstalled my ca-certificates, python, httplib2, google-api-python-client with no result. I tried downgrading too, but it didn't produce any result.
My clock is synced via NTP so time is not the problem (I verified it just to be safe, and it's right), I'm running:

Gentoo Linux
gcalcli v4.0.0_alpha3-r1 (from Portage, but also version 3.4.0 doesn't work)
python-2.7.14-r1
httplib2 0.10.3-r1
google-api-python-client 1.6.5 (Tried also the stable version 1.6.2 with no result)
oauth2-client 4.1.2

Seems like I found the issue, portage reported httplib2 0.10.3-r1, while it was running version 0.8 for some reason. Using pip2 install --upgrade --user httplib2 solved the issue.

I'm seeing this too from time to time and I have httplib2 (0.10.3) installed.


test: Fix flaky time condition unit test due to overflow

Fixes the flaky time condition unit test by always using midnight as the end time range so that the flow.expires_at is never calculated across a day boundary into the future.
Supersedes #6244

This can be flaky when test is run exactly at midnight but I think that's fine, I can fix it later if it becomes a problem again

Yeah I was on the fence too. SGTM 👍


Cannot get index_view to work

Trying to use index_view I stumbled across the fact that I cannot even replicate the example (https://xtensor.readthedocs.io/en/latest/view.html#index-views). I get a very long list of errors
error.log. I suspect a bug somewhere or an error in the documentation.

Can you post the code that triggers the error? The following works for me, with the master branch and gcc7:
#include "xtensor/xarray.hpp"
#include "xtensor/xindex_view.hpp"

void test()
{
    xt::xarray<double> a = {{1, 5, 3}, {4, 5, 6}};
    auto b = xt::index_view(a, {{0,0}, {1, 0}, {0, 1}});
    b += 100;
}

So there was an issue in xindex_view.hpp, an include was missing. Since the missing header is included in xarray.hpp, this was masked in my example (but not in yours because xindex_view.hpp was included before xarray.hpp).
This has been fixed in master.


How to use openblas native provider?

i am trying the 3.8.0 which says to include openblas support.  I tried to give it a shot by using the Control.UseNativeOpenBLAS() command but it complained about not being able to find mathnet.numerics.openblas.dll.  I looked through the packages on nuget and couldn't find this dll at all.  I tried downloading the binary from openblas.net which had the file name lib openblas.dll.  Renamed it to mathnet.numerics.openblas.dll just to see what happens and it complained about no entry point called query_capability (I think that was name but can get the exact name if that's useful) in the dll and exits.
Any ideas?  Thanks!
-Jason

Sorry I meant to say 3.7.0 not 3.8.0

Yes, our "official" builds of the native binaries for the new OpenBLAS and CUDA providers have not been published to NuGet yet. I should have mentioned this in the release notes.
I'll publish them after some more testing and clarifying the best approach in #312.

@jaybert If you want to try out the provider you can compile the project yourself.
For Windows:

Get a copy of OpenBLAS binaries from SourceForge (latest currently 0.2.14). Grab the Win64-int32, Win32, mingw32 and mingw64 archives.
Under the mathnet-numerics folder create a libs folder and an OpenBLAS folder under that.
Extract the OpenBLAS files into the folder so you have the following structure:

\libs\OpenBLAS

\include

all .h files from either Win64-int32 or Win32 include folder

\x64

libopenblas.dll from Win64-int32 bin folder
libopenblas.dll.a from Win64-int32 lib folder
all dlls from mingw64 archive

\x86

libopenblas.dll from Win32 bin folder
libopenblas.dll.a from Win32 lib folder
all dlls from mingw32 archive

Open the MathNet.Numerics.NativeProviders.sln solution in Visual Studio and build the OpenBLAS project. You'll need to build both x64 and x86 if you want to support Any CPU.
The compiled files will be under the mathnet-numerics\out\OpenBLAS\Windows folder. Copy the x86 and x64 folders to your program's directory and the call to Control.UseNativeOpenBLAS() should now work.

Thanks For the info.  I actually tried this earlier (and again today based on your instructions) but I was unable to get openblas to compile.
The include statements in the cpp files didn't seem to be able To find the .h files I copied to that include directory. I just tried dropping the files into the main directory which solved that issue but then failed with a cannot link libopenblas.h.a error in vs 2013 (don't have screen in front of me). I'm guessing I need to set some sort of include directory but I wasn't really able to figure it out.  As you can tell I'm completely unfamiliar with c++ so can't figure out heads from tails.
Thanks for the help!
On Thu, Jul 2, 2015 at 5:59 AM, Kuan Bartel<EMAIL_ADDRESS>wrote:

@jaybert If you want to try out the provider you can compile the project yourself.
For Windows:

Get a copy of OpenBLAS binaries from SourceForge (latest currently 0.2.14). Grab the Win64-int32, Win32, mingw32 and mingw64 archives.
Under the mathnet-numerics folder create a libs folder and an OpenBLAS folder under that.
Extract the OpenBLAS files into the folder so you have the following structure:

\libs\OpenBLAS

\include

all .h files from either Win64-int32 or Win32 include folder

\x64

libopenblas.dll from Win64-int32 bin folder
libopenblas.dll.a from Win64-int32 lib folder
all dlls from mingw64 archive

\x86

libopenblas.dll from Win32 bin folder
libopenblas.dll.a from Win32 lib folder
all dlls from mingw32 archive

Open the MathNet.Numerics.NativeProviders.sln solution in Visual Studio and build the OpenBLAS project. You'll need to build both x64 and x86 if you want to support Any CPU.
The compiled files will be under the mathnet-numerics\out\OpenBLAS\Windows folder. Copy the x86 and x64 folders to your program's directory and the call to Control.UseNativeOpenBLAS() should now work.

Reply to this email directly or view it on GitHub:
https://github.com/mathnet/mathnet-numerics/issues/311#issuecomment-117986780

@cdrnet Have openBLAS and CUDA native programmers been added yet? I still can't use them using the NuGet MathNet release

@MarcoROG native providers are released separately to the main NuGet release, I think mainly due to the size of the native libraries. OpenBLAS and CUDA NuGet packages have not been published yet but the libraries can be manually built from the MathNet.Numerics.NativeProviders.sln or using FAKE. FAKE can also be used to build the NuGet packages.
Both the OpenBLAS and CUDA projects have dependencies on the corresponding native libraries being installed / available on your computer. CUDA should just work after installing the SDK as it will set all of the required environment variables.
OpenBLAS doesn't have an installer so the path to the required files isn't set with an environment variable. The project will look for files in \libs\OpenBLAS under the solution directory (as described above) or alternatively the path can be set in the OpenBLASWrapper.vcxproj project file by setting a value for OpenBLASPath. For example:
<PropertyGroup Label="Globals">
  <ProjectGuid>{CB4011B6-E9A7-480B-A7B1-8492039DAAD1}</ProjectGuid>
  <RootNamespace>OpenBLASWrapper</RootNamespace>
  <ProjectName>OpenBLAS</ProjectName>
  <OpenBLASPath>C:\Development\Libs\OpenBLAS\v0.2.14<OpenBLASPath>
</PropertyGroup>

Perhaps a readme of some sort should be added to explain this.

@kjbartel thank you, i will try now with cuda.
If i downloaded MathNet from NuGet, when can i find MathNet.Numerics.NativeProviders.sln ?

@kjbartel  nevermind, i found it, but when i build it i get
Error	1	error LNK1104: cannot open file 'cublas.lib'	C:\Users\Marco\Downloads\mathnet-numerics-master\mathnet-numerics-master\src\NativeProviders\Windows\CUDA\LINK	CUDA

@MarcoROG Did you install the CUDA Toolkit?

Yes i installed this : https://developer.nvidia.com/cuda-downloads
I can see cublas.lib if i search in my system.
Maybe i need to set some environment variable?

A first version of the OpenBLAS provider is now available on NuGet.

With the release of the OpenBLAS nuget package I think this can now be closed. Everything seems to be working correctly. @jaybert and @MarcoROG have you tried the new release yet?

@kjbartel  @cdrnet  OPENBlas is working well for me!
Any word about when CUDA will be released aswell?

Great, thanks!
Regarding CUDA, I'm currently blocked there since I cannot actually test anything (it seems we're not supporting my old Quadro 4000).

@cdrnet Is it related to Compute Capabilities?
I have a GTX 760, if it can be useful for some tests or something let me know please! I'd love to help!

Is there any chance of a Signed Edition of the OpenBLAS native provider NuGet package? We are implementing a plug-in where the application we are plugging into requires all referenced assemblies to be signed...which is insanely annoying.

The native provider NuGet packages do not actually contain any .Net assemblies, so to my understanding they cannot have a strong name (assuming you mean strong names, not certificate/authenticode code signing).
You get this exception at runtime only, but the compiler sees the method? Can you verify that you use exactly the same MathNet.Numerics.dll assembly at compilation and runtime?

You're right. I thought it might be a .Net assembly, but saw after downloading the source code that is was native. The problem was that another project in my solution was referencing an ancient version of MathNet (v2.xx), which seemed to be the one invoked and missing the method. I changed all references to the newest 3.10 NuGet and now it works ok. Thanks for a great library!

Great, thanks for the update!

Will there be an OpenBLAS native provider package for Linux? We are developing a cross platform F# application which would require this in addition to the windows one. Any hints on how to make one if there is none in the pipeline?

OpenBLAS supports Linux, so there should be nothing in the way of providing one. But we would have to build it ourselves, they only provide pre-built binaries for Windows.

Ok, so I could just build OpenBLAS for linux and somehow reference that binary and try to initialize the OpenBLAS provider in .NET?

Ah, no, you'd also need the native provider implementation itself (which links the OpenBLAS binaries) and we don't seem to have a build script for Linux (nor OSX) for that yet. So there is still some more work left to get this working.

I see. Is there any roadmap for the OpenBLAS linux native provider implementation? Does it have to be implemented from scratch or is it more or less the same as the windows impl., but with different build and link routines?


[BUG] Comments in docs not highlighted correctly

Bug report
Report for: Documentation
Comments within objects within function parameters are not correctly highlighted.
Current behavior
Ignore the single /
/ comment

Expected behavior
// comment

Possible cause
Likely a bug with highlight.js
Additional info
Version
none.
Reproduction
none.
Additional notes
none.

Fixed with the latest doc rebuild


Issue 49 qasm string input

@qciaran is this what you were looking for with issue #49?

@qartik good suggestions, made those changes

@qciaran is this what you were looking for with issue 49?

we should probably wait for @qciaran before merging this?

Thanks!


What's the license on the weights?

I hate to do this, but it's not clear from the paper or the repo. The code is MIT licensed, but what's the license on the model weights?

Any answer to this?


Plan for including hydrogen fuel cells?

Thanks for open source this interesting project.
Do we have a plan for including similar
topic for hydrogen fuel cells, like the Proton exchange membrane
fuel cell (considering it is less mature and relatively new compared with Lithium-ion)?

Hi@fingertap , thanks for the interest! I can share some public datasets for you to check first.
Please find the dataset in this repo:
https://github.com/jianzuo/IEEE-2014-datasets
And another one through:
https://data.mendeley.com/preview/w65jjt8v5w#folder-7b6f521f-ce2d-4236-8ea9-f32a79640bf5
(the folder durability_test_dataset contains the aging data)
If you have further questions on these datasets, please let me know if I can help.
Thank you!

Hi @jianzuo ! Sorry for the late reply. We now reorganized the repo using a more convenient CLI to handle the data download and preprocessing (#19 ). Supports for new data are easier to apply now. Will look into this data later.

@fingertap Thanks for the reply. Congratulations on the progress and looking forward to further discussion.


Support JS IR

Enable IR or BOTH mode for JS compillation.

This (both mode) was added in 0.3.0.

Sorry, I looked in the gradle, but forgot to look at properties


Flutter flashes black screen on Android when resuming activity

Is there an existing issue for this?

[x] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce
when i run any flutter app on my android 9 phone and move the app to background and then resume it after seconds , app flashes a black screen for like 200ms. is there any way to fix it without causing other problems?
https://github.com/flutter/flutter/issues/59552#issuecomment-713374392
the above answer causes splash screen to flash a black screen instead , and fixes on resume problem. is there anyway of fixing this without causing another problem?
Expected results
all other android apps that arent made with flutter , look ok. this only happens with flutter apps.
Actual results
this is actually what happens :
https://github.com/flutter/flutter/issues/66212#issuecomment-704942497
Code sample
Code sample
Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.13.3, on Microsoft Windows
[Version 10.0.22000.2176], locale fa-IR)
[√] Windows Version (Installed version of Windows is version 10
or higher)
Checking Android licenses is taking an unexpectedly long time..
[√] Android toolchain - develop for Android devices (Android
SDK version 34.0.0)
[√] Chrome - develop for the web
[!] Visual Studio - develop Windows apps (Visual Studio
Community 2022 17.6.4)
X Visual Studio is missing necessary components. Please
re-run the Visual Studio installer for the "Desktop
development with C++" workload, and include these
components:
MSVC v142 - VS 2019 C++ x64/x86 build tools
- If there are multiple build tool versions available,
install the latest
C++ CMake tools for Windows
Windows 10 SDK
[!] Android Studio (version 2022.2)
X Unable to find bundled Java version.
[√] Android Studio (version 2022.3)
[√] IntelliJ IDEA Ultimate Edition (version 2023.1)
[√] Connected device (3 available)
[√] Network resources

@JackieLovesProgramming the issue

https://github.com/flutter/flutter/issues/59552

is still open, could this problem be addressed there? (possibly with a code sample)

@JackieLovesProgramming
You can follow-up in below similar issues for further updates:
https://github.com/flutter/flutter/issues/59552
https://github.com/flutter/flutter/issues/34864
Closing this as a duplicate. You can share your findings in above issues for better tracking.


Hello World Page Translation

Thanks, @gurjotsingh4398 for doing this! Have added some inline comments. Please look into those and feel free to discuss some if you feel they need to be worked on

@gurjotsingh4398 any progress on the review comments?

Yes , I am almost done with the changes.

Yes , I am almost done with the changes.

Awesome! Just wanted to check if you needed some help. Also, do merge in the latest master since some changes have been merged there too.

@saranshkataria @arshadkazmi42  I can't think of any other translation for  चरण-दर-चरण in line 31 and 33.

@gurjotsingh4398 how about क्रमशः ?

a bit complex, but I also cannot think of something better

How about you " ek ek karke"

How about you " ek ek karke"

Works!

Thanks @gurjotsingh4398. Merging this in!


Naming convention for ToolBar (ActionBar)

Since the introduction of the Material Design Spec the name for the bar on the top of an Application  was replaced with ToolBar (until then called the ActionBar). I'm suggesting to alter the name to be match the Material specification.
action_bar.dart

Ah, my mistake.  Thanks!

Fixed in https://codereview.chromium.org/1133353008


Why are we limited to a max of 49 comments when using getMediaComments?

I'm very confused while we're not able to get more then 49 comments per request. You don't really offer an explanation in the documentation. If it's the case of limiting the calls to stay undetected, I get it. But it would be very useful if we could at least get more comments in the form of multiple separate requests within those boundaries. So go through 1,000 comments, but retrieve only 49 per request until reaching the bottom.
Can this become a possibility?
Thanks.

Why instagram only returns 49 per request.
For several requests, use the end_pointer system, it is a "pager", each request made with the pager, returns a new page, with 49 more results.
Define a global variable with name "globalPointer", and after every request, memorize the pointer, and execute new request with the new pointer.

Okay, and this can also be achieved for comment sections too?
On Sun, 28 Jun 2020, 6:21 am codexJoin<EMAIL_ADDRESS>wrote:

Why instagram only returns 49 per request.
For several requests, use the end_pointer system, it is a "pager", each
request made with the pager, returns a new page, with 49 more results.
Define a global variable with name "globalPointer", and after every
request, memorize the pointer, and execute new request with the new pointer.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jlobos/instagram-web-api/issues/155#issuecomment-650617986,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AO4732TKWRUEUQBTHAIGQ5DRYZIEZANCNFSM4OJ7RFUQ
.

Ok, e isso também pode ser alcançado para seções de comentários também?
...
On Sun, 28 Jun 2020, 6:21 am codexJoin, @.***> wrote: Why instagram only returns 49 per request. For several requests, use the end_pointer system, it is a "pager", each request made with the pager, returns a new page, with 49 more results. Define a global variable with name "globalPointer", and after every request, memorize the pointer, and execute new request with the new pointer. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#155 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO4732TKWRUEUQBTHAIGQ5DRYZIEZANCNFSM4OJ7RFUQ .

Yes. Remember, the instagram limits the results per request. In case of comments is 49.


0.6.0: Using the Zig Language Server as a FormattingProvider doesn't work

ZLS      0.14.0-dev.250+80615f3c
[Trace - 12:35:04 AM] Sending request 'textDocument/rangeFormatting - (38)'.
debug (message): received: {"jsonrpc":"2.0","id":38,"method":"textDocument/rangeFormatting","params":{"textDocument":{"uri":"file:///home/rad/lab/z/dev/src/Server.zig"},"range":[{"line":0,"character":0},{"line":2208,"character":0}],"options":{"tabSize":4,"insertSpaces":true}}}
debug (message): sent: {"jsonrpc":"2.0","id":38,"result":null}
debug (server): Took 0ms to process request-38-other on Thread 95406
[Trace - 12:35:04 AM] Received response 'textDocument/rangeFormatting - (38)' in 2ms.

The extension is sending a rangeFormatting request, which the server doesn't support.

Sorry about that, I noticed the same issue earlier but when testing today I accidentally had zig.formattingProvider set to extension, which is also the workaround until a fix is released.

cc @Techatrix


Add note for resource provider

Add note for the case that allowed subnet belongs to a different subscription. In this case, users need to register Microsoft.CognitiveServices for the other subscirption too.

#sign-off


Add a total value for pie / donut chart

Checklist

[x] I am running the latest version of the card
[x] I checked if there isn't another feature request opened with the same request
[x] I checked that the feature is not already available in the dev branch

Is your feature request related to a problem? Please describe.
It would be awesome to be able to declare the total value of a pie / donut chart.
I am plotting my power consumption within the last 24h, I track the total power consumption and several devices independantly.
Describe the solution you'd like
An option like in https://github.com/cheelio/power-usage-card
total_power_usage: sensor.power_consumption      # Optional total power consumption (DSMR) sensor.
to declare the total amount the pie / donut chart should have.
The additional slice to add would propably be relatively easy to calculate
total_value - sum(other_values)
Describe alternatives you've considered
Currently I have to declare a new sensor in HA to calculate the "other" / "Sonstiges" amount of power consumed.
(Values are not matching, that's due to my not (yet) consistent data)

type: custom:vertical-stack-in-card
cards:
  - type: custom:apexcharts-card
    header:
      show: true
      title: Verbrauch letzte 24 Stunden
      show_states: true
      colorize_states: true
    chart_type: donut
    all_series_config:
      group_by:
        duration: 24h
        func: diff
    apex_config:
      legend:
        show: false
      dataLabels:
        formatter: |
          EVAL:function(value) {
            return value.toFixed(1) + "%";
          }
    series:
      - entity: sensor.energy_total
        show:
          in_chart: false
        name: Gesamt
      - entity: sensor.consumption_54
      - entity: sensor.consumption_64
      - entity: sensor.consumption_56
      - entity: sensor.consumption_60
      - entity: sensor.consumption_62
      - entity: sensor.energy_other

It would still be nice to add this feature :)


Who can help me?

In my vimrc, I set tabstop=4. But when I open a python file, tabstop=8, I have to set tabstop by hand.
What's wrong with it?

You should execute verbose setlocal tabstop?.
I think ftplugin overwrites the config.
https://github.com/vim/vim/issues/989
let g:python_recommended_style = 0

This is issue tracker to fix bugs. Please ask on https://groups.google.com/forum/#!forum/vim_use

Please ask user questions at the vim_use mailing list as @mattn says or at vi.stackexchange.com.
Closing.


Fix Formatting.format returns character float number

This bug happens because of use / 2 in advance_pos which is convert
into floating number. Fixes by using trunc/1. And add test to ensure
line and character always integer.
Fixes #249

@axelson your suggestion was addressed. CI fail because of dialyzer test. I think this is not related with this changes.

Didn't see the issue you opened and this PR before I opened mine (with Emacs)... https://github.com/elixir-lsp/elixir-ls/issues/255 https://github.com/elixir-lsp/elixir-ls/pull/256 Could somebody ensure that the pipeline is rerun and the fix for the bug is merged. Thanks.

@x-ji commit was squash and ci are all green.


Update UserGuide.md

Codecov Report
Base: 65.82% // Head: 65.82% // No change to project coverage :thumbsup:

Coverage data is based on head (0073ec5) compared to base (4c8a8b8).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #102   +/-   ##
=========================================
  Coverage     65.82%   65.82%
  Complexity      627      627
=========================================
  Files           101      101
  Lines          2335     2335
  Branches        288      288
=========================================
  Hits           1537     1537
  Misses          690      690
  Partials        108      108

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Can't use Portable.BouncyCastle NuGet package

I'm trying to build a .NET Core 2.1 application that uses the Portable.BouncyCastle package.
The app builds OK but when I run it I get this output:
Unhandled Exception: Org.BouncyCastle.Security.Certificates.CertificateException: Failed to read certificate ---> System.TypeInitializationException: A type initializer threw an exception. To determine which type, inspect the InnerException's StackTrace property. ---> System.TypeInitializationException: A type initializer threw an exception. To determine which type, inspect the InnerException's StackTrace property. ---> System.Reflection.MissingMetadataException: 'Org.BouncyCastle.Security.DigestUtilities.DigestAlgorithm[]' is missing metadata. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=392859
   at SecretSquirrel!<BaseAddress>+0x6c0089
   at SecretSquirrel!<BaseAddress>+0xa90746
   at SecretSquirrel!<BaseAddress>+0x16eb6fe
   at SecretSquirrel!<BaseAddress>+0x6be504
   at SecretSquirrel!<BaseAddress>+0x6bdc38
   at SecretSquirrel!<BaseAddress>+0x962ff0
   at SecretSquirrel!<BaseAddress>+0x63dda8
   at SecretSquirrel!<BaseAddress>+0x7b6c58
   at SecretSquirrel!<BaseAddress>+0x7b5276
   at System.Array.CreateInstance(Type, Int32) + 0x4f
   at System.Enum.GetValues(Type) + 0x19a
   at Org.BouncyCastle.Utilities.Enums.GetEnumValues(Type) + 0x5e
   at Org.BouncyCastle.Utilities.Enums.GetArbitraryValue(Type) + 0x2b
   at SecretSquirrel!<BaseAddress>+0x9e318c
   at SecretSquirrel!<BaseAddress>+0x162cc8a
   at SecretSquirrel!<BaseAddress>+0x162c4f9

   --- End of inner exception stack trace ---
   at SecretSquirrel!<BaseAddress>+0x162c5e5
   at SecretSquirrel!<BaseAddress>+0x162c292
   at Org.BouncyCastle.Security.DigestUtilities.GetDigest(String) + 0x30
   at Org.BouncyCastle.Security.SecureRandom.CreatePrng(String, Boolean) + 0x31
   at Org.BouncyCastle.Security.SecureRandom..ctor() + 0x30
   at SecretSquirrel!<BaseAddress>+0xa99b12
   at SecretSquirrel!<BaseAddress>+0x162cc8a
   at SecretSquirrel!<BaseAddress>+0x162c4f9

   --- End of inner exception stack trace ---
   at SecretSquirrel!<BaseAddress>+0x162c5e5
   at SecretSquirrel!<BaseAddress>+0x162c292
   at Org.BouncyCastle.Math.BigInteger..ctor(Byte[]) + 0x16
   at Org.BouncyCastle.Asn1.DerInteger.get_Value() + 0x2d
   at Org.BouncyCastle.Asn1.X509.TbsCertificateStructure..ctor(Asn1Sequence) + 0x132
   at Org.BouncyCastle.Asn1.X509.TbsCertificateStructure.GetInstance(Object) + 0x5f
   at Org.BouncyCastle.Asn1.X509.X509CertificateStructure..ctor(Asn1Sequence) + 0xb8
   at Org.BouncyCastle.Asn1.X509.X509CertificateStructure.GetInstance(Object) + 0x67
   at Org.BouncyCastle.X509.X509CertificateParser.ReadPemCertificate(Stream) + 0x66
   at Org.BouncyCastle.X509.X509CertificateParser.ReadCertificate(Stream) + 0x220
   at SecretSquirrel!<BaseAddress>+0x162c4ef
   at SecretSquirrel!<BaseAddress>+0x162c292
   at Org.BouncyCastle.Math.BigInteger..ctor(Byte[]) + 0x16
   at Org.BouncyCastle.Asn1.DerInteger.get_Value() + 0x2d
   at Org.BouncyCastle.Asn1.X509.TbsCertificateStructure..ctor(Asn1Sequence) + 0x132
   at Org.BouncyCastle.Asn1.X509.TbsCertificateStructure.GetInstance(Object) + 0x5f
   at Org.BouncyCastle.Asn1.X509.X509CertificateStructure..ctor(Asn1Sequence) + 0xb8
   at Org.BouncyCastle.Asn1.X509.X509CertificateStructure.GetInstance(Object) + 0x67
   at Org.BouncyCastle.X509.X509CertificateParser.ReadPemCertificate(Stream) + 0x66
   at Org.BouncyCastle.X509.X509CertificateParser.ReadCertificate(Stream) + 0x220

   --- End of inner exception stack trace ---
   at Org.BouncyCastle.X509.X509CertificateParser.ReadCertificate(Stream) + 0x2b5
   at k8s.CertUtils.GeneratePfx(KubernetesClientConfiguration) + 0x248
   at k8s.Kubernetes.SetCredentials(KubernetesClientConfiguration, HttpClientHandler) + 0x235
   at k8s.Kubernetes..ctor(KubernetesClientConfiguration, DelegatingHandler[]) + 0x2e8
   at SecretSquirrel.ViewModels.MainWindowViewModel.<LoadSecrets>d__5.MoveNext() + 0x161
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x31
   at SecretSquirrel!<BaseAddress>+0x16303d1
   at SecretSquirrel!<BaseAddress>+0x16302ec
   at SecretSquirrel!<BaseAddress>+0x1630259
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0x19
   at SecretSquirrel.ViewModels.MainWindowViewModel.<OnPropertyChanged>d__4.MoveNext() + 0x182
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x31
   at SecretSquirrel!<BaseAddress>+0x168f02c
   at Avalonia.Threading.AvaloniaSynchronizationContext.<>c__DisplayClass5_0.<Post>b__0() + 0x36
   at Avalonia.Threading.JobRunner.RunJobs(Nullable`1) + 0xc8
   at Avalonia.Win32.Win32Platform.WndProc(IntPtr, UInt32, IntPtr, IntPtr) + 0xb2
   at SecretSquirrel!<BaseAddress>+0x1aca951

So it looks like it's choking on the this line:
https://github.com/bcgit/bc-csharp/blob/f18a2dbbc2c1b4277e24a2e51f09cac02eedf1f5/crypto/src/util/Enums.cs#L62
which is called from this line:
https://github.com/bcgit/bc-csharp/blob/f18a2dbbc2c1b4277e24a2e51f09cac02eedf1f5/crypto/src/security/DigestUtilities.cs#L54
My rd.xml file has this entry for the assembly:
<Assembly Name="BouncyCastle.Crypto" Dynamic="Required All" />

Using .NET Core SDK 2.1.403 and Microsoft.DotNet.ILCompiler version 1.0.0-alpha-* from MyGet.
Here's my project: https://github.com/RendleLabs/SecretSquirrel

The RD.XML that's needed to fix this is in #5382.

Sorry, it seemed so obscure I didn't bother to search issues. My bad. Thanks for the amazingly fast response!


fix iptables rules order change after docker restart

https://github.com/rancher/rancher/issues/8978
https://github.com/rancher/rancher/issues/9503
Problem:
When docker daemon is restarted, CATTLE iptables rules order gets changed causing problems.
Fix:
Earlier we used to check for the presence of the rule but not check the order. To fix this problem now we have a watcher which creates the chains and installs the rules in the right order upon start and also checks periodically to make sure the order is maintained.
Also in the diff made few other minor changes to make code more readable. (Removed variables for chain names, split the writestrings)

Darren Shepherd [12:00 AM]
Sounds good, just merge


Properly export a Scala 2.10 project for Scala IDE 4.0

The latest and greatest Scala IDE 4.0 supports both Scala 2.10 and 2.11 projects. However, to
correctly configure a Scala 2.10 project in Eclipse, the following project's settings need to be set in .settings/org.scala-ide.sdt.core.prefs:
scala.compiler.additionalParams=-Xsource:2.10 -Ymacro-expand:none
scala.compiler.sourceLevel=2.10

And, of course, we should also make sure that scala.compiler.useProjectSettings=true is set.

What's actually the status of this matter now?
Is sbt -with-bundled-scala-containers=false eclipse still supposed to work as documented in
http://scala-ide.org/blog/Xsource-compatibility.html? I was not having a lot of luck with it today.


Disable Drag events on specific Cards and Columns

Hi, @pnixnoel.
What are you trying to solve with that?
I can't imagine this working. We could prevent a card to be moved, but what if the user moves another card on top of it in its column? The card will be moved anyway...
Can you detail your use case?

I have a scenario where the cards might be created by another user and they should not be moved to another column.
I have understood what you are trying to say about changing the order of the cards.
But if I have a onDragStart event which returns null on specific cards Which should solve my problem this.

I'll let this open to thinking better about that. Feel free to open a PR and implement a proof of concept for that.

Thanks, Will let you know this weekend :)

Any solution or workaround for this yet?


Please upload the pre-train weight

@pvtien96 , Please upload the pre-train weight, EgteaGaze_mask_rcnn_R_50_FPN_3x/model_final.pth", then I can test the performance, thank you.

@stevenwuaggie507 you can download with the link provided in readme

@pvtien96, successfully download the pre-train weight file, model_final.pth, Thank you for quickly response.


PYODBC MSSQL HOOK WORKS with Azure SQL DB

When there was a large insert to MSSQL Azure Database, the insert always timedout, but when tested with PYODBC hook it worked without any problem. thats why i created this hook so that it would be helpful to people who has problems like me.
Make sure you have checked all steps below.
Jira

[ ] My PR addresses the following Airflow Jira issues and references them in the PR title. For example, "[AIRFLOW-XXX] My Airflow PR"

https://issues.apache.org/jira/browse/AIRFLOW-XXX
In case you are fixing a typo in the documentation you can prepend your commit with [AIRFLOW-XXX], code changes always need a Jira issue.

Description

[ ] Here are some details about my PR, including screenshots of any UI changes:

Tests

[ ] My PR adds the following unit tests OR does not need testing for this extremely good reason:

Commits

[ ] My commits all reference Jira issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters (not including Jira issue reference)
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Documentation

[ ] In case of new functionality, my PR adds documentation that describes how to use it.

When adding new operators/hooks/sensors, the autoclass documentation generation needs to be added.

Code Quality

[ ] Passes git diff upstream/master -u -- "*.py" | flake8 --diff

@gautamsumeet Please reopen when meeting contribution guidelines.

I think the code lack testing, and side qq: do we want to have more hooks / operators under contrib folder BTW? How do we know whether it works or not or how well does it get maintained?

This would be helpful for me since Azure SQL is performing slow when inserting large amounts of data.


Radzen Blazor not working

I installed Radzen Blazor package in the main project and then write @using Radzen.Blazor and @using Radzen in both _imports
Then Referenced its script and css in all projects (in their index.html), Now when I open a tag in the MainLayout.razor file there is no Radzen tags recognized by Intellisense, How to do this?

Mayby because it is only conpatible with .net5. I had the same with Blazorise nuget package. Couldnt use the last version in Blazor hybrid. And older versions didnt work well either

Yes I tried an older version and it is working now.

Mobile Blazor Bindings currently works with only .NET Core 3.x. We intend to update it to .NET 6 in the future. (We can't support .NET 5 because Xamarin.Forms isn't compatible with .NET 5.)


Updating the OperationId

Updating the OperationId because the grouping of operations isn't correct.
Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[ ] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and have all been fixed in this PR.
[ ] The OpenAPI Hub was used for checking validation status and next steps.

ARM API Review Checklist

[ ] Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
adding/removing APIs.
adding/removing properties.
adding/removing API-version.
adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

[ ] If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Please follow the link to find more details on API review process.

You don't have permission to trigger SDK Automation.
Please add yourself to Azure group from opensource portal if you are MSFT employee,
or please ask reviewer to add comment *** /openapibot sdkautomation ***.
Please ask<EMAIL_ADDRESS>(or NullMDR in github) for additional help.

@anushreeringne There are a few tips at this link: https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/ci-fix.md on checking the json syntax:
Please run the following command:
npm install; npm run prettier-fix
Or if you want to fix specified service:
npm install; npm run prettier -- --write "specification//**/*.json"
Then please commit and push changes made by prettier.
Let me know if that doesn’t turn up anything.
From: anushreeringne<EMAIL_ADDRESS>Sent: Thursday, February 6, 2020 2:49 PM
To: Azure/azure-rest-api-specs<EMAIL_ADDRESS>Cc: Hassan Rasheed<EMAIL_ADDRESS>Review requested<EMAIL_ADDRESS>Subject: Re: [Azure/azure-rest-api-specs] Updating the OperationId (#8327)
@anushreeringnehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fanushreeringne&data=02|01|hrasheed%40microsoft.com|0008399f70c646f750a808d7ab56b3bd|72f988bf86f141af91ab2d7cd011db47|1|0|637166261192475327&sdata=zhus%2FomSO%2BsFyY2XJzsVf9xMxbu7Gi9eetGj2btl3yQ%3D&reserved=0 requested your review on: #8327https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-rest-api-specs%2Fpull%2F8327&data=02|01|hrasheed%40microsoft.com|0008399f70c646f750a808d7ab56b3bd|72f988bf86f141af91ab2d7cd011db47|1|0|637166261192485327&sdata=rRkIfVN3a%2Bon66i5Hyd1U5K%2F6vzn5RqmTRnCX7%2BXlmc%3D&reserved=0 Updating the OperationId.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-rest-api-specs%2Fpull%2F8327%3Femail_source%3Dnotifications%26email_token%3DAFTGNF5I3CXWNZ67TTD5DK3RBSHUJA5CNFSM4KRDOIIKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOWPAOZAA%23event-3015765120&data=02|01|hrasheed%40microsoft.com|0008399f70c646f750a808d7ab56b3bd|72f988bf86f141af91ab2d7cd011db47|1|0|637166261192485327&sdata=mMmM93KY1O1CBaHgCr8UndzHVrpCJwfeynOziruA3II%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFTGNFZXAXIBTQ6UTAFVMM3RBSHUJANCNFSM4KRDOIIA&data=02|01|hrasheed%40microsoft.com|0008399f70c646f750a808d7ab56b3bd|72f988bf86f141af91ab2d7cd011db47|1|0|637166261192495319&sdata=V5yjvSAiXxGgdiYnWfvtnubv3b40Q9PPdaq%2B8YSrDMo%3D&reserved=0.

@zikalino @MyronFanQiu could you offer any guidance on why the prettiercheck might be failing? We tried the module, but didnt get any errors.

/azp run

@anushreeringne Is this spec management plane or data plane?
For the prettier fix please follow the exact command:
npm install; npm run prettier -- --write "specification/hdinsight/**/*.json"

@anushreeringne Is this spec management plane or data plane?
For the prettier fix please follow the exact command:
moba

This is data plane. As I mentioned I did try to run prettier but was unable to fix the errors.

@anushreeringne Is this spec management plane or data plane?
For the prettier fix please follow the exact command:
npm install; npm run prettier -- --write "specification/hdinsight/**/*.json"

Hi, I got the following error when I tried to run it. I am running it on "Ubuntu 16.04.6 LTS"" and I did update the latest node.js and npm.
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture<EMAIL_ADDRESS>npm ERR! Linux 4.15.0-1066-azure
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR<EMAIL_ADDRESS>preinstall: node ./preinstall-check
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>preinstall script 'node ./preinstall-check'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the autorest package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./preinstall-check
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs autorest
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls autorest
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /home/sshuser/azure-rest-api-specs/npm-debug.log

<EMAIL_ADDRESS>prettier /home/sshuser/azure-rest-api-specs
prettier "--write" "specification/hdinsight/hdinsight-kafka-rest-proxy/proxy.json"

sh: prettier: command not found
npm ERR! Linux 4.15.0-1066-azure
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "prettier" "--" "--write" "specification/hdinsight/hdinsight-kafka-rest-proxy/proxy.json"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR<EMAIL_ADDRESS>prettier: prettier "--write" "specification/hdinsight/hdinsight-kafka-rest-proxy/proxy.json"
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>prettier script 'prettier "--write" "specification/hdinsight/hdinsight-kafka-rest-proxy/proxy.json"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the azure-rest-api-specs-tests package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     prettier "--write" "specification/hdinsight/hdinsight-kafka-rest-proxy/proxy.json"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs azure-rest-api-specs-tests
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls azure-rest-api-specs-tests
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /home/sshuser/azure-rest-api-specs/npm-debug.log

Oh please rebase on latest master
Best Regards,
Phoenix He

From: anushreeringne<EMAIL_ADDRESS>Sent: Friday, February 21, 2020 5:21:05 PM
To: Azure/azure-rest-api-specs<EMAIL_ADDRESS>Cc: Phoenix He<EMAIL_ADDRESS>Comment<EMAIL_ADDRESS>Subject: Re: [Azure/azure-rest-api-specs] Fixing the structure of RESTProxy documentation: Updating the OperationId (#8327)
@anushreeringnehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fanushreeringne&data=02|01|Phoenix.He%40microsoft.com|8c104fb1405846fc3c8408d7b6af60fc|72f988bf86f141af91ab2d7cd011db47|1|0|637178736668968033&sdata=hixkV5gE8vDp21qBqzDvNfmdZn2KhD%2BOWHfUNV7H6Kc%3D&reserved=0 Is this spec management plane or data plane?
For the prettier fix please follow the exact command:
moba
This is data plane. As I mentioned I did try to run prettier but was unable to fix the errors.
@anushreeringnehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fanushreeringne&data=02|01|Phoenix.He%40microsoft.com|8c104fb1405846fc3c8408d7b6af60fc|72f988bf86f141af91ab2d7cd011db47|1|0|637178736668973023&sdata=lcuqXmc9xvX%2F1kDUv86nS2Eu%2BG6O%2F64fhMCxtM%2Bw2ZM%3D&reserved=0 Is this spec management plane or data plane?
For the prettier fix please follow the exact command:
npm install; npm run prettier -- --write "specification/hdinsight/**/*.json"
Hi, I got the following error when I tried to run it. I am running it on "Ubuntu 16.04.6 LTS"" and I did update the latest node.js and npm.
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture<EMAIL_ADDRESS>npm ERR! Linux 4.15.0-1066-azure
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR<EMAIL_ADDRESS>preinstall: node ./preinstall-check
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>preinstall script 'node ./preinstall-check'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the autorest package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./preinstall-check
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs autorest
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls autorest
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/sshuser/azure-rest-api-specs/npm-debug.log
<EMAIL_ADDRESS>prettier /home/sshuser/azure-rest-api-specs
prettier "--write" "specification/hdinsight/hdinsight-kafka-rest-proxy/proxy.json"
sh: prettier: command not found
npm ERR! Linux 4.15.0-1066-azure
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "prettier" "--" "--write" "specification/hdinsight/hdinsight-kafka-rest-proxy/proxy.json"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR<EMAIL_ADDRESS>prettier: prettier "--write" "specification/hdinsight/hdinsight-kafka-rest-proxy/proxy.json"
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>prettier script 'prettier "--write" "specification/hdinsight/hdinsight-kafka-rest-proxy/proxy.json"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the azure-rest-api-specs-tests package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! prettier "--write" "specification/hdinsight/hdinsight-kafka-rest-proxy/proxy.json"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs azure-rest-api-specs-tests
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls azure-rest-api-specs-tests
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/sshuser/azure-rest-api-specs/npm-debug.log
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-rest-api-specs%2Fpull%2F8327%3Femail_source%3Dnotifications%26email_token%3DAAR4YQYQMBXE7PNB5X5BBLTRD6MIDA5CNFSM4KRDOIIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMSB2XA%23issuecomment-589569372&data=02|01|Phoenix.He%40microsoft.com|8c104fb1405846fc3c8408d7b6af60fc|72f988bf86f141af91ab2d7cd011db47|1|0|637178736668978008&sdata=urynq7nSaEGSVpoGUTcEEDdW%2FnYX%2Bs7pIhcNqcvjBmI%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAR4YQ4XQTWLQBC5D7T4ZDTRD6MIDANCNFSM4KRDOIIA&data=02|01|Phoenix.He%40microsoft.com|8c104fb1405846fc3c8408d7b6af60fc|72f988bf86f141af91ab2d7cd011db47|1|0|637178736668983004&sdata=30AaN0HEoFygqE3dV5JUM3wal54x7JiaMzavJJzU3RM%3D&reserved=0.

Oh please rebase on latest master Best Regards, Phoenix He
…
________________________________ From: anushreeringne<EMAIL_ADDRESS>Sent: Friday, February 21, 2020 5:21:05 PM To: Azure/azure-rest-api-specs<EMAIL_ADDRESS>Cc: Phoenix He<EMAIL_ADDRESS>Comment<EMAIL_ADDRESS>Subject: Re: [Azure/azure-rest-api-specs] Fixing the structure of RESTProxy documentation: Updating the OperationId (#8327) @anushreeringnehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fanushreeringne&data=02|01|Phoenix.He%40microsoft.com|8c104fb1405846fc3c8408d7b6af60fc|72f988bf86f141af91ab2d7cd011db47|1|0|637178736668968033&sdata=hixkV5gE8vDp21qBqzDvNfmdZn2KhD%2BOWHfUNV7H6Kc%3D&reserved=0 Is this spec management plane or data plane? For the prettier fix please follow the exact command: moba This is data plane. As I mentioned I did try to run prettier but was unable to fix the errors. @anushreeringnehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fanushreeringne&data=02|01|Phoenix.He%40microsoft.com|8c104fb1405846fc3c8408d7b6af60fc|72f988bf86f141af91ab2d7cd011db47|1|0|637178736668973023&sdata=lcuqXmc9xvX%2F1kDUv86nS2Eu%2BG6O%2F64fhMCxtM%2Bw2ZM%3D&reserved=0 Is this spec management plane or data plane? For the prettier fix please follow the exact command: npm install; npm run prettier -- --write "specification/hdinsight/**/*.json" Hi, I got the following error when I tried to run it. I am running it on "Ubuntu 16.04.6 LTS"" and I did update the latest node.js and npm. npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture<EMAIL_ADDRESS>npm ERR! Linux 4.15.0-1066-azure npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! node v4.2.6 npm ERR! npm v3.5.2 npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR<EMAIL_ADDRESS>preinstall: node ./preinstall-check npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the<EMAIL_ADDRESS>preinstall script 'node ./preinstall-check'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the autorest package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node ./preinstall-check npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs autorest npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls autorest npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /home/sshuser/azure-rest-api-specs/npm-debug.log<EMAIL_ADDRESS>prettier /home/sshuser/azure-rest-api-specs prettier "--write" "specification/hdinsight/hdinsight-kafka-rest-proxy/proxy.json" sh: prettier: command not found npm ERR! Linux 4.15.0-1066-azure npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "prettier" "--" "--write" "specification/hdinsight/hdinsight-kafka-rest-proxy/proxy.json" npm ERR! node v4.2.6 npm ERR! npm v3.5.2 npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR<EMAIL_ADDRESS>prettier: prettier "--write" "specification/hdinsight/hdinsight-kafka-rest-proxy/proxy.json" npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the<EMAIL_ADDRESS>prettier script 'prettier "--write" "specification/hdinsight/hdinsight-kafka-rest-proxy/proxy.json"'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the azure-rest-api-specs-tests package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! prettier "--write" "specification/hdinsight/hdinsight-kafka-rest-proxy/proxy.json" npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs azure-rest-api-specs-tests npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls azure-rest-api-specs-tests npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /home/sshuser/azure-rest-api-specs/npm-debug.log — You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-rest-api-specs%2Fpull%2F8327%3Femail_source%3Dnotifications%26email_token%3DAAR4YQYQMBXE7PNB5X5BBLTRD6MIDA5CNFSM4KRDOIIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMSB2XA%23issuecomment-589569372&data=02|01|Phoenix.He%40microsoft.com|8c104fb1405846fc3c8408d7b6af60fc|72f988bf86f141af91ab2d7cd011db47|1|0|637178736668978008&sdata=urynq7nSaEGSVpoGUTcEEDdW%2FnYX%2Bs7pIhcNqcvjBmI%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAR4YQ4XQTWLQBC5D7T4ZDTRD6MIDANCNFSM4KRDOIIA&data=02|01|Phoenix.He%40microsoft.com|8c104fb1405846fc3c8408d7b6af60fc|72f988bf86f141af91ab2d7cd011db47|1|0|637178736668983004&sdata=30AaN0HEoFygqE3dV5JUM3wal54x7JiaMzavJJzU3RM%3D&reserved=0.

Rebased

Reopening to triggerbuild

#sign-off

/azp run automation - sdk