Reading individual values from files (eg. docker secrets)

I'd find it useful to read certain parameters from a file, so for example say I have a password command line flag defined. I'd use it like -password=1234 with the flags package, and this package also adds compatibility with PASSWORD=1234 environment variable to fill it in. It would be even better if I could fill it in with a secret, like PASSWORD_FILE=/secrets/password.

I came here searching for this feature as well.  Unfortunately, the magic 8-ball says "Outlook not so good".  This project has a small number of PRs in the queue and no updates in quite a number of years.  :(

Ruminating on this issue, this is definitely something that breaks current implementations.
Docker Secrets standards use _FILE appended to the name of the variable to indicate the variable (as you explained above), but there's nothing stopping me from having an actual PASSWORD_FILE variable, that really points to a file, that's not a docker secret.
In that case, I don't want to read a docker secret PASSWORD, I want the variable PASSWORD_FILE.  So that means using secrets will have to be a build-time decision.
Perhaps setting flag.Secrets = true could trigger the alternate usage.  At that point, I'm hesitant to put it upstream.  It really is coding for a specific environment, that's not a majority, which I do not believe belongs in this package.
Believe me, I want it automagically too, that's why I came here.  However, it might just be simpler to use github.com/ijustfool/docker-secrets and code for whichever variables you want to use _FILE for.
It's ugly, but functional.
package main

import (
	"fmt"

	secrets "github.com/ijustfool/docker-secrets"
	"github.com/jnovack/flag"
)

var word = flag.String("word", "bird", "string")
var wordFile = flag.String("word_file", "", "string")

func main() {
	flag.Parse()

	if *wordFile != "" {
		dockerSecrets, _ := secrets.NewDockerSecrets(".")
		secret, _ := dockerSecrets.Get("word")
		*word = secret
	}
	fmt.Printf("word: %s\n", *word)

}

❯ cat food
pizza
❯ go run main.go -word banana
word: banana
❯ go run main.go -word_file food
word: pizza

Probably this is less important now because k8s can pass secrets as both environment variables or files.


Option Merging for fetch and asyncData method

Hi @Atinux . I was wondering, do we support Option Merging . I tried for fetch method but it didn't seem to fire log messages in both mixin and fetch defined in component like they do in vue mixins. I think this is true for asyncData too

Hi, I've created a helper that makes nuxt possible to use mixin for asyncData/fetch.
https://github.com/dotneet/nuxtend


maxCachePeriodInSecond not working

Issue Description
What
KF does not honor maxCachePeriodInSecond when setting cache. Expected result is that KF downloads image from URL when maxCachePeriodInSecond expires. Instead, it always loads image from cache.
Reproduce
This happens always with any URL. Here is our code:
case fiveMinutes = 5

...

iconImageView.kf.setImage(with: urlValue, options: [.transition(.fade(0.25))], cachePeriod: .fiveMinutes )

...

extension Kingfisher where Base: ImageView {
    func setImage(with resource: Resource?, options: KingfisherOptionsInfo? = nil, cachePeriod: KingfisherImageCachePeriodType?, completionHandler: CompletionHandler? = nil) {
        var newOptions: KingfisherOptionsInfo? = options
        if let cacheType = cachePeriod {
            let cache = ImageCache(name: cacheType.getChacheName)
            cache.maxCachePeriodInSecond = 60 * cacheType.rawValue
            if newOptions != nil {
                newOptions!.append(.targetCache(cache))
            } else {
                newOptions = [.targetCache(cache)]
            }
        }
        self.setImage(with: resource, options: newOptions, completionHandler: completionHandler)
    }
}

maxCachePeriodInSecond is a "suggestion" of longest cache duration. It is not an aggressive way to control and clean the cache when any access happens. Basically, Kingfisher will check and clear the expired cached images when user tap Home button to send your app to background. If you need such an aggressive cleaning behavior, you may need to call cleanExpiredDiskCache(completion:) every time you try to access the images yourself, and do image retrieving in the completion handler.

Thank you for this guideline. It seems we were mis interpreting this value and will fix our code accordingly.


feat(backend): provision private key

Changes proposed in this pull request

load private key or create one
part of backend config

Context

fixes #606

Checklist

[x] Related issues linked using fixes #number
[ ] Tests added/updated
[ ] Documentation added
[ ] Make sure that all checks pass

Should this PR also add the key to the internal key registry?

Merging/rebasing main should resolve the failing Docker checks


Everywhere: A heap of fixes that implementing more static reflection JSON brought up

yes.

You had me at "More strictly define the function typecheck order"


C++ Code

Hello, thank you very much for answer me !
This is the question:
There are 2 tensors, tensor A and tensor  B with same shape and data-type,  how can I put B into A with C++ code. I know in Python, I can use "append()" function. In C++, which function is same  with "append()"?
Python's code for example :
TrainImageDataArray = []
ImageData = mpl.image.imread(strImageInfoArray[i][0])
ImageData = ImageData.reshape(-1)
TrainImageDataArray.append(ImageData)

And how can I put "ImageData" into "TrainImageDataArray" in C++.

Suppose you are using std::vector for that, you can do that:
TrainImageDataArray.insert(TrainImageDataArray.end(), ImageData .begin(), ImageData .end());


chore(deps): upgrade dev dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dev-dependencies-k8s-26-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 3617

Questions ?
Please refer to the Backport tool documentation


Binding sample does not work

Hello.
If I try to run the following xaml page, build from microsoft sample in https://docs.microsoft.com/en-us/dotnet/maui/user-interface/controls/radiobutton#group-radiobuttons, it does not display the name of the animal in the  entry. How can I fix the issue?
Regards,
Gilbert

<StackLayout RadioButtonGroup.GroupName="{Binding GroupName}"
         RadioButtonGroup.SelectedValue="{Binding Selection}">

    <RadioButton Content="Cat"
             Value="Cat" />
    <RadioButton Content="Dog"
             Value="Dog" />
    <RadioButton Content="Elephant"
             Value="Elephant" />
    <RadioButton Content="Monkey"
             Value="Monkey"/>

            <FormattedString>

            </FormattedString>

</StackLayout>

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

ID: a4d9b4fe-c357-031e-3fc4-9c22ffee81db
Version Independent ID: a4d9b4fe-c357-031e-3fc4-9c22ffee81db
Content: RadioButton - .NET MAUI
Content Source: docs/user-interface/controls/radiobutton.md
Product: dotnet-mobile
Technology: dotnet-maui
GitHub Login: @davidbritch
Microsoft Alias: dabritch

Hi @GT85
I just tried the sample (https://docs.microsoft.com/en-us/samples/dotnet/maui-samples/userinterface-radiobutton/) on both Android and Windows and the radio button values and selection were being displayed.

Hi David.
Sorry, I did not write that I was using and testing Mac OS (12.4).
Nevertheless, I did a test on Android (see attached) and I get the same issue. Do you use exactly the same xcml file as me ?
Regards,
Gilbert

<StackLayout RadioButtonGroup.GroupName="{Binding GroupName}"
         RadioButtonGroup.SelectedValue="{Binding Selection}">

    <RadioButton Content="Cat"
             Value="Cat" />
    <RadioButton Content="Dog"
             Value="Dog" />
    <RadioButton Content="Elephant"
             Value="Elephant" />
    <RadioButton Content="Monkey"
             Value="Monkey"/>

            <FormattedString>

            </FormattedString>

</StackLayout>

Le 3 août 2022 à 13:52, David Britch @.***> a écrit :
Hi @GT85 https://github.com/GT85
I just tried the sample (https://docs.microsoft.com/en-us/samples/dotnet/maui-samples/userinterface-radiobutton/ https://docs.microsoft.com/en-us/samples/dotnet/maui-samples/userinterface-radiobutton/) on both Android and Windows and the radio button values and selection were being displayed.
—
Reply to this email directly, view it on GitHub https://github.com/dotnet/docs-maui/issues/737#issuecomment-1203849953, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH346GXOJ5QOBQ6LGXY4QKDVXJMRJANCNFSM55OM42HA.
You are receiving this because you were mentioned.

I've ran it on Windows and Android from VS, and on iOS/Android/Mac from VSMac. It works in all cases for me.
Here it is on iOS, Android, and Mac (12.5):

I'm running the latest public previews of VS 17.3 and VSMac 17.3.


Create Article “misc-homebrew”

Automatically generated by Netlify CMS

👷 Deploy Preview for dynamic-cheesecake-5fbd8b processing.

Name
Link

🔨 Latest commit
9cab432d3718b4b065e9991fc698147ba1da1d26

🔍 Latest deploy log
https://app.netlify.com/sites/dynamic-cheesecake-5fbd8b/deploys/62ef36ab48a870000914e362


User task job handler not activated

I have following code to complete user tasks:
public static async Task Main(string[] args)
{
    var zeebeClient = GetClient();
    RegisterUserTasksHandler(zeebeClient);
    Console.ReadKey();
}

private static void RegisterUserTasksHandler(IZeebeClient client)
{
    var jobType = "io.camunda.zeebe:userTask";

    var worker = client.NewWorker()
        .JobType(jobType)
        .Handler(JobHandler)
        .Name($"{Environment.MachineName}_{jobType}")
        .PollInterval(TimeSpan.FromSeconds(5))
        .Timeout(TimeSpan.FromSeconds(10))
        .PollingTimeout(TimeSpan.FromSeconds(10))
        .Open();
}

private static async Task JobHandler(IJobClient client, IJob activatedJob)
{
    await client.NewCompleteJobCommand(activatedJob)
        .Send();
}

When user task has started, the method JobHandler not launched.
What I'm doing wrong?

Hey @Ar4ics
thanks for reporting. Could you please share an example process model so I can reproduce it? Do you see any errors in the log? Broker or client?
How do you run Zeebe? Are you using Camunda cloud?
Greets
Chris

Hi @Zelldon.
I am using example bpmn from send-email
Zeebe 1.2.4 was deployed in Camunda Cloud Self-Managed.
Its interesting that if I add line MaxJobsActive(1) then JobHandler gets called:
client.NewWorker()
    .JobType(jobType)
    .Handler(JobHandler)
    .MaxJobsActive(1)
    .Name($"{Environment.MachineName}_{jobType}")
    .PollInterval(TimeSpan.FromSeconds(5))
    .Timeout(TimeSpan.FromSeconds(10))
    .PollingTimeout(TimeSpan.FromSeconds(10))
    .Open();

But without this line its not called.

Hey @Ar4ics
Thanks for the additional comment. This makes totally sense. Currently the maxJobsActive if not set, default to zero, which would cause to not active any jobs.
I can increase the default to one.


[ROCKETMQ-188]RemotingExecption is not consistent between invoke async and invoke oneway

JIRA: https://issues.apache.org/jira/browse/ROCKETMQ-188

Coverage increased (+0.04%) to 37.893% when pulling ec2d4ac140fab8812066a7184f9e21ea0b879191 on Jaskey:ROCKETMQ-188-remoting-exception-inconsistent into 6a9628b3c3e6835e37baf7b58ad9300364d4d384 on apache:develop.

@lizhanhui @zhouxinyu @shroman
guys, anyone helps review this pr?

LGTM  @zhouxinyu @vongosling

LGTM~, thanks @Jaskey


Fix the query property inconsistency with the protocol

Packages impacted by this PR
@azure/web-pubsub-express
Issues associated with this PR
https://github.com/Azure/azure-sdk-for-js/issues/24515
Describe the problem that is addressed by this PR
The Azure Web PubSub service defines it's protocol sending CloudEvents out as query, however in TS we defined it as queries in the interface. To resolve the inconsistency between them, add a query property to the interface but mark it as obsolete and mean why set the value of queries as the value of query to make the property work.
What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?
Are there test cases added in this PR? (If not, why?)
Provide a list of related PRs (if any)
Command used to generate this PR:**(Applicable only to SDK release request PRs)
Checklists

[ ] Added impacted package name to the issue description
[ ] Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
[ ] Added a changelog (if necessary)

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-web-pubsub-express

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-web-pubsub-express

Hi Jeff @xirzec , could you help approve the API changes so that I can release a new version? Thanks!

Hi Jeff @xirzec , could you help approve the API changes so that I can release a new version? Thanks!

Done


Revert "Bratseth/phrase segmenting feature flag" MERGEOK

Reverts vespa-engine/vespa#12399

This broke the config model API, since there are existing config models (in CD) that call ModelContext.Properties.usePhraseSegmenting(). I'll make a PR to add that back (with a default implementation returning true)


About the solution of Lagrangian dual subproblem

Hi,
First, I'd like to thank you for your excellent work! I have a few questions I'd like to consult with you, if convenient. When I implemented the code you provided, I found that solving a single Lagrangian dual subproblem was quite time-consuming. As a result, the total computation time is significantly longer than what is reported in the paper, and the total number of iterations is also much fewer. Could this be due to a bug, or is there another underlying issue?

Hi @luoxiaoyushuai,
Thank you for your kind words and for taking the time to use the code and share your observations!
It has been some time since I worked on this project, so I may not recall all the intricate details of the implementation. Nevertheless, I’ll do my best to help you troubleshoot and address the issues you’re encountering.
To better understand the situation, could you clarify the following:

Are you using standard SDDiP or dynamic SDDiP?
Which paper are you referring to?
What problem instances are you applying the algorithm to? Are these drawn from the paper, you are referring to or are they different? If the instances differ, this could also explain discrepancies in computation times.

For context, the code in this repository uses a Bundle method with proximity control to solve the dual subproblems during the backward pass of the SDDiP algorithm. It’s important to note that the method implemented here may differ from the one described in the paper you’re referencing, which could account for some differences in performance.
Moreover, the implementation of dynamic SDDIP in this repository updates the approximation of the expected value function with non-convex Lagrangian cuts. These non-convex cuts tend to significantly increase the complexity of the subproblems, which is a known challenge with this approach. This increase in complexity could very well explain the longer computation times in your implementation.
Lastly, while I have not encountered major issues with the code myself, I cannot rule out the possibility of bugs. If you suspect any specific behavior or would like to share more details about your problem instance and settings, I’d be happy to take a closer look.
Thank you again for your feedback! I hope this provides some clarity, and please feel free to reach out with any additional questions or details.


x/y coordinate and spacing datasets added to static layer output

This PR:

adds missing x/y coordinates and spacing datasets to the topo static layers
adds ability to generate topo static layers with compass.s1_geocode_metadata
clean up unused yaml and debug print

Now that topo static layers can be generated with compass.s1_geocode_metadata, should this ability be removed from compass.s1_geocode_slc?

No, this capability should not be removed from s1_geocode_slc. We promised PGE that the static layers would have been generated with the same SAS we use to generate the product. At some point, we want to add the capability to switch on/off the generation of the actual CSLC (to generate the static layers only)

Thank you @LiangJYu for this PR. Two very broad comments:
1. Can we have the static layer product be named `static_layers_burst_id.h5` instead of `topo.h5`? In this way, we can guarantee that the filename is sort of unique

2. I do not want the static layers product to be too different from the actual CSLC-S1 product.
   I am wondering whether we should allocate the static layers under `/science/SENTINEL1/CSLC/grids/static_layers`

3. In the static layer products we should have a burst_id metadata (may be following the same metadata tree of the CSLC-S1 product).

All 3 points above have been addressed.


Tabular: Fixed 'ignore_text' preset

Issue #, if available:
Description of changes:
Fixed 'ignore_text' preset causing crash.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Job PR-752-1 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-752/1/index.html


swagger 2.0

Need any help on that? I've choosen your library after playing around with plenty of similar available and by far this is the only one that does not have a problem with nested schema arrays!

Thank you for noticing ;-) An alpha version is already published to npm (alpha: '2.0.0-alpha.2'). Basically it's just the tests (including some top-level integration tests), their coverage and some beta-testing which is left until a stable release. Feel free to support!
https://travis-ci.org/z0mt3c/hapi-swaggered/builds
63 tests complete
Test duration: 297 ms
No global variable leaks detected
Coverage: 98.65% (11/813)
lib/generator.js missing coverage on line(s): 18, 19, 21, 23
lib/index.js missing coverage on line(s): 72, 73
lib/resources.js missing coverage on line(s): 24, 29, 38
lib/utils.js missing coverage on line(s): 232, 246
Code coverage below threshold: 98.65 < 99

Great, will check it out! I'm still impressed by the fact it handles all my nested objects with custom classNames without event a single collision!

Switched branches... work is now happening in master.

Do you need any help with that? As I said, lovely plugin, unfortunately not that popular as other swagger library which used to be full of bugs (at least when I used it for the last time)

I think it's close to stable - got the coverage up, feels solid, may just #15 left (feel free to discuss) :-) Are you on the latest alpha?

Just went back to lower version as mentioned in a different issue due to the grouping problems ;)

Done

Ok. I am updating to the lastest version to see what had changed.

Unfortunately still throwin an error. Latest version + 1.3.0 UI.
model.js:223 Uncaught TypeError: Cannot read property '$ref' of undefined

No call stack available, but the issue is here:
if (_.isUndefined(item.$ref))

Item for some reason is undefined (which is weird) as there's a map method being called on an array, like data.map(item => {}).

I think the issue is because in the generated swagger output, items element looks like this:
"items":{"$ref":"#/definitions/IdTitleBuiltInModel"}}

