Use case: send FCM notifications

Hi,
I'm using webhooks, to send notifications on message.new.
Everything is working.
But to send 'Unsername send a new message on Group XX' where XX is the group name.. but channel name is not sent from webhook.
Can you confirm ?
Thank you,
Nelson

i finally store on my db, map of channel_id and his name.

Hi there,
Sorry for the delay. Indeed, the channel data isn't returned with the message in message.new events.
Storing this information on your side might be the best option here.
Best,


Refactor to using new tracing_subscriber Registry API

First of all, thanks for writing this crate! I hope the following is helpful.
As of https://github.com/tokio-rs/tracing/pull/420, tracing now provides an out of the box subscriber to keep track of spans.
Would it make sense to split out the span/trace tracking + timing logic which you have here to a separate Layer implementation, which can then be combined with Registry, and use the LookupSpan extension trait to store/retrieve fields?
This would provide the main machinery necessary to do anything, whether honeycomb, open-tracing, or other. And using libhoney, zipkin traces + the honeycomb exporter, or just plain JSON can all be added as, again, different layers.
For example, we end up with something like this:
    let audit_layer = AuditLayer::default();
    let honey_layer = tracer::HoneycombTracer::new("test-tracing.log");
    let zipkin_layer = tracer::ZipkinTracer::new("http://localhost:9411/api/v2/spans");
    let trace_layer = tracer::TraceLayer::default();
    let fmt_layer = get_fmt_layer();

    let subscriber = audit_layer
        .and_then(trace_layer)
        .and_then(honey_layer)
        .and_then(zipkin_layer)
        .and_then(fmt_layer) // format layer must be bottom layer, since it filters
        .with_subscriber(Registry::default());

trace_layer is the instrumentation actually adding span IDs and tracking duration
honey_layer is outputting json to a file, watched by honeytail.
ziplin_layer writing zipkin events to localhost:9411
fmt_layer is writing log output to stdout

That sounds great, I'm going to try to finish up some documentation tasks (at this point, I really need to just write up docs as a priority - I keep finding excuses to put that off :) )  so I can get a 0.0.1 out after which I'll refactor it to use the audit layer. I really like this pattern, btw - thanks for the post!

No problem. Just to clarify, the audit layer is just another layer implementation we have internally. It's not related to the other parts :)
Although perhaps the trace layer should be top of the stack.....

Ah, right - I had the composition order backwards. Registry::default() provides the base subscriber, right? (with fmt being the first layer on top of it so it can filter)

Yep that's right!
And the Registry allows you to store a bunch of data in the spans, which is where you can track things like trace/span IDs without needing to create your own local storage.
In my example, I have TraceLayer which will create span IDs on on_enter, and the Zipkin/HoneycombLayers will emit the trace data on on_exit.

That's really cool, is this in the currently released version of tracing or in some yet-to-be-released future version?

Yup, just on master for now. You can see the docs for registry here: https://tracing-rs.netlify.com/tracing_subscriber/registry/index.html
There's a few follow ups to issue 420 I think before it gets into a release.

(The registry has made it into the tracing 0.2.0-alpha.1 release, you don’t need to rely on master)

Awesome - I finally got v0.0.1 of this published, I'll start refactoring it to use the registry soon.

tracing-subscriber, not tracing, is released as an alpha, excuse me! https://crates.io/crates/tracing-subscriber/0.2.0-alpha.1
And feel free to ping me on Discord if you have any questions!

(No rush, obviously!)

FWIW, the registry is now in a stable tracing-subscriber release: 0.2.0.

implemented & released this a while back, sorry for leaving the issue open so long but gestures at current state of the US


[Feature][project] Change project version to 2.0.4-SNAPSHOT

Search before asking

[X] I had searched in the feature and found no similar feature requirement.

Description
SeaTunnel project use a fixed version number in pom file, a fixed version means the version is stable. So, I suggest we can use 2.0.4-SNAPSHOT to representative dev branch.
Usage Scenario
No response
Related issues
No response
Are you willing to submit a PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

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

cc @garyelephant @CalvinKirs @RickyHuo

+1

+1 it should be 2.0.5-SNAPSHOT, we have released 2.0.4

it should be 2.0.5-SNAPSHOT, we have released 2.0.4

Got, thanks for reminding me.


Pipeline: Fix resource leak

After the pipeline server responds to a request, there's no call to close() on req.resource, which is a File from blizzardry/src/lib/mpq/file.js.
I believe close() is necessary to get StormLib to free up its handle on the file loaded out of the MPQ.
Adding close() appears to keep the pipeline server from bloating into the multi-GB range for memory usage after extended sessions in Wowser. With the fix, I've been able to observe memory usage going down after a period of time--which never seemed to happen before.

Woops, forgot to branch this off of the right location. Closing and fixing!


“No result" when "peek reference" or "find all reference" in Python file

@futurehome commented on Fri Apr 05 2019
Issue Type: Bug
No specific operation, just launch code, and open an Python file, when I try to use "peek reference" or "find all reference", it shows "no results". These feature can be used before, maybe 2 months ago. I've disabled all other extensions, it still doesn't work.

Extension version: 2019.3.6352
VS Code version: Code 1.33.0 (0dd516dd412d42323fc3464531b1c715d51c4c1a, 2019-04-04T15:14:28.026Z)
OS version: Windows_NT x64 10.0.16299

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 x 2112)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: enabledsurface_synchronization: enabled_onvideo_decode: enabledwebgl: enabledwebgl2: enabled

Memory (System)
15.84GB (9.96GB free)

Process Argv

Screen Reader
no

VM
0%

@karrtikr commented on Mon Apr 08 2019
Please inform if you are using jedi or language server as intellisense (i.e check the value of python.jediEnabled in settings.json)

@Alex206 commented on Tue Apr 09 2019
I have the same problem. Jedi enabled in default, but disabled in user and workspace settings.

@karrtikr commented on Wed Apr 10 2019

I have the same problem. Jedi enabled in default, but disabled in user and workspace settings.

Can you please elaborate? Do you see this issue while using Language server or Jedi. Please paste your 'Python' Output Panel.

@Alex206 commented on Thu Apr 11 2019
I am not using Jedi. Here is the python Output Panel. I removed username and the long search path list:
Starting Microsoft Python language server.
[Info  - 10:36:32] GetCurrentSearchPaths C:\Users\XXX\python.exe
[Info  - 10:36:32] Python search paths:
[Info  - 10:36:32]     d:\software\XXX_python\python34_original\dlls
[Info  - 10:36:32]     d:\software\XXX_python\python34_original\lib
[Info  - 10:36:32]     d:\software\XXX_python\python34_original
[Info  - 10:36:32]     c:\users\XXX19_2_pure
[Info  - 10:36:32]     c:\users\XXX19_2_pure\lib\site-packages
[Info  - 10:36:32] Configuration search paths:
[Info  - 10:36:32]     C:\Program Files\XXX\bin
[Info  - 10:36:32]     C:\Program Files\XXX\APIs\Python\lib
And so with all the paths...
[Info  - 10:36:36] Microsoft Python Language Server version <IP_ADDRESS>
[Info  - 10:36:36] Initializing for C:\Users\XXX_19_2_pure\Scripts\python.exe
##########Linting Output - pylint##########

Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

0.2.47 does not have rename or find all references. https://github.com/Microsoft/python-language-server/pull/819 has been only in beta and daily channels until 0.2.55 which was published to stable today.


Not compatible with Google+ Featured Photos screensaver

System Info
Mac model: MacBook Pro 13-inch, 2018
macOS version: 10.14.4 Beta
Monitor setup: None (no plug or casting used)
Description of issue / Feature request
I cannot have both the Google+ Featured photos screensaver and the aerial screensaver installed at the same time, I can switch between them by reinstalling the one that breaks, which breaks the other. (They are both up to date)

