Simplify Icons Code

Dudes, really ??
<svg width='21' height='24' viewBox='0 0 21 24' fill-rule='evenodd'><path d='M9.5 1c.9 0 1.5.7 1.5 1.5S10.4 4 9.5 4C8.7 4 8 3.3 8 2.5S8.7 1 9.5 1zm0-1C8.2 0 7 1.1 7 2.5S8.2 5 9.5 5 12 3.9 12 2.5 10.9 0 9.5 0zM17 4l-3 1.7v2.4L10.3 6 5 9v3.6l-2-1.1-3 1.7v3.5l3 1.7 3-1.7v-1.1l4.5 2.4 5-3v-4.9l1.5.9 3-1.7V5.8L17 4zm-6.7 3.2l3.8 2.1-3.5 1.8-4-1.8 3.7-2.1zM5 16.1l-2 1.2-2-1.1v-2.3l2-1.2 2 1.1v2.3zm1-5.9l4 1.8v4.6l-4-2.2v-4.2zm5 6.3V12l3.5-1.8v4.2L11 16.5zm8-7.8l-2 1.2-2-1.2V6.3l2-1.2 2 1.2v2.4zM2.5 4C3.4 4 4 4.7 4 5.5S3.4 7 2.5 7 1 6.3 1 5.5 1.7 4 2.5 4zm0-1C1.1 3 0 4.1 0 5.5S1.1 8 2.5 8 5 6.9 5 5.5 3.9 3 2.5 3zm9 17c.8 0 1.5.7 1.5 1.5s-.6 1.5-1.5 1.5-1.5-.7-1.5-1.5.7-1.5 1.5-1.5zm0-1C10.1 19 9 20.1 9 21.5s1.1 2.5 2.5 2.5 2.5-1.1 2.5-2.5-1.1-2.5-2.5-2.5zm7-3c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5.7-1.5 1.5-1.5zm0-1c-1.4 0-2.5 1.1-2.5 2.5s1.1 2.5 2.5 2.5 2.5-1.1 2.5-2.5-1.1-2.5-2.5-2.5z'></path></svg>
Icons Must be like:
<icon name="watson" size="large" />

Hi @ameagol ! First off - we're not all dudes here 🙂  Thanks for your feedback regarding our icons - when we started writing code for Carbon, we made a conscious decision to align around SVG icons. Most of the reasons for using inline SVGs can be summed up here in this CSS-Tricks article.

You can read more about this in our usage guidelines. Let me know if you have any questions regarding this, thanks!

Hi @marijohannessen
I was just looking for an Icon, and your answer has a paragraph with two external links. Things today has to be simplified. I'm not saying that by my ordinary opinion, but the direction that the world is going on...take a look at the relative solutions like
Materialize, font awesome, Bootstrap CSS and you will know.
There's no reason to add a box, with a copy button, that gives us a huge line of code, or worst...Force us to spend time understanding the way to use SVG or what ever.
Take this more like a feedback, not a concern

@ameagol it's important to remember that the SVG code provided on the website is supposed to be all-purpose. Anyone can take it and use it if they wanted to.
Unfortunately, there is no icon HTML tag so the closest that you could get is the use attribute for svg elements, or to embed the fonts in a webfont and use generated class names.
The former is actually how carbon-components used to surface its icons, but ultimately having an SVG sprite sheet to support the use attribute caused a ton of bloat and severely impacted initial load performance for pages that haven't downloaded the sprite sheet yet.
The latter suffers from very similar problems, namely that they can severely impact product performance.
You noted several libraries, let's take a look at how each of them does icons.
Bootstrap
Doesn't actually have any SVG icons supported in the library, and instead points you to external resources. The icons that are included in the docs are CSS-only. The libraries they link to are mostly webfonts, which the fallbacks are detailed above and in the Materialize example.
Materialize
Materialize provides a link to a stylesheet that you can include, however this stylesheet includes a woff2 font file that is 49KB in size. This file type also isn't supported in all the browsers that Carbon targets, and so would require additional font files. This also requires you to use the i HTML tag and doesn't allow you to inline SVGs which, as @marijohannessen mentioned, is a preferred practice here.
Font Awesome
Follows a similar strategy to Materialize, however their sprite sheet is over 144KB in size which further compounds the first-time load performance of any product that decides to use this resource.

I hope this overview helps you to understand the technical challenges presented in this space, as well as the drawbacks to each approach. While I agree things could be simpler, I think something to remember is that the work here is intended to be used by anyone viewing the site, and they can use it in any tool or library, regardless of if we support it or not.
We also have to seriously take into consideration the performance impact of these icons, as Carbon services teams in every single business unit of IBM. If we surfaced the icons for all the BUs, we'd have even larger files than what was reported above.
For teams that use library/framework variants of Carbon, we actually have a very similar API to what you had proposed. You can view the corresponding Icon React component story here.
Hope this helps!

HI @joshblack thanks to spare that time explaining.


provide pytorch pre-trained model

Hello, sorry to disturb you, can you provide a model that has been pre-trained on pytorch?

