Exporting and merging fgp from running webapi(/graphql?fgp)

Product
Hot Chocolate
Is your feature request related to a problem?
I have a distributed graphql service that is combined via stitching. When the gateway is launched it has a list of urls with corresponding graphql services. The gateway downloads schemas, apply stitching and exposes them as a single schema.
When one of the graphql services have changed. The gateway triggered by CI to download new schemas and the whole process starts again.
I would like to replace stitching with fusion but, at the moment, there is no easy way to replicate workflow described above.
The solution you'd like
Ideally, it would be nice to have a way on gateway level to fetch multiple graphql schemas and merge them at runtime. It can be raw graphql schemas fetched from /graphql?sdl or full graphql packages /graphql?fgp.

I investigated the CLI for subgrapph composing and managed to replicate my workflow. The FusionGraphConfigurationToSchemaRewriter was internal class so I copy-pasted it. Everything else looks good as for prototype.
Here is the resulted for gateway:
using System.Reactive.Subjects;
using HotChocolate.Fusion;
using HotChocolate.Fusion.Composition;
using HotChocolate.Language;
using HotChocolate.Language.Visitors;
using HotChocolate.Skimmed.Serialization;

var builder = WebApplication.CreateBuilder(args);
var services = builder.Services;

var gatewaySubject = new ReplaySubject<GatewayConfiguration>();
var systemUri = new Uri("http://localhost:10100/graphql");
var searchUri = new Uri("http://localhost:10200/graphql");

services.AddHttpClient("System",
    o => o.BaseAddress = systemUri);

services.AddHttpClient("Search",
    o => o.BaseAddress = searchUri);

services.AddHttpClient();

services.AddFusionGatewayServer()
    .RegisterGatewayConfiguration((o) => gatewaySubject);

var app = builder.Build();

await Reload();

app.MapGet("/reload", async () =>
{
    var schemaDoc = await Reload();
    return schemaDoc.ToString();
});
app.MapGraphQL();

app.RunWithGraphQLCommands(args);

async Task<DocumentNode> Reload()
{
    var httpClientFactory = app.Services.GetRequiredService<IHttpClientFactory>();
    var systemClient = httpClientFactory.CreateClient("System");
    var searchClient = httpClientFactory.CreateClient("Search");

    var systemSchema = await systemClient.GetStringAsync("?sdl");
    var searchSchema = await searchClient.GetStringAsync("?sdl");

    var systemSubgraph = new SubgraphConfiguration(
        "System",
        systemSchema,
        string.Empty,
        new HttpClientConfiguration(systemUri),
        null);

    var searchSubgraph = new SubgraphConfiguration(
        "Search",
        searchSchema,
        string.Empty,
        new HttpClientConfiguration(searchUri),
        null);

    var fusionGraph = await FusionGraphComposer.ComposeAsync(new[]
    {
        systemSubgraph,
        searchSubgraph
    });

    var fusionGraphDoc = Utf8GraphQLParser.Parse(SchemaFormatter.FormatAsString(fusionGraph));
    var typeNames = FusionTypeNames.From(fusionGraphDoc);
    var rewriter = new SyntaxRewriter<FusionGraphConfigurationToSchemaRewriterContext>();
    var documentNode = (DocumentNode)rewriter.Rewrite(fusionGraphDoc, new(typeNames))!;

    var gatewayConfiguration = new GatewayConfiguration(documentNode);
    gatewaySubject.OnNext(gatewayConfiguration);
    return documentNode;
}

internal sealed class FusionGraphConfigurationToSchemaRewriterContext : ISyntaxVisitorContext
{
    public FusionGraphConfigurationToSchemaRewriterContext(FusionTypeNames typeNames)
    {
        TypeNames = typeNames;
    }

    public FusionTypeNames TypeNames { get; }
}

The whole idea is that all of this does not happen at runtime. The fusion composition is much more complex and an introduction of one field could lead to the gateway to die. The composition has rich errors for that. But this would lead to downtime of the Gateway.
The idea of Fusion is to make sure at build time that an in isolation developed GraphQL server will work 100% at runtime.
I would not rely on this internal class ... with 13.7 we almost completely rewrote the composition component.
Use BCP as your orchestrator in between the Gateway and your subgraphs and use build pipelines to ensure that everythings.

I am closing this issue as for us runtime composition is a thing of the past.

I understand your intention that compile-time validation is better than runtime validation. At the same time, taking into account how it works now:

pack multiple subgraphs via CLI
if you have real distributed services, deploy packages somewhere
if you have real distributed services, getch packages before merge
merge those packed subgraphs
if you have real distributed services, deploy the merged package somewhere
if you have real distributed services, notify the gateway that there is the new package

No one will do it manually in production. It should be a part of the CI/CD pipeline.
Once you have CI/CD you can add an integration test that will make sure that your subgraphs are compatible. As a result, at the runtime, everything would work as expected. In this situation, I think it is debatable to have subgraphs packed and stored somewhere, and so on.
You can just deploy, fetch the current subgraphs, merge them, and that's all.

Improved version for those who want to have real-time schema merging:
using System.Reactive.Subjects;
using HotChocolate.Fusion.Composition;
using HotChocolate.Language;
using HotChocolate.Skimmed.Serialization;

var builder = WebApplication.CreateBuilder(args);
var services = builder.Services;

var gatewaySubject = new ReplaySubject<GatewayConfiguration>();
var apis = new[]
{
    (Name: "System", Url: new Uri("http://localhost:10100/graphql")),
    (Name: "Search", Url: new Uri("http://localhost:10200/graphql"))
};

foreach (var api in apis)
{
    services.AddHttpClient(api.Name, o => o.BaseAddress = api.Url);
}

services.AddHttpClient();

services.AddFusionGatewayServer()
    .RegisterGatewayConfiguration(_ => gatewaySubject);

var app = builder.Build();

await Reload();

app.MapGet("/reload", async () =>
{
    var schemaDoc = await Reload();
    return schemaDoc.ToString();
});
app.MapGraphQL();

app.RunWithGraphQLCommands(args);

async Task<DocumentNode> Reload()
{
    var httpClientFactory = app.Services.GetRequiredService<IHttpClientFactory>();
    var subgraphsTask = apis.Select(async o =>
    {
        using var client = httpClientFactory.CreateClient(o.Name);
        var schema = await client.GetStringAsync("?sdl");

        var subgraph = new SubgraphConfiguration(
            o.Name,
            schema,
            string.Empty,
            new HttpClientConfiguration(o.Url),
            null);

        return subgraph;
    });

    var subgraphs = await Task.WhenAll(subgraphsTask);
    var composition = await FusionGraphComposer.ComposeAsync(subgraphs);

    var documentNode = Utf8GraphQLParser.Parse(SchemaFormatter.FormatAsString(composition));

    var gatewayConfiguration = new GatewayConfiguration(documentNode);
    gatewaySubject.OnNext(gatewayConfiguration);
    return documentNode;
}

Just be aware that this will no longer work with 13.7

Are you on our slack channel? Let's discuss fusion there if you are interested. Also, are you interested to get involved in fusion. Give me a ping on slack.chillicream.com


Allow assigning attribute values to category

Add attributes field on Category type
Update associate_attribute_values_to_instance parameters to accept site_settings
Add attributes field to CategoryInput

Linked task: SALEOR-2151

Impact

[ ] New migrations
[ ] New/Updated API fields or mutations
[ ] Deprecated API fields or mutations
[ ] Removed API types, fields, or mutations
[ ] Documentation needs to be updated

Pull Request Checklist

[ ] Privileged queries and mutations are guarded by proper permission checks
[ ] Database queries are optimized and the number of queries is constant
[ ] Database migration files are up to date
[ ] The changes are tested
[ ] GraphQL schema and type definitions are up to date
[ ] Changes are mentioned in the changelog

Task linked: SALEOR-2151 Allow assigning attribute values to categories


python39Packages.nbval fails build/test:

python39Packages.nbval fails build as: https://hydra.nixos.org/build/153067249
__________________________ test_ignore.ipynb::Cell 1 ___________________________
Notebook cell execution failed
Cell 1: Cell outputs differ

Input:
sys.stdout.write('test\n')

Traceback:
Unexpected output fields from running code: {'text/plain'}

Notify maintainers
@costrouc
Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute: python39Packages.nbval

Closing as INVALID

@trofi Still broken, why INVALID...?

From what I understood (from other issues) the issues related to regressions need to be reported as comments to the PRs that introduce regressions. And maintainers are not normally expected to deal with them. Thus most of my reports against already failing packages are not acted on.
I don't have the time to debug or fix each of them myself. Hence the INVALID (as in invalid process of getting it fixed).

Thanks for replay, I'm trying to fix this : )


irc NOPINGNICK messes up with names containing utf-8 or so

Please answer the following questions.
Which version of matterbridge are you using?
run matterbridge -version
version 0.13.1-dev
Please describe the expected behavior.
nicknames containing utf-8 or emoticons should be handled like ascii only nicknames
Λi -> <Λi>
Please describe the actual behavior.
Λi -> <Îâ   Ä±>
Any steps to reproduce the behavior?
use a nickname containing utf-8
Please add your configuration file
(be sure to exclude or anonymize private data (tokens/passwords))

[irc]
    [irc.esper]
    Server="irc.esper.net:6697"
    Nick="botname"

    UseTLS=true

    #Enable SASL (PLAIN) authentication. (freenode requires this from eg AWS hosts)
    #It uses NickServNick and NickServPassword as login and password
    #OPTIONAL (default false)
    UseSASL=true

    #If you registered your bot with a service like Nickserv on freenode.
    #Also being used when UseSASL=true
    #OPTIONAL
    NickServNick="---------"
    NickServPassword="----------"

    #Nicks you want to ignore.
    #Messages from those users will not be sent to other bridges.
    #OPTIONAL
    IgnoreNicks="cord spammer"

    #RemoteNickFormat defines how remote users appear on this bridge
    #The string "{NICK}" (case sensitive) will be replaced by the actual nick / username.
    #The string "{BRIDGE}" (case sensitive) will be replaced by the sending bridge
    #The string "{PROTOCOL}" (case sensitive) will be replaced by the protocol used by the bridge
    #The string "{NOPINGNICK}" (case sensitive) will be replaced by the actual nick / username, but with a ZWSP inside the nick, so the irc user with the same nick won't get pinged. See https://github.com/42wim/matterbridge/issues/175 for more information
    #OPTIONAL (default empty)
    RemoteNickFormat="<{NOPINGNICK}> "

    ShowJoinPart=false

[discord]
    [discord.obsidian]
    #Token to connect with Discord API
    #You can get your token by following the instructions on
    #https://github.com/reactiflux/discord-irc/wiki/Creating-a-discord-bot-&-getting-a-token
    #If you want roles/groups mentions to be shown with names instead of ID, you'll need to give your bot the "Manage Roles" permission.
    #REQUIRED
    Token="---------------------------------------"

    #REQUIRED
    Server="discord server name"

    #Disable sending of edits to other bridges
    #OPTIONAL (default false)
    EditDisable=true

    #Message to be appended to every edited message
    #OPTIONAL (default empty)
    EditSuffix=" (edited)"

    #Nicks you want to ignore.
    #Messages from those users will not be sent to other bridges.
    #OPTIONAL
    IgnoreNicks="[cord] ircspammer2"

    #Enable to show users joins/parts from other bridges
    #Only works hiding/show messages from irc and mattermost bridge for now
    #OPTIONAL (default false)
    ShowJoinPart=false

    RemoteNickFormat="<**{NICK}**>"

