Change term - continent

Submitter: John Wieczorek (following issue raised by Ian Engelbrecht @ianengelbrecht Issue #221 and tdwg/dwc-qa#141)
Justification (why is this change necessary?): Clarity
Proponents (who needs this change): Everyone
Current Term definition: https://dwc.tdwg.org/list/#dwc_continent
Proposed new attributes of the term:
Usage comments (recommendations regarding content, etc.): Recommended best practice is to use a controlled vocabulary such as the Getty Thesaurus of Geographic Names. Recommended best practice is to leave this field blank if the Location spans multiple entities at this administrative level or if the Location might be in one or another of multiple possible entities at this level. Multiplicity and uncertainty of the geographic entity can be captured either in the term higherGeography or in the term locality, or both.
Replaces (identifier of the existing term that would be deprecated and replaced by this term, if applicable): http://rs.tdwg.org/dwc/terms/version/continent-2017-10-06

Our (GBIF-US) comments from https://github.com/tdwg/dwc/issues/395#issuecomment-1428787941 apply here as well.


[Enhancement] StreamX Data Studio Feature

StreamX Data Studio Feature
For StreamX's Data Studio feature proposal, I have roughly designed a set of Figma prototypes.

The Data Studio is mainly oriented to interactive data development scenarios, providing a collection of features for Flink SQL automatic completion, metadata integration, data lineage, data preview and cluster management .
It contains the following 3 main combination modules:

Data Studio: Provides interactive data development capabilities.
Data Source:  Provide metadata integration and management capabilities.
Cluster Center: Provide Flink cluster deployment and management capabilities.

Online Prototype
You can experience this interactive prototype directly through the following link:
https://www.figma.com/file/IuLLEvfkyVhBB4SCjeaF1J/Data-Studio?node-id=0%3A1

Further Discussion
I have not fully planned for the implementation of this feature and may need more than one person to help complete the plan, which we can discuss further in the current issue or in Github Discussion #565  in Chinese.

+1

finish, close


ENH: import accelerate on demand

Is your feature request related to a problem? Please describe
Importing accelerate results in an error when CUDA is missing.

Fixed by #251


SchemaError from inherited overload

EdgeDB Version: 4.5+641a8f3
EdgeDB CLI Version: 4.0.2+500be79
OS Version:

Schema:
module default {
  type C extending B;

  type B extending A {
    overloaded thing: Movie;
  }

  abstract type A {
    thing: Content;
  }

  type Content;
  type Movie extending Content;
}

SchemaError: link 'thing' of object type 'default::C' cannot be cast automatically from object type 'default::Content' to object type 'default::Movie'

Without C there's no error.
Without overload in B there's no error.
Moving C to be declared below B there's no error.

This sounds similar to what I reported in #6738. I thought the problem was caused by computeds using the overloaded type, but based on your report, it seems like it's actually caused by the order of appearance of the overloading type (type C) and anything that references it.

Encountering this same issue involving overloading a link from an abstract parent type, and getting this same error depending on the order in which types are defined. It makes splitting our large schema into multiple files troublesome. In general it will be difficult to precisely manage the order in which types are defined given the complexity of our schema.

Bumping for visibility.
I also encountered this issue in my schema design. That said, I'm organizing types in different files, so don't have a clear way of asserting order of declaration. I was under the impression that the order in which types were declared didn't matter, so this is definitely interesting (and a bit disconcerting).
I've largely worked around the issue by ensuring that the lowest Type in the hierarchy overloads the .thing property, but that's not always practical.


Error on expect(...) if there's more than one argument

Similar to #34.
Sometimes, I'll think expect is similar to assert_eq, and write something like:
expect(x, 3)
TestEZ doesn't stop this, and it can be a bit annoying to debug. Even with #34, the error that could give wouldn't be as insightful as an error specific to this situation.

I think we should make all of the functions much much more strict to try to catch errors like this.
This is probably the most annoying one!


Can't play video in release mode, NSURLErrorDomain

I'm using  the latest 2.15.2 release version of XCDYouTubeKit:
...
Installing XCDYouTubeKit (2.15.2)
...

I've cleant build folder and rebuilt my app several times. Still, I'm getting those errors:
2021-01-27 14:24:33.162662+0100 MyApp[95703:20601650] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C31.1:2][0x7fdcac146cf0] get output frames failed, state 8196
2021-01-27 14:24:33.162882+0100 MyApp[95703:20601650] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C31.1:2][0x7fdcac146cf0] get output frames failed, state 8196
2021-01-27 14:24:33.165091+0100 MyApp[95703:20601650] TIC Read Status [31:0x0]: 1:57
2021-01-27 14:24:33.165907+0100 MyApp[95703:20601650] TIC Read Status [31:0x0]: 1:57
2021-01-27 14:24:33.843699+0100 MyApp[95703:20602717] Task <42662AEF-08F5-4703-A04C-60F01F6D4212>.<2> load failed with error Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLStringKey=https://r1---sn-25glen7r.googlevideo.com/videoplayback?expire=1611775470&ei=jmkRYPuPJMujxN8P6ZWnkAw&ip=<IP_ADDRESS>&id=o-AN3wzLvQbCHzAG1HkH5bsatttcs1S3diQ6Pd2v120wXp&itag=22&source=youtube&requiressl=yes&mh=dS&mm=31%2C29&mn=sn-25glen7r%2Csn-25ge7nzs&ms=au%2Crdu&mv=m&mvi=1&pl=16&initcwndbps=980000&vprv=1&mime=video%2Fmp4&ns=cO-5vvKoTYsO19abAe1otn0F&ratebypass=yes&dur=135.859&lmt=1608792985397146&mt=1611753633&fvip=1&c=WEB&txp=6216222&n=Kaz0UvrfvoeXhygTGVjl&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cratebypass%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgHLBHXVbv9x2Eor8ffxLhSKzUj2QCcT-rV6NvC_XcohwCIQDmfFpZjntWsJRJ6hoyTsGJhWAmy-7HeRshG85I4sDklg%3D%3D&sig=AOq0QJ8wRQIhAKJFMM7bLxUTY0d5RmjUUEzZ8WC_RvBau642612dWImFAiACQ-9XBH5AqTrL4vZD6irSIXOuMYeXkdBZO0HcK8tP8w==, NSErrorFailingURLKey=https://r1---sn-25glen7r.googlevideo.com/videoplayback?expire=1611775470&ei=jmkRYPuPJMujxN8P6ZWnkAw&ip=<IP_ADDRESS>&id=o-AN3wzLvQbCHzAG1HkH5bsatttcs1S3diQ6Pd2v120wXp&itag=22&source=youtube&requiressl=yes&mh=dS&mm=31%2C29&mn=sn-25glen7r%2Csn-25ge7nzs&ms=au%2Crdu&mv=m&mvi=1&pl=16&initcwndbps=980000&vprv=1&mime=video%2Fmp4&ns=cO-5vvKoTYsO19abAe1otn0F&ratebypass=yes&dur=135.859&lmt=1608792985397146&mt=1611753633&fvip=1&c=WEB&txp=6216222&n=Kaz0UvrfvoeXhygTGVjl&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cratebypass%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgHLBHXVbv9x2Eor8ffxLhSKzUj2QCcT-rV6NvC_XcohwCIQDmfFpZjntWsJRJ6hoyTsGJhWAmy-7HeRshG85I4sDklg%3D%3D&sig=AOq0QJ8wRQIhAKJFMM7bLxUTY0d5RmjUUEzZ8WC_RvBau642612dWImFAiACQ-9XBH5AqTrL4vZD6irSIXOuMYeXkdBZO0HcK8tP8w==, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <42662AEF-08F5-4703-A04C-60F01F6D4212>.<2>"
), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <42662AEF-08F5-4703-A04C-60F01F6D4212>.<2>, NSLocalizedDescription=cancelled} [-999]
2021-01-27 14:24:33.870818+0100 MyApp[95703:20602463] Task <42662AEF-08F5-4703-A04C-60F01F6D4212>.<2> finished with error - code: -999
2021-01-27 14:24:33.872736+0100 MyApp[95703:20602461] TIC Read Status [33:0x0]: 1:57
2021-01-27 14:24:34.463689+0100 MyApp[95703:20602826] [AudioHAL_Client] HALB_IOBufferManager.cpp:226:GetIOBuffer:  HALB_IOBufferManager::GetIOBuffer: the stream index is out of range
2021-01-27 14:24:34.464149+0100 MyApp[95703:20602826] [AudioHAL_Client] HALB_IOBufferManager.cpp:226:GetIOBuffer:  HALB_IOBufferManager::GetIOBuffer: the stream index is out of range
2021-01-27 14:24:34.476365+0100 MyApp[95703:20602826] [aqme] 254: AQDefaultDevice (1): output stream 0: null buffer
2021-01-27 14:24:34.477554+0100 MyApp[95703:20602826] [aqme] 1640: EXCEPTION thrown (-50): -
2021-01-27 14:24:49.410457+0100 MyApp[95703:20602463] [aqme] 177: timed out after 15.000s (0 1); suspension count=0 (IOSuspensions: )
2021-01-27 14:24:49.411587+0100 MyApp[95703:20602463] 239: CA_UISoundClientBase::StartPlaying: AddRunningClient failed (status = -66681).
2021-01-27 14:24:49.740858+0100 MyApp[95703:20603185] [AudioHAL_Client] HALB_IOBufferManager.cpp:226:GetIOBuffer:  HALB_IOBufferManager::GetIOBuffer: the stream index is out of range
2021-01-27 14:24:49.741013+0100 MyApp[95703:20603185] [AudioHAL_Client] HALB_IOBufferManager.cpp:226:GetIOBuffer:  HALB_IOBufferManager::GetIOBuffer: the stream index is out of range
2021-01-27 14:24:49.753667+0100 MyApp[95703:20603185] [aqme] 254: AQDefaultDevice (1): output stream 0: null buffer
2021-01-27 14:24:49.754822+0100 MyApp[95703:20603185] [aqme] 1640: EXCEPTION thrown (-50): -

Video will still play in debug mode (with that error being thrown). However, it won't play in release mode: the player will show  up and disappear right away...
Can you please help me with this issue?

I'm surprised nobody seems to react on this issue. Don't you guys have the same problem on your side???

I'm surprised nobody seems to react on this issue. Don't you guys have the same problem on your side???

Today is  even worse,  I do not have any video playing even in debug mode... Is anyone in  the same situation?

Today is  even worse,  I do not have any video playing even in debug mode... Is anyone in  the same situation?


Publish last version to npm

Can someone bump this?

2.2.10 is current and published. Not sure what you mean.

@agnat i am unsure why i am so stupid, sorry for taking your time :D


INTEL MKL: Enhance Mkl Relu Op with primitive reuse

Enable MKL primitive reuse for Relu Op via caching, to improve
(1) model training and
(2) inference of small batch size
by minimizing primitive creation time.
************ Notes *******************
Please review and merge this PR first
https://github.com/tensorflow/tensorflow/pull/19399

Close temporarily - pending conv_bwd PR

