Disable the deliberate delay

How to disable the deliberate delay mentioned in https://cjycode.com/flutter_smooth/design/infra/gesture/delay ?
Thanks!

That probably is more than simply disabling it. Looking at the section of doc, we can see it is there to avoid inconsistency. But I guess it should be able to be disabled. Feel free to PR!

@fzyzcjy Unfortunately I won’t be able to create a PR. Could you give me some more instructions to how to disable it please? Thank you!

@theniceboy

Unfortunately I won’t be able to create a PR

Not sure what is happening. do you mean Your github account has some problem?

@fzyzcjy Well I don’t have any knowledge about the flutter framework and to be honest that is way to complex for my understanding. So I won’t be able to file a pull request. I doubt most people will… not because I don’t want to, but I can’t. Not anytime soon.

@theniceboy Well that is a problem :/ It should be more than a flag to disable it. Indeed, need to consider a bit how the change affects other parts of the system. I have not examined the details yet (quite busy now), but the rough idea looks feasible IMHO.

@fzyzcjy Sounds good. Let me know when you get to look at it. Currently the one frame jank issue is the only issue I see in Flutter that’s related to jank. I hope this package will be able to solve it.

Any update on this? @fzyzcjy

Not checked yet, but again you are welcomed to learn more about flutter and check that :)

To be honest it's not really realistic for a normal developer like me to dig into the Flutter framework. Since you have the knowledge, it's best for you to provide some help, and that will be very appreciated! Thanks! @fzyzcjy

To be honest it's not really realistic for a normal developer like me to dig into the Flutter framework.

Don't think it is impossible - every expert in every field must have been a newlearner in the beginning.
As a first step, there are some book chapters discussing flutter internals (since I see you are Chinese, this one looks good: https://book.flutterchina.club/chapter14/flutter_ui_system.html). It is indeed not that hard :)
I will try to find some time to look at it. But as said before, I have my own work to do and need to firstly make the PRs for flutter_smooth.

To be honest it's not really realistic for a normal developer like me to dig into the Flutter framework.

Don't think it is impossible - every expert in every field must have been a newlearner in the beginning.
As a first step, there are some book chapters discussing flutter internals (since I see you are Chinese, this one looks good: https://book.flutterchina.club/chapter14/flutter_ui_system.html written by @wendux). It is indeed not that hard :)
I will try to find some time to look at it. But as said before, I have my own work to do and need to firstly make the PRs for flutter_smooth.

Don't think you got the point haha😄 Difficulty isn't the problem. The problem is that it's not exactly cost-effective for me to work on this (lol), since it's not me but you that's working on your package. Getting this issue resolved gets me marginal benefits compared to the time that's required to put in. If you are not able to help, it's totally okay.
Good luck with the PRs!

I see. But open source is just like this - I do not have infinite time and energy to solve all problems, and since it is open sourced, people can freely contribute :)

I really want to believe that haha😄 But based on the contribution I see on this package... It's gonna be hard.
I do respect your github contribution chart though. You almost have infinite time and energy😄

But based on the contribution I see on this package... It's gonna be hard.

I agree. But anyway, this package is even not production ready yet - because the flutter PRs have not been merged. So hopefully it will be different in the future.

I do respect your github contribution chart though. You almost have infinite time and energy😄

No that just because I prefer to separate commit into tiny parts (you can see the style from my open source libs).
But yes, I do programming 7 days a week.

瑞思拜 bro

Thanks :)
(Btw please speak english in github since it is read by people in the world)

yessir

其实。。。我觉得没关系。。。两个中国人在这儿打英文，心里还是感觉有点别扭。（还这么多语法错误😂）
非常感谢你对Flutter的贡献。我看你的PR有不少困难，希望你和团队接下来的讨论顺利吧。加油！
你要不介意的话要不加个联系方式？我在你的主页上没找到。我的邮箱在我的主页里。

actually. . . I don't think it matters. . . Two Chinese people are typing English here, and I still feel a little awkward. (so many grammatical errors 😂)

It is not the problem of you, but instead the problem of the future readers. What do you feel when you go to a github repo and look at an issue that is important to you, only to find someone speaking languages that you have never learnt? :)
And as for grammar errors - IMHO it does not matter as long as everyone can understand the content.

Thank you so much for your contribution to Flutter. I see that your PR has a lot of difficulties. I hope you and the team will have a smooth discussion next time. come on!

You are welcome. Btw it is me (one single individual developer), not a team.

Would you like to add a contact if you don't mind? I didn't find it on your homepage. My email is on my homepage.

You can find me on github as well as Flutter discord :) I reply usually quite quickly.

哈哈2022年大家都有google翻译吧

不浪费你时间啦，加油加油

Thank you :)

不用谢～

哦哦你没太理解我的意思😂 我是说加油和Flutter团队交流

I see. Thanks :)


It can't be started, and it's stuck from the beginning.

Preparation

[X] I tested the latest release
[X] I looked at other issues (even the closed ones)
[X] I read the Troubleshooting Guide

FGO server
NA
FGA build number
18 55
Describe the bug
Can't start normally, click Start Service and it will get stuck directly.
Video
https://youtu.be/CTqGhRCPXxQ
Device model
bluestacks5
Android version
8
Screen size
1600×900
RAM
4GB

The same thing is happening to me. Did you managed to solved? or you are still having that issue?

I don't use Blue Stack anymore, and I'm using the lightning simulator 9

おや~爱~
@.***

------------------ 原始邮件 ------------------
发件人: @.>;
发送时间: 2022年11月9日(星期三) 晚上8:29
收件人: @.>;
抄送: @.>; @.>;
主题: Re: [Fate-Grand-Automata/FGA] It can't be started, and it's stuck from the beginning. (Issue #1409)
The same thing is happening to me. Did you managed to solved? or you are still having that issue?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>


multiple - maximum photos can pick

Hi everyone,
I am using this lib, and i have an issue
I want to only pick *n (number) photo. So i just only set *multiple and i cannot set maximum number can choose
Thanks

Thank you for your contribution, in the coming days this functionality will be developed

Is there any update on this? I'm looking to have the same functionality


Azure Functions: Create Function not listing templates

Perhaps similar to this past issue?
I'm following this tutorial to create a Durable Function.  The first step to create the empty project works fine. The second step says to press F1, choose "Azure Functions: Create Function...", then choose the template for "Durable Orchestration".  The only templates that I see listed are: "RabbitMQTrigger" and "Http trigger(s) from OpenAPI V2/V3".
Is this is an issue with my local machine? Or is the VSCode Extension querying a remote list of templates that is broken?
There is also a "Change template filter" option in the "Select a template for your function" menu. When I change this filter to "All", I still only see these two templates.

I encountered this exact same issue and wasted a few hours finding that this is obviously a bug that magically appeared. The only items showing up are indeed 'RabbitMQTrigger' and 'Http trigger(s) from OpenAPI V2/V3', which are both unrelated to this template overview.
I tried 'func templates list' in the Terminal, which gives me this for C#:

C# Templates:
Azure Blob Storage trigger
Azure Cosmos DB trigger
Durable Functions activity
Durable Functions HTTP starter
Durable Functions orchestrator
Azure Event Grid trigger
Azure Event Hub trigger
HTTP trigger
IoT Hub (Event Hub)
Azure Queue Storage trigger
SendGrid
Azure Service Bus Queue trigger
Azure Service Bus Topic trigger
SignalR negotiate HTTP trigger
Timer trigger

Looks perfectly OK. So how does the extension screw up?

This was a temporary issue with the remote list of templates, which has since been fixed. However, if you are one of the unlucky few who loaded templates during that time, you will need to clear your cache or wait for us to release an update in the next few days which will automatically fix this for you.
To clear your cache, delete these folders and then reload VS Code:
Mac:
$HOME/Library/Application Support/Code/User/globalStorage/ms-azuretools.vscode-azurefunctions/dotnetTemplates/ and
~/.templateengine/AzureFunctions-VSCodeExtension
Windows:
%AppData%\Code\User\globalStorage\ms-azuretools.vscode-azurefunctions\dotnetTemplates and
%USERPROFILE%/.templateengine/AzureFunctions-VSCodeExtension

Thanks for your reply @ejizba. Initially I just removed the files in those directories, but you need to remove the directories themselves as well. It now works.

Glad you got it working and thanks for the tip!

Just released v1.1.0 of the extension, meaning this should be working even if people don't clear the cache


Consider removing third_party/googleapis submodule

Sorry if this issue is already filed and I couldn't find it...
We should consider removing the third_party/googleapis git submodule. It's the only submodule that we currently use. It's only used by the cmake build, since (I think) bazel will fetch its deps on its own.
It may simplify the build strategy for this project if we cmake and bazel were a bit more similar, and if their of them required a git submodule.
If we decide not to do this, we can record our decision and rationale here.

This is related to https://github.com/googleapis/google-cloud-cpp/issues/1248

So I started the work to do this.  It looks kind of funky, because we need to maintain a CMakeList.txt file (and we already maintain a BUILD file) to compile some code that we download from googleapis.
I think we should explore:

Donating a BUILD file and a CMakeLists.txt file to the owners of googleapis/googleapis.  Last time I understood (via email) that they prefer not to keep language specific files in their code, but we should talk in person.
Create a repository (googleapis/googleapis-cpp-protos ??) where we maintain the build scripts for C++.  That way we can create some CI for it, and it becomes independant from google-cloud-cpp.

I am inclined to go with the second.  We should discuss with the GAPIC folks because we have common interests here.
@devjgm thoughts?

The second option may be fine. I'm inclined to agree with your recommendation here. I also think it's an option for us to continue maintaining our own BUILD file and maintain our own cmake file as well, both within our current google-cloud-cpp repo. This would be pretty close to what we're doing now, I think. What are the downsides of doing this? It seems like this could be a first step toward the second option you mentioned.

What are the downsides of doing this?

As we discussed during the meeting.  The GAPIC folks will probably need to compile the protos themselves.  If we also compile these we are going to have ODRs violations all over the place (I think).
Same thing with us compiling the (for example) Spanner protos and Bigtable protos on each library. The services share common protos, e.g. IAM.
Having said that: I think we can make partial progress by using our own CMake files, the same files would go (almost verbatim) into new repository.


Make cache pruning more flexible

This command deletes only those cached downloads which are not referenced by any existing VM configs.

Should we maybe keep also the images that are included in the current template versions ?

Should we maybe keep also the images that are included in the current template versions, not only instances ?

I have no strong opinion on this.. my case is to cleanup images I've downloaded for some tests and which are not used (doesn't exists) anymore..

I added an issue for the discussion, if we want to keep this PR for the implementation review

I've simplified things and removed the prune subcommands. New CLI switches added instead:
  -F, --fallback       Only prune images without a digest specified (fallback images usually)
  -U, --unreferenced   Only prune downloads not referenced in any VM or template

Updates:

Downloads referenced by a template are dropped from the PR scope
Changes are rebased on the current master branch
Commits are squashed
Few small improvements (better logging, use digest instead of sprintf()'ed sha256)

I think this PR is good, but have run out of time right now (will finish tomorrow).
I found it useful to add a --dry-run option for testing, and I think it may be generally useful, so please consider adding it (but can also be done later in another PR):
--- cmd/limactl/prune.go
+++ cmd/limactl/prune.go
@@ -21,12 +21,17 @@ func newPruneCommand() *cobra.Command {
                ValidArgsFunction: cobra.NoFileCompletions,
        }

+       pruneCommand.Flags().Bool("dry-run", false, "Show which images would be deleted, but don't really delete them")
        pruneCommand.Flags().Bool("no-digest-only", false, "Only prune images without a digest specified (\"fallback\" images usually)")
        pruneCommand.Flags().Bool("unreferenced-only", false, "Only prune downloads not referenced in any VM")
        return pruneCommand
 }

 func pruneAction(cmd *cobra.Command, args []string) error {
+       dryRun, err := cmd.Flags().GetBool("dry-run")
+       if err != nil {
+               return err
+       }
        pruneWithoutDigest, err := cmd.Flags().GetBool("no-digest-only")
        if err != nil {
                return err
@@ -68,20 +73,24 @@ func pruneAction(cmd *cobra.Command, args []string) error {
                                if pruneWithoutDigest && refFile.Digest == "" {
                                        // delete the fallback image entry (entry w/o digest) even if referenced
                                        logrus.WithFields(entryFields).Infof("Deleting fallback entry")
-                                       if err := os.RemoveAll(entry.Path); err != nil {
-                                               logrus.WithError(err).WithFields(logrus.Fields{
-                                                       "path": entry.Path,
-                                               }).Errorf("Cannot delete directory. Skipping...")
+                                       if !dryRun {
+                                               if err := os.RemoveAll(entry.Path); err != nil {
+                                                       logrus.WithError(err).WithFields(logrus.Fields{
+                                                               "path": entry.Path,
+                                                       }).Errorf("Cannot delete directory. Skipping...")
+                                               }
                                        }
                                }
                        } else {
                                if pruneUnreferenced {
                                        // delete the unreferenced cached entry
                                        logrus.WithFields(entryFields).Infof("Deleting unreferenced entry")
-                                       if err := os.RemoveAll(entry.Path); err != nil {
-                                               logrus.WithError(err).WithFields(logrus.Fields{
-                                                       "path": entry.Path,
-                                               }).Errorf("Cannot delete directory. Skipping...")
+                                       if !dryRun {
+                                               if err := os.RemoveAll(entry.Path); err != nil {
+                                                       logrus.WithError(err).WithFields(logrus.Fields{
+                                                               "path": entry.Path,
+                                                       }).Errorf("Cannot delete directory. Skipping...")
+                                               }
                                        }
                                }
                        }
@@ -96,6 +105,9 @@ func pruneAction(cmd *cobra.Command, args []string) error {
        }
        cacheDir := filepath.Join(ucd, "lima")
        logrus.Infof("Pruning everything in %q", cacheDir)
+       if dryRun {
+               return nil
+       }
        return os.RemoveAll(cacheDir)
 }

If there is no release expected in 2 next days I'd like to add dry run because I like the idea. I'll add it tomorrow.

Just for illustration, assuming my cache looks like this:
653M	https://cloud-images.ubuntu.com/releases/22.04/release-20230302/ubuntu-22.04-server-cloudimg-amd64.img
654M	https://cloud-images.ubuntu.com/releases/22.04/release-20230518/ubuntu-22.04-server-cloudimg-amd64.img
727M	https://cloud-images.ubuntu.com/releases/22.10/release-20230413/ubuntu-22.10-server-cloudimg-amd64.img
779M	https://cloud-images.ubuntu.com/releases/23.04/release-20230502/ubuntu-23.04-server-cloudimg-amd64.img
233M	https://github.com/containerd/nerdctl/releases/download/v1.3.0/nerdctl-full-1.3.0-linux-amd64.tar.gz
233M	https://github.com/containerd/nerdctl/releases/download/v1.3.1/nerdctl-full-1.3.1-linux-amd64.tar.gz
238M	https://github.com/containerd/nerdctl/releases/download/v1.4.0/nerdctl-full-1.4.0-linux-amd64.tar.gz
 66M	https://github.com/lima-vm/alpine-lima/releases/download/v0.2.28/alpine-lima-std-3.18.0-x86_64.iso
 66M	https://github.com/lima-vm/alpine-lima/releases/download/v0.2.30/alpine-lima-std-3.18.0-x86_64.iso

I would expect limactl prune --unreferenced-only to leave these files behind, even if I delete all my current instances:
727M	https://cloud-images.ubuntu.com/releases/22.10/release-20230413/ubuntu-22.10-server-cloudimg-amd64.img
238M	https://github.com/containerd/nerdctl/releases/download/v1.4.0/nerdctl-full-1.4.0-linux-amd64.tar.gz
 66M	https://github.com/lima-vm/alpine-lima/releases/download/v0.2.30/alpine-lima-std-3.18.0-x86_64.iso

I guess for backwards compatibility we need to keep the existing behaviour, but I feel like we should require an --all option to wipe the whole cache, and have something safer, like --unreferenced-only the default.

I'm running out of time again, but I also think the --no-digest-only implementation doesn't work:
$ ls -l ~/Library/Caches/lima/download/by-url-sha256/791040918a29bb23fd0bc4bd074e32891299ffcdc0d0d20cd76a4af9593b0fa4
total 1503112
-rw-r--r--  1 jan  staff  769589248 25 May 22:59 data
-rw-r--r--  1 jan  staff         93 25 May 22:57 url
$ limactl ls
WARN[0000] No instance found. Run `limactl start` to create an instance.
$ limactl prune --dry-run --no-digest-only
[no output at all]

Maybe I made a mistake, will need to take a look again on the weekend.

Let me move this to v0.17

Downloads referenced by a template are dropped from the PR scope

I somehow missed this. What is the reason for that?

The reason was to remove the point of the conflict and merge things which everyone is ok with (except @AkihiroSuda maybe 😄 )

I just noticed that when I deleted all my current instances, then limactl prune --unreferenced-only will delete everything in the cache (including the current nerdctl-full archives).

This is expected as there is nothing referencing the downloads. Which is the default behavior of lima prune before this PR.

I'm running out of time again, but I also think the --no-digest-only implementation doesn't work:

Well.. you're right :( I just found it's broken.. I've over-optimized things a bit.. let me fix it

I'm running out of time again, but I also think the --no-digest-only implementation doesn't work:

Well.. you're right :( I just found it's broken.. I've over-optimized things a bit.. let me fix it

Do you plan to update this PR?

I'm running out of time again, but I also think the --no-digest-only implementation doesn't work:

Well.. you're right :( I just found it's broken.. I've over-optimized things a bit.. let me fix it

Do you plan to update this PR?

Yes, I'll continue to work on this later. @jandubois created pretty good definition of the process in #1409. My plan is to follow it. Though this requires some thinking.. Let me change the PR to draft again.

I found that I'm not needed this anymore (I can use my local set of images if needed). Closing this.


Add support for locales with right to left script

Make browser auto detect text direction in editor inputs

Use logical direction mixins to make theme text direction
independent

Apply text direction according to locale

Make IScroll right to left compatible

Use widget margins to replace hard coded paddings and margins which
are supposed to make room for navigation bars

Coverage increased (+0.0002%) to 99.364% when pulling 57fc046b012e6a448056bf48e85552f008bf0db5 on tf:right-to-left into 8e62ac6053f9392fe2bad71011ff3554ed1a9dbf on codevise:master.


Allow async read operation to accept lists of queries

From InfluxDB documentation:
curl -G 'http://localhost:8086/query?pretty=true' --data-urlencode "db=mydb" --data-urlencode "q=SELECT \"value\" FROM \"cpu_load_short\" WHERE \"region\"='us-west';SELECT count(\"value\") FROM \"cpu_load_short\" WHERE \"region\"='us-west'"

They support multiple queries if necessary. Obviously, the JSON response is structured and encoded to return each query detached from the other. Would it be reasonable to support something such as this?:
public Task<InfluxResultSet<TInfluxRow>> ReadAsync<TInfluxRow>( string db, IEnumerable<string> query )`

It would be reasonable to allow inputting an IEnumerable to represent multiple queries.
However, this is already supported. Simply separate each query with a ';' as per the InfluxDB documentation.
This is how it is done:
public async Task Should_Query_Typed_Data()
{
   var resultSet = await _client.ReadAsync<ComputerInfo>( "mydb", "SELECT * FROM myMeasurementName;SELECT * FROM myOtherMeasurement" );

   // resultSet will contain 2 results in the Results collection.
   var result1 = resultSet.Results.FirstOrDefault( x => x.StatementId == 0 );
   var result2 = resultSet.Results.FirstOrDefault( x => x.StatementId == 1 );

   // result1/2 will contain 1 series in the Series collection (or potentially multiple if you specify a GROUP BY clause)
   var series = result1.Series[ 0 ];

   // series.Rows will be the list of ComputerInfo that you queried for
   foreach ( var row in series.Rows )
   {
      Console.WriteLine( "Timestamp: " + row.Timestamp );
      Console.WriteLine( "CPU: " + row.CPU );
      Console.WriteLine( "RAM: " + row.RAM );
      // ...
   }
}

I will close this issue for now.

Thank you!


Right-click an item does not "use" the item (does not update stat.useitem)

Describe the bug
In older updates (version 0.1 dev-11 and below) an item such as an attachment,   a magazine, or camo when right clicked while looking at a block it would "use" the item and count toward the stat.useitem statistic, but in the new update (version 0.1 dev-12) the items stopped doing this. The items stopped counting toward the stat.useitem, and unfortunately I need this for a custom map.
Reproducibility

[x] I reproduced this issue with as few other mods as possible installed.
[ ] I am unable to reproduce this issue consistently.

To Reproduce
  1 - grab an random attachment from the creative menu
  2 -  right click it while looking at a block
  3 - the item will not get used, and doesn't count toward the stat.useitem statistic

Expected behavior
  I expected the item such as a attachment, a magazine, or camo when right clicked count toward the stat.useitem statistic for that item.

Screenshots or/and videos
version 0.1 dev-11 - what I expected to happen
https://github.com/Cubed-Development/Modern-Warfare-Cubed/assets/135933916/b67b7ab9-b324-4438-926e-9815a5b312ab
Logs or/and crash reports
No crash report
Versions

Modern Warfare Cubed: MWC-0.1-Dev-12
Forge: 1.12.2 - <IP_ADDRESS>59
Java: JDK 8
Java JVM: Oracle

Specification:

OS: Windows 10
CPU: Intel i7
GPU: 3070ti
RAM Allocated: 6GB

Most of these information can be found in the task manager

Additional context
Add any other context about the problem here.

Can you tell me what function you want to implement with commands?

Normal Minecraft behavior for items without functions

The change was removing the compatibility layer thus using actual 1.12.2 Minecraft code instead of 1.7.10 code translated to 1.12.2


Adjust the calculation for None intent and True Negatives to match the LUIS batch testing

Here is the suggested design for this change:
When no intents match an existing intent here is how each provider labels the intent:
1- LUIS would return a None intent
{
"text": "helloooo",
"intent": "None",
"entities": [],
"score": 0.9076262,
"textScore": 0.0,
"timestamp": "2020-01-28T11:20:42.8469612-05:00"
}
2. Aws Lex would return a **null ** intent
{
"dialogState": "ElicitIntent",
"intentName": null,
"message": "Sorry, can you please repeat that?",
...
}
3. Dialogflow would return a **default fallback ** intent
{
"text": "how are you today?",
"intent": "Default_Fallback_Intent",
"entities": []
},
Today's code does not support the compare command for Lex results since the format doesn't supports "intentName" #252  will track the work to support Lex properly.
Current design for LUIS and DF is as follows:
null intents are not allowed. It probably means there is no "intent" entry in the JSON which makes the comparison void and we would throw an error when this happens.
None intent and default_fallback_intents are treated like any other intent
To calculate TP the actual and expected intents should match
When the actual intent is different from the expected we will record a FP for the actual and a FN for the expected.
For a given intent, if it doesn't match the actual or expected we then record a TN.
This behavior is matching the calculations that LUIS batch testing does.
Fixes #249

This is a good start, but honestly if we're calculating this, it looks like there is no longer a real reason to compute true negatives (maybe for no entities detected or expected), and any time we have a true positive, we also have a true negative. It seems like we might be able to do away with the confusion matrix results, and just have boolean results for everything...

Agree, True Negatives are not giving much info in this context and are not using for any calculation. I would say even for entities, it doesn't add much value. What do you mean by having boolean results for everything?

In reply to: 586041963 [](ancestors = 586041963)

I think my main concern with this is that we could also solve it by just allowing the user to configure the "true negative" intent.

Superceded by #274


The Ionic slidebox requires explicit CSS to show Ionic content

For instance, the html below will not display any slides even when all variables used contain data. It works if I remove the <ion-content> tag, but then I would not be able to scroll if the content is more than the screen height.
<ion-view title="Title">
    <ion-slide-box show-pager="false">
        <ion-slide ng-repeat="article in filteredArticles">
            <ion-content class="has-header">

            </ion-content>
        </ion-slide>
    </ion-slide-box>
</ion-view>

If I want to keep the <ion-content> tag, I must have explicit CSS like so:
.slider {
    height: 100%;
}

Is there a reason why the .slider class doesn't have a default height of 100%?

hey there. am using ionic one, and am have a problem in slidebox,
am load img from controller but img not load to firstime open or run app,
need to resize and round rotation to showing slidebox,
how to fix guys...

@perrygovier when i put  everthing is ok. you save my life =) thank you

Did this start working?  Any example of how to get a modal with the slide in it?


[UX/UI] Matched collection list on search page not accurate

It seems the list is being built with incorrect results. For instance, a search on Biological is returning 1 result from the api call to collections, but 5 matched collections are shown.

We'll need to revisit this. From a slack conversation:
It's not using the response from that collections api call though, it's using the results from the facet filter search, so the matched collections at the bottom match the collections that show up in the filter. if we filter the collections to the collection api response, then there will be items that show up but don't show the collection at the bottom, which would be confusing.


Runtime error: Could not find a valid pull request within the known CI sources

I'm running danger 0.8.3 in Jenkins 2.11. It works well with GitHub pull request. However, an error occurred when the CI server build regular branches (not a PR). The error log:
Could not find a valid pull request within the known CI sources (RuntimeError)
16:40:07 	/Users/username/.rvm/gems/ruby-2.3.1/gems/danger-0.8.3/lib/danger/danger_core/environment_manager.rb:21:in `initialize

After a little investigation, I found commit 2be9006647edea78ed32e6d1808b4ce71841b03b failed CISource validation early. The environment variable ghprbPullId doesn't exist if the build is not a PR.
My current workaround is to check if ghprbPullId exists before running danger, so that it won't fail the build if I put danger at the end of my building script.

This is a not really a bug from my perspective, Danger cannot run without a PR so she calls raises an error. The idea of supporting a --no-fail flag has come up before - https://github.com/danger/danger/issues/117#issuecomment-194869733 and so that could be done here?

Will danger always return passed if I add a --no-fail flag? If so, it's not the behavior that I expect. My requirement is that if it's not a PR or there aren't enough environment variables, danger skips running instead of crashing the script.
Here is the result of bundle exec danger --verbose command run in travis-ci and that's what I want. https://travis-ci.org/danger/danger/jobs/141102875#L590
bundle exec danger --verbose
Not a Pull Request - skipping `danger` run

However, in Jenkins-CI if there are not enough environment variables (e.g. ghprbPullId), danger crashes before telling Not a Pull Request - skipping danger run. Because an EnvironmentManager object can't be initialized at the beginning of the method run. It raises an exception because of lack of environment variables.
Code is here:
https://github.com/danger/danger/blob/254b78975417fd3d2a03e87d956c1e20e7d61a7f/lib/danger/commands/runner.rb#L42

--no-fail doesn't exist, you could build it, and it could support ^ 👍

Correlates with #337  - which also has a potential solution

Might be fixed as of https://github.com/danger/danger/pull/380

👍


added add-remove program

JavaScript program to add or remove contents using angular

Done, mentioned tag will be helpful

@shreya-v7
Wohoo!! Congrarts🥳 your PR has been merged.


[BUG / QUESTION] DrawBitmap with SKFilterQuality.High causes bad performance

Description
I'm drawing several SKBitmaps on a SKGLView on macOS, I'm using SKFilterQuality.High to get the best quality of the images. If the canvas is zoomed in and only one image is visible the performance is okay, but once I zoom out and multiple SKBitmaps are visible performance and rendering speed drops. Some of the images are quite big (i.e. 4000*300px) - so I wanted to check if the performance drop is caused by my code or if Skia(Sharp)s performance is limited in this case (even on the GPU)
Code
This is my PaintSurface method - repro link contains my full source
void CanvasView_PaintSurface(object sender, SkiaSharp.Views.Mac.SKPaintGLSurfaceEventArgs e)
{
    e.Surface.Canvas.Clear(SKColors.Black);
    e.Surface.Canvas.SetMatrix(_m);

    for(int i = 0; i < imgs.Count; i++)
    {
        e.Surface.Canvas.DrawBitmap(imgs.ElementAt(i), rects.ElementAt(i), HighQualityImagePaint);
    }
}

Expected Behavior
Since drawing is happening on the GPU (SKGLView) i expect smooth rendering and good performance.
Actual Behavior
Framerate drops and panning / zooming feels really slow
Basic Information

Version with issue:  1.60.3
IDE:  <!-- Visual Studio for Mac 7.7.2 (Build 21)
Platform Target Frameworks: Xamarin.Mac

macOS:  10.14.2 (18C54)

Target Devices:  Macbook Pro 13" (2018 Touchbar)

Screenshots

Reproduction Link
https://github.com/nor0x/SkiaSharp_PerfomanceExperiments

VS bug #770230

Hi @mattleibow, i finally had some time to experiment with the suggestions here. Adjusting the filter quality is okay for me but not the best solution. As the community in the skia forums suggested I also tried setting SetResourceCacheLimits which unfortunately led to a NullReferenceException in my Xamarin.Mac project.
I get the following stacktrace:
"  at (wrapper managed-to-native) SkiaSharp.SkiaApi.gr_context_set_resource_cache_limits(intptr,int,intptr)\n  at SkiaSharp.GRContext.SetResourceCacheLimits (System.Int32 maxResources, System.Int64 maxResourceBytes) [0x0000d] in <273adfac44b84a14b4b6d7b5f15069bf>:0 \n  at SkiaPlayground.ViewController+<ViewDidLoad>d__15.MoveNext () [0x002d7] in /Users/johnny/SkiaPlayground/SkiaPlayground/ViewController.cs:63 \n--- End of stack trace from previous location where exception was thrown ---\n  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_0 (System.Object state) [0x00000] in /Library/Frameworks/Xamarin.Mac.framework/Versions/<IP_ADDRESS>/src/Xamarin.Mac/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1023 \n  at Foundation.NSAsyncSynchronizationContextDispatcher.Apply () [0x00002] in /Library/Frameworks/Xamarin.Mac.framework/Versions/<IP_ADDRESS>/src/Xamarin.Mac/Foundation/NSAction.cs:178 \n  at (wrapper managed-to-native) AppKit.NSApplication.NSApplicationMain(int,string[])\n  at AppKit.NSApplication.Main (System.String[] args) [0x00040] in /Library/Frameworks/Xamarin.Mac.framework/Versions/<IP_ADDRESS>/src/Xamarin.Mac/AppKit/NSApplication.cs:100 \n  at SkiaPlayground.MainClass.Main (System.String[] args) [0x00007] in /Users/johnny/SkiaPlayground/SkiaPlayground/Main.cs:10 "

Hi @mattleibow,
i'm back at my image performance experiments. SkiaSharp 1.68.1 fixed my issues with SetResourceCacheLimits. I was able to render images on the GPU and add pan and pinch to my test canvas. As I'm still trying to draw as many large images as possible with smooth performance i followed the hints in the Google Skia Thread (https://groups.google.com/forum/#!topic/skia-discuss/ZFnS-NaUcvY) Yeah, I would try setting the GrContext budget to something absurdly large to see if that is a factor.
I have also switched from SKBitmap to SKImage for better performance.
During my testings i noticed that once all images are visible on the view, performance takes a big hit and FPS go down. Once i drag the canvas so that some images are off-screen everything is smooth at ~60FPS.
Here is another GIF showing my test project:

I have also updated my playground repo with the latest source:
https://github.com/nor0x/SkiaSharp_PerfomanceExperiments
not sure if this is a new issue, but it's directly related to my previous performance issues with image drawing - so i drop this here.


sfdp layout algorithm

Thanks very much for the great library!
Do you know if there are any plans to support the sfdp layout algorithm? Under Ubuntu this required recompiling graphiz with extra flag '--with-gts'.
Many thanks

Maybe. But including GTS is likely to increase the size of the build, which I would like to avoid.


How to make per second hit background service in flutter in both platforms android and ios.

I am making  live tracking map app in flutter.
The problem is when i close the app live tracking stop because of background service not apply.
I already did "background_fetch" plugin,its take  minimum 15 min to hit again background service and its not what i want.
And i also try "android_alarm_manager"  plugin in flutter in android native code and its not compatible with flutter v2.
PLEASE PLEASE  Help me.🙏🙏

Hi @harpreetsingh3127
This platform is not meant for assistance on personal code.
Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow.
Closing, as this isn't an issue with Flutter itself,
if you disagree please write in the comments and I will reopen it
Thank you


Async Methods profiling in python?

Problem Statement
I've tried Sentry profiling, and observed that async methods are not being tracked in profiling, is that expected?
I've tried in Django application which is deployed in AWS Lambda, enabled sentry monitoring with below snippet
sentry_sdk.init(
    dsn=os.environ.get("SENTRY_DSN"),
    environment=os.environ.get('STAGE', 'local'),
    integrations=[sentry_logging, AwsLambdaIntegration()],
    release=RELEASE_VERSION,
    attach_stacktrace=True,
    profiles_sample_rate=1.0,
    traces_sample_rate=1.0,
    send_default_pii=True
)

Solution Brainstorm
NA

The profiler captures the current executing stack at regular intervals. With async methods, because they often do not remain on the stack for long periods of time, it doesn't frequently appear in the final profile.
Do you have an example application that you can share or perhaps a profile you captured that we can take a look at to see if there's some other reason why this may be happening?


Cookiecutter needs to always use utf-8 for writing files

I get this on Windows (pitty me):
  File "c:\program files\python 3.5\lib\site-packages\cookiecutter\generate.py", line 318, in generate_files
    run_hook('post_gen_project', project_dir, context)
  File "c:\program files\python 3.5\lib\site-packages\cookiecutter\hooks.py", line 107, in run_hook
    return run_script_with_context(script, project_dir, context)
  File "c:\program files\python 3.5\lib\site-packages\cookiecutter\hooks.py", line 90, in run_script_with_context
    temp.write(Template(contents).render(**context))
  File "c:\program files\python 3.5\lib\tempfile.py", line 482, in func_wrapper
    return func(*args, **kwargs)
  File "c:\program files\python 3.5\lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u0103' in position 1626: character maps to <undefined>

cookiecutter should pass encoding='utf-8' to NamedTemporaryFile

Unfortunately encoding is only supported in Python 3.
https://docs.python.org/3.5/library/tempfile.html#tempfile.NamedTemporaryFile
What's your recommendation?

Ugh ... version check and perhaps strong alcohol to wash out the dirty feeling? :grimacing:

On second thought, you might want to also have the encoding handling on py2. Hmmmmmm ...

I know! Something like NamedTemporaryFile('rb').write(Template(contents).render(**context).encode('utf-8')) - how about that?

Let's give it a try. Wanna submit a PR? :joy_cat:

If you promise to make a new cookiecutter release ... yesterday! :joy_cat:

Sure! Just send across a time machine, my friend :hourglass:

Not sure how that would help, mine only allows travel in the future. Here it is:


Add an action to clean orphaned volumes

In the volumes view, add an action that removes all dangling volumes.
Equivalent of the command docker volume rm $(docker volume ls -qf dangling=true).

The #347 was rejected because it was considered too dangerous for the user, which I reckon too.

Rejected. I am not comfortable with this feature. It exposes users to unexpected data loss should a volume be unattached but retained. Rather, I would prefer a filter that showed all dangling volumes, allowing the user to then select which volumes to delete. Even better, once we add "multi-select" with SHIFT keys (hold shift key whilst selecting the first and last sequential item) then that makes this filter scenario much safer.

Actually, this is not blocked by #344
To implement the functionality, #344 must be implemented and dangling/orphaned volumes must be displayed in the volumes view (adding a extra column for example).
By having both of these functionalities implemented, any user will be able to select multiple dangling volumes and trigger the remove action.


Catalog object resource listing table metadata

CatPrez profile changes for https://github.com/RDFLib/prez-ui/issues/57.
Fixes sh:sequencePath in "object listing" query and aligns it with listing query changes introduced in https://github.com/RDFLib/prez/pull/107.

Not sure why changes made in https://github.com/RDFLib/prez/pull/119/commits/e299b6a445024e7a12b8984db5bd96f4c7a12a00 makes the tests pass locally but fails in GitHub Actions. Confusing!
I'm following the graph delta in the GitHub Actions failed test to work out what to remove in the test data now.

Tests are passing locally on my machine with changes in https://github.com/RDFLib/prez/pull/119/commits/188e835108558c2a605150ad9567cb028cab2817 but no idea why it's different and failing in GitHub Actions, will investigate more.

Interesting... I opened this PR in GitHub Codespaces and it is failing just like in GitHub Actions.
I also re-cloned Prez in my Ubuntu dev box and checked out this PR and now that is also failing.
I wonder why my working copy of Prez is passing. I even deleted the pytest cache and it still works. I change some data in the test and it fails as expected.
Question is, what is the difference between my working copy's environment and the other freshly cloned environments.

Ok, I've found the issue.
My working copy of Prez, the one that had the passing tests, somehow depended on the data in the file tbox_cache.nt. Once I deleted this file, things started failing and the errors were in line with the other test environments.
I'll create an issue for this. I'm not sure why we need a tbox_cache.nt file as all Prez instances and their state should be treated as ephemeral and their state should be derived from the persistent SPARQL store.

Yay, tests passing. Please review soonish as we need to get this merged, released and deployed for showcase on Friday.

The query performance is quite slow at the moment. I've rearranged the structure of the query slightly and it's brought it down from 42 seconds to less than 1 second (on my machine) in https://github.com/RDFLib/prez/pull/119/commits/5cd39bc5fe25c70134f002243d6d488d861e962e and https://github.com/RDFLib/prez/pull/119/commits/af84be23d0111b4cecdb0320a9f7c03d4d1c32b7.
Should be good to go now.


RNN/LSTM Baselines?

This is a great set of experiments! I'm wondering if the code for the RNN/LSTM baselines reported in the paper are available somewhere. At present, I only see code for the TCN model.
Thanks!

They are not available in this repo; but since we designed TCN as a drop-in replacement for RNNs, you can simply replace lines like https://github.com/locuslab/TCN/blob/master/TCN/copy_memory/copymem_test.py#L70
with an RNN/LSTM/GRU, etc.
We did provide hyperparameters for LSTMs in the appendix of the paper :-)
As another source, pytorch examples provide tutorial code of LSTM for word-level language modeling. It is easy to change it (slightly) and use it for character-level LM as well: https://github.com/pytorch/examples/tree/master/word_language_model

@jerrybai1995   Thank you for your excellent work!  I used https://github.com/pytorch/examples/tree/master/word_language_model and follow the hyperparameters in your paper(nlayer=3,hidden=700,dropout=0.4,clip=0.3, bias=1.0, sgd, lr=30, emb.=700)，but i can't reproduce 78.93(ppl) on PTB, my result was valid ppl: 89.16, est ppl:85.50.
@millerjohnp What is your result?
Thank you very much!

@jerrybai1995 can you give an example?

@jerrybai1995 yes, i have used tied weight.

@jerrybai1995  It is very difficult to reproduce LSTM result. I have seen many papers that report results are different. Can you give a way to reproduce your paper? thank you very much!

Try SGD lr=20, and decay the learning rate when the validation error plateaus. Use a batch size of 16 or 20. Basically, I believe the original pytorch example’s README provides parameters could achieve about 80 ppl, and it’s mainly a problem of hyperparameter tuning.

@jerrybai1995 Thank you for your excellent work! I used https://github.com/pytorch/examples/tree/master/word_language_model and follow the hyperparameters in your paper(nlayer=3,hidden=700,dropout=0.4,clip=0.3, bias=1.0, sgd, lr=30, emb.=700)，but i can't reproduce 78.93(ppl) on PTB, my result was valid ppl: 89.16, est ppl:85.50.
@millerjohnp What is your result?
Thank you very much!
@jerrybai1995  The test ppl is 85.5(bias=0, there was a problem with the previous reply) ,and when set bais=1 in LSTM use the following code:
def init_weights(self):
initrange = 0.1
self.encoder.weight.data.uniform_(-initrange, initrange)
self.decoder.bias.data.zero_()
self.decoder.weight.data.uniform_(-initrange, initrange)
for name, param in self.rnn.named_parameters():
if 'bias' in name:
param.data.fill_(1)
the test ppl is 90 that is worse than before.
Also, i tried lr=20,and batch size=20, the result is almost the same, my pytorch version is 0.4.0


Timeline - work experience

03.2023— Present
HTML Coder, Content manager • TK Laser
Layout of pages and blocks for the site. Worked with Wordpress CMS. technologies: HTML, CSS3, JS. An example of a site created for the TK Laser company: https://biz.tklaserpl.net.ua/.
05.22 — 03.2023
Manual QA Tester • Upwork
I tested websites, mobile and desktop applications, games. Among the projects I tested are Sendlinx, Iteration X, WeDesk, Justlearn, AI Avatar App, StickApp, BIGVU, Glitch.fun, Triple Tile, DRESSX META FASHION and others. I compiled high-quality bug reports, test cases, test plans and checklists. I worked in such systems as DevTools, Postman, Jira, Trello, ClickUp, TestRail.
05.22 — 03.2023
Front end Developer • Upwork
Project work - development of modern web applications, adaptive layout. I specialize in pixel-perfect design conversion from Figma, PSD. I know the following technologies: HTML, CSS3, JS, React.


Perform a proper exit for the reportServer goroutine

Previously, the goroutine would block for 24 hours and would only check
every 24 hours if the server was closed. Since this never happened, the
goroutine would just be abruptly killed when the main process ended
(since nobody waited for this goroutine to end).
Updating the code to exit when the server is closed immediately and
switching the timer to a ticker instance that can be stopped.

:+1:


API endpoints for single notes instead of entire notebooks

... in order to save bandwidth.

@n1try I'd like to work on this, can you please elaborate a bit on this issue?!

Yes, sure.
A notebook consists of several notes and each note is basically a chunk of Markdown text. When you hit the save button, the entire notebook, including ALL notes is serialized to JSON and sent to /api/notebook/:id/notes via a PUT. This is inefficient, since large parts of the data transferred over the network is unchanged.
It would be more convenient to be able to PUT to /api/notebook/:id/notes/:noteId only the specific note that had currently been modified. This includes a new endpoint as well as adaptions in the frontend.
Also don't forget to implement some kind of "dirty checking", meaning that there should be a warning modal dialog (You have unsaved changes. Do you want to discard them?) when the user has made changes to a specific note, has not saved them yet, but wants to switch to another note.

@n1try Well, having worked with only NodeJS before, I'd like to mention that I can definitely help create the endpoint with specifically the :noteid parameter. But I cannot make relevant changes to the frontend, because I haven't worked on it before.
So is it fine if I just publish a PR just making the relevant changes to the API backend?

To be honest, I don't think it makes sense to split this issue.

@n1try In that case, I'll try to read through the Vue.JS docs and try fixing things up on the frontend too. 😄

@n1try  Can I work on it ?? I can fix both backend and frontend.


Website is down

I went to check the documentation and realized the website is down. It seems to be down for everyone 😞
Status on Is It Down Right Now

It's working now 😅 I'll close the issue.


feat(network): move test helpers to test-utils mod

This introduces a module in reth_network meant to contain common network test helper methods. The helpers are only available in either tests, or if the test-utils feature is enabled.
New helpers are added:

unused_tcp_udp, meant for generating unused TCP and UDP ports for reth initialization.
unused_port, used to generate an unused tcp port.

The NetworkEventStream is extended with peer_added_and_established, which waits for first a PeerAdded event, then a SessionEstablished event from the network. This can be used to ensure that a peer is either successfully connected, or has been removed after attempting to establish a connection.
This is extracted from #623

Codecov Report

Merging #901 (35c904d) into main (06be083) will increase coverage by 0.01%.
The diff coverage is 52.63%.

@@            Coverage Diff             @@
##             main     #901      +/-   ##
==========================================
+ Coverage   73.76%   73.77%   +0.01%
==========================================
  Files         282      284       +2
  Lines       30135    30328     +193
==========================================
+ Hits        22229    22375     +146
- Misses       7906     7953      +47

Flag
Coverage Δ

unit-tests
73.77% <52.63%> (+0.01%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

crates/net/network/src/lib.rs
100.00% <ø> (ø)

crates/net/network/src/test_utils/testnet.rs
83.03% <0.00%> (ø)

crates/net/network/src/test_utils/init.rs
71.42% <71.42%> (ø)

crates/stages/src/stages/bodies.rs
91.42% <0.00%> (-2.15%)
:arrow_down:

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


Print out path to target package

Suggestion: Like the cli does for the assembly, print out the path where the rpm was generated.

/cc @tmds split off from #6


Add new "Events" methods

Documentation: https://yandex.ru/dev/games/doc/dg/sdk/sdk-events.html

API could be:

yagames.event_dispatch(name)
yagames.event_on(name, listener) to set global listener for the event with name.

JavaScript glue code could handle event name like that:
// current supported events: "HISTORY_BACK", "EXIT"
ysdk.EVENTS[name]

Implemented in 9a4259852bce9d3d95f219d5f8adca1e8890bc3f


im confused PLEASE HELP D:

i dont know how to use it how do I open it and hack someones account?

lol


Feature suggestion: Filter download by user

Is it possible to download history and filter by user?

I was also wondering I would like to download only images mentioend @ a specific user, such as images mentioned to @username

@acheong08 @Leebo-missile
{
	"channels":
	{
		{
			"destination": "x",
			"channel": "123456789012345678",
			"filters":
			{
				"allowedPhrases": [ "<@user:id>", "hello" ],
				"allowedUsers": [ "123456789012345678", "123456789012345678" ]
			}
		}
	}
}

allowedPhrases if used without blockedPhrases, no messages will be processed unless they contain an allowed phrase.
allowedUsers will ONLY process messages if they were sent from the following users.


Replace ajv pack with standalone

following on from #6 , I have updated ajv-json-loader to use the latest ajv and replaced ajv-pack with ajv standalone.
I have also updated the code to typescript.  I needed to do this as I don't know ajv that well and the types kept me right.
All tests are passing but I had to update the snapshot code tests as the latest ajv code generates different code which is to be expected.
I would appreciate it if someone could cast a qualified eye over the new snapshots.
I do not know ajv very well at all so I would appreciate a more qualified look.

Hi!
I've not used ajv and JSON schemas for a few years. Maybe someone of the ajv or ajv-pack collaborators may take a look.
Or I can just merge it and publish new version, so anyone can test it. It's new major release, so nothing should change for existing projects according to the semver.

@downace i have just the project to try it on

Done, new version published at npmjs.com.

Done, the 0.2.0 version published at npmjs.com.

awesome, thank you, I'll follow up with another PR if there are any issues


Use numeric USER for nonroot:nonroot in Dockerfile

Hey guys,
While tightening our security posture, I noticed the following error when deploying ARC:
  Warning  Failed     10s (x4 over 24s)  kubelet            Error: container has runAsNonRoot and image has non-numeric user
(nonroot), cannot verify user is non-root (pod: "actions-runner-controller-github-webhook-server-c68bcb8c4-
x7qqp_actions-runner-controller(545601de-f9bd-460e-b706-23ffd3f3c7da)", container: github-webhook-server)

This PR simply solves the above by updating the Dockerfile to use the numeric UID of the nonroot user supplied by the distroless:nonroot image :)
Cheers!
D

@funkypenguin Hey! Thanks a lot for your contribution. I'm still trying to understand when and how this is useful. So, does this error occur only when you configured runAsNonRoot: true without runAsUser: $YOUR_UID? The benefit of this modification is we now omit runAsUser even when you specified runAsRoot: true, right?

Hey @mumoshu!
Huh. TIL. you're right, I didn't know that Kubernetes would run the pod if you explicitly set runAsUser / runAsGroup. So this works:
  securityContext:
    capabilities:
      drop:
      - ALL
    seccompProfile:
      type: RuntimeDefault
    runAsNonRoot: true
    runAsUser: 65532
    runAsGroup: 65532
    allowPrivilegeEscalation: false

But this doesn't:
  securityContext:
    capabilities:
      drop:
      - ALL
    seccompProfile:
      type: RuntimeDefault
    runAsNonRoot: true
    allowPrivilegeEscalation: false

So yes, it turns out that the only benefit is really that the security-conscious user doesn't have to explicitly set runAsUser :)


clusteradm proxy kubectl does not allow multiple clusters

clusteradm proxy kubectl takes in a generic ClusterOption which includes both the option to specify a single cluster or multiple clusters (--clusters), but the code seems to only accept a single cluster https://github.com/open-cluster-management-io/clusteradm/blob/329f6fef88bfac77ac2291e1696f5615b12288e3/pkg/cmd/proxy/kubectl/cmd.go#L74. This should be explicitly stated as a limitation and not appear in the --help output of the command, should be supported, or there should be a clearer error message ("resource name may not be empty").

/kind bug


chore(dockerclient): Add workflow-manager to repo blacklist

This should have been added previously, but it was missing.

[Current coverage][cc-pull] is 82.26%

Merging [#663][cc-pull] into [master][cc-base-branch] will not change coverage

@@             master       #663   diff @@
==========================================
  Files            29         29
  Lines          2526       2526
  Methods           0          0
  Messages          0          0
  Branches        388        388
==========================================
  Hits           2078       2078
  Misses          320        320
  Partials        128        128

[][cc-pull]

Powered by Codecov. Last updated by d03a734
[cc-base-branch]: https://codecov.io/gh/deis/controller/branch/master?src=pr
[cc-pull]: https://codecov.io/gh/deis/controller/pull/663?src=pr


StyledElement.getBoundingClientRect() doesn't work. Any alternatives?

I'm getting this exception:
Uncaught TypeError: StyledElement.getBoundingClientRect is not a function

when "iterating" on some elements to "find" the higher one.
Is there any way to reach this React's function on StyledElements?
Thanks,

getBoundingClientRect is a method on the DOM element. You need to reference to your element with innerRef to be able to do that.
const MyStyledElement = styled('div', {/* ... */});
<MyStyledElement innerRef={el => el.getBoundingClientRect()} />

Thanks @faddee, worked great for me, with some adjusts to my use-case..


Clear selected date

Hi, is there any way to clear the selected date?
Other datepickers implement a "clear" button that can be enabled in the options.
Is there any plan to include this?
Thanks

This is Support Question
For support questions, please use one of these channels:
Gitter: https://gitter.im/dalelotts/angular-bootstrap-datetimepicker
Stack Overflow: http://stackoverflow.com/search?q=angular-bootstrap-datetimepicker
You can override the template and provide the necessary functionality yourself. Personally, I don't see why it's needed since deleting the date from the model will clear the selected date.


Unexpected breakdown of Kafka after every few days.

[2020-01-04T05:51:52.278Z] ERROR: rules-service/25 on plus1connect-rules-engine-846d99cd74-5qmx5: {"level":"ERROR","timestamp":"2020-01-04T05:51:49.428Z","logger":"kafkajs","message":"[Connection] Response SyncGroup(key: 14, version: 1)","broker":"kafka-1.kafka.default.svc.cluster.local:9092","clientId":"plus1connect","error":"The coordinator is not aware of this member","correlationId":307,"size":14}
[2020-01-04T05:51:57.986Z] ERROR: rules-service/25 on plus1connect-rules-engine-846d99cd74-5qmx5: {"level":"ERROR","timestamp":"2020-01-04T05:51:57.986Z","logger":"kafkajs","message":"[Consumer] Crash: KafkaJSNumberOfRetriesExceeded: The coordinator is not aware of this member","groupId":"plus1connect-group-api-gateway-service-f0e0c0fd-7e68-43d6-b66f-b99746d96d08","retryCount":0,"stack":"KafkaJSNumberOfRetriesExceeded\n Caused by: KafkaJSProtocolError: The coordinator is not aware of this member\n at createErrorFromCode (/usr/src/app/node_modules/kafkajs/src/protocol/error.js:536:10)\n at Object.parse (/usr/src/app/node_modules/kafkajs/src/protocol/requests/syncGroup/v0/response.js:24:11)\n at Connection.send (/usr/src/app/node_modules/kafkajs/src/network/connection.js:306:35)\n at runMicrotasks ()\n at processTicksAndRejections (internal/process/task_queues.js:93:5)\n at async Broker.syncGroup (/usr/src/app/node_modules/kafkajs/src/broker/index.js:384:12)\n at async ConsumerGroup.sync (/usr/src/app/node_modules/kafkajs/src/consumer/consumerGroup.js:153:34)\n at async /usr/src/app/node_modules/kafkajs/src/consumer/runner.js:50:9\n at async /usr/src/app/node_modules/kafkajs/src/consumer/runner.js:348:11"}
[2020-01-04T05:51:58.088Z] ERROR: rules-service/25 on plus1connect-rules-engine-846d99cd74-5qmx5: {"level":"ERROR","timestamp":"2020-01-04T05:51:58.088Z","logger":"kafkajs","message":"[Connection] Response LeaveGroup(key: 13, version: 1)","broker":"kafka-1.kafka.default.svc.cluster.local:9092","clientId":"plus1connect","error":"The coordinator is not aware of this member","correlationId":308,"size":10}
[2020-01-04T05:51:58.089Z] INFO: rules-service/25 on plus1connect-rules-engine-846d99cd74-5qmx5: {"level":"INFO","timestamp":"2020-01-04T05:51:58.089Z","logger":"kafkajs","message":"[Consumer] Stopped","groupId":"plus1connect-group-api-gateway-service-f0e0c0fd-7e68-43d6-b66f-b99746d96d08"}
[2020-01-04T05:51:58.089Z] ERROR: rules-service/25 on plus1connect-rules-engine-846d99cd74-5qmx5: {"level":"ERROR","timestamp":"2020-01-04T05:51:58.089Z","logger":"kafkajs","message":"[Consumer] Restarting the consumer in 6891ms","retryCount":0,"retryTime":6891,"groupId":"plus1connect-group-api-gateway-service-f0e0c0fd-7e68-43d6-b66f-b99746d96d08"}
[2020-01-04T05:52:03.680Z] INFO: rules-service/25 on plus1connect-rules-engine-846d99cd74-5qmx5: {"level":"INFO","timestamp":"2020-01-04T05:52:01.381Z","logger":"kafkajs","message":"[Runner] Consumer has joined the group","groupId":"plus1connect-group-api-gateway-service-ad8900af-7e4f-42d7-bb06-1ef8a1b450e8","memberId":"plus1connect-a61bb0b2-45c1-4127-bf28-32d1046ab5e4","leaderId":"plus1connect-a61bb0b2-45c1-4127-bf28-32d1046ab5e4","isLeader":true,"memberAssignment":{"plus1connect.geofences.request":[0]},"groupProtocol":"RoundRobinAssigner","duration":20494}
[2020-01-04T05:52:21.891Z] INFO: rules-service/25 on plus1connect-rules-engine-846d99cd74-5qmx5: {"level":"INFO","timestamp":"2020-01-04T05:52:21.082Z","logger":"kafkajs","message":"[Consumer] Starting","groupId":"plus1connect-group-api-gateway-service-f0e0c0fd-7e68-43d6-b66f-b99746d96d08"}
[2020-01-04T05:54:01.982Z] ERROR: rules-service/25 on plus1connect-rules-engine-846d99cd74-5qmx5: {"level":"ERROR","timestamp":"2020-01-04T05:53:51.480Z","logger":"kafkajs","message":"[Connection] Connection timeout","broker":"kafka-0.kafka.default.svc.cluster.local:9092","clientId":"plus1connect"}
[2020-01-04T05:54:24.834Z] ERROR: rules-service/25 on plus1connect-rules-engine-846d99cd74-5qmx5: {"level":"ERROR","timestamp":"2020-01-04T05:54:24.834Z","logger":"kafkajs","message":"[BrokerPool] Failed to connect to seed broker, trying another broker from the list: Connection timeout","retryCount":0,"retryTime":2863}
[2020-01-04T05:54:25.081Z] ERROR: rules-service/25 on plus1connect-rules-engine-846d99cd74-5qmx5: {"level":"ERROR","timestamp":"2020-01-04T05:54:25.081Z","logger":"kafkajs","message":"[Connection] Response Heartbeat(key: 12, version: 1)","broker":"kafka-1.kafka.default.svc.cluster.local:9092","clientId":"plus1connect","error":"The coordinator is not aware of this member","correlationId":307,"size":10}
[2020-01-04T05:54:25.106Z] ERROR: rules-service/25 on plus1connect-rules-engine-846d99cd74-5qmx5: {"level":"ERROR","timestamp":"2020-01-04T05:54:25.106Z","logger":"kafkajs","message":"[Runner] The coordinator is not aware of this member, re-joining the group","groupId":"plus1connect-group-api-gateway-service-ad8900af-7e4f-42d7-bb06-1ef8a1b450e8","memberId":"plus1connect-a61bb0b2-45c1-4127-bf28-32d1046ab5e4","error":"The coordinator is not aware of this member","retryCount":0,"retryTime":9098}
[2020-01-04T05:54:25.121Z] INFO: rules-service/25 on plus1connect-rules-engine-846d99cd74-5qmx5: {"level":"INFO","timestamp":"2020-01-04T05:54:25.121Z","logger":"kafkajs","message":"[Runner] Consumer has joined the group","groupId":"plus1connect-group-api-gateway-service-ad8900af-7e4f-42d7-bb06-1ef8a1b450e8","memberId":"plus1connect-69393ed7-5f69-4f71-ad55-587b3799c6dc","leaderId":"plus1connect-69393ed7-5f69-4f71-ad55-587b3799c6dc","isLeader":true,"memberAssignment":{"plus1connect.geofences.request":[0]},"groupProtocol":"RoundRobinAssigner","duration":15}
[2020-01-04T05:54:27.951Z] INFO: rules-service/25 on plus1connect-rules-engine-846d99cd74-5qmx5: {"level":"INFO","timestamp":"2020-01-04T05:54:27.951Z","logger":"kafkajs","message":"[Runner] Consumer has joined the group","groupId":"plus1connect-group-api-gateway-service-f0e0c0fd-7e68-43d6-b66f-b99746d96d08","memberId":"plus1connect-da5586ca-06a5-4919-8b43-e27b9120e702","leaderId":"plus1connect-da5586ca-06a5-4919-8b43-e27b9120e702","isLeader":true,"memberAssignment":{"plus1connect.rules.request":[0]},"groupProtocol":"RoundRobinAssigner","duration":94}
[2020-01-04T05:57:03.782Z] ERROR: rules-service/25 on plus1connect-rules-engine-846d99cd74-5qmx5: {"level":"ERROR","timestamp":"2020-01-04T05:56:56.287Z","logger":"kafkajs","message":"[Connection] Response Heartbeat(key: 12, version: 1)","broker":"kafka-1.kafka.default.svc.cluster.local:9092","clientId":"plus1connect","error":"The coordinator is not aware of this member","correlationId":315,"size":10}
Killed
npm ERR! code ELIFECYCLE
npm ERR! errno 137
npm ERR<EMAIL_ADDRESS>start: node index.js --mainProcess
npm ERR! Exit status 137
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-01-04T05_57_40_745Z-debug.log

It works when we restart the Pod.

@tulios Please help on this.

The logs contain the following error message: The coordinator is not aware of this member. In all likeliness that processing is taking too long somewhere and the consumer's session times out.
Kafka tries to detect which of the consumers inside a consumer-group are healthy. For it to do this, it expects all consumers to send heartbeats at regular intervals. If any of them don't, that node is considered to be unhealthy, triggering a rebalance event. The error you're seeing is what happens when a consumer was deemed unhealthy and still tries to consume new messages. The KafkaJS consumer automatically to recover by retrying to rejoin and the action, but only a set number of times, as the reason why it keeps timing out might be structural.
The timeout length can be configured using sessionTimeout, and is 30 seconds by default, which is a pretty sane default. Shorter than 10 would cause a lot extra rebalances as processing slows down and speeds up naturally. More than 60 would cause rebalances to take a very long time, slowing down overall progress that's being made, increasing consumer lag, etc.
A better alternative to changing the timeout length is heartbeating regularly. When using eachMessage, the consumer sends a heartbeat automatically after each message that is consumed. If processing a message can take longer, consider implementing the more advanced eachBatch handler, which provides a heartbeat function.
Please note that automatically sending heartbeats with something like setInterval would prevent time-outs, but also defeats it's purpose as a way to measure whether processing isn't stuck. The point is to call the heartbeat as part of the processing, to indicate actual progress being made.

@JaapRood Thanks for the update.
I am currently using  "eachmessage" for the consumer using the below code :
await this._registerConsumer(topic, ({ topic, partition, message });
async _registerConsumer(topic, onMessage) {
if (this.consumers[topic]) return;
try {
  await this._checkAndCreteTopic(topic);

  const consumer = this.kafka.consumer({
    groupId: `${this.options.groupIdPrefix}-${this.options.consumerGroup}-${uuid()}`,
    maxWaitTimeInMs: this.options.maxWaitTimeInMs,
    allowAutoTopicCreation: false
  });

  this.consumers[topic] = consumer;
  await consumer.connect();

  await consumer.subscribe({
    topic: topic
  });

  **await consumer.run({
    eachMessage: onMessage,
  });**

}
}
If I will be using eachBatch, will it not delay the current communication speed? Also i want to know more in details about heartbeat function and resolveOffset that how will it help me in my case.
=> resolveOffset(message.offset)
await heartbeat()
Also, updated error log is as follows:
2019-12-25T05:09:21.418Z] ERROR: authenticator/26 on plus1connect-authenticator-55c84fd6f-rqs84: {"level":"ERROR","timestamp":"2019-12-25T05:09:21.418Z","logger":"kafkajs","message":"[Connection] Connection timeout","broker":"kafka-3.kafka.default.svc.cluster.local:9092","clientId":"plus1connect"}
[2019-12-25T05:09:21.421Z] ERROR: authenticator/26 on plus1connect-authenticator-55c84fd6f-rqs84: {"level":"ERROR","timestamp":"2019-12-25T05:09:21.421Z","logger":"kafkajs","message":"[BrokerPool] Failed to connect to broker, reconnecting","retryCount":0,"retryTime":581}
[2019-12-25T06:09:48.043Z] ERROR: authenticator/26 on plus1connect-authenticator-55c84fd6f-rqs84: {"level":"ERROR","timestamp":"2019-12-25T06:09:48.042Z","logger":"kafkajs","message":"[Connection] Connection timeout","broker":"kafka-3.kafka.default.svc.cluster.local:9092","clientId":"plus1connect"}
[2019-12-25T06:09:48.045Z] ERROR: authenticator/26 on plus1connect-authenticator-55c84fd6f-rqs84: {"level":"ERROR","timestamp":"2019-12-25T06:09:48.045Z","logger":"kafkajs","message":"[BrokerPool] Failed to connect to broker, reconnecting","retryCount":0,"retryTime":6598}
[2019-12-29T21:06:36.229Z] ERROR: authenticator/26 on plus1connect-authenticator-55c84fd6f-rqs84: {"level":"ERROR","timestamp":"2019-12-29T21:06:36.228Z","logger":"kafkajs","message":"[Connection] Connection error: read ECONNRESET","broker":"kafka-3.kafka.default.svc.cluster.local:9092","clientId":"plus1connect","stack":"Error: read ECONNRESET\n    at TCP.onStreamRead (internal/stream_base_commons.js:201:27)"}
[2019-12-29T21:06:36.230Z]  INFO: authenticator/26 on plus1connect-authenticator-55c84fd6f-rqs84: FAILED TO CREATE TOPIC
KafkaJSConnectionError: Connection error: read ECONNRESET
at Socket.onError (/usr/src/app/node_modules/kafkajs/src/network/connection.js:136:23)
at Socket.emit (events.js:210:5)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21)

Your example, without having run it, looks fine, assuming that onMessage is an async function. The function you pass to eachMessage should be async and not return until the message has been fully processed, as otherwise there's the risk of buffering messages in memory until your machine runs out and the process crashes.
If onMessage takes more than 30 seconds to complete, you'll see the problem as described earlier.

If I will be using eachBatch, will it not delay the current communication speed?

There's no reason it would. You can think of eachMessage as a very small layer on top of eachBatch, designed to make some basic consuming of messages easier.

Also i want to know more in details about heartbeat function and resolveOffset that how will it help me in my case.

Have a look at the documentation for eachBatch, which has descriptions of what those functions do and an example.

FAILED TO CREATE TOPIC
KafkaJSConnectionError: Connection error: read ECONNRESET

An ECONNRESET is a low-level Node.js error, indicating a networking issue, where the node process can't seem to connect to the Kafka broker. There's about a 1001 reasons why that could happen, to your machine switching networks, going asleep, network partitions, etc. If you get stuck with that, the Confluent Community slack would be a better place to ask about that.

Reflecting on what I just wrote:

eachMessage should be async and not return until the message has been fully processed, as otherwise there's the risk of buffering messages in memory until your machine runs out and the process crashes.

If onMessage takes more than 30 seconds to complete, you'll see the problem as described earlier.

If onMessage is not asynchronous, and your client therefor buffers lots of messages, overtime this might cause Node.js / V8 to do a major garbage collection pause. That might cause your entire program to pause for anywhere from a few seconds to minutes at a time (depending on the situation). That would definitely cause the consumer from heartbeating in time to be considered healthy by the Kafka cluster.
That's a bit of a theory, but worth looking into.

Reflecting on what I just wrote:

eachMessage should be async and not return until the message has been fully processed, as otherwise there's the risk of buffering messages in memory until your machine runs out and the process crashes.

If onMessage takes more than 30 seconds to complete, you'll see the problem as described earlier.

If onMessage is not asynchronous, and your client therefor buffers lots of messages, overtime this might cause Node.js / V8 to do a major garbage collection pause. That might cause your entire program to pause for anywhere from a few seconds to minutes at a time (depending on the situation). That would definitely cause the consumer from heartbeating in time to be considered healthy by the Kafka cluster.
That's a bit of a theory, but worth looking into.

Yes @JaapRood , This is exactly what is happening.

Glad to have been of help! Since it sounds you've gotten to the root of the problem, I'll close this issue for now. Feel free to open up a new one for additional troubles / questions.


Use ffjon instead of the Go json library

Use ffjson instead of golang encoding/json package. Reference links: https://journal.paul.querna.org/articles/2014/03/31/ffjson-faster-json-in-go/
I saw a performance improvement of approx 1secs avg, not a big thing. However the cpu usage has dropped. The plots will be shared during the weekend or today
Related issue\
https://github.com/giantswarm/giantswarm/issues/267
ping @teemow @zeiss @htr

LGTM and wfm. Created a conair cluster with this fleet version. Deployed our stack and created and deleted a service.

@teemow In 2hours, I'll share with everybody 28 pages metrics and plots. Then we can decide :)

The report...
reportFleetExperiment.pdf


[BUG] Relayer has not yet relayed the commitment to the destination chain

Users frequently encounter an error while attempting to withdraw or transfer funds immediately after depositing. This issue significantly detracts from the overall user experience.
Expected Behavior
Users should be capable of executing withdrawal or transfer transactions without hindrance.
Current Behavior
Upon clicking the Withdraw/Transfer button to execute a transaction, users encounter an error if the note was not relayed in time. This obstacle interrupts the user flow and diminishes their experience.
Possible Solution
As suggested by @drewstone, implementing a simple heuristic check to monitor the commitment might be beneficial. This would necessitate disabling the Withdraw/Transfer button until the transaction is ready to be executed:

Retrieve all (root, last_leaf_index) for all chains along with their neighbors.
Evaluate the feasibility of withdrawal by comparing my note’s leaf_index with the last_leaf_index of the neighboring chain or the chain I'm withdrawing from.

Additionally, we should ensure we are spending the oldest notes first so that at the very least we are in the best position for that question to be Yes.


Allow default "custom_field" setting for "selection" fields

Issue type
[X] Feature request
Environment

Python version:  3.5
NetBox version:  2.3.3

Description
This was brought up in the NetworkToCode Slack channel, I'm simply documenting the request here for recording purposes.
Currently, if you create a custom_field as a type Selection, any text entered into the Default is ignored (but is correctly remembered).  Granted, the comments below that input area do state "N/A for selection fields".  However, while briefly looking into the Django documentation for ModelChoiceField (which I believe is what you are using), there didn't seem to be any reason why this is not a valid option.
In the Slack channel, when the question was asked, the answer was "it was an issue with validation".  I completely understand why you would want to validate that field, however, the same type of validation is not done for booleans either.
For example. if something besides "true" or "false" are entered as the default, such as "foobar", it is accepted but simply ignored when you try and create a new object for the model it the custom_field was created for.
I'm hoping for the same thing for a Selection field.  If someone wants to set a valid option as the default and it is correct, use it, if it doesn't match a defined valid option, simply ignore it.
Any thoughts one way or the other?

However, while briefly looking into the Django documentation for ModelChoiceField (which I believe is what you are using), there didn't seem to be any reason why this is not a valid option.

ModelChoiceField isn't used for custom fields. Custom field choices are stored in CustomFieldChoice instances and pulled in via the get_custom_fields_for_model() function:
# Select
elif cf.type == CF_TYPE_SELECT:
    choices = [(cfc.pk, cfc) for cfc in cf.choices.all()]
    if not cf.required or bulk_edit or filterable_only:
        choices = [(None, '---------')] + choices
    field = forms.TypedChoiceField(choices=choices, coerce=int, required=cf.required)

I suppose we can try to match the default value for a field to a choice with that label, and just silently fail if it doesn't exist.

That works for me.


The example of custom validators is partially wrong:

The example of custom validators is partially wrong:
See the issue here:  http://stackoverflow.com/q/29608694/185593
To fix, replace
<input type="radio" name="question1" value="true" required /> Yes
<input type="radio" name="question1" value="false" /> No

with
<input type="radio" name="question1" value="yes" required /> Yes
<input type="radio" name="question1" value="no" /> No

Indeed, thanks!

Oups, wrote the wrong issue number in 0184ec75a03cdb0f142a8868597c9fbf6f900e0a


Adding a task to remove default route for official koji builders

Koji distro builders are running in a separate vlan and should not have any default route assigned, but can still need some specific routes to reach SCM (like git.centos.org).
So idea is to switch from https://github.com/CentOS/ansible-role-kojid/blob/staging/tasks/main.yml#L36 to another ansible role, and with task imported from kojid role.

fixed by ff86395681347535c00ec17a883dfee6f7594d15


Flush less frequently

As things stand now, we flush after every attempt to send a notification. For users writing small numbers of notifications, this is probably fine since it minimizes latency. For users writing zillions of notifications, it's probably a poor use of system resources, since flush is an expensive operation.
I propose:

Add a handler to the pipeline that flushes after N bytes have been written or M milliseconds of inactivity have elapsed.
Stop flushing after every write.

This will increase latency for single notifications, but may improve throughput for bulk sending operations. We'll definitely want to measure changes in throughput before deciding whether to ship something like this.

Some very crude testing suggests that there are significant performance gains to be had here. I wrote a very simple benchmark app that sends 100k small notifications to a local mock server. By flushing after every 100 notifications instead of every single notification, throughput increased from ~14.5k notifications/second to ~17.4k notifications/second.
As an aside, I'll be keeping an eye on https://github.com/netty/netty/issues/1759, which may introduce an upstream fix some time in the future.

Just subscribed!  Our use case is always high volume.  We would definitely use this improvement.

I took a first shot at this in #278.


Parallel torus.File object access

Currently, *File objects are fairly lock intensive and aren't cleanly threadsafe.
This is a huge win to clean up, because then we can activate the support we already have for handling multiple NBD requests simultaneously, giving us a good boost in throughput.

The subject makes me think of the clustered filesystem case with multiple writers from separate hosts or pods.

Fair point

Made clear and fixed with the race detector enabled and with #244. Note that this is spawning a new issue to make NBD more effective.


Mike-Bug: Remove paging default to reduce Windows compatibility issues

🐞 Bug Report
Affected Command
list subcommand doesn't seem to work without -v or -- no-pager on Windows:
PS C:\Development\intel\edgex-cli> .\edgex-cli.exe device list
write |1: file already closed
PS C:\Development\intel\edgex-cli> .\edgex-cli.exe deviceservice list
PS C:\Development\intel\edgex-cli> .\edgex-cli.exe event list
PS C:\Development\intel\edgex-cli> .\edgex-cli.exe reading list
PS C:\Development\intel\edgex-cli> .\edgex-cli.exe addressable list
write |1: file already closed
PS C:\Development\intel\edgex-cli> .\edgex-cli.exe addressable list -v
HEADER
Content-Type : [application/json]
Date : [Tue, 21 Jan 2020 19:51:14 GMT]
Content-Length : [354]
BODY
[{"created":1576005060115,"modified":1576005060115,"origin":1576005060115,"id":"bf65d2ac-6d29-474e-bf3d-8d1cc57c637c","name":"device-virtual","protocol":"HTTP","method":"POST","address":"edgex-device-virtual","port":49990,"path":"/api/v1/callback","baseURL":"http://edgex-device-virtual:49990","url":"http://edgex-device-virtual:49990/api/v1/callback"}]
PS C:\Development\intel\edgex-cli> .\edgex-cli.exe addressable list --no-pager
ID                                      Name            Protocol
bf65d2ac-6d29-474e-bf3d-8d1cc57c637c    device-virtual  HTTP
PS C:\Development\intel\edgex-cli>
Is this a regression?
No
Description and Minimal Reproduction
🔥 Exception or Error

🌍  Your Environment
Deployment Environment:
EdgeX Fuji
Anything else relevant?

Was curious about the flag name, the negative in particular making it long.
Turns out git using a similar flag
git --no-pager log
When "verbose is turned on indeed pagination is turned off .. explaining the behaviour encountered.
Further work could be to fix pagination for windows too.
Perhaps https://github.com/ulule/paging may be useful .. needs further investigation.


[FAB-17362] Reorganize regression Directory and Rename Tests

This change renames the regression directory to systemtest and moves each of the tests into a bucket according to the type of test they are performing as well as gives the scenario a name more indicative of what the test is performing
Signed-off-by: Brett Logan<EMAIL_ADDRESS>

@btl5037 ready to merge?

@btl5037 ready to merge?

Blocked by #162, the surface area for that change is much wider, I'd like to rebase this one on top of that, instead of the other way around

I will keep rebasing this, there are some upcoming changes I want to pick up


Dynamic data released as part of 1.5.1-plusbeta version is not available in 1.5.1 or 1.6

[x] Question
[ ] Typo
[ ] Bug
[ ] Additional article idea

Expected or Desired Behavior

Used dynamic data to connect application customizer to a webpart using 1.5.1-plusbeta
Upgraded/changed framework to 1.5.1 and then 1.6.0. This is to implement the functionality in production.

Observed Behavior
While trying to import IDynamicDatasource throws error that sp-dynamic-data has not exported member of this name.
If I understand correctly, dynamic data has not been deprecated or dropped after dev only release. Please let me know if it will be part of any upcoming releases?

Looks like Dynamic data are still in beta !
You have to use 1.5.1-plusbeta or 1.6.0-plusbeta.
It "works" is production that way, you juste have to compile your webpart using the beta version of the framework.

Looks like Dynamic data are still in beta !
You have to use 1.5.1-plusbeta or 1.6.0-plusbeta.
It "works" in production that way, you juste have to compile your webpart using the beta version of the framework.

But Microsoft advises to not use anything in beta release for production. They clearly say that its not supported, unless in exceptions where they know that such feature is there in next release.

Of course, but the only choice you have here is to use the beta version or not to use Dynamic Data at all...
Obviously, if you have a production problem, you're on your own...

Dynamic data is not yet GA, so it's not available for production usage. It is planned to go GA in 1.7 later this year and until that happens, it will be only available from plusbeta packages. As this is answered, closing the issue.


Left navigation design

Blueprint
Documentation & research

Desktop design
Mobile design
Outline tasks

[x] anatomy
[x] color
[x] typography
[x] layout
[x] spacing
[x] animation/behavior
[x] variants
[x] states (hover, focus, active, focus-visible)
[x] a11y

Optional

[x] Competitive analysis
[x] research
[x] site audit
[x] usage audit
[x] inspirational work

@leeejune Engineering approves design. Code work to be tracked in ticket #9.


Fix formatting errors

Fix broken symbols

Codecov Report

Merging #232 (320be8f) into master (561f2ca) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #232   +/-   ##
=========================================
  Coverage     68.98%   68.98%
  Complexity      896      896
=========================================
  Files           116      116
  Lines          3186     3186
  Branches        402      402
=========================================
  Hits           2198     2198
  Misses          859      859
  Partials        129      129

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 561f2ca...320be8f. Read the comment docs.


Check whether the detached signature file meets the OpenSSF Scorecard check criteria or not

What is not working as expected?
CNCF provides a tool Clomonitor to run OpenSSF Security Best Practice checks on CNCF projects. There is a signing related check that has not been passed in the security check items. See https://clomonitor.io/projects/cncf/notary#notation_security.
According to OpenSSF Scorecard signing check criteria, only these signature file formats *.asc (pgp), *.sig, *.sign, *.sigstore, [*.intoto.jsonl](https://slsa.dev/) could be detected by OpenSSF Scorecard check tool.

According to our current design and spec, Notation blog signing generates the signatures using .sig.jws and .sig.cose file format. We need to check whether these detached signature file meets the OpenSSF Scorecard check criteria or not.
What did you expect to happen?
OpenSSF Security Best Practice check on the signing part should be passed after the Notation release assets are signed by Notation. Notary Project signature file should meet the OpenSSF Scorecard  OpenSSF Scorecard signing check criteria.
How can we reproduce it?
See https://clomonitor.io/projects/cncf/notary#notation_security.
Describe your environment
N/A
What is the version of your Notation CLI or Notation Library?
v1.1.1

Since *.sig is an accepted file format, can we switch to *.<signature_env_format>.sig? (currently, we have *.sig.<signature_env_format>)


Please update documentation on "Connect G Suite to Cloud App Security"

Please update documentation on how to Connect G Suite to Cloud App Security. The Google Admin console and the Google Cloud Platform console have changed considerably to the point where these instructions are incredibly hard to follow. I would strongly recommend re-creating the instructions from scratch to avoid any discrepancies between changes in the UI.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: a1f41e1e-2541-8773-efc2-eeb83a403a15
Version Independent ID: 2f2d0316-9e75-44d6-0ab6-a56b1352a1e2
Content: Connect G Suite to Cloud App Security
Content Source: CloudAppSecurityDocs/connect-google-apps-to-microsoft-cloud-app-security.md
Service: cloud-app-security
Product: ****
Technology: ****
GitHub Login: @shsagir
Microsoft Alias: shsagir

Documentation instructions still the same. Looking forward to this update.

@bp88 Thanks so much for taking the time to leave us your comment on our documentation. We're researching your issue to update the page based on your suggestions. If relevant, changes will be made in the next possible publish.
We're closing this as an open issue for now, but feel free to continue to comment here as necessary. We appreciate your contribution to our community.

Documentation appears out-of-date again regarding the App Registration in GCP.
Step 7 onwards in the connection docs


Provide interface for interleaved resampling

It would be great if we can provide options for input/output formats (interleave/deinterleaved).
This can be done in userland (interleaving/deinterleaving before hand). But by integrating it nothing new has to be allocated/processing step needed and only the iterating logic needs to change inside the synchro process.

IMO this would be best handled by traits shared between audio crates that are generic over interleaved/deinterleaved audio buffers: https://github.com/udoprog/audio/issues/3

https://github.com/HEnquist/rubato/issues/71#issuecomment-1780053242

There is an example here that does interleaved i16: https://github.com/HEnquist/rubato/blob/adapter_v2/examples/process_i16.rs
That branch has a quite large rewrite to use the new audioadapter-rs crate for handling different sample formats and layouts.

Hey thanks for working on this! Will this new version be released soon?

I can't really say when it will be ready to be released. I want to make sure the new api is reasonably finished when I do release it. So far I have only tried using the new api in the included examples, not in any real project.
Please feel free to try it out, any feedback is welcome!


fix: menu button color

Fixes an issue where the "hamburger icon" would not inherit the color from it's parent. Thus the colors would not match.
Before:

After:

:tada: This PR is included in version 2.0.2 :tada:
The release is available on:

GitHub release
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:


Add support to lumi.gateway.acn01

Please, could you add support for the lumi.gateway.acn01 ?
Thankyou

Duplicate #146

OK sorry, thankyou!!!


Nolist

todo does not output anything when their are no list.(for  #118)

@AnubhaAgrawal your pull request contains changes from other pull requests, particularly your other one, #134. Please remove those changes (git rebase -i master works for this).

Continuing at #142


Remove console-search-config CM from console chart

Description
Removing the ConfigMap from the console chart. The operator reconciles the CM which removes any user initiated edits.
Related Issue
If applicable, please reference the issue(s) that this pull request addresses.
Changes Made
Provide a clear and concise overview of the changes made in this pull request.
Screenshots (if applicable)
Add screenshots or GIFs that demonstrate the changes visually, if relevant.
Checklist

[ ] I have tested the changes locally and they are functioning as expected.
[ ] I have updated the documentation (if necessary) to reflect the changes.
[ ] I have added/updated relevant unit tests (if applicable).
[ ] I have ensured that my code follows the project's coding standards.
[ ] I have checked for any potential security issues and addressed them.
[ ] I have added necessary comments to the code, especially in complex or unclear sections.
[ ] I have rebased my branch on top of the latest main/master branch.

Additional Notes
Add any additional notes, context, or information that might be helpful for reviewers.
Reviewers
Tag the appropriate reviewers who should review this pull request. To add reviewers, please add the following line: /cc @reviewer1 @reviewer2
Definition of Done

[ ] Code is reviewed.
[ ] Code is tested.
[ ] Documentation is updated.
[ ] All checks and tests pass.
[ ] Approved by at least one reviewer.
[ ] Merged into the main/master branch.

/test test-unit

/lgtm

/cc @dislbenn

/lgtm


When using fsdp=true, the error message is the same. Does this not have any effect?

When I use 13b, batch_size=1, an error occurs on v3-8 as follows:
When using fsdp=true, the error message is the same. Does this not have any effect?
jaxlib.xla_extension.XlaRuntimeError: RESOURCE_EXHAUSTED: Failed to allocate request for 12.50MiB (13107200
B) on device ordinal 0: while running replica 0 and partition 0 of a replicated computation (other replicas
may have failed as well).
...
--fsdp=True
...

FSDP only reduces memory usage when you have extra DP mesh axis. In your v3-8 case, it is likely you used all the accelerators for model parallelism, so your DP axis is probably already 1. In that case, FSDP will not reduce memory usage.

Yes, I did configure “8,1" indeed.
So, is this(13b) configuration suitable for v3-256?
--mp_mesh_dim='32,1'
or
--mp_mesh_dim='32,8' \

I would recommend 32,1, as we don't need that much model parallelism for a 13b model. The rest can be saved for data parallelism.

but i try it ， It encountered this error, seems to have happened in the save function. May I ask what is the reason for this?
The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/llama_easylm/EasyLM/EasyLM/models/llama/llama_train.py", line 288, in <module>
    mlxu.run(main)
  File "/home/.local/lib/python3.8/site-packages/absl/app.py", line 308, in run
    _run_main(main, args)
  File "/home/.local/lib/python3.8/site-packages/absl/app.py", line 254, in _run_main
    sys.exit(main(argv))
  File "/home/llama_easylm/EasyLM/EasyLM/models/llama/llama_train.py", line 240, in main
    save_checkpoint(train_state)
  File "/home/llama_easylm/EasyLM/EasyLM/models/llama/llama_train.py", line 212, in save_checkpoint
    checkpointer.save_all(
File "/home/llama_easylm/EasyLM/EasyLM/checkpoint.py", line 91, in save_all
    self.save_checkpoint(
  File "/home/llama_easylm/EasyLM/EasyLM/checkpoint.py", line 43, in save_checkpoint
    self.save_train_state_to_file(
  File "/home/llama_easylm/EasyLM/EasyLM/checkpoint.py", line 58, in save_train_state_to_file
    value = gather_fns[key](value)
  File "/home/llama_easylm/EasyLM/EasyLM/jax_utils.py", line 95, in gather_fn
    return jax.device_get(jax_gather_fn(tensor))
jaxlib.xla_extension.XlaRuntimeError: RESOURCE_EXHAUSTED: Failed to allocate request for 625.00MiB (655360000B) on device ordinal 0: while running replica 0 and partition 0 of a replicated computation (other replicas may have failed as well).

more detail
File "/home/.local/lib/python3.8/site-packages/jax/_src/traceback_util.py", line 166, in reraise_with_filtered_traceback
    return fun(*args, **kwargs)
  File "/home/.local/lib/python3.8/site-packages/jax/_src/pjit.py", line 248, in cache_miss
    outs, out_flat, out_tree, args_flat = _python_pjit_helper(
  File "/home/.local/lib/python3.8/site-packages/jax/_src/pjit.py", line 195, in _python_pjit_helper
    out_flat = pjit_p.bind(*args_flat, **params)
  File "/home/.local/lib/python3.8/site-packages/jax/_src/core.py", line 2591, in bind
    return self.bind_with_trace(top_trace, args, params)
  File "/home/.local/lib/python3.8/site-packages/jax/_src/core.py", line 362, in bind_with_trace
    out = trace.process_primitive(self, map(trace.full_raise, args), params)
  File "/home/.local/lib/python3.8/site-packages/jax/_src/core.py", line 816, in process_primitive
    return primitive.impl(*tracers, **params)
  File "/home/.local/lib/python3.8/site-packages/jax/_src/pjit.py", line 1269, in _pjit_call_impl
    return compiled.unsafe_call(*args)
  File "/home/.local/lib/python3.8/site-packages/jax/_src/profiler.py", line 314, in wrapper
    return func(*args, **kwargs)
  File "/home/.local/lib/python3.8/site-packages/jax/_src/interpreters/pxla.py", line 1934, in __call__
    results = self.xla_executable.execute_sharded(input_bufs)
jax._src.traceback_util.UnfilteredStackTrace: jaxlib.xla_extension.XlaRuntimeError: RESOURCE_EXHAUSTED: Failed to allocate request for 625.00MiB (655360000B) on device or
dinal 0: while running replica 0 and partition 0 of a replicated computation (other replicas may have failed as well).

The stack trace below excludes JAX-internal frames.
The preceding is the original exception that occurred, unmodified.

For TPU pod v3-256, do you have any recommended configuration on 13b? I have tried multiple configurations but they all result in similar errors.

For TPU v3-256 with the 13b model, I recommend using FSDP and use mesh dim 4,1. I'm able to get batch size 64 with that configuration

Great, I tried several configurations before (8,1) (16,1) (32,1) (64,1), but none of them worked. It turns out that only (4,1) works. Thank you very much for your suggestion.
I also have two small questions:

What is the reason why configurations larger than 4 do not work?
If it's for 30b and 65b, can batch size be reduced proportionally? For example, can 30b be set to 16 and 65b to 8 and still run normally with mesh dim set at (4,1)?
Thanks again~

I'm also not sure why other configurations do not work on TPU. Maybe TPU-v3s are just too limited in memory. I will try to look into this more.

Thank you for your reply. I will conduct further experiments and provide you with feedback on any new discoveries as soon as possible.

For TPU v3-256 with the 13b model, I recommend using FSDP and use mesh dim 4,1. I'm able to get batch size 64 with that configuration

For the updated code, how should 3d mesh dim be configured to achieve the same effect?
Is the following configuration okay?
...
--mesh_dim='1,64,4'
...

Yeah that seems correct. I recommend use FSDP as much as possible instead of MP.

thank you ~


don't error on InputCanceledError

Otherwise we'd fall into this case here: https://github.com/keybase/kbfs/blob/2cc8f8832ed876f51044ddefe7edb5e57bef5432/libkbfs/rekey_fsm.go#L386-L395 and schedule another rekey in rekeyRecheckInterval which is 30s. With the added error check in this PR, we'd continue with a rekey scheduled in r.fsm.fbo.config.RekeyWithPromptWaitTime() which is 10min for now.

This error was introduced 2 years ago I think, so it could be we just missed it in the first place.


connections

hi
how can i connect arduino and mainboard. which port should i use in the mainboard?

I edited platform.io file
;default_envs = genericSTM32F103RC
;default_envs = hoverboard
;default_envs = hoverboard_6word
;default_envs = control_softwareserial
;default_envs = control_usart2
default_envs = control_usart3
;default_envs = control_usart3_ADC
;default_envs = control_ADC
;default_envs = control_PPM
build and upload firmware after this operation I used example code but it was not work.
I use esp32 wroom
Do you have any idea of this problem

solved :
if you use esp32 wroom please change serial1 to serial2


Re-export log::LevelFilter and update docs to match

Noticed with 0.14.0, tui_logger::init() is now used to set log level when using tracing. This is nice because I can now use different log levels than the old default (info or higher).
I have updated the docs to remove the 'limitation' I added previously in #68 as it has been resolved.
I also added log::LevelFilter as a re-export, as it is required as a parameter to init(), and tracing users are not likely to import log. This should be a non-breaking change as far as I am aware, log users can continue to use log::LevelFilter and tracing users can start using tui_logger::LevelFilter and I have tested this locally.
Finally, version num has been bumped to match crates.io.

Thanks for the version number update. Apparently the push from my local repo to github has not worked as expected.


Set uvloop version consistent with hass.io

Description:
This sets the uvloop version in Docker containers to 0.11.3, which is the
same version that hass.io uses.
uvloop might be causing issues with some Docker containers on some host
systems.
Related issue (if applicable): fixes #20829

Thanks @ottowinter 👍


prow: Remove deprecated Debian 8 from linux image list

official docs already reflect this: (no debian-8 found) https://cloud.google.com/compute/docs/images#images_without_shielded_vm_name_support

/ok-to-test


About the width properties of FluentSelect and FluentSelect components

FluentSelect and FluentSelect components do not take effect when the Width property is less than 250px

Hi,
We have a template for raising issues. Please use that and supply code or a repository we can use to reproduce the issue. Help us to help you!
If you do not supply us with the information, the issue will be closed.