So it looks like swagger expects an array to appear there?

Further observations...
The error actually occurs here:
Resolver.prototype.resolveTo = function (property, objs) {
  var ref = property.$ref;

  if (ref) {
    if (ref.indexOf('http') === 0) {
      if (Array.isArray(objs[ref])) {
        objs[ref].push({obj: property, resolveAs: '$ref'});
      } else {
        objs[ref] = [{obj: property, resolveAs: '$ref'}];
      }
    }
  } else if (property.type === 'array') {
    var items = property.items;
    // items is undefined here!
    this.resolveTo(items, objs);
  }
};

Yeah true under this condition it creates an invalid schema. I hit this issue once as well - but for some reason i decided not to fix this.... may i didnt know which type to choose as fallback and decided to let swagger-ui handle it :-) But an uncaught typeerror is pretty unsatisfying.... should we go for string? what do you think?

Follow up @ #22

Cool, thanks. I've managed to fix the issue on my side, all good. I think I am gonna provide extended schema validation in the small framework I am currently working on anyway as any value is not a good rest approach.


Integration with Basis Universal GPU Texture Codec

Is your feature request related to a problem? Please describe.
Minimizing textures size for on-disk storage and network transport (downloading, patching, etc), while supporting each platform's preferred compressed GPU texture format for optimal rendering performance.
Describe the solution you'd like
Integration of Filament with recently open-sourced and backed by Google Basis Texture Codec.
Describe alternatives you've considered
Compressing texture files with LZ4.
OS and backend
Thanks to Basis multiplatform support it should be transparent to end-users.

We have to think about whether it makes sense to be directly in Filament. There's technically no reason why it cannot be done in the app or as a separate library (like our glTF loader for instance).

Our mipgen tool can be used to compress textures and it does not yet have basis support, that's something we can consider adding.

Just FYI, this documentation may be helpful for supporting KTX and Basis Universal: https://github.com/KhronosGroup/3D-Formats-Guidelines/blob/main/KTXDeveloperGuide.md. It's a fairly new document, please let us know if you have any issues with it.
/cc @lexaknyazev (author)

Thanks @donmccurdy!

@prideout Is there still more work to do here?

@romainguy this work is complete, this issue is basically a dup #4771, I forgot to close these issues.


Google Chrome Picture-in-Picture support

This commit add PIP button to control bar if supported by browser

Hi @golikov ,
I resolved conflicts with new release. may you check this pull request?

I am going to have to close this as stale. If this is still something you want to have, please open an Issue.
We are currently refactoring Fluid Player code-base (branch v3) and current master is feature locked.


Automatically convert between underscores and camelCase