mkl_conv_ops.cc has been reverted to avoid any review confusion.
The new version of mkl_conv_ops.cc is contained in PR #19399.
Thanks

@rmlarsen there are a few of these CLs, I am assigning them to you. You could try to enlist @tatianashp if she's up for it.

Pending on https://github.com/tensorflow/tensorflow/pull/19754

Reopen since PR #19399 has been merged

Yes, i have already singed CLA, and should be ok to contribute.

Hi,
I am the PR submitter and confirm that I am OK with all the changes made by yiqianglee.
Thanks,
GZ

@gzmkl I think many of my comments for PR 19403 would apply to this as well, please modify accordingly.

Plan to apply  PR 19403 comments on this PR too.

@gzmkl resolved conflict.

I think the Mac error is unrelated to this CL.
ERROR: /Volumes/BuildData/tmpfs/bazel_output/_bazel_kbuilder/d1b2600cd78e76a92812a06683f5de10/external/com_google_googletest/BUILD.bazel:45:1: Couldn't build file external/com_google_googletest/_objs/gtest/external/com_google_googletest/googletest/src/gtest-death-test.o: C++ compilation of rule '@com_google_googletest//:gtest' failed: Unexpected IO error.: Running '/Volumes/BuildData/tmpfs/bazel_output/_bazel_kbuilder/d1b2600cd78e76a92812a06683f5de10/execroot/org_tensorflow/_bin/xcode-locator 8.3.3' failed with code 1.
This most likely indicates that xcode version 8.3.3 is not available on the host machine.
Process exited with status 1
stdout: error: Unable to extract CFBundleShortVersionString from URL: file:///Volumes/BuildData/tmpfs/bazel_output/_bazel_kbuilder/d1b2600cd78e76a92812a06683f5de10/external/grpc/tools/dockerfile/distribtest/node_ubuntu1604_x64/

@gzmkl can you ping this PR when you are done applying the changes suggested in PR 19403, please?

Hi Rasmus, I am done with code change with this PR. Thanks!
From: Rasmus Munk Larsen<EMAIL_ADDRESS>Sent: Tuesday, July 31, 2018 5:21 PM
To: tensorflow/tensorflow<EMAIL_ADDRESS>Cc: Zhuang, Guozhong<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [tensorflow/tensorflow] INTEL MKL: Enhance Mkl Relu Op with primitive reuse (#19400)
@gzmklhttps://github.com/gzmkl can you ping this PR when you are done applying the changes suggested in PR 19403, please?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/tensorflow/tensorflow/pull/19400#issuecomment-409408371, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Ab3J2y4p2rtzWj9xpELB3flY7T-p-c88ks5uMPRXgaJpZM4UFTyj.

I have done code change per code review suggestions from other PR (19403).
Please ignore changes in mkl_util.h after PR 19403/19402 have been approved.
Thanks!

Hi,
I have done code change with PR (taking review comments of previous related PRs such as #19403; rebase mkl_util.h to avoid merge conflicts etc). Please let me know if I need to take future actions.
Thanks!

Could you pull rebase and push again to resolve the conflicts? Thanks.

@yiqianglee do you approve the commit for the CLA?

Hi,
Ramesh of our team will take care of merge conflicts, as he has seen many of such on multiple PRs but did not have time to fix this PR.
Thanks,
GZ

I am ok with my commits being contributed to this project.

I am OK with the change (to address merge conflicts) by Ramesh.

Hi,
Ramesh has helped to address the merge conflict.
Somehow the "cla" tag still says "no". Please help to address the cla problem.
We would like to merge this PR asap, because we need to submit Relu3D before the end of the Friday, to give a two-week window for getting into Tensorflow 1.11.
Thank you!

@rmlarsen if you have time, then the authors would like to have this reviewed in the next couple of days or so to make the 1.11 release cutoff.

I am OK with the change by Ramesh and GZ.

@gzmkl Thanks. Sorry about the review delay.

Rasmus,
Thank you very much for the diligent work of review all primitive reuse PRs.
There were too much code change (almost rewriting MKL-DNN integration code).
We truly appreciate your hard work with valuable code refinement suggestions. Great collaboration!
-GZ

Hi,
I saw this PR approved but was not merged. There was a time-time during "Internal CI Build".
Please let me know what I can help. Thanks!  -GZ


allow option to generate conventional commits

https://www.conventionalcommits.org/en/v1.0.0/

Thanks for the feedback! I'm marking this as a duplicate of #22. If you have specific requests, feel free to post in that issue


Add placement-api in the rabbitmq-playbook

After rabbitmq is reset, the openstack services get restarted but placement_api does not because it is was not grepped.

Placement doesn't use RabbitMQ.


How to properly use the "NativeStruct" from current Conari Version?

In your video: https://www.youtube.com/watch?v=QXMj9-8XJnY
you used the obsolete-way with UnmanagedStructure, now you suggest using the NativeStruct way, can u maybe give me a short example of how to make use of those properly, to be able to call it from C++/Delphi?
Because, when i compile the following code:

I get the error you can see in the "Error-dialogbox" below in the screenshot.
How to adapt to that new change you have done for Conari?
Much thanks!

Sry, my bad, the code issue relied on smth else... forget this ticket!

You're right, UnmanagedStructure is marked as obsolete and planned to be removed in future major releases.
Please note, modern NativeStruct provides several ways https://github.com/3F/Conari/wiki/Quick-start#conari-types
For example, you don't need a CLR types declarations at all if this is a fully automatic way, in your example,
NativeStruct.Make.t<CharPtr, int>("a", "b").Struct;

Also do not need a manual marshaling (Marshal.PtrToString...) everything is automated.
This project unfortunately does not provide some good documentations today, but please first try my tests as an example:

https://github.com/3F/regXwild/blob/master/dotnetTest/ConariMatchTest.cs
https://github.com/3F/Conari/blob/master/ConariTest/BindingContextTest.cs
https://github.com/3F/Conari/blob/master/ConariTest/Types/NativeStructTest.cs
https://github.com/3F/Conari/blob/master/ConariTest/Types/NativeStringTest.cs

Let me know if you still have some problems, I'll try to look into later.

Sry, my bad, the code issue relied on smth else... forget this ticket!

I see :) Just close it yourself if it's ok

You're right, UnmanagedStructure is marked as obsolete and planned to be removed in future major releases.
Please note, modern NativeStruct provides several ways https://github.com/3F/Conari/wiki/Quick-start#conari-types
For example, you don't need a CLR types declarations at all if this is a fully automatic way, in your example,
NativeStruct.Make.t<CharPtr, int>("a", "b").Struct;

Also do not need a manual marshaling (Marshal.PtrToString...) everything is automated.
This project unfortunately does not provide some good documentations today, but please first try my tests as an example:

https://github.com/3F/regXwild/blob/master/dotnetTest/ConariMatchTest.cs
https://github.com/3F/Conari/blob/master/ConariTest/BindingContextTest.cs
https://github.com/3F/Conari/blob/master/ConariTest/Types/NativeStructTest.cs
https://github.com/3F/Conari/blob/master/ConariTest/Types/NativeStringTest.cs

Let me know if you still have some problems, I'll try to look into later.

Thanks so far for that example!
My only question now is: by using .NET 6, i am using "record struct" feature, to test this out, but since i have a feeling that it wont work like this, i created a struct-wrapper around that record-struct, like this:

And would this code I have written to allocate unmanaged.memory for that wrapper be okay?
have a look:

Thanks in advanced!

but since i have a feeling that it wont work like this

Why? Did you try it?
~
NativeStruct<SomeRecordStructDef> ns = new(instance);

record struct (record ie. records) just tells the compiler to override some default operators and implements some extra logic in basic struct type for new features available in modern C# and so on.
So I don't see the problem as long as it's marked as LayoutKind.Sequential.
Or use Conari's chains to construct any fields at runtime.
If you need some wrapping in any case,
Well, you can implement some cloning of the available fields into some new type like
SomeRecordStruct srs = ...
using NativeStruct<Wrapper> ns = new(srs.Clone());

Or note, NativeStruct also provides accessing to IntPtr if you want to wrap it inside somewhere somehow
NativeStruct<Wrapper> ns = ...
IntPtr ptr = ns;

etc.

by the way, actually LayoutKind.Sequential limitation is not really ... FYI, https://twitter.com/github3F/status/1317526371921502210

sadly tho, my code based on ur suggestion compiles fine BUT then this:

?
here code:

@Shpendicus
The "empty" export table does not related to NativeStruct use at all. This is not related even for .NET 6 limitation (I hope).
As I said here https://github.com/3F/DllExport/issues/197#issuecomment-1012212736

Make sure you're looking at correct assembly (x64 or x86 folder if you're using both arch)

Or, please open new issue on DllExport project as a bug since empty export directory. I'll investigate it later. Only please follow report steps and provide all minimal information about settings etc. Thanks.

This is entire function to call the "public static int AllocRecord() { return 10 + 35 };" function from .NET 6 and sadly, the equivalent call in Delphi, SEES my exported functions, i get a valid pointer from GetProcAdress(...) BUT when i call it, it shows;:
"External Exception: 0424252"
do you have maybe a clue how this possible? Again, both LoadLib and GetProcAdr do work! and return seeminlgy valid pointers, but then that exception raises for some reason.. really strange.

the equivalent call in Delphi, SEES my exported functions

As I see, the "empty" problem is fixed now?

"External Exception: 0434352"
do you have maybe a clue how this possible?

Depends on your configuration. Copy everything from DllExport's Data tab in GUI
Did you try Use our IL Assembler + Rebase System Object ?

the equivalent call in Delphi, SEES my exported functions

As I see, the "empty" problem is fixed now?

"External Exception: 0434352"
do you have maybe a clue how this possible?

Depends on your configuration. Copy everything from DllExport's Data tab in GUI
Did you try Use our IL Assembler + Rebase System Object ?

sry mate but how u mean "Copy everything from DllExport's Data tab in GUI"
Did you try Use our IL Assembler + Rebase System Object ?
And what u mean by this?  I used ur config tool with the GUI, and i did exactly as u did , idk, for the Conari version I m not sure what to use else , i only copied the config from ur GUI in the yt video. :/ not sure what to change.

Modern 1.7+

Check the mentioned options on the right
[Data] - You can find it after end of project list as you can see

for the Conari version I m not sure what to use else

For Conari everything is fine :)

About full sign, here https://github.com/3F/coreclr/issues/6

maybe im just a jerk xD

Too many features, dependencies, limitations, and a bit documentation.
I mean not everything is so bad :) Feel free to ask, change via PR, or suggest something, and we'll find solution together.

Mate, what im asking now may sound bit much, i admit, but still ; would you mind, adding me on Discord, and use "Share Screen" and watch me how I do the stuff, and then show me maybe, what i am doing wrong and correct me, (am using .net 6; VS 2022)
i would pay u 3€+ per month :) so from 7 to 10€, if u only help me once with this, its so important for me, getting this done in time since i actually am writing for a company a software module, for my university-internship and i wanted to drastically get this work, managing writing code in new .NET 6 and call it from anywhere unmanaged, like Delphi/FPC/C++ etc..