Hi @BigChickenInc
Never heard of "Google+ Featured photos screensaver", can you provide me a link (wasn't Google+ killed by Google ?) ?
Also can you give me more details about what "breaks" ? What do you see with Aerial when that happens, what kind of breakage are we talking about ? Also, crash logs ?
Thanks !

https://plus.google.com/featuredphotos
this is not necessarily something that needs to be fixed, I just figured that you would want to be made aware of the issue because it might lead to your screen saver being incompatible with a number other screen savers too, this is just the one I found. Thank you for the help 😄

@BigChickenInc thanks !
However let me reiterate : "Also can you give me more details about what "breaks" ? What do you see with Aerial when that happens, what kind of breakage are we talking about ? Also, crash logs ?"
That would be helpful to have an idea of what the "incompatibility" is. Thanks a lot.

In system preferences, screen savers with Aerial selected a message appears 'the screen saver cannot be used with this version of macOS'. Deleting the Google+ screen saver removes the error and all works OK. Very odd!?

@baldgzr, can you please try this workaround and let me know ? It might be because it's 2 swift screensavers:
"You cannot use the Aerial screen saver with this version of macOS." error: Select Aerial, close System Preferences with Aerial still selected, re-open System Preferences and Aerial should now work.
Let me know if that works or not ?

That works, the error moves to the Google+ screen saver. repeating the process will enable the screen saver selected when System Preferences is closed.
Cheers

@baldgzr thanks a lot for checking ! I know it's not the most convenient workaround but that's the best we can do. Things will get better possibly with Swift 5 and ABI stability, should everyone update their screensavers.
@BigChickenInc please see the last 2 comments about the workaround for your issue. Thanks again to both !


Parameter values that have spaces

Its not clear how to handle parameter values that have spaces in.
I am having a hard time trying to deploy a runCommand using bicep - where parameters values don't have spaces it works, however where they do have spaces it seems to throw off my script. So i turned to these docs for guidance, to discover that nothing is mentioned in terms of dealing with spaces - it says parameters should be space seperated but not what to do if a single paramater has spaces itself. I would expect the paramter value would need to be quoted?
protectedScriptParameters: [
      { value: '-a' },  { value: 'foo' }
      { value: '-z' },  { value: 'this fails'  }
    ]

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

ID: f04b196d-7d11-7213-f037-f12b85b19c52
Version Independent ID: adc05d8e-b13b-134b-5f61-42aaf23666df
Content: az vm run-command
Content Source: latest/docs-ref-autogen/vm/run-command.yml
Service: virtual-machines
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

@zhoxing-ms for awareness

Hi there, did you ever figure this out?  Ran into the same issue today and started Googling for an answer.


Defaulting dialog to open as maximized

I am trying to have a dialog open up maximized, I have tried to override UpdateInterface but that is not working, is this even possible to do?

Put [Maximizable] attribute on top of your dialog. and put this method
    protected override void OnDialogOpen()
    {
        J(".ui-dialog-titlebar-maximize").Click();
        base.OnDialogOpen();
    }

Thanks for the info that is exactly what I wanted.


Allow multiple builders by the same name, per aspect kind.

This change is

I didn't have a comment at first, and one of the linters said I needed a
comment either on each element or on the block as a whole. Putting the
comment on the block as a whole keeps all the linters happy.
On Thu, Feb 2, 2017 at 10:52 AM, Douglas Reid<EMAIL_ADDRESS>wrote:

@douglas-reid commented on this pull request.
In pkg/aspect/inventory.go https://github.com/istio/mixer/pull/227:

// APIBinding associates an aspect with an API method
type APIBinding struct {
Aspect Manager
Method config.APIMethod
}

+// Name of all supported aspect kinds.
+const (

AccessLogKind = "access-logs"

I was guessing that it was a lint issue (not documenting an exported
element). I feel like that used to be a golint issue, but maybe not
now? or maybe my memory is hazy?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/istio/mixer/pull/227, or mute the thread
https://github.com/notifications/unsubscribe-auth/AVucHXUv6R11uT2qNYP1kyILiYF9vyHzks5rYiYHgaJpZM4L1dXE
.


Edit Campaign: Projection

MC only seems to recognize WGS84 projections. When unknowingly uploading .geojsons that were not WGS84, it only told me that the size of AOI was too large. Would be helpful to have a note about using WGS84 projection here:

If possible, a warning saying the projection is not WGS84 when it rejects the file would be great as well.

the geojson standard specifies that they should always be in WGS84.  In the chance a non-compliant file is uploaded we can do this as a simple check, though likely wont be high priority.

After thinking about this more, there isn't a very straightforward way to test if a geojson isn't in WGS84.  Closing this since any alternative projection is non-compliant with the specification


TestCRFileConflictWithMoreUpdatesFromOneUser: sync every time a write happens

This properly tests https://github.com/keybase/kbfs/pull/98

Looks good to me, thanks!


bumping sargon to 1.0.4 (with Third party deposit fix)

Bump Sargon to 1.0.4 with Update Third Party Deposit bug fix of https://github.com/radixdlt/sargon/pull/149

Closing as we will bump it on https://github.com/radixdlt/babylon-wallet-ios/pull/1145


How to Access Windows Auth User, when in C# Model?

I'm using Asp.Net Core 3.0, Server Side Blazor. The doc does well showing how you can get the Identity name for use within an component. But I have some Models utilized within my components. Namely a "User Activity" model which has 2 properties: UserName and DateTime.
I cannot find in any Blazor documentation how I can access the username within this .cs file. Any guidance would be appreciated.

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

ID: c9942b0a-a7fb-0d34-9201-af0963affa9e
Version Independent ID: 19770710-5225-a1ea-e082-65da6ba4a49a
Content: ASP.NET Core Blazor authentication and authorization
Content Source: aspnetcore/security/blazor/index.md
Product: aspnet-core
Technology: aspnetcore-security
GitHub Login: @guardrex
Microsoft Alias: riande

Hello @kevingates ... try injecting the IAuthorizationService into the class.
https://docs.microsoft.com/aspnet/core/security/blazor/#procedural-logic
Let's leave this open because you are correct in that the topic doesn't show such an example. Management/engineering will decide if we should have an example to go along side the Razor component example shown in the Procedural logic section.

Did you try injecting IAuthorizationService directly into your UserActivity class and use it there (i.e., no need to pass it like that from the component).

Did you try injecting IAuthorizationService directly into your UserActivity class and use it there (i.e., no need to pass it like that from the component)?

Pardon my ignorance. I'm still relatively new to Dependency Injection. I'm currently scanning microsoft docs, but do you have a pseudo-code (or actual code) example of how I would do that directly into the class?
Also, the few times I get the values of AuthorizationService (trying to implement this in different ways), I never actually see anything that would lead me down a User -> Identity -> Name type of path.
Thank you again for all your time and assistance.

Yeah ... I see now that the user is from AuthenticationStateProvider in the example that Steve put up.
Why pass it tho ... can u just assign it directly to the new UserActivity .......
namespace BlazorAuthTest
{
    public class UserActivity
    {
        public string UserName { get; set; }
        public DateTime DateTime { get; set; }
    }

    public class Vendor
    {
        public string Something { get; set; }
        public UserActivity UserActivity { get; set; }
    }
}

@page "/"
@using Microsoft.AspNetCore.Components.Authorization
@inject AuthenticationStateProvider AuthenticationStateProvider

Hello, world!

Welcome to your new app.

@code {
    protected override async Task OnInitializedAsync()
    {
        var authState = await AuthenticationStateProvider.GetAuthenticationStateAsync();
        var user = authState.User;
        var x = new Vendor()
        {
            Something = "blah",
            UserActivity = new UserActivity()
            {
                DateTime = DateTime.Now,
                UserName = user.Identity.Name
            }
        };
    }
}

Cross-linking a few existing topics for authn/authz ...

Social login provider tokens+claims for Blazor auth
Google Social login provider for Blazor
Token Based Authorization using IdentityServer with Blazor
Signalr Context.User missing on hub
Logout Flow
Blazor auth topic enhancements
Blazor and multiple auth providers
How to Access Windows Auth User, when in C# Model?

Thanks for helping out @kevingates , @guardrex.
This looks like a great question for the StackOverflow forum.


Mitigation:
Downgrade to VS Code Feb 2010 release. No more high CPU usage.
Does this issue occur when all extensions are disabled?: Yes

Duplicate of #71751
See https://github.com/Microsoft/vscode/issues/71751#issuecomment-480126916 for workarounds
If that doesn't solve the issue for you, please let me know

Duplicate indeed. Clearing the automatic typings cache at ~/Library/Caches/TypeScript/3.4 resolved the issue for me. Thanks.


One of containers intermittently can NOT access another container in same overlay network

I'm using docker swarm(17.06 CE) to orchestrate my micro services. The swarm cluster has 3 managers and 1 worker.
I have a Nginx service running in swarm managers globally(3 container instances). I also have a Java based micro services having 2 replicas in the same overlay network.
Now I found that one of Nginx containers can NOT access the micro service. The other two Nginx containers can access the service without problem.
### there are three nginx containers in swarm
➜  ~ docker service ps pilipa-prod-nginx
ID                  NAME                             IMAGE                                             NODE                DESIRED STATE       CURRENT STATE           ERROR               PORTS
qufld0uu8tk9        pilipa-prod-nginx.4r2p0t892qn55n4uewoymxbp0   registry.i-counting.cn/pilipa/prod/nginx:latest   node02              Running             Running 21 hours ago
bwjw9c9dm8e1        pilipa-prod-nginx.ixw4urfkdcnkm326vgkw92x8n   registry.i-counting.cn/pilipa/prod/nginx:latest   node01              Running             Running 21 hours ago
2w2gg83xt6g4        pilipa-prod-nginx.5t63dl8dcj603iyw5l5vv0xvx   registry.i-counting.cn/pilipa/prod/nginx:latest   node03              Running             Running 21 hours ago

### log in the working Nginx, it can access the micro service without problem
➜  ~ docker exec --interactive --tty pilipa-prod-nginx.4r2p0t892qn55n4uewoymxbp0.qufld0uu8tk9ieubcimed8fgw
sh / # ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet <IP_ADDRESS>/8 scope host lo
       valid_lft forever preferred_lft forever 10901: eth0@if10902: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1450 qdisc noqueue state UP
    link/ether 02:42:0a:00:00:2c brd ff:ff:ff:ff:ff:ff
    inet <IP_ADDRESS>/24 scope global eth0
       valid_lft forever preferred_lft forever
    inet <IP_ADDRESS>/32 scope global eth0
       valid_lft forever preferred_lft forever 10903: eth1@if10904: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1500 qdisc noqueue state UP
    link/ether 02:42:ac:13:00:09 brd ff:ff:ff:ff:ff:ff
    inet <IP_ADDRESS>/16 scope global eth1
       valid_lft forever preferred_lft forever
 / # wget <IP_ADDRESS>:8080 Connecting to <IP_ADDRESS>:8080 (<IP_ADDRESS>:8080) wget: server returned error: HTTP/1.1 401 Unauthorized

### log in the problematic Nginx container which can ping the host of micro service, but can NOT access the service
➜  ~ docker exec --interactive --tty pilipa-prod-nginx.ixw4urfkdcnkm326vgkw92x8n.bwjw9c9dm8e1qlx64z5sniw7h sh
/ #
/ #
/ # wget <IP_ADDRESS>:8080
Connecting to <IP_ADDRESS>:8080 (<IP_ADDRESS>:8080)
wget: can't connect to remote host (<IP_ADDRESS>): Connection refused
/ # ping <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>): 56 data bytes
64 bytes from <IP_ADDRESS>: seq=0 ttl=64 time=0.066 ms
64 bytes from <IP_ADDRESS>: seq=1 ttl=64 time=0.076 ms
64 bytes from <IP_ADDRESS>: seq=2 ttl=64 time=0.073 ms
^C
--- <IP_ADDRESS> ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.066/0.071/0.076 ms

I also tried to use tcpdump to capture the traffic in the micro service container. I could capture the traffics from the working Nginx container when using both ping <IP_ADDRESS> and wget <IP_ADDRESS>:8080 to access the service. However there was no traffic captured either ping or wget from the problematic Nginx container!
And the issue is not always happening. The problem might go away after running the few hours. And it happens again after running another few hours!
Below is the gist including output of running support.sh,
support-output.txt
Let me know if you need more information for analyzing it.

Might be the same issue as the
https://github.com/moby/moby/issues/32195 or https://github.com/docker/libnetwork/issues/1934
Hopefully those will be fixed with https://github.com/docker/libnetwork/pull/1935

@zxkane please try to upgrade to 17.10 there were several fixes in the overlay area.

closing this one at the moment, sounds like https://github.com/docker/libnetwork/issues/1934, feel free to reopen it if you see the same behavior on 17.10


CustomElementRegistry.upgrade() documentation is missing

Request type

[x] New documentation

Details

The CustomElementRegistry.upgrade() method is missing from documentation.
https://html.spec.whatwg.org/multipage/custom-elements.html#dom-customelementregistry-upgrade
I can write up a draft for this documentation page, but I do not have the required rights to create new pages.

This is actually one of my next tasks. I'll be getting to this in the next few days.

Unless you'd like to give it a shot, of course. I'm happy to mentor you if needed.

I have written documentation for upgrade(); let me know what you think — https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/upgrade.
The example could be better. Feel free to submit a better example if you have time.
Thanks for reporting!

I made a small correction to the description, but I'm not sure if the wording is correct.

thanks @ruphin, good spot! I've changed the description a little bit more, but I think we are on the right track now.


[BUG] std::sort gives SIGSEGV with compare function

Describe the bug
std::sort gives me SIGSEGV when I specify custom compare function.
Code to reproduce the behaviour:
main.pyx
# distutils: language = c++

import random

from libcpp.vector cimport vector
from libcpp.algorithm cimport sort

def main():
    cdef vector[int] *vec

    # Without compare
    vec = new vector[int]()
    for i in range(10):
        vec.push_back(random.randint(1, 10))

    print('before without:', vec[0])
    sort(vec.begin(), vec.end())  # normal
    print('after without:', vec[0])

    # With compare
    vec = new vector[int]()
    for i in range(10):
        vec.push_back(random.randint(1, 10))

    print('before with:', vec[0])
    sort(vec.begin(), vec.end(), compare)  # error (SIGSEGV)
    print('after with:', vec[0])

cdef bint compare(int n1, int n2):
    return n1 < n2

wrapper.py
from .main import main

main()

setup.py
from distutils.extension import Extension

from Cython.Build import cythonize
from setuptools import setup

setup(
    ext_modules=cythonize(
        module_list=[
            Extension(
                name='main',
                sources=['main.pyx'],
                extra_compile_args=['--std=c++17']
            )
        ]
    ),
    script_args=['build_ext', '--inplace']
)

Example output:
before without: [1, 5, 3, 7, 7, 8, 2, 3, 8, 8]
after without: [1, 2, 3, 3, 5, 7, 7, 8, 8, 8]
before with: [8, 6, 4, 10, 8, 9, 7, 6, 1, 10]

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

Expected behaviour
No response
Environment
OS: macOS 11.6.8 M1
Python version: 3.10.6
Cython version: 3.0.0a11
Additional context
Cython generates this c++ code for "with" section:
std::sort<std::vector<int> ::iterator,int (int, int)>(__pyx_v_vec->begin(), __pyx_v_vec->end(), __pyx_f_9mypackage_4main_compare);

But if I remove template aguments like this and compile again "with" section works:
std::sort(__pyx_v_vec->begin(), __pyx_v_vec->end(), __pyx_f_9mypackage_4main_compare);

It works fine for me without crashing, but I don't think that proves anything because I'm on a different platform.
There's good reasons why Cython wants to know and specify the template parameters, but it isn't always helpful. It's something that could probably be improved (but I'm not sure how).
In this case I think you could use an alternative declaration of sort:
cdef extern from "<algorithm>":
   void sort(...)

which will just let the C++ compiler sort out the parameters. That works well for functions which don't return anything, but less well for functions which do have a return value.

@da-woods Thanks, now it works!

I'm going to reopen this because I think there's probably an actual bug there that we might want to fix one day. Although I'm not sure how or when


Check for previous/existing GitHub issues/module proposals

[X] I have checked for previous/existing GitHub issues/module proposals.

Check this module doesn't already exist in the module indexes

[X] I have checked for that this module doesn't already exist in the module indexes; or I'm proposing the module to be migrated from CARML/TFVM.

Bicep or Terraform?
Bicep
Module Classification?
Resource Module
Module Name
avm-res-network-network-interface
Module Details
migrated from CARML
Do you want to be the owner of this module?
Yes
Module Owner's GitHub Username (handle)
rahalan
(Optional) Secondary Module Owner's GitHub Username (handle)
No response

@matebarabas I CONFIRM I WISH TO OWN THIS AVM MODULE AND UNDERSTAND THE REQUIREMENTS AND DEFINITION OF A MODULE OWNER

Hi @rahalan,
Thanks for confirming that you wish to own this AVM module and understand the related requirements and responsibilities!
We just want to ask you to double check a few important things and take the next steps before you start the development.
Please use the following values explicitly as provided in the module index page:

For your module:

ModuleName - to name your module
TelemetryIdPrefix - to be used in your module's telemetry

For your module's repository:

Repository name and folder path are defined in RepoURL
Create the GitHub teams defined in the ModuleOwnersGHTeam and ModuleContributorsGHTeam columns and grant them permissions as described here.

In case of a Bicep module, please let the AVM core team know when you created these teams, and we'll help you with assigning the necessary permissions as described here.
In case of a Terraform module, follow the instructions here and assign the necessary permissions.

Grant the right level of permissions for  the AVM core team and PG teams on your GitHub repo as described here.
You can now start the development of this module! ✅ Happy coding! 🎉
Please respond to this comment, once your module is ready to be published! 🙏
Any further questions or clarifications needed, let us know!
Thanks,
The AVM Core Team

NOTE:

This Module Proposal issue MUST remain open until the module is fully developed, tested and published to the relevant registry. Do NOT close the issue before the successful publication is confirmed!
Once the module is fully developed, tested and published to the relevant registry, and the Module Proposal issue was closed, it MUST remain closed.

Module successfully migrated from CARML: #580


Fix not enuogh seeds wording

🗃 Github Issue Or Explanation for this PR. (What is it supposed to do and Why is needed)
#1913
✅ Checklist

[x] Github issue details are up to date for people to QA.
[x] I have tested all my changes.

🕵♂ Notes for Code Reviewer
Some clean up on create region dialogs and text.
👯♀ Paired with
"nobody"

Nice Raul 👍 , Just one small thing I notice the Dialogs are not center Can you fix this as part of this pr?

Sorry but not sure what part do you mean needs be centered I see the dialog in the middle of the screen.

Nice Raul 👍 , Just one small thing I notice the Dialogs are not center Can you fix this as part of this pr?

Sorry but not sure what part do you mean needs be centered I see the dialog in the middle of the screen.

The full dialog. Is not center with the rest of the screen.

Guys I think your suggestions can be addressed in others tickets, can we merge this one?


Filtering files by extension on macOS incorrectly considers UTIs

Is there an existing issue for this?

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

What package does this bug report belong to?
file_selector
What target platforms are you seeing this bug on?
macOS
Have you already upgraded your packages?
Yes
Dependency versions
pubspec.lock
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
  async:
    dependency: transitive
    description:
      name: async
      sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
      url: "https://pub.dev"
    source: hosted
    version: "2.11.0"
  boolean_selector:
    dependency: transitive
    description:
      name: boolean_selector
      sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
      url: "https://pub.dev"
    source: hosted
    version: "2.1.1"
  characters:
    dependency: transitive
    description:
      name: characters
      sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
      url: "https://pub.dev"
    source: hosted
    version: "1.3.0"
  clock:
    dependency: transitive
    description:
      name: clock
      sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
      url: "https://pub.dev"
    source: hosted
    version: "1.1.1"
  collection:
    dependency: transitive
    description:
      name: collection
      sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
      url: "https://pub.dev"
    source: hosted
    version: "1.17.2"
  cross_file:
    dependency: transitive
    description:
      name: cross_file
      sha256: fd832b5384d0d6da4f6df60b854d33accaaeb63aa9e10e736a87381f08dee2cb
      url: "https://pub.dev"
    source: hosted
    version: "0.3.3+5"
  cupertino_icons:
    dependency: "direct main"
    description:
      name: cupertino_icons
      sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d
      url: "https://pub.dev"
    source: hosted
    version: "1.0.6"
  fake_async:
    dependency: transitive
    description:
      name: fake_async
      sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
      url: "https://pub.dev"
    source: hosted
    version: "1.3.1"
  file_selector:
    dependency: "direct main"
    description:
      name: file_selector
      sha256: "84eaf3e034d647859167d1f01cfe7b6352488f34c1b4932635012b202014c25b"
      url: "https://pub.dev"
    source: hosted
    version: "1.0.1"
  file_selector_android:
    dependency: transitive
    description:
      name: file_selector_android
      sha256: d41e165d6f798ca941d536e5dc93494d50e78c571c28ad60cfe0b0fefeb9f1e7
      url: "https://pub.dev"
    source: hosted
    version: "0.5.0+3"
  file_selector_ios:
    dependency: transitive
    description:
      name: file_selector_ios
      sha256: b3fbdda64aa2e335df6e111f6b0f1bb968402ed81d2dd1fa4274267999aa32c2
      url: "https://pub.dev"
    source: hosted
    version: "0.5.1+6"
  file_selector_linux:
    dependency: transitive
    description:
      name: file_selector_linux
      sha256: "045d372bf19b02aeb69cacf8b4009555fb5f6f0b7ad8016e5f46dd1387ddd492"
      url: "https://pub.dev"
    source: hosted
    version: "0.9.2+1"
  file_selector_macos:
    dependency: transitive
    description:
      name: file_selector_macos
      sha256: "182c3f8350cee659f7b115e956047ee3dc672a96665883a545e81581b9a82c72"
      url: "https://pub.dev"
    source: hosted
    version: "0.9.3+2"
  file_selector_platform_interface:
    dependency: transitive
    description:
      name: file_selector_platform_interface
      sha256: "0aa47a725c346825a2bd396343ce63ac00bda6eff2fbc43eabe99737dede8262"
      url: "https://pub.dev"
    source: hosted
    version: "2.6.1"
  file_selector_web:
    dependency: transitive
    description:
      name: file_selector_web
      sha256: dc6622c4d66cb1bee623ddcc029036603c6cc45c85e4a775bb06008d61c809c1
      url: "https://pub.dev"
    source: hosted
    version: "0.9.2+1"
  file_selector_windows:
    dependency: transitive
    description:
      name: file_selector_windows
      sha256: d3547240c20cabf205c7c7f01a50ecdbc413755814d6677f3cb366f04abcead0
      url: "https://pub.dev"
    source: hosted
    version: "0.9.3+1"
  flutter:
    dependency: "direct main"
    description: flutter
    source: sdk
    version: "0.0.0"
  flutter_lints:
    dependency: "direct dev"
    description:
      name: flutter_lints
      sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04
      url: "https://pub.dev"
    source: hosted
    version: "2.0.3"
  flutter_test:
    dependency: "direct dev"
    description: flutter
    source: sdk
    version: "0.0.0"
  flutter_web_plugins:
    dependency: transitive
    description: flutter
    source: sdk
    version: "0.0.0"
  http:
    dependency: transitive
    description:
      name: http
      sha256: "759d1a329847dd0f39226c688d3e06a6b8679668e350e2891a6474f8b4bb8525"
      url: "https://pub.dev"
    source: hosted
    version: "1.1.0"
  http_parser:
    dependency: transitive
    description:
      name: http_parser
      sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b"
      url: "https://pub.dev"
    source: hosted
    version: "4.0.2"
  js:
    dependency: transitive
    description:
      name: js
      sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
      url: "https://pub.dev"
    source: hosted
    version: "0.6.7"
  lints:
    dependency: transitive
    description:
      name: lints
      sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452"
      url: "https://pub.dev"
    source: hosted
    version: "2.1.1"
  matcher:
    dependency: transitive
    description:
      name: matcher
      sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
      url: "https://pub.dev"
    source: hosted
    version: "0.12.16"
  material_color_utilities:
    dependency: transitive
    description:
      name: material_color_utilities
      sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
      url: "https://pub.dev"
    source: hosted
    version: "0.5.0"
  meta:
    dependency: transitive
    description:
      name: meta
      sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
      url: "https://pub.dev"
    source: hosted
    version: "1.9.1"
  path:
    dependency: transitive
    description:
      name: path
      sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
      url: "https://pub.dev"
    source: hosted
    version: "1.8.3"
  plugin_platform_interface:
    dependency: transitive
    description:
      name: plugin_platform_interface
      sha256: da3fdfeccc4d4ff2da8f8c556704c08f912542c5fb3cf2233ed75372384a034d
      url: "https://pub.dev"
    source: hosted
    version: "2.1.6"
  sky_engine:
    dependency: transitive
    description: flutter
    source: sdk
    version: "0.0.99"
  source_span:
    dependency: transitive
    description:
      name: source_span
      sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
      url: "https://pub.dev"
    source: hosted
    version: "1.10.0"
  stack_trace:
    dependency: transitive
    description:
      name: stack_trace
      sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
      url: "https://pub.dev"
    source: hosted
    version: "1.11.0"
  stream_channel:
    dependency: transitive
    description:
      name: stream_channel
      sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
      url: "https://pub.dev"
    source: hosted
    version: "2.1.1"
  string_scanner:
    dependency: transitive
    description:
      name: string_scanner
      sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
      url: "https://pub.dev"
    source: hosted
    version: "1.2.0"
  term_glyph:
    dependency: transitive
    description:
      name: term_glyph
      sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
      url: "https://pub.dev"
    source: hosted
    version: "1.2.1"
  test_api:
    dependency: transitive
    description:
      name: test_api
      sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8"
      url: "https://pub.dev"
    source: hosted
    version: "0.6.0"
  typed_data:
    dependency: transitive
    description:
      name: typed_data
      sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c
      url: "https://pub.dev"
    source: hosted
    version: "1.3.2"
  vector_math:
    dependency: transitive
    description:
      name: vector_math
      sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
      url: "https://pub.dev"
    source: hosted
    version: "2.1.4"
  web:
    dependency: transitive
    description:
      name: web
      sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
      url: "https://pub.dev"
    source: hosted
    version: "0.1.4-beta"
sdks:
  dart: ">=3.1.1 <4.0.0"
  flutter: ">=3.7.0"

Steps to reproduce

Run the provided example app
Enter uvtt into the text box and press enter
Click the FAB to summon the macOS file selector window
Click Cancel to close the file selector window
Click the X button in the chip to remove uvtt from the extensions list
Enter jpeg in the text field and press enter
Click the FAB to summon the macOS file selector window

Expected results
When uvtt is entered only files ending in .uvtt should be available for selection.
When .jpeg is entered only files ending in .jpeg should be available for selection.
Actual results
When uvtt is entered no files are available for selection.
When .jpeg is entered files ending in .jpeg and .jpg are available for selection.
Code sample
Code sample
import 'package:file_selector/file_selector.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Flutter file picker test'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  String? _path;
  final _extensionController = TextEditingController();
  final List<String> _extensions = [];

  @override
  dispose() {
    _extensionController.dispose();
    super.dispose();
  }

  Future<void> _pickFile() async {
    final file = await openFile(
      acceptedTypeGroups: [
        XTypeGroup(
          extensions: _extensions,
        ),
      ],
    );
    if (file == null) return;
    setState(() {
      _path = file.path;
    });
  }

  final _splitPattern = RegExp(r'(\s|,)');
  void _addExtensions(String extensionsStr) {
    _extensionController.value = TextEditingValue.empty;
    final extensions = extensionsStr
        .split(_splitPattern)
        .map((s) => s.trim())
        .where((s) => s.isNotEmpty)
        .where((s) => !_extensions.contains(s))
        .toList();
    if (extensions.isEmpty) return;
    setState(() {
      _extensions.addAll(extensions);
    });
  }

  void _removeExtension(String extension) {
    setState(() {
      _extensions.remove(extension);
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text(widget.title),
      ),
      body: Column(
        crossAxisAlignment: CrossAxisAlignment.center,
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          Wrap(
            direction: Axis.horizontal,
            runSpacing: 10,
            spacing: 5,
            children: _extensionChips(context),
          ),
          Center(
            child: ConstrainedBox(
              constraints: const BoxConstraints(maxWidth: 500),
              child: TextField(
                controller: _extensionController,
                maxLines: 1,
                onSubmitted: _addExtensions,
                textInputAction: TextInputAction.none,
              ),
            ),
          ),
          const SizedBox(height: 20),
          Text(_path ?? '<No file selected>'),
        ],
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _pickFile,
        tooltip: 'Select file',
        child: const Icon(Icons.folder_open),
      ),
    );
  }

  List<Widget> _extensionChips(BuildContext context) => _extensions
      .map((e) => InputChip(
            key: ValueKey(e),
            label: Text(e),
            onDeleted: () => _removeExtension(e),
          ))
      .toList();
}