I often have to interact with APIs that use underscores in their JSON responses (e.g. 'some_property'). This forces me to do a lot of manual mapping to convert to ObjC/Swift camel case properties (e.g. 'someProperty). It would be fantastic if OCMapper could automatically convert between the two.

I'll check it out, if it doesn't bring the performance down will add it. Otherwise you could simply write a category to NSDictionary that loops through all keys and changes them to camel case before passing it to OCMapper, should be quite easy and straight forward

That's definitely an option, but since the underscore syntax is pretty common in APIs it seemed worth adding to the library. Thanks for looking into it!

This is now available on 2.1

Works great. Thanks for adding it! 🍺


Bug: inconsistent performance when adding this extra header to page

Describe the bug
In the timesheet entries, I have the system set up to render the rows and it all works great. DOM operations for insert/delete/update are roughly 30ms total. Then in some contexts I need to add a header that summarizes the data for the timesheet. It's really just status and totals, because the totals may update when changes are made and that feedback can be helpful to the user.
Please note that generating the VNode tree takes approximately 1ms both with and without the following header info. When the header is generated it adds 90ms - 400ms to the DOM operations, dependent on how its rendered. Upgrading to v0.6.4 has dropped the times from about 300ms - 550ms originally, so it is better than before.
Also note that all interpolated areas/values in the following JSX code are already converted to strings. No additional VNodes are created, just these text nodes.
Original form (180ms average increase in time):

        User

        {sheet.user.name}

        Time Sheet Period

        {sheet.week_start.format()} - {sheet.week_end.format()}

        Total Points

        {total_points} Points

        Total Hours

        {total_hours} Hours

        Status

        {sheet.status}

"Optimized" form (90ms average increase in time):

User

{sheet.user.name}

Time Sheet Period

{sheet.week_start.format()} - {sheet.week_end.format()}

Total Points

{total_points} Points

Total Hours

{total_hours} Hours

Status

{sheet.status}

I think the issue relates to checking text nodes, as well as empty nodes like
 tags.
I have also noticed a performance hit in a different area, related to updating select and option tags. (Inserting/updating a select with 1000 items can take 1 second.) But I can do a little checking and file a separate issue for that.
To Reproduce
The VNode tree looks a bit like this:

Wrapper element (never changes)

"Sheet Header" (see above)
"Card" element

Header (never changes)
[ multiple rows here ]
Footer (never changes)

Add Type 1 (button)
Add Type 2 (button)

As you'd guess, the bulk of the changes are in the "multiple rows" area. When the "Sheet Header" is included in the context, performance immediately degrades from a stable average of 30ms.
Expected behavior
I expected only a minor performance hit, if at all.
Screenshots
Not really visually related.
Operating System
MacOS Catalina 10.15.7 (19H1419)
Browser
Chrome 94; FireFox 93
Additional context
If it would help, I could try recording flame graphs.
Performance hits between contexts that I understand and expect for the moment:

Select and Option tags have varied values and counts for each; I think it can account for up-to 10ms loss right now. (Now that I have accounted for the 1k element select per row issue.)

Looking through the code you provided, I can't pinpoint any glaringly obvious things that could reduce performance of the renderer. This just might be an underlying issue with the Virtual DOM model in general, and I recommend you try out the key prop (this and that.
I'll try to repro this issue tonight and I'll get back to you if I can find a bug and a fix.

Would it be possible to add a new VDeltaOperationTypes item of IGNORE? I do know certain things like what rows won't change. And I can make it so that only the newest rows are INSERT and the changed ones UPDATE, and skip the ones which haven't changed. Just an idea for optimizing larger/longer UIs.

You can manually add an ignore=true prop to an element to completely skip rendering on it.


SpiceAI Nirvana

To show SpliceAI results in DRAGEN output, Nirvana is required. ref
I don't see Nirvana being mentioned in this repo.
I heard the current annotation approach is done outside dragen? Will need to find out how people want to go about this.

Looks like it can be done with dragen https://help.dragen.illumina.com/product-guides/dragen-v4.3/nirvana#annotate-files-via-dragen-command-line

Nirvana provides translational research-grade annotation of genomic variants (SNVs, MNVs, insertions, deletions, indels, STRs, gene fusions, and SVs (including CNVs).
The input to Illumina Connected Annotations are VCFs and the output is a structured JSON representation of all annotation and sample information (as extracted from the VCF).
ref
Their annotation step is also the downstream of variant calling.

Concern 1: The output is json. I assume it won't be able to directly integrate with whatever existing downstream tool to produce the html report?
Concern 2: The annotation resources listed here may be older versions than currently used, although we still need to check what the real annotations are in /opt/dragen/<VERSION>/share/nirvana.
Concern 3: The annotation resources listed here look rare diseases focused. For example, cosmic is not there. Need to find out what cancer-related annotations still need to be included.
This is not a priority before the end of this year. Thank you for being proactive. 🙏

Just continue to put down some notes here.

For a recent release, UK Biobank successfully annotated their entire dataset of 500,000 whole-genome multi-sample variant call files in approximately 90 minutes.
If applicable, it also adds associated Cancer Hotspots annotation.
The data sources supported are listed in Table 1 and divided into two tiers: Premium and Basic.
There is no charge for the use of Premium-tier data sources within Illumina Connected Annotations for DRAGEN users.

ref


how to limit recursive children bean's depth, please help~

the bean like this:
public class Data {
    private List<Data> datas;
    //...
}

You can use a combination of objectPoolSize and randomizationDepth parameters in order to avoid recursion in data structures like these.

Thanks for your response. In fact, I've read the doc and tried that, but failed, I'll try it again, check if I miss sth. @benas

I'm closing this ticket as I think there is no issue, a combination of objectPoolSize and randomizationDepth parameters should do it.
@live106 if you still struggle to implement what you want, feel free to add a comment here.


Fixed https connection to ElasticSearch

There was a problem connecting to ES using https
I have changed parameters from --server and --port to --es-connection, which will include protocol http(s):// + host + (:port)
I have also renamed related ES arguments to --es- to quickly identify them as ES related
NOTE: To test this PR I have used code from https://github.com/cloud-bulldozer/osde2e-scale-wrapper/pull/36 and https://github.com/cloud-bulldozer/osde2e-scale-wrapper/pull/33, merge them before this one

@dry923 ready to review

@dry923 ready to review


Bounds soundness error with slice_nodes = false

With the following Lustre program:
type T = subrange [0,1] of int;

function B(x: T) returns (y: T)
let
    y = x;
tel

function A(x: int) returns (y, z: T)
let
    y = x;
    z = B(y);
tel

kind2 correctly identifies the bounds violation in the y = x assignment when using --slice_nodes true:
$ kind2 --slice_nodes true foo.lus
[..]
<Failure> Property y.bound is invalid by property directed reachability for k=0 after 0.051s.

but with --slice_nodes false, it succeeds erroneously:
$ kind2 --slice_nodes false foo.lus
[..]
<Success> Property y.bound is valid by property directed reachability after 0.060s.

Version kind2 36140a5a

I’ve been able to reproduce this bug with the default setting for --slice_nodes, though so far haven’t been able to produce a small example input.

Found a simple reproducer:
type U = subrange [0,2] of int;
type T = subrange [-1,1] of int;

node A(x: U) returns (y: U)
let
    y = x;
tel

node B(x: T) returns (z: T; y: U)
let
    y = x;
    z = A(y);
tel

$ kind2 foo2.lus
[..]
<Success> Property z.bound is valid by property directed reachability after 0.050s.
<Success> Property y.bound is valid by property directed reachability after 0.050s.

Hi Aaron,
Thank you for reporting this bug and providing the small reproducer. It seems the current mechanism for checking subrange bounds is broken. I will review it and make the appropriate changes to fix it, but it will take some time. I'll keep you posted.
Thanks,
Daniel


Pharo rewrite snippet should allow scoping of rewrites

The Pharo rewrite in Lepiter should allow one to limit the scope of the methods the rewrite is performed on. Currently, each rewrite is performed on the whole image, but it should be possible to limit to a package or some other filter.

Here is an example:
searchMethods is a variable defined within the scope of the page and it appears as a possible target in the dropdown of the rewrite scope, next to All methods:

We need to have a way to define global default scopes, like All methods. Such a mechanism would allow us to customize the dropdown for a specific system.

If you are viewing a search filter, you can use self for the search in scope:

The scope was changed to use the filters used in coders:


Memory footprint grows indefinitely

If left running the memory footprint will grow indefinitely. I investigated the issue with heapy.
The type taking most of the space is dictionaries:
	 Partition of a set of 513745 objects. Total size = 130115120 bytes.
 Index  Count   %     Size   % Cumulative  % Kind (class / dict of class)
     0  41241   8 63649752  49  63649752  49 dict (no owner)
     1 153068  30 12261576   9  75911328  58 str
     2  88333  17  7873408   6  83784736  64 tuple
     3  14425   3  6690568   5  90475304  70 list
     4  24848   5  3180544   2  93655848  72 types.CodeType
     5   2422   0  3025168   2  96681016  74 dict of type
     6  24896   5  2987520   2  99668536  77 function
     7   9417   2  2636760   2 102305296  79 dict of 0x23d2080
     8   2423   0  2186576   2 104491872  80 type
     9    774   0  2088336   2 106580208  82 dict of module

Investigation the dictionaries show that most were cybox objects:
>>> h[0].byrcs
Partition of a set of 41241 objects. Total size = 63649752 bytes.
 Index  Count   %     Size   % Cumulative  % Referrers by Kind (class / dict of class)
     0      1   0 25166104  40  25166104  40 dict of cybox.utils.caches.DictCache
     1   2350   6  7877200  12  33043304  52 dict of cybox.objects.file_object.File
     2   5140  12  5386720   8  38430024  60 dict of cybox.core.observable.Observable
     3   4397  11  4608056   7  43038080  68 dict of cybox.common.properties.HexBinary
     4   4397  11  4608056   7  47646136  75 dict of cybox.common.vocabs.HashName
     5   3695   9  3872360   6  51518496  81 dict of cybox.common.properties.String
     6   2047   5  2145256   3  53663752  84 dict of cybox.common.properties.UnsignedLong
     7    318   1  1969488   3  55633240  87 dict of module
     8   4397  11  1231160   2  56864400  89 dict of cybox.common.hashes.Hash
     9   1124   3  1177952   2  58042352  91 dict of cybox.common.properties.AnyURI

The elevator was written as an experimental tool for users to become familiar with STIX 2.0, assuming they had some familiarity with STIX 1.x.  That being said, we do plan to improve performance in the next major version - so we will definitely look into memory issues.

@rpiazza Thanks for getting back to me. Great news that you will be looking in to it. I do understand that this isn't a production ready product. I wasn't expecting a fix, I just thought it was worth raising an issue.

Based on the data above, I'm going to guess it's related to CybOXProject/python-cybox#290. There's a workaround in that issue discussion (un-setting a post-set hook), and will hopefully be fixed by default in the next python-cybox.
@StephenThomson, can you try that workaround?

Thanks very much for your help.
I'm running that now, I'll update with results.

Unfortunately it didn't seem to help. A quick look through the code suggests there a few dictionaries lying around that get added to but seem to never be managed e.g. OBSERVABLE_MAPPING in convert_stix.py

Hmmm, yes, it looks like those could grow indefinitely. You could probably write some code to throw away that "context" whenever you're done with it (probably on a per-document basis), but this is something we should make it easier to do.

Thanks - this is an actual bug - see elevate_file where we clear the mappings - guess we missed one.  All of these global maps should go away in the performance release.

Thanks, @rpiazza, I knew I had seen code to do that somewhere, but I didn't find it in a brief search this morning.

I fixed the issue with OBSERVABLE_MAPPING in https://github.com/oasis-open/cti-stix-elevator/commit/b2cb9f22f867c9b0232943d67f36acae24448aea.
Please inform us if you encounter any other memory leaks.

Hi,
Thanks for the fix, I've tested it and the memory performance is much better now.
However I think there is still a problem. I wrote a quick test script to highlight it:
from cybox.core import Object
from stix2elevator import elevate_string,options
import time
import thread
from guppy import hpy

heapy = hpy()
heap = heapy.heap()
Object.id_.postset_hook = None

def run():
    xml_input_file = open('1.xml', 'r')
    xml_string = xml_input_file.read()
    options.initialize_options()
    for xml_idx in range(1,50000):
        elevate_string(xml_string)

thread.start_new_thread(run,())

while 1:
    try:
        output = open("output", "a")
        output.write(str(heap))
        output.close()
        time.sleep(300)
    except KeyboardInterrupt:
        output.close()
        break

The output was:
Partition of a set of 301744 objects. Total size = 39487624 bytes.
 Index  Count   %     Size   % Cumulative  % Kind (class / dict of class)
     0 109823  36  9007296  23   9007296  23 str
     1  81677  27  7291096  18  16298392  41 tuple
     2  23223   8  2972544   8  19270936  49 types.CodeType
     3   2200   1  2847040   7  22117976  56 dict of type
     4  23113   8  2773560   7  24891536  63 function
     5   2138   1  2607344   7  27498880  70 dict (no owner)
     6   2200   1  1985080   5  29483960  75 type
     7    695   0  1852712   5  31336672  79 dict of module
     8   1072   0  1123456   3  32460128  82 dict of mixbox.fields.TypedField
     9   4158   1   588912   1  33049040  84 list
<494 more rows. Type e.g. '_.more' to view.>Partition of a set of 301744 objects. Total size = 39676720 bytes.
 Index  Count   %     Size   % Cumulative  % Kind (class / dict of class)
     0 109823  36  9007296  23   9007296  23 str
     1  81677  27  7291096  18  16298392  41 tuple
     2  23223   8  2972544   7  19270936  49 types.CodeType
     3   2200   1  2848576   7  22119512  56 dict of type
     4  23113   8  2773560   7  24893072  63 function
     5   2297   1  2674904   7  27567976  69 dict (no owner)
     6   2200   1  1985080   5  29553056  74 type
     7    695   0  1855016   5  31408072  79 dict of module
     8   1072   0  1123456   3  32531528  82 dict of mixbox.fields.TypedField
     9   4158   1   753776   2  33285304  84 list
<494 more rows. Type e.g. '_.more' to view.>Partition of a set of 301744 objects. Total size = 39840560 bytes.
 Index  Count   %     Size   % Cumulative  % Kind (class / dict of class)
     0 109823  36  9007296  23   9007296  23 str
     1  81677  27  7291096  18  16298392  41 tuple
     2  23223   8  2972544   7  19270936  48 types.CodeType
     3   2200   1  2848576   7  22119512  56 dict of type
     4  23113   8  2773560   7  24893072  62 function
     5   2297   1  2674904   7  27567976  69 dict (no owner)
     6   2200   1  1985080   5  29553056  74 type
     7    695   0  1855016   5  31408072  79 dict of module
     8   1072   0  1123456   3  32531528  82 dict of mixbox.fields.TypedField
     9   4158   1   917616   2  33449144  84 list
<494 more rows. Type e.g. '_.more' to view.>Partition of a set of 301744 objects. Total size = 39938864 bytes.
 Index  Count   %     Size   % Cumulative  % Kind (class / dict of class)
     0 109823  36  9007296  23   9007296  23 str
     1  81677  27  7291096  18  16298392  41 tuple
     2  23223   8  2972544   7  19270936  48 types.CodeType
     3   2200   1  2848576   7  22119512  55 dict of type
     4  23113   8  2773560   7  24893072  62 function
     5   2297   1  2674904   7  27567976  69 dict (no owner)
     6   2200   1  1985080   5  29553056  74 type
     7    695   0  1855016   5  31408072  79 dict of module
     8   1072   0  1123456   3  32531528  81 dict of mixbox.fields.TypedField
     9   4158   1  1015920   3  33547448  84 list
<494 more rows. Type e.g. '_.more' to view.>

You can see that there is a problem with list objects growing. I will continue to investigate and hopefully come back with some better information soon.
Thanks,
ST

Thanks, I'll re-open this until we/you can track it down.

This might have been fixed by #90, but I'd like to confirm before closing.


Damage dealt wont show correctly in barbarian assault

I know this is pretty minor detail and won't affect many users but this would have some niche uses in barbarian assault speedruns since it would display the hit ~1 tick earlier than it would normally be shown on the npc. Currently it shows "1" everytime when hitting fighters/rangers in the minigame and doesn't actually show the true dmg. I don't know anything about coding or anything like that so I'm just curious if this would be possible to fix. Amazing plugin either way! <3

This is because I calculate the hits based on xp gained and you get no experience in this minigame.


first path segment in URL cannot contain colon

logs:
2021/03/27 15:20:53 parse "<IP_ADDRESS>:32769/api/v2/torrents/info?": first path segment in URL cannot contain colon
how i started container:
docker run -d --restart=always --name adevjoe-qbittorrent-notify \
    -e BOT_TOKEN='9999999999:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' \
    -e CHAT_ID='-349099999' \
    -e QBITTORRENT_HOST='<IP_ADDRESS>:32769' \
    -e QBITTORRENT_USERNAME='olvier' \
    -e QBITTORRENT_PASSWORD='passwordwithlettersandnumbers' \
    adevjoe/qbittorrent-notify:latest

Perhaps you can use http://<IP_ADDRESS>:32769 instead.

Awesome! That's it! Thank you :)


Pokemon - Filter - Disable PVP on Map with Silder

Would it be possible to add a slider in Pokemon menu as of 100%iv to disable the PVP Pokemon on the map. Some users request this feature as they only want to see hundo's (100IV) pokemons.
Current Behavior
No possible to disable PVP pokemon on the map.
Possible Solution
A slider as 100%IV to turn PVP Pokemon ON and OFF.

That should do the job

max rank = 0 ??


Super catchup and bootstrap

This PR makes more efficient versions of catchup and bootstrap

Closing since this has landed in an alternate form

Closing since this has landed in an alternate form


fix: adjust esm syntax judgment logic

Description

closes: https://github.com/vitejs/vite/issues/16315

Modules that uses ESM syntaxes can be detected via the fourth return value. Related documents

/ecosystem-ci run


Fix a few typos, links and other minor errors.

Fix broken link in CHANGES.md
Add full stop in CrudSamples.java
In the example in replication.md, Listener needs to be public so the event handler can invoke the listener.

As agreed in our conversation in Slack, I've updated the links in CHANGES.md to point to fixed versions that were the versions released when the entry in CHANGES.md was written. The only minor issue with this is that until we actually release a version, the links for the latest changes will be broken - e.g. the changes for 2.0.0 link to where the documents will be when 2.0.0 is released, but they're not there yet.

I think that is reasonable the 2.0.0 changes are unreleased at this point in time.
I'm still +1


Publish to npm

Hi. It would be great to see this project in npm registry.

I'm not sure how to do this really. The project does not make sense without the images, and npm does not accept 50MB+ packages

You could have this be a part of the module "build" process: Just before it finishes installing, it runs a build script that downloads the image data into its module dir. Kind of how the Electron package does it:
[ivan@alpha ~]$ sudo npm install -g electron-prebuilt
[sudo] password for ivan:
/usr/bin/electron -> /usr/lib/node_modules/electron-prebuilt/cli.js

><EMAIL_ADDRESS>postinstall /usr/lib/node_modules/electron-prebuilt
> node install.js

Downloading electron-v0.36.1-linux-ia32.zip
[============================================>] 100.0% of 38.25 MB (2.68 MB/s)

Past that it will be basically about exposing an API that lets you do things with the emoji, e.g. get the JSON, get the file for an emoji, etc.

@iamcal Yes, you right. There's no need to put this package to npm registry.
But, if you add package.json file to repository, it allows us to install directly from github with npm i github:iamcal/emoji-data.git

i've added a version basic package.json file: https://github.com/iamcal/emoji-data/blob/master/package.json
let me know what needs changing, or send a PR


feat: Implement ESZIP factory for easier eszip building, and first st…

Implement ESZIP factory for easier eszip building, and first steps towards NPM

I guess we can update the bundle command to take the input path as an arg and an optional --output path.
For example, it can be run as:
./edge-runtime bundle --output dist/my_func.eszip src/my_func/index.ts


UNITY_LICENSE secret cannot activate across forks

I am creating a new issue to discuss the problem of Unity license activation not working across forked repositories. As @webbertakken has mentioned, this may be due to nuanced interaction of secrets and protected branches, and it may be worth documenting that this is a known issue and to find any workarounds.

Steps to Reproduce:

Create UNITY_LICENSE secret on either the forked repo or the main repo (it does not matter).
Create a workflow in which the unity-builder action is used, and it is triggered on pull requests to the specified branch.
If the target branch is protected, the unity-builder will fail to find a Unity activation strategy.

NOTE: I have not tested this for unprotected branches yet.

A current workaround is to:

Merge into a new branch from the fork into the main repo without running the workflow.
Create the PR from this new branch into the target branch from in same repo.

Another potential workaround would be to use webbertakken/unity-builder@master in the workflow instead of 1.0.
Master contains potential fixes for exactly this issue that will be added to the next version.
Would be great to have confirmation for this workaround.

@webbertakken Unfortunately it looks like switching to uses: webbertakken/unity-builder@master does cause any change.

Ah right, it is about the conceptual problem that within Github Actions, the secret will not be shared someone who could potentially exploit it by changing the workflow and echo it's contents.

Related:
https://github.community/t/make-secrets-available-to-builds-of-forks/16166
https://github.community/t/allow-secrets-to-be-shared-with-forks-from-trusted-actions/16525

Closing this, but feel free to open or comment if there is more information available regarding this.


Add Windows touch input support for the new native Windows driver (win32drv)

Backported from https://github.com/lvgl/lv_port_windows.
For improve the experience when using touch devices such as Surface tablets, Wacom pen tablets and etc.
P.S. I want to remove LVGL v7 support for win32drv in the next pull request, for focusing on LVGL v8 simulator improvements and more compact implementations.
Kenji Mouri

Looks good to me.

P.S. I want to remove LVGL v7 support for win32drv in the next pull request, for focusing on LVGL v8 simulator improvements and more compact implementations.

I agree to remove v7 code. v7 users can use the release/v7 branch.


update codebase to support fastapi>=0.100.0 and pydantic>=2.0.0

Hi,
I updated codebase to support fastapi>=0.100.0 and pydantic>=2.0.0 ( this is breaking change ). I tried to keep same features and interface but when it comes to with_prefix function there were changes required. Currently with pydantic>=2.0.0 when you define attribute like in this example:
        class MainFilter(BaseModel):
            name: str
            number_filter: Optional[NumberFilter] = FilterDepends(with_prefix("number_filter", NumberFilter))

you get error:
pydantic_core._pydantic_core.ValidationError: 1 validation error for FilterWrapper
  address
    Input should be a valid dictionary or instance of NumberFilter [type=model_type, input_value=FilterWrapper(...), input_type=FilterDepends.<locals>.FilterWrapper]
  For further information visit https://errors.pydantic.dev/2.2/v/model_type

The only workaround I found (currently) is to update with_prefix to generate the wrapped model and annotation with PlainValidator.
TODO:

test with all supported python versions
update documentation
this is breaking change - should probably update major version instead of minor ?

I came up with different approach which does not introduce breaking changes to how  with_prefix is used. It would be nice if you could review the changes @arthurio. Thanks

@arthurio sorry that it took so long but I just realized that pending label on comment does not mean that it is waiting for reviewer but rather that it is not submitted :facepalm:


[connectivity_plus][Bug]:  Please update the JS package to version 0.7.1

Platform
Android 12
Plugin
connectivity_plus
Version
5.0.2
Flutter SDK
3.19.0
Steps to reproduce
Because flutter_native_splash >=2.3.12 depends on js ^0.7.1 and connectivity_plus 5.0.2 depends on js ^0.6.4, flutter_native_splash >=2.3.12 is incompatible with connectivity_plus 5.0.2.
So, because app depends on both connectivity_plus 5.0.2 and flutter_native_splash 2.3.13, version solving failed.
Code Sample
No response
Logs
Because flutter_native_splash >=2.3.12 depends on js ^0.7.1 and connectivity_plus 5.0.2 depends on js ^0.6.4, flutter_native_splash >=2.3.12 is incompatible with connectivity_plus 5.0.2.
So, because app depends on both connectivity_plus 5.0.2 and flutter_native_splash 2.3.13, version solving failed.

Flutter Doctor
ingo@macdembp-2 ~ % flutter doctor -v
[!] Flutter (Channel [user-branch], 3.19.0, on macOS 13.5 22G74 darwin-x64, locale zh-Hans-CN)
    ! Flutter version 3.19.0 on channel [user-branch] at /Users/mingo/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at
      https://flutter.dev/docs/get-started/install.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision bae5e49bc2 (4 weeks ago), 2024-02-13 17:46:18 -0800
    • Engine revision 04817c99c9
    • Dart version 3.3.0
    • DevTools version 2.31.1
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly
      to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/mingo/Library/Android/sdk
    • Platform android-34, build-tools 33.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15C500b
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.82.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (4 available)
    • M2103K19C (mobile) • jb95ha7h9hbigm9t          • android-arm64  • Android 13 (API 33)
    • iPhone12T (mobile) • 00008101-000304382222001E • ios            • iOS 17.3.1 21D61
    • macOS (desktop)    • macos                     • darwin-x64     • macOS 13.5 22G74 darwin-x64
    • Chrome (web)       • chrome                    • web-javascript • Google Chrome 122.0.6261.112
    ! Error: Browsing on the local area network for 袁晴iPhone. Ensure the device is unlocked and attached with a cable or
      associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
    ! Error: Browsing on the local area network for 罗文俊的iPhone. Ensure the device is unlocked and attached with a cable
      or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

Checklist before submitting a bug

[X] I searched issues in this repository and couldn't find such bug/problem
[X] I Google'd a solution and I couldn't find it
[X] I searched on StackOverflow for a solution and I couldn't find it
[X] I read the README.md file of the plugin
[X] I'm using the latest version of the plugin
[X] All dependencies are up to date with flutter pub upgrade
[X] I did a flutter clean
[X] I tried running the example project

I got it  from issues list.
We will update it, but in the meantime you can use dependency_overrides to set js to 0.7.1 as you need it: dart.dev/tools/pub/dependencies#dependency-overrides


upgrading to vedo

As you may have noticed vtkplotter moved to vedo.
vtkplotter 2020.3.1 and vedo 2020.3.2 are in pip and are equivalent.
Let me know if you encounter any issue in the transition.

Hi Marco,
Thanks for letting me know, is it just a name change or is there any functional difference?
I will update setup.py in the development branch.

it's name change + various bug fixes, one of these is the obj writing to file, which if i remember was used by brainrender,
the rest are developments on tet meshes which are probably not relevant.

I see, okay thanks for the heads up :)


Fuel wallet asset transfer issues

What version of Wallet are you using?
Chrome Plugin Wallet  0.0.1
What is happening?
When I try to transfer assets (beyond the ninth decimal place) in https://fuels-wallet.vercel.app/docs/how-to-use/ "How to use", the "Transfer" button does not respond.
steps to reproduce
1.Open： https://fuels-wallet.vercel.app/docs/how-to-use/
2：Request connection：Click the Connectd button  （Correct）
3：List user accounts：Click the Get accounts button  （Correct）
4：Signing a message：Click the Sign Message button  （Correct）
5：Transfering assets：Enter: 0.0000000001, or any other number that exceeds nine decimal places.
6：Click the Transfer button （No response）
How it should behave?
If the team hadn't set it up deliberately, he should have been able to perform the transfer operation with any digit entered.
What os are you seeing the problem on?
Windows Desktop
What browser?
Chrome
What is your browser version?
108.0.5359.72

The default number of decimals on Fuel is 9 decimals. And for now, the input is not validating the amount, causing the issue, I opened an issue where you can track once it is fixed #323.
About the discord link, it should be working fine. Please considering check our website also https://fuel.network to check other forms to contact the team and get you in the discord.

Thank you for your reply sir, Fuel will get better and better!


green box around the email and GiuHub

Hello, billryan.
When I download the .pdf and open it in local machine, there are green box around the email and GitHub link. Have you meet this problem? I want to remove these box. Thank you!!!

My pdf have the same problem and I found its reason may be hyperref package.
Adding \hypersetup{hidelinks} can fix it.

@knowncold Thanks. 👍
@liferlisiqi I cannot reproduce with both TeXLive 2014 and 2017... You can paste your complie environment/method and raw tex here if still has problem.

I compile my resume with the online latex editor "ShareLatex" @billryan . My problem is solved by the answer provided by @knowncold . Thank you , your method is cool!

I compiled it with ShareLatex too but could not see green box around href links with my PDF reader(skim)... 😞
Glad to know the workaround \hypersetup{hidelinks} works for you.


clegend() two issues

clegend() is working really well! It has two possible minor issues:

If there are missing data, clegend() is also including this.

geoplot ///
	(area nuts3_shp y_MEDAGEPOP, level(40) colors(CET L20, reverse) )  ///
	(line nuts1_shp, lc(white) lw(0.03) ) ///
	(line nuts0_shp, lc(black) lw(0.2)) ///
	, ///
	clegend(height(40) bplace(ne)) zlabel(#10) ///
	title("My Stata map with the geoplot package") ///
	note("Package = geoplot (Jann 2023)")

If clegend(... bplace(XX)) is specified and legend(pos(X)) is also specified, then the latter overwrites the former.

I would also recommend replacing the bplace() with the more common pos() option. The version 18 placement() is too new and in the backend also refers to clock positions. Don't know why Stata would create two similar position options. If anything they should allow for more precise positioning up to one or two decimals e.g. pos(2.5).

You can specify clegend(nomissing) to omit the color for missing. But I see that I should probably make this the default if colorvar is continuous. The missing color has label "no data" by default, but if zlabel() is specified, this will be overwritten.
zlevel() is somewhat problematic also because if values are chosen that are outside the range that has been used to categorize colorvar, Stata will extend the range of the legend with additional colors. This is less of a problem at the bottom (as long as nomissing is specified or if there are no missings), because the first color will be used to fill in the extra range, but at the top Stata seems to invent additional colors that are not part of the chosen color scale. Don't know how to prevent (other than reminding users in the docu to make sure the zlabels lie within the original range).

clegend() no longer includes missing by default; type clegend(missing) to include missing.

The missing is now dropped but a weird red color is added on top. The command is exactly the same as above. Just wanted to flag this:

Yes, this is because zlabel(#10) extends the range of the scale; at the bottom this is no problem because the additional space is filled with the first color; at the top Stata starts adding extra colors; I cannot prevent this. The only solution is to not use zlabels that are out of range. I currently do not parse user specified zlabel(), but I am thinking about disallowing zlabel() and providing an own option for the labels within clegend(), so I have control over things and can prevent axis labels that are out of range...

This is now fixed, at least with the zlabel(#.) option:

I am using the exact same code as above but this time the zlabel() seems to work. Can also test it more extensively.

weird. Maybe the reason is that geoplot now removes the "invisible" units (units with empty shapes) which might have slightly changed the range of the data, so that zlabel() now generates different labels.

I close this issue since meanwhile also the problem with the weird color that sometimes appeared on top should be solved.


Add functionality to expand all outdated comments at once

Hey everyone, first comment in this repo, so wanted to give you a big "Thank You" first for creating this great extension!
What do you think of the following small tweak for pull requests:

when hovering over the "Show outdated" text, a small popup tells you "Hold shift while clicking to expand all comments"
when shift-clicking on the "Show outdated" text, all collapsed comments expand

Alternative implementation ideas:

Have a button/text next to "Show outdated"
Use a different button combination

Why? My team is currently in the habit of manually going through all outdated comments to make sure they were implemented correctly. Sometimes those comments are outdated because of code formatting or similar. We are currently using JS via a bookmark to achieve that functionality, but it would be really nice to have this in this extension.
Very happy to try implementing this myself, but I wanted to check if this is something you might be interested in.

I find myself doing this often too. I feel that we should tackle this and other similar toggles via keyboard shortcut, eg cmd+click=toggle all. No UI clutter necessary.
Alternatively it could be alt+click to match macOS’ alternative behavior, and perhaps we could show the alternative actions while alt is held down i.e. all Show outdated become Show all outdated (macOS does the same)

#212 is related. Maybe pressing i also works in the discussione tab? I’m away from keyboard now

I didn't find anything and I think that Github doesn't provide that feature
Here's a screenshot of the shortcuts displayed for the discussion page

To add to @laurenbrandstein solution, this worked for me
javascript:Array.from(document.getElementsByClassName('outdated-comment')).forEach(l=>l.setAttribute('class','file js-comment-container has-inline-notes'));

@mgoveas I think the entire conversation needs to be unhidden and I have a few PRs where I have to meticulously scroll around to find these "hidden items" and click a few times and it is a pain.

2020 edition.
Open all resolved:
javascript:Array.from(document.getElementsByClassName("js-toggle-outdated-comments")).forEach(l => l.click());

Click all "Load More":
javascript:Array.from(document.getElementsByClassName("ajax-pagination-btn')).forEach(l => l.click());

thanks @voppe that worked!

The solution for "Load More" is too simplistic that only works for one level (I have PRs that nest at least 10 levels), so here is a my better solution: https://stackoverflow.com/a/62711702/95750
There are other solutions that I found later:

https://github.com/isaacs/github/issues/1190
https://github.com/sindresorhus/refined-github/issues/1892

I am using https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github


Added causes

Added a few additional causes that can lead to this error.

Closing as it has been added to PR#72


parquet does not compile with features=["zstd"]

reported by @zeroflaw
A project with
parquet = { version = "12.0.0", default-features = false, features = ["zstd"] }
Fails to compile with
format!("{}", dt.format("%Y-%m-%d %H:%M:%S %:z"))     |                      ^^^^^^ method not found in DateTime<Utc>
https://github.com/apache/arrow-rs/blob/7da41c7328820241a1e9a06eb83cade2e1f08da4/parquet/Cargo.toml#L41
This should not have default-features = false
Originally posted by @zeroflaw in https://github.com/apache/arrow-rs/issues/1623#issuecomment-1113196552

One way to work around this is to manually add a dependency on chrono with the correct features, such as
chrono = { version = "0.4" }
parquet = { version = "12.0.0", default-features = false, features = ["zstd"] }

Thats what I did, but it was not required in version 11.
If a compile error is expected, then i'm happy with the solution.

If a compile error is expected, then i'm happy with the solution.

No I don't think a compile error is expected. This definitely seems like a bug -- I just wanted to document the issue (and solution) in case someone else ran into it as well
I am not sure removing default-features=false is the right fix -- I think that was changed to minimize the size of the arrow dependency stack -- done in https://github.com/apache/arrow-rs/pull/1000 by @carols10cents
More investigation is required to figure out the right fix I think

FWIW I've had this in my Cargo.toml since parquet-0.9:
# Chrono is not a direct dependency; it's a dependency of "parquet".  However,
# parquet's Cargo.toml is slightly buggy, so if we don't specify chrono here
# then parquet fails to compile.
chrono = { version = "0.4.19", default-features = false, features = ["clock"] }


Multiple dispatch not recognized

Ruff does not recognize multiple dispatch methods.
Example:
from plum import dispatch

@dispatch
def f(x: str):
    return "This is a string!"

@dispatch
def f(x: int):
    return "This is an integer!"

$ ruff check test.py
test.py:10:5: F811 Redefinition of unused `f` from line 5
Found 1 error.

$ ruff --version
ruff 0.4.9

Is there a way to include it as a rule to ignore the redefinition when there is @dispatch before the function?

Hi
This is an interesting use of type annotations. I don't think it's feasible for us to add an exception for plum. Plum bends python semantics in a way that are difficult to understand for static analysis tools and we rather avoid coding framework specific behavior into ruff, unless it is a very popular framework.
I just tried your example with Pyright and it also reports error when type checking the code
  /home/micha/astral/test/dispatch.py:4:5 - error: Function declaration "f" is obscured by a declaration of the same name (reportRedeclaration)
  /home/micha/astral/test/dispatch.py:12:3 - error: Argument of type "Literal['test']" cannot be assigned to parameter "x" of type "int" in function "f"
    "Literal['test']" is incompatible with "int" (reportArgumentType)
2 errors, 0 warnings, 0 information


chore(deps): bump https://github.com/zeebe-io/zeebe-cluster-helm from 0.0.85 to 0.0.86

Update zeebe-io/zeebe-cluster-helm from 0.0.85 to 0.0.86
Command run was jx step create pr chart --name zeebe-cluster --version 0.0.86 --repo https://github.com/zeebe-io/zeebe-full-helm.git

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: salaboy
If they are not already assigned, you can assign the PR to them by writing /assign @salaboy in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

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


not competitive with video_player version

Hello.
Your lib not working in newest video_player version, plz update it. Thanks you
Because chewie 0.3.0 depends on video_player ^0.2.0 and no versions of chewie match >0.3.0 <0.4.0, chewie ^0.3.0 requires video_player ^0.2.0.
So, because icamerasolution depends on both video_player ^0.5.3 and chewie ^0.3.0, version solving failed.
pub get failed (1)

Thanks, I'll patch that up!

Fixed and deployed as version chewie: >=5.0.0 <6.0.0


ROX-26095: fix filter bar accessibility issues

Description
Fixes accessibility issues in Workload, Node, and Platform CVEs (as well as any other place using the new search filter components).
Issue
With any of the new filter component dropdowns opened:

Ensure every ARIA input field has an accessible name
Ensure ARIA attributes are not prohibited for an element's role

Analysis
The aria-label attribute was previously placed on the containing <div> element via the <Select> component, instead of on the visible <ul> element via the <SelectList> component.
Fix
Adjust the placement of the aria-label in the reusable <SimpleSelect> component so that it targets the semantic rendered menu element.

Issue
With the autocomplete dropdown open:

Ensure all ARIA attributes have valid values

Analysis
The aria-controls attribute references an element that does not exist.
Fix
Add a matching id to the element under the control of the text input: the dropdown menu.

(Note that the other two aXe errors are solved by the first fix in this PR.)
Leftovers
There are aXe errors when either the Fixability or Severity dropdowns are open. These dropdowns use the legacy PatternFly <Select> component, so rather than diagnose the a11y issues as-is, these will be migrated to the new <Select> component in a follow up.
User-facing documentation

[ ] CHANGELOG is updated OR update is not needed
[ ] documentation PR is created and is linked above OR is not needed

Testing and quality

[ ] the change is production ready: the change is GA or otherwise the functionality is gated by a feature flag
[ ] CI results are inspected

Automated testing

[ ] added unit tests
[ ] added e2e tests
[ ] added regression tests
[ ] added compatibility tests
[ ] modified existing tests

How I validated my change
See the testing information above in the PR description. This test should be repeated for each of the following dropdowns:

Entity selector
Attribute selector
Autocomplete dropdown
Numeric condition selector
Date condition selector

ocp-4-16-ui-e2e failed to create cluster, gke and 4-12 passing


SMB Driver cannot handle special characters in credentials

What happened:
If you try and use a password with a special character like $ in it you will get a permission denied as the $ will evaluate instead of getting passed as part of the password.
What you expected to happen:
Successful cifs mount
How to reproduce it:
Create a SMB share with access with an account with a password like $somespecial!Stuff#
Mount SMB
Anything else we need to know?:
Environment:

Kubernetes version (use kubectl version):
Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.1", GitCommit:"4485c6f18cee9a5d3c3b4e523bd27972b1b53892", GitTreeState:"clean", BuildDate:"2019-07-18T09:18:22Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.7", GitCommit:"4683545293d792934a7a7e12f2cc47d20b2dd01b", GitTreeState:"clean", BuildDate:"2019-06-06T01:39:30Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}
Image:          mcr.microsoft.com/k8s/flexvolume/smb-flexvolume
Image ID:       docker-pullable://mcr.microsoft.com/k8s/flexvolume/smb-flexvolume@sha256:570e6585d84735409b22487ea24dccda358321e79df722a25f6057d9e48812c3

/assign

@bbgobie would you use \$somespecial\!Stuff# instead? $! does not work in echo command, you could verify your password parsing by running:
echo `\$somespecial\!Stuff#`

if echo command works well, then your password could be parsed in the smb plugin

This does work for me, thanks!


fix showing incorrect asset type on asset detail page

fixes #107
It looks like the api returns asset as variable cap, but since the nft and variableCap fields from the response are NOT mapped to TransactionResponse and Transaction, the assets' type is default to fixed cap

Thanks for the PR. The changes ended up being a bit different to your PR and are captured here: #121


Use Qt5 to create a simple app with realsense camera

Hello,
I am using realsense D415 camera. Now I'm exploring and will use realsense in conjunction with Qt Creator to do a basic app (for example using a button to turn the camera on and off) but I can't find an example in using Qt5 to Create applications using realsense
I have researched and created some applications that use cameras from USB - but it seems that it is different from realsense cameras - so can someone share and share some documents or some basic examples?
Sorry if this was a silly question.
Thanks for reading!

Hi @duongbaoquy   The website JetsonHacks (a site supporting Nvidia Jetson computing boards) has a tutorial video on YouTube for using s Jetson with QTCreator and Librealsense2.  The process may not be exactly the same if you are not using a Jetson board, but the example in the video should hopefully provide some direction about setting up a Librealsense-enabled QTCreator on your own computer.
https://www.youtube.com/watch?v=Yed4HIepykw

Thanks for the quick reply.
There seems to be a mistake here, I mean, I want to create my own app - like the image below - The video you gave me was watching, but that's not the point of my question. . Maybe the following picture will help you figure out what I want to do.

I am sorry if I misunderstood, as your original message suggested that you wanted to find out how to get QTCreator to recognise a RealSense camera instead of an ordinary USB camera.
Do you get any error messages when trying to access the camera?

Not really - I think that realsense camera and ordinary USB camera have a few differences and I don't know how to replace those points. For example, with an ordinary USB camera, you do not need to use the get frame function, but with realsense, so how to use the get_frame function in Qt Creator ?

Apologies for the delay in responding further.  If the RealSense camera will not display, I wonder if it is similar to a problem experienced with using the camera for video streaming with some programs such as Skype.  What I mean is, when using the camera with such a program, you may get a blank image because the program expects you to select a certain RealSense driver to use for the video streaming instead of the image appearing automatically.  This subject was discussed recently at the link below:
https://github.com/IntelRealSense/librealsense/issues/6209#issuecomment-615091643
Do you have a way in QTCreator to select a camera driver in video settings, please?

Oh thanks, I think I'm figuring out some of the ways to do it. I can handle it myself from now on.
Thanks

@duongbaoquy    Thanks and good luck!


Fix #13 and rewrite DRLGPRESET_UpdatePops

Theoretically, you could apply 'const' a few more times (nTick, nOrientation, pAdjacentRoomMap (2x)), but it's not too important.

True, will do

Not sure, if we should make nTick unsigned because GetTickCount definitely is.

I discussed this some time ago with @Necrolis and it seems the game uses (wrongly) a signed tick


Table becomes so slow when using http.get to get the data in a json file

Dear all,
I have using $http.get (but not using ajax in table) to get the data inside my data.json file. It is so fast to get the data and I can log it out. but the table take 2 to 4 second to show the data. How to make it faster?
Thank you~

Did u find any solution for this ??


I've Identified a Scenario Preventing ni18n from Functioning Properly

In my new project, I've opted to use Next.js 14 as the development framework, and for handling multilingual support, I chose ni18n because it doesn't require the cumbersome configuration that I truly dislike, which is associated with the multilingual libraries officially recommended by Next.js.
Getting back to the main issue, after installing ni18n, I encountered a persistent warning in the web terminal about inconsistencies between server-side and client-side rendering (this might not be the exact wording, but it conveys the gist). My initial thought was that there might be a bug in the new version of Next.js, leading me into a frustrating cycle of downgrading and encountering errors, then downgrading further and facing more issues.
I proceeded to search on Google for a solution but didn't find any useful information. However, I noticed that many similar issues pointed towards the same library - react-i18next, which I mentioned earlier. I decided to try downgrading this library, and after rolling back to version 11, the web terminal stopped displaying any rendering errors, and the pages were clear. It's hard to express my relief.
I wanted to share my experience with everyone, hoping that if you face similar issues, you can resolve them quickly.

In my new project, I've opted to use Next.js 14 as the development framework, and for handling multilingual support, I chose ni18n because it doesn't require the cumbersome configuration that I truly dislike, which is associated with the multilingual libraries officially recommended by Next.js.
Getting back to the main issue, after installing ni18n, I encountered a persistent warning in the web terminal about inconsistencies between server-side and client-side rendering (this might not be the exact wording, but it conveys the gist). My initial thought was that there might be a bug in the new version of Next.js, leading me into a frustrating cycle of downgrading and encountering errors, then downgrading further and facing more issues.
I proceeded to search on Google for a solution but didn't find any useful information. However, I noticed that many similar issues pointed towards the same library - react-i18next, which I mentioned earlier. I decided to try downgrading this library, and after rolling back to version 11, the web terminal stopped displaying any rendering errors, and the pages were clear. It's hard to express my relief.
I wanted to share my experience with everyone, hoping that if you face similar issues, you can resolve them quickly.

Works for me, thanks!
Just in case someone else search for it:
Error: Text content does not match server-rendered HTML.


Two Way binding for Radio button does not work

Two binding issue discussed in https://github.com/formly-js/ng2-formly/issues/45 was fix for most of the component except for radio button.
When [(ngModel)] is added to the Radio button then the RadioButtonValueAccessor throws an error that _state object is undefined when radio button is switched. This seem like a bug in Angular. We will create a small plunk sample and share it on Angular github and stackoverflow.

I was able to reproduce this issue with pure angular 2 without formly.
http://plnkr.co/edit/1G2mPd?p=preview
Next step is to debug it further and if it does not go well will raise an issue angular team.

Have raised issue with angular team with a sample https://github.com/angular/angular/issues/9153


Fix EditDialog#onAfterSave not called on form submission

The onAfterSave callback was only called when submitting a form inside an EditDialog by clicking the save button, but not when submitting the form by hitting the enter key. We fix this by adding the callback to the EditDialogFormApi and calling it after the form has been successfully submitted.

[x] Add changeset (if necessary)

Don't you have a story you used for developing this?

I just added a log to the docs and removed it afterwards

and you could even create a unittest

You're right, this would have been the correct. I will try this

does the dialog get closed when submitting using enter? should it?

does the dialog get closed when submitting using enter? should it?

Yes (as does pressing the "Save" button). I suppose it should

@nsams added tests now: f8d2a3ce4b746237ad1172187e4537936480c7f5


missing error span for 'setter with no matching getter'

Given this code:
class Foo() {
    shared Integer int => 0;
    assign integer {
        print(integer);
    }
}

I see this error in the Ceylon Problems:

setter with no matching getter: 'integer'

But I don't see any associated error span in the editor!

pff, in boolean ||= func(), func() won't be evaluated if boolean is already true. So only the first error was shown.


HARP-7410 Changed algorithm to compute near and far plane for globe projection.

Use maximum view distance to compute far plane for spherical projection.
Increased number of visible tiles to avoid new visual artifacts.

Signed-off-by: Marcel Pursche<EMAIL_ADDRESS>Thank you for contributing to harp.gl!
Before requesting a pull request, please remember to check the following documents:

contribution guidelines
coding style

If you are adding new functionality we would highly appreciate if you can describe what is the capability you are adding and even better if you can add some examples. Please also remember to add tests for it.
CI Check
Our bots will check whether your PR can be directly integrated into the mainline. We have some internal integration tests running on the background, our bots will inform you of the next steps and someone from our team will take a look and help if needed!
And please do not forget to sign-off your commit! You can read more about DCO here. But, in short, you just need to use git commit -s or append --signoff when you are committing to the repo.
Happy contributing!

Codecov Report

Merging #1085 into master will increase coverage by 0.01%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master    #1085      +/-   ##
==========================================
+ Coverage   46.17%   46.19%   +0.01%
==========================================
  Files         238      238
  Lines       22243    22232      -11
  Branches     5004     5003       -1
==========================================
- Hits        10270    10269       -1
+ Misses      11973    11963      -10

Impacted Files
Coverage Δ

@here/harp-mapview/lib/MapView.ts
57.14% <ø> (ø)
:arrow_up:

@here/harp-mapview/lib/ClipPlanesEvaluator.ts
36.57% <0%> (+1.12%)
:arrow_up:

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 b2247f0...44e1a4b. Read the comment docs.


[Feature] Update the Contributing.md file

Description
As the workflow for closing old pr's has been developed, there is a need to update details in the contributing.md file for contributors . Please refer to pr #655
Screenshots
No response
Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I am willing to work on this issue (optional)
[X] I am a GSSoC'23 contributor

@rupali-codes @CBID2 I was thinking of adding an action to close old issues as well

@rupali-codes @CBID2 I was thinking of adding an action to close old issues as well

Good idea @Tushar98644! :) Raise that as a new issue.


New keyboard layout support does not handle layouts with different maps for different modifiers

VSCode Version: 1.11.1
OS Version: Mac OS X Seirra 10.12.4 (16E195

I am using a keyboard layout (Swedish Dvorak) which has different key maps depending on modifier. For unmodified, Shift and Option keys, the maps correspond to the Dvorak layout. For Cmd and Ctrl keys, the maps correspond to the QWERTY layout.
This is common with non QWERTY layouts; it is a way to ensure that the user can still operate all the commonly used keyboard shortcuts one-handed, such as those for copy, cut, paste, undo, redo, bold, etc. It is also done because many non-QWERTY users still have QWERTY printed keys on their keyboards, and keyboard shortcuts often require visual orientation rather than pure tactile orientation.
Regardless of the reasons why this is done, it is something that is fully supported by the Mac OS X input model.
In all other Mac applications I have come across (except, coincidentally, for Xamarin and Visual Studio for Mac) this behaves as expected. E.g. in my case pressing the C key on a QWERTY-marked keyboard inputs the letter J as per the Dvorak layout, while pressing Ctrl+C is still processed as Ctrl+C and invokes the copy command.
Starting with version 1.11.1 this is not the case for VS Code. VS Code now seems to completely disregard the modifier map and instead process shortcut key combinations against the letter each key happens to correspond to in the unmodified map.
This renders VS Code practically useless for me.

Duplicate of #23964 . A workaround is presented in the comments - https://github.com/Microsoft/vscode/issues/23964#issuecomment-292344329

Yep, workaround fixes the issue for me. Thanks!


Port completely to Kotlin?

I noticed while hacking around that there is a mix of Java and Kotlin code kicking around in the code base. While there is nothing inherently wrong with that..., it would be nice to just have a single language present... jumping back and forth between Java and Kotlin syntax and standard libraries is kind of annoying.
I can start up a fork and begin porting code over to Kotlin if that's desired.

The reason is SAM conversion: https://javalin.io/news/2017/06/05/javalin-0.2.0-released.html
If you could find a way to write everything in Kotlin I'd be very happy.

Sorry I haven't really paid much attention to Kotlin <-> Java interop at all. Where does this SAM issue come up? I pretty much write code consumed by one or the other exclusively.

The second link explains it in detail (https://discuss.kotlinlang.org/t/kotlin-and-sam-interface-with-two-parameters/293), but it basically boils down to having to explicitly type things.
If get(String path, Handler handler) was defined in Kotlin (as get(path: String, handler: Handler) you'd have to explicitly type your handlers:
Calling Kotlin version using Kotlin: get("/", Handler { ctx -> ...})
Calling Java version using Kotlin: get("/") { ctx -> ...}
From Java they both work the same.

I'm going to close this @plombardi89. Feel free to create a pure Kotlin PR if you can do it without breaking the current API and without duplicating code.


Create a Kernel.php file in module

Can I create a Kernel.php class in a module?

Yes, you can create any file / class inside your modules.

Thanks for quick reply.
As I understand I can add Kernel.php in my Modules/MODULE/Http/ folder and then change in bootstrap/app.php the loading of the Kernel.php ?
I am not sure if I can have multiple kernel class? But seem yes.
How the module know that exist a kernel file and then load it?

Autoloading is handled by composer.
In your main composer.json file you have an autoload section where you added something for this package. That's how it's autoloaded.
It will work because in the bootstrap/app.php file you call the kernel class using its fully qualified name, using the ::class syntax.

I will try thanks.


Add focus state to Button

:tada: This issue has been resolved in version 0.8.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


private key and password is hardcoded in set-secret.yml file

https://github.com/DelineaXPM/tss-k8s/blob/master/examples/update-secret.yml
Please find a way to fetch the private key from Secret Server instead of it being hard-coded.

This is a valid example, showing how to use the product in Kubernetes, not a recommendation for any local service account credential storage.
These values are the ones being pulled from Secret Server and being set in Secret Server.


[Mobile] Feature Request: Table View and editor

It would be great if we can support the table view in this. Assume we are using it as a blog where the user wishes to make a table inside the widget. This would be great add on

Does this issue being closed mean that there is a built in table editor?

It means it will not be done

This guy is so rude and close issues without any explanation.


allow empty prefix

Hi @arner , why do we need this? Could you explain it in the PR's description, please? Thanks 😄


Fix Common Errors on Demo/Configs

I have seen lots of inconsistencies among demo and config files. I have tried to resolve some. I think the performance of the models are also not so good. This might be related to low recall values. But still I see room for improvement. Also please consider updating MODEL_ZOO.md because it looks like there are lots of incompatible / misplaced models there.
Fixes #124, fixes #117, fixes #99, fixes #87, fixes #86, fixes #50

@lindahua @liuziwei7 @lijiancheng0614 I am planning to close this PR if it is not worth it. It's been a while since I worked with this, would be glad if you can take a quick look.

Hi @Dogacel ！We are grateful for your efforts in helping improve this open-source project during your personal time.
Welcome to join OpenMMLab Special Interest Group (SIG) , where you can share your experiences, ideas, and build connections with like-minded peers.
To join the SIG channel, simply message moderator— OpenMMLab on Discord or briefly share your open-source contributions in the #introductions channel and we will assist you. Look forward to seeing you there! Join us ：https://discord.gg/UjgXkPWNqA
If you have a WeChat account，welcome to join our community on WeChat. You can add our assistant ：openmmlabwx. Please add "mmsig + Github ID" as a remark when adding friends：）
Thank you again for your contribution❤


[FLINK-30904][docs] Update the documentation and configuration description of slow task detector.

What is the purpose of the change
Update the documentation and configuration description of slow task detector.
Brief change log

Add the documentation of slow task detector in both English and Chinese
Update the configuration description of slow task detector.

Verifying this change
This change is a document change without any test coverage.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
The serializers: (no)
The runtime per-record code paths (performance sensitive): (no)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (no )
The S3 file system connector: (no)

Documentation

Does this pull request introduce a new feature? (no)
If yes, how is the feature documented? (not applicable)

@zhuzhurk Could you please help me review this pr?
Thanks!

@zhuzhurk  Thanks for reviewing, I have fixed the problems you commented. PTAL~

@flinkbot run azure


added ec2 launcher script

Solving #27  added script to launch multiple ec2 instances using python
env  example file has been added

please add readme and requirement.txt or pipenv as well.
Lint your code proper with flake8. we are following clean code.

updated the code using flake8


Export apps with community sheets

Would it be possible to export an app with the community sheets?
I use Qlik-Cli extensively to move apps from production to test environments and it would be awesome to move the community sheets with the app for testing. No need to maintain ownership, just it's approval status as a community sheet in the new environment.

found it's possible to de-serialize an app, and export.


enable $ without template variables in system prompts

while working with a system prompt for latex generation, i found that $ characters in a template system prompt that don't refer to a template variable will cause an error since Template.extract_vars will return a list containing None values. by ignoring None when checking for missing template vars, this error is avoided. using safe_substitute over substitute should be fine here because there is already a check for missing variables, and allows the use of $ characters that don't refer to template vars in a system prompt without raising an error for an invalid placeholder.

I ran into this as well when trying to use $$ escape syntax, which the existing code doesn't handle correctly:
>>> t = string.Template("$$n")
>>> list(t.pattern.finditer(t.template))
[<re.Match object; span=(0, 2), match='$$'>]

https://github.com/simonw/llm/blob/d654c9521235a737e59a4f1d77cf4682589123ec/llm/templates.py#L52-L57


chore: update to angular rc2 & newest router

R: @hansl or @robertmesserle
Need the new router to work with offline compiler.

CI failure is due to https://github.com/angular/vladivostok/issues/95

LGTM except for @robertmesserle's comment.

And we probably want to wait for that router issue to be fixed since master will become red.

Yeah, waiting on Victor to fix the circular dep in the router.

Please be careful because base href="." May break apps using webpack.
Why are you using v3 router?

We have constant testing with webpack currently. Router v3 is ready for simple cases and Material2 is a good test bed for it.

@zigzag95 This use of the router is only for our own demo app and doesn't affect any consumers of the components.

So It must be a peer depency or dev depency

Hi @zigzag95 and @jelbourn
Wouldn't be interesting already update it to angular rc3?

I think WIP.


Don’t match MZ for Cab.

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

[x] Have you successfully run brew tests with your changes locally?

Fixes https://github.com/Homebrew/brew/pull/4541#issuecomment-408058867.

Thanks @reitermarkus!


Signing Key Interface For External Keys

It would be nice if there were a way to provide keys that are likely to sign commits in a repository, but aren't actually owned by any users, so that these signatures can be verified.  Maybe in a repository administration interface?
If that were done, then it might be nice to display a warning if there are commits that can't be verified.  Making that eventually possible could really help code integrity, I think.

It is intended to add keyring support as another trustmodel.


[DO NOT MERGE: TEST Submodule Fix] ARROW-16657: [C++] Support nesting of extension-id-registries

closing this draft PR as issue resolved here: https://github.com/apache/arrow/pull/13232#issuecomment-1144925342


using xarray + Python 3 compatibility

Hi, during my visit at TCV I've updated the package for Python 3 + xarray compatibility. Seems to be working. Thanks for your development!
Jakub

Thanks for the PR. I will review it in the coming days.


Token collision in JwkTokenStore with multiple issuers

Acceptance Tests on Spring Cloud Services highlighted an edge case that is outside of the JWT spec. JwkTokenStore support tokens from multiple providers.
However the org.springframework.security.oauth2.provider.token.store.jwk.JwkDefinitionSource.jwkDefinitions map the tokens from all the providers by kid.
Our test sets up two issuers that generate token with duplicate kid. This is not a real-world case but I don't think that the JWT spec covers that scenario.
At the very least, logging the key collision when JwkDefinitionSource reloads its cache would be helpful for investigation. The symptom we encountered reflected itself as an InvalidSignatureException during the token's decoding.
I am no expert but would suggest supporting duplicate kid as Spring Security has no control on the issuers on which it depends. We implemented a workaround of our own by forking JwkDefinitionSource so tokens are grouped by kidrather than overwritten. Finally, the decode operation now tries all available token before failing.
At your disposal for furter details.
Edit: I'll be happy to provide a PR if this "brute force" approach is accepted to bring support to this edge case.

@daniellavoie We cannot go with the solution of grouping kid 's in the Map and trying each SignatureVerifier associated to each kid. The guessing game is very dangerous so there needs to be a more intelligent key selection algorithm in place instead of just based on kid.

At the very least, logging the key collision when JwkDefinitionSource reloads its cache would be helpful for investigation.

Agreed, this should be logged and likely a fail-fast approach implemented as well that clears the cache. Need to think about this one a bit though.
Can you please provide more details on your test case. Specifically, the JOSE headers for each of JWT's from the 2 providers.
The fact that 2 different provider's produce identical kid's is definitely and edge case and seem to me a vulnerability on the Provider side. Would you happen to know how PCF has implemented the kid value generation? I feel that it should at least include the iss attribute in combination with other provider attributes when producing a hash for the kid value in order to acheive uniqueness.

I'll gather info for our sample tokens.
Meanwhile, I am concerned about the fact that the kid is an unspecified optional parameter according to RFC 7515. So whoever the provider is, we cannot make assumptions on it. I'm almost certain that PCF UAA generates a proper non-duplicate kid but we have no control on the providers used by our clients.

After some digging, I came to realize that our Acceptance tests are running with a generic prod like PCF UAA. Here is an example of the key you would get from it :
{
  "keys": [
    {
      "kty": "RSA",
      "e": "AQAB",
      "use": "sig",
      "kid": "key-1",
      "alg": "RS256",
      "value": "-----BEGIN PUBLIC KEY-----\nblablabla\n-----END PUBLIC KEY-----",
      "n": "blablabla"
    }
  ]
}

In our scenario, we get another key from another issuer (from another PCF env) with the same kid. So according to your explanation, PCF UAA would be vulnerable.
@habuma came out with an idea that could help us retrieving the proper key from the proper issuer. Tokens are encoded with an iss claim. That claim should match the issuers that were used when building the JwkDefinitionSource.jwkDefinitions. Another dimension could be added to this map to group kid by issuer. We would still have to loop through the keys and decode the token prior to retrieving the key from the cache, but at least a single SignatureVerifier call would be required.
Finally, the fail fast with logger error would be usefull for multi issuer scenario involving missing kid and iss.

@daniellavoie

Meanwhile, I am concerned about the fact that the kid is an unspecified optional parameter according to RFC 7515.

Yes, it is optional, but we know UAA generates this JOSE header because the JwkTokenStore was specifically developed for UAA and the key rotation feature.

So whoever the provider is, we cannot make assumptions on it

We currently don't support providers that don't provide a kid in their Jwk Set or if it's missing in the JOSE header

@daniellavoie Let me think about your and @habuma proposed solution...

In our scenario, we get another key from another issuer (from another PCF env) with the same kid. So according to your explanation, PCF UAA would be vulnerable.

I would raise this issue to the UAA team, as I feel the kid value should be unique across issuers - at least we can control it with our provider UAA. This can be done by using the issuer as one of the values when applying a MAC/Hash when generating the kid value.

@daniellavoie @habuma Regarding your proposal:

That claim should match the issuers that were used when building the KwkDefinitionSource.jwkDefinitions

The problem is that the JwkTokenStore accepts JWK Set Url(s) which is different than the Issuer value so this would not work.
But yes ideally, we would like to group kid and iss as the key to the JwkDefinitionHolder.

The JWK would be different but at least the domain would match. That could be a tradeoff.

The domain doesn't necessarily match.

JWK Set Url could be a sub-domain
Jwk Set Url could be an unsecured endpoint, http://, whereas iss is required to be https://
Jwk Set Url could technically be at any endpoint location and doesn't even need to look like the iss domain


Vulnerability roundup 106: kitty-0.23.1: 1 advisory [9.8]

search, files

[ ] CVE-2016-2563 CVSSv3=9.8 (nixos-unstable)

CVE details
CVE-2016-2563
Stack-based buffer overflow in the SCP command-line utility in PuTTY before 0.67 and KiTTY <IP_ADDRESS> and earlier allows remote servers to cause a denial of service (stack memory corruption) or execute arbitrary code via a crafted SCP-SINK file-size response to an SCP download request.

Scanned versions: nixos-unstable: bc9b956714e.
Cc @Luflosi
Cc @rvolosatovs
Cc @tex

Oops, sorry for the noise. Whitelisted.