@3F forget what i wrote (i will increase the payment to 10€ anyways, dw!) i made it work, bro :-D finally, i forgot to check in the Configurator in your image above, the option: "-nan(ind)" and then it worked fine :)
The only thing now, i wonder: when i want to return string, or Datetime, as I can see for now, i get a valid pointer back from my function but when i cast my funcPtr to the proper and correct function definition:

I wonder, why he cant execute that, Free pascal-Compiler executes with code "217", and aborts abruptly. What could cause this?

i would pay u 3€+ per month :) so from 7 to 10€, if u only help me once with this, its so important for me,

:) I appreciate any support to me, however, something like this always reminds me of an attempt to buy me or my time in order to solve some tasks or even complete some work. But it costs a lot more.

i made it work, bro :-D finally

I am glad to hear this!

I wonder, why he cant execute that, Free pascal-Compiler executes with code "217", and aborts abruptly. What could cause this?

For today's DllExport 1.7.4 the .NET 6 support is incomplete and more likely(*) will cause some related errors as it was mentioned earlier in DllExport repo.
(* for some cases it may indeed already be ok, for example, like from my yt video where basic pAdd functions etc.)
Try netstadard2.0, if it will work for the same code then this is it. If no, then something with marshaling that can be fixed in your code.

:) I appreciate any support to me, however, something like this always reminds me of an attempt to buy me or my time in order to solve some tasks or even complete some work. But it costs a lot more.

Sry for that, that was the reason I regret formulating my sentence like this, I thought it actually more as a little motivation for a quick help ^^ (sry for that..)
for the rest, well i think  i will write the entire App for now in Delphi, its to complicated like this :D

for the rest, well i think i will write the entire App for now in Delphi, its to complicated like this :D

Why not temporarily decrease TFM to netstandard2.0 until fixes?
I mean changing some parts of the existing source code (just to be compatible for TFM) is a bit faster than fully rewriting it. Isn't it?
For better you can simply use conditional compilation.


Refactor: use zerolog with context if posible

https://github.com/rs/zerolog#contextcontext-integration
this allow us to have "stacktrace" like logs where we can append log prefixes and pass down

yes it wont magically happen ... we have to do it similar to what gitea is doning with the xorm engine in the context ... and also update the logger within the context if we move a down the function calls ... the question mostly comes down to: how easy can we do this without rewriting a ll the stuff ...


encoding: Add the ZlibCompress function

The PR adds zlib compression support to the template, which is useful for generating Kroki diagrams without requiring remote APIs, reducing build time and avoiding network issues.
Template usage:
{{ $diagram := `blockdiag {
  Kroki -> generates -> "Block diagrams";
  Kroki -> is -> "very easy!";

  Kroki [color = "greenyellow"];
  "Block diagrams" [color = "pink"];
  "very easy!" [color = "orange"];
}`
}}
{{- $encoded := encoding.ZlibCompress $diagram | encoding.Base64Encode }}
{{- $encoded = replace $encoded "+" "-" }}
{{- $encoded = replace $encoded "/" "_" }}
{{- $encoded = replace $encoded "=" "" }}
<img src="https://kroki.io/blockdiag/svg/{{ $encoded }}">

If this feature is not going to be accepted, please feel free to close it.

See https://github.com/gohugoio/hugo/blob/master/CONTRIBUTING.md#code-contribution

Any non-trivial code change needs to update an open issue. A non-trivial code change without an issue reference with one of the labels bug or enhancement will not be merged.

Create a proposal first.

Sorry I missed that, issue created #12868.


Feature Request: Job Description

It'd be super helpful if the output of the jobs command showed which module the job was associated with. Easier than scrolling back through the logs to figure out which was which.

We don't do this as a basic "opsec" type thing as the jobs architecture is built on PowerShell jobs and those names can be retrieved. Once we revamp the jobs architecture post BlackHat we will revisit.


Add pre_recorded_policy to proposal update form

Types of changes
Thanks for sending a pull request! Please fill in the following content to let us know better about this change.
Please put an x in the box that applies

[x] Bugfix
[ ] New feature
[ ] Refactoring
[ ] Breaking change (any change that would cause existing functionality to not work as expected)
[ ] Documentation Update
[ ] Other (please describe)

Description
Describe what the change is
This field is essential to make the update form submittable.
https://discord.com/channels/752904426057892052/753841328198254642/955417991409975306
Steps to Test This Pull Request
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Related Issue
If applicable, refernce to the issue related to this pull request.
More Information
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here. You may also want to refer
to how to wirte the perfect pull request

Codecov Report

Merging #1062 (1261345) into master (3fd47db) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 1261345 differs from pull request most recent head 96607a3. Consider uploading reports for the commit 96607a3 to get more accurate results

@@           Coverage Diff           @@
##           master    #1062   +/-   ##
=======================================
  Coverage   69.26%   69.26%
=======================================
  Files          82       82
  Lines        3302     3302
=======================================
  Hits         2287     2287
  Misses       1015     1015

Impacted Files
Coverage Δ

src/proposals/forms/proposals.py
100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3fd47db...96607a3. Read the comment docs.


Exception saving file

I was changing
<None Include="..\..\BouncyCastle.snk">
<Link>BouncyCastle.snk</Link>
</None>

to
<None Include="..\..\BouncyCastle.snk" />

And got this. VsProjectFault_45697bb0-c9f3-4e0d-9378-e99333ef4e60.failure.txt

👍 We'll take a look.

Looks like a CPS issue? @lifengl @jviau

This is duplicated to https://github.com/dotnet/roslyn-project-system/issues/1042

Dup.


I m having only LR images , do it require both LR and HR image pair?

If you train the model, you need both HR and LR. However, if you just want to test, only LR images are required.

for testing i m using only LR images and changes the path in required json file also but it is showing error that HR path is empty

whole traceback is :
Traceback (most recent call last):
File "test.py", line 28, in
test_set = create_dataset(dataset_opt)
File "D:\ESRGANplus-master\codes\data_init_.py", line 33, in create_dataset
dataset = D(dataset_opt)
File "D:\ESRGANplus-master\codes\data\LRHR_dataset.py", line 36, in init
assert self.paths_HR, 'Error: HR path is empty.'
AssertionError: Error: HR path is empty.

You are right. This test is for evaluating the model so both HR and LR images are required. I will update the repository so that testing actually perform the super-resolution of only LR images.

ok thanks (y) and it requires RRDB_SRGAN*4.pth file as well

Try it with the new code

yes its working now. thanks (y)


sync changes from sprint

changes from Ia1688bc99e3471a6579bfedae97e8d6f67d46ab8 to I88278d49bd8992cd3d45cd95c90ee0d8449b4461

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


Immediate Update triggered after click a button on matchcontrol

Immediate Update trigger after clicking a button instead of waiting for the updatetimer to update the values.
This reduces the feedback/update delay you have when clicking a button (i.e. the "goal" button).

Hint: Check the button method and add the LoadMatch() function to it.


License?

MIT?

Of course! (I have moral disagreement with GPL). PR or I can add it when I
get a chance.
On Sun, May 12, 2019 at 10:47 AM Immortalin<EMAIL_ADDRESS>wrote:

MIT?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/christopherdumas/atomicdatabase/issues/4, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAOUZFZWHJGARVZRPPLIJSDPVBJ2PANCNFSM4HMK4CHA
.


Improving the Connect With Same Page !!

Related Issue
[Cite any related issue(s) this pull request addresses. If none, simply state “None”]
Fixes:  #4376
Description
I have changed the navbar  acc to the other pages and also the title bar is wrong , so i changes it to connect with same - swap reads !!
Type of PR

[x] Bug fix
[x] Feature enhancement
[ ] Documentation update
[ ] Other (specify): _______________

Screenshots / videos (if applicable)
BEFORE:

#AFTER :

Checklist:

[x] I have made this change from my own.
[x] I have taken help from some online resources.
[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[x] I have tested the changes thoroughly before submitting this pull request.
[x] I have provided relevant issue numbers and screenshots after making the changes.

@sailaja-adapa ,
https://github.com/user-attachments/assets/68871f27-24a6-4ba6-afdb-2092eb3d0ac7

@sailaja-adapa , add label !!

Done @SrijaVuppala295 sorry for delay


Fix CI cross compiling

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


NetIPInterface Add the possibility to modify the MTU

Hello,
By referring to this documentation https://docs.microsoft.com/en-us/powershell/module/nettcpip/set-netipinterface?view=win10-ps, where this resource has many similarities, we can change the MTU effectively with powershell. Unfortunately, I haven't figured out how to do it with the DSC Networking module.

Hi @Erwan-loot - looks like we don't have this feature in the NetIpInterface resource (where I'd expect it to be). Should be easy enough to add the feature to this resource. I'll open it up for community contribution otherwise I'll add it.

Thanks to your reply
i use ansible et actually i use something like this
- name: Check MTU of the interface {{ interface_renamed.stdout|trim }}
  win_shell: "(Get-NetIPInterface -InterfaceAlias {{ interface_renamed.stdout|trim }}).NlMtu"
  changed_when: False
  register: mtu

- name: Change MTU of the interface {{ interface_renamed.stdout|trim }} on IPv4 from {{ mtu.stdout|trim }} bytes to {{ mtu_size }} bytes
  win_shell: "Set-NetIPInterface -InterfaceAlias {{ interface_renamed.stdout|trim }} -NlMtuBytes {{ mtu_size }} -AddressFamily 'IPv4' "
  changed_when: mtu.stdout|trim != mtu_size

Wokrs but not idempotent

Sweet - should be easy enough to add. I'll get to it as no one else has jumped on it.


Migrate to apiVersion v1 from v1aplha1

fixes #1562

CRDs move apiVersion from camel.apache.org/v1alpha1 to camel.apache.org/v1
Migrate from KameletBinding to Pipe

Rename kind in CRDs
Renamed KameletBinding examples by changing suffix -binding to -pipe
Renamed folder and file names having binding

Updated doc
Updated Yaks tests

Looks good, but validator needs to be fixed.

right. We need the camel k crds to be fixed first so that it exports types correctly. I just reported https://github.com/apache/camel-k/issues/4683

Set as draft while we wait for the fix in yaks and the camel-kamelet api

#1579 is fixed.

while fixing #1579 I realized that Camel JBang 4.0 is not able to handle v1 Pipe resources yet

Right now YAKS tests use YAKS_CAMELK_KAMELET_API_VERSION=v1alpha1. If you set this to v1 (or remove the env setting as v1 is the default) the tests will create v1 Pipe resources instead of v1alpha1 KameletBinding
As mentioned earlier Camel JBang 4.0 runtime may not be able to handle Pipe resources though

Camel JBang 4.0 is not able to handle v1 Pipe resources yet

while fixing #1579 I realized that Camel JBang 4.0 is not able to handle v1 Pipe resources yet

There was a part of Camel  Core/JBang which was able to use Pipe (if i remember well)
I noticed some parts that were missing, should come with 4.0.1 and 4.1.0 https://issues.apache.org/jira/browse/CAMEL-19732

