build failed with tensorrt 8.0

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): ubuntu 20.04.2
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A
TensorFlow installed from (source or binary): source
TensorFlow version: 2.5.0
Python version: 3.9.4
Installed using virtualenv? pip? conda?: N/A
Bazel version (if compiling from source): 3.7.2
GCC/Compiler version (if compiling from source):  9.3.0
CUDA/cuDNN version: 11.3 / 8.2.0
GPU model and memory:
rtx3060 GDDR6 6GB

Describe the problem
bazel build failed
Provide the exact sequence of commands / steps that you executed before running into the problem
build with tensorrt support  ( tensorrt 8.0 )
Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
ERROR: /home/alan/repo/tensorflow/tensorflow/compiler/tf2tensorrt/BUILD:39:11: C++ compilation of rule '//tensorflow/compiler/tf2tensorrt:tensorrt_stub' failed (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF bazel-out/k8-opt/bin/tensorflow/compiler/tf2tensorrt/_objs/tensorrt_stub/nvinfer_stub.pic.d ... (remaining 141 argument(s) skipped)
In file included from tensorflow/compiler/tf2tensorrt/stub/nvinfer_stub.cc:56:
./tensorflow/compiler/tf2tensorrt/stub/NvInfer_5_0.inc:5:7: error: declaration of ‘void* createInferBuilder_INTERNAL(void*, int)’ has a different exception specifier
    5 | void* createInferBuilder_INTERNAL(void* logger, int version) {
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from tensorflow/compiler/tf2tensorrt/stub/nvinfer_stub.cc:17:
bazel-out/k8-opt/bin/external/local_config_tensorrt/_virtual_includes/tensorrt_headers/third_party/tensorrt/NvInfer.h:8083:30: note: from previous declaration ‘void* createInferBuilder_INTERNAL(void*, int32_t) noexcept’
 8083 | extern "C" TENSORRTAPI void* createInferBuilder_INTERNAL(void* logger, int32_t version) noexcept;
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from tensorflow/compiler/tf2tensorrt/stub/nvinfer_stub.cc:56:
./tensorflow/compiler/tf2tensorrt/stub/NvInfer_5_0.inc:12:7: error: declaration of ‘void* createInferRuntime_INTERNAL(void*, int)’ has a different exception specifier
   12 | void* createInferRuntime_INTERNAL(void* logger, int version) {
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from bazel-out/k8-opt/bin/external/local_config_tensorrt/_virtual_includes/tensorrt_headers/third_party/tensorrt/NvInfer.h:54,
                 from tensorflow/compiler/tf2tensorrt/stub/nvinfer_stub.cc:17:
bazel-out/k8-opt/bin/external/local_config_tensorrt/_virtual_includes/tensorrt_headers/third_party/tensorrt/NvInferRuntime.h:2253:30: note: from previous declaration ‘void* createInferRuntime_INTERNAL(void*, int32_t) noexcept’
 2253 | extern "C" TENSORRTAPI void* createInferRuntime_INTERNAL(void* logger, int32_t version) noexcept;
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from tensorflow/compiler/tf2tensorrt/stub/nvinfer_stub.cc:56:
./tensorflow/compiler/tf2tensorrt/stub/NvInfer_5_0.inc:33:28: error: declaration of ‘nvinfer1::IPluginRegistry* getPluginRegistry()’ has a different exception specifier
   33 | nvinfer1::IPluginRegistry* getPluginRegistry() {
      |                            ^~~~~~~~~~~~~~~~~
In file included from bazel-out/k8-opt/bin/external/local_config_tensorrt/_virtual_includes/tensorrt_headers/third_party/tensorrt/NvInfer.h:54,
                 from tensorflow/compiler/tf2tensorrt/stub/nvinfer_stub.cc:17:
bazel-out/k8-opt/bin/external/local_config_tensorrt/_virtual_includes/tensorrt_headers/third_party/tensorrt/NvInferRuntime.h:2264:51: note: from previous declaration ‘nvinfer1::IPluginRegistry* getPluginRegistry() noexcept’
 2264 | extern "C" TENSORRTAPI nvinfer1::IPluginRegistry* getPluginRegistry() noexcept;
      |                                                   ^~~~~~~~~~~~~~~~~
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 4508.840s, Critical Path: 130.04s
INFO: 23345 processes: 10553 internal, 12792 local.
FAILED: Build did NOT complete successfully

@alanpurple
Could you please check with the compatiblity mentioned below
Compatibility:
TensorRT 8.0.0 EA has been tested with the following:
cuDNN 8.2.0
TensorFlow 1.15.5
PyTorch 1.8.0
ONNX 1.8.0
This TensorRT release supports CUDA:
10.2
11.0
11.1
11.2
11.3(update)
for more information please check this
Thanks

@UsharaniPagadala
You're telling TF2.5 does not support TensorRT 8.0? for now? forever?

I think it is a dup https://github.com/tensorflow/tensorflow/issues/49150

@alanpurple
You may track this issue to know the progress. Could you please move this to closed status as it is being tracking there to avoid duplication.Thanks


Allow silencing of non-string configuration warning #226

This adds a new configuration entry, FIGARO_SILENCE_STRING_WARNINGS, which if set to true/'true' will silence warnings like WARNING: Use strings for Figaro configuration. 100 was converted to "100".

This change has been extracted and added (https://github.com/hlascelles/figjam/pull/8) to a fork and continuation of this repo, and a new gem called Figjam: https://github.com/hlascelles/figjam
Thank you @owst!


Smart Handles

Volume, Directory and File now hold &mut VolumeManager, which gives them methods and a Drop impl. Old functionality available with RawVolume, RawDirectory and RawFile because with the smart handles you can't open more than one file at once.

Requires #100

#100 is in.
We might want to do a release before we merge this? What do we think?

I released 0.6.0. So this can be 0.7.0.

I'm looking forward to this feature release. 🚀

Ahh, nuts. Yes of course @eldruin .

Done.


Chocolatey: Upgrade packaging to 2.4.3.

Switch the download URL to search.maven.org.
Thank you for opening a pull request and contributing to AsciidoctorJ!
Please take a bit of time giving some details about your pull request:
Kind of change

[ ] Bug fix
[x] New non-breaking feature
[ ] New breaking feature
[ ] Documentation update
[ ] Build improvement

Description
Upgrade the Chocolatey packaging to 2.4.3, including switching the download URL to Maven Central.

Thanks!


Token provider update

What?
Allow PCTokenProvider to take a requestInjector
Why?
To avoid the need to drop down into using PPHTTPEndpointTokenProvider from PusherPlatform

CC @pusher/mobile

          1 Warning

:warning:
Any changes to library code should be reflected in the Changelog. Please consider adding a note there.
You can find it at CHANGELOG.md.

SwiftLint found issues
Warnings

File
Line
Reason

ChatManager.swift
16
TODOs should be avoided (Do we need this here? Should i...).

ChatManager.swift
77
TODOs should be avoided (Fix this stuff).

ChatManager.swift
28
Lines should not have trailing whitespace.

ChatManager.swift
43
Line should be 120 characters or less: currently 125 characters

ChatManager.swift
91
Line should be 120 characters or less: currently 131 characters

PCTokenProvider.swift
17
Line should be 120 characters or less: currently 131 characters

  Generated by :no_entry_sign: Danger


Does the delete API call exist in v4.x?

Is your feature request related to a problem? Please describe.
Hi, I checked the API documentation and could not find the delete call, we are testing WGD out and wanted to bulk delete all the created peers.  Currently we cannot automate testing due to lack of this.
Describe the solution you'd like
Please share a way to delete peers in bulk or get a list and then delete. If no API, can we delete from the wgX.conf file and delete from the backend DB(Sqlite) ?

Hi! Yes it does I'm just too busy to finish the doc. Here is how to use it in JS, for example my configuration name is wg0:
const headers = new Headers();
headers.append("Content-Type", "application/json");

const requestOptions = {
    method: "POST",
    headers: myHeaders,
    body: JSON.stringify({
        "peers": [
            "public_key_1",
            "public_key_2",
            "public_key_3"
        ]
    }),
};

fetch("/api/deletePeers/wg0", requestOptions)
    .then((response) => response.json())
    .then((result) => console.log(result));

Hope this helps :)

Just a side note, would it be easier to use something like Django for this?  Though it is heavy compared to flask, perhaps the unwanted modules can be disabled or removed and it may suffice.
I mean it comes with user management and web UI included, just a thought.

Well yes Django should be a better solution. The reason I used Flask is it is easy to configure, code and maintain and is minimal to endusers :)

Well yes Django should be a better solution. The reason I used Flask is it is easy to configure, code and maintain and is minimal to endusers :)

So this issue is solved? @mzs114

Well yes Django should be a better solution. The reason I used Flask is it is easy to configure, code and maintain and is minimal to endusers :)

So this issue is solved? @mzs114

Yes, it is resolved, thanks!


Add service call for introspection of load state

We would like the monarch site to be able to say "service unavailable" if the data is loading, this would require the ability to introspect SG and/or Golr to say "are you ready" with the ability to return with "loading"
@kltm is this something me have in golr already?

GOlr itself is just the standard Solr and quite dump--this is actually accomplished with the help of AmiGO (although not used in production for some reason that I forget).
If the balancing configuration is on and it's not getting a proper response, it will give an error page.
As well, Jenkins jobs are able to create error flags/messages using bundled scripts that allow AmiGO to display various custom warn-off messages in cases like loading: http://wiki.geneontology.org/index.php/AmiGO_2_Manual:_Administration#System_messages_and_global-message.pl
The widgets themselves can catch a wide variety of errors and trigger events for them, but it's probably best to have it happen at the monarch-app level.


fixed cargo.toml warnings

Gets rid of the "unused key" warnings by putting the top level metadata into [workspace.metadata].
Gets rid of the "only need license or license-file" errors: removed the license-file path for all sub-crates (kept license="MIT"), kept license-file path for top level crate linking to the actual LICENSE.md

Codecov Report

Merging #474 (f9b97d9) into master (2173f60) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #474   +/-   ##
=======================================
  Coverage   74.09%   74.09%
=======================================
  Files          83       83
  Lines       10583    10583
=======================================
  Hits         7842     7842
  Misses       2741     2741

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

Style suggestion: please use imperative mood.

Style suggestion: please use imperative mood.

Want to add this to https://github.com/fedimint/fedimint/blob/master/docs/contributing.md ?


Installation Issue

I installed dext with npm install dext -g, and for some reason I can't get it to open. I changed the Spotlight shortcut to Alt+Cmd+Space, and I even tried restarting my mac to see if it would work. Also, I don't have Alfred or any other launcher installed.

Hi,
An installer is not yet available for this app. I'm still looking for contributors to help out in this area.
I have just packed the latest version from master in which you can download via the instructions here.


Tags out of order with includeControllerXmlComments

Using AspNetCore 2.1.1 and Swashbuckle.AspNetCore 3.0.0
When I use 'SwaggerGenOptions.IncludeXmlComments' without parameter includeControllerXmlComments, the API order by tag name, everything work perfect.
options.IncludeXmlComments(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Test.Web.Host.XML"));
options.IncludeXmlComments(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Test.Application.XML"));

then i use it and API list got out of order:
options.IncludeXmlComments(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Test.Web.Host.XML"), true);
options.IncludeXmlComments(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Test.Application.XML"), true);

So i try to add OrderActionsBy but nothing happen:
options.OrderActionsBy(a =>
{
    return $"{a.ActionDescriptor.RouteValues["controller"]}";
});

By the way, my  XmlComments is Chinese, like this:
    /// <summary>
    /// 公共模块
    /// </summary>

    public class CommonController : BaseController<ICommonService>
    {
    }

did i made any mistake?

So, the addition of the group description (via includeControllerXmlComments) actually adds a global tags section (see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#swagger-object) to the generated Swagger JSON. When present, this tag section and the order of tag metadata within it dictates the order of operation groups in the swagger-ui.

I believe the following commit should resolve this - e2f30e04f412b821a5a989338a186e422c776cc4
But, you'll need to wait for and upgrade to v5.0.0 to avail of it. In the meantime, you can workaround with the following document filter:
// TagReOrderDocumentFilter.cs
public class TagReOrderDocumentFilter : IDocumentFilter
{
    public void Apply(SwaggerDocument swaggerDoc, DocumentFilterContext context)
    {
        swaggerDoc.Tags = swaggerDoc.Tags
            .OrderBy(tag => tag.Name)
            .ToList();
    }
}

// Startup.cs
options.IncludeXmlComments(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Test.Web.Host.XML"), true);
options.IncludeXmlComments(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Test.Application.XML"), true);
options.DocumentFilter<TagReOrderDocumentFilter>();

Hi I use bellow packages of v5.0.0
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.6.3" />
   <PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="5.6.3" />
   <PackageReference Include="Swashbuckle.AspNetCore.Filters" Version="6.0.1" />
   <PackageReference Include="Swashbuckle.AspNetCore.Newtonsoft" Version="5.6.3" />
   <PackageReference Include="Swashbuckle.AspNetCore.ReDoc" Version="5.6.3" />

and facing same ordering issue ,fix after using above code.

Hi I use bellow packages of v5.0.0
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.6.3" />
   <PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="5.6.3" />
   <PackageReference Include="Swashbuckle.AspNetCore.Filters" Version="6.0.1" />
   <PackageReference Include="Swashbuckle.AspNetCore.Newtonsoft" Version="5.6.3" />
   <PackageReference Include="Swashbuckle.AspNetCore.ReDoc" Version="5.6.3" />

and facing same ordering issue ,fix after using above code.


[Event Request] Codeunit 1621 "PEPPOL Service Validation" - OnCheckServiceInvoiceOnBeforeCheckSalesDocument

Describe the request
We want to change SalesHeader field values before the check. Therefore we request to add the following event:
    procedure CheckServiceInvoice(ServiceInvoiceHeader: Record "Service Invoice Header")
    var
        ServiceInvoiceLine: Record "Service Invoice Line";
        SalesHeader: Record "Sales Header";
        SalesLine: Record "Sales Line";
    begin
        PEPPOLManagement.TransferHeaderToSalesHeader(ServiceInvoiceHeader, SalesHeader);
        SalesHeader."Document Type" := SalesHeader."Document Type"::Invoice;
        SalesHeader."Shipment Date" := SalesHeader."Posting Date";
//NEW
        OnCheckServiceInvoiceOnBeforeCheckSalesDocument(SalesHeader, ServiceInvoiceHeader);
//NEW
        PEPPOLValidation.CheckSalesDocument(SalesHeader);
        ServiceInvoiceLine.SetRange("Document No.", ServiceInvoiceHeader."No.");
        if ServiceInvoiceLine.FindSet() then

    [IntegrationEvent(false, false)]
    local procedure OnCheckServiceInvoiceOnBeforeCheckSalesDocument(var SalesHeader: Record "Sales Header"; ServiceInvoiceHeader: Record "Service Invoice Header")
    begin

end;

Additional context
Allows you to change SalesHeader field values (like the Shipment Date) before the CheckSalesDocument() call.
Internal work item: AB#555497

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 25808.


Remove warn spam of chef_gem compile_time

As per
https://www.chef.io/blog/2015/02/17/chef-12-1-0-chef_gem-resource-warnings/
community cookbooks should have a PR like below:
chef_gem "aws-sdk" do
compile_time false if Chef::Resource::ChefGem.method_defined?(:compile_time)
end

Hi. I am an automated pull request bot named Curry. There are commits in this pull request whose authors are not yet authorized to contribute to Chef Software, Inc. projects or are using a non-GitHub verified email address. To become authorized to contribute, you will need to sign the Contributor License Agreement (CLA) as an individual or on behalf of your company. You can read more on Chef's blog.
Non-GitHub Verified Committers
There are 1 commit author(s) whose commits are authored by a non-GitHub verified email address. Chef will have to manually verify that they are authorized to contribute.
Please sign the CLA here.

@c240amg If you can sign the CLA I'd love to get this merged in and released

I've signed the CLA now.
Although it's failed the travis check, is that ok still?


”Grozești”, ”Colțu Cornii”, ”Sălăgeni” are listed in the drop-down menu

Description:
When user writes ”Grozești”, ”Colțu Cornii”, ”Sălăgeni” the locations appear in the drop-down menu next to the comune and the county which is a part according to the law.
Precondition:
The website is up an running.

Step 1
Write in the search bar "Grozești"

Expected results
The location appears in the drop-down menu as "Sat Grozești, IAȘI (Grozești)".

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 5
Write in the search bar "Sălăgeni"

Expected results
The location appears in the drop-down menu as "Sat Sălăgeni, IAȘI (Grozești)".


[BUG] Web application link in the README file is wrong

Describe the bug
The link in Get started at the end of the sentence "To begin go to the web application: FindIssues" leads to a domain which doesn't seem relevant anymore and should be replaced by the vercel link
To Reproduce
Steps to reproduce the behavior:
click on the FindIssues link under get started
Expected behavior
Should open https://findissues.vercel.app

To be honest my main motivation to opening this issue is to understand if the repo is active and valid for contributions.
I have a forked repo with a branch ready for the fix if relevant:
https://github.com/itayfry/findissues/compare/main...fix-README-web-app-link
And if so, I have a couple of improvements in mind for the search functionality that I'd like to open issues for and contribute as well.

Hi @itayfry you can start working on this issue.


[ci skip] README: generate SSL certificate with SAN field

Fixes #54.

@breeswish Can you test this works for you? This works for me on OSX 10.12.4 (OpenSSL 0.9.8zh 14 Jan 2016).


Load first image and then rest in background

What do you think about idea to load first image of slider, hide loader gif and then load rest images in "background"? It could save some time to show first screen to user which is good user experience.

one is that the final loading time will be increased by first image load time

I don't really see the reason why overall loading time (of entire slider) would rise by showing first image as soon as it's loaded. Maybe I'm wrong but you need to give more details why it would increase.

other is that may give the false feeling of loaded and not working.

Maybe you're right especially when first image will load and user would need to wait for example 10-20 seconds to see next one. But think about that without showing first image he will wait same 10-20 seconds looking and blank page with spinner.

There is way to achieve the same, setting the first image as background. But I really think the loader should stay until all images loaded,

If I set first image as background of slider div by myself it would cause that I'm loading same image two times one in CSS as background and one in vue-flux slider by your code.

Maybe I can show the % of images loaded to improve the user experience if you are worried about waiting time.

I don't know if it's possible to do due to loading image is not async backend call or something like that.

I was thinking much more about it and I think best soloution would be to enable devs to set optional flag which would do that slider would work like this:

Set first image as background (not by myself but by your component).
Spinner still working.
Load other images.
Hide spinner and start slider "sliding".

Basically that's same as first idea but without hiding spinner so user will not have false feeling that "hey something not working fine!" because he will see that images are still loading.
And this behaviour would be optional so default behaviour would be same as it's now and second one would be above.

Except that giving slot to enable devs to overwrite spinner is must have as blue colour spinner doesn't fit my page for example and much more pages.

I have created the slot spinner although if the only problem is the color you should just overwrite the CSS.
I also saw doing some tests that is nice to display the first image while the rest are loaded, so I did it that way. I don't imagine somebody would prefer to watch blank instead an image.
The spinner will disappear when all loaded.
You can check it in the documentations and if there are not more changes I will release it at the end of the week :)

Great I really appreciate your hard work. Thank you. Now this component is just perfect. I don't really see other vue compontnt for vue slider which would be better at least at github. Thank you once again.

Are your sure it's working correctly? When just for testing I set delay to 1sec I feel like entire slider is shown only when all images are loaded because I don't need to wait more that 1sec for first slide animation. I use 4.0.0.
Maybe it have something to do that I'm loading images on custom event like this:

in parent

axios.get(`/buildings/getOne.php?id=` + this.articleId, axiosConfig)
    .then(res => {
        this.building = res.data.record[0];
        eventBus.$emit('loadedOffer', this.building);

<main-offer v-if="building.type !== 'investment'"></main-offer>

in child which is :

data () {
    return {
        fluxOptions: {
            autoplay: true,
            delay: 1000,
        },
        fluxImages: [],
        fluxTransitions: {
            transitionSlide2d: Transitions.transitionSlide2d
        }
    };
},
created() {
    eventBus.$on('loadedOffer', (data) => {
        this.fluxImages = data.imagesLink.split(',');
        this.$refs.slider.preloadImages(this.fluxImages);
    })
}

When slider show I don't need to wait more then 1000ms to see next image which is weird because this.fluxImages is array of 20 images (this amount just for testing purposes). So I thought that I'll be like 1st image shown as soon as possible then rest images loading "in background" and after few seconds (not one) this slider will start sliding (showing next images)

I'll take a look in detail this week but my feeling is that is working properly...

Just a clarification, the first image is the first to be requested to server but not the only one, more images are requested to be loaded in parallel. The amount of images loading in parallel is handled by the browser.


[Potential issue] issue when killing player

@NiroDev i haven't test this part, but many mods that can kill player are all malfunction now and throw exception, in v55, so i sug u to check ur mod

We noticed that there are a couple changes to this method, but haven't had the time yet to check which. Will be on my list of things to take a closer look at. We "should" be mostly fine though as we're only running our custom code in patches for this method.

https://github.com/MehimoNemo/LethalCompanyShrinkRay/blob/main/LittleCompany/components/GrabbablePlayerList.cs line 44
We're fine, because we commented out the other parameter. If we wouldn't, then it would throw an exception as the order is wrong, as a new parameter got added in the middle.


[WFLY-19324] Anonymous 'captor' service does not reliably provide Ope…

…nTelemetryConfig; use the DeploymentPhaseContext ServiceDependency requirement  mechanism
https://issues.redhat.com/browse/WFLY-19324
Follow up on https://github.com/wildfly/wildfly/pull/17878 to correct a wiring flaw I misunderstood when I reviewed it.
This is a draft because I also sent up #18096 with a different approach and reviewers can pick one.

Thanks @pferraro -- I'll close this then.


[Feature] Object Oriented SDKs

Problem description
Often times, API resources are interconnected and it is natural to propagate these relationships directly into the SDK. See the snippet below, which uses the Github API as an example
const user = client.user.get("user-id...");
const repositories = user.get_repos();

In the example above, you can call get_repos directly on the user response. In comparison, today, with Fern, the user would instead have to call client.repositories.filter(user_id = user.id).
Why would it be useful?
This is more intuitive for developers and reduces boilerplate.
Describe the solution (optional)
The solution here is to introduce a new primitive into fern, called "methods". Every type defined in the API can have methods, which make calls to API endpoints. For the users example above, this is what the Fern Definition would look like:
imports:
  repos: repos.yml

types:
  User:
    methods: # <---------------  new methods key
      get_repos: # <------------  name of method
        endpoint: repos.list # <--- the endpoint to proxy to
        parameters:
          user_id: $.id  # <-------- any parameters to pass in from the type itself
    properties:
      id:
        type: string
        docs: The ID of the user.

For users coming from OpenAPI, we would support a x-fern-methods extension directly on the schema.
components:
  schemas:
    User:
      x-fern-methods:
        get_repos:
           path: /users
           method: POST
           parameters:
             user_id: $.id
      properties:
        id:
          type: string

Adding the idea that you may want a method to return another object.
For example, an Organization has a Role that has Members
api.organizations(orgId).roles("play-tuba").addMember(userId);

Where

.organizations(orgId) returns an Organization object
.roles("play-tuba") returns a Roles object
addMember(userId) is a method on the Roles object

I'm not sure the specification suggested could allow generation of such hierarchies.

See the *Resource classes that can be accessed via PhaseTwo client as an example https://github.com/p2-inc/phasetwo-java/tree/main/src/main/java/io/phasetwo/client


Datamap plot for plotting; HDBSCAN for clustering

The DataMapPlot library provides both static plots and interactive plots (backed by matplotlib + datashader and deck.gl respectively) it allows for rich plotting very easily, and takes care of many of the details handled here, as well as several other aspects (palette handling, label placement, interactive search, titles, etc.).
Using HDBSCAN instead of DBSCAN for clustering allows for a single relatively intuitive clustering parameter (min_cluster_size) while still producing good clusterings.
Still cleaning up a few things, but I wanted to open the PR for discussion purposes. Would this be of interest?

Awesome, yes very open to improvements! Happy to replace DBSCAN with HDSCAN. For the plotting maybe we can just have three backends?Something like a show(PLOT_LIB, **lib_kwargs) method interface where the PLOT_LIB is any of ["mpl", "plotly", "dmp"]?
At the moment the repo is mostly intended as a template people can copy and modify rather than a full ibrary, so the different plotting methods would also serve to show how to customize the plots.
What do you think?

That's a reasonable option. I'll see if I can rework this to work that way.

Sorry for the delay, I had to step away from this for a little bit. I've moved things around so we now support multiple backends. Potentially we could set a default, but forcing the user to decide is also a reasonable option.


[common-library] Removes chartnameOverride and simplify full naming logic

Is this a new chart
no
What this PR does / why we need it:
Previous to this the fullname of resources had a logic to add the nri- prefix and use release name if collisions with the chart name.
The goal of this was to standardize naming across different charts but more logic should have been needed to cover cases like chart starting with nri- or newrelic to avoid replications in the name.
But since all charts using the library will be using the common naming helpers , the standardization will take place anyway and all charts will start with the release name, followed by the chart name.
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] Chart Version bumped
[ ] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [mychartname])

There was even dead code... I don't know what I was thinking about. The reminiscence from when this was a simple POC.
I liked the idea but it IMO it was to complex to fully implement and hard to maintain/understand


Write a C# program to find roots of quadratic equation

Description
Write a C# program to find roots of quadratic equation
Use the quadratic formula to find the roots of the quadratic equation
x = $(-b &plusmn \sqrt(b^2 - 4ac))/2a$
The input will be the coefficients of $x^2$, $x$, and the constant $c$.
Input  : 1 2 1
Output : -1 -1

Contributed by - @PavanKumarCB

How to contribute

Save the solution in FindRootsOfQuadraticEquation.cs file
Add FindRootsOfQuadraticEquation.cs file in program/find-roots-of-quadratic-equation folder

!assign


Use def everywhere and fix "wrong number of arguments" Groovy error

nf-core/chipseq pull request
Many thanks for contributing to nf-core/chipseq!
Please fill in the appropriate checklist below (delete whatever is not relevant).
These are the most common things requested on pull requests (PRs).
PR checklist

[ ] This comment contains a description of changes (with reason)
[ ] If you've fixed a bug or added code that should be tested, add tests!
[ ] If necessary, also make a PR on the nf-core/chipseq branch on the nf-core/test-datasets repo
[ ] Ensure the test suite passes (nextflow run . -profile test,docker).
[ ] Make sure your code lints (nf-core lint .).
[ ] Documentation in docs is updated
[ ] CHANGELOG.md is updated
[ ] README.md is updated

Learn more about contributing: CONTRIBUTING.md

This PR should also get the tests passing properly now.


Remove extra space

Closes https://github.com/ocaml/infrastructure/issues/142

Darn. I'd have hope our integration tests would catch things like this! Thanks for the fix.


roadmap to v1.0.0

Here's the general plan:

[x] v0.1.0: Streams API (streams.proto)
[x] v0.1.1: Resolve #4
[x] v0.1.2: Resolve #6
[x] v0.1.3: TLS functionality & documentation
[x] v0.2.0: keep-alive functionality and configuration validation
[x] v0.3.0: Users API (users.proto)
[x] v0.4.0: Operations API (operations.proto)
[x] v0.5.0: Gossip API (gossip.proto)
[x] v0.6.0: Persistent Subscriptions API (persistent.proto)
[ ] v0.x.0: Projections API (projections.proto) (see #22)
[x] Broadway integration for persistent subscriptions API

see NFIBrokerage/radical for the TCP-client driven version of this
https://github.com/NFIBrokerage/volley

[ ] v1.0.0: tested and tried out in prod for a good while

We haven't felt any need to implement the projections API and we've been using Spear for a while in production so I think it's time for the v1.0.0 release.

v1.0.0 is released! https://github.com/NFIBrokerage/spear/releases/tag/v1.0.0


Update automated tests with main menu behaviour

Main menu is currently in digital-hour branch.

Fixed by f445e38


Freeze when trying to save settings.json file after opening a .tsx file

Check for existing issues

[X] Completed

Describe the bug / provide steps to reproduce it
After opening a .tsx file, when i try to save zed's settings.json file, zed crashes.
Steps to reproduce:

open a .tsx file, then close it
open settings.json, then try to save

I do not see any logs after save.
Environment
Zed: v0.113.0 (stable)
OS: macOS 14.1.1
Memory: 16 GiB
Architecture: x86_64
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.
If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.
No response

Hey @samu, I'm not able to reproduce this, would you be willing to paste in the contents of your settings.json file for us to test?

Yes:
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run the `open default settings` command
// from the command palette or from `Zed` application menu.
{
  "features": {
    "copilot": false
  },
  "theme": "Solarized Light",
  "buffer_font_size": 15,
  "vim_mode": true,
  "terminal": {
    "shell": {
      "with_arguments": {
        "program": "bash",
        "args": ["--login"]
      }
    }
  },
  "autosave": "on_focus_change",
  "lsp": {
    "rust-analyzer": {
      "initialization_options": {
        "checkOnSave": {
          "command": "clippy"
        },
        "inlayHints": {
          "maxLength": null,
          "lifetimeElisionHints": {
            "useParameterNames": true,
            "enable": "skip_trivial"
          },
          "closureReturnTypeHints": {
            "enable": "always"
          }
        }
      }
    }
  }
}

I've reported a crash a few times after saving the settings file, it's not limited to .tsx files.


Add ability to read in gmsh mesh file

cad-to-dagmc can currently read in stp files and in memory cadquery objects.
Adding the ability to read in .msh mesh files would be really handy. Not just as it is super input format to support but also this would allow user to refine the msh
First people could export the msh, refine it the msh and then import it again
Refining can be done with tools like mmg or pymmg by the user
this would be more flexible then handling the refining internally as other packages for refining might be desired, or the user might want to manually remesh.

gmsh python api is https://gitlab.onelab.info/gmsh/gmsh/-/blob/master/api/gmsh.py?ref_type=heads

solved in and example added


Merge rewrite

Rewrote the entire bot using Arikawa, added some functionalities etc.
Check full commit history of the branch to see what has changed


Pull in ceph pool facts to all --tags run.

nova-data monitoring and openstack-setup depends on facts that are set in ceph-osd role. This was breaking ursula run when using --tags monitoring or --tags openstack-setup. In future, we will separate out this ceph facts in it;s own role so is easy to pull in via role dependency.

This isn't tested by CI, going to rerun anyway.

retest

retest

Merging as no changes here disrupt CI


MSVC Code Analysis warnings suggesting enum class

Running MSVC's Code Analysis (Analyze -> Run Code Analysis -> On Solution) gives many warnings, most of which suggest changing enum to enum class.
Warnings filtered for enum class suggestions:
C:\Users\User\source\repos\vcpkg\installed\x64-windows\include\SDL2\SDL_rect.h(102): warning C26812: The enum type 'SDL_bool' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\nas2d-core\include\NAS2D\Signal.h(65): warning C26812: The enum type 'DiggerDirection::DiggerSelection' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\Things\Structures\Structure.h(68): warning C26812: The enum type 'Structure::StructureState' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\Things\Structures\Structure.h(72): warning C26812: The enum type 'DisabledReason' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\Things\Structures\Structure.h(79): warning C26812: The enum type 'IdleReason' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\Things\Structures\Structure.h(103): warning C26812: The enum type 'Structure::StructureClass' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\Things\Structures\Structure.h(104): warning C26812: The enum type 'ConnectorDir' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\Common.cpp(82): warning C26812: The enum type 'MineProductionRate' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\Common.cpp(232): warning C26812: The enum type 'ProductType' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\Mine.h(37): warning C26812: The enum type 'MineProductionRate' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\GraphWalker.cpp(13): warning C26812: The enum type 'Direction' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\Things\Structures\Factory.h(44): warning C26812: The enum type 'ProductType' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\Things\Structures\SeedSmelter.h(53): warning C26812: The enum type 'ResourcePool::ResourceType' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\Things\Robots\Robodigger.h(13): warning C26812: The enum type 'Direction' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\Map\TileMap.cpp(41): warning C26812: The enum type 'constants::PlanetHostility' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\Map\TileMap.cpp(395): warning C26812: The enum type 'TileMap::MouseMapRegion' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\Mine.cpp(14): warning C26812: The enum type 'Mine::OreType' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\PopulationPool.cpp(42): warning C26812: The enum type 'Population::PersonRole' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\Population\Population.cpp(83): warning C26812: The enum type 'Population::PersonRole' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\ProductPool.cpp(16): warning C26812: The enum type 'ProductType' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\ResourcePool.cpp(111): warning C26812: The enum type 'ResourcePool::ResourceType' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\RobotPool.cpp(63): warning C26812: The enum type 'RobotType' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\States\MapViewState.h(220): warning C26812: The enum type 'InsertMode' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\States\MapViewState.h(221): warning C26812: The enum type 'StructureID' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\States\MapViewState.h(222): warning C26812: The enum type 'RobotType' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\States\MapViewState.cpp(95): warning C26812: The enum type 'constants::PlanetHostility' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\States\MapViewState.cpp(134): warning C26812: The enum type 'MapViewState::PopulationLevel' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\States\Planet.h(36): warning C26812: The enum type 'Planet::PlanetType' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\States\MainMenuState.cpp(169): warning C26812: The enum type 'FileIo::FileOperation' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\States\MapViewStateHelper.cpp(320): warning C26812: The enum type 'StructureID' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\States\MapViewStateHelper.cpp(534): warning C26812: The enum type 'RobotType' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\States\MapViewStateIO.cpp(362): warning C26812: The enum type 'StructureID' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\States\MapViewStateUi.cpp(446): warning C26812: The enum type 'RobotType' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\States\MapViewStateUi.cpp(448): warning C26812: The enum type 'InsertMode' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\States\MapViewStateUi.cpp(456): warning C26812: The enum type 'DiggerDirection::DiggerSelection' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\States\MapViewStateUi.cpp(561): warning C26812: The enum type 'FileIo::FileOperation' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\States\PlanetSelectState.cpp(190): warning C26812: The enum type 'constants::PlanetHostility' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\states\SplashState.cpp(34): warning C26812: The enum type 'LogoState' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\StructureCatalogue.cpp(25): warning C26812: The enum type 'StructureID' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\StructureTranslator.cpp(17): warning C26812: The enum type 'StructureID' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\UI\Core\Button.h(58): warning C26812: The enum type 'Button::State' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\UI\Core\Button.h(59): warning C26812: The enum type 'Button::Type' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\UI\Core\Slider.cpp(58): warning C26812: The enum type 'Slider::SliderType' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\UI\Core\TextField.h(79): warning C26812: The enum type 'TextField::BorderVisibility' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\ui\FileIo.cpp(109): warning C26812: The enum type 'FileIo::FileOperation' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\UI\MajorEventAnnouncement.cpp(44): warning C26812: The enum type 'MajorEventAnnouncement::AnnouncementType' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
Z:\OPHD\src\UI\ResourceBreakdownPanel.cpp(25): warning C26812: The enum type 'ResourceTrend' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).

As a side note, some of those paths have inconsistencies in the casing. In particular:

"states" in "Z:\OPHD\src\states\SplashState.cpp"
"io" in "Z:\OPHD\src\ui\FileIo.cpp"

Some notes that may help with automated changes:
From master: Using grep, a list of enum names, which have not been declared as enum class can be obtained with:
grep -rhoP "^\s*enum (?!(class))\K\w+" OPHD > enumNames.txt

Flags:

-r - recursive, searches OPHD/ and all subfolders
-h - no filename, suppress printing of the filename
-o - only matching, print only the matched portion of a line
-P - Perl regexp, interpret pattern as Perl regexp

Regexp:

^ - start of the line, don't allow skipping to start matching part way into the line
\s - whitespace
* - zero or more of the previous pattern (whitespace)
(?!(...)) - negative lookahead, don't match if this pattern follows
\K - look behind, only match if the previous pattern held, but don't include previous pattern in matched output
\w - word characters
+ - match one or more of the previous pattern (word characters, hence forming a word)

That will extract all names that follow an enum keyword (but excludes matches that start with enum class).
The result is redirected to a file for later processing.

From the fix branch: A list of prefixed enum values can be obtained with:
xargs --arg-file=enumNames.txt -I'{text}' grep -rho "\b{text}::\w*" OPHD | sort | uniq > enumValues.txt

Flags (xargs):

--arg-file - newline (or space) separated list of inputs to process
-I - replace string, string that will be replaced in the following command with the input line

The grep flags are the same as above.
Regexp:

\b - word boundary, only match on a word boundary (don't match word suffixes)
{text} - not part of regexp, but rather the replacement text from xargs (enum name)
:: - literal characters to match (scope resolution operator)
\w* - a word (0 or more word characters), the enum value name

Since many enum values are used more than once, they will be found more than once. Hence we must sort the output, and then remove duplicates with uniq (unique). This utility only removes adjacent duplicates, so the output needs to be sorted first. The results are then redirected to a file.

More to follow later....

Or just use Visual Assist's Refactor > Rename... and it'll automatically pick up every actual non-comment use, optionally across all projects. It'll only pick up uses in comments if the option is selected.

I found something that largely works, using the input files generated above:
xargs --arg-file=enumNames.txt -I'{enumName}' sh -c 'echo "{enumName}:"; grep -hoP "^{enumName}::\K\w*" enumValues.txt | xargs -I"{enumValueName}" find OPHD/ -type f -exec sed -i -e "s/\(^\t*[^\t].*[^({enumName}::)]\)\b{enumValueName}\b/\1{enumName}::{enumValueName}/g" {} \; && make && git add OPHD/ && git commit -m "Adding prefix for enum {enumName}"'

It will go through each enum name, and do a global search/replace of all enum values to add the prefix. It then does a test build, and it that succeeds, it creates a commit with an automatic commit message.
There was one snag with TileMapLevel::LEVEL_SURFACE. It seems there is a global std::string variable named LEVEL_SURFACE, so trying to global search/replace that string results in problems. If that entry is removed from the enumValues.txt file, the above command works.
One other slight issue, is a similar case happened in comments, where comment text was prefixed with an enum name. It doesn't break the code, so the compile step still succeeded, but the result looks ugly. Comments were edited by:

StructureState::DISABLED.
StructureState::IDLE
NavigationPanel::PANEL_PRODUCTION
NavigationPanel::PANEL_MINING
StructureID::SID_NONE

These were found afterwards using:
git log -p | grep "+.*//.*::" | more

Diff lines containing additions, with a comment, and the scope resolution operator added after the comment.

Bit of an update. I noticed a few entries were missing from the enum values list I had extracted earlier. This resulted in unprefixed values in the auto processed results. Additionally, I needed to adjust the text replacement command to account for multiple replacements in one line.
The enum values previously missing were:

FileOperation::FILE_SAVE
StructureClass::CLASS_RECYCLING
PlanetHostility::HOSTILITY_NONE
PlanetHostility::HOSTILITY_LOW
PlanetHostility::HOSTILITY_MEDIUM
PlanetHostility::HOSTILITY_HIGH
PopulationLevel::POPULATION_SMALL
PopulationLevel::POPULATION_LARGE

I manually added those to the file, and re-ran the processing command.
The updated processing command was:
xargs --arg-file=enumNames.txt -I'{enumName}' sh -c 'echo "{enumName}:"; grep -hoP "^{enumName}::\K\w*" enumValues.txt | xargs -I"{enumValueName}" find OPHD/ -type f -exec sed -i -e "s/\([^\t]\)\b{enumValueName}\b/\1{enumName}::{enumValueName}/g; s/{enumName}::{enumName}::{enumValueName}/{enumName}::{enumValueName}/g" {} \; && make && git add OPHD/ && git commit -m "Adding prefix for enum {enumName}"'

Additionally, the output was checked by temporarily switching all enum to enum class and compiling, and checking for a specific error message related to missing scope prefixes:
make 2>&1 | grep "no member named"

This results in PR #371.

Once the branch for #371 was made, I then rebased existing changes from PR #368 on top of it, forcing merge conflicts to resolve to the original code. This effectively cut down the bulk of the remaining code, as only the non-prefix-addition changes still remained. The result of this was pushed as branch rebaseFix319.

I also went and undid some of the accidental whitespace changes. I might not have caught all whitespace changes, but I did grep for new lines containing known accidental whitespace change patterns. The result is branch rebaseFix319RemoveWhitespaceChanges. The whitespace changes can be checked by comparing with rebaseFix319. Going forward, we should probably use the branch with the whitespace changes stripped.
To check the whitespace changes, I used the following searches:
git show | grep "+\s*if("
git show | grep "+\s*} else"

The "+" was to find new added lines in the diff, which after some whitespace, contained some know changed pattern.

What is the status of this issue, am I ok to slowly moving towards scoped enums or is there still a push to try and do it as a single large commit?

So far, enum name scope prefixes have been added to all enum value names (required for enum class).
Still to change is actually adding the class keyword to each enum definition. We also need to rename the enum values. Enum value names should be UpperCamelCase. Enum name prefixes (not the scope prefix, but common name prefixes added to the value name itself) should be dropped. The scope prefix effective takes the place of the name prefix.
During the previous attempt, it was discovered a lot of static_cast needed to be added to get things to compile. This should be avoided. We may want to look into refactoring to remove the need to such casts. It does not affect all enums equally. As such, it may be easier to do the remaining changes in a piecemeal fashion, perhaps first focusing on the easy cases that don't need static_cast or some kind of refactor.
We may need to discuss cases that would rely on heavy static_cast to come up with an alternate solution. I'm afraid I've lost context on that part though, so I don't remember what cases that entailed, or how we might go about refactoring things instead.

To be fair, the casting is ... well, it's hideous. It's what happens when I want to "just get something our the door". In many cases a table lookup is a better option and will require some refactoring to get it looking good and functioning properly.

Ahh, to add some clarity, switching from enum to enum class may require adding more static_cast conversions to keep the code compiling, due to the more strict type checks with enum class. In particular, an enum class value name will not auto convert to an integer, so you can't use an enum class value name in a table lookup without a static_cast. At least not unless you write a type conversion operator to explicitly allow conversion to an integer type.
For enums that are meant to be used as table lookup, we'd probably want to refactor to add a type conversion operator, or we might want to look into refactoring the code so it doesn't use enum value names in table lookups.

I would be interested to see how the type conversion operator works out if appropriate for some of the enums.

I found this article interesting:
Using enum classes as type-safe bitmasks
It's more about bit manipulation operators, rather than type conversion operators, but the idea should be similar. There is the use of a macro near the end, to shorten enabling bit operators for enum classes. Maybe we want to avoid that part. Its been a while since I read the article, so I don't quite remember how big of a deal it was. I don't think it was super important.

I was looking to scope the enums ConnectorDir and StructureID. They are both used with the int meta argument on IconGrid::addItem.
mStructures.addItem(constants::WAREHOUSE, 9, StructureID::SID_WAREHOUSE);

mConnections.addItem(constants::AG_TUBE_INTERSECTION, 110, ConnectorDir::CONNECTOR_INTERSECTION);

I'm not sure if anyone has a good idea for how to store the metadata in a way that doesn't require static_cast into and out of int for the two enums. (Maybe some sort of redesign to IconGrid or redesign the use of the enums?)
If we don't want to change using int meta in IconGrid, we could wrap these two enums in namespaces and leave them as non-scoped enums. This removes each individual enum member from the global namespace but doesn't provide some of the typing checks of enum class. Sort of have of enum class.
example:
namespace ConnectorDir
{
    enum ConnectorDir
    {
	Intersection = 1,
	Right,
	Left,
	Vertical // Functions as an intersection
    };
}

Ok, looks like you've identified one of the more problematic cases. Perhaps we should look at this code and see if there is a way to redesign it.
Wrapping it in a namespace would ensure uses of the value names have to be scope prefixed. Though I suspect it would do nothing to eliminate the MSVC warning.
Maybe in the future we won't need an enum for connection direction. Maybe we can use raw integers, which do table lookups for properties that are specific to direction. I suspect the code using this enum could use a bit of refactoring, though don't have a fleshed out idea of where we want to take it. It might be that connector direction could become a visual only thing, and the game internally only marks where tubes are, not what direction they are facing. The direction/connectivity could be calculated using surrounding tiles.


Issues with processing the templates

Hi!
I am running a few test cases and encountered some problems that I think are related to processing the templates.
I have a working example that led to a pdb output:
python /global/scratch/users/skyungyong/Software/FastFold/inference.py --output_dir ./ --model_preset multimer --use_precomputed_alignments Alignments --enable_workflow --inplace --param_path /global/scratch/users/skyungyong/Software/FastFold/data/params/params_model_1_multimer_v3.npz -model_name model_1_multimer AT3G18790-AT3G18790.fasta /global/scratch/users/skyungyong/Software/alphafold-multimer-v2.2.2-080922/Database/pdb_mmcif/mmcif_files/

WARNING:root:Triton is not available, fallback to old kernel.
WARNING:root:Triton is not available, fallback to old kernel.
WARNING:root:Triton is not available, fallback to old kernel.
running in multimer mode...
WARNING:root:Triton is not available, fallback to old kernel.
WARNING:root:Triton is not available, fallback to old kernel.
WARNING:root:Triton is not available, fallback to old kernel.
[02/21/23 20:04:34] INFO     colossalai - colossalai - INFO: /global/scratch/users/skyungyong/Software/anaconda3/envs/fastfold/lib/python3.8/site-packages/colossalai/context/parallel_context.py:521 set_device
                    INFO     colossalai - colossalai - INFO: process rank 0 is bound to device 0
[02/21/23 20:04:35] INFO     colossalai - colossalai - INFO: /global/scratch/users/skyungyong/Software/anaconda3/envs/fastfold/lib/python3.8/site-packages/colossalai/context/parallel_context.py:557 set_seed
                    INFO     colossalai - colossalai - INFO: initialized seed on rank 0, numpy: 1024, python random: 1024, ParallelMode.DATA: 1024, ParallelMode.TENSOR: 1024,the default parallel seed is ParallelMode.DATA.
                    INFO     colossalai - colossalai - INFO: /global/scratch/users/skyungyong/Software/anaconda3/envs/fastfold/lib/python3.8/site-packages/colossalai/initialize.py:116 launch
                    INFO     colossalai - colossalai - INFO: Distributed environment is initialized, data parallel size: 1, pipeline parallel size: 1, tensor parallel size: 1
Inference time:<PHONE_NUMBER>6391513

These are the some of the runs that produced error messages
python /global/scratch/users/skyungyong/Software/FastFold/inference.py --output_dir ./ --model_preset multimer --use_precomputed_alignments Alignments --enable_workflow --inplace --param_path /global/scratch/users/skyungyong/Software/FastFold/data/params/params_model_1_multimer_v3.npz --model_name model_1_multimer AT1G23170-AT1G23170.fasta /global/scratch/users/skyungyong/Software/alphafold-multimer-v2.2.2-080922/Database/pdb_mmcif/mmcif_files/
WARNING:root:Triton is not available, fallback to old kernel.
WARNING:root:Triton is not available, fallback to old kernel.
WARNING:root:Triton is not available, fallback to old kernel.
running in multimer mode...
WARNING:root:Triton is not available, fallback to old kernel.
WARNING:root:Triton is not available, fallback to old kernel.
WARNING:root:Triton is not available, fallback to old kernel.
[02/21/23 20:16:03] INFO     colossalai - colossalai - INFO: /global/scratch/users/skyungyong/Software/anaconda3/envs/fastfold/lib/python3.8/site-packages/colossalai/context/parallel_context.py:521 set_device
                    INFO     colossalai - colossalai - INFO: process rank 0 is bound to device 0
[02/21/23 20:16:12] INFO     colossalai - colossalai - INFO: /global/scratch/users/skyungyong/Software/anaconda3/envs/fastfold/lib/python3.8/site-packages/colossalai/context/parallel_context.py:557 set_seed
                    INFO     colossalai - colossalai - INFO: initialized seed on rank 0, numpy: 1024, python random: 1024, ParallelMode.DATA: 1024, ParallelMode.TENSOR: 1024,the default parallel seed is ParallelMode.DATA.
                    INFO     colossalai - colossalai - INFO: /global/scratch/users/skyungyong/Software/anaconda3/envs/fastfold/lib/python3.8/site-packages/colossalai/initialize.py:116 launch
                    INFO     colossalai - colossalai - INFO: Distributed environment is initialized, data parallel size: 1, pipeline parallel size: 1, tensor parallel size: 1
Traceback (most recent call last):
  File "/global/scratch/users/skyungyong/Software/FastFold/inference.py", line 548, in <module>
    main(args)
  File "/global/scratch/users/skyungyong/Software/FastFold/inference.py", line 164, in main
    inference_multimer_model(args)
  File "/global/scratch/users/skyungyong/Software/FastFold/inference.py", line 293, in inference_multimer_model
    torch.multiprocessing.spawn(inference_model, nprocs=args.gpus, args=(args.gpus, result_q, batch, args))
  File "/global/scratch/users/skyungyong/Software/anaconda3/envs/fastfold/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 240, in spawn
    return start_processes(fn, args, nprocs, join, daemon, start_method='spawn')
  File "/global/scratch/users/skyungyong/Software/anaconda3/envs/fastfold/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 198, in start_processes
    while not context.join():
  File "/global/scratch/users/skyungyong/Software/anaconda3/envs/fastfold/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 160, in join
    raise ProcessRaisedException(msg, error_index, failed_process.pid)
torch.multiprocessing.spawn.ProcessRaisedException:

-- Process 0 terminated with the following error:
Traceback (most recent call last):
  File "/global/scratch/users/skyungyong/Software/anaconda3/envs/fastfold/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 69, in _wrap
    fn(i, *args)
  File "/global/scratch/users/skyungyong/Software/FastFold/inference.py", line 151, in inference_model
    out = model(batch)
  File "/global/scratch/users/skyungyong/Software/anaconda3/envs/fastfold/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/global/scratch/users/skyungyong/Software/FastFold/fastfold/model/hub/alphafold.py", line 522, in forward
    outputs, m_1_prev, z_prev, x_prev = self.iteration(
  File "/global/scratch/users/skyungyong/Software/FastFold/fastfold/model/hub/alphafold.py", line 270, in iteration
    template_embeds = self.template_embedder(
  File "/global/scratch/users/skyungyong/Software/anaconda3/envs/fastfold/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/global/scratch/users/skyungyong/Software/FastFold/fastfold/model/fastnn/embedders_multimer.py", line 368, in forward
    self.template_single_embedder(
  File "/global/scratch/users/skyungyong/Software/anaconda3/envs/fastfold/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/global/scratch/users/skyungyong/Software/FastFold/fastfold/model/fastnn/embedders_multimer.py", line 238, in forward
    all_atom_multimer.compute_chi_angles(
  File "/global/scratch/users/skyungyong/Software/FastFold/fastfold/utils/all_atom_multimer.py", line 441, in compute_chi_angles
    chi_angle_atoms_mask = torch.prod(chi_angle_atoms_mask, dim=-1)
RuntimeError: CUDA driver error: invalid argument

python /global/scratch/users/skyungyong/Software/FastFold/inference.py --output_dir ./ --model_preset multimer --use_precomputed_alignments Alignments --enable_workflow --inplace --param_path /global/scratch/users/skyungyong/Software/FastFold/data/params/params_model_1_multimer_v3.npz --model_name model_1_multimer AT1G13220-AT1G13220.fasta /global/scratch/users/skyungyong/Software/alphafold-multimer-v2.2.2-080922/Database/pdb_mmcif/mmcif_files/
WARNING:root:Triton is not available, fallback to old kernel.
WARNING:root:Triton is not available, fallback to old kernel.
WARNING:root:Triton is not available, fallback to old kernel.
running in multimer mode...
Traceback (most recent call last):
  File "/global/scratch/users/skyungyong/Software/FastFold/fastfold/data/templates.py", line 859, in _process_single_hit
    features, realign_warning = _extract_template_features(
  File "/global/scratch/users/skyungyong/Software/FastFold/fastfold/data/templates.py", line 651, in _extract_template_features
    raise TemplateAtomMaskAllZerosError(
fastfold.data.templates.TemplateAtomMaskAllZerosError: Template all atom mask was all zeros: 6zmi_CE. Residue range: 4-304

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/global/scratch/users/skyungyong/Software/FastFold/inference.py", line 548, in <module>
    main(args)
  File "/global/scratch/users/skyungyong/Software/FastFold/inference.py", line 164, in main
    inference_multimer_model(args)
  File "/global/scratch/users/skyungyong/Software/FastFold/inference.py", line 281, in inference_multimer_model
    feature_dict = data_processor.process_fasta(
  File "/global/scratch/users/skyungyong/Software/FastFold/fastfold/data/data_pipeline.py", line 1165, in process_fasta
    chain_features = self._process_single_chain(
  File "/global/scratch/users/skyungyong/Software/FastFold/fastfold/data/data_pipeline.py", line 1114, in _process_single_chain
    chain_features = self._monomer_data_pipeline.process_fasta(
  File "/global/scratch/users/skyungyong/Software/FastFold/fastfold/data/data_pipeline.py", line 942, in process_fasta
    template_features = make_template_features(
  File "/global/scratch/users/skyungyong/Software/FastFold/fastfold/data/data_pipeline.py", line 76, in make_template_features
    templates_result = template_featurizer.get_templates(
  File "/global/scratch/users/skyungyong/Software/FastFold/fastfold/data/templates.py", line 1166, in get_templates
    result = _process_single_hit(
  File "/global/scratch/users/skyungyong/Software/FastFold/fastfold/data/templates.py", line 888, in _process_single_hit
    "%s_%s (sum_probs: %.2f, rank: %d): feature extracting errors: "
TypeError: must be real number, not NoneType

Will these be due to problems associated with the homologous templates themselves, or would there be a fix for this?
Thank you!

The last problem has been solved. See https://github.com/hpcaitech/FastFold/issues/144
You can use the latest code to solve it.

I believe the first error was due to cuda incompatibility, and #114 solved the second issue!


No autocompletion for object names with spaces.

System information:

Operating system (distribution) and version
Linux Mint
DBeaver version
The last
Additional extensions
No

Connection specification:

Database name and version
Postgres 13 + PostGIS (it seems, this issue doesn't depends on DB)
Driver name
standard
Do you use tunnels or proxies (SSH, SOCKS, etc)?
No

Describe the problem you're observing:
No autocompletion for schema names with space.

A source of information for this bug is https://github.com/dbeaver/dbeaver/issues/12330#issuecomment-835243745
Steps to reproduce, if exist:

Create a PostGIS schema with space in name
Ensure global autocompletion is on
Try to begin a name of object in a query

Duplicat


Extension not working after dragging

Im facing following issue while working with extension. It has  imported but not getting displayed the moment i drag in app .
Given console  is nothing but my browser screenshot.

Hi Smandar - I am not activly maintaining this extension as it has been integrated as a bundled extension into qlik sense. You can either download the new June 2019 release to use it or download it from the qlik-oss github here: https://github.com/qlik-oss/qwik-trellis/releases/download/0.25.0/qlik-trellis-container_0.25.0.zip


While trying restoring data, I get an "Error on Restore/Object Object"

Hello,
I've some backups who are ok :)
After, in the ui I decide to try an restoration : I go to Catalog/Folder/Host/Date.
There, with Right click and so a popup Restore button appear, and I click on It
In the new windows I choose my destination host and folder. So I click on Restore.
So, a red popup appear with write on it "Error on Restore/Object Object"
In the dockers logs there is this : " WARNING  django.request Bad Request: /api/v1/restore/"
In the API documentation there is nothing about restoration.
Thanks a lot !
(Through the CLI I suppose that I'm able to restore no matter :) )

Hello,
The Restore feature depend on the CyBorgBackup Version. Which version did you have installed ?
Regards

Hello,
I'm using the docker version "latest" (pulled this week). I'm using the docker-compose version from readthedocs (https://cyborgbackup.readthedocs.io/en/latest/user/install.html#docker-install).
So the ui is "develop" but all other one are "latest" tag.
Thanks a lot :)
PS: I've try to replace all latest tag by developp, but, it wasn't a good idea :)


⚠ ClamAV has degraded performance

In f713ab0, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 350 ms

Resolved: ClamAV performance has improved in 6bb25a6.


About Training Speed

Hi, I try to reproduce the result of Latte-XL/2 on ffs dataset, but through my observation, the training speed on 8 A100 is quite slow, in comparison with the max_step=100w;
I used exactly the config in the repo, and It takes 1.5 day to generate 4w out of 100w step.
So I wonder
(1) is the provided checkpoint exactly 100w step checkpoint, or is it just a high enough threshold?
(2) Your training speed, how long does it take you to have a good result on ffs
Thank you!

Hi, I try to reproduce the result of Latte-XL/2 on ffs dataset, but through my observation, the training speed on 8 A100 is quite slow, in comparison with the max_step=100w;
I used exactly the config in the repo, and It takes 1.5 day to generate 4w out of 100w step.
So I wonder
(1) is the provided checkpoint exactly 100w step checkpoint, or is it just a high enough threshold?
(2) Your training speed, how long does it take you to have a good result on ffs
Thank you!

Hi, thanks for your interest.

it is just a high threshold.
in my experience, two to three days (8 A100s) will yield acceptable results on FFS.

Hi, thanks for your great work! May I ask how many iterations would it cost to reproduce the result on UCF101.

Hi, thanks for your great work! May I ask how many iterations would it cost to reproduce the result on UCF101.

Hi, thanks for your great work! May I ask how many iterations would it cost to reproduce the result on UCF101.

Hi, thanks for your interest. After several training resumes, I'm not sure how many steps I need to take to achieve good results. Perhaps training to 150k can achieve acceptable results.

Hi, thanks for your great work! May I ask how many iterations would it cost to reproduce the result on UCF101.

Hi, thanks for your interest. After several training resumes, I'm not sure how many steps I need to take to achieve good results. Perhaps training to 150k can achieve acceptable results.

Thanks your reply, is the resume operation due to the loss exploding or vanishing?

Thanks your reply, is the resume operation due to the loss exploding or vanishing?

No, I didn't experience any issues with loss exploding or vanishing. Training is stable.


IRC and matrix chat room for drupal-vm

Issue Type

Documentation Report

Summary
I just created an IRC channel on freenode: #drupal-vm
and bridged it with a Matrix server: https://riot.im/app/#/room/#drupal-vm:matrix.org
On the last link you can go offline without missing messages, all messages are kept on the matrix server and it keeps track of what messages you received. A GNU screen alternative when using IRC. ;)

Looks great to me! We had set up a Gitter.im (https://gitter.im/drupal-vm), but nobody ever went there... plus I hated having another resource-hungry trendy javascriptey chat thing open (I already have HipChat and Slack most of the day...).
So having an IRC room means I can add it to LimeChat and leave it running all day, using like 200 KB of RAM instead of like 150 MB :P
We should probably document this by adding a badge for the IRC room (maybe linked to an online UI?) at the top of the README.

Merged.


Add links

Add related links

Updated.
Is it better to put link on title for Chainer RL/CN/MN/UI?

I imagined something like [ChainerRL](https://github.com/chainer/chainerrl) as it is more compact. But current code is also OK as it is a problem of tastes.

Then, I would like to use this format for now.
We can consider updating it again any time.

LGTM


FactoryGirl factory not generated, marked as error in output

Environment

Ruby 2.3.3p222
Rails 5.0.6
Devise 4.3.0

Current behavior
Devise generate fails to generate a factory for FactoryGirl. This is likely due to the recent renaming of the package to FactoryBot. See https://github.com/thoughtbot/factory_bot/blob/master/NAME.md#project-naming-history.
$ rails generate devise CustomerUser                                                                                [11:09:48]
      invoke  active_record
      create    db/migrate/20171127103651_devise_create_customer_users.rb
      create    app/models/application_record.rb
      create    app/models/customer_user.rb
      invoke    rspec
      create      spec/models/customer_user_spec.rb
      error      factory_girl [not found]       # <----------------------
      insert    app/models/customer_user.rb
       route  devise_for :customer_users

Expected behavior
To generate a factory with factory_bot, which is used in this said project.

Hi @febeling. I tried to reproduce the error but I couldn't. I think the Devise does not have any reference to FactoryBot/FactoryGirl, strange this error 🤔 . Anyway, you can see my output below:

Could you send us an example to reproduce the error?

@feliperenan - I found an outdated generator configuration in config/application.rb, which has been the culprit apparently. Sorry for the noise, and thanks for your quick response anyway!

For future people searching for this, this is the outdated config that can cause this error:
config.generators do |generate|
   generate.fixture_replacement :factory_girl, dir: "spec/factories"
end

Post script : change old "factory_girl" to the new "factory_bot" (assuming you upgraded) and it all works

This issue can arise even when you are using "factory_bot" with rails, so to solve it use factory_bot_rails gem


Fix a bug with MutliRoleTokenAuth and chained auth

Motivation
If a user has configured chained authentication with
MultiRolesTokenAuthorizationProvider, it is possible that a token
could be passed that is not a JWT.
Modifications
In this case, we just want to return an empty list of roles and let the
default role pass through
Verifying this change

[X] Make sure that the change passes the CI checks.

This change added tests and can be verified as follows:

Adds a simple test for the failing case of a token that is not a JWT to ensure it doesn't fail

Does this pull request potentially affect one of the following parts:
If yes was chosen, please highlight the changes
NO to all

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API: (yes / no)
The schema: (yes / no / don't know)
The default values of configurations: (yes / no)
The wire protocol: (yes / no)
The rest endpoints: (yes / no)
The admin cli options: (yes / no)
Anything that affects deployment: (yes / no / don't know)

Documentation
Check the box below and label this PR (if you have committer privilege).
Need to update docs?

[ ] doc-required
(If you need help on updating docs, create a doc issue)

[X] no-need-doc

Minor bug fix

[ ] doc
(If this PR contains doc changes)

Closing this as #13477 fixes it instead

Removing release label and milestone since the PR is closed. Please re-add if we need to open the PR.


Phishing campaigns will collect and process events for 30 days. Results may not be available for up to 30 days.

Opened a ticket with Microsoft about reports not showing accurate data. Their response was that phishing campaigns will collect and process events for 30 days.  You will need to wait 30 days for results. The full set of data won't be available until 30 days are up. Please clarify your instruction to reflect this.

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

ID: 9fbdcbd5-7bd2-6b55-b72c-cbedfdea776c
Version Independent ID: 1e6198f8-6ef1-6227-c9e8-f31944a5d1db
Content: Attack Simulator in ATP - Office 365
Content Source: microsoft-365/security/office-365-security/attack-simulator.md
Service: o365-seccomp
GitHub Login: @chrisda
Microsoft Alias: chrisda

Any update on this? We are dead in the water until we can get a resolution.

Exactly the same as #2117 , Closing it here.Thanks


Typescript support

Hi!
Wondering if there's a way to get typescript support for the custom commands?
I'm savvy enough to get it working with Cypress but not enough to register the information, if some one can point me in the right direction I'll try and add something to the docs or the repo about getting it working.
Thanks!

This is close as I could get but Im not sure if its correct :(
declare global {
    namespace Cypress {
        interface Cypress {
            Laravel: {
                routes: {}
                currentUser: any
                route: (name: string, parameters?: any) => any;
            }
        }
        interface Chainable {
            login(attributes: Object): Chainable<Element>
            logout(): Chainable<Response<any>>
            csrfToken(): Chainable<Element>
            refreshRoutes(): Chainable<Element>
            create(model: string, times: Number, attributes: Object, relations: any): Chainable<Element>
            refreshDatabase(options: Object): Chainable<Response<any>>
            seed(seederClass: string): Chainable<Response<any>>
            artisan(value: string, parameters: Object, options?: any): Chainable<Response<any>>
            php(command: string): Chainable<Element>
            assertRedirect(path: string): Chainable<Element>
        }
    }
}


Status of this project?

:wave: Hi @devsnek. I'm curious what the status of this project is – I've been poking around improving the existing node REPL a bit, and came across this repo. Is there a plan to eventually move it into mainline node? If yes, do you have an idea of the features that are missing/work that remains to be done in your opinion before heading in that direction? And, how much latitude do you feel there is to break the existing REPLServer interface?

@dputtick were you able to answer all your questions on this? Are you still interested in getting involved with Node.js REPL work?

@guybedford I did get them answered, but working on the existing repl code without feeling comfortable making breaking changes started to feel like kind of a slog. I think I decided it might be a better project for somebody who's already an established node contributor. I am still somewhat interested, but I write more Ruby than js at work at the moment, so I'm not as aware of my pain points as I was when I made this issue.


Suggestion: guess types for function params when completion is applied

It should be cool if tsserver could provide a new command guesstypes to give the capability to guess parameter types when completion is applied
In other word, I would like to support the same feature that I have done with tern
For instance if you open completion for document and select addEventListener :

When you apply completion, I would like call a tsserver command 'guesstypes' to retrieve variables, functions for each function parameters. Here a screenshot which shows a list of variable with string type for the addEventListener type argument :

If I understand correctly, this is auto-select of completion item based on contextual type, correct? for instance:
enum E {
    value
}

var x: E;

x = | /// completion here should auto select `E`

This should boil down to setting the Preselect property on the completion item (see Roslyn's API definition http://source.roslyn.io/#Microsoft.CodeAnalysis.Features/Completion/CompletionItemRules.cs,48). the logic would be to use the contextual type to select the most appropriate entry.


Streaming colour doesnt appear when person just went live

as the picture shows, my friend is live but there is no radial for it, he had gone live about 2-3mins before i got the pic, usually after a while or a discord restart it shows up. im not sure if this is a radial thing or a discord thing, if its a discord thing ill close the issue

Sorry for the late reply, but seems to be fine?

Didn't mean to close it.

it happens when they just go live, usually fixes itself after about 5-10 minutes

on a side note, there is also this, idk if its a discord thing or not

and if anyone on my friends list goes live any time soon I'll see if its still a thing, it might have just been my discord playing up not too sure, will update when i can

@Gibbu as you can see my friend just went live and its not showing that hes live yet

even now 15minutes later its still not updated

and its still not updated... seems like it only updates when i refresh the friends list by going to a guild and back again

i just dont feel like its updating like it should, as i said before im not sure if thats a native discord problem or a bd thing or a radial status thing


Sass Number Precision with node-sass (libsass)

I'm using node-sass and configured precision to 10. Example of compiled sass:
.col-xs-1 {
  width: 8.3333333333%;
}

However when comparing this to the standard bootstrap.css it has less precision (8):
.col-xs-1 {
  width: 8.33333333%;
}

Should I just use 8 as the precision with node-sass?

Yes, 8 should be OK. Good catch. We erred on the side of caution here, but since it's not causing issues for the upstream, bootstrap-sass should specify 8 as well.


Parse alter table drop primary key

Issue
resolves #591

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

8 of 8 (100.0%)  changed or added relevant lines in 3 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.009%) to 85.957%

Files with Coverage Reduction
New Missed Lines
%

src/ast/ddl.rs
1
82.29%

Totals

Change from base Build<PHONE_NUMBER>:
0.009%

Covered Lines:
10908

Relevant Lines:
12690

💛  - Coveralls

@ding-young  do you have time to implement @AugustoFKL 's suggestion? Otherwise this PR  looks good to me

Yes, I'll work on it soon.

@AugustoFKL Thank you for feedback. I changed the code 😃

Thanks @ding-young  and @AugustoFKL !


Legality of Loan

I have some questions/concerns regarding the loan:

Who forces the smart contract if either party breaches the contract?
What if the stable coin we use closes down? How do I repay?
What if the stable coin I use is no longer 1:1 ratio, lets say it changes to 1 coin for 1000 dollar or the other way around? How to mitigate or how to make sure it's fair for both parties in case changes happen
Is it possible that one of the lenders force me to early repay the full amount I owe them before the loan due?
To what extent I have to share my personal data? What will they know about me and how can I be sure it's safe and not misused

This are very important questions.
Some of the questions can be delayed to be answered down the line, as we approach actual product design, since this is just an MVP.

Who forces the smart contract if either party breaches the contract?

Mostly, this has to be handled offchain, probably making an agreement with Bloom to disable the defaulting party's account or something along those lines.

What if the stable coin we use closes down? How do I repay?

This odds of this can be minimized by our multi-coin payment model, where you can set more than one paying contract. Although the chance still exists of anything going wrong. In which case, we can have a function to change the payment token address, which is restricted by some level of consensus: say both borrower and at least 75% of lenders approve change.

What if the stable coin I use is no longer 1:1 ratio, lets say it changes to 1 coin for 1000 dollar or the other way around? How to mitigate or how to make sure it's fair for both parties in case changes happen

This is handled by the above scenario

Is it possible that one of the lenders force me to early repay the full amount I owe them before the loan due?

For this Iteration, it is not possible, and this should be discussed further to consider if it is at all economically sensible.

To what extent I have to share my personal data? What will they know about me and how can I be sure it's safe and not misused

We need to discuss further on this, but looking at security, securities and the present practices in the world, the borrower can not have an secrets from the lenders, concerning the Loan, or they are liable.

Hope I was able to answer the questions.
@onggunhao @tspoff  Do you have any thoughts on this?

Thanks for the information @adibas03 . I will ask a lot more questions since this is a new thing I'm not familiar with, so please bear with me :)
I have follow up questions on this

What if the stable coin I use is no longer 1:1 ratio, lets say it changes to 1 coin for 1000 dollar or the other way around? How to mitigate or how to make sure it's fair for both parties in case changes happen

This is handled by the above scenario

What if it doesn't reach 75% consensus for a period of time that it passes monthly due?
What if I can't repay because the stablecoin is not 1:1 anymore to the point where my total loan and monthly repayment are way above my ability to pay?

Thanks!

What if it doesn't reach 75% consensus for a period of time that it passes monthly due?

The 75% is actually an arbitrary value, it would be tinkered with to get a sweet spot. To answer the core question which is what happens if there is no consensus to alter the address.
Sincerely, I can't say that I know, but these are the type of things we learn along the line.

What if I can't repay because any stablecoin is not 1:1 anymore to the point where my total loan and monthly repayment are way beyond my ability to pay?

So, the system will be built to penalize bad behavior (probably later versions). So, although we do not want to repeat the failing model of loan interests in the real world, which make it impossible to repay debts, due to the interest once one or a few are missed, we still need to dis-incentivize bad actors. Now, how we are going to achieve this, also falls under what we find out as we build out the product.

Glad to be of help

My 2 cents (also spoke with Ines in person)

For stablecoins not being 1:1 means a failure of a particular stablecoin (e.g. Tether trading at 0.98 : 1 USD for now). In most cases, lenders are the ones that have highest risk

For changing of token address - I wonder how we will continue to keep track of units (i.e. you just need to send 700 units of whatever ERC20 is in the future). This seems dangerous to write into a smart contract.

For example, a cartel of lenders would be incentivized to switch the payment token to a tokenized BTC, which is definitely not 1 USD.

For MVP, I think we should optimize for simplicity. Having 2-3 stablecoins (USDC, Paxos, Dai) written into a 10 year loan agreement might be a compromise - two relatively trusted and well funded operations, and a decentralized Dai.

I'm keeping this issue open as I think we need to think through:

[ ] What warnings should we put up about using Enable? (i.e. similar to Uniswap, i.e. tell them that they are using beta software)
[ ] What disclaimers should we put about the loan parameters? We should be upfront and honest and tell them that they do not have any of the typical legal recourses that debt contracts have
[ ] Cryptocurrencies are regulated as commodities in Indonesia. Are there any laws regarding the loan of cryptocurrencies? Does Ines even count as an Indonesian resident for the purposes of this project?
[ ] Which jurisdiction is this governed by? Magic internet money?

Some inspirations from Gnosis' Wallet:

Archiving thread


[Mutli-Actions] Browser action

Behind flag
Headless browsing of a specified URL

@philipperolet I was about to take this one and learned that you are on it, so I am assigning it to you.
Please LMK if that's wrong.

@philipperolet this is wrong, we got confused with the WebSearch action.

Assigning it to me.

As per IRL discussion with @lasryaric who's eng-runner this week, I'm taking it over, we've discussed the handover

Issue is actually better understood as framing; framing has been ~done, closing


Add rotation support for Quad and Sprite

Added support for rotating individual Quads and Sprites as mentioned in #1. As a side effect, this ended up moving the anchor point for positions to the center of the Sprite/Quad since the Sprites needed to be centered on the origin before they could be rotated. In my opinion, this behavior is often preferable anyway, but I realize it's subjective. I can try to figure out a way to apply the rotation without moving changing the way sprite positioning works if desired, but I'm far from an expert on transformation matrices.
#1 mentioned concerns that adding rotation support would negatively impact performance. I did not add any benchmarks, but anecdotally testing with the particles example did not show any significant difference with or without the change.

Just added a few more commits that move the anchor point back to the top left corner and revert most of the changes I made to the UI renderers as a consequence of the anchor point moving.

I would like to see this merged aswell. Most games use this feature.


Dev -> Main

Thanks @mattt, I know that no new ecosystems are accepted at the moment. In fact, it was a mistake and this pull request was not intended for the upstream repo. As soon as I have the feature working, I will of course open a new pull request.


Try to fix not showing stored content in the touch UI multifield for RTE and datepicker field.

If the field type is hidden, it might be Richtext or datepicker and it requires extra logic to show it in their actual text or editable field in the dialog.

Hi @schoudry, please review the code. This is trying to fix the issues #669.

Hi @schoudry, are you able to merge this pull request? Do you know when the next release is scheduled? Thanks.

@acheson0410 looks good to me - lets leave it open 2 more days just in case someone likes to review....


Twig Provider: suggestion to make strict_variables true by default

Currently in the Twig Provider an option strict_variables is set to $app['debug'] by default ( https://github.com/silexphp/Silex-Providers/blob/master/TwigServiceProvider.php#L59 ). I think a better idea would be to set it to true by default (or at least leave it with Twig's default value which I hope will be changed to true soon).
I have created an issue in a Twig repo to suggest that they change it to true too: twigphp/Twig#2537
Motivation:

make templates behave more like PHP code that reports undefined variables by default
make it easier to discover errors in templates when a developer mistyped of forgot to specify a variable. The earlier the defect is discovered, the cheaper it is to fix.

I don't think that there should be any difference here (in handling undefined variables) in production and dev environment. It only makes discovering errors more difficult, it can cause user to see some invalid page instead of error page. Or even worse, search engine can index that invalid page (and if an exception were thrown, it would see 503 page instead).
c2 Wiki recommends to discover errors as early as possible: http://wiki.c2.com/?DiscoverDefectsEarly
Therefore I suggest:

do not use debug option as a default value for strict_variables
change the default value to true

If this change is approved I can make a pull request and update the docs if necessary.

By default, undefined variables in PHP will generate a notice, allowing script execution to continue. Similarly Twig allows templates to be rendered even when they reference undefined template variables. I think it's more appropriate to set this value in your config explicitly if you don't want to rely on $app['debug'], and write functional tests that inspect the rendered pages, making sure they contain the content you expect.

I'm closing this issue as Symfony has just adopted the same default value.


Add console.timeLog function

Provide timeLog to be compatible with node.
Summary
console.timeLog was added in node v10.7.0.  Jest gets errors when the function is used.  A stackoverflow question was never explained.
Test plan
Tests were added to the files in the test directory.  A test run was successful.  These are basic jest tests.

Rebased and merged CHANGELOG.md.  Should not have caused macOS test to fail after previously running okay.


fixed bug where dot notation doesn't work properly

This is an attempt at addressing issue #71
The bug is caused by attempting to add a new key to a merged object, which is not the same as the field's actual underlying value.

This looks good, thanks for the merge request 👍

hi i made some modifications to my pr based on your comments :)

Looking good. We'll try to improve the backslash substitution problem later, your solution is good for now 👍


ipfs-fetch: will a general method resource-fetch be implemented in the future?

A more general method resource-fetch means fetching the resource in different protocols(http/https/ipfs/ipns).
It is useful because in most cases the application doesn't care about what protocol is used by the resource to locate and the application just wants to fetch the resource behind that URL.
Basically, what came to my mind is just a single wrap on already existing code. The logic is similar to this: https://github.com/snapshot-labs/snapshot.js/blob/v0.4.34/src/utils.ts#L127. Definitely, applications themselves could do that wrapping code as well but since I feel this demanding is so common that I am wondering if a general resource-fetch be implemented in this repo in the future?

Sounds great! How about using generalFetch or commonFetch to name it?


Update to the Danish translation

I have added some missing translations, changed some old ones to more idiomatic language, and corrected a few mistakes in spelling.

This looks great!
Did you use the localization tool to do this? I ask only because I think you hit a bug in the tool (my fault), but it's easily fixable.
I will get this integreated. Thanks for the contribution!

Thank you!
Yes, I did use the localization tool. Did it remove some lines from the file? It looked something like that, but I figured I had better upload the file as made by the tool.

Excellent work, mange tak! Thanks again for contributing.
There's a problematic feature blocking the current release, but I will try to get a new version published to the Chrome Web Store soon.


What about Microsoft.VisualStudio.Web.CodeGeneration.Design

My "Microsoft.VisualStudio.Web.CodeGeneration.Design" has a version of 2.1.1
Nothing in this document mentions this, so I'm going with this:
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.2.0" />

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

ID: 46a10a5c-bacc-1bcf-a7ae-499715e1bfdd
Version Independent ID: 1585163b-b1d7-eeb8-ebc6-adfc2730f393
Content: Migrate from ASP.NET Core 2.1 to 2.2
Content Source: aspnetcore/migration/21-to-22.md
Product: aspnet-core
GitHub Login: @scottaddie
Microsoft Alias: scaddie

YOu need 2.2


test: run Open Search sim as root for Code Build

Description of changes
https://docs.aws.amazon.com/codebuild/latest/userguide/troubleshooting.html#troubleshooting-root-build-commands

Issue #, if available

Description of how you validated changes
Checklist

[ ] PR description included
[ ] yarn test passes
[ ] Tests are changed or added
[ ] Relevant documentation is changed or added (and PR referenced)
[ ] New AWS SDK calls or CloudFormation actions have been added to relevant test and service IAM policies
[ ] Pull request labels are added

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This change did not have the desired effect.


Thoughts on Transforming Center Cluster Design！

The current design idea of dao-cloud-center high availability is decentralized, that is, each node is connected to each other with a long connection, maintained with heartbeats to maintain balance, and each node synchronizes data with each other! btw, I think this solution is not very good, or we should rewrite it using the raft protocol, or are there any better solution ideas?😁

I also think Raft or Paxos might be better!


first pass at canu architecture changes for mug

Summary and Scope

[ ] I have added new tests to cover the new code
[ ] If adding a new file, I have updated pyinstaller.py
[ ] I have added entries in CHANGELOG.md for the changes in this PR

Issues and Related PRs

Testing

@coreyjjohnson I like this as a first pass, but would like to try to avoid having internal/specific systems inside of the package that is sent to everyone.  For the time being I'd like you to maintain this branch against main.  @lukebates123 and I have discussed a more detailed override option which needs another PR.  Once this is in your PR can be refactored.
The idea that is being worked on another branch is as follows:

Allow a an option of -a custom on the cli.  This would replace all the "mug-isms" in your PR.
If CANU sees the custom flag then it will look for a custom directory local to the filesystem.
Inside the custom directory will be a bundle of everything you changed in your PR:  schema, hardware yaml, architecture yaml, templates.
The custom directory could then be stored in another git repo, etc... and the Mug system overrides would never be baked into CANU proper.

Work to get this done:

Schema, hardware and architecture file locations are hard coded at the moment.
Detection of the custom directory needs to be worked out.  Would be nice if a URL (git:// or else) could be used)

Barriers:

there is a massive SLS data structure inside the generate config code that needs to match up with templates etc.. This needs to be refactored in a big way.  Today this might mean that the hw/arch data never matches up with required template data (VLANs and IPs) and the overrides code just breaks.

Too much info I'm sure.  I do like this code.  Please maintain this branch for the next few months.


Commented logic in main

Sorry if its a silly question as I'm just getting my hand with Hugo, but why is this part of logic commented out ?
How does the following logic can know about searchData
https://github.com/imfing/hextra/blob/f5e42839611e6c1b02a50512f95e8d2f4dad642b/assets/js/flexsearch.js#L14-L23

It's not quite intuitive, but this file is a template.
When building the site, the commented lines will be executed by the Hugo template engine. Thus the search-data.json will be produced.


the list of BEPs should be updated to reflect the open/closed state

Going over all BEPs, I noticed in some of them (i.e. in the google docs) that they have been merged with another BEP (mainly with BEP003) and therefore not active any more.
Once #77 is merged, I propose we update the list of BEPs and move the ones that are not actively being worked on to the bottom of the list (along with MEG, EEG, etc)

note that I had taken a stab at this in https://github.com/bids-standard/bids-specification/pull/240
I don't remember from the top of my head why this was reverted later on. I'll have to check.

@franklin-feingold has this been resolved (for now)?

I think so with https://github.com/bids-standard/bids-website/pull/88 being merged in - closing this


fix: toaster class

@xiaoluoboding
Apologize for something that slipped out of my hand :pray:
in shadcn-vue we need this

Can you also add some documents with the Vue Teleport component?

@xiaoluoboding
this commit is for shadcn-vue CLI, detypes error while adding vue-sonner component
detypes is a tool that removes typescript codes from .vue and .ts files
To resolve detypes error I had to merge all those d.ts files generated with vue-tsc to one file (vue-sonner.d.ts) with @microsoft/api-extractor