Screenshots or Videos

Screenshots / Video demonstration
https://github.com/flutter/flutter/assets/1316184/37b45108-4037-4563-8c45-0aba6a4db21e

Logs
Logs
flutter run -d macos
Launching lib/main.dart on macOS in debug mode...
Building macOS application...
2023-09-18 14:44:52.485 xcodebuild[22547:5100579] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00006001-001009DC2E02801E }
{ platform:macOS, arch:x86_64, id:00006001-001009DC2E02801E }
Syncing files to device macOS...                                    33ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

A Dart VM Service on macOS is available at: http://<IP_ADDRESS>:50039/CKbqVAUgSMw=/
The Flutter DevTools debugger and profiler on macOS is available at: http://<IP_ADDRESS>:9103?uri=http://<IP_ADDRESS>:50039/CKbqVAUgSMw=/
2023-09-18 14:45:05.557 test_file_selector_macos[22715:5101263] +[CATransaction synchronize] called within transaction
2023-09-18 14:45:11.977 test_file_selector_macos[22715:5101263] +[CATransaction synchronize] called within transaction
Lost connection to device.

Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel stable, 3.13.4, on macOS 13.4 22F66 darwin-arm64, locale en-US)
    ! Warning: `flutter` on your path resolves to /Users/joshuamatthews/.fvm/versions/3.13.3/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/joshuamatthews/.fvm/versions/3.13.4. Consider adding /Users/joshuamatthews/.fvm/versions/3.13.4/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/3.1.1/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/joshuamatthews/.fvm/versions/3.13.4. Consider adding /Users/joshuamatthews/.fvm/versions/3.13.4/bin to the front of your path.
    ! Upstream repository /Users/joshuamatthews/projects/forks/flutter is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to /Users/joshuamatthews/projects/forks/flutter to dismiss this error.
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] Android Studio (version 2022.3)
[✓] IntelliJ IDEA Community Edition (version 2022.3.2)
[✓] VS Code (version 1.82.2)
[✓] Connected device (2 available)
[✓] Network resources