If supporting Pipe is not completely working, we should wait to merge this one and release with just camel 4.0.0 release upgrade. Once everything is in place we could merge this one and release a 4.0.1

The migration of KameletBinding to Pipe sounds like an API break. Having it in a major version sounds better.
Is it a possibility of not releasing the Kamelets 4.0.0 and jump directly to 4.0.1 which will pick Camel Core/JBang 4.0.1 and Camel K 2.0.1?

I don't think it's good to not have a 4.0.0 release. But if the pipe upgrade is incomplete this PR cannot be merged

@davsclaus what are your thoughts on this?

This would require Camel 4.0.1 to work with camel-jbang for the kamelet binding -> pipe renaming.
The v1alpha1 -> v1 works on 3.x and 4.x and is no problem.

So are you suggesting to release as is and merge this one only with 4.0.1?

No its okay but just a known issue for camel-jbang with 4.0.0 that you need to use KameletBinding as the name. We will do 4.0.1 next month so it not very long time

And Pipe will work on camel-k 2.0

Ok, I'll add this one before releasing, together with some new Kamelets

Thanks

currently lost with go ( I think it is the first time that I modify a go file), various errors with my different attempts, some of them:

Error: validator.go:13:2: no required module provides package github.com/apache/camel-k/v2/pkg/apis/camel/v1; to add it:

Error: ./validator.go:177:29: undefined: "github.com/apache/camel-k/pkg/apis/camel/v1".JSONSchemaProp
Error: ./validator.go:422:26: undefined: "github.com/apache/camel-k/pkg/apis/camel/v1".Kamelet
Error: ./validator.go:450:22: undefined: "github.com/apache/camel-k/pkg/apis/camel/v1".Kamelet
Error: ./validator.go:494:2: undefined: "github.com/apache/camel-k/pkg/apis/camel/v1".Kamelet
- ```
go get github.com/apache/camel-k/v2/pkg/apis/camel
go: errors parsing go.mod:
/home/apupier/git/camel-kamelets/script/validator/go.mod:7:2: require github.com/apache/camel-k/v2/pkg/apis/camel: version "v2.0.1" invalid: should be v0 or v1, not v2
(base) [apupier@localhost validator]$ go get github.com/apache/camel-k/v2/pkg/apis/camel
verifying<EMAIL_ADDRESS>checksum mismatch
	downloaded: h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
	go.sum:     h1:ahVqZF4n1W4NqwvVnZzC4es67xsW9uR/RRf2RRxieJU=

SECURITY ERROR
This download does NOT match an earlier download recorded in go.sum.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.

(to say that if someone know what to change in the go files, they will be a lot faster than me)

@christophd would you mind having a look at yaks tests?

Can you please rebase? It should be based on 1.20.x golang

Locally it goes, don't know why through gh actions is not working.

we are going ahead, we just need to change the upsert Kamelet for salesforce to v1 and validation should pass @apupier

it seems that Camel Jbang 4.0.0 is still used:
https://github.com/apache/camel-kamelets/actions/runs/6081335137/job/16496954462?pr=1566#step:7:173
 [jbang] Resolving dependencies...
[jbang]    org.citrusframework.yaks:yaks-parent:0.16.0@pom
[jbang]    org.citrusframework.yaks:yaks-jbang:0.16.0
[jbang]    org.citrusframework.yaks:yaks-runtime-core:0.16.0
[jbang] Dependencies resolved
[jbang] Building jar for YaksJBang.java...
0.16.0
[jbang] Resolving dependencies...
[jbang]    org.apache.camel:camel-bom:4.0.0@pom
[jbang]    org.apache.camel:camel-jbang-core:4.0.0
[jbang]    org.apache.camel.kamelets:camel-kamelets:4.0.0-RC1

https://repository.apache.org/content/groups/snapshots/org/apache/camel/camel-jbang-main/4.0.1-SNAPSHOT/

I don't know if it's really feasible to have yaks tests passing.

I don't know if it's really feasible to have yaks tests passing.

It's not YAKS fault.

Can't we use Camel JBang 4.0.1-SNAPSHOT?

Can't we use Camel JBang 4.0.1-SNAPSHOT?

I don't think so, it doesn't pick it up.

🤔 we would need to tell JBang to use this repository, too when resolving Maven artifacts. I think this must be added to the YAKS Camel JBang call. I can do this in YAKS.
Besides that I think we could also just keep using KameletBinding on the YAKS tests. Camel JBang is supposed to support both Pipe and KameletBinding and in the end we are keen to test the Kamelets here not the runtime

Can't we use Camel JBang 4.0.1-SNAPSHOT?

I don't think so, it doesn't pick it up.

🤔 we would need to tell JBang to use this repository, too when resolving Maven artifacts. I think this must be added to the YAKS Camel JBang call. I can do this in YAKS.
Besides that I think we could also just keep using KameletBinding on the YAKS tests. Camel JBang is supposed to support both Pipe and KameletBinding and in the end we are keen to test the Kamelets here not the runtime

Yes, this is another possibility and then switch after 4.0.1 @apupier could you do that?

Can't we use Camel JBang 4.0.1-SNAPSHOT?

I don't think so, it doesn't pick it up.

🤔 we would need to tell JBang to use this repository, too when resolving Maven artifacts. I think this must be added to the YAKS Camel JBang call. I can do this in YAKS.
Besides that I think we could also just keep using KameletBinding on the YAKS tests. Camel JBang is supposed to support both Pipe and KameletBinding and in the end we are keen to test the Kamelets here not the runtime

if i remember well, it is this repository which helped to catch that Camel JBang was not ready for Pipes so even if it was not be the initial purpose, it sounds like the current best way to test it.
if we do not remove KameletBinding in 4.0.0 of the Catalog, I fear it means to introduce quite an important change in 4.0.1

Yes, this is another possibility and then switch after 4.0.1 @apupier could you do that?

Looking to provide a PR with just the upgrade of Camel K CRDs which should be possible to be decorrelated from the kameletBinding -> Pipes move

recreated branch on top of main (was too many conflicts to fixed, easier to redo).
Yaks test failing awaiting for Camel JBang 4.0.1

rebased on main branch now that Camel 4.0.1 has been released

@christophd can you have a look?

YES, tests are fixed!

Yuppie!

Let's merge, great work @apupier @christophd


RandomState uses global random state

Current master (77c0ac33ada105bc8e97065a5ae4041fea7d5b13)
Code
import cupy

rs = cupy.random.RandomState()

rs.seed(100)
print(rs.uniform())

rs.seed(100)
print(rs.uniform())

rs.seed(100)
print(rs.choice(3, size=10))

rs.seed(100)
print(rs.choice(3, size=10))

Output
0.6116323343956134
0.6116323343956134
[0 2 2 2 0 0 1 2 0 1]
[0 0 0 2 0 0 1 0 2 1]

These functions are (directly or indirectly) used from RandomState. We need to either fix them to allow custom random state or avoid using them.

cupy.random.gumbel
cupy.random.uniform
cupy.random.randint

I found there's already cupy.RandomState.uniform method, and NumPy has numpy.RandomState.gumbel and numpy.RandomState.randint methods. So we can simply move these two generators into cupy.RandomState.


Implement black and isort pre-commit hooks

Also add isort check to CI.

https://pre-commit.com/
https://pre-commit.com/hooks.html
https://black.readthedocs.io/en/stable/integrations/source_version_control.html
https://pycqa.github.io/isort/docs/configuration/black_compatibility.html

Added black, isort and a handful of official pre-commit hooks (whitespace, newline, YAML/JSON checker...).


Readme instructions for testing on downstream catalog interim builds

Signed-off-by: Tesshu Flower<EMAIL_ADDRESS>

/retest


UnboundLocalError

Hi, thanks for your code sharing. I meet an error during the inference.
Traceback (most recent call last):
File "main.py", line 87, in
main()
File "main.py", line 84, in main
test(args, config)
File "~/Pycharmproject/SERIL/evaluation.py", line 151, in test
results[i][0, Ti] = score[i]
UnboundLocalError: local variable 'results' referenced before assignment
Does anyone know how to fix that?

Hi @Yukino-3 ,
Sorry for my late replying.
While your set your testing noisy dataset properly, the task_num variable will not be zero, and hence the model_list will not be a null list. To this end, the UnboundLocalError issue might be solved.

Seems that you did not set your path of testing noisy dataset properly.


Unable to load basis compressed normal  map.

I am trying to get the Normal map texture from a basis encoded file.
I specify the filePath in the field for MyClass : TextureFileLoader(BasisUniversalTexture)
I am getting the following error.
UnityException: LoadRawTextureData: not enough data provided (will result in overread).
UnityEngine.Texture2D.LoadRawTextureData[T] (Unity.Collections.NativeArray`1[T] data) (at /Users/builduser/buildslave/unity/build/Runtime/Export/Graphics/Texture.cs:631)
KtxUnity.BasisUniversalTexture+d__2.MoveNext () (at Library/PackageCache/com.atteneder.ktx@0.8.1/Runtime/Scripts/BasisUniversalTexture.cs:103)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at /Users/builduser/buildslave/unity/build/Runtime/Export/Scripting/Coroutines.cs:17)

@atteneder So I was digging in the code, I don't really have a computer graphics background, but really want to get this working. There are couple things that I found in the BasisUniversalTexture.LoadBytesRoutine() method. seems like the BasisUniversalJob doesn't contain the texture data after the file is parsed. I am expecting to get an RG11 encoded normal map.
In the function below, when I log the format values it outputs RGBA_BC7_SRGB (BC7_RGBA) when I was hoping for RG11.
I feel like the data is not present because of the discrepancy in the formats.
`IEnumerator TranscodeImage2D(BasisUniversalTranscoderInstance transcoder, NativeSlice data, bool linear) {
Debug.Log("Transcoding Image..........");
// Can turn to parameter in future
uint imageIndex = 0;
        var meta = transcoder.LoadMetaData();

        var formats = GetFormat( meta, meta.images[imageIndex].levels[0], linear );

        if(formats.HasValue) {
            Debug.LogFormat("Transcode to GraphicsFormat {0} ({1})", formats.Value.format, formats.Value.transcodeFormat);

#if KTX_VERBOSE
Debug.LogFormat("Transcode to GraphicsFormat {0} ({1})",formats.Value.format,formats.Value.transcodeFormat);
#endif
Profiler.BeginSample("BasisUniversalJob");
var job = new BasisUniversalJob();
            job.imageIndex = imageIndex;

            job.result = new NativeArray<bool>(1,KtxNativeInstance.defaultAllocator);

            var jobHandle = BasisUniversal.LoadBytesJob(
                ref job,
                transcoder,
                data,
                formats.Value.transcodeFormat
                );

            Profiler.EndSample();

            while(!jobHandle.IsCompleted) {
                yield return null;
            }
            jobHandle.Complete();

            if(job.result[0]) {
                Profiler.BeginSample("LoadBytesRoutineGPUupload");
                uint width;
                uint height;
                meta.GetSize(out width,out height);
                var flags = TextureCreationFlags.None;
                if(meta.images[imageIndex].levels.Length>1) {
                    flags |= TextureCreationFlags.MipChain;
                }
                texture = new Texture2D((int)width,(int)height,formats.Value.format,flags);
                texture.LoadRawTextureData(job.textureData);
                texture.Apply(false,true);
                Profiler.EndSample();
            } else {
                Debug.LogError(ERR_MSG_TRANSCODE_FAILED);
            }
            job.sizes.Dispose();
            job.offsets.Dispose();
            job.textureData.Dispose();
            job.result.Dispose();
        }
    }`