###################################################################
#API
###################################################################
[api]
#You can configure multiple API hooks
#In this example we use [api.local]
#REQUIRED

    [api.local]
    #Address to listen on for API
    #REQUIRED
    BindAddress="<IP_ADDRESS>:4242"

    #Bearer token used for authentication
    #curl -H "Authorization: Bearer token" http://localhost:4242/api/messages
    #OPTIONAL (no authorization if token is empty)
    Token="xxxxxxxxxxxxxxxxxx"

    #Amount of messages to keep in memory
    Buffer=1000

    #RemoteNickFormat defines how remote users appear on this bridge
    #The string "{NICK}" (case sensitive) will be replaced by the actual nick / username.
    #The string "{BRIDGE}" (case sensitive) will be replaced by the sending bridge
    #The string "{PROTOCOL}" (case sensitive) will be replaced by the protocol used by the bridge
    #OPTIONAL (default empty)
    RemoteNickFormat="{NICK}"

[[gateway]]
name="channel"
enable=true
    [[gateway.inout]]
    account="irc.esper"
    channel="#channel"

    [[gateway.inout]]
    account="discord.obsidian"
    channel="channel"

    [[gateway.inout]]
    account="api.local"
    channel="channel"

Could you build/test from master, if not fixed reopen.

it is indeed fixed for my testcases


enhancement log disk path when creating tablet

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

run buildall


FilePicker improvements.

Add missing default export.

Q
A

Bug fix?
[x]

New feature?
[ ]

New sample?
[ ]

What's in this Pull Request?
Added support for Application Extension.
Fix missing default index.

Codecov Report

Merging #370 into dev will decrease coverage by 0.13%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##              dev     #370      +/-   ##
==========================================
- Coverage   73.31%   73.18%   -0.14%
==========================================
  Files          18       18
  Lines         802      798       -4
  Branches      154      153       -1
==========================================
- Hits          588      584       -4
  Misses        164      164
  Partials       50       50

Impacted Files
Coverage Δ

src/controls/gridLayout/GridLayout.tsx
80.64% <0%> (-2.22%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3f3181a...065ce2b. Read the comment docs.

@siata13 thank you for the improvements


Plan for github lecture

Always link to Github Desktop and github help.
Some ideas:

reiterate the github free for academic link
Creating private repos and adding in private collaborators
GithubDesktop (how they could git)
How to a create a new repo, how to clone
How to push up changes,
Reverting changes
Issues and changes
Explain branches and what they are for

How to switch branches/etc. for using other peoples branches
(advanced): how to create their own branches

Common github errors and workarounds
Show how to deal with a merge conflict (use Atom)
Explain what a Pull Request is for reading them, comments, etc. and how to change to a Pull Request branch
Show: make a small PR only from the github webpage (e.g. small typos, create the PR from github).
Action: find something they want to fix in an existing project.  How to do it?

Create a Pull Request  (branch if required)
How to suggest reviewers? How to put commits up, etc.
Merge conflicts, show it.
Making comments on individual lines of code, reviewing code

gitignore
Showing the history in the GithubDesktop but also traversing the history in the commits...

A friend developed this Git Material which can be helpful for it.

Very cool.  @arnavs , great to see what other people were covering, but be careful not to take anythign directly due to copyrights.
For the most part, I think the goal here was "github desktop for dummies" (i.e., nothing in the terminal) with pointers to the "real" git materials for people who get more advanced stuff.

Setup
===========
GitHub Setup
	- Make an account
	- Student Developer Pack: https://education.github.com/pack (free Travis, private, etc.)
	- Researchers: https://help.github.com/articles/about-github-education-for-educators-and-researchers/

GitHub Desktop Setup
	- https://desktop.github.com
	- Configure with local git, etc.

GitHub 101
	- Repo: https://github.com/QuantEcon/Expectations.jl. Corresponds to an overall project
	- Commit: Individual DIFF. Represents a modular work unit, and some metadata
	- Repos as historyful objects.
	- Branches: Parallel development flows (CAVEAT)
	- Issues
	- gitignore
	- README.md, LICENSE.md

Versioning your own projects
=================================

Creating a Repo
	- De Novo (Website)
	- README, LICENSE, .gitignore
	- Cloning and Download/Open in Desktop

Making and Committing Changes
	- Opening in Atom
	- Making Changes
	- Adding Files to Commit
	- Making Commit
	- Pushing

Going Back in Time
	- WEBSITE
	- Resetting File to State
	- Discarding Changes
	- etc.

Moving Between Computers
	- Cloning Repo on New Computer
	- Pulling in Changes from Server
	- Gui Information Repo Thing

Collaborating on Projects
===============================

Adding Collaborators
	- GitHub Server

Typos
	- Straight from Website

Remote has Refs not Local

Merge Conflicts
	- What they Are
	- How to fix them Online
	- How to fix them Locally

High Level Branch

Reading Commits
	- Reviewing code / Comments
	- Emails

Issues
	- Checkboxes
	- Tags
	- Labels
	- Assigned ppl
	- Discussions

Open-Source Projects
=============================

Typo / ONLINE

---------

Fork Workflow (ADVANCED)

Pull Requests from Forks (ADVANCED)

Merging and PRs
	- Why Pull Requests?
	- Structure of a PR (reviewers, comments, edits, etc.)

Creating a PR
	- On the Website
	- Tagging Reviewers
	- Leaving comments
	- Tagging issues
	- etc.

Fixing a PR
	- Checking out Branch and Fixing

Firefighting/Bugfixing
==============================

Links to resources

Git Bash

**************
Local Julia
**************

Non-Dockerized
===================

Setup
	- Install Conda
	- Install Julia
	- Install Atom + Juno
	- Link Julia to Atom
	- Local Jupyter Notebook
		- Jupyter Lab foo
	- Normal REPL

Juno
	- Standard Layout Overview

Why Local?
	- Running Scripts
	- Working with Files
	- Version Control + Editors

Dockerized
====================

Setup
	- Install Docker
	- Pull QuantEcon Docker Image

Use
	- Using the Docker Image with Local Files
	- Using the Docker Image with Container
	- Editing Local Files in the Docker Image

NOTES
	- DROPBOX


Crashing when I try to do run match development

I get this following error each time I run match development . (match 0.3.0)
[15:23:14]: No existing profiles found, that match the certificates you have installed, creating a new one for you
[15:23:17]: Creating new provisioning profile for 'com.test.ysl1' with name 'match Development com.test.ysl1'
[15:23:20]: 🔒  Successfully encrypted certificates repo
/-------------------------------------------------------------------------------------------
 An error occured. Please enable crash reports using `fastlane enable_crash_reporting`.
 This makes resolving issues much easier and helps improve fastlane.
 The reports will be stored securely on getsentry.com.
 More information about privacy: https://github.com/fastlane/fastlane/releases/tag/1.33.3
/-------------------------------------------------------------------------------------------
/Library/Ruby/Gems/2.0.0/gems/spaceship-0.22.0/lib/spaceship/client.rb:300:in `parse_response': [!] {"responseId"=>"612597ae-99e2-44af-bf8a-c721678335ba", "resultCode"=>35, "resultString"=>"There were errors in the data supplied. Please correct and re-submit.", "userString"=>"There are no current devices on this team matching the provided device IDs.", "creationTimestamp"=>"2016-03-11T07:23:20Z", "protocolVersion"=>"QH65B2", "userLocale"=>"en_US", "requestUrl"=>"https://developer.apple.com/services-account/QH65B2/account/ios/profile/createProvisioningProfile.action", "httpCode"=>200, "validationMessages"=>[{"validationKey"=>"deviceIds", "validationUserMessage"=>"There are no current devices on this team matching the provided device IDs."}]} (Spaceship::Client::UnexpectedResponse)
	from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.22.0/lib/spaceship/portal/portal_client.rb:352:in `create_provisioning_profile!'
	from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.22.0/lib/spaceship/portal/provisioning_profile.rb:227:in `block in create!'
	from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.22.0/lib/spaceship/client.rb:195:in `with_retry'
	from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.22.0/lib/spaceship/portal/provisioning_profile.rb:226:in `create!'
	from /Library/Ruby/Gems/2.0.0/gems/sigh-1.4.0/lib/sigh/runner.rb:109:in `create_profile!'
	from /Library/Ruby/Gems/2.0.0/gems/sigh-1.4.0/lib/sigh/runner.rb:39:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/sigh-1.4.0/lib/sigh/manager.rb:7:in `start'
	from /Library/Ruby/Gems/2.0.0/gems/match-0.3.0/lib/match/generator.rb:55:in `generate_provisioning_profile'
	from /Library/Ruby/Gems/2.0.0/gems/match-0.3.0/lib/match/runner.rb:84:in `profile'
	from /Library/Ruby/Gems/2.0.0/gems/match-0.3.0/lib/match/runner.rb:21:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/match-0.3.0/bin/match:52:in `block (3 levels) in run'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.37.0/lib/fastlane_core/ui/fastlane_runner.rb:23:in `run!'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
	from /Library/Ruby/Gems/2.0.0/gems/match-0.3.0/bin/match:108:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/match-0.3.0/bin/match:116:in `<top (required)>'
	from /usr/bin/match:23:in `load'
	from /usr/bin/match:23:in `<main>'

@elianfish The error from apple is There are no current devices on this team matching the provided device IDs. Can you confirm this is setup correctly?
Please also provide the full output, including the command that you ran.

I ran into the very same issue. New dev account with no devices in it. sigh blows up.
Here's the full output:
+-------------------------------------+----------------------------------+
|                         Summary for sigh 1.4.1                         |
+-------------------------------------+----------------------------------+
| app_identifier                      | **************                   |
| adhoc                               | false                            |
| development                         | true                             |
| username                            | *******************           |
| force                               | true                             |
| cert_id                             | ***********                       |
| provisioning_name                   | match Development ********* |
| ignore_profiles_with_different_name | true                             |
| skip_install                        | false                            |
| skip_fetch_profiles                 | false                            |
| skip_certificate_verification       | false                            |
+-------------------------------------+----------------------------------+

[14:55:45]: Starting login with user '******@*******'
[14:55:47]: Successfully logged in
[14:55:47]: Fetching profiles...
[14:55:49]: No existing profiles found, that match the certificates you have installed, creating a new one for you
[14:55:52]: Creating new provisioning profile for '**********' with name 'match Development *********'
[14:55:55]: 🔒  Successfully encrypted certificates repo
-------------------------------------------------------------------------------------------
😨  An error occured. Please enable crash reports using `fastlane enable_crash_reporting`.
👍  This makes resolving issues much easier and helps improve fastlane.
🔒  The reports will be stored securely on getsentry.com.
🙊  More information about privacy: https://github.com/fastlane/fastlane/releases/tag/1.33.3
-------------------------------------------------------------------------------------------
/Library/Ruby/Gems/2.0.0/gems/spaceship-0.23.0/lib/spaceship/client.rb:300:in `parse_response': [!] {"responseId"=>"51f5c37c-4822-4902-910a-6747a7729655", "resultCode"=>35, "resultString"=>"There were errors in the data supplied. Please correct and re-submit.", "userString"=>"There are no current devices on this team matching the provided device IDs.", "creationTimestamp"=>"2016-03-12T13:55:55Z", "protocolVersion"=>"QH65B2", "userLocale"=>"en_US", "requestUrl"=>"https://developer.apple.com/services-account/QH65B2/account/ios/profile/createProvisioningProfile.action", "httpCode"=>200, "validationMessages"=>[{"validationKey"=>"deviceIds", "validationUserMessage"=>"There are no current devices on this team matching the provided device IDs."}]} (Spaceship::Client::UnexpectedResponse)
	from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.23.0/lib/spaceship/portal/portal_client.rb:352:in `create_provisioning_profile!'
	from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.23.0/lib/spaceship/portal/provisioning_profile.rb:227:in `block in create!'
	from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.23.0/lib/spaceship/client.rb:195:in `with_retry'
	from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.23.0/lib/spaceship/portal/provisioning_profile.rb:226:in `create!'
	from /Library/Ruby/Gems/2.0.0/gems/sigh-1.4.1/lib/sigh/runner.rb:109:in `create_profile!'
	from /Library/Ruby/Gems/2.0.0/gems/sigh-1.4.1/lib/sigh/runner.rb:39:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/sigh-1.4.1/lib/sigh/manager.rb:7:in `start'
	from /Library/Ruby/Gems/2.0.0/gems/match-0.3.0/lib/match/generator.rb:55:in `generate_provisioning_profile'
	from /Library/Ruby/Gems/2.0.0/gems/match-0.3.0/lib/match/runner.rb:84:in `profile'
	from /Library/Ruby/Gems/2.0.0/gems/match-0.3.0/lib/match/runner.rb:21:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/match-0.3.0/bin/match:52:in `block (3 levels) in run'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.37.0/lib/fastlane_core/ui/fastlane_runner.rb:23:in `run!'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
	from /Library/Ruby/Gems/2.0.0/gems/match-0.3.0/bin/match:108:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/match-0.3.0/bin/match:116:in `<top (required)>'
	from /usr/bin/match:23:in `load'
	from /usr/bin/match:23:in `<main>'

@asfalcone thank you!


Added paper

Added my recent conf paper (Added to IEEE Xplore: 03 January 2024) into the text summarization section.

Thanks for your contribution！


OData for Backend communication

Hello KrakenD community,
I am trying to figure out wether KrakenD fits my requirements. I have managed to compile and run it in a Docker container and I like the way it is configured.
For a project I have to communicate to a Backend using the OData protocol.
Is there a way to do this without extending KrakenD myself?
If not - How should I do this (Middleware or Proxy Plugin)?
Are there any exmaples for similar problems?
Thanks for your Help.
Paul

I found out myself how it works.
In the Backend endpoint you can simply use the OData notation i.e. "/test(foo=1,bar={param})


Trouble with rails 3

I'm trying to install the plugin in Rails 3 app. After getting the plugin, the rake command produces this :
$ rake --trace rake highcharts_rails:install
rake aborted!
Don't know how to build task 'rake'
/var/lib/gems/1.8/gems/rake-0.9.2/lib/rake/task_manager.rb:49:in []' /var/lib/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:111:in invoke_task'
/var/lib/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in top_level' /var/lib/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in each'
/var/lib/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in top_level' /var/lib/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:in standard_exception_handling'
/var/lib/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:84:in top_level' /var/lib/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:62:in run'
/var/lib/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:in standard_exception_handling' /var/lib/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:59:in run'
/var/lib/gems/1.8/gems/rake-0.9.2/bin/rake:32
/var/lib/gems/1.8/bin/rake:19:in `load'
/var/lib/gems/1.8/bin/rake:19
Can you please help me with this ?
Many thanks :)