! Doctor found issues in 1 category.

Additional information
Based on my experimentation, it seems that the file_selector implementation is depending on information from Uniform Type Identifiers (UTIs) instead of just filtering based on extension. When I defined a custom UTI that included multiple extensions, specifying any of those extensions in XTypeGroup.extensions allowed me to select files with any of the other related extensions. I think this is the same behavior from the example when you specify jpeg and .jpg files are also made available.
Downgrading file_selector to 0.8.4+3 resolved the issue in my app.

This is from https://github.com/flutter/packages/pull/3862, where we updated to the non-deprecated NSSavePanel API for file type filtering on OS versions where it is available.

When .jpeg is entered files ending in .jpeg and .jpg are available for selection.

This is how the new API behaves; we would have to go out of our way to break it (if we even can), and I don't see how doing so would be any anyone's interest, so we're not going to consider that a bug.

When uvtt is entered no files are available for selection.

It looks like this is a bug in how I called the type lookup, which causes it to generate a dynamic type that doesn't do extension filtering. This should be straightforward to fix.

This is how the new API behaves; we would have to go out of our way to break it (if we even can), and I don't see how doing so would be any anyone's interest, so we're not going to consider that a bug.

Fair enough. I just noticed it while investigating the unknown extensions issue and figured I'd include it since the behavior seemed related.
Thanks for the quick response!


35 finishing changes

Added the Campaign Impact fields to the Campaign edit form.

Needs validation added to the edit form for the new Campaign Impact fields.


Unable to run make bootstrap

Environment: Ubuntu 14.04.1
While running make bootstrap, I get the following error:
vagrant@vagrant:~/android-oss$ make bootstrap
git submodule sync --recursive
Synchronizing submodule url for 'vendor/material-design-icons'
Synchronizing submodule url for 'vendor/native-secrets'
git submodule update --init --recursive || true
Cloning into 'vendor/native-secrets'...
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Clone of 'git@github.com:kickstarter/native-secrets.git' into submodule path 'vendor/native-secrets' failed
git submodule foreach git checkout
Entering 'vendor/material-design-icons'
# Copy java secrets over, and fallback to the example secrets if they don't exist.
cp vendor/native-secrets/android/Secrets.java app/src/main/java/com/kickstarter/libs/utils/Secrets.java \
		|| cp app/src/main/java/com/kickstarter/libs/utils/Secrets.java.example app/src/main/java/com/kickstarter/libs/utils/Secrets.java
cp: cannot stat ‘vendor/native-secrets/android/Secrets.java’: No such file or directory
cp vendor/native-secrets/ruby/secrets.rb lib/milkrun/secrets.rb || true
cp: cannot stat ‘vendor/native-secrets/ruby/secrets.rb’: No such file or directory
cp vendor/native-secrets/fonts/ss-kickstarter.otf app/src/main/assets/fonts/ss-kickstarter.otf || true
cp: cannot stat ‘vendor/native-secrets/fonts/ss-kickstarter.otf’: No such file or directory
# Copy koala endpoint configs over, and fallback to examples if they don't exist.
mkdir -p app/src/debug/res/values/
mkdir -p app/src/main/res/values/
cp vendor/native-secrets/android/koala_endpoint_debug.xml app/src/debug/res/values/koala_endpoint.xml \
		|| cp config/koala_endpoint.xml.example app/src/debug/res/values/koala_endpoint.xml
cp: cannot stat ‘vendor/native-secrets/android/koala_endpoint_debug.xml’: No such file or directory
cp vendor/native-secrets/android/koala_endpoint.xml app/src/main/res/values/koala_endpoint.xml \
		|| cp config/koala_endpoint.xml.example app/src/main/res/values/koala_endpoint.xml
cp: cannot stat ‘vendor/native-secrets/android/koala_endpoint.xml’: No such file or directory
# Copy over web client
cp -rf vendor/native-secrets/android/WebViewJavascriptInterface.java app/src/main/java/com/kickstarter/libs/WebViewJavascriptInterface.java \
		|| cp -rf config/WebViewJavascriptInterface.java app/src/main/java/com/kickstarter/libs/WebViewJavascriptInterface.java