Hi @fukexue I have sent the Pytorch pre-trained model to you through email.
Best,
Xuyang.

Hi, @XuyangBai
Thanks for your awesome work
Do you mind if I ask to provide pytorch pretrained model?


input and label tags reversed

In the "Update the Areas/Identity/Pages/Account/Manage/Index.cshtml with the following highlighted markup" code block, the input and label tags are reversed for the highlighted lines. Also note that the class names are not reversed. The label tags erroneously have the class name of form-control and the input tags have the class name of form-label. It also seems like form-group should be form-floating, to match the neighboring divs.
For example,

                <input asp-for="Input.Name" class="form-label" />

should be

                <input asp-for="Input.Name" class="form-control" />

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

ID: 431df4fc-4168-cc8f-d053-9b264d2971c1
Version Independent ID: cd157d04-d596-83fa-6edb-24d52193eb34
Content: Add, download, and delete user data to Identity in an ASP.NET Core project
Content Source: aspnetcore/security/authentication/add-user-data.md
Product: aspnet-core
Technology: aspnetcore-security
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

Hi,
When i tried to rectify the document, I found the below screenshot

Need someone's guidance to fix this issue

https://github.com/dotnet/AspNetCore.Docs/pull/29441

The issue isn't fixed by #29441. It needs fixed in aspnetcore/security/authentication/add-user-data/samples/6.x/SampleApp/Areas/Identity/Pages/Account/Manage/Index.cshtml.

Hi @derekpotts , would you like to show the error using a screenshot or maybe create a new PR to fix

@postmeback you changed the 3.x version. aspnetcore/fundamentals/http-requests/samples/3.x/HttpRequestsSample/Pages/Item.cshtml
https://github.com/dotnet/AspNetCore.Docs/pull/29441/files
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/fundamentals/http-requests/samples/3.x/HttpRequestsSample/Pages/Item.cshtml
Can you change the 6.x version in https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/security/authentication/add-user-data/samples/6.x/SampleApp/Areas/Identity/Pages/Account/Manage/Index.cshtml

Sure, I will.

https://github.com/dotnet/AspNetCore.Docs/pull/29495/

This can be also closed.


Issue: Funnel not drawn

Hi greghub,
thanks for building this awesome and beautiful funnel graph library. I am experiencing the issue where either styles are not applied correctly or the SVG funnel is not drawn at all.
I used the CSS/JS files and the code from the example in the Readme. Here is a JS fiddle that shows the issue: https://jsfiddle.net/xyzb95oq/1/

Found the issue. A height-value needs to be assigned to the funnel. Otherwise it will draw the labels etc. but the actual SVG areas will be invisible because they have height 0.

Thank you for that @RT-TL
To get something resembling the screenshot in the Readme.md I found that I also had to add a wrapper div with some padding and a background and add graph.updateWidth() to a browser resize event.
Also, I hadn't realised the data structure for the values correctly, it's per label then an array of values for the subLabels, not per subLabel.
My example for anyone else in need:
https://jsfiddle.net/mkubler/cqeaj1vk/


rework env and add sklearn

add sklearn to the env
define a clear process to update package version in README.md

@krokrob FYI, merged is required in order to test


merge from template-esm-only

.github/workflows/update_package_lock.yml

chore: (on.push)
chore: add  (on.workflow_dispatch)

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 92.007%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
911

Relevant Lines:
983

💛  - Coveralls


Syntax highlighting not highlighting last scope resolution operator ( :: )

Description of the problem or steps to reproduce
When writing C++ program, at every line containing more than one SRO, the last one does not get colored.
To reproduce this problem make a .cpp file containing following line in main function:
std::cout << "Game is Over, Your score: " << 15 << std::endl;
I have checked if it has to do something with the themes and it does not seem like that.
As I'm writing this, I have found out that it is not only for the last one, but even for ones that come in the middle of the line.
This isn't something significant, I just have posted this to let you know about this minor aesthetic imperfection. Otherwise I love micro editor.
Specifications

Commit hash: 225927b9
OS: Microsoft Windows 10 Pro 64bit
Terminal: Windows Terminal (Powershell)

This seems to be related to #1457.


Add Athena: create_data_catalog, list_data_catalogs, get_data_catalog

[X ] Feature is added
[ ] The linter is happy
[ ] Tests are added
[ ] All tests pass, existing and new
Related to #1524
I'm not able to add labels. Could someone please apply the "enhancement"-label and "needs-help"-label to this PR?

I'm not able to add labels. Could someone please apply the "enhancement"-label and "needs-help"-label to this PR?

Thanks for starting this, @amoeedm!

[X] Feature is added
[X] The linter is happy
[X] Tests are added
[X] All tests pass, existing and new


HTTP 100-continue client goes out of memory when writing a large payload to a server that does not support 100-continue

Description:
When a Ballerina 100-continue client sends a large payload to a server that is not aware of the 100-continue request, the client goes out of memory.
Steps to reproduce:
Service
import ballerina/http;
import ballerina/io;
import ballerina/log;