Any help is appreciated.

Hi @sarangborude,
Can you provide the mentioned texture for testing? (basis file, original file and encoding options ideally)
Loading "classic" normal maps (tangent space RGB) should work (you have to explicitely load it as linear texture; no sRGB), but ETC1s mode has lots of artifacts. One workaround is to use UASTC mode, the more profound solution is to encode the RG channels into a basis texture with two slices, where the color is the X- and the alpha channel is the Y component.
I presume you're trying the latter via the -separate_rg_to_color_alpha option of basisu, right? I haven't tried this yet myself. I presume I'd need to make changes in both the native library (C++) and the C# bindings for this to work.
If you want to try, a demo, how to override/explicitely set the texture format transcoded to can be found in the FormatTest scene of the KtxUnityDemo project:
https://github.com/atteneder/KtxUnityDemo/blob/5f14e9c426432dad9bbeaa8cbc0847b1a7b32bac/Assets/Scripts/FormatTest.cs#L105
But again, never tried RG normal maps so I doubt you'll get results quick.

Created a feature issue #26


Author "the minimum you need to know about language X" guides

Right now we assume folks wanting to learn Pulumi understand their language of choice. For many newcomers, however, that's not the right assumption to make.
Let's write a series of user guides that detail the minimum you need to know about language X to be successful with Pulumi. It turns out you can get started with a vast subset -- especially in languages like Python -- and that we should be able to give you a quick 20 minute tour of that subset.

[ ] Python
[ ] JavaScript (maybe TypeScript)
[ ] C# (maybe other languages (eventually))
[ ] Go