cp: cannot stat ‘vendor/native-secrets/android/WebViewJavascriptInterface.java’: No such file or directory
cp -rf vendor/native-secrets/android/KSWebViewClient.java app/src/main/java/com/kickstarter/services/KSWebViewClient.java \
		|| cp -rf config/KSWebViewClient.java app/src/main/java/com/kickstarter/services/KSWebViewClient.java
cp: cannot stat ‘vendor/native-secrets/android/KSWebViewClient.java’: No such file or directory
./script/bootstrap
./script/bootstrap: 3: ./script/bootstrap: function: not found

./script/bootstrap: 6: ./script/bootstrap: Syntax error: "}" unexpected
make: *** [bootstrap] Error 2

What am I missing here?

I am also having same issue.

It seems kickstarter has replace some trully used java file with false java file. but the Makefile was not update .

will be fixed once #11 merges!

on my Ubuntu 16, edit the ./script/bootstrap file with a text editor,
change "function say {..." to "say() {...",
and also "function loudspeaker {..." to "loudspeaker() {...",
then apt install ruby and curl,
then ok.


Adding end date option to the History API

Description:
Added functionality to allow you to set a start and end date for the History REST API
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#2068
Checklist:
If user exposed functionality or configuration variables are added/changed:

[ x ] Documentation added/updated in home-assistant.github.io

If the code does not interact with devices:

[ passed tests for history.py file ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ not sure how to do this one ] Tests have been added to verify that the new code works.

Hi @jdevelvis,
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!

end_time is already supported as "?end_time="


fix end date

Surely we do not mean September 2023 here, that's in the future and the sentence is set in the past...

@anarcat obviously! Thank you for your contribution.


Get.offAll with predicate example (not bug)

Hi,
First of all, congratulations and many thanks for this package - it's wonderful and easy to use (at least, after you got a grip of the main features).
Second of all, after implementing an application with default state management, I decided to switch the entire application to the GetX architecture and I think that I reduced the number of the code lines to less then 65% from the initial code-base; more then this, I switched from named navigation to standard navigation in GetX (without names) and everything works great, except one thing (more then sure that this has nothing to do with GetX, but with my limited knowledge - but I thought that maybe this would help someone else also.
So, initially, I had this piece of code:
Navigator.pushNamedAndRemoveUntil(context, "/orderConfirmationScreen",
          ModalRoute.withName("/captionScreen"),
          arguments: orderStatus);

and then, according to my GetX understanding, it had to be translated to the following piece of code:
Get.offAll(OrderConfirmationScreen(orderStatus));
but, I don't understand how to construct the predicate attribute in order to stop the deletion at the CaptionScreen() level - please, take in consideration that I'm not using the the named navigation anymore.
Thank you very much.
Evdin

Hi, in theory this would only work with named routes, but maybe you can explore some Get apis to try this out.
I haven't tested it and I don't know if it works, it's just a guess seeing your code:
   Get.offAll(OrderConfirmationScreen(orderStatus),
        predicate: (_) =>
            Get.currentRoute == '/${CaptionScreen().runtimeType}');

If that doesn't work, I think that maybe only named routes can solve your problem.
If you are using a very old version of Get, this will not work. Please update to the latest or penultimate version before doing this.

I will test it and I will come back as soon as possible. Many thanks for taking the time to answer my question. Btw - I'm updating your library almost daily :-)
Thank you again.

Since it is not a bug description, and there has been no response for a long time, I consider this question to be closed.
For matters that do not involve bugs or feature requests, please look for platform channels as well.


The custom kfserving doesn't work with private image registry

Hello everyone
I try to customize kfserving according to the tutorial, but it doesn't work properly. The image I build by myself can work normally locally, but when I deploy an inferenceservice, k8s prompts me that the image can't be found. I have already pushed the image to the repository. At the same time, the pod corresponding to the inferenceservice doesn't appear. (The program I use comes from here) Why is there a problem of not being able to find the image?

I also find that kfserving==0.5.1 needs to be specified inrequirements.txt. The latest version of kfserving will cause the image build to fail.

The error message is as follows, Revision "custom-model-predictor-default-c9cb6" failed with message: Unable to fetch image "xxx.xxx.com/xxx/custom-model:v1": failed to resolve image to digest: failed to fetch image information: Get https://xxx.xxx.com/v2/: dial tcp xxx.xx.x.xx:443: connect: connection timed out. This seems to be a knative certificate issue.(https://stackoverflow.com/questions/60416312/knative-service-unable-to-download-hello-world-image-from-docker-hub)(https://github.com/knative/serving/issues/8038)

@SeibertronSS which image registry you are using?  Also can you share what's causing the image build to fail using latest kfserving sdk?

@SeibertronSS which image registry you are using? Also can you share what's causing the image build to fail using latest kfserving sdk?

Thank you very much for your reply.
The registry I use is built by our company, not dockerhub. Do I have to use dockerhub?
 Using the buildpack default: python-3.9.6
       To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes
-----> Installing python-3.9.6
-----> Installing pip 20.2.4, setuptools 47.1.1 and wheel 0.36.2
-----> Installing SQLite3
-----> Installing requirements with pip
       Collecting kfserving
         Downloading kfserving-0.6.0-py3-none-any.whl (287 kB)
       Collecting torchvision
         Downloading torchvision-0.10.0-cp39-cp39-manylinux1_x86_64.whl (22.1 MB)
       Collecting tornado>=6.0.0
         Downloading tornado-6.1-cp39-cp39-manylinux2010_x86_64.whl (427 kB)
       Collecting botocore>=1.20.32
         Downloading botocore-1.20.110-py2.py3-none-any.whl (7.7 MB)
       Collecting psutil>=5.0
         Downloading psutil-5.8.0-cp39-cp39-manylinux2010_x86_64.whl (293 kB)
       Collecting adal>=1.2.2
         Downloading adal-1.2.7-py2.py3-none-any.whl (55 kB)
       Collecting numpy>=1.17.3
         Downloading numpy-1.21.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.7 MB)
       Collecting google-cloud-storage>=1.31.0
         Downloading google_cloud_storage-1.40.0-py2.py3-none-any.whl (104 kB)
       Collecting certifi>=14.05.14
         Downloading certifi-2021.5.30-py2.py3-none-any.whl (145 kB)
       Collecting six>=1.15
         Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
       Collecting minio<7.0.0,>=4.0.9
         Downloading minio-6.0.2-py2.py3-none-any.whl (73 kB)
       Collecting boto3>=1.17.32
         Downloading boto3-1.17.110-py2.py3-none-any.whl (131 kB)
       Collecting table-logger>=0.3.5
         Downloading table_logger-0.3.6-py3-none-any.whl (14 kB)
       Collecting kubernetes>=12.0.0
         Downloading kubernetes-17.17.0-py3-none-any.whl (1.8 MB)
       Collecting python-dateutil>=2.5.3
         Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
       Collecting argparse>=1.4.0
         Downloading argparse-1.4.0-py2.py3-none-any.whl (23 kB)
       ERROR: Could not find a version that satisfies the requirement ray[serve]==1.3.0 (from kfserving->-r /workspace/requirements.txt (line 1)) (from versions: 1.4.1)
       ERROR: No matching distribution found for ray[serve]==1.3.0 (from kfserving->-r /workspace/requirements.txt (line 1))
ERROR: failed to build: exit status 1
ERROR: failed to build: executing lifecycle: failed with status code: 145

@SeibertronSS check this knative documention, maybe your registry is behind your corporate proxy.

@SeibertronSS check this knative documention, maybe your registry is behind your corporate proxy.
Thank you very much for your suggestion.
I check the documention you give, but I still don't understand the content. I am a newbie to Knative, and I install Knative through kubeflow manifests. What file do I need to modify to proxy the tag resolution requests between the controller and my registry.

@SeibertronSS check this knative documention, maybe your registry is behind your corporate proxy.

I try to use corporate proxy in the controller, but this caused the controller pod to Error.

NAME
READY
STATUS
RESTARTS
AGE

activator-789bcb5644-gtrfm
1/1
Running
0
60s

autoscaler-5888bf7697-495g2
1/1
Running
0
60s

controller-85f5d9879d-tpnwh
1/1
Error
2
60s

istio-webhook-7db84bf7bf-rtsmq
1/1
Running
0
60s

networking-istio-55d86868c6-bbzgr
1/1
Running
0
60s

webhook-579f9448c4-klld7
1/1
Running
0
60s

My yaml file is:
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    serving.knative.dev/release: v0.14.3
  name: controller
  namespace: knative-serving
spec:
  selector:
    matchLabels:
      app: controller
  template:
    metadata:
      annotations:
        cluster-autoscaler.kubernetes.io/safe-to-evict: 'true'
      labels:
        app: controller
        serving.knative.dev/release: v0.14.3
    spec:
      containers:
      - env:
        - name: HTTP_PROXY
          value: http://dockerhub.xxx.com
        - name: HTTPS_PROXY
          value: https://dockerhub.xxx.com
        - name: SYSTEM_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
        - name: CONFIG_LOGGING_NAME
          value: config-logging
        - name: CONFIG_OBSERVABILITY_NAME
          value: config-observability
        - name: METRICS_DOMAIN
          value: knative.dev/internal/serving
        image: 'gcr.io/knative-releases/knative.dev/serving/cmd/controller@sha256:b86ac8ecc6b2688a0e0b9cb68298220a752125d0a048b8edf2cf42403224393c'
        name: controller
        ports:
        - containerPort: 9090
          name: metrics
        - containerPort: 8008
          name: profiling
        resources:
          limits:
            cpu: 1000m
            memory: 1000Mi
          requests:
            cpu: 100m
            memory: 100Mi
        securityContext:
          allowPrivilegeEscalation: false
      serviceAccountName: controller

The Pod log shows
2021/07/14 02:25:14 Registering 4 clients
2021/07/14 02:25:14 Registering 4 informer factories
2021/07/14 02:25:14 Registering 13 informers
2021/07/14 02:25:14 Registering 7 controllers
2021/07/14 02:25:29 Error reading/parsing logging configuration: timed out waiting for the condition

If I comment out HTTP_PROXY and HTTPS_PROXY, the controller can work normally.
Why this problem occurs？

The problem of knative controller false can be solved by setting NOPROXY to exclude the Kubernetes API from proxying. But still get the same problem when publishing custom isvc.
  - env:
    - name: HTTP_PROXY
      value: ...
    - name: HTTPS_PROXY
      value: ...
    - name: NO_PROXY
      value: ...