listener http:Listener http2Listener = new(9104);

@http:ServiceConfig {
     basePath: "/echo"
}
service http2Service on http2Listener {
    @http:ResourceConfig {
        methods: ["GET"],
        path: "/"
    }
    resource function sayHello(http:Caller caller, http:Request req) {
        http:Response res = new;
        var payload = req.getByteChannel();
        io:WritableByteChannel destinationChannel =
            <@untainted io:WritableByteChannel>io:openWritableFile("xxxxxx.mkv");
        if (payload is io:ReadableByteChannel) {
            var result = copy(payload, destinationChannel);
            if (result is error) {
                log:printError("error occurred while performing copy ", result);
            }
            close(payload);
            close(destinationChannel);
        }
        res.setTextPayload("hello world");
        checkpanic caller->respond(res);
        io:println("successful");
    }
}

function copy(io:ReadableByteChannel src, io:WritableByteChannel dst)
                returns error? {
    while (true) {

        byte[] | io:Error result = src.read(1000);
        if (result is io:EofError) {
            break;
        } else if (result is error) {
            return <@untained> result;
        } else {

            int i = 0;
            while (i < result.length()) {
                var result2 = dst.write(result, i);
                if (result2 is error) {
                    return result2;
                } else {
                    i = i + result2;
                }
            }
        }
    }
    return;
}

function close(io:ReadableByteChannel|io:WritableByteChannel ch) {
    abstract object {
        public function close() returns error?;
    } channelResult = ch;
    var cr = channelResult.close();
    if (cr is error) {
        log:printError("Error occurred while closing the channel: ", cr);
    }
}

Client
import ballerina/http;
import ballerina/io;

public function main() {
    http:Client httpClient = new("http://localhost:9104");
    http:Request req = new();
    req.setFileAsPayload("/home/bhashinee/Documents/Movies/Bumblebee.2018.1080p.WEBRip.x264-[YTS.AM].mp4");
    req.addHeader("Expect", "100-continue");
    var resp = httpClient->get("/echo/", req);
    if (resp is http:Response) {
        var payload = resp.getTextPayload();
        if (payload is string) {
            io:println(payload);
        } else {
            error err = payload;
            io:println(<string> err.detail()?.message);
        }
    } else {
        error err = resp;
        io:println(<string> err.detail()?.message);
    }
}

This is because from Ballerina side it is continuously writing the content to the transport side. We need to find a way for stopping the Ballerina writing the content.

Closing this as this is not a 80% scenario. We can always remove the Expect header in such cases if needed.


Doc 4495: Added new section labelled Corda CLI Reference

New section added to beta labelled Corda CLI reference, CLI command content moved to this section. Use Case section has been moved to drafts.

Just another thought, have you checked links to the files that you moved? For example, there's a link from the packaging tutorial to the packaging commands reference.


Metallb libssl_conf.so missing(?)

On arm64 (aarch64) snap versions:
latest/candidate: v1.18.8  2020-08-14 (1615) 187MB classic
latest/edge:      v1.18.8  2020-08-19 (1625) 186MB classic
BTW latest/stable (v1.18.6) is fine...
$ microk8s enable metallb
Enabling MetalLB
Enter each IP address range delimited by comma (e.g. '<IP_ADDRESS>-<IP_ADDRESS>,<IP_ADDRESS>-<IP_ADDRESS>'): <IP_ADDRESS>-<IP_ADDRESS>
Error configuring OpenSSL
548145813264:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:187:filename(libssl_conf.so): libssl_conf.so: cannot open shared object file: No such file or directory
548145813264:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:233:
548145813264:error:0E07506E:configuration file routines:MODULE_LOAD_DSO:error loading dso:conf_mod.c:271:module=ssl_conf, path=ssl_conf
548145813264:error:0E076071:configuration file routines:MODULE_RUN:unknown module name:conf_mod.c:212:module=ssl_conf
Applying Metallb manifest
namespace/metallb-system created
error: error validating "STDIN": error validating data: unknown object type "nil" in Secret.data.secretkey; if you choose to ignore these errors, turn validation off with --validate=false
Failed to enable metallb

Thank you for following the candidate channel and for reporting this issue @natdan. What distribution is this on?
@balchua I think we missed the OPENSSL_CONF variable [1].
[1] https://github.com/ubuntu/microk8s/pull/985/files

LOL - I was, kind of, avoiding to say immediately! O: )
It is on Raspberry Pi  64bit PiOS (formerly known as Raspbian)...
I'm looking forward giving it a go as soon as your PR goes through.
Thanks for the quick fix, too! :)

Now I am confused. @ktsakalozos your PR is adding
export OPENSSL_CONF="/snap/microk8s/current/etc/ssl/openssl.cnf"

but that line is already in the master! :( (and there are other changes)...

BTW - I've just given it a go and script with your changes worked well (no error reported). I am yet to test metallb as I've completely undone my cluster and I'll need to build it up again before I can see if metallb works or not. But 🤞  😃