By the way, I assume Chef broke similar ground here, since they used Ruby and a fair bit of their community came from non-developer backgrounds. I found this guide (https://docs.chef.io/ruby/) which is close to what I had imagined, although it's a bit more of a holistic end to end tour of the syntax, versus "the minimum features and best practices you need to know."


[IDEA] Type-Aware Rule Parsing

I'm curious on your thoughts here. I am using this repo, but mainly just for the rule parsing. I have separate evaluation logic for our use internally. This logic would be improved with the ability to retain the type information from Sigma searches in YAML format. Currently, all values (i.e. float, string, integer) are loaded as strings. If  the value is not scalar, it is empty when loaded by sigma-go.
I have tested this with the following modifications to the Field Matcher struct:
type FieldMatcher struct {
	Field     string
	Modifiers []string
	Values    []interface{}
}

func (f *FieldMatcher) unmarshal(field *yaml.Node, values *yaml.Node) error {
	fieldParts := strings.Split(field.Value, "|")
	f.Field, f.Modifiers = fieldParts[0], fieldParts[1:]

	switch values.Kind {
	case yaml.ScalarNode:
		f.Values = []interface{}{nil}
		return values.Decode(&f.Values[0])
	case yaml.SequenceNode:
		return values.Decode(&f.Values)
	case yaml.MappingNode:
		fallthrough
	case yaml.DocumentNode:
		f.Values = []interface{}{map[string]interface{}{}}
		return values.Decode(&f.Values[0])
	case yaml.AliasNode:
		return f.unmarshal(field, values.Alias)
	}
	return nil
}

This works as long as you don't import evaluator, but breaks the evaluator implementation currently. Since I don't use the evaluator that is bundled here, I wanted to check if this was something you'd be interested in supporting before going any further down this road. To be clear, I'd be okay with making the necessary modifications to the evaluator to support/understand the interface{} value types myself, and submit a full PR. I just don't want to go down that path if it's not something you agree with as the project owner.
My use-case is basically that there are some things like |gt or |lt modifiers which operate on numeric values or more complex custom Sigma additions which require structured/typed data in the field matcher values. For example, internally we have a |nested modifier which interprets the value as a separate condition operating on nested documents within the event. This is impossible to implement since the current parser drops any values that aren't scalar.
If you're not interested here, I may end up maintaining an internal fork, but I'd love to push whatever I can back upstream if you're interested. :smiley:

For reference, the branch I am currently working under in my fork is feature/type-aware-field-matcher although it's based on #29 because you had already approved that PR, so I was expected a merge relatively soon and wanted to test all these changes together with some of our internal stuff.
I did go through the evaluator a bit to see if I could get it working since I realized most of the logic was contained in one function, so the changes weren't too drastic. The tests still pass in that branch, so that's promising, but I'm still happy to discuss this further. I'm just tinkering for now. :P

Yeah this is definitely something I've been thinking about: the gt and lt modifiers would be useful to get working.
Until now I'd been considering a JavaScript-style type coercion approach i.e. keep everything as strings but when using the gt/lt modifier it would try to parse both values as a number before comparing them (which is currently how the cidr modifier works)
Ultimately some amount of type coercion is going to be necessary (YAML makes it ambiguous whether 1 is a number of an unquoted string) but having types wouldn't hurt here.
I think this approach is good 👍🏻 Values []interface{} means any type information from the rule can be used by the evaluator for better comparisons and it happens to let your nested modifier work too
It's not ideal that this pushes some rule validation cases to evaluation time, but that's already the case in a few places (and can be caught by sigmafmt)


Serial port not found on macOS

The changes introduced with 85c8eb8 break serial port detection on macOS 12 (Monterey)

This currently gives the following output when attempting to access a ESP32-C3-DevKitM-1:
espflash $ cargo run --bin espflash -- board-info /dev/tty.usbserial-113110
    Finished dev [unoptimized + debuginfo] target(s) in 0.04s
     Running `target/debug/espflash board-info /dev/tty.usbserial-113110`
Error: cargo_espflash::no_serial

  × No serial port specified in arguments or config
  help: Add a command line option with the serial port to use

While the device is present
espflash $ ls -l /dev/tty.usbserial-113110                                                                        (master)
crw-rw-rw-  1 root  wheel  0x900007a 31 Jan 23:47 /dev/tty.usbserial-113110

It looks like this is caused by serialport-rs currently returning USB serial devices as PciPort

It returns actually available devices as PciPort instead of UsbPort and so the detection from detect_usb_serial_ports returns an empty vector
USB serial devices are still returned from serialport::available_ports() but as PciPort.

There are already two tickets tracking this issue at serialport-rs

https://gitlab.com/susurrus/serialport-rs/-/issues/106
https://gitlab.com/susurrus/serialport-rs/-/issues/115

And there is the merge request https://gitlab.com/susurrus/serialport-rs/-/merge_requests/104 which fixes this issue for me

Using this fixed version (https://github.com/sirhcel/espflash/commit/5d714448c7df25259625b3adcfec7968d49a66a0) of serialport-rs lets my development board show up again:
espflash $ cargo run --bin espflash -- board-info /dev/tty.usbserial-113110
    Finished dev [unoptimized + debuginfo] target(s) in 0.04s
     Running `target/debug/espflash board-info /dev/tty.usbserial-113110`
Serial port: /dev/tty.usbserial-113110
Connecting...

Chip type:         ESP32-C3 (revision 3)
Crystal frequency: 40MHz
Flash size:        4MB
Features:          WiFi
MAC address:       [...]

Thanks for the issue.
I'll keep this brief, as I have made a longer comment in this issue:
https://gitlab.com/susurrus/serialport-rs/-/issues/111
We are working on getting the serialport-rs project back on its feet, whether that means taking over the project or forking it. I have been in discussion with some people regarding, so hopefully we will have a resolution in the coming weeks. We can then begin to address the upstream issues which are affecting us.

Thank you for raising your hand at https://gitlab.com/susurrus/serialport-rs/-/issues/111! I was not aware of this issue when fiddling around with this issue here yesterday. This is definitely a critical path, so count me in as a maintainer deputy. Fingers crossed that things sort out well!

No real updates regarding serialport-rs yet other than "I'm working on it". Hoping to have something usable by next week, but no promises.
I did apply a patch to my fork which seems to have solved this issue though! So once this fork is available we should have a solution for this issue.


Catalog structure

I believe as soon as the interest in contributing will grow, single level recipe list will be impossible to use. Catalog-like structure would for sure help organizing related stuff. It would also be way better than paging the list of recipes. There could be rules like setting a limit of recipes in a catalog etc.

This might be a good time to talk about how the curl search will work. I would imagine that'd be easier to do if we keep it in mind when restructuring recipes
I'm interested in working on the search if @LukeSmithxyz can tell me how he wants it ran. I can whip something up in rust with actix-web pretty quick but I have a feeling that goes against the philosophy of this project

Well, from curl or from browser search will require executing some code at runtime. Don't know what software currently serves the static content, but if it's apache/nginx whatever, for sure it is capable of invoking a script that would scan directories and filter out not matching files.
I am actually thinking about making the page "recursive". Imagine that you have the following recipe folder structure:
+ index.html
- polish_food
    + pierogi
    + rosół

then polish_food could actually have also an index.html which would be created according to a template and would be responsible only for recipes in that polish_food folder.
Compiling could then be recursive too.
And searching could search down from path, so:
GET /polish_food/search

would retrieve only results from polish food.
I believe it's pretty natural approach.

In fact that would form a linked list which is super handy, since other resources could be distributed all over the world on different servers, but the whole website would present a single interface. Only searching would be problematic, between servers if we consider searching deeper than one level

How would you handle someone searching for steak instead of beef? Or what if there's a dish that's both Polish and beef?

I am not sure if I understand the question. Are you asking about complex searches with logical expressions?
Searching could be done following the simple principles:

In each recipe you provide a list of tags/related expressions
Each recipe has a meaningful title
Each recipe lays in a catalog that is related to the recipe or other way around.
Then you could just look at files down the requested path and simply decide if the tag list, title or catalog names match the requested query

Okay that makes sense. One thing I would like to see is a better organization structure for authors. I plan to submit quite a few articles so it'd be nice if I could have a folder that contained all of my content

That is quite a problem. I think It depends on the strategy, but this site, since it will be focused on content and not authors (it's about recipes not who made them), doesn't need that feature. If you want to keep all your recipes in one place the best would be to create your own instance of the site and link it with other instances. If searching of authors would be crucial, we could say that each author should have a top level folder with his name and surname. And you could ask like to give you one or you could still make your own instance and link it to the Luke's site. The one really problematic thing still would be searching through all of the content, since it would require recursive requests between instances which will not work.

I would propose just categorizing alphabetically based on the first letter.

 I don't see why content should be kept sorted in some predefined way since its best to sort on search or while displaying. Well in this particular case pages would be sorted while compiling and putting together references to them

Git supports symlinks natively, so a recipe could be in many directories at once. Then each directory could have a site with a central automatically generated list. Going with @twiclo 's example, let's say someone wanted to upload "ozór wołowy" which is both Polish and beef. He could upload a txt file with a list of directories where the recipe fits:
cuisine/polish
ingredient/meat/beef

The original files could be in some folder segregated by authors, and then a script could create symlinks to them. I think such site structure would be good for discoverability of new recipes without any need for javascript or dynamic site generation.
And on a category site you could just ctrl+f. What do you think?

Sounds good, simpler and better searching at almost no cost.

There should still be a page with all the recipes as a single level list though (and preferably alphabetically sorted), that would make for the easiest ctrl+f.

Symlinking the articles is an interesting idea. It's a way of getting tagging for free.
We can, of course, still have a massive page with every link as well, but I feel like normalfriends will not like that too much.

Mentionning #78 as well, since it's related.

Symlinking the articles is an interesting idea. It's a way of getting tagging for free.

I'm not sure how that would work, you still need an index page per tag referencing all tagged articles. Plus symlink is a slippery slope towards spaghetti code.

I feel like normalfriends will not like that too much.

Normalfriends have a plethora of food blogs and fancy youtube videos to go to, I feel like as soon as you're offering a based static website with minimal CSS, you're already kind of filtering most of them...

I think you're right. Since the indexing pages would be there with the symlinking approach anyway, why bother symlinking at all if you can just link the original.
The indexing pages for each tag are already there tho, and they all fit on the main page, so most of the job is done.
There could be a directory tags with files listing out all tags of a given category, like tags/cuisines with a cuisine list. The makefile could put them on the homepage with <h3>'s for the category name and/or on their subpages. For tags outside of categories, using cat tags/* and join with the existing code generating the tag list could put them in "others".

Have you thought about building a simple information retrieval system? We could use very basic circa 2000 indexing and query processing.


Overheating

Occasionally, the espresso machine can enter into unstable behavior where the temperature controller forces the machine to overheat.
To Do:

Review the logic that handles temperature reading exceptions
Review the logic that treats inaccurate temperature readings
Propose various solutions below for improving both the temperature reading exceptions and treatment of inaccurate temperature readings
Publish alternative bug fix releases, each with its own solution to overheating
A-B test each bug-fix version and identify the version that prevents overheating

Revisions:
temp.py

Removed handling of RuntimeError exceptions raised while reading the current temperature value
Removed handling of error within the temperature readings

temp_pid.py

Reduced the threshold for over-heating to the set-point rather than an arbitrary temperature
Added try/except to exit the process with an I/O error code during RuntimeError exceptions raised while reading the current temperature value (main.py will restart the temperature controller subprocess automatically when temp_pid.py exits with the I/O error code).


Allow getting the PrimitiveDateTime of a OffsetDateTime

This is already possible through getting the date and time and making a primitive but would just be nicer to have easy API.

This was previously declined in #369, #390, #395, and #454. It is highly recommended to search before opening an issue or PR.

This was previously declined in #369, #390, #395, and #454. It is highly recommended to search before opening an issue or PR.

Why would this not be allowed? Obviously many people would like to do this. It is only logical as for many instances you do not want to have any Offset at all. Just the pure UTC and this will enforce only UTC by type.
Besides that there is also no way that new() is as fast as copying the underlying data structure directly.

Please read the linked issues. I have repeatedly articulated my reasons for declining this request and will not do so again here.

Please read the linked issues. I have repeatedly articulated my reasons for declining this request and will not do so again here.

I have read those comments. Fine that you wish that people be safe with Time and 'most' people need the offset.
That does not mean all people need the offset. This is just a lacking API.
The argument of internal representation changing is flawed due to the fact that PrimitiveDateTime is also a public struct and thus using date and time to create it will then likely also be broken due to this internal restructuring.

People want the utc_datetime field exposed largely because it's a field. That's terrible reasoning.
You want to discard information that is absolutely necessary. I have yet to see a use case where this API is actually needed. To give you an idea of how easy it is to get wrong, your comment is wrong.

This is already possible through getting the date and time and making a primitive

This is not what you're doing in the PR. Time is complicated, and you should never discard information you have about the offset.
Unless you truly have something new to add, I'm not going to keep responding. I've been over this before.

This is not what you're doing in the PR. Time is complicated, and you should never discard information you have about the offset.

Are you saying that creating an OffsetDateTime using OffsetDateTime::now_utc() then getting date and time and creating a PrimitiveDateTime is not the same as my PR?
Please enlighten me on why it is not the same, cause i would love to know...

Yeah only when you actually need the offset. If you actually do not need the offset it is not. If you read my comment above time passing is not different in UTC or +5 offsets.

If you need the time passed, you should use Duration::span or Instant. Anything else is error-prone. Clocks aren't guaranteed to tick evenly, or even move forward in time.
If you call now_utc, it is the same. In any situation where the offset is not UTC the result would not be the same.
Stop calling my arguments "flawed". I have clearly articulated my reasons. I have far more experience with time handling and my goal is to reduce the amount of things you do wrong. Not implementing this request is part of doing that.

If you call now_utc, it is the same. In any situation where the offset is not UTC the result would not be the same.

I am well aware. Thank you! I only want to do time arithmetic in the UTC timezone so keeping a timezone is useless.

Stop calling my arguments "flawed".

Well, sadly they just are partially flawed. You can not use Duration if the Duration is yet unknown. I can not use Instant as it does not provide the full functionality required to do complex calculations and your offset eats into my limited embedded memory.
If i had plenty to spare I would really be fine with your view and technically I truly understand it. But this just wastes compute cycles and memory.
Anyways, I do not think we will figure this out. Which tbh, is kinda sad as your crate is all around the best related to time.
Just think about it and someday you might change your view. No hard feelings so, have a good evening/day!

I only want to do time arithmetic in the UTC timezone so keeping a timezone is useless.

It's semantic information that is certainly not useless.

You can not use Duration if the Duration is yet unknown

I mentioned Duration::time_fn, which creates a Duration.
You mention "complex calculations" but do not elaborate. Without an actual use case, which I've already indicated I do not have, I have no reason to add an API like this. You need to explain why Instant isn't sufficient. Four bytes is very little, even on the smallest targets Rust supports.

You and I both know that you edited Duration::time_fn. That just times a function. I have to do physics related calculations on  signals.
Instant is the most bare bones API that you can imagine. It does not even allow simple replacing of sub elements.

You mention "complex calculations" but do not elaborate

I can't it has to do with signal processing. I recognize working with time is hard that is the sole reason I want to use your crate. But the inability to go from Offset to Primitive just makes it all the more awkward.
If instants had a more elaborate API (similar to Primitive), I would use it. Is this something that you do feel ok with extending?

You and I both know that you edited Duration::time_fn.

Within one minute of posting because I got the method name wrong. I never suggested using the entirety of Duration, nor do I appreciate the implication that I did. Edits are fully public, including the time they occurred.

simple replacing of sub elements.

What's that?

I can't it has to do with signal processing.

Then I'm afraid I can't help you in any way. The lack of a defined use case does not lead to things getting added. Declining to elaborate just means I still don't have a use case.

If instants had a more elaborate API (similar to Primitive), I would use it. Is this something that you do feel ok with (allowing) extending?

time::Instant exists to permit some nicer APIs with time::Duration. Nothing else. It is otherwise identical to std::time::Instant. It is fundamentally opaque. These properties are all documented.

lets just agree that this wont work out. I don't see the point in arguing with you. You and I are both set in our ways and it seems that there is little room for an agreement.

The lack of a defined use case does not lead to things getting added. Declining to elaborate just means I still don't have a use case.

I never implied such a thing. I have accepted that it won't be added. If I was allowed to share more information I would.

What's that?

Replacing of seconds, nanoseconds, etc.
I would like to add that there is something to say for providing access to the primitive.
Calling such a function would need to yield a primitive that has not been adjusted for different offsets.
As that is the whole merit of time Primitives that they are not offset depended or free from offsets and are solely based on UTC.
With the calls to Date and Time the whole premise of pureness of the primitive is discarded.
Anyways, Jacob, if you are still not inclined to add the functionality I would like to thank you for your time and work on this crate. Best wishes :)

I'm not set in my ways, I just haven't seen a use case.
Instant doesn't have the concept of seconds and nanoseconds. It's an opaque value, even to me. Ultimately there is little I can do with the information I've been provided.

As that is the whole merit of time Primitives that they are not offset depended or free from offsets and are solely based on UTC.

This is the fundamental point. Primitive means there is no offset or an unknown offset, not that the offset is UTC.


upgraded dependecy version for jackson

Issue #, if available:
Description of changes:
upgraded the Jackson version
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Similar pull request created by bot


Fix g-image not adding height attribute

This PR fixes an issue where the browser wouldn't be able to save space for images even when this info was available 😢

Use both width and height to set the intrinsic size of the image, allowing it to take up space before it loads, to mitigate content layout shifts.
<img>: The Image Embed element - HTML: Hypertext Markup Language | MDN

Every Gridsome project utilizing g-image has content shift issues because this one simple line is missing. Please merge.

Just adding a kludge I found on the discord: @soulfulwater made a patch you can apply using patch-package to fix this, until Gridsome puts out another release.


FlowStatsfile.csv

i have got an error when i would like to execute the controler:
this is the error:  FileNotFoundError: [Errno 2] No such file or directory: 'FlowStatsfile.csv'
help me please

https://drive.google.com/file/d/1N2QLDPb90XOdxcuQ_Fb7ZSVOG4J3w_zY/view
you can find that here

thank you my dear. so how do you test it.  i have seen command with hping
but i haven't seen the dashboard of ryu and even wireshark. i have directly
download your vm. so may you explain me and give me the link of the
dashboard. ryu and how to see if ddos attack are blocked.
cordially
Le mer. 31 mai 2023 à 15:45, Chirag Biradar @.***> a
écrit :

https://drive.google.com/file/d/1N2QLDPb90XOdxcuQ_Fb7ZSVOG4J3w_zY/view
you can find that here
—
Reply to this email directly, view it on GitHub
https://github.com/chiragbiradar/DDoS-Attack-Detection-and-Mitigation/issues/6#issuecomment-1570267496,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AX25J74TMJIPL6T5QHWGPR3XI5DPLANCNFSM6AAAAAAYVMK3JU
.
You are receiving this because you authored the thread.Message ID:
<chiragbiradar/DDoS-Attack-Detection-and-Mitigation/issues/6/1570267496@
github.com>

You can view it in ryu vm terminals and also with wireshark

It means i install wireshak in ryu and i attack ryu and also i will see what will happen?
-------- Original message --------From: Chirag Biradar @.> Date: 13/06/2023  11:45  (GMT+03:00) To: chiragbiradar/DDoS-Attack-Detection-and-Mitigation @.> Cc: Jiresse120GB @.>, Author @.> Subject: Re: [chiragbiradar/DDoS-Attack-Detection-and-Mitigation] FlowStatsfile.csv (Issue #6)
You can view it in ryu vm terminals and also with wireshark
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

you can install wireshark in your host machine and ssh both vm in your host machine and run the wireshark

Thanks brother.  I think i must install both of them in ryu vm or mininet vm
-------- Original message --------From: Chirag Biradar @.> Date: 18/06/2023  11:48  (GMT+03:00) To: chiragbiradar/DDoS-Attack-Detection-and-Mitigation @.> Cc: Jiresse120GB @.>, Author @.> Subject: Re: [chiragbiradar/DDoS-Attack-Detection-and-Mitigation] FlowStatsfile.csv (Issue #6)
you can install wireshark in your host machine and ssh both vm in your host machine and run the wireshark
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

Thanks brother.  I think i must install both of them in ryu vm or mininet vm -------- Original message --------From: Chirag Biradar @.> Date: 18/06/2023 11:48 (GMT+03:00) To: chiragbiradar/DDoS-Attack-Detection-and-Mitigation @.> Cc: Jiresse120GB @.>, Author @.> Subject: Re: [chiragbiradar/DDoS-Attack-Detection-and-Mitigation] FlowStatsfile.csv (Issue #6) you can install wireshark in your host machine and ssh both vm in your host machine and run the wireshark —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

i need your help also please


react/prop-types is not working when no jsx is used

import React from "react";
import PropTypes from "prop-types";

function FuncComponent({children, unUsedProp}) { // does not show error
  React.useEffect(() => {}, []);
  return children;
}

FuncComponent.propTypes = {
  children: PropTypes.node,
};

import React from "react";
import PropTypes from "prop-types";

function FuncComponent({children, unUsedProp}) { // shows error
  React.useEffect(() => {}, []);
  return (
    <div>
      {children}
    </div>
  );
}

FuncComponent.propTypes = {
  children: PropTypes.node,
};

If it's a function (not a class), and you're not using jsx, there's no way for static analysis to know it's a React component.
You could always return <>children</>, to avoid the need for the div.

what do you mean "there is no way"?
there is definetly a way - MyFunction has propTypes prop
yeah it may be difficult because of reassignment but still possible
const MyRefFunc = forwardRef(function FuncComponent({}, ref){})
MyRefFunc.propTypes = {};

Yes, but the issue is with FuncComponent, not MyRefFunc, and forwardRef doesn't take a component - it takes a function callback. So, in this case, it's not a component.

yeah i did not check last example, apperently it works.

I’d suggest wrapping children in a fragment (or, React.Children.only) to make it clear it’s a react component.


Add camping amenities & nature play to defs.svg

For:
https://github.com/fpdcc/webmap_data_updates/issues/117

Also adjust titles:


Rival 3 Support

EDIT: Added the device ID
EDIT2: Added sensitivity increments and range
I've tried to do as much debugging as I can and was able the determine the commands for sensitivity and polling rate. I did not have such luck with the lighting.
Device ID
The Rival 3's ID is 1038:1824.
Sensitivity
Sensitivity is in increments of 100 and goes from 200 to 8500. The command is 0b 00 followed by up to 7 arguments:

Total configured sensitivity levels
Currently selected sensitivity level
Sensitivities 1 through 5 (if applicable) according to the following formula:

int(dpi / 50 + int((dpi - 200)/300))

It's possible I overlooked a simpler way to calculate that, but here are the first few values (in decimal):
200 = 4
300 = 6
400 = 8
500 = 11
600 = 13
700 = 15
800 = 18
900 = 20
1000 = 22
1100 = 25
1200 = 27
1300 = 29
1400 = 32
1500 = 34

You can see it's a simple pattern, and the formula provided works.
For example, selecting level 2 out of 4, where the levels are 200, 400, 800, and 1600 DPI, respectively:
0b 00 04 02 04 08 12 24

Polling
Polling is identical to the base Rival config: 04 00 where the choices are 1000, 500, 250, and 125, corresponding to 01, 02, 03, and 04, respectively.
Lighting
I was able to save the packets for steady-state LED colour, but I had no luck trying to write the commands to hidraw myself. There are 3 lighting zones: top, middle, and bottom/logo; they are always written at the same time like so:
0a 00 0f <top> <middle> <bottom> <bottom>

Example, setting top to #123456, middle to #654321, and bottom/logo to #0088ff:
0a 00 0f 12 34 56 65 43 21 00 88 ff 00 88 ff

However, like I said, although I was always able to see these packets coming through, I couldn't write them myself like I could with sensitivities and polling rate.
Saving to device memory
Like other mice, 09 will save the configuration to the mouse's memory.
Please let me know if there is any more reverse engineering I should do. I didn't even attempt to do the more complex lighting configurations since I couldn't get the base configuration to work.

Hello,
Thank you for your work! I finish some things on the rivalcfg4.0 branch and I will have a look to this mouse. I will at least try to implement polling and sensitivity and we will then look at the colors.
Here is the default config of the mouse (extracted from SSE).  :)

Oops I forget, can you also give the result of the following command:
 lsusb | grep 1038

to have the exact product_string from the mouse :)

This is what the interface looks like for steady colours. As you can see, there are only three selectable areas. My guess is that they keep the logo colour separate in the metadata to keep it consistent with some of the other models that treat the logo separately.
The complete lsusb entry on my system is this:
Bus 002 Device 005: ID 1038:1824 SteelSeries ApS SteelSeries Rival 3

I started working on the branch 111-rival3. Currently I only implemented:

Polling rate
save

I have some questions for the other settings :)
Sensitivity

If I understand, you can configure up to 5 different sensitivity preset?
You can also configure only one and in that case, the packet size is different (0b 00  01 01 04 for example?)
The second param is the currently selected sensitivity preset.

So you can switch sensitivity preset from the PC (I ask because the Rival 3 is the first to do that)?
They start counting presets from 0 or from 1 (to select the first preset, you have to write 00 or 01 in this param)?

Does the button under the wheel switches between DPI profiles like on other Rival mice?

Colors

However, like I said, although I was always able to see these packets coming through, I couldn't write them myself like I could with sensitivities and polling rate.

How did you tries to write those packets? Using /dev/hidraw*?
Some Rival models uses HID feature report instead of a simple output report for colors... If you still have your captured packet, can you check this? In Wireshark, there is a wValue field near the data fragment. if it contains 02 XX it is an output report, and if it is 03 XX it is a feature report.

Sensitivity

Yes, up to 5 different sensitivity presets can be configured.
Correct, if you only configure one the packet size is different, however you could consider it as the same size just with zeros for the other values.
Yes, you can switch presets from the PC using SSE3.
Presets are 1-indexed. 01 will select Preset 1.
Yes, the switch under the middle mouse button will cycle through presets in ascending order.

Colors
Yes, I tried to write the color data to /dev/hidrawX and it did not work. Sometimes it would say Invalid argument, sometimes it would return successfully but the colors would not change.
The value of wValue is 02 00 for all packets I'm seeing during the color setup.

I will try to work on this the weekend. But I have just a question... What happened if you set 0x00 as preset ID? Does it just keep the currently selected preset?

Hey! Thanks for the work on this handy utility. Nicely written.
Initially I got as far as BenJuan26, but then after checking out the rival3 branch, and putting in the udev rule, I managed to get colour control working by changing to interface_number 3 in the profile and adding in a colour control command.
Also, note that there are four zones, being base top, base mid, base bottom and logo. I just hacked in a new value type rgbcolorzone that takes a list of colors and sends them accordingly. I might check out the blinky stuff later if I get time, but my real motivation was to turn annoying bling off.
HTH

Sorry for the delayed response. Setting 0x00 as preset ID is identical to setting 0x01, no matter which one was previously selected.
@cdeegz Do you have a fork with colour control working that I could try?

@BenJuan26 sorry, no fork, but how about a patch?
rival3-colorfix.patch.txt

Nice, the colours work for me with the patch applied. It's interesting that the logo is indeed its own zone, but they haven't exposed that through SSE3.

I am currently working on Rivalcfg 4.0, so I do not know if I will add support for this mouse in Rivalcfg 3.x. Probably I will add its support directly to Rivalcfg 4.0.
Anyway, thank you for your work! :D

Hello,
I am working on the support of the Rival 3 on Rivalcfg 4.0. I just implemented sensitivity. Can you test it works ?

The code is on the branch: rivalcfg4.0-rival3
You can find the doc here: https://flozz.github.io/rivalcfg/devices/rival3.html#sensitivity-dpi

→ I start working on colors now :)

Getting an error. I think it's related to the change to 4.0:
$ sudo rivalcfg -s 800
Traceback (most recent call last):
  File "/usr/bin/rivalcfg", line 11, in <module>
    load_entry_point('rivalcfg==4.0.0.dev0', 'console_scripts', 'rivalcfg')()
TypeError: main() missing 1 required positional argument: 'args'

it seems there is a mix of both versions...
For now, you can try from the git repository:
git clone https://github.com/flozz/rivalcfg/
cd rivalcfg
git checkout rivalcfg4.0-rival3
python -m rivalcfg --version

I will try to reproduce you issue tomorrow to see how this can be fixed :)