Just
gem install highcharts-rails

worked for me when installing it.


missing example of the use of generated SAS key : $sas in

[Enter feedback here]
it is showed in the example how to generate the $sas key, but nowhere an example with the use of these generated $sas key to upload and download a blob.
Create variables
$accountName   = ""
$containerName = "individual-container"
$startTime     = Get-Date
$expiryTime    = $startTime.AddDays(7)
$permissions   = "rwl"
$protocol      = "HttpsOnly"
Create a context object using Azure AD credentials, retrieve container
$ctx = New-AzStorageContext -StorageAccountName $accountName -UseConnectedAccount
Approach 1: Generate SAS token for a specific container -----> key generated ... ok, how to use it with Set-AzStorageBlobContent ?
$sas = New-AzStorageContainerSASToken  -Context $ctx
-Name $containerName  -StartTime $startTime
-ExpiryTime $expiryTime  -Permission $permissions
-Protocol $protocol
Approach 2: Generate SAS tokens for a container list using pipeline
Get-AzStorageContainer -Container $filterName -Context $ctx | New-AzStorageContainerSASToken  -Context $ctx
-StartTime $startTime  -ExpiryTime $expiryTime
-Permission $permissions `
-Protocol $protocol | Write-Output

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

ID: 317b5f6c-5b10-a10a-e97a-90a9b1adb290
Version Independent ID: e35fd6b0-5790-6abf-b6d1-3c2b2ebca0ac
Content: Work with blob containers from PowerShell - Azure Storage
Content Source: articles/storage/blobs/blob-containers-powershell.md
Service: storage
Sub-service: blobs
GitHub Login: @stevenmatthew
Microsoft Alias: shaas

@ericfran
Thanks for your feedback! We will investigate and update as appropriate.

@stevenmatthew
Can you please check and add your comments on this doc update request as applicable.

@ericfran
I'm going to assign this to the document author so they can take a look at it accordingly.

Thanks for your contribution to our documentation
Unfortunately, we have been unable to review this issue in a timely manner. We sincerely apologize for the delayed response. We are closing this issue. If you feel that the problem persists, please respond to this issue with additional information.
?
Please continue to provide feedback about the documentation. We appreciate your contributions to our community.
#please-close


[AWS KMS] Key Creation Race condition

@6l20 commented on Wed Dec 01 2021
Describe the bug
Account creation fails with a dependency error ff2000 first time request is sent.
More generally, Key creation process fails when the key state is not appropriate and thus rejects the GetPublicKey call.
 Please ask an admin for help or try again later","code":1044992}
Expected result
Status: 200

An account creation success response

Additional context
Logs
{"@timestamp":"2021-11-30T15:12:14Z","alias":"personal-account-rinkeby","error":"Error making API request.\nCode: . {\"message\":\"ST100: failed to get AWS key\",\"code\":\"ST100\"}:\nStatus: 404.","log.level":"error","message":"(use-cases.create-account): failed to import/create ethereum account"}
Notes
Works when request is sent twice
Works with an AKV store

@6l20 commented on Wed Jan 12 2022
This problem appears to be linked to some race condition in the KMS backend.
According to the Keys state
https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
We have a KMSInvalidStateException when calling the GetPublicKeyAPI right after CreateKey.
Suggested solution is to use the DescribeKeyAPI and "wait" the Enabled flag to come up, inbetween above calls.
https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html

@6l20 commented on Mon Jan 17 2022
Here below is the answer made by AWS support
Hello Sylvain,
Hope this email finds you well. I understand you have found matching CloudTrail logs for the errors you've noticed.
Regarding my initial question, by where, I meant whether you were creating the keys via the CLI, a lambda function or in a custom application. You have answered that part for me.
Regarding the exception KMSInvalidStateException, it means that the key is in a state that does not accept the request. There are several KMS key states. [1] However, for the GetPublicKey event, the error KMSInvalidStateException was due to the key pending deletion. The key must be enabled for such action. Please check the link below [2] to view an example of this event in your CloudTrail logs.
It looks like some of the GetPublicKey calls occured on keys that were already scheduled for deletion. Otherwise, the calls on enabled keys were successful. I have also noticed some ScheduleKeyDeletion calls that were called twice for the same key. The second call resulted in the error KMSInvalidStateException.
You can check the state of a key to avoid making calls that will result in KMSInvalidStateException error. The API call DescribeKey provides detailed information about a KMS key. You can use the key state in the response to make a decision on API calls. For more information about this command, please visit this link. [3]
Retrying failed API calls is a good method to address some errors, which sounds like you are already doing. Otherwise, if the KMSInvalidStateException is causing some issues, the best approach is to check the key state beforehand.
I trust that I addressed your queries into this matter. Should you have any additional questions, please do not hesitate to reach out.
Have a nice day!

This ticket is also applicable to Deletion issues


Does  go-swan-provider support miners of Calibration Filecoin Development Network?

yes. we do have a calibration network, it should be deployed next Tuesday


No need to use fs as npm dependency

Hi!
fs is a node core module, there is no need to include it as npm dependency
See https://github.com/npm/npm/issues/13743

Thanks - I fixed this last night in our dev branch - it will be in the next release


python3.pkgs.aws-lambda-builders: add missing pip test dependency

Description of changes
pip is currently implicitly included by Python hooks, but that will no longer be the case soon.
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[x] aarch64-darwin

[x] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

@ofborg build python310Packages.aws-lambda-builders

Result of nixpkgs-review pr 248836 run on x86_64-linux 1

10 packages built:

aws-sam-cli
aws-sam-cli.dist
python310Packages.aws-lambda-builders
python310Packages.aws-lambda-builders.dist
python310Packages.dsnap
python310Packages.dsnap.dist
python311Packages.aws-lambda-builders
python311Packages.aws-lambda-builders.dist
python311Packages.dsnap
python311Packages.dsnap.dist


Init kotlin project

I decided to break the changes into small pull requests. It's a kotlin project init.

Oops didn't see this was already merged, my bad!

No problem, feel free to put your comments to the merged PRs, we appreciate this.
We will apply the findings in separate or next PRs.


Feature/show history of food

Thanks for the feedback @stefankorder! If you don't mind please look at my comments.


Syndi Infiltrator Update

changelog
-added clothesmate and mirror to nukie shuttle (tstalker told me to idk)

(tstalker told me to idk)
stealth ops


Using the C driver version of RTT performance testing, warm and non warm, there is an order of magnitude difference?

Hello：
Testing environment：
dell R740, Intel(R) Xeon(R) Gold 6137 CPU @ 3.90GHz；
Red Hat Enterprise Linux Server release 7.5；
10G NIC and switch.
Thread：DEDICATED，
Idle strategy：spinning
2 dell server, 2 App , with libaeron_driver.so and libaeron_client.a.
RTT test：every test, restart  client app
One thread publication, one thread subscription.
send：500byte
recv：500byte
speed: 10000/s:
order number                 consume time
1-236:                           113us-24ms
237-10000:                    20-26us，very stable
speed: 20000/s:
1-234:                           1ms-22ms
235-438:                       130us-970us
439-20000                    20-26us，very stable
speed: 100000/s：
1-552:                             25ms-20ms
553-1702:                       10ms-20ms
1703-2734:                     1ms-10ms
2735-2839:                     89us-1ms
2839-100000:                 22-27us, very stable
using aeron Ping and Pong  is same thing.
warming:  max 263us
not warming:  max 2224us
The greater the pressure, the longer the time.
why? cpu cache or other reason.
Thanks!

already binding CPU and using numa

Are you pre-touching memory and not using sparse files?

hello，
After repeated tests, turning off the pre touch in the driver has a better effect. The performance can reach the optimal value at the beginning, which is very confusing?
in aeron_fileutil.c,
int aeron_map_raw_log(...)
use_sparse_files=true
test data:
****************** sum:9.999(s)  tps:10001.000  mean:31(us) min:28(us) max:123(us) **
1:67us
2:34us
32
32
32
30
39
36
30
31
31
30
30
37
30
33
30
32
29
32
36
31
not use sparse:
****************** sum:9.999(s)  tps:10001.000  mean:39(us)  min:26(us)  max:3607(us) ******************
1:3585us
2:3584us
3:3584us
3584
3583
3583
3580
3607
3607
3606
3606
3606
3605
3603
3602
3602
3601
3601
3601
3600
3601
3600
3600
3599
3599
3598
3597
3597
3596
3595
3595
3594
3593
3592
.........
297: 65us
298: 31us
......

I don't think you understand how memory pages get allocated and faulted in. You should set sparse files to false on the driver and pre-touch on the client to true.

hello：
Warming up memory reduces latency, as I have done before, but after several days of comparative testing, in our scenario, the driver and client do not warm up under the average delay and minimum hour delay and TPS is better.
To find out why， I'll do it as you say and then test it.
Thank you very much.


No files appear at all in GPTK

Using Chromium Version 125.0.6422.112 (Official Build) snap (64-bit) on Ubuntu
Latest version of tampermonkey, developer mode turned on
Nothing obvious appears in console.
Searching also produces no results

Are you sure you're following instructions in the readme?
Set the filter, then choose the action. After choosing action it must at least log start time, but your log is totally empty.

Are you sure you're following instructions in the readme? Set the filter, then choose the action. After choosing action it must at least log start time, but your log is totally empty.

Ah, I understand better now.  I didn't realize from the README that there wasn't some kind of feedback such as displaying number of items found by a filter before committing the action selection.  Now that I know and have tried that, I can see the process.  Thank you!


kivy on ios and android keyborad IME

how to  fix keyborad on ios and android keyborad ?
Android :
Keyboard only can use english,but can't switch to other language
IOS :
Keyboard only can type english but can't type ch jp etc...

You can build app with android_old command (buildozer==0.35) that uses pygame as window provider, the android command uses SDL2 and has problem with keyboard IME.
https://github.com/kivy/python-for-android/issues/1102

You can build app with android_old command (buildozer==0.35) that uses pygame as window provider, the android command uses SDL2 and has problem with keyboard IME.
kivy/python-for-android#1102

how to use android_old command?

how to fix this error ?. I can't type vietnamese but only english.
kivy : 2.0.0
buildozer : 1.2.0


Networking documentation

Add networking related documentation.

Ping @fzdarsky I updated based on your comments.

/lgtm


Fix a half of a sentence sticking out of a note

Summary
A part of the note is put back inside the note.

Hello @tomaszn,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.


Add content for 'How to use BestEvidence'

http://best-evidence-site.herokuapp.com/how-to-use-best-evidence
We need to:

[x] Check the content (actual text) of this page against the user guide PDF
[ ] Take mobile screenshots of all of the pages in the guide again as the ones we have are very fuzzy (note: take one screenshot and check that it fits the mobile phone png we have)
[ ] Get these screenshots added to the mobile phone template as jpgs (@iteles)
[ ] Update all the screenshots with those from the PDF

Best-Evidence-User-Guide 8th Feb 2018.pdf

@iteles does this screenshot work?

@RobStallion It does! But we need all of them please 👍

Carry out a basic search

Add a note

Email a note and link to a colleague

Advanced searches


Unable to scrape JSON

Version of the custom_component
6.5.0
Configuration

multiscrape:
  - name: Multiscrape Date
    resource_template: http://date.jsontest.com
    scan_interval: 36000
    log_response: true
    sensor:
      - unique_id: multiscrape_date_test_1
        name: Multiscrape Date Test 1
        select: "body > pre"
        value_template: "{{ value_json.date }}"
      - unique_id: multiscrape_date_test_2
        name: Multiscrape Date Test 2
        select: "body > pre"
        value_template: "OK"
sensor:
  - platform: rest
    resource: http://date.jsontest.com
    name: Rest date test 1
    value_template: "{{ value_json.date }}"

Describe the bug
Sensor will report unknown when response from resource is JSON. Integration complains that value_template must be provided even when it is already provided. In the minimal example config above, both sensors get the same error. The example for the rest integration works without issues.
Debug log

2023-09-03 12:01:11.155 DEBUG (MainThread) [custom_components.multiscrape] # Start processing config from configuration.yaml
2023-09-03 12:01:11.155 DEBUG (MainThread) [custom_components.multiscrape] Multiscrape Date # Setting up multiscrape with config:
 {'name': 'Multiscrape Date', 'resource_template': Template<template=(http://date.jsontest.com) renders=0>, 'scan_interval': datetime.timedelta(seconds=36000), 'log_response': True, 'sensor': [{'unique_id': 'multiscrape_date_test_1', 'name': 'Multiscrape Date Test 1', 'select': Template<template=(body > pre) renders=0>, 'value_template': Template<template=({{ value_json.date }}) renders=0>, 'force_update': False}, {'unique_id': 'multiscrape_date_test_2', 'name': 'Multiscrape Date Test 2', 'select': Template<template=(body > pre) renders=0>, 'value_template': Template<template=(OK) renders=0>, 'force_update': False}], 'timeout': 10, 'list_separator': ',', 'parser': 'lxml', 'verify_ssl': True, 'method': 'GET'}
2023-09-03 12:01:11.155 DEBUG (MainThread) [custom_components.multiscrape] Multiscrape Date # Log responses enabled, creating logging folder: /config/multiscrape/multiscrape_date/
2023-09-03 12:01:11.160 DEBUG (MainThread) [custom_components.multiscrape] Multiscrape Date # Initializing scraper
2023-09-03 12:01:11.160 DEBUG (MainThread) [custom_components.multiscrape.scraper] Multiscrape Date # Initializing scraper
2023-09-03 12:01:11.160 DEBUG (MainThread) [custom_components.multiscrape.http] Multiscrape Date # Initializing http wrapper
2023-09-03 12:01:11.160 DEBUG (MainThread) [custom_components.multiscrape] Multiscrape Date # Initializing coordinator
2023-09-03 12:01:11.160 DEBUG (MainThread) [custom_components.multiscrape.coordinator] Multiscrape Date # Scan interval is 10:00:00
2023-09-03 12:01:11.168 DEBUG (MainThread) [custom_components.multiscrape.coordinator] Multiscrape Date # New run: start (re)loading data from resource
2023-09-03 12:01:11.169 DEBUG (MainThread) [custom_components.multiscrape.coordinator] Multiscrape Date # Deleting logging files from previous run
2023-09-03 12:01:11.172 DEBUG (MainThread) [custom_components.multiscrape.coordinator] Multiscrape Date # Rendered resource template into: http://date.jsontest.com
2023-09-03 12:01:11.172 DEBUG (MainThread) [custom_components.multiscrape.coordinator] Multiscrape Date # Request data from http://date.jsontest.com
2023-09-03 12:01:11.172 DEBUG (MainThread) [custom_components.multiscrape.http] Multiscrape Date # Executing page-request with a get to url: http://date.jsontest.com.
2023-09-03 12:01:11.176 DEBUG (MainThread) [custom_components.multiscrape.http] Multiscrape Date # request_headers written to file: page_request_headers.txt
2023-09-03 12:01:11.179 DEBUG (MainThread) [custom_components.multiscrape.http] Multiscrape Date # request_body written to file: page_request_body.txt
2023-09-03 12:01:11.237 DEBUG (MainThread) [custom_components.multiscrape.http] Multiscrape Date # Response status code received: 200
2023-09-03 12:01:11.239 DEBUG (MainThread) [custom_components.multiscrape.http] Multiscrape Date # response_headers written to file: page_response_headers.txt
2023-09-03 12:01:11.243 DEBUG (MainThread) [custom_components.multiscrape.http] Multiscrape Date # response_body written to file: page_response_body.txt
2023-09-03 12:01:11.243 DEBUG (MainThread) [custom_components.multiscrape.scraper] Multiscrape Date # Response seems to be json. Skip parsing with BeautifulSoup.
2023-09-03 12:01:11.243 DEBUG (MainThread) [custom_components.multiscrape.coordinator] Multiscrape Date # Data succesfully refreshed. Sensors will now start scraping to update.
2023-09-03 12:01:11.243 DEBUG (MainThread) [custom_components.multiscrape.coordinator] Finished fetching multiscrape data in 0.075 seconds (success: True)
2023-09-03 12:01:11.244 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.multiscrape
2023-09-03 12:01:11.245 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.multiscrape
2023-09-03 12:01:11.245 DEBUG (MainThread) [custom_components.multiscrape.sensor] Multiscrape Date # Multiscrape Date Test 1 # Setting up sensor
2023-09-03 12:01:11.245 DEBUG (MainThread) [custom_components.multiscrape.sensor] Multiscrape Date # Multiscrape Date Test 2 # Setting up sensor
2023-09-03 12:01:11.255 DEBUG (MainThread) [custom_components.multiscrape.sensor] Multiscrape Date # Multiscrape Date Test 1 # Start scraping to update sensor
2023-09-03 12:01:11.255 ERROR (MainThread) [custom_components.multiscrape.sensor] Multiscrape Date # Multiscrape Date Test 1 # Unable to scrape data: JSON cannot be scraped. Please provide a value template to parse JSON response.
Consider using debug logging and log_response for further investigation.
2023-09-03 12:01:11.257 DEBUG (MainThread) [custom_components.multiscrape.sensor] Multiscrape Date # Multiscrape Date Test 1 # On-error, set value to None
2023-09-03 12:01:11.257 DEBUG (MainThread) [custom_components.multiscrape.entity] Multiscrape Date # Multiscrape Date Test 1 # Updated sensor and attributes, now adding to HA
2023-09-03 12:01:11.258 DEBUG (MainThread) [custom_components.multiscrape.sensor] Multiscrape Date # Multiscrape Date Test 2 # Start scraping to update sensor
2023-09-03 12:01:11.258 ERROR (MainThread) [custom_components.multiscrape.sensor] Multiscrape Date # Multiscrape Date Test 2 # Unable to scrape data: JSON cannot be scraped. Please provide a value template to parse JSON response.
Consider using debug logging and log_response for further investigation.
2023-09-03 12:01:11.259 DEBUG (MainThread) [custom_components.multiscrape.sensor] Multiscrape Date # Multiscrape Date Test 2 # On-error, set value to None
2023-09-03 12:01:11.259 DEBUG (MainThread) [custom_components.multiscrape.entity] Multiscrape Date # Multiscrape Date Test 2 # Updated sensor and attributes, now adding to HA

Contents of page_response_body.txt:

{
   "date": "09-03-2023",
   "milliseconds_since_epoch":<PHONE_NUMBER>225,
   "time": "05:01:11 PM"
}

Please try removing the select from your sensor config.

Holy smokes that worked. I've been banging my head on this for two days. Didn't get any help in the forums or discord, but maybe I didn't wait long enough. Did I miss this in the instructions somewhere? Isn't select a required field?
Either way, you can close this. I apologize for wasting your time.

It's not required in case of json. What was it selecting anyway? :)
I'll see if I can give a warning somewhere in the logs after it recognizes json.

What was it selecting anyway?

I was thinking it was selecting what was in page_response_body.txt but now I realize that is the text that is input to the selector; not the output.
This probably would have been a lot more clear to me had I used multiscrape for a normal HTML scraping purpose prior to attempting to scrape JSON.


Could not perform operation. Error: Error: 14 UNAVAILABLE: failed to connect to all addresses

Could you please tell me why there is an error when viewing Manage Keys

OS: [MacOs]
OS version [Big Sur 11.6]
ETCD manager version [v1.2.0]

You can try new etcd gui  https://github.com/maojindao55/etcder


Use jitserver launcher to start JVM in server mode

-XX:StartAsJITServer option has been removed. It has been replaced
by jitserver launcher.
Signed-off-by: Ashutosh Mehra<EMAIL_ADDRESS>

fyi - @a7ehuo @mpirvu

LGTM. Thanks for making this change!

I am not a committer for this repo.
@smlambert


Request: Add brycewray.com to Eleventy sites list

Requesting addition of brycewray.com to the Eleventy sites list.

Thanks!


Option -h not working when called alone

Only works when called with other parameters

Fixed in commit 38645c1


Initialization problem: infinite loop

I use version 4.0.0 on jvm. On starting the app I get this stackframe:
Exception in thread "main" java.lang.ExceptionInInitializerError
	at eu.sirotin.kotunil.derived.JouleKt.<clinit>(Joule.kt:12)
	at Givens.<init>(Main.kt:24)
	at MainKt.main(Main.kt:8)
Caused by: java.lang.NullPointerException: Parameter specified as non-null is null: method eu.sirotin.kotunil.core.ExpressionKt.times, parameter p
	at eu.sirotin.kotunil.core.ExpressionKt.times(Expression.kt)
	at eu.sirotin.kotunil.derived.JouleKt.getJ(Joule.kt:34)
	at eu.sirotin.kotunil.specialunits.NonSiUnitsKt.getEV(NonSiUnits.kt:208)
	at eu.sirotin.kotunil.specialunits.NonSiUnitsKt.<clinit>(NonSiUnits.kt:215)
	... 3 more

The problem is that Joule uses m2 from NonSiUnits and eV from NonSiUnits uses Joule.
I think the simplest way to fix it is to expand the expression in Joule.
I'll create a PR.

This simple app will demonstrate the problem:
fun main() {
    println(1.J)
}

A simpler way to fix it, is to move m2 (and m3 I guess) into SpecialBaseUnits.kt or even into it's own file.

Hallo @sheepdreamofandroids,
thank you message.
Unfortunately, it seems like compiler error. Very strange, that result of UnitTest (kotlin/eu/sirotin/kotunil/derived/JouleTest.kt) depends on calling history.
I am working on this issue.

It's not a compiler error. It's a result of how class initialization works.
Essentially the JVM should give an error when a static field of a class is used before the class is fully initialized. But that would mean having checks for each access to a static field which would be very expensive.
Of course a compiler could check for this but that is also quite expensive, so yeah, maybe it is a compiler error.
Either way, it is a very rare error and unfortunately one that cannot be caught by conventional unit tests. I've been looking for a gradle plugin that could catch this but didn't find one.
BTW, did you see the PR?

Yes. My analysis shows the same result. It depends on initialisation order/sequence. It seems, if run-time need to initialise  a "static" variable in some file, it try to initialise also all other variables. Depends on order of initialisation we can have these error. This is definitely wrong behaviour of compiler (that define run-time behaviour), but it can be avoid with cleaner design. It is wrong behaviour because from language point of view all is correct.
I will now analyse your PR, but in future I'll make design cleaner.

Oops, it seems to be a language "bug": https://kotlinlang.org/spec/declarations.html?paragraph=classifier-declaration,classifier-initialization,8#classifier-initialization


Default layout

Description
Default Layout
Make a page Layout based on the mock-up and Canada.ca.

Acceptance Criteria

Create a layout the contains the header and the footer element.
Creating a container element to wrap components in the correct margin
Must adjust to different screen sizes

Test Instructions
Test the layout of the page at different screen sizes.
Help Requested
-I had to make multiple containers for the layout to work well, so we'll have to modify the footer in the layout later also.
Checklist

[ ] Strings use placeholders for translation (No hard coded strings)
[x] Unit tests have been added/updated

Product and Sprint Backlog
Trello

I left the Head in the Layout because I defined a meta for width to always be full screen in every page. Page doesn't fit on all screen sizes if I don't do that. The top of the header and the footer will be replaced so I also didn't  think it was worth putting props for the  text in there. I put some for the banner. And the search bar is being adjusted for different screen sizes in the header that Kevin is doing so I didn't change it also.


Admin page and other stuffs

UI for admin page:

Also:

set up testing for the frontend
updated the README to make running the app local easier
updated the manifest so the tunnel can run on the same port as webpack
deleted the admin-page repo and moved all contents up into static

Narly merge conflicts due to flattening. Opened a new PR.


Added SkinnedMeshRenderer support to MeshOutline

Overview
Added SkinnedMeshRenderer support to MeshOutline
Changes

Modified MeshOutline.cs and MeshOutlineHierarchy.cs

Verification

As a reviewer, it is possible to check out this change locally by using the following
commands (substituting {PR_ID} with the ID of this pull request):
git fetch origin pull/{PR_ID}/head:name_of_local_branch
git checkout name_of_local_branch

#assign-reviewer:Cameron-Micka


Fix ASM.js export. Use precision for samples only when #version 300 es

Fix #10332

I was afraid this would be problematic, but I can't seem to run the ASM.js
version at all without that option (getting a pointer error, I get a
undefined warning for glDrawArrays when linking).
Only the wasm version seems to work.
Does the HTML5 export with was=no works for you without FULL_ES2=1?
On Aug 14, 2017 20:18, "L. Krause"<EMAIL_ADDRESS>wrote:
@eska014 commented on this pull request.
In platform/javascript/detect.py
https://github.com/godotengine/godot/pull/10343#discussion_r133022676:

@@ -112,6 +112,7 @@ def configure(env):
else:
env.Append(LINKFLAGS=['-s', 'ASM_JS=1'])
env.Append(LINKFLAGS=['--separate-asm'])

   env.Append(LINKFLAGS=['-s', 'FULL_ES2=1'])

This enables expensive GLES2 emulation, what does this fix?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/pull/10343#pullrequestreview-56159252,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABnBbq93m8ZzA0LnEAd8ITSNFo2km8kDks5sYI9xgaJpZM4O2s0v
.

Yeah, asm.js works as it is on my end. If WebAssembly works, I can't imagine what causes this. Maybe cache issues? Firefox uses a a separate cache for asm.js:

Note: to clear out the asm.js cache for a given origin, click the Site Identity Button → More Information → Permissions → (scroll down) → Clear Storage.
https://blog.mozilla.org/luke/2014/01/14/asm-js-aot-compilation-and-startup-performance/

On other browsers Ctrl+F5 should be enough though.
Never seen a warning about glDrawArrays either, are you using an older Emscripten version for asm.js?

Oh, I see, must be something on my end then. I'll remove that as soon as I
get home
On Aug 15, 2017 03:22, "L. Krause"<EMAIL_ADDRESS>wrote:

Yeah, asm.js works as it is on my end. If WebAssembly works, I can't
imagine what causes this. Maybe cache issues? Firefox uses a a separate
cache for asm.js:
Note: to clear out the asm.js cache for a given origin, click the Site
Identity Button
https://support.mozilla.org/en-US/kb/how-do-i-tell-if-my-connection-is-secure
→ More Information → Permissions → (scroll down) → Clear Storage.
https://blog.mozilla.org/luke/2014/01/14/asm-js-aot-
compilation-and-startup-performance/
On other browsers Ctrl+F5 should be enough though.
Never seen a warning about glDrawArrays either, are you using an older
Emscripten version for asm.js?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/pull/10343#issuecomment-322352196,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABnBbin88MRyK0RQ8Zgc9T09c2UhohkLks5sYPLngaJpZM4O2s0v
.

would be more interesting to know what is breaking for you first

I can't reproduce the error on my side anymore. It might have been caching a problem as @eska014 suggested.
I updated the PR


API: LanguageServiceHost.resolveModuleNames return type assumes successful resolution

resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames?: string[]): ResolvedModule[];

What if my custom code fails resolving the module? Tried returning a shorter array of the modules I am able to resolve, but there is an assert in TypeScript verifying returnedArray.length should be equal to moduleNames.length.
Looking at the same code with the assert, I noticed there is an if verifying returnedArray item (ResolvedModule) is defined.
Long story short, can the return value be adjusted to the more appropriate Array<ResolvedModule | undefined>?

If you fail to resolve something, shouldn’t you throw?  Not too familiar with the API in question but it’s pretty typical for return types to assume success and if there’s a problem, you throw.

@AviVahl Yes. The return type of LanguageServiceHost.resolveModuleNames should be same as it is on CompilerHost.

fix is up at #28059

Well I feel sheepish. :genie: :sheep:

@fatcerberus You shouldn't. Our ecosystem is full of functions throwing errors around, so it's not uncommon to see such patterns. That being said, most of the TypeScript APIs I've encountered assume you wouldn't throw.
It makes extra sense in this case, because TypeScript probably needs the successful resolutions and to know which ones failed resolving.
Appreciate the input nonetheless.


Features page filter / label

It'd be great if in the Ghost Admin panel we would have an option to filter for posts that are marked as 'featured' - and maybe have an indicator for featured posts as well in the list of stories (in the same way how 'pages' have a little label)

Thanks @tpiros 👍 This was actually something I was looking at adding just yesterday 😄

Sweet! Happy to help in any way @kevinansfield just ping me! :)


Some Hunter themes have unreadable diagnostics for warnings

Vercel:

Material:

I know those bugs. There are some similar bugs with colors 🤔 When I will have a bunch of free time, I'll try to fix it 😎

Thanks!

Fixes are waiting for merge:
https://github.com/zed-industries/extensions/pull/674

It's working, thanks for this theme!

I'm not a superfan of the colors used, but this'll do.

Those are used only just to fix this problem. I wanted that theme to be useful for you asap. When I will have more free time, then I will customize that themes to match other colors 😎

Love it, thank you. I switched right back to your theme after you fixed it. Thanks!


SPARKC-111: Fixed bug in CassandraConnectorSource which caused problems when during initialization in executor environment

Generally +1, however I don't like those singletons in Spark everywhere (SparkEnv and stuff). Smells bad design to me.

I don't like it either. However I have 0 ideas how to do this other way without modifying Spark.


framebuffer.blit() in StencilSystem.push

Fixes #6844

Codecov Report

Merging #6868 into dev will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               dev     #6868   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           15        15
  Lines          671       671
=========================================
  Hits           671       671

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 857452a...09ae74c. Read the comment docs.

Demo, please?

@ivanpopelyshev You can test the pen the issue links to. Just change the script location of PixiJS; all create a new pen later today too for others to see as well.

Just a note. In filterSystem:
        if (state.renderTexture.framebuffer.multisample > 1)
        {
            this.renderer.framebuffer.blit();
        }

that's more verbose expression but if is not necessary. i dont remember why did i put it there

@GoodBoyDigital Yes, I was thinking 'bout that. Maybe a separate PR, but seems like all of us agree on adding that.

Hello @GoodBoyDigital  and @bigtimebuddy  can we have a quick review for this one.. Seems like a release blocker for 5.4.0 from about a month. Thanks in advance.


added tenant aware api feature

Added the ability to scope API resources to be Filament tenant aware. By default the tenant-awareness is disabled in the config.

up

Thank you for your contribution @eelco2k appreciate it.
But i have a question, what goals between the tenancy.is_tenant_aware and tenancy.enabled config?
because i think this package is for API purpose, we can use tenancy.enabled only. Istead of adding a more config.

what i also will do is refactor and not put the trait on the model, but on the handlers. that way you don't have to add the trait manually to the model but it's already configured in the handler stubs.

what i also will do is refactor and not put the trait on the model, but on the handlers. that way you don't have to add the trait manually to the model but it's already configured in the handler stubs.
I will try to reuse:
public static function scopeEloquentQueryToTenant(Builder $query, ?Model $tenant): Builder

and

 protected static bool $isScopedToTenant = true;

But because you're using spatie query builder i have to change it a little bit.

thats will be great for performance, because the model isnt execute the bootHasApiTenantScope method anymore.

let merge to dev version first

@eelco2k can you test the dev branch?
Update the composer.json
"rupadana/filament-api-support": "dev-dev"


Reorganize packages, reformat code.

This is a code reorg to reflect that the project is no longer owned by Airbnb.
cc @elingg

Okay, I can do that instead. I went with github because the project is hosted on github.

Actually, org.mesos doesn't really make sense since mesos.org doesn't exist. I'd rather just leave it like this.

Okay, I changed it to org.apache.mesos.chronos, which is a bit verbose for my liking, but it should suffice.

Thank you! :+1:


scaffolder/next: simplify the exported components

chore: moving things around a little
chore: fix api reports

Hey, I just made a Pull Request!

:heavy_check_mark: Checklist

[ ] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[ ] All your commits have a Signed-off-by line in the message. (more info)

Going to piggyback on the changeset from #16528 as that's not been released yet, and this PR is basically just fixing some things I noticed post merge that we can make simpler.


Extract validation message logic with composition

With these being the first meaningful case of code-reuse, it is a good moment to introduce the vue3 composition api via a plugin to this vue2 library.
To get the type inference for the setup option, we have to use the defineComponent function for creating our components. This has the side-effect that we have to rethink how to type the menu ref. The solution was to move this into the setup function as well because there we can use the vue3 way of accessing and typing refs.
The actual validation message will be added to the Dropdown component in a follow-up pull request.
Todo:

[x] Figure out typing of $refs
[x] move and rename extracted code to something like compositions/validateable.ts
[x] add tests for extracted methods!

Bug: T266546

Thank you for your feedback! I will implement it tomorrow (have to leave now)

Looking great, I think I might have made a typo when I suggested validateable (It should be validatable, sorry :/), also, there's one more thing to change

I think and hope that both are fixed now


Tab bar doesn't resize correctly

Environment
Windows build number: Microsoft Windows [Version 10.0.18362.418]
Windows Terminal version: Version: 0.6.2951.0 (MS Store)

Steps to reproduce

Opened a bunch of cmd tabs (6) and resized the window to be smaller (only one tab showing) to test the tab scrolling feature (works fine). Then i resized the window to be bigger, that all tabs could show up
Expected behavior

The visible tabs should increase with expanding the width.
Actual behavior

When minimizing the window so much, that only 1 or 2 tabs are showing up and then increasing the width, the amount of visible tabs stay and you have to add a new tab to reset the amount of tabs showing up.[

](url)

This is a duplicate of #3300 .

Thanks for the triage help @encladeus!
/dup #3300


Renaming the received aura effect

Would it be possible to rename the aura effect created on the actors effected by the aura?
Use case:
Paladin has an aura effect called "Aura of Protection - Aura". The current behaviour is that all effected actors (allies) also get an effect called "Aura of Protection - Aura".  I would like to rename the effect received by them to "Aura of Protection".  This would allow me to automaticly add animations the the tokens with "Automated Animation" through its auto recognition feature.

In v 0.7.6


Unique id's for gradients across symbols

Is it possible to set unique ids for gradient fill and strokes?

Closing issue, This was a problem with gulp-svgmin.


DATE custom field

The date custom field works with the site but when I run reports it gives out a different date that does not make sense. Had to change the field to TXT and make the user type the date to get the correct data on the report extract.

Fix has been made and will be released as part of version 2.5.2.


allow 0 and 1 as boolean values as per SVD spec

according to the XML Schema specification regarding xs:boolean:

<IP_ADDRESS> Lexical representation
An instance of a datatype that is defined as ·boolean· can have the following legal literals {true, false, 1, 0}.

The SVD spec, likewise, seems to mention a few times:

This tag is either set to true or false, 1 or 0.

This pull request allows parsing 0 and 1 as false and true, respectively.

Thanks @ahixon.
@homunkulus r+

:pushpin: Commit ffc292a has been approved by japaric

:hourglass: Testing commit ffc292a with merge b95d4b0...

:sunny: Test successful - status-travis
Approved by: japaric
Pushing b95d4b06ee2ec0f010d18561678950b37813b4b9 to master...


Set in C++ Standard Template Library (STL) [Documentation]

Description
In this, I will be contributing via documentation on the topic Set in C++ Standard Template Library. I will be providing codes as well as proper explanation. I am very excited to begin my open source journey!
Domain
C/CPP
Type of Contribution
Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

/assign

/assign


Download problem

Hello there,
I cannot download 2 stamps:
https://annostamps.com/stamp/clgg9cjmg009908mf0aw2wqsh
https://annostamps.com/stamp/clgk0nwg30001mf08mx8nflzf
The following page accurs:
<Error>
AccessDenied
<Message>Access Denied</Message>
<RequestId>DYGH5NA3885T11A5</RequestId>
<HostId>
cTof7XeW1pGOidb64CZulXkPKlcPkE6yTiMqiW1QMS1vc9NKvLLVpa9GHQjzIwLW3VKcDuccwbyyOnNdA2GV4w==
</HostId>
</Error>

Fixed! Make sure you ctrl + F5 and try downloading again.


Description of errors
This documentation seems to lack proper information about external dependencies for HIP.  Specifically around Repositories.  I went to install HIP with NVidia.  At no point did it specify installation of the Rocm repos.
With Rocm repos installed I am still finding the necessary dependencies missing i.e.:
hip-runtime-nvidia : Depends: hipcc-nvidia but it is not installable
I am unable to find any repository that hosts the "hipcc-nvidia" package.  I have checked repositories that I know of at AMD, Radeon, and Nvidia without success.
Attach any links, screenshots, or additional evidence you think will be helpful.
No response

I encountered this issue as well.
I am trying to get it to install inside a docker container:
# Use the official ROCm development image
FROM rocm/dev-ubuntu-22.04:latest

# Set environment variables
ENV DEBIAN_FRONTEND=noninteractive
ENV HIP_PATH=/opt/rocm/hip
ENV CUDA_PATH=/usr/local/cuda
ENV PATH=$HIP_PATH/bin:$CUDA_PATH/bin:$PATH
ENV LD_LIBRARY_PATH=$CUDA_PATH/lib64:$HIP_PATH/lib:$LD_LIBRARY_PATH

# Install necessary packages
RUN apt-get update && \
    apt-get install -y \
        cmake \
        git \
        wget \
        mesa-utils \
        freeglut3-dev \
        libglu1-mesa-dev \
    && rm -rf /var/lib/apt/lists/*

#Install CUDA
RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb && \
    sudo dpkg -i cuda-keyring_1.1-1_all.deb

#RUN apt update && \
#    apt install software-properties-common -y && \
#    add-apt-repository ppa:graphics-drivers && \
#    apt install nvidia-driver-535 -y

RUN apt-get update && \
    apt-get install -y \
    cuda \
    nvidia-gds \
    hip-runtime-nvidia \
    hip-dev \
    && rm -rf /var/lib/apt/lists/*

# Create a working directory
WORKDIR /usr/local/src

# Copy the code to the container
COPY ./ /usr/local/src/MYAPP

# Set the XDG_RUNTIME_DIR environment variable
ENV XDG_RUNTIME_DIR=/tmp/xdg
RUN mkdir -p /tmp/xdg && chmod 700 /tmp/xdg

# Compile the HIP program with OpenGL/GLUT support
RUN cd /usr/local/src/MYAPP && \
    /opt/hip/bin/hipcc \
    -o MYAPP \
    -I /usr/local/src/MYAPP/include \
    src/kernels.hip src/main.cpp \
    -lGL -lGLU -lglut -Wall -Werror -O3

# Set the entry point to run the compiled HIP program
ENTRYPOINT ["/usr/local/src/MYAPP/MYAPP"]

I'm running into the same issue, it seems to me that the dependency chain of the packages is broken and am really rooting for a fix :-)

@MarkCotch Internal ticket has been created to fix this issue. Thanks!

To add to this, the issue seems not to be documentation only, but a broken package dependency on hipcc-nvidia that doesn't seem to exist anymore. This is with a fresh ROCm install on Ubuntu 22.04, following the ROCm documentation on installing 6.1.1.
I agree though the documentation could be improved. I realize NVIDIA is probably not that well supported, though really helpful for developing. For example, following all the instructions (by following the link to "install ROCm in general"), the docs want me to install amdgpu-dkms even on an NVIDIA system, which obviously doesn't make much sense, so a bit more guidance on this would be appreciated (though understandable if not the primary focus of this project :-) )

I also had this error, building HIP from source solved it for me

I also got this error, and I had to build HIP from source

I also got this error, and I had to build HIP from source

Interesting, and this worked for you? Was this with the latest release 6.1.2? Because with 6.1.1 this was not working either.

Fix will be available in the future ROCm 6.2 release. Thanks!

As of today, I'm trying with ROCm 6.2, with no luck.
As I understand, the hipcc command should do the whole process of churning hip -> cuda and then evokes nvcc, etc. (did I get this right?)
But the problem seems to be that the --cuda-gpu-arch (which seems to be a simple alias to --offload-arch), doesn't work:
hipcc --cuda-gpu-arch=sm_80 /home/sampsa/amd/doodles/hip_doodle0/src/vector_add.hip -o pska.o
clang++: error: invalid target ID 'sm_80'; format is a processor name followed by an optional colon-delimited list of features followed by an enable/disable sign (e.g., 'gfx908:sramecc+:xnack-')

If I change to --cuda-gpu-arch=gfx908 (because that's just an alias to --offload-arch=gfx980) it start compiling at least.
Related: https://github.com/ROCm/ROCm/issues/2975
So to conclude: --offload-arch is broken?

As of today, I'm trying with ROCm 6.2, with no luck.
As I understand, the hipcc command should do the whole process of churning hip -> cuda and then evokes nvcc, etc. (did I get this right?)
But the problem seems to be that the --cuda-gpu-arch (which seems to be a simple alias to --offload-arch), doesn't work:
hipcc --cuda-gpu-arch=sm_80 /home/sampsa/amd/doodles/hip_doodle0/src/vector_add.hip -o pska.o
clang++: error: invalid target ID 'sm_80'; format is a processor name followed by an optional colon-delimited list of features followed by an enable/disable sign (e.g., 'gfx908:sramecc+:xnack-')

If I change to --cuda-gpu-arch=gfx908 (because that's just an alias to --offload-arch=gfx980) it start compiling at least.
Related: ROCm/ROCm#2975
So to conclude: --offload-arch is broken?

I experienced similar issues, and I'm honestly not sure what fixed it. I have Ubuntu 22.04.5 with ROCm 6.2. The things I've tried:

Installing ROCm 6.2 again from the repository after purging everything
Installing the latest CMake from the Kitware repository
Setting environment variables in the ~/.bashrc (HIP_PLATFORM=nvidia, HIP_COMPILER=nvcc, HIP_RUNTIME=cuda
Getting hipblas from the GitHub repository (I'm not sure if it's relevant)

I'm trying to reproduce the process.


Move derived inputs into sessions named by study

Instead of storing in *_PROC sessions (on XNAT) derived inputs should be stored in separate sessions for each study, e.g. MRH017_001_MR01_MYANALYSIS.
This would allow us to remove the study-name prefix for the derived datasets/fields, although care will have to be take to allow it to remain for sub-study prefixes.
For the local archive, the derived outputs should be stored in separate sub-directories.
This should be a bit neater but will also make it easier to store and retrieve provenance data.
BaseDataset/BaseField objects will need to have an additional 'study' field to specify which study they were derived from and the 'get_tree' methods will need to search for all studies that are listed in the input matches.

This was implemented in #53


STACK

@Prabhasa20 : It would be great if you can add the description along with the issue number.
Feel free to use our contribution guidelines (https://github.com/fnplus/interview-techdev-guide/blob/master/CONTRIBUTING.md) for reference

Awaiting for the description about your commits and the link to an issue

Thanks for contributing!


Migration Verification: Overwrite (delete/add) if an object with this ARK already exists

@jpstroop Behavior here?

I think it should overwrite. Again, maybe log a warning.

Resolved with https://github.com/pulibrary/plum/pull/762


Added the ability to revert to initial value in editor settings.

now it is possible to revert to initial editor settings.

YEEES


Are we allowing iterating over GroupBy?

For example in seaborn we see this:
https://github.com/mwaskom/seaborn/blob/5d9f37159bbd3ac44c8c8a06825583ba25648525/seaborn/_oldcore.py#L1253-L1261
            # Now actually update the matplotlib objects to do the conversion we want
            grouped = self.plot_data[var].groupby(self.converters[var], sort=False)
            for converter, seed_data in grouped:
                if self.var_types[var] == "categorical":
                    if self._var_ordered[var]:
                        order = self.var_levels[var]
                    else:
                        order = None
                    seed_data = categorical_order(seed_data, order)
                converter.update_units(seed_data)

Currently, both pandas and polars allow it: if you iterate of a GroupBy object, you get a tuple where the first element is the key and the second is the subset of the DataFrame corresponding to that key

I'm -1 on including this in a first revision of the standard. This is effectively to allow per group user defined functions and we've generally punted on user defined functions thus far.
This has also been a historical performance footgun in cuDF since you can often run into situations where you have a large number of small groups.

ok sounds good
if seaborn wanted to use the standard, they'd have to do a pretty extensive refactor, though that'd probably benefit them in the long-run anyway

if seaborn wanted to use the standard, they'd have to do a pretty extensive refactor, though that'd probably benefit them in the long-run anyway

How would the example snippet be done without groupby? Getting the unique values, and then iterating over those and in the loop each time filter the data with a mask for equal to that one unique value?

Getting the unique values, and then iterating over those and in the loop each time filter the data with a mask for equal to that one unique value?

Yeah sounds fine

That seems reasonable to me.

sure, let's do that then, thanks


WIP: Spring cleaning (Treant unification, no uuids, .datreant state)

A couple weeks ago @kain88-de and @richardjgowers and I met to discuss some changes I was considering for datreant. These changes include removal of uuids (#135), removal of the concept of different Treant types from the whole library (goes toward #100), and the replacement of a bare state file with a .datreant directory indicating a Treant.
I'd like to store tags and categories in separate files under this scheme, which will require more hacking. Basically, instead of a limb such as Tags storing all its stuff with any other limb's stuff in the same file, it can do what it needs separately. Not sure if this idea will be something we like but toying with it still.
Once the dust settles I'll also add a converter script for putting an existing Treant into the new form.

Status update: this will be a big PR, essentially being a refresh of much of the core library. I went through the list of open issues last night, and the changes we're making here will make many of our older issues either solved or irrelevant. This is similar in effect (though not in scale) to the MDAnalysis topology system refactor, and I'm shooting for consistency throughout the library.
Hang tight; more to come. :D

Codecov Report

Merging #145 into develop will increase coverage by 0.73%.
The diff coverage is 89.74%.

@@             Coverage Diff             @@
##           develop     #145      +/-   ##
===========================================
+ Coverage    75.27%   76.01%   +0.73%
===========================================
  Files           14       14
  Lines         1622     1384     -238
  Branches       355      293      -62
===========================================
- Hits          1221     1052     -169
+ Misses         329      270      -59
+ Partials        72       62      -10

Impacted Files
Coverage Δ

src/datreant/core/limbs.py
88.93% <ø> (ø)
:arrow_up:

src/datreant/core/backends/statefiles.py
100% <ø> (+20%)
:arrow_up:

src/datreant/core/__init__.py
100% <ø> (ø)
:arrow_up:

src/datreant/core/agglimbs.py
84.87% <ø> (-0.08%)
:arrow_down:

src/datreant/core/names.py
100% <100%> (ø)

src/datreant/core/manipulators.py
87.5% <100%> (-1.08%)
:arrow_down:

src/datreant/core/collections.py
67.01% <84.78%> (-0.96%)
:arrow_down:

src/datreant/core/treants.py
78.43% <96.15%> (-5.25%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e33423b...9b67b2c. Read the comment docs.

@dotsdl any progress on this?

@kain88-de been working on-and-off on it. Have a new application to build for work that I think will be MDSynthesis-like, in that it uses Treant as a base-class for a domain-specific object. We use datreant pretty extensively for getting things done there, but I don't have a lot of spare cycles at the moment to work directly on it.
I think when @richardjgowers is here for a week I'll find some motivation to just finish it. Standby. :D

funny the code now works on oython 3.6

The error seems to be with the multiprocessing module. I don't have any experience with it myself. @dotsdl would be nice if you could have a lock

OK I fixed the python 2.7 errors I found as well. But really no clue about the multiprocessing errors. It looks like the processes never finish

Also when I deactivate the multiprocessing tests all the others pass on my development machine.

@dotsdl the failing multiprocess test are most likely caused by a deadlock. Can you point me to the places in the library where locks are used so we can look at the cause.

@kain88-de I'll have a look. Is it out of the question to break python 2.7 support going forward? I'm fine with being a bit cavalier on this.

@kain88-de during my experiments on this branch I made the __setstate__ and __getstate__ methods more complicated than they needed to be. Pickles were occasionally failing on Python 2, as far as I can tell. Looks like tests all pass again now.

Is it out of the question to break python 2.7 support going forward?

A lot of my colleagues are still on py 2.7 so it would be nice if we can keep supporting that for a while. I hope with MDAnalysis now being py3 this can change in the near term future.

Is it out of the question to break python 2.7 support going forward?

A lot of my colleagues are still on py 2.7 so it would be nice if we can keep supporting that for a while. I hope with MDAnalysis now being py3 this can change in the near term future.

I really dislike dropping support for 2.7. In my opinion this is not a user-centered approach. I do understand that developer time is costly and a scarce resource for open source projects. But at least in the sciences we do rely on stability and the Silicon-valley driven "latest/bestest(?) only" really sucks in science. Just my not so humble opinion.

@dotsdl do you want to do more before this is merged?

@kain88-de from discussion with @richardjgowers last week there are a few more things, yes. I'll be able to hammer on this more this weekend, and I'll add the list of things we decided on here for reference and discussion. I promise this PR will end!

Sounds good

@orbeckst don't worry...got Python 2.7 working again. Was a small issue with how pickling was being handled in 2 vs. 3. We won't be dropping support at this time.

@dotsdl and @richardjgowers do you have a list of what is still left todo?

Finished updating docs. Next up is to write a simple converter script for old Treants to new form.

Finished updating docs. Next up is to write a simple converter script for old Treants to new form.

@mimischi there is gonna be a script, I hope I can adjust it to work on a Sim as well.

If we're happy with this, I'm good with merging (finally). Next up will be getting the other PRs that have been waiting in the wings finally in as well.

sure merge ahead


‘for’ loop initial declarations are only allowed in C99 or C11 mode

Description
‘for’ loop initial declarations are only allowed in C99 or C11 mode.
Status
READY

Hi!
Would it possible to recommit your changelist with signoff? i.e. git commit --amend --signoff and repush? This is what is failing the CI

Apologies (I only checked the CI issues before), but would it also be possible to have some description in the commit message of what this change does as well (we don't permit empty commit messages)

Mbed TLS is written in a conservative subset of C99. Declarations after statements and in for loop initializations are part of that subset. So there is no bug here.


[WIP] fix(aws-lambda): fixed lambda error count when using extension

refs 82459

this problem already started with layer version 73 (1.124)

Caused by https://github.com/instana/nodejs/commit/40b555d559d2cd913f8b857b888eb472df06c1d8
71 -> no errors 1.121
72 -> no errors 1.121
73 -> 1.124 -> errors
79 -> errors
80 -> errors
88 -> 1.133.0 -> errors
87 -> 1.132.0 -> errors
94 -> errors
We can see in the reproduction scenario that the timeout gets triggered with negative remaining millis.

Heuristical timeout detection was triggered with -6328 milliseconds left.

And we run into this error:

> 2021-12-20T14:02:10.847Z [ERROR] instana-lambda-extension.transport: Error in transport.: err="Post "https://serverless-magenta-saas.instana.rocks/bundle": POST https://serverless-magenta-saas.instana.rocks/bundle giving up after 1 attempt(s): context deadline exceeded"
2021-12-20T14:02:10.847Z [ERROR] instana-lambda-extension.transport: Error in transport.: err="Post "https://serverless-magenta-saas.instana.rocks/bundle": POST https://serverless-magenta-saas.instana.rocks/bundle giving up after 1 attempt(s): context deadline exceeded"

giving up after 1 attempt (we have configured 3 allowed attempts)
context deadline exceeded
"Context Deadline Exceeded is an error occurring in Go when a context of an HTTP request has a deadline or a timeout set, i.e., the time after which the request should abort. This error is returned if the time of a server response is greater than the set timeout"
instana-lambda-extension.transport: Error in transport
See the client package - it comes from here
Which is used here
The fixes in node.js reduce the problem from 92-94% error count to 99,95%.
We still need to apply a Go fix I guess.
We have seen "Timed out waiting for entry span." too in the logs.
TODO:

[x] Improve GO code

Next steps:

[ ] add opt-out for timeout feature
[ ] tidy up PR

We will first release some node improvements regarding the lambda timeout.
But these won't fully fix the problem. In parallel we will continue with the go improvements.

FYI reverted the lambda extension binary for now
We will update the bin as soon as we have merged the go improvements

I'll squash the commits after review using the following commit msg

fix(aws-lambda): reduced lambda timeout error count when using extension


Download Historical Bhav

Hi, I have included code to downnload historical Bhav Report. Hope it helps. Saeed

this will create overhead to lib


Added angular-controller-form sub-generator

Added angular-controller-form sub-generator
Added contact form router and view
Updated dependencies
Bumped version 0.1.1

Coverage remained the same at 100.0% when pulling 421c13853d1d0cf9af46c327e1399263a9a7dd3b on angular-controller into 96d6dd2ef5fbc7b72be4fe038106868017f8c3fa on master.

Coverage remained the same at 100.0% when pulling 5821eea01d47f2128a6c0b47e098d0afac7538bb on angular-controller into 96d6dd2ef5fbc7b72be4fe038106868017f8c3fa on master.


i18n(zh-cn): update 2-pages/2.mdx & 4-layouts/2.mdx

Description (required)

update 2-pages/2.mdx & 4-layouts/2.mdx

Related issues & labels (optional)

https://github.com/withastro/docs/pull/8318

Closes #

Suggested label:

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

Locale
File
Note

zh-cn
tutorial/2-pages/2.mdx
Localization changed, will be marked as complete.

zh-cn
tutorial/4-layouts/2.mdx
Localization changed, will be marked as complete.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.


Leaflet.draw has Cpu consumption very high

Hello !
I need to draw (or edit) a line/polyline to the map.
So i add points with the draw mode.
But the last move to add the last point is strangely Cpu consumer.
In the embeded browser, draw or edit is blocking because cpu core is at 100%... (ATOM)
But with the classic browser, CPU increase too (25% for one core i7)...
How to reproduce

Leaflet version I'm using: 1.0.3
Leaflet Draw version I'm using: 0.4.9
Browser (with version) I'm using: Chrome or Firefox
OS/Platform (with version) I'm using: Win10 or linux 4.9.0

Minimal example reproducing the issue
With this example : https://leaflet.github.io/Leaflet.draw/docs/examples/full.html
I increase the size to the map in 1600*1200 for increase Cpu consumption.

@Toon34 I'm not sure I follow, there is a lot of computation for geometries but this doesn't really help me identify where the cpu cycles are being used. If you can get a stack trace or dump of the system calls that are taking the most time, we can look at optimization.

Like this ? (in google chrome)

@Toon34 Maybe we should use a different dump site without ads. Too many barriers.

Ok ! So private server ! -> http://tinyurl.com/y7s4ggyn

It looks like all the CPU locking is happening in the message or event queue and rendering processes. These are in C/V8 and hard to track down the specific event that is causing the lockup.
How many points are you adding to the polyline/polygon for it to lock up?

A dozen but the more points the more the cpu increases !


Show No Parking Requirements popup on initial page load

Tony is concerned that we don't explain what you see on the initial page load. We should show a banner, the same that we show when you manually turn off the No Parking Requirements toggle and then turn it back on.

However, we should adjust the copy now that we show these cities by default:

Locations displayed have no parking mandates for all uses. Some exceptions may apply. Click the location for more details.

We decided to not do this. Instead, the counter in the top right explains what you're seeing.


fixed typo in scroll navigation on table doc

Not sure why but this really annoys me every time I see it, lol

@SimulatedGREG I think the correct file to edit would be https://github.com/Dogfalo/materialize/blob/master/jade/page-contents/table_content.html

Fixed in 0f87817


Add Whatsapp support

This will add Whatsapp support.
Given Whatsapp doesn't have a desktop web sharing URL like other
services, we have to do some out-of-the-box implementation here.
Whatsapp sharing URL starts with whatsapp://send, not https://,
which works on mobile but not on desktop (unless you have the Whatsapp Desktop
app). That means it will break for the majority of people on desktop.
To minimize risks, we:

don't add whatsapp by default and leave this decision up
to the developer. If they want to add it, they just need to add whatsapp to
the allow_sites config initializer.
we have a new CSS rule that will hide it on desktop browsers.
Developers are free to override it if they want to show it everywhere.

Extra: added a pt-BR locale file.

it can't work in desktop browser

Yes, it doesn't, reason why it's hidden there and not on by default.

So, merge?


Issue with images when baseUrl has a path

I have set my baseUrl to be: https:example.com/test
This works fine for posts. But for the images under in any post, it still looks for the static repository without the "test".
For example, if I have an image file image.jpg located in the static repository, I can access it using example.com/test/image.jpg. But in the post, the URL is expanded as: example.com/test/image.jpg
Am I missing some setting?

Hi!
Try using canonifyURLs: true in the config file. I did a test, it works.
Ref: https://discourse.gohugo.io/t/solved-generate-wrong-image-relative-url/11726
If this doesn't help, add an example of how you add images to the post.
Also,  links to the image are the same in your comment.

That fixed it, thanks.


Press book to crash ("Flaxbeard's Steam Power"'s ingame manual, library screen)

Hi, I got this crash while accesing a mod's ingame manual by clicking on it at the "Library" enchiridion screen.
"java.lang.NullPointerException: Updating screen events
at flaxbeard.steamcraft.integration.EnchiridionIntegration.findBook(EnchiridionIntegration.java:43)
at flaxbeard.steamcraft.gui.GuiSteamcraftBook.(GuiSteamcraftBook.java:92)
at flaxbeard.steamcraft.gui.SteamcraftGuiHandler.getClientGuiElement(SteamcraftGuiHandler.java:56)
at cpw.mods.fml.common.network.NetworkRegistry.getLocalGuiContainer(NetworkRegistry.java:263)
at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:93)
at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2209)
at flaxbeard.steamcraft.item.ItemSteamcraftBook.func_77659_a(ItemSteamcraftBook.java:24)
at joshie.enchiridion.library.handlers.DefaultBookHandler.handle(DefaultBookHandler.java:16)"
Any chance it may be fixed from your side of the fence, or should I tell the mod maker?
Here's the full details: http://pastebin.com/6x5CbRFA
Give me a yell should you need more info, happy to help :)

I wonder why it would be calling the ench1 integration? They have seperate mod ids. Try changing it's type to switch in the library books json, if that fails try changing it to network.

Any word @DanNetwalker

Sorry, trapped in real life. I'll try it and reach you back.
In fact, I have both enchiridion and enchiridion 2 installed. Whould that be related?

Nah. They should both work fine together.


feat: support xinference rerank model

What problem does this PR solve?
support xinference rerank model
#1455
Type of change

[ ] Bug Fix (non-breaking change which fixes an issue)
[x] New Feature (non-breaking change which adds functionality)
[ ] Documentation Update
[ ] Refactoring
[ ] Performance Improvement
[ ] Other (please describe):

what is the base url for rerank model of xinference?

what is the base url for rerank model of xinference?

There is always an error "Fail to access model(bge-reranker-v2-m3).'results'", any ideas?
The xinference API works well, because i tested with postman.
BTW, the embedding models work well too.
What's wrong with the rerank models?

You need to add a rerank directory to the address, like this: http://host:port/v1/rerank.

You need to add a rerank directory to the address, like this: http://host:port/v1/rerank.

it not works at xinference:v0.15.3


error in building the docker image

Problem encountered on https://dotnet.microsoft.com/learn/aspnet/microservice-tutorial/docker-image
Operating System: windows
getting error while building the docker from windows 10
Sending build context to Docker daemon  14.85kB
Step 1/5 : FROM mcr.microsoft.com/windows/servercore:ltsc2019
ltsc2019: Pulling from windows/servercore
no matching manifest for linux/amd64 in the manifest list entries

@rowanmiller I believe you own this tutorial. Do you have any contacts that could help with these instructions specifically?
@MichaelSimons if you get a chance, would you mind sharing your knowledge in case you happen to know what could cause this issue?

@yugandharmacherla - it appears that you are trying to build a Windows based Dockerfile within a Linux container environment.  This is not supported.  See Docker's Get started with Docker for Windows guide for details on how to switch the container mode on Windows.

Hi @yugandharmacherla, I'm assuming you've resolved your problem as we haven't seen a response for 8 days. I'm closing the issue, but if you're still having a problem please feel free to add more detail and re-open.


Enhance ability to use client to make authenticated requests

add ProviderInterface::getHeaders()
use getHeaders() for fetchUserDetails()

Some providers do not provide a method for using query strings to send tokens.
By adding hooks for headers, the provider can be used to sign API requests,
including POST requests.

Coverage decreased (-29.46%) to 70.35% when pulling 4c8e16e6a83860a2a9b721e9f573aad21e92f619 on shadowhand:provider-get-headers into a86dbd4e582acb2e6fb78cec68923dc27c26f86c on thephpleague:master.

I wasn't sure what to do about the Microsoft provider, the only reference I found for an Authorization header was in this article about CRM but I am unsure if that applies to all of Microsofts APIs.

Coverage increased (+0.19%) to 100.0% when pulling c76bc96c9688b0e653fbd9df4985e81a37c14238 on shadowhand:provider-get-headers into a86dbd4e582acb2e6fb78cec68923dc27c26f86c on thephpleague:master.

@ramsey if possible, I would really appreciate if this could be looked at today, as this is a critical part of our ability to use the League OAuth clients. Same goes for thephpleague/oauth1-client#18. Thank you!

I am traveling. I will try my best to look at it today.

On Mar 2, 2015, at 10:25, Woody Gilk<EMAIL_ADDRESS>wrote:
@ramsey if possible, I would really appreciate if this could be looked at today, as this is a critical part of our ability to use the League OAuth clients. Same goes for thephpleague/oauth1-client#18. Thank you!

Reply to this email directly or view it on GitHub.

Thanks!


CD pipeline using Github actions

https://engineering.talkdesk.com/test-and-deploy-an-ios-app-with-github-actions-44de9a7dcef6

have now got xcode cloud and bitrise hooked up, probably don't need anymore!