and no_proxy should add the svc kubernetes cluster-ip (for example <IP_ADDRESS>)
kubectl get svc
NAME            TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)   AGE
kubernetes      ClusterIP   <IP_ADDRESS>       <none>        443/TCP   1d

    kubectl -n knative-serving edit configmap config-deployment
    Under data: Add " registriesSkippingTagResolving: your-registry-address"

now you can work with private image registry

    kubectl -n knative-serving edit configmap config-deployment
    Under data: Add " registriesSkippingTagResolving: your-registry-address"

now you can work with private image registry

Thank you very much!


There is currently no clear indication if dumb mode is implemented and usable.
While https://github.com/googleprojectzero/winafl/issues/234 mentions that dumb mode is currently not implemented (as of March 2020), commit https://github.com/googleprojectzero/winafl/commit/3b18e9a4ba2d02e0c178c784194670ddbd2df4b9 in August 2020 actually added the dumb mode option in the Readme and in afl-fuzz.c.

If dumb mode is still not supported, the Readme should at least mention this or the option should be removed from the Readme.

 While some code for it exists as a leftover from the original afl-fuzz code, WinAFL currently does not support running without any instrumentation.
However, it might be possible to run in TinyInst mode and not set any -instrument_module options, which should behave more or less like a dumb mode. Perhaps that will work in combination with -n, but I have not tried this.
Also note that your command line above is incorrect in the sense that -n is afl-fuzz flag, not the instrumentation flag so it should come in front of the first --.

Blackbox Fuzzing works by using afl-fuzz.exe -y -i path\to\input -o path\to\output -timeout 2000 -n -- -- <target_filename> @@, no reverse engineering required.
However, one must be sure that the application exits with exitcode 0, or else winafl will fail.
It may also be noted that the fuzzing process is, as expected, really slow in comparison.
Should i put this info into the Readme or is this issue enough information?

I don't know why exitcode 0 would be a requirement, AFAIK TinyInst is not providing the process exit code to WinAFL anywhere, https://github.com/googleprojectzero/winafl/blob/master/tinyinst_afl.cpp. It's returning whether process crashed or hanged, but that's different from the exit code.
It may also be noted that the fuzzing process is, as expected, really slow in comparison.
With TinyInst it is still possible to use persistent mode (via -target_module ... -target_method ... -nargs ... -iterations ... -persist -loop flag combination) even if no modules are getting instrumented. This will significantly improve the fuzzing speed.
Should i put this info into the Readme or is this issue enough information?
Yes, pull request are very much appreciated :)


Setup the gradebook in Brightspace

Domas suggested that we simply export the grades to excel at the end and do the math there. We'll do that.


[x] website builds and runs in production - for information on how to test locally go here.

Description
Adds a glossary page to the site without MDX support, so the website will work as it always has and we can merge the Glossary page in without needing to fix the CLI reference page breaking React components with unclosed HTML tags (https://github.com/appsody/appsody/issues/761).
Related Issues
#282 #272


fix: upgrade to version 3.0.723

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

Needs approval from an approver in each of these files:

OWNERS

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

@jenkins-x-bot-test: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

kube
698795c991344a809784b30e31a6703993e0d7e5
link
/test kube

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

@jenkins-x-bot-test: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

kube
698795c991344a809784b30e31a6703993e0d7e5
link
/test kube

gsm
698795c991344a809784b30e31a6703993e0d7e5
link
/test gsm

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

/test gsm

/test kube

@jenkins-x-bot-test: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

kube
698795c991344a809784b30e31a6703993e0d7e5
link
/test kube

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

/test kube

@jenkins-x-bot-test: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

kube
698795c991344a809784b30e31a6703993e0d7e5
link
/test kube

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

/test kube

/retest


the latest version konga install error

[root@kong-m100-201 konga]# npm --version
5.6.0
[root@kong-m100-201 konga]# node --version
v8.11.3
[root@kong-m100-201 konga]# npm i

<EMAIL_ADDRESS>preinstall /home/coremail/files/konga/node_modules/extendr/node_modules/typechecker
node ./cyclic.js

module.js:549
throw err;
^
Error: Cannot find module '/home/coremail/files/konga/node_modules/extendr/node_modules/typechecker/cyclic.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>preinstall: node ./cyclic.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR!

Closing this due to inactivity. Feel free to repopen if needed.

have you resolved this?

no, It seems that the error still exists...

have you resolved this?

when I  use
sudo npm i

this error does not appear again，thank you.


not ignore lock, because i cannot compile until copied lock for docs.rs

so without lock people cannot compile, no cannot compile deterministically to safety

if i recall rust guidline for apps to add lock into repo


Can't Install Windows Build Tools

I am trying to install Quick.db, a NPM package for Discord.JS and to install it I need Windows Build Tools.
I tried installing Windows Build Tools using npm -g --add-python-to-path --vs2017 install windows-build-tools node-gyp and I got this error https://pastebin.com/Q9FZrS0G
I thought then maybe it had been successful because at the bottom it read
`+<EMAIL_ADDRESS>
<EMAIL_ADDRESS>updated 2 packages in 173.711s`

I then went to install quick.db npm i quick.db and it gave me this error https://pastebin.com/DwfDNNyY . This is what is in the log file 2018-12-15T10_14_21_701Z-debug.log
I've asked around with some fellow developers and the creators of quick.db and none of them know what is the issue.
Thanks in advance!

+1 same here

Same here, my python installer is there, in the offline-installers path given, but it could not find it. WhY?


NPE when creating a new world

Here is the error log:
Jul 05 00:27:23 SERVER  java[3297734]: [00:27:23] [Server thread/ERROR]: Unhandled exception executing command 'world' in plugin My_Worlds v1.19-v1
Jul 05 00:27:23 SERVER  java[3297734]: java.lang.NullPointerException: Cannot invoke "com.bergerkiller.bukkit.mw.MyWorlds.getLogger()" because "com.bergerkiller.bukkit.mw.MyWorlds.plugin" is null
Jul 05 00:27:23 SERVER  java[3297734]:         at com.bergerkiller.bukkit.mw.WorldManager.createWorld(WorldManager.java:392) ~[?:?]
Jul 05 00:27:23 SERVER  java[3297734]:         at com.bergerkiller.bukkit.mw.commands.WorldCreate.execute(WorldCreate.java:76) ~[?:?]
Jul 05 00:27:23 SERVER  java[3297734]:         at com.bergerkiller.bukkit.mw.commands.registry.MyWorldsCommands.execute(MyWorldsCommands.java:44) ~[?:?]
Jul 05 00:27:23 SERVER  java[3297734]:         at com.bergerkiller.bukkit.mw.MyWorlds.command(MyWorlds.java:356) ~[?:?]
Jul 05 00:27:23 SERVER  java[3297734]:         at com.bergerkiller.bukkit.common.PluginBase.onCommand(PluginBase.java:1265) ~[?:?]
Jul 05 00:27:23 SERVER  java[3297734]:         at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[spigot-api-1.19-R0.1-SNAPSHOT.jar:?]
Jul 05 00:27:23 SERVER  java[3297734]:         at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) ~[spigot-api-1.19-R0.1-SNAPSHOT.jar:?]
Jul 05 00:27:23 SERVER  java[3297734]:         at org.bukkit.craftbukkit.v1_19_R1.CraftServer.dispatchCommand(CraftServer.java:831) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3544-Spigot-475f600-991aeda]
Jul 05 00:27:23 SERVER  java[3297734]:         at net.minecraft.server.network.PlayerConnection.handleCommand(PlayerConnection.java:2031) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3544-Spigot-475f600-991aeda]
Jul 05 00:27:23 SERVER  java[3297734]:         at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1834) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3544-Spigot-475f600-991aeda]
Jul 05 00:27:23 SERVER  java[3297734]:         at net.minecraft.network.protocol.game.ServerboundChatCommandPacket.a(SourceFile:37) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3544-Spigot-475f600-991aeda]
Jul 05 00:27:23 SERVER  java[3297734]:         at net.minecraft.network.protocol.game.ServerboundChatCommandPacket.a(SourceFile:13) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3544-Spigot-475f600-991aeda]
Jul 05 00:27:23 SERVER  java[3297734]:         at net.minecraft.network.protocol.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:31) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3544-Spigot-475f600-991aeda]
Jul 05 00:27:23 SERVER  java[3297734]:         at net.minecraft.server.TickTask.run(SourceFile:18) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3544-Spigot-475f600-991aeda]
Jul 05 00:27:23 SERVER  java[3297734]:         at net.minecraft.util.thread.IAsyncTaskHandler.d(SourceFile:157) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3544-Spigot-475f600-991aeda]
Jul 05 00:27:23 SERVER  java[3297734]:         at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(SourceFile:23) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3544-Spigot-475f600-991aeda]
Jul 05 00:27:23 SERVER  java[3297734]:         at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1150) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3544-Spigot-475f600-991aeda]
Jul 05 00:27:23 SERVER  java[3297734]:         at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:1) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3544-Spigot-475f600-991aeda]
Jul 05 00:27:23 SERVER  java[3297734]:         at net.minecraft.util.thread.IAsyncTaskHandler.x(SourceFile:131) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3544-Spigot-475f600-991aeda]
Jul 05 00:27:23 SERVER  java[3297734]:         at net.minecraft.server.MinecraftServer.bh(MinecraftServer.java:1129) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3544-Spigot-475f600-991aeda]
Jul 05 00:27:23 SERVER  java[3297734]:         at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1122) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3544-Spigot-475f600-991aeda]
Jul 05 00:27:23 SERVER  java[3297734]:         at net.minecraft.util.thread.IAsyncTaskHandler.bq(SourceFile:116) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3544-Spigot-475f600-991aeda]
Jul 05 00:27:23 SERVER  java[3297734]:         at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1105) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3544-Spigot-475f600-991aeda]
Jul 05 00:27:23 SERVER  java[3297734]:         at net.minecraft.server.MinecraftServer.v(MinecraftServer.java:1014) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3544-Spigot-475f600-991aeda]
Jul 05 00:27:23 SERVER  java[3297734]:         at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:291) ~[spigot-1.19-R0.1-SNAPSHOT.jar:3544-Spigot-475f600-991aeda]
Jul 05 00:27:23 SERVER  java[3297734]:         at java.lang.Thread.run(Thread.java:833) [?:?]

Can you send the full server log using a pastebin service? Theres probably some error at startup.

Thanks for the quick response! I think the issue was that my server was overloaded. I increased the Bukkit timeout by a lot and it worked this time. :)
Are there recommended Bukkit and/or Java settings for this mod?

Not really, MyWorlds doesnt really use a lot of memory. If you plan to create a lot of worlds, its a good idea to disable their spawn from being kept in memory, as that could use more memory than you may have.

Thanks!


[Legal question] Is it legal to use pre-trained models for commercial purposes?

I see discussions at

Reddit
Kaggle
PyTorch forum
Authors Guild, Inc. v. Google, Inc.

But there is no definitive answer.