Colors are now implemented too for the Rival 3. This can be tested with params like this:
--colors FF1800
--colors blue
--colors red,lime,blue,purple

any news ? :)

I lost quite a bit of time trying to make it work, as I'm not very familiar with Python, but I finally found my problem.  Here's the result:
sudo python3 -m rivalcfg -c red,green,blue,white

@w3aponx Yeah ! It works :D
Can you try sensitivity too? For example
sudo python3 -m rivalcfg -s 200,200,200,200,8000

With this setting, the cursor should be very slow at first, then if you click on the dpi switch button 4 times, you will be on the 5th preset and the mouse cursor should move quickly
You can then reset to the default value (with 2 presets):
sudo python3 -m rivalcfg -s 800,1600

Thank you for your help :)

@flozz Works like a charm.  And also I now do away with sudo, having run with --update-udev once.  Nice touch.

Thank you very much for the feedback, I will merge this in the rivalcfg4.0 branch :D
→ This mouse will be supported in rivalcfg 4.0 :)


Remove AI Javascript comments

These will remain in version control history, but makes it easier to read and gives a more reasonable line-count.

@ov3y do you need anything from me to merge this PR?


Process @State annotation from implemented interfaces

I have a feature request that would help us to write modular pact provider tests while still making sure that all interactions of a pact are being validated.
Background:
Let's say we have a UserService implemented with Spring Boot and a UI implemented with Angular. The consumer tests in the UI build are creating a pact file defining all interactions between UserService and UI.
On the provider side we have multiple RestControllers, each providing endpoints for a subset of the interactions defined in the pact.
The default way to create a provider test with pact-jvm is to create a single provider test class for the whole pact file. However, this test class may become quite large and is a pain to work on in parallel.
Current Workaround:
We would like to separate concerns and create a separate provider test class per RestController, each testing a subset of the interactions. Currently, we are doing that by using @PactFilter. This apparently does not work yet in combination with @SpringBootTest (see #572). Also, using @PactFilter has the disadvantage that we cannot be sure that all interactions defined in the pact are actually being tested.
Feature Idea:
Process @State annotations not only on methods of the provider test class itself, but also on (default) methods of all implemented interfaces.
Then we could do something like this:
public interface Controller1ProviderTest {

  UserRepository userRepositoryMock();

  @State("user 42 exists")
  default void shouldGetUser() {
    when(userRepositoryMock().findOne(42))
        .thenReturn(new User("Zaphod"));
  }

  // more @State methods for all states that Controller1 needs

}

@Provider("userservice")
@PactBroker(...)
@SpringBootTest(...)
@RunWith(SpringRestPactRunner.class)
public class UserServiceProviderTest implements Controller1ProviderTest, Controller2ProviderTest, ... {

  @TestTarget
  public final HttpTarget target = new HttpTarget(...);

  @MockBean
  private UserRepository userRepository;

  @Override
  UserRepository userRepositoryMock(){
    return userRepository;
  }

  // implement mock factory methods of all implemented interfaces

}

UserServiceProviderTest then acts as the single entry point for testing all interactions of the pact while we can happily create a separate test class (in the form of an interface with default methods) for each controller.
Does that make any sense? :)