Similar question

to Google https://github.com/tensorflow/models/issues/9131
to Intel https://github.com/openvinotoolkit/open_model_zoo/issues/1433

@ternaus, as far as I'm concerned, this repo has a BSD-3 license, which allows for commercial use, however I don't know if the models are also covered by this license. I guess a somewhat clear answer would be that a model's pretrained weights depend on the dataset licenses and the model code, which in this case allows for commercial usage.

I'll leave this to @dongreenberg to answer

Hi @ternaus - sorry for the delay on this. The short answer is that licenses for the underlying data are generally pretty generous about this type of derivative use, but they occasionally vary. Our legal team have said that this is entirely a matter of your own or your legal team's comfort with the use you have in mind and the underlying license, so there really isn't a boxed answer here unfortunately. I'd encourage you to check with your legal teams to see what they're comfortable with. For onlookers without large legal teams, one option may be to ask the data publisher directly.

@dongreenberg Thank you for looking at this issue.

licenses for the underlying data are generally pretty generous about this type of derivative use

Not really.
Most of the models at https://pytorch.org/docs/stable/torchvision/models.html are trained on ImageNet that was scrapped from the internet.
For the database of the image URLs: Researcher shall use the Database only for non-commercial research and educational purposes.
Images at these URLs could be subject to copyright.

one option may be to ask the data publisher directly.

Correct me, if I am wrong, but this means reaching out to millions of people that took pictures in the ImageNet dataset. Researchers that collected a set of URLs to these images do not have any rights for these photos.
It is possible that you add words like:
It is entirely a matter of your own or your legal team's comfort to use these pretrained models in commercial applications.
to the top of https://pytorch.org/docs/stable/torchvision/models.html ?

Sorry, to be clear:

I know absolutely nothing about this, just relaying our legal team's guidance.
The license for use of the datasets may not be generous, but the "generosity" I've been told is in the interpretation that weights of a model trained on that data may be considered derivative enough to be ok for commercial use. Again, this is a subjective matter of person comfort. There is no publishable "answer" we can give.
Absolutely, that's a great suggestion. I will have to double check that that's alright to put out there, again because my personal sense of law is comparable to my personal sense of heart surgery.

All jokes aside, if you speak to anyone, lawyer or otherwise, who ever indicates that there may be even a shred of credible doubt that the learned weights from images, text, audio or any other data may even remotely be subject to the copyright of the source material, stop listening to that person about anything. If it's a lawyer you're paying, fire them.

Thanks everyone for the discussion here, I got another similar question here:

If a pre-trained model (the model weights) is licensed under a non-commercial license, for example: CC BY-NC, but the code is in a more freedom license, for example: MIT. We use the pre-trained weights and fine-tune on a private dataset and generate a new model, can we use the new model for commercial purpose?

This is a little bit different with the traditional SDK way, in a traditional SDK, if we build a product based on some SDK, we need to re-distribute the SDK itself along with our product.
But for the AI model, we actually didn't re-distribute the pre-trained one, but the fine-tuned one, the W & B in the fine-tuned one may be totally different with the pre-trained one, based on this, I personally think we may could use the fine-tuned one in commercial way.

Indepedent of the question, if the dataset's license also applies to the trained model, I was wondering under what rights or license pytorch bestows on these trained models, since they were trained by them.
So for example, if a model (eg https://github.com/pytorch/vision/blob/v0.12.0/torchvision/models/mobilenetv3.py) downloads the weights eg from here (https://github.com/pytorch/vision/blob/v0.12.0/torchvision/models/mobilenetv3.py), what rights or license do apply from pytorch side.


[ENH] Update trigger settings for local Kubernetes test

I am opening this issue as a matter of discussion. The current trigger aspect of the Kubernetes test is the following:
on:
  pull_request:
    paths:
      - ".github/workflows/kubernetes_test.yaml"
      - "tests/**"
      - "tests_deployment/**"
      - "tests_e2e/**"
      - "scripts/**"
      - "qhub/**"
      - "setup.cfg"
      - "pyproject.yoml"
  push:
    branches:
      - main
    paths:
      - ".github/workflows/kubernetes_test.yaml"
      - "tests/**"
      - "tests_deployment/**"
      - "tests_e2e/**"
      - "scripts/**"
      - "qhub/**"
      - "setup.cfg"
      - "pyproject.yoml"

Though it does its work on validating that any change made into qhub infrastructure-related config is fully* tested -- by fully I mean an end-to-end deployment for Minikube Qhub. This sometimes can become a long waiting process over changes that are not entirely subject to a Qhub deployment. For example, in this recent https://github.com/Quansight/qhub/pull/1282 if you look at the changes, you will see that there is no need for a full deployment of Qhub (its contrapositive to test this) in this case.
My main points over the current structure are:

It takes a long waiting process to get a green stage for merging,
It's using our own resources for this test, so reducing the usage is appreciated when it's not really needed
Is inconvenience and contra-productive when the changes really do not affect terraform code itself (remember that we do have the integration tests as well)
Not targeting the Python parts in this full deploy test, would help us create better specific Pytest scenarios to test using only python-based actions (which run much faster)

So I would like to change the above trigger conditions to only trigger by direct changes in the package configuration or the terraform stages:
on:
  pull_request:
    paths:
      - ".github/workflows/kubernetes_test.yaml"
      - "qhub/template/stages/*"
      - "setup.cfg"
      - "pyproject.yoml"

Would like to know what everyone think

Closed following the kind implementation


Reset before pull

Reset to the upstream state before doing a pull instead of after.  If
there were conflicts during the previous merge then the pull will fail
otherwise.  Since we've done a reset prior to the pull, there is no need
to do so after, since local changes were wiped out by the initial reset.

Sponsored by:	The FreeBSD Foundation

@gdams This should fix the current job failures


Plugin breaks yarn/npm run serve

I'm aware that this plugin is supposed to add SSR to a Vue CLI project and yarn/npm run ssr:serve works fine but it would still be great to support yarn/npm run serve in order to run the project as a regular SPA without SSR (if needed).
Currently, after adding this plugin and trying to run the development server (without SSR) it just shows a blank page. The other SSR plugin (https://github.com/vueneue/vueneue) seems to support both npm commands.

Fixed in https://github.com/Akryum/vue-cli-plugin-ssr/commit/459896f5ae0dc4f71d59026d34a1e47dee3f8542


[SPARK-41050][BUILD] Upgrade scalafmt from 3.5.9 to 3.6.1

What changes were proposed in this pull request?
The pr aims to upgrade scalafmt from 3.5.9 to 3.6.1
Why are the changes needed?
A. Release note:

https://github.com/scalameta/scalafmt/releases

B. V3.5.9 VS V3.6.1

https://github.com/scalameta/scalafmt/compare/v3.5.9...v3.6.1

C. Bring bug fix:

Does this PR introduce any user-facing change?
No.
How was this patch tested?
Manually run: sh ./dev/scalafmt

@panbingkun hmm... The changes is inconsistent with the title. Please revert the files that do not need to be change

@panbingkun hmm... The changes is inconsistent with the title. Please revert the files that do not need to be change

Err..., Done!

Merged to master


WCF Question

There are lot of organizations where WCF is still used for Data Access. Currently WCF is the biggest bottleneck for us to migrate to Azure. Could you throw some light on how shall we do this where Backend is WCF.

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

ID: 8ff46628-b5dc-8b02-02b6-8f510d8059b0
Version Independent ID: 24d09b70-d144-d152-ac5a-c49219a5d8e8
Content: Authenticate and authorize users end-to-end in Azure App Service
Content Source: articles/app-service/app-service-web-tutorial-auth-aad.md
Service: app-service-web
Product: unspecified
GitHub Login: @cephalin
Microsoft Alias: cephalin

@heruwala As far as I am aware, there is nothing to prevent you from using a WCF service on an Azure App Service.
Please see this guide on migrating an on-prem WCF service to Azure. The article uses the old Azure portal but the same steps can be followed in the new portal.
Since this question appears to be off topic from the doc, we would suggest you post any further questions to Stack Overflow or MSDN forums for further assistance.


feat: add CLI command "dtm show config --template=gitops" to show gitops.yaml

Signed-off-by: karasart<EMAIL_ADDRESS>Pre-Checklist
Note: please complete ALL items in the following checklist.

[x] I have read through the CONTRIBUTING.md documentation.
[x] My code has the necessary comments and documentation (if needed).
[x] I have added relevant tests

Description
add CLI command "dtm show config --template=gitops" to show gitops.yaml
Related Issues
#597
New Behavior (screenshots if needed)

Well done!

@IronCore864  @daniel-hutao @aFlyBird0  PTAL~


TLS errors on download

The PowerShell script is failing on machines with TLS 1.0 disabled.  I've tested adding [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12 to the GetHTTPResponse function and that seems to fix it.

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

ID: a2e484a9-5e0c-eb3e-1413-7b507c4fa07d
Version Independent ID: 5bc7caa5-f1c2-d7d5-fe02-80c65cca9672
Content: dotnet-install scripts
Content Source: docs/core/tools/dotnet-install-script.md
Service: unspecified
GitHub Login: @blackdwarf
Microsoft Alias: mairaw

@johnbeisner @KathleenDollard can you take a look at this feedback? Are the dotnet-install script links still the same or do we need to update them?

@mairaw
the dotnet-install script links are still the same:
https://dot.net/v1/dotnet-install.sh
https://dot.net/v1/dotnet-install.ps1

Thanks @johnbeisner. So does the script need to be changed to handle the TLS 1.0 disabled case as @johnburns320 suggests? Should we move this issue to the CLI repo?

I’ve pushed the UseStrongCrypto registry keys to the machines using the
script. That seems to make the Tls12 statement unnecessary.
On Thu, May 3, 2018 at 17:27 Maira Wenzel<EMAIL_ADDRESS>wrote:

Thanks @johnbeisner https://github.com/johnbeisner. So does the script
need to be changed to handle the TLS 1.0 disabled case as @johnburns320
https://github.com/johnburns320 suggests? Should we move this issue to
the CLI repo?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dotnet/docs/issues/5153#issuecomment-386455926, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACIkTvDdJzo2xPTQ6ECCDy_3xHxnuFsaks5tu4RqgaJpZM4TxhBa
.

--
Sent from Gmail Mobile

Good to know @johnburns320. @johnbeisner @KathleenDollard should we add a note about this in the docs?

Would it be possible to cache the download file, e.g., https://dotnetcli.azureedge.net/dotnet/Sdk/2.1.300-rc1-008673/dotnet-sdk-2.1.300-rc1-008673-win-x64.zip at the local file system?
So following dotnet-install.ps1 call could use the cached file when the version is the same.

@johnbeisner @KathleenDollard can you please comment?

should we add a note about this in the docs?

@donJoseLuis can you comment?

A similar TLS issue still exists, though it is rare. Instead of mentioning it in the docs, I believe this should be communicated to the user with a clear error message at runtime. We have an issue tracking this: https://github.com/dotnet/install-scripts/issues/27 . We can close this one.

Closing as duplicate of https://github.com/dotnet/install-scripts/issues/27

Thanks, @bozturkMSFT

I just ran this on the docker image mcr.microsoft.com/dotnet/framework/sdk:4.8 and it failed without me setting the TLS version to 1.2. Can you just add that to the script?


Optimization: Drop the "xregexp" dependency

We should be able to switch this XRegExp: https://github.com/blmage/duolingo-solution-viewer/blob/master/src/solutions.js#L51 for a (much longer) vanilla RegExp, and save a lot of bundle size.
Note for later: Unicode property escapes will land in Firefox 78, meaning that from that point we should be able to reuse the original pattern without requiring the help of xregexp.

Dependency dropped in a37d26f21aa9ce85f17f86f4ccee1a2fcba4a583.


0.5.0 version is not installable at macOS X

Hi,
I'm trying to update to pyheif==0.5.0 on my macOS X Catalina (10.15.5) system and wouldn't able to. Looks like sdist removed from 0.5.0 downloadable files and only manylinux wheels left, while that is not compatible with macOS X.
❯ python -m venv bare-pyheif
❯ ./bare-pyheif/bin/python --version
Python 3.8.4
❯ ./bare-pyheif/bin/python -m pip --version
pip 20.1.1 from /Users/playpauseandstop/Projects/shared/bare-pyheif/lib/python3.8/site-packages/pip (python 3.8)
❯ ./bare-pyheif/bin/python -m pip install pyheif==0.5.0
ERROR: Could not find a version that satisfies the requirement pyheif==0.5.0 (from versions: 0.3.1, 0.3.2, 0.4)
ERROR: No matching distribution found for pyheif==0.5.0

In same time pyheif==0.4 had *.tar.gz file, so that version of pyheif is installed well,
❯ ./bare-pyheif/bin/python --version
Python 3.8.4
~/Projects/shared
❯ ./bare-pyheif/bin/python -m pip install pyheif==0.4
Collecting pyheif==0.4
  Using cached pyheif-0.4.tar.gz (3.9 kB)
Collecting cffi>=1.0.0
  Using cached cffi-1.14.0-cp38-cp38-macosx_10_9_x86_64.whl (175 kB)
Collecting pycparser
  Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Using legacy setup.py install for pyheif, since package 'wheel' is not installed.
Installing collected packages: pycparser, cffi, pyheif
    Running setup.py install for pyheif ... done
Successfully installed cffi-1.14.0 pycparser-2.20 pyheif-0.4

Thanks for your help and amazing library!

Yikes! Version bumber to 0.5.1 and sdist uploaded.
Thanks for the heads up :)

Thanks for the update!
0.5.1 installed and worked well!


I/O size for IOPS

What size of I/O are the IOPS numbers based on? For example, on EC2 the Max IOPS numbers are noted as being based on 16 KiB I/O.

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

ID: 2cd6eb6c-745c-b3eb-8ea8-7fb3be24b607
Version Independent ID: 93637a78-fc66-6c5d-7845-a4fad0045c7d
Content: Select a disk type for Azure IaaS Windows VMs - managed disks
Content Source: articles/virtual-machines/windows/disks-types.md
Service: virtual-machines-windows
Sub-service: disks
GitHub Login: @roygara
Microsoft Alias: rogarana

Thanks for the question. We are currently investigating and will update you shortly.

@roygara Can you please share your insights on this? Thanks :)

adding @ramankumarlive @wmgries

You can find the information here: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/disks-types#transactions

Thanks @ramankumarlive Not sure how I missed that :)
@aschlei I will close this out but if you have further questions let me know and we can always reopen and continue the discussion.


Progress bar

Completely redone.
Based on what is available on doximity on the signup page.
Examples:
• tags:
    <vg-progress-bar
      :currentStep="1"
      :labels="['Only one Step']"
    ></vg-progress-bar>
    <vg-progress-bar
      :currentStep="2"
      :maxStep="3"
      :labels="['Confirm', 'Verify', 'Complete']"
    ></vg-progress-bar>

• result:

• html

I tried to stay as close as I could to the original doximity version

Kept ol - li structure
tried to keep the same classnames
added aria descriptions

Styling done through scss and in a single scss file.
Kept styles as neutral as possible
This file needs to be imported to add styles. So it can be easily replaced/overridden without the need of any vue knowledge.

waiting for input from JR

Prefer sass syntax but otherwise great!
👍 👍


Please reactivate external MQTT server

Hello
First of all thanks for your fork and keeping this plugin alive.
I need to connect to another server than the integrated HA MQTT broker.
Could you please reintegrate the external Mqtt server options ?
Thanks !

same problem here. No options for external mqtt server

https://github.com/altrdev/FiatUconnect

@BomberX @altrdev I've created a new fork which incorporates the external MQTT server code and remote start/stop among other things: https://github.com/Blueion76/FCAUconnect-HA


coboleditor.tabstops not working

I've added the following lines to my Settings file:
    "coboleditor.tabstops": [         8,         12,          45     ],
But after saving, it still show the rulers at the default positions: 7, 8, 73:

Sorry, I think you have miss understood the purpose of setting.  The settings is to override the tab/tabs top key with Cobol like behaviour, not to reformat any embedded tabstop characters or reformat given a different tab setting.

Ok, thanks @spgennard! Then, there is no way to do what I want? If I change the settings the "editor.rulers": [80,120] parameter, it still does not reflect the changes.

Sorry, what you need is a "reformat" tab options that understand embedded COBOL tab.
You might be able to get away with converting the tabs to spaces and using column-based editing to re-org it (multi-cursor stuff).


[modification request] table styling in Prose

Problem
SWP asked for getting HTML table support for SEO and solution page using the Prose component. It is not supported as of today
Historical context:

Prose only supports paragraphs, headings, quotes, lists and links today
We kept the initial scope light, assuming that support for other tags will improve over time on an as-needed basis
The inherited styling from the ReadMe project got cut from the current Prose component

Solution
Per discussion between Site and Primer Brand, we would like to implement basic styling (aka- support) for of the <table> markup.
Here is an in-situ suggestion using our text, color, border primitives

We cant restrict the amount of column but would highly suggest to limit to 5 or perhaps fix the min-width of <td> and have an overflow-y: scroll

I do not recommend using a boxed design to minimize the visual noise and fit the editorial styling we have been moving toward brand-wise

Urgency
No major urgency, SWP is working on scaling the template and could use capability anytime

Discussed at Planning:

@nsolerieu to take on some additional design investigation
re-review at next planning session (next Monday)

Scope
This is not the data table component, we do not have the same control since the user is the one shaping the table DOM structure - thsu we can't create a "shell" only style the native HTML markup

Current version of table styling int he github ecosystem: the blog
Design notes:

Looks generic and unpolished
Color looks branded/opinioated
Spacing is very large and formated for few column use (3-4 max)
Borders add a lot of noise
This looks optimized for web 2.0 standards
Mobile behavior is standard - shrink evenly

Desktop
Mobile

Test with real content
Without overriding the native behavior of the table markup, things will squich on mobile which is not working on mobile and could use a collapse specific styling with sticky header.
Text content

Desktop
Mobile

Data

Desktop
Mobile

Suggestion
The only mobile solution to fix this mobile issue is to collapse and keep the table header for context like the example here. This is achieve by  adding a data-label to each <td>

Desktop
Mobile

Primer Brand x Site design
We decided to not pursue the suggested approach for these reasons:

Allowing editors to pass classes/dat attributes in HTML is not secure
Expecting editors to know what to insert in HTML is unlikely
Text don't belong in a table, especially the large amount we are expecting

Guidelines

No text in tables. Text based comparison or content sets should be formatted as regular text and follow regular editorial guidelines (heading > Text > Separator > Smaller heading > Text > ... )
Large numerical data sets (larger that 4 column) should be formatted using a dedicated data-table
Numerical data set with row label followed by up to 2 columns the ideal case for using this in-prose HTML table


Turbine's CommonsInstanceDiscovery throws NullPointerException if used with SimpleDiscoveryClient

Turbine's CommonsInstanceDiscovery throws NullPointerException if used with SimpleDiscoveryClient as SimpleDiscoveryProperties.SimpleServiceInstance#getMetadata returns null, while CommonsInstanceDiscovery#marshall does not verify that it's not null: https://github.com/spring-cloud/spring-cloud-netflix/blob/master/spring-cloud-netflix-turbine/src/main/java/org/springframework/cloud/netflix/turbine/CommonsInstanceDiscovery.java#L161
ServiceInstance#getMetadata says nothing about returning null, so IMHO it's up to CommonsInstanceDiscovery#marshall to ensure that it's not null.
I'm willing to implement a PR for that, but need your decision whether to implement it in Turbine discovery (check for nulls) or in SimpleDiscoveryProperties (return empty map instead of null).
Ideally, Spring should allow configuring these properties with metadata though (IMHO).

HystrixStream's HystrixStreamTask has the same problem with SimpleDiscoveryClient: https://github.com/spring-cloud/spring-cloud-netflix/blob/master/spring-cloud-netflix-hystrix-stream/src/main/java/org/springframework/cloud/netflix/hystrix/stream/HystrixStreamTask.java#L375

@e-zhydzetski Host should work fine, as it's filled from the uri: https://github.com/spring-cloud/spring-cloud-commons/blob/master/spring-cloud-commons/src/main/java/org/springframework/cloud/client/discovery/simple/SimpleDiscoveryProperties.java#L41-L43

@maxromanovsky Sorry! My mistake: problem that I described differs from yours.
HystrixStreamTask has issue with SimpleDiscoveryClient#getLocalServiceInstance which always returns null. This method was deprecated in DiscoveryClient interface, but HystrixStreamTask still use it without null checks.
I will create a separate issue for this.

@maxromanovsky I think I agree that CommonsInstanceDiscvery#marshall should check for null

Spring Cloud Team, I understand that it's minor, but any thoughts? I'm willing to contribute :)

@maxromanovsky submit a PR an we will review

Fixed here: https://github.com/spring-cloud/spring-cloud-commons/commit/fc2355b9853a4d0164a6c9287b36668fd5844ba7


Update version numbers for TensorFlow 2.10.0-rc0

Same as #56949 but with the version change also in tensorflow/tools/pip_package/setup_partner_builds.py

Not needed anymore after https://github.com/tensorflow/tensorflow/pull/56953 that has all the changes necessary


How to add tag in scroll view in fixed width view.

I am using cell and  I have to add Tag view in UITableviewCell  with scroll...
So please suggest me solution with this control so i can use in my projects...

TableViewCellExample.zip
This can be a possible solution