This is a good idea.


Feature Request: Option to set subscription id in relay.subscribe()

Reading through abstract relay, it seems like prepareSubscription() accepts an ID, but the typing is not copied over to .subscribe(), even though I think it does actually work.
https://github.com/nbd-wtf/nostr-tools/blob/e398617fdc0013fdbc1e074ab6dbaeeda6ec69bf/abstract-relay.ts#L264-L276
Could we add the & {id?: string} type to .subscribe()? I'm happy to submit a PR if it's likely to be merged.

Yes, please do it.
But now I am curious on why you need to pass a custom subscription id. Is it just to make it easier to read the raw messages and debug?

Done.
We're tracking which events are seen on which relays, and so we're sending the same subscription to multiple relays. In that context, I want to set my own subscription IDs and then be sure that they're the same across all the relays (even if the generation of IDs changes in nostr-tools). I also want to replace subscriptions by setting new filters, and to track that, I want to set the ID.
It currently works, I can just type coerce it and the id is passed through, but I figured no harm in submitting a PR to fix the types.


Using TextField with type password in a form breaks onSubmit

Use case: Using TextField in a login form.
Expected: Adding onSubmit to a form that surrounds a TextField, including those with type='password', should resolve successfully upon a submit event.
Actual:

Here's an example to reproduce.
class Example extends React.Component {
  constructor(props) {
    super(props);
    this.handleChange = this._handleChange.bind(this);
    this.state = {
      value: ""
    };
  }
  _handleChange({ value }) {
    this.setState({ value });
  }
  _handleSubmit(event) {
    event.preventDefault();
  }
  render() {
    return (
      <Box>
        <Box marginBottom={2}>
          <Label htmlFor="name">
            <Text>Disabled</Text>
          </Label>
        </Box>
        <form onSubmit={this._handleSubmit}>
         <TextField
           id="name"
           type="password"
           onChange={this.handleChange}
           placeholder="Name"
           value={this.state.value}
         />
        </form>
      </Box>
    );
  }
}

Hi @hainessss, I tried reproducing your issue, but couldn't: https://codesandbox.io/s/gestalt-j35zf
Would you be able to create a codesandbox that demonstrates the issue?

@powerlanguage Yea weird, works in my Safari and on codesandbox. So maybe the problem is local to my chrome.  I will close and do some more trouble shooting. Thanks!

Bug seems to be reproducible when using the last pass extension on chrome.


Model data is less than Google Support Devices

I download the support devices pdf at https://support.google.com/googleplay/answer/1727131?hl=en
my android phone model is Huawei p20 pro
I found it in this pdf ,
Huawei P20 Pro HWCLT CLT-AL00
in your datebase, i cant found this model, thx😄

Based upon the following link...
https://www.gsmchoice.com/en/catalogue/huawei/p20pro/
... The Huawei P20 Pro is aka "CLT-L04, CLT-L09, CLT-L09C, CLT-L29, CLT-L29C, CLT-AL00 & CLT-AL01".
Isn't that weird! 😵
~Ibuprophen


Added swagger to the project (see backend/README.md)

Used swagger on the server.
Server's attack sharply rose.
Server is confused.

Would it be worth adding the required annotation to a, existing hello world endpoint so as to show the next developer how to annotate future endpoints?


As an admin, I want to add remarks to a student page.

... so that I can refer back at a later time if needed.

Refactored and under approve appeal command now


Crashlytics reports not sent

Hi
I've followed the steps in the instructions, line by line to add Crashlytics to my Xamarin Forms Android project. However, no crash reports are sent to Firebase.
I see in the output log the following interesting output:
D/FirebaseApp(16436): com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
I/FirebaseInitProvider(16436): FirebaseApp initialization successful
I/CrashlyticsCore(16436): Initializing Crashlytics <IP_ADDRESS>
I/CrashlyticsInitProvider(16436): CrashlyticsInitProvider initialization successful
...
I/FA      (16436):   adb shell setprop debug.firebase.analytics.app com.mycompany.myapp
...
E/Fabric  (16436): Failed to retrieve settings from https://settings.crashlytics.com/spi/v2/platforms/android/apps/com.mycompany.myapp/settings
E/Answers (16436): Failed to retrieve settings
W/CrashlyticsCore(16436): Received null settings, skipping report submission!

Then when crashes happen, the following is shown:
W/CrashlyticsCore(16800): Cannot send reports. Settings are unavailable.
**Crashlytics.MonoExceptionHelper:** '(TargetInvocationException) Exception has been thrown by the target of an invocation.'

So, what's the problem here?
As a note; Firebase is configured correctly.

We are having the same issue .. any update for this?

I also get no crash reports after restarting the app after a crash although the newest version is installed.

I also get no crash reports after restarting the app after a crash although the newest version is installed.


Update net_address shishaonthespot.toml

Description
Previous PR: https://github.com/anoma/namada-testnets/pull/1268
Update shishaonthespot.toml for tesntet-15: https://github.com/anoma/namada-testnets/pull/2174
All previous genesis validators should name their PRs "Update {validator_alias}.toml for tesntet-15" and provide links to previous PRs merged.
If this is an UPDATE for a previous genesis validator
Checks are made against your net_address. If this has changed since the previous testnet, make sure you provide links of previous prs merged from your previous git username.
Thanks in advance!
Checklist before merging

[ ] Only one toml is added in this PR
[ ] The file being added is indeed a .toml file
[ ] The toml being added is to the correct folder, and only to the correct folder
[ ] The eth_hot_key and eth_cold_key are present
[ ] The email, discord, elements telegram, and twitter fields are present and valid

Hi @bengtlofgren . anything i can to to have this MR merged instead of closed?


How extract features from my own images by wenlan?

The current test codes are made for  sample pictures. Can you release a more convenient code for extracting features for a random picture or provide an api.

Maybe this repo can meet your needs.  BriVL-BUA-applications


Allow newer versions of dateutil

This updates dateutil to use version specific requirements and also updates nose to a version that fixes the stack limit bug on Python 3.6 (see this issue).
This also requires that we make changes to the CLI: https://github.com/aws/aws-cli/pull/3197
These must be merged at the same time.
Closes #1429, #1432, #1430

Actually I just saw the linked PR. Can we just include that commit in this PR so we have all of these changes under a single PR?

@kyleknap They're different repositories.

@dstufft Right. Nevermind about my comment then.

Not sure what's going on with the coverage. Might be related to upgrading nose.

Any chance this can be merged and released?

@lbolla We haven't forgotten about this. We're doing a little bit more verification on our side before we merge as this affects our release process.

I assume https://github.com/boto/botocore/pull/1430 can be closed now?

Why would you merge this one instead of #1430? This one fixes this the wrong way...

@joguSD Note that the change to the test in #1430 changes something that will eventually become an error, because the time zone abbreviation changed there is being silently elided on any executor without its time zone set to Pacific time.

@prometheanfire Yep. Unfortunately we can't merge changes to files in the data directory here directly, we get them from upstream.
@pganssle This PR is what https://github.com/boto/botocore/pull/1402 looked like originally, minus the update to nose (which was causing the failures on 3.6). Switching setup.py to also use markers instead of the conditional can break customers using older versions of pip.

@joguSD Those customers always have the option of manually downgrading their version of dateutil. If they install dateutil beforehand, it will not be auto-upgraded by this. All versions of Python that botocore supports support a version of pip that respects python_requires. And this will break if setup.py is run with a different version of Python than the version for which this is installed.
Seems like very much the wrong way to solve this problem since the correct solution is to have people upgrade their version of pip.

@pganssle For some customers upgrading pip isn't always an option. We decided not to use env markers in the setup.py because it already currently uses a conditional. We're trying to introduce as little change as possible to support this.

Unfortunately, we did run into some issues with this PR in our release process. We're going to revert this temporarily until we get our release process updated to handle the new version of dateutil. We apologize for any inconvenience.

can you link us to the issue so we can track it?

@prometheanfire We put these changes back in and they should be going out in the next release.

good to hear :D


Tracking PR for release of bitcoin v0.31.0

In preparation for release of v0.31.0 bump the version number.
The changelog is already up to date because we have done two RC releases.

We'll plan to re-tag and release this as 0.31.0 on Friday Oct 27, assuming nobody shows up with things we need to fix.

ref: https://github.com/rust-bitcoin/rust-bitcoin/pull/2124#issuecomment-1771000358

We found a changelog bug, https://github.com/rust-bitcoin/rust-bitcoin/pull/2143 needs to merge before this can be considered.

I think the changelog bug is minor enough that we shouldn't do a whole rc over it.
I wouldn't mind cutting a release off of master though without a rc, which contains:

#2126 (Debug code only)
#2096 (test code only)
#2143 (changelog only)

Sweet as, rebased on master. No other changes.

Let's do it!

Tagged and published.

CI says: "too many PRs! No cookie for you!"

Error: Error 422: Validation Failed: {"resource":"Release","code":"custom","field":"body","message":"body is too long (maximum is 125000 characters)"}


Recognize Hex Color Errors in Kotlin

This is the color the plugin dispalys :

But this is the correct result:

The Hex color is not properly represented in kotlin.   Note: The latter shows images from android studio's built-in features

Have you tried this setting: "use rgba instead of argb"?

Oh...You are right, thanks.

@mallowigi Couldn't that (arbg or rgba) be autodetected for Color or JBColor ?


Elm[Frontend]

Marking this a WIP as @chrislewispac is planning on creating it

Has anyone started a repo?

@fcevado nope! Feel free to start one :)

ok :+1:

Just created the repo
https://github.com/fcevado/realworld-elm

@EricSimons Can we get a logo for this? 👍

Just spun up a gitter room for this and created the logo for the repo's readme:

There is a full implementation of Conduit at:
https://github.com/rtfeldman/elm-spa-example

"Just Do It™" approach :D

woot! just added to our main readme :) great work all!