Alternative to using Vite for dev server?

Is your feature request related to a problem? Please describe.
Yes. Whenever I run a dev server, Vite is used under the hood. Unfortunately, Vite actually runs not only a HTTP server on port 3000, but also a web socket server on port 24768 or something (I can't remember exactly). This is problematic in many situations.
Anyone using ngrok or localtunnel will be unable to use svelte-kit altogether since these services can only work with one port. If you are not aware of these services, they allow you to access your local web server from an SSL domain. They are commonly used to test a website on another device, or, in my case, to use certain APIs that are restricted to SSL domains (and can't be used on localhost), for example Google OAuth apis.
This means I have no way of integrating Google OAuth into my svelte-kit application. My only option is to rewrite my app with something else such as React, but I'd much prefer to keep using svelte-kit since it's the best framework I've ever used.
Describe the solution you'd like
There are a few options that could solve the above problem.

An alternative dev server option that doesn't use Vite under the hood. For example it could be the same as the production server (however with some dev stuff enabled such as source maps), attached to a watcher to re-build and re-run when files change.
A mechanism for hooking up a custom dev server (I'm not sure how something like this would be implemented).

Describe alternatives you've considered
I was trying to do the following as a temporary hack, however for some reason it isn't working, and even if it does work it would be incredibly slow:

nodemon --exec \"npm run build && npm run preview

Another alternative could be to open an issue with Vite to add an option to run the websocket server on the same port.
How important is this feature to you?
Relatively important. It is only for a personal project, but I would really like to make progress on it.

Not sure why the insist to use custom domain for Google OAuth's local testing. I've personally done Google/Facebook/LinkedIn OAuth integrations, they do support localhost testing. For more details, please refer to https://developers.google.com/identity/protocols/oauth2/web-server on how to enable localhost whitelisting.

Closing as there are ways as @cayter pointed out. I don't see a future where SvelteKit is decoupled from Vite.

@cayter I just found that out myself not long before you left that comment. Thanks anyway. I wish I had tried that from the start instead of assuming I couldn't.
@dummdidumm Ok. There could be other reasons to use an alternative dev server than my specific scenario, but if decoupling from Vite is not feasible then that's fine. At least my own problem is solved :)


add specs for python integration

Python-Rust integration specs
Description
Description of the pull request changes and motivation.
Checklist

[ ] Linked to Github Issue
[ ] Unit tests added
[ ] Integration tests added.
[ ] This change requires new documentation.

[ ] Documentation has been added/updated.

Codecov Report

Merging #435 (2427330) into main (a0f080c) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #435   +/-   ##
=======================================
  Coverage   96.66%   96.66%
=======================================
  Files          54       54
  Lines        9124     9124
=======================================
  Hits         8820     8820
  Misses        304      304

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Implement volar-service-langium package

This would make it possible to define a new language with langium and use it through volarjs.
Langium is a DSL design-language, or general language definition language. This might be usefull for those who want to implement their own programming language, with its own syntax, and still make use of Volar and all its capabilities (for example embedding languages together).

Interesting, PR welcome!


[New chain]: Redstone Garnet Testnet

Summary
https://github.com/ethereum-lists/chains/blob/master/_data/chains/eip155-17069.json
Chain ID
17069
Chain detail URL
https://chainlist.org/chain/17069
RPC URL
https://rpc.garnetchain.com
Blockscout Client URL
https://api.explorer.garnet.qry.live/api/v1/graphql
Etherscan Client URL
No response
Etherscan Client API URL
No response
Version
1.3.0
Address (Master copy)
0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552
Deployment Tx hash (Master copy)
0x84a0f0835005ca32b146dc0319540e13cd2c664240e8bd2ebddd4da3cefc7df3
Block explorer URL (Master copy)
No response
Address (Master copy L2)
0x3E5c63644E683549055b9Be8653de26E0B4CD36E
Deployment Tx hash (Master copy L2)
0x9cd3e199eb07a16d51892e5750dbe4395bb979afaa419d891a1d4ffb54263789
Block explorer URL (Master copy L2)
No response
Address (Proxy factory)
0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2
Deployment Tx hash (Proxy factory)
0xd77694e465570e39834ec705ed020aba3c7596fa60205e65b940d37bbf8ce64d
Block explorer URL (Proxy factory)
No response

Hello guy :wave:
It seems the validation for blockscout client isn't good enough:

/execute


error null reference in get request from dapp exchange intro file Sto…

…re method Set property map

I was programming an inter-voltage connection that I wrote myself with a dapp exchange like pancakeswap, and when I received the eth_sendTransaction event, I was getting an error and I couldn't continue, and the system didn't react at all, that's why I started debugging your system and realized the problem. I think it is because of the new system of Asp .net 8 about enable that this feature has created the issue.
However, I know that this small change can help solve the problem.

I am trying to understand why the map is null for you. It is automatically initialized with an empty dictionary when an instance of the Store object is created, even before Init() is called. The map is set to null only in the Dispose() method. This makes me think that you are trying to access the store after it has been disposed.
While your suggestion fixes the error message, you may encounter more issues later because you are operating on a disposed Store.
Could you share your code or explain how you initialize the SDK and handle session requests?

I am programming in blazor webassembly application

And I get this error
Debugging hotkey: Shift+Alt+D (when application has focus)
[MONO] /__w/1/s/src/mono/mono/metadata/icall.c:6177
[MONO] /__w/1/s/src/mono/mono/metadata/icall.c:6186
(null)
Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at WalletConnectSharp.Core.Controllers.Store2[[System.Int64, System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[WalletConnectSharp.Sign.Models.PendingRequestStruct, WalletConnectSharp.Sign, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null]].Set(Int64 key, PendingRequestStruct value)    at WalletConnectSharp.Sign.Engine.WalletConnectSharp.Sign.Interfaces.IEnginePrivate.SetPendingSessionRequest(PendingRequestStruct pendingRequest)    at WalletConnectSharp.Sign.Models.SessionRequestEventHandler2.d__6[[BlazorApp1.Pages.Home.EthGetTransactionReceiptWrapper, BlazorApp1, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null],[BlazorApp1.Pages.Home.EthSignTransactionResponse, BlazorApp1, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null]].MoveNext()
at WalletConnectSharp.Sign.Models.TypedEventHandler2.<RequestCallback>d__34[[WalletConnectSharp.Sign.Models.Engine.Methods.SessionRequest1[[BlazorApp1.Pages.Home.EthGetTransactionReceiptWrapper, BlazorApp1, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null]], WalletConnectSharp.Sign, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null],[BlazorApp1.Pages.Home.EthSignTransactionResponse, BlazorApp1, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null]].MoveNext()
at WalletConnectSharp.Core.Controllers.TypedMessageHandler.<>c__DisplayClass18_02.<<HandleMessageType>g__RequestCallback|0>d[[WalletConnectSharp.Sign.Models.Engine.Methods.SessionRequest1[[BlazorApp1.Pages.Home.EthGetTransactionReceiptWrapper, BlazorApp1, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null]], WalletConnectSharp.Sign, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null],[BlazorApp1.Pages.Home.EthSignTransactionResponse, BlazorApp1, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null]].MoveNext()
--- End of stack trace from previous location ---
at System.Threading.Tasks.Task.<>c.b__128_1(Object state)
at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.ThreadPool.BackgroundJob

And this is my code

@page "/"
@using Newtonsoft.Json
@using WalletConnectSharp.Common.Utils
@using WalletConnectSharp.Network.Models
@using WalletConnectSharp.Sign
@using WalletConnectSharp.Sign.Models
@using WalletConnectSharp.Sign.Models.Engine.Events
@using WalletConnectSharp.Storage
Home
Hello, world!
@if (dataset)
{

}
Welcome to your new app.
@code
{
public string? Uri { get; set; }
public static string? Uris { get; set; }
static readonly string words = "....";
Wallet? wallet;
static Account? account;
WalletConnectSignClient? client;
ProposalStruct? proposalStruct;
Engine? engin;
bool dataset;
public Dictionary<int, string>? ChainList { get; set; }
}
@functions
{
protected override async Task OnInitializedAsync()
{
ChainList = new Dictionary<int, string>()
{
{ 56, "https://binance.llamarpc.com" },
{ 97, "https://endpoints.omniatech.io/v1/bsc/testnet/public" },
{ 11155111, "https://endpoints.omniatech.io/v1/eth/sepolia/public" },
};
dataset = false;
await InitData();
}
private async Task InitData()
{
    wallet = new Wallet(words, null);
    account = wallet.GetAccount(0);

    var dappOptions = new SignClientOptions()
        {
            ProjectId = "....",
            Metadata = new Metadata()
            {
                Description = "An example dapp to showcase WalletConnectSharpv2",
                Icons = new[] { "https://walletconnect.com/meta/favicon.ico" },
                Name = "WalletConnectSharpv2 Dapp Example",
                Url = "https://walletconnect.com",
            },
            Storage = new InMemoryStorage(),
            Name = "my-app",
        };

    client = await WalletConnectSignClient.Init(dappOptions);
    dataset = true;
}

public async Task OnConnectUrl()
{
    if (client != null)
    {
        try
        {
            client.PendingRequests.Dispose();
            client.SessionProposed += SessionProposed;
            proposalStruct = await client.Pair(Uri);
        }
        catch (Exception e)
        {
            Console.WriteLine(e);
        }
    }
}

private async void SessionProposed(object? sender, SessionProposalEvent e)
{
    string[]? manespacesMethods = e.Proposal.OptionalNamespaces.Values.Select(s => s.Methods).FirstOrDefault();
    engin = sender as Engine;
    if (engin != null && client != null && account != null)
    {
        engin.SessionRequestEvents<EthGetTransactionReceiptWrapper, EthSignTransactionResponse>().OnRequest += OnRequestEthGetTransactionReceiptWrapper;
        var approveData = await client.Approve(e.Proposal, new[] { account.Address });
        await approveData.Acknowledged();
    }
}

private async Task OnRequestEthGetTransactionReceiptWrapper(RequestEventArgs<EthGetTransactionReceiptWrapper, EthSignTransactionResponse> requestData)
{
    try
    {
        var chainId = int.Parse(client.AddressProvider.DefaultChainId.Split(':')[1]);
        var ethGetTransaction = requestData.Request.Params.FirstOrDefault();
        var account = new Account(Home.account.PrivateKey);
        Web3 web3 = new(new Account(account.PrivateKey), url: ChainList[chainId]) { TransactionManager = { UseLegacyAsDefault = true, } };
        var tx = new TransactionInput()
            {
                Data = ethGetTransaction.Data,
                From = ethGetTransaction.From,
                To = ethGetTransaction.To,
                Gas = new HexBigInteger(ethGetTransaction.Gas),
                Value = new HexBigInteger(ethGetTransaction.Value),
                ChainId = new HexBigInteger($"0x{chainId}")
            };
        var receipt = await web3.Eth.TransactionManager.TransactionReceiptService.DeployContractAndWaitForReceiptAsync(tx);
        await engin.Respond<EthGetTransactionReceiptWrapper, EthSignTransactionResponse>(requestData.Topic, new JsonRpcResponse<EthSignTransactionResponse>(requestData.Request.Id, new Error(), new EthSignTransactionResponse(receipt)));
        requestData.Response = receipt;
    }
    catch (Exception e)
    {
        Console.WriteLine(e);
    }
}

[RpcResponseOptions(Clock.ONE_MINUTE, 99999)]
[JsonConverter(typeof(ConvertToStr<TransactionReceipt>))]
public class EthSignTransactionResponse
{
    private readonly TransactionReceipt _response;

    public EthSignTransactionResponse(TransactionReceipt response)
    {
        _response = response;
    }

    public static implicit operator EthSignTransactionResponse(TransactionReceipt response)
    {
        if (response == null)
            return null;

        return new EthSignTransactionResponse(response);
    }

    public override string ToString()
    {
        return _response.BlockHash;
    }
}

public class ConvertToStr<T> : JsonConverter where T : class
{
    public override bool CanConvert(Type objectType)
    {
        return objectType == typeof(string) || objectType == typeof(T);
    }

    public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
    {
        // Deserialize the value as usual
        return serializer.Deserialize<string>(reader) as T;
    }

    public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
    {
        serializer.Serialize(writer, value.ToString());
    }
}
[RpcMethod("eth_sendTransaction"), RpcRequestOptions(Clock.ONE_MINUTE, 99999)]
public class EthGetTransactionReceiptWrapper : List<EthGetTransaction?>
{
}

public class EthGetTransaction
{
    [JsonProperty("from")]
    public string? From { get; set; }

    [JsonProperty("to")]
    public string? To { get; set; }

    [JsonProperty("data")]
    public string? Data { get; set; }

    [JsonProperty("gas")]
    public string? Gas { get; set; }

    [JsonProperty("value")]
    public string? Value { get; set; }
}

}

@MassoudKargar I believe the issue might be in your OnConnectUrl method, specifically with disposing client.PendingRequests. You should dispose the client when it is no longer needed and don't dispose individual parts of the client.

I did not understand exactly, can you give me a sample code or give an example please?

@MassoudKargar
public async Task OnConnectUrl()
{
    if (client != null)
    {
        try
        {
            client.PendingRequests.Dispose(); // ← REMOVE
            client.SessionProposed += SessionProposed;
            proposalStruct = await client.Pair(Uri);
        }
        catch (Exception e)
        {
            Console.WriteLine(e);
        }
    }
}

Thanks, the problem is solved, but I don't remember why I used such a code.
But I have another problem and thank you for your help.
I have a problem with the response for the OnRequestEthGetTransactionReceiptWrapper method for the eth_sendTransaction event. Is it possible for you to give me an example?
I get this error on pancakeswap.finance service
Swap failed: Unknown error: "Request expired. Please try again.". Try increasing your slippage tolerance.
Dismiss

@MassoudKargar could you please open an issue? In the issue please specify if you're building a wallet or an app.


Show date in Builds list.

Describe the solution you'd like
When looking at my Builds list, the dates are shown as 1 day/month/year ago.
I would like to see the actual date of the build to help me track down an issue.
Describe alternatives you've considered
Include the date as a greyed out subtitle under the current date.
2 days ago
10/10/2019 13:20
Additional context

Thanks for the feature request @c-lamont. I understand how having the date visible and not having to do the calculation yourself is helpful.
FYI @baileybrooks @plainspace


nixpkgs-hammering: unstable-2023-11-06 -> unstable-2024-03-25

Description of changes
Fixes https://github.com/jtojnar/nixpkgs-hammering/commit/1e799b6cdba138c0d8497268865e33b179376719
Otherwise nixpkgs-hammering won't works since python3Packages.setuptools-scm-git-archive has been marked as broken
Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] 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
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 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.

Add a :+1: reaction to pull requests you find important.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/3780


Git icon is just an empty square

git icon is just a square box, I am using hyper terminal and have Fira Code font enabled on my MBP

Hi!
in my case it just shows me this icon

how can i fix it?

i fix it, you should set use Powerline Font and use Meslo LG M DZ for Powerline on your terminal settings ✌🏽

Just solved this issue following what @oteka21 suggest. You can find the fonts here and just download and install it. Don't forget to configure with whatever your terminal is.

Please read the documentation before creating issue. Powreline requirement is documented and has several duplicate issues.

docs/Options.md#git

Variable
Default
Meaning

SPACESHIP_GIT_SYMBOL

Character to be shown before Git section (requires powerline patched font

From our Troubleshooting.md#whats-the-weird-symbol-for-git-branch,

What's the weird symbol for git branch?
You need to have a powerline patched font in order to properly display git branch symbol.

Install any powerline compatible font like Fira Code or others.
Configure your terminal emulator to use that font.


Fix getLCA

This PR fixes the getLCA(...) function. The problem was that it was previously not considering the source node to potentially be a LCA.
Fixes #227

The problem was that it was previously not considering the source node to potentially be a LCA.

That's because the source node cannot be LCA - it's in the name: Lowest Common Ancestor. A node itself cannot be its own ancestor.
I'm not questioning the changes though - because I don't understand them yet. However, If those changes are required/correct then the containing function should be renamed.
Could you go into more detail about what was happening and how it got fixed? From the screenshot it's not really obvious - this is how this is being rendered on production, right? Could you also depict how this is rendered after your changes? Attaching a source code for this machine would also be helpful in understanding what this machine is doing and which part of it gets rendered in a confusing manner.

The problem was that it was previously not considering the source node to potentially be a LCA.

That's because the source node cannot be LCA - it's in the name: Lowest Common Ancestor. A node itself cannot be its own ancestor.
I'm not questioning the changes though - because I don't understand them yet. However, If those changes are required/correct then the containing function should be renamed.
Could you go into more detail about what was happening and how it got fixed? From the screenshot it's not really obvious - this is how this is being rendered on production, right? Could you also depict how this is rendered after your changes? Attaching a source code for this machine would also be helpful in understanding what this machine is doing and which part of it gets rendered in a confusing manner.

Did you see the linked issue? https://github.com/statelyai/xstate-viz/issues/227


page-to-pdf doesn't work when used from iOS

I am thinking this may be expected, but page-to-pdf does nothing when invoked from iOS.  Both Safari and Chrome were tested.

Still see this on iPad as well. Is there any chance for a solution or workaround?


Switch to ionic storage

Should be simple since they use localforage anyway

nm - see https://www.joshmorony.com/building-a-pwa-with-stencil-storage-and-services/


add support for html-webpack-plugin v5

version 5 of html-webpack-plugin has been out for some time now, can you please add support for it and update the restrictions in package.json

@mfinelli
Thank you for telling me.

@mfinelli
I released a new version(v3.0.0).
Please try it.
I'm sorry, but this version contains some breaking changes.

@negibouze version 3 is working perfectly for me, thanks for the quick update.
Regarding the breaking changes, I'm not sure that you need to set minify: false for the html-webpack-plugin. It works for me with minify true, though maybe there's something else about my setup that makes it work? Happy to help you debug it if needed.


Adding Aliases to service spec's network attachment config

Signed-off-by: Madhu Venugopal<EMAIL_ADDRESS>

ping @aluzzardi @mrjana @stevvooe

LGTM on protobuf.

LGTM

LGTM

Before merging, this should have included an implementation. Please stop merging unused fields. !

@stevvooe I thought we were reviewing api separately and merging. May be as a protocol we should not LGTM if we don't this to be merged as is.

LGTM on protobuf.


Validation layer for xrEnumerateViewConfigurations incorrectly applies validation to the output buffer

xrEnumerateViewConfigurations is a two-call-idiom function.  A simplified example of using it is....
    uint32_t viewConfigurationTypeCountOutput = 0;
    uint32_t viewConfigurationTypeCapacityInput = 0;
    xrEnumerateViewConfigurations(instance, systemId,  viewConfigurationTypeCapacityInput, &viewConfigurationTypeCountOutput, nullptr));
    std::vector<XrViewConfigurationType> output;
    output.resize(viewConfigurationTypeCountOutput);
    viewConfigurationTypeCapacityInput = viewConfigurationTypeCountOutput;
    result = xrEnumerateViewConfigurations(instance, systemId,  viewConfigurationTypeCapacityInput, &viewConfigurationTypeCountOutput, output.data()));

However, this code is triggering a validation error, because the validation logic is trying to verify that the contents of the output buffer are valid enums before  the call to the implementation.  However, calling output.resize() here default initializes the new values to 0, which is not one of the valid XrViewConfigurationType enums.
While it may be reasonable to check the structure type and chain information for output buffers that return extensible structures, it's not reasonable to check other members, or in the case of enums like this to check the enum value for an output buffer.  That data is specifically intended to be overwritten.

closed by #138, not sure how I missed closing it.


Based on the customer feedback

Hi @alkohli, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Alpa Kohli). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;


Tutorial readme

Closes https://github.com/flatironinstitute/Cryo-EM-Heterogeneity-Challenge-1/issues/27


[announce] Post announcements to Reddit

https://www.reddit.com/dev/api/

I'm already half way through implementing it. Expect a PR soon 😁

@helpermethod were you able to continue with this feature? Need any help?

Hi @aalmiray, started implementing it, god carried away, and then lost track what to do next 😄 .
Probably best to restart from scratch. Do you want to take over?

@helpermethod the reason why I didn't work on this feature is that I got confused about the requirements for getting API access to Reddit thus I can't test it for real 😓

I managed to test this with Postman and a generated access token. It's basically similar to Twitter. I'll see if I can find an example.


Links and Threads Not Working

Hello,
I've had Isso running for a few months now and love it, but I have one issue that I cannot seem to solve myself. My blog, https://blog.joshsullivan.io/ is hosted on https://blot.im/ a SSG, so I do not host the blog on a server myself and therefore Isso cannot be served as blog.joshsullivan.io/isso/. I instead created an Isso instance on a VPS at isso.joshsullivan.io but now links in Isso Admin point to https://isso.joshsullivan.io/correct-ending-of-url and the threads in Isso admin don't work at all, I assume because it is trying to find the comment path at the isso.joshsullivan.io address instead of the blog.joshsullivan.io.
Is there any way to correct this so threads and links in the admin panel work correctly?
I've set the hosts to
https://blog.joshsullivan.io/
http://blog.joshsullivan.io/
https://isso.joshsullivan.io/
http://isso.joshsullivan.io/

Cheers,
Josh

At the moment, isso only stores relative URLs for threads - it is not multi-site-aware.
The client only sends the pathname, see api.js.
If you want to change that behaviour, you will have to account for people already using isso:
Either, make a migration script for existing entries in the database to use the full URL, or write a clause for both cases, something like this (pseudo-code):
client:
host = window.location.host;
pathname = window.location.pathname;

Example thread for this purpose: blog.joshsullivan.io/my-thread
Hosts in config: https://blog.joshsullivan.io/, http://blog.joshsullivan.io/
server:
def sanitize_host(hostname):
    return hostname.lstrip("http://").lstrip("https://").rstrip("[\w]/")

hosts = list(set(map(sanitize_host, hosts)))

thread_host = get_from_request_params("host")
thread_uri = get_from_request_params("pathname")

if get_from_db(thread=thread_uri, host=thread_host):
    return_comments_and_stuff

# Legacy
for host in hosts:
    if get_from_db(thread=thread_uri, host=host):
        return_comments_and_stuff()
        break

This is the workaround I use for now
https://github.com/ix5/isso/commit/bc6f0a0cf24f3ef038ee5a14b837d76e065b677a
With a monkey-patched embed.min.js:
i=function(){return window.location.host+window.location.pathname}
[...]
o.fetch(l.getAttribute("data-isso-id")||location.host+location.pathname

Did you try to submit a pull request about this?

The way I described in this thread is not suitable for prime time.

Reference: https://github.com/posativ/isso/pull/711#issuecomment-788161527
Let's continue the discussion here better.
I am with the same issue as @joshcsullivan but in this case is related to issue that would have the main site if I embed the Isso as a sub-path with entries and other urls.

Isso should prepend the value of the (first) host from the [general] config section to comment.uri.
https://github.com/posativ/isso/blob/5ad5a08a7369e11363fb779360eba81b9f25c892/isso/templates/admin.html#L81

I have public-endpoint set to comments.masfloss.net and host to masfloss.net. If I don't set public-endpoint, I have an issue with CORS rendering the masfloss.net site.
In the admin page I see the reference to every blog entry in masfloss.net as comments.masfloss.net/whatever-entry instead of masfloss.net/whatever-entry

I'm sorry, I wasn't being clear when I said "isso should"; I meant that we should change isso to act that way.
You said you "[..] don't know how to solve this issue since [you] don't understand the structure of Isso at all."
The two files I posted should give you a good starting point to fix this issue:

Look for the conf.general.host value
Pass it to the template
Prepend {{ host }} to {{comment.uri}}

Closing as duplicate as this is very similar to #647
Please continue discussions there


Improve code example in readme.md

Bug fix: It wouldn't display the "Press escape to exit" message initially (made me believe it's not working at all).
Code quality: move the FSArray to an initialization function so it can be called before loop and after pressing Space, making sure the program has the same clean slate in both situations.

I agree a function is a distraction, but the kind of duplicate code needed to make the example work as expected is a distraction, too.
How about removing the SPACE case? Removes the duplicate code, and it's not really necessary for an example: anybody who needs a clean scree can simply exit and restart the program.

I agree a function is a distraction, but the kind of duplicate code needed to make the example work as expected is a distraction, too.
How about removing the SPACE case? Removes the duplicate code, and it's not really necessary for an example: anybody who needs a clean scree can simply exit and restart the program.

Accepted, manually merged. Thanks!

Accepted, manually merged. Thanks!

https://github.com/bpython/curtsies/commit/1aa3f6ad8e4febeccfdd4c77c8e55143261ec996

https://github.com/bpython/curtsies/commit/1aa3f6ad8e4febeccfdd4c77c8e55143261ec996


add: rasel9t6

Description
Add profile
Related Issues

Changes Proposed
add profile details in json file and added file name in profilelist file.
Checklist

[ ] I have read and followed the Contribution Guidelines.
[ ] All new and existing tests passed.
[ ] I have updated the documentation to reflect the changes I've made.
[ ] My code follows the code style of this project.
[ ] The title of my pull request is a short description of the requested changes.

Screenshots
Note to reviewers

@rasel9t6 Thank you so much for your contribution! Your efforts are greatly appreciated and will go a long way in improving our project. Please feel free to share it with others and help us grow even further!


Some borels wont register as submitted after filling them in

For example see Bachus Bingo Borrel by Sigma onthe 23rd of november.
It won´t save what the user fills in and if an admin fills it in it will remember it but won´t change the submitted status

Hey Mira,
I just tried out what you said with an account that has no permissions (other than viewing the borrel form of course) and it did save it. Do you have another example of when this occurred?


Add MathML Core

https://www.w3.org/TR/mathml-core/
https://www.igalia.com/2021/10/19/Announcing-the-MathML-Core-Support-Collective.html

For distinction to MathML:

https://www.w3.org/TR/mathml-core/#introduction
https://www.igalia.com/chats/mathml-core-collective#:~:text=specs back in those days were a lot more aspirational. ff.

Maybe there is a discussion to be had if this should be it's own entry, but I would argue for yes, because way more standardized.

Shipping in Chrome 106: https://chromestatus.com/feature/5240822173794304


[FEAT] Missing Option for Drawing Straight Lines in Menu

Describe the bug
A user has reported that the Draw-it-Out website does not include an option for drawing straight lines in the menu.
To Reproduce
Steps to reproduce the behavior:

Go to the Draw-it-Out website.
Click on the menu button.
Navigate through the options.
Observe that there is no option for drawing straight lines.

Expected behavior
Users expect to find an option in the menu that allows them to draw straight lines.
Additional context
The absence of the straight line drawing option is limiting users' ability to create precise diagrams and shapes. This issue may impact the usability and functionality of the Draw-it-Out application.

hey @singodiyashubham87
Can you please assign me this issue under ssoc24

@singodiyashubham87 If somehow the author is not interested with this feature later, or finds any better feature to work on...In that case, I am willing to work on this feature under SSOC'24.

@Atanu789 Assigned you the issue, Best of Luck :)


Error: Apigee Remote Proxy not found at: CONFIGURED

Running on Windows 8 in MingW32 git bash.
When following the instructions in the readme I'm stuck on step 5 $ a127 project start, where I receive the above error message.
I'm new to Apigee so I'm not sure if that's something related to my environment or if I'm just missing something obvious. I've noticed a mismatch of parameters (secrets.js) described in step 3, but I'm  neither sure is this is related to the error message nor which values should be filled in.
// create an account at https://enterprise.apigee.com
// deploy the apigee remote proxy to your account
// and fill in the details below
exports.apigee = {
  organization: '',
  uri: '', // remote proxy url ??
  key: '', // remote proxy key ??
  secret: ' ', // remove proxy secret ??
  user: ',
  password: ''
};

Hey! Sorry for the trouble. We recently updated the way that you connect to the Apigee service and apparently missed updating this sample. I'll take a look ASAP, but in the meantime, it would probably be better to take a look at this updated example: https://github.com/apigee-127/a127-samples/tree/master/weather-advanced.

Thanks for the pointer, I'll give that a try. By glancing through the weather example it seems to be different than this one as only the proxy endpoint can be optionally secured by OAuth.
What I'm looking for is an example where the backend (O365 Active Directory App in my case) is secured by OAuth and the remote proxy uses the app key/id to authenticate against it.

Ok. I've update the README and the swagger.yaml to match our new process. Really, it's just a change in how configuration works: We are now using what we are calling "Services" to represent the configuration of an external service. So instead of automatically creating a proxy for Apigee Accounts, you will just need to create a service called "RemoteProxy" and bind it to your application. The Swagger.yaml change is simply to rename the configuration fields.

Thanks. That did it.

Fantastic!


Error when viewing .gql file

[Error - 12:36:21 PM] Server initialization failed.
Message: Request initialize failed with message: Could not find a .gqlconfig file. Create a .gqlconfig file in project root directory.
Code: -32603

@yurigenin thank you for the report. I forgot to mention this in the readme. The playlyfe/gql package requires a .gqlconfig file to function. I'll make some changes soon.

Related issue: https://github.com/Microsoft/vscode/issues/2793

Related issue: https://github.com/Microsoft/vscode/issues/6858#issuecomment-221801714

I think it'll be "properly" fixed only when v8 ships with lookbehind support: http://v8project.blogspot.in/2016/02/regexp-lookbehind-assertions.html?m=1

Hey @kumarharsh, awesome extension! Thanks a lot for your work.
I am wondering what the .gqlconfig file should look like?
I think all I'm getting from the extension is syntax highlight and a couple snippets, but not the rest.

@ackzell - the .gqlconfig file is actually needed by the @playlyfe/gql plugin this is based off. The .gqlconfig is a JSON-ish file with only one key which is required: schema.files which is the path to your *.gql files relative to your workspace root.
example:
/* .gqlconfig */
{
  schema: {
    files: "schemas/**/*.gql"
  }
}

Great, thanks.
I went into the @playly/gql project but couldn't find the syntax.
Works like a charm!

I recommend these instructions and the example .gqlconfig are moved to the readme file, just spent a massive amount of time only trying to configure the plugin

@afduarte I completely agree. I just haven't found time this week for this. I'll push an update as soon as I get some time (probably tomorrow).

Should I just submit a Pull Request? I'll do it if I have time

Sure, that'd be great


SourceMap missing when running ng test with code coverage

[x] bug report

Versions.
@angular/cli: 1.0.0-rc.1
node: 6.9.5
npm: 3.10.1
OS:  Windows (7/8/10)
When testing with angular cli, I have found that sourcemapping on all sourcefiles are missing, when using code coverage.
To reproduce:

Generate a new project with the cli.
Run ng test.
Go to the "Debug" page and inspect.
Look up app.component.ts
Everything sourcemapping should work.

Now repeat those steps , but instead of running  ng test use ng test --code-coverage
This time the sourecemapping is missing.
I have made a demo project in which you can use npm run test and npm run test-code-coverage to reproduce the issue.
A possible solution is mentioned in this answer (however only if you have a webpack config)
suggesting this solution
var webpack = require('webpack');
// in your config.set:
plugins: [
  // existing plugins go here
  new webpack.SourceMapDevToolPlugin({
    filename: null, // if no value is provided the sourcemap is inlined
    test: /\.(ts|js)($|\?)/i // process .js and .ts files only
  })
]

We actually do that already<EMAIL_ADDRESS>It sounds like a bug though. I suppose it has to do with the instrumenting.
This is very low prio though... I mean, what's the usecase? I agree that the sourcemaps should work anyway, but it sounds unlikely for a users to be debugging with code coverage on.

Agreed, this rarely an issue. It's more like an minor annoyance, but i thought it was worth to mention.

I've been creating unit tests for legacy code that is being upgrade and find that running coverage while writing tests is very helpful to confirm that I am hitting all of the branches. Having source maps working is also a definite help since the code is all in TypeScript.
That said, source maps are working just fine for me when doing unit tests with code coverage turned on.
Angular-cli v6.0.0
Using:
ng new library
ng test libraryName --code-coverage

Prerelease version of version 1.0.0 are no longer supported. Please open a new issue if the problem persists on a stable version.


Inconsistent tab-completion behavior in ceph-salt config

Just a minor usability issue: I noticed that tab completion does not work when trying to modify a configuration option from within the configuration group.
For example, I can do a cd /cephadm_bootstrap/dashboard> to change into the dashboard config group using tab completion quickly. But once inside that group, I can not complete the option name using the Tab key, I need to type out the complete option name, e.g. set cephadm_bootstrap/dashboard/username ceph-admin. It would be nice to support tab completion for the config options as well.

@LenzGr you are using the wrong syntax. If your first argument is the path, tab behaves as expected:
/> cd /cephadm_bootstrap/dashboard/
/cephadm_bootstrap/dashboard> username/ set ceph-admin
Value set.

This indeed works, thanks! But I must admit that I find this order quite confusing - I can do a cd <path> and an ls <path>, and I just noticed that <path> ls works as well. And for changing something, I would find it more logical to start with the command, followed by the object that I would like to change (like in a regular shell). But I understand that's a limitation of the config-shell module we're using here, so this probably has to be addressed there.


very annoying notices every time i run keybase

I cannot even login without getting the following. Afterward EVERY single time i run the command i get the same notice. I want to wipe my account to use a new GPG key and reset my graph and everything.  The best part is reusing device names isn't allowed but there is also no way to see device names previously used. So even though I am using the same device, due to wiping my account multiple times I will see "devicenameSOME_RANDOM_NUMBER". This makes NO sense to me.  I want to make my laptop "xps" cause thats what it is. not "xps3".  Please just WIPE any and all old devices/keys/signatures/etc from my account.

see how annoying running keybase is, EVERY TIME

➜  ~  keybase login
Your keybase username or email address: zacheryph
▶ NOTICE Failed to parse public key at position 12 [tags:LU=rj0MYSo0_gQB]
▶ INFO Error verifying subchain from 38: Sigchain specified that KID 01011ccb2b9778ba0ffcaee27a16e1297daec40dfa3d36512396328a9a26b3f9b5c10a is a PGP key with hash e6d509fa9e676be2c8fc8450ad320868f8f0822b33ba2eb00e2ce6396239ec22 but no version of the key with that hash was found [tags:LU=rj0MYSo0_gQB]

At the very least Reset your keys & start from scratch needs to be reworded to "hide your current stuff so it cant be used again"
Disallowing device names and/or reusing a key causing error messages every execution is hardly "starting from scratch"

thanks for the report!  this is a problem, we'll take a look right away

I can repro with keybase id zacheryph. We'll try to fix it ASAP.

https://keybase.io/docs/teams/puk

Closed in #8652. It'll be fixed in the next release. Though it's just, at this point, a harmless warning.

OK. Apologize. I overreacted a little bit.  There is probably no chance of removing entries that were there are there?

I don't think there's a need to do that. The bug in #8652 allows all users to parse that bad key in your sigchain.

I was thinking of the xps* entries that existed for 5 minutes but i will just use a different name. Thank you.


setting WFR properties (magnitude, phase, etc)

Understand how to do this and then use it in the LaserPulse class constructor.

This is fully understood. This effort will probably be part of issue #82


How to download a file?

I am trying to download a file, but can't find any examples to do so.

Hey @DreamITSoftware, what would trigger the file download?

I was hoping to be able to pass a URL without clicking a button

I was hoping to do something like this page.DownloadFile(URL);

If you have the url you could use HttpClient. You wouldn't need a browser for that.

Will the HttpClient recognize the cookies from Puppeteer?  This site requires a login.

You could try setting the download behavior as example 1 here. And then you do Page.GoToAsync to that url.

Closed due to inactivity. Feel free to reopen it if needed.


v1.2 backports 2019-02-01

#6859 -- Streamline backporting and improve backporting docs (@joestringer)

Needed e7e3e72a7db64 to backport cleanly
Minor fixup in the Makefile changes for render-docs on port 9080.

#6834 -- backporting: Accept multiple commits in 'cherry-pick' (@joestringer)

Once this PR is merged, you can update the PR labels via:
$ for pr in 6859 6834; do contrib/backporting/set-labels.py $pr done 1.2; done

This change is

test-docs-please

There's only backporting changes here so I haven't run the full testsuite.


Modify docker-compose.yml example so it is possible to run mainnet and testnet interchangeably

Issue Number
N/A
Overview

[ ] I have modified docker-compose.yml example so one can run it for testnet and mainnet interchangeably.

Comments
With current docker-compose.yml if one starts:
NETWORK=testnet docker-compose up

...runs it for a while and then starts:
NETWORK=mainnet docker-compose up

then she will get failure:
cardano-node_1    | Shutting down..
cardano-node_1    | ProtocolMagicIdMismatch "/data/db/protocolMagicId" (ProtocolMagicId {unProtocolMagicId = 764824073}) (ProtocolMagicId {unProtocolMagicId =<PHONE_NUMBER>})
cardano-node_1    |

as the volumes will interfere with each other.
After this change one can run it for testnet and mainnet interchangeably...

bors r+


HTTP POST results in invalid argument response

Hello:
First off - I love the idea of Tile38. Thank you.
I'm trying to use HTTP POSTs to talk to the tile38-server but, regardless of trying from Ruby or Java, I keep getting invalid argument responses like this: {"ok":false,"err":"invalid argument '500\r\n'","elapsed":"66.045¬µs"}
It seems that the return-newline pair in the request body is being run on to the last parameter in the command string which, of course, results in a parse error.
To compound matters, I know nothing about Go! Any advice?
Thanks,
David.

@davidxv
Thanks for the kind words! I found the root of the problem. I'll post a fix right away.

I just pushed the fix to master. Please let me know if this doesn't work for you. Thanks for help.

Absolute star - works fine for me now. Java (HttpUrlConnection) and Ruby (Faraday gem) alike.
Great work - and thank you for the rapid response. :)


Multi column form layout

Hi,
I love serenity so much. In serenity almost every thing is good. Current form layout is suitable for some cases but containing many fields it is not suitable.
In my opinion if there is an option where we can specify the layout of the forms it will be best for all cases.
I want to organize fields in the forms like existing search panel in grid page.

Regards,
Faruque

You can do that using less, you have to customize it yourself. If you want the fields to be different from the default, you can edit xyzForm.cs and rearrange the order of the fields, or remove them. As long as they are declared in xyzRow.cs you will be able to utilize them in your form class.

Thank you.
I know that using less I can do.
Since serenity platform is declarative and I want to show the form as given layout. So it will be great to have a attribute like FormLayoutAttribute.

I have such plans, but trying to find a way to do it in a responsive and backward compatible way. Bootstrap grid or flexbox layout are some options. Waiting for BS4.

Great

Hi Guys
Im new to serenity, is there a guide i can use or video i can watch if i want to further customize it
Regards
Mz


Kyocera Digno 4 - Unable to submit text on system apps

Having trouble with TT9 in system apps on the Kyocera Digno 4 running anrdoird 10. When submitting text to the field, there is no option to submit "Done" as the system keyboard presents (screenshots included for clarity). I'm unsure if enter to send would solve this, or if this is an issue specifically with how the digno 4 handles other input methods.  Having this issue when using the browser.
Additionally, when attempting to type in notepad, or name groups in contacts, the field opens for input but will not accept any inputs from the TT9 keyboard.
Edit: The main issue seems to be the missing "done" button that's present in the stock keyboard

@Subspiria , please try out v29.15. I have attempted to fix the problem there. Any feedback will be much appreciated.

@Subspiria, during the past two weeks, I have done even more improvements in key handling. I am not sure about the soft keys, but OK should be working as expected, I think. Could you please try out the new v30.0 and report back how well it works?

It appears that version v36 hasn't resolved this problem yet.

The I won't be able to fix it by guessing what is wrong. Anyone who has this phone and technical skills, feel free to debug and propose solutions.


Expose isSubclassOf

Since the new addition of sealed, base and other OOP keywords,
dart offers more ways to model real world systems.
When using inheritance it is common pattern in chain of command as an exemple
to ask if a class is a subclass of specific parent to switch implementation.
Kotlin expose isSubclassOf, java Class.isAssignableFrom, etc
I'm now facing a case where I need to handle a structure in parallel with the
classes declarations to handle hierarchy and it's getting large and error
prone to manually manage each new entry per class.
On Flutter Forum user tenhobie suggested this:
bool typeIsSubtypeOf<T1, T2>(T1 _, T2 __) => <T1>[] is List<T2>;
that works on simpler cases only.
When moving away from flutter and trying to model business relying on OP
this would be a considerable addition for large code base simplification.
Thank you for your feedbacks.

Similar to https://github.com/dart-lang/language/issues/3837 and my answer on StackOverflow:

Just to add up to lrn's answer.
You could also do something like:

extension NullableObjectsExtensions<T> on T {
  bool isSubtypeOf<S>() => <T>[] is List<S>;
  bool isSupertypeOf<S>() => <S>[] is List<T>;
}

So this way you can test any variable anywhere.

They are similar but your request would require much more upwork to be delivered so I went with just a single method as Munificent expressed the dart does not have much request of those features.
Those previous codes works only on simplistic class extensions but got mixed up pretty quickly in real cases. That's why I ended up with my own code to manage the class types :/
Munificent also shared that the infos is present in the VM but it's mainly a question of priorities.

that works on simpler cases only.

It works for types, but not really for values.
It does work for all types. If you need to check two types for whether one is a subtype of the other (and presumably at least one is a type variable, otherwise the answer is constant), then doing:
bool isSubtype<T1, T2>() => <T1>[] is List<T2>;

will work for any two types. The only thing one can regret is that it requires allocating an object.
You can use a simple class than List, like:
class _SubtypeHelper<T> {}
bool isSubtype<T1, T2>() => _SubtypeHelper<T1>() is _SubtypeHelper<T2>;

If you have two objects, then asking whether the runtime type of one is a subtype of the runtime type of the other is not possible.
It's also not necessarily desirable since it breaks abstraction.
You can always ask whether an object has a type that you know. You can't ask if it has a type that you don't know about.
That allows objects to have secret, private implementation types that cannot affect other code, because they other code cannot ask about them.
However, if you can use the runtime type of an object "as a type", then you can break abstraction and see that, fx, isSubtypeOf(1, 2) but not isSubtypeOf(1, -0x8000000000000000). Why, because 1 and 2 are both instances of Smi, but -0x8000000000000000 is an instance of a different integer implementation type.
Using objects as types leaks their runtime type. Not quite reflection, but too close for comfort.

Thank you for the very instructive information.
I'm working on a large project with deep and wide implementations and used an Enum inside parent classes for implementation. It's verbose but work as intended as it's a simple field comparaison. It has large unit testing covering.
When replacing this implementation with the specified method they fails with case everything going positive... Should this method able to handle mixins too and rich compositions?
I'm gonna try to find the culprit but for sure they're not behaving the same, not what I would expecting from isSubTypeOf. Enum implementation does like a field inside the Vm would simply, I assume, keep a marker of the parent class.
The use keep is very standard OOP. Replace a default set of implementations with another compatible based on values. But in a collection of subclasses I need to compare with which one is the parent for a transparent swap.
You can't ask if it has a type that you don't know about.
You gave a lot of informations and it hints me with a sense of how the Dart VM handle infos, or forget them, but I'll need to spend more time to have a clear vision of what's possible.
Yet with my respect to the dart team priorities I still feel I'm gonna deeeeply miss this feature ;)
Thanks everyone for helping me out.

I'm going to very shamelessly mention a package of mine that solves this exact issue: https://pub.dev/package/runtime_type
All it is is a slightly more fleshed out version of the tricks mentioned previously in the issue, but you might be able to make use of it.


Missing picture

The "Direct licenses coexist with group licenses" section seems to be referring to a picture that is no longer part of the text. This in turn makes it a bit harder to follow the text. Please re-add the picture or update the text as needed.
Here's the relevant passage:
The On/Off toggle in the illustration was enabled for this service, as opposed to the other service toggles

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

ID: e7e4fdb9-a3d4-e97b-de30-9904868b87a5
Version Independent ID: fbade46e-55b3-3c50-9cff-6ec88ee5ee6e
Content: Group-based licensing additional scenarios - Azure AD
Content Source: articles/active-directory/enterprise-users/licensing-group-advanced.md
Service: active-directory
Sub-service: enterprise-users
GitHub Login: @curtand
Microsoft Alias: curtand

@michevnew, Thanks for the feedback! We are taking a look into this and will get back to you soon.

@michevnew Thanks for the feedback. We will engage the content development team for further investigation, they will verify and perform necessary changes in the document as needed.
@curtand Can you have a look at this ?

Hi @michevnew
Thanks for your feedback! This is fixed in https://github.com/MicrosoftDocs/azure-docs-pr/pull/160472
There's no new picture there but it now just refers to what happens in an example operation in text.
#please-close


Script does not update existing policy; can't find a way to update existing policy using powershell.

Hi,
The script provided does not update an existing policy if there is one in place. It will only create one if it doesn't exist.
Line number 49 returns with no output & no error if an existing policy is there.
I thought maybe this would help, however it doesn't:
    $oldPolicy = Get-OBSystemStatePolicy
    if ($oldPolicy) {
    	$policy = Get-OBSystemStatePolicy
    } else {
   	$policy = New-OBPolicy
    }

With the above adjustment, the script appears to try registering a files & folders backup, rather than system state:
PS C:\> .\SetPolicy.ps1 -daysofweek Tuesday -TimesOfDay 18:00 -weeklyFrequency 1
This backup policy cannot be saved because of incomplete information on files and folders to be backed up or backup
schedule or retention ranges. Verify that you have configured the backup schedule, retention rules, selected valid
files and folders, and then try to save the backup policy again.
At C:\SetPolicy.ps1:96 char:9
+         throw $error[0].ErrorDetails
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (This backup pol...p policy again.:ErrorDetails) [], RuntimeException
    + FullyQualifiedErrorId : This backup policy cannot be saved because of incomplete information on files and folder
   s to be backed up or backup schedule or retention ranges. Verify that you have configured the backup schedule, ret
  ention rules, selected valid files and folders, and then try to save the backup policy again.

There is also no documentation for these commands either. This was reported 3 years ago on Twitter and doesn't look like it's ever been followed up: https://twitter.com/chespksailor/status/988066674590044160
I haven't been able to figure out a way to update an existing policy with the PowerShell modules at all.
Following other documentation (Back up Windows Server System State in MARS agent), I get:
"A new backup policy cannot be created because the current server already has an existing backup policy. To create a new backup policy for this server you must first delete the previous policy. To change when backups are performed or which items are included in the backup, modify the existing policy."
When I try to remove the policy, it puts it into a paused state, and I continue getting the error above:
PS C:\> Get-OBSystemStatePolicy | Remove-OBSystemStatePolicy

Microsoft Azure Backup
Are you sure you want to pause this backup policy?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): Y

BackupSchedule  : 17:00
                  Everyday
                  Every 1 week(s)
DsList          : {DataSource
                  DatasourceId:xxxxxxxxxxxxxxxxxxxx
                  Name:System State
                  }
PolicyName      : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
RetentionPolicy : Retention Days : 32

                  WeeklyLTRSchedule :
                  Days: Sunday,
                  Times: 17:00:00,
                  Retentention Weeks: 12

                  MonthlyLTRSchedule :
                  Days of Month: [ 1]
                  Times: 17:00:00,
                  Retentention Months: 13

                  YearlyLTRSchedule :
                  Yearly schedule is not set

State           : Existing
PolicyState     : Paused

I can only seem to use the GUI to get it back out of the paused state, or to adjust the schedule.
I think there is a destructive way to do this with Powershell, but that means deleting all backups, using the DeleteBackup & SecurityPIN parameters:
PS C:\> get-help remove-obsystemstatepolicy

NAME
    Remove-OBSystemStatePolicy

SYNTAX
    Remove-OBSystemStatePolicy [-Policy] <CBPolicy> [[-DeleteBackup]] [[-SecurityPIN] <string>] [-WhatIf] [-Confirm]
    [<CommonParameters>]

I feel like I've exhausted all options, and can't figure out a way to update existing schedules using PowerShell (non-destructively)

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

ID: 2fcfc7c6-f0d2-aa98-f5d3-1106dc7e7739
Version Independent ID: 6cb8c214-4fe8-8818-9552-6b618a4b8720
Content: Script Sample - Create a new or modify the current system state backup policy - Azure Backup
Content Source: articles/backup/scripts/set-system-state-backup-policy.md
Service: backup
GitHub Login: @v-amallick
Microsoft Alias: v-amallick

@dmetcalfe-work Thank you for bring this to out attention. We will review it and update as appropriate.
@adityabalaji-msft For visibility!

Thankyou for picking this up so quickly.
I can summarize my issues with these powershell commands below.
I'm running the latest version of the MARs agent:

When an existing policy is in state, you can't update / remove the policy via set-obsystemstatepolicy:

You also cannot update the policy through the same method that Files and folder policies are updated:

Hi, we are investigating this issue and will get back shortly. Apologies for the delay

SSB.txt
Please find the attached sample to modify an existing policy. Let us know if this works for you.

@dmetcalfe-work Checking in to see if the above answer helped. Let us know if there are still any additional issues we can help with.

@dmetcalfe-work We haven't heard back from you, so we will now close this issue. If this remains an issue, please reply and we will gladly continue the discussion.

Hi @SadiqhAhmed-MSFT, please give me chance to review after the weekend! It's only Monday :)
The example provided by mepand does look promising, however I haven't tested it yet.
I'm also confused why the github issue has been closed so quickly too. It's still not been resolved or implemented on the Microsoft example
Thankyou

@dmetcalfe-work Thanks for the reply. You can test the example and let us know the status. If issue persist, we can reopen this thread and continue the discussion.


Don't expose GraphQL Playground

As discussed in this Slack conversation, it is currently possible to access a GraphQL Playground that exposes a CRUD GraphQL API when using Prisma. To do so, you need to enable the info log level in the PrismaClient instructor and navigate your browser to the URL that's printed like this:
prisma:info  Started http server on <IP_ADDRESS>:37157

Since GraphQL is an implementation detail of Prisma 2.0, I believe we should not expose the GraphQL Playground.

Internal Note: the playground route should be dependant on an env var. We will add this env var to our local .envrc

Why not just add authorization and expose graphql endpoint like https://github.com/genie-team/graphql-genie/tree/master/plugins/authentication

Both, the playground and the GraphQL access to the DB is really useful to us - as it allows us to build tooling on top of GraphQL instead of SQL! For instance, in Prisma 1 when seeding the database, we have an elaborate set of scripts that creates all entries via GQL - and uses the created UIDs to link the created items. Changing this to SQL is possible - but would remove a huge advantage of Prisma!
Alternatively, would it be possible to expose the Prisma Studio access? I.e. Prisma Studio send the queries and mutations (in TS instead of GQL) via WebSockets to the server, executes them and returns the result. If it would be possible to do the same manually via a REST endpoint, this would allow the above functionality, too...

Yes, GraphQL Playground is really great. Studio is not powerful enough in some cases.

In Prisma 1, the playground was my place-2-be... I never used SQL directly. I'd be in favor of having this exposed.
I also noticed that the whole Prisma concept is slightly harder to explain now that Prisma is no longer a separate GraphQL server:
"An (almost complete) ORM system that works very well with GraphQL"
vs.
"A GraphQL server over your database"
I hope this helps!

@ansarizafar @peteralbert @homoky @Fonz001 and others interested in using the GraphQL Playground,
It is important to understand that Prisma2 does not provide a GraphQL server. Instead, what you are seeing is an internal implementation detail that currently looks very much like GraphQL. It is not actually compliant GraphQL and it will most certainly change in the future to be even less GraphQL compliant.
The right way to think about this is as the internal wire protocol between the query engine and Prisma Client.
What we will do now: keep the modified GraphQL playground, but hide it by default. You will have to set an environment variable to access it.
What you should do now: you can keep using at as before, but please understand that it will break in small unexpected ways in the future because it is an undocumented implementation detail. The following are suggestions for how you could deal with various use cases where you might currently be relying on the modified GraphQL Playground:
Replacing the undocumented GraphQL Playground
Powerful data access: If you are using the GraphQL playground because Prisma Studio is not powerful enough for you, you should open feature requests. We intend for Studio to be a very flexible and powerful data management UI, and we would appreciate your suggestions.
Automatically generate data mutations: If you are relying on the GraphQL endpoint to programmatically generate a lot of mutations to create data, either for seeding a database or fulfil some complex workflow, you should adopt Prisma Client. Prisma Client is a type-safe data access library that has been designed to simplify tasks like this. If you are not using JavaScript/TypeScript or Go, then you should reconsider if Prisma is the right tool for you.
Building a GraphQL API: If you are using the internal and undocumented Prisma 2 GraphQL endpoint to build a GraphQL API, then you should really strongly consider to change direction. This is unsupported and will not be a happy journey for you. Instead you should investigate Nexus, which represents the culmination of 4 years of our experience building database-backed GraphQL APIs
I hope this helps shed some light on our decision.

Talked with Dom and we agreed I'll do the ticket.

Merged to master


Add raylib-sunder to BINDINGS.md

Adds auto generated (currently up to date with version 4.5) bindings for the Sunder programming language via Sunder's experimental C backend.

@ashn-dot-dev thanks for the addition!


SpringCloudGateway Multiple filters are not connected

Please answer these questions before submitting your issue.

Why do you submit this issue?
[ ] Question or discussion
[x] Bug
[ ] Requirement
[ ] Feature or performance improvement

Bug

Which version of SkyWalking, OS and JRE?
version: 7.0.0
os: docker

Which company or project?
netease-youdao

What happen?
SpringCloudGateway Multiple filters are not connected

I think SpringCloudGateway plugin requires some enhancements :) Welcome to do the contribution.

I think SpringCloudGateway plugin requires some enhancements :) Welcome to do the contribution.

Ok, let me try. I'm not familiar with webflux

got it

Are those filter gateway filters?  As I know, gateway plugins doesn't instrument those filter.  Have you added new plugin which instrument those filter?

public class IgnoreFilter implements GlobalFilter, Ordered {}
@ascrutae

I don't use any other plugin

The gateway plugin improved through #4878

@wu-sheng I would like to ask if the clone of this submission has been deleted. Has it been solved? But why does the problem still exist when I am using the 8.1.0 release

@1095071913 Sorry, I don't know what is happening inside Gateway. There are several PRs following this, it is better to ping @ascrutae for more details.

@wu-sheng @ascrutae Ok, thank you. First of all, I described the problem clearly. I used https://github.com/apache/skywalking/tree/master/test/plugin/scenarios/gateway-2.1.x-scenario/gateway-projectA-scenario for testing, and then the Agent used the 8.1.0 release.Finally, when running, Test1Filter and Test2Filter (GlobalFilter, Ordered) are not displayed in the link.


Move "i18n-scripts" under "scripts"

there are 2 different directories: i18n-scripts & scripts
structure should be:

scripts

generatePluginPackage.ts
i18n

reference:
https://github.com/openshift/console#unit-tests
https://github.com/openshift/console#integration-tests

https://github.com/red-hat-storage/odf-console/pull/562

https://github.com/red-hat-storage/odf-console/pull/562 merged


No need for a generator in the EncoderDecoder class

Hi,
Great notebook! Just wanted to mention that there is no need to pass the generator in the constructor of the EncoderDecoder class. It makes it a bit confusing as looking at the model description in make_model method one implies that the generator is part of the model, yet the loss_compute applies the generator again.
Only after digging into EncoderDecoder definition you realize that the generator is not actually used in the model, so the loss computation is actually correct.

Maybe the forward function in EncoderDecoder should be
    def forward(self, src, tgt, src_mask, tgt_mask):
        memory = self.encode(src, src_mask)
        res_dec = self.decode(memory, src_mask, tgt, tgt_mask)
        return self.generator(res_dec)

But...
out = test_model.decode(
    memory, src_mask, ys, subsequent_mask(ys.size(1)).type_as(src.data)
)
prob = test_model.generator(out[:, -1])

out[:, -1]...

Good point mkserge. For this implementation of the paper, there is indeed no need to pass the generator in the constructor of the EncoderDecoder class. However, the paper says "In our model, we share the same weight matrix between the two embedding layers and the pre-softmax linear transformation, similar to (cite)". So the input embedding layer of the decoder is actually the transpose of the linear layer of the generator. I guess this implementation has skipped this part. If the implementation really matches the paper, it makes sense to pass the generator in the constructor of the EncoderDecoder class.


Support for ghc-9.4

Hi, try to building Cabal with a prerelease ghc-9.4 gives the usual error:
PS D:\dev\ws\haskell\cabal> D:\ghcup\bin\cabal v2-build -j2 -w ghc-<IP_ADDRESS>20623 --builddir=dist-newstyle-validate-ghc-<IP_ADDRESS>20623 --project-file=cabal.project.validate.libonly Cabal cabal-testsuite Cabal-tests Cabal-QuickCheck Cabal-tree-diff Cabal-described --dry-run
Resolving dependencies...
cabal-<IP_ADDRESS>.exe: Could not resolve dependencies:
[__0] trying: Cabal-<IP_ADDRESS> (user goal)
[__1] trying: base-<IP_ADDRESS>/installed-<IP_ADDRESS> (dependency of Cabal)
[__2] trying: Cabal-QuickCheck-<IP_ADDRESS> (user goal)
[__3] trying: QuickCheck-2.14.2 (dependency of Cabal-QuickCheck)
[__4] next goal: splitmix (dependency of QuickCheck)
[__4] rejecting: splitmix-<IP_ADDRESS> (conflict:
base==<IP_ADDRESS>/installed-<IP_ADDRESS>, splitmix => base>=4.3 && <4.17)
[__4] skipping: splitmix-<IP_ADDRESS>, splitmix-<IP_ADDRESS>, splitmix-<IP_ADDRESS>,
splitmix-0.1, splitmix-0.0.5, splitmix-0.0.4, splitmix-0.0.3, splitmix-0.0.2,
splitmix-0.0.1, splitmix-0 (has the same characteristics that caused the
previous version to fail: excludes 'base' version <IP_ADDRESS>)
[__4] fail (backjumping, conflict set: QuickCheck, base, splitmix)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: QuickCheck, Cabal-QuickCheck, base,
splitmix, Cabal
Try running with --minimize-conflict-set to improve the error message.

thanks in advance!

I'd like to test windows and macOS, but that needs support from https://github.com/haskell/actions

hmm I have just checked 9.4.1 is on chocolatey and ghcup so GitHub Haskell action should be able to download it (I have not checked it though)

GHC-9.4.1 windows build doesn't work out of the box : https://github.com/haskellari/splitmix/runs/7756414430?check_suite_focus=true Have to try when cabal-install-<IP_ADDRESS> is available. (It's not on ghcup yet, and chocolatey package is in moderation pipeline).

Thanks for the Hackage revision, @phadej! :)
https://hackage.haskell.org/package/splitmix-<IP_ADDRESS>/revisions/

@jneira, please close this issue.


Move SDK Errors Out of Internal Package for Enhanced Usability

Hi Temporal Team,
I've been looking at the Temporal Go SDK and I noticed that the errors for the SDK are kept in the internal package (see internal/error.go, lines 261-283). Keeping these errors inside internal makes it hard for developers to use them directly. This can lead to clunky ways of dealing with errors, like having to match error messages as strings.
In Go, we usually put stuff in internal when we don't want others to use it directly. But errors from an SDK are something developers often need to work with. If these errors were in a package that's easier to access, it would make more sense and help developers handle errors more easily.
I suggest moving these SDK errors to a package that's not internal. This would make things easier for developers using the SDK and fit better with how we usually organize packages in Go.
Thanks for considering this. Looking forward to hearing what you think.

Errors a users is expected to need are aliased in other packages for example  ErrActivityResultPending is aliased here https://github.com/temporalio/sdk-go/blob/master/activity/activity.go#L51. If there is any specific error you encountered that is not aliased we can add an alias for it specifically .

ErrScheduleAlreadyRunning is already exposed https://github.com/temporalio/sdk-go/blob/171504d947f447e5981b794b79abbb5fe0e9374b/temporal/error.go#L163

Thank you very much!


Wrap importing of VideoTkinter

Since not all Python installations have the tkinter module, I recommend wrapping the importing of VideoTkinter in a try/except, for example, in pyvidplayer2/__init__.py,
try:
    import tkinter
except ImportError:
    pass
else:
    from .video_tkinter import VideoTkinter

Thanks for the great library!

Thanks for this. I will patch it in the coming days.


[Story][Dockerfile Improvements] Documentation and QA

Background

As an Osmosis engineer, I would like to have a document about best practices with Dockerfiles and requirements for Osmosis so that I can QA changes easily during review and maintain an excellent condition of our Docker files long-term.

It is challenging to onboard on Docker while easy to forget the details when switching contexts. Therefore, we should document the best practices and Dockerfiles requirements for Osmosis. New contributors should use these to understand what changes may be done to our Dockerfiles. Maintainers and reviewers can use these to QA in pull request reviews.
Status

Blocked by:

#1679
#1680
#1682
#1681

All done


Blog - running on ublox w106

https://blinky-nina-w102.blogspot.com/2022/06/nina-w106-sendo-programado-em-basic.html?m=1

Hi @tcpipchip thanks for the message!
Are you only calling out that this was featured in the blog post or is there some assistance needed to get this to work?

Hi @tcpipchip thanks for the message!
Are you only calling out that this was featured in the blog post or is there some assistance needed to get this to work?

Hi, just to contribute!

Hi @tcpipchip thanks for the message!
Are you only calling out that this was featured in the blog post or is there some assistance needed to get this to work?

Hi, just to contribute!

And show that works fine!!!!

Awesome glad to hear it! I will go ahead and close this and people can hopefully find this in the future if they search for it in the issue list. Please let us know if there's any improvements we can make!


PowerShell tries to crosscompile to aarch64 / armv7 when building on those platforms

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
Currently building a package for powershell on Alpine Linux. When building for aarch64, armv7 platform, build fails due to trying to crosscompile to those platforms. Cross-compilations should not occur on a platform that is building for itself, yet the build process tries to force that.
To reproduce, git clone https://gitlab.alpinelinux.org/ayakael/aports -b testing/powershell-arm and abuild -r in any Alpine environment eqal or greater to version 3.16 when in aports/testing/powershell directory.
Aport for build process is accessible here
Expected behavior
Build should not use CrossGen2 to build `powershell`

Actual behavior
Build tries to use CrossGen2 to build on the same platform.

Error details
/usr/lib/dotnet/sdk/6.0.108/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(463,5): error MSB6003: The specified task executable "/home/buildozer/.nuget/packages/microsoft.netcore.app.crossgen2.linux-musl-arm64/6.0.8/tools/crossgen2" could not be run. System.ComponentModel.Win32Exception (2): An error occurred trying to start process '/home/buildozer/.nuget/packages/microsoft.netcore.app.crossgen2.linux-musl-arm64/6.0.8/tools/crossgen2' with working directory '/builds/ayakael/aports/testing/powershell/src/PowerShell-7.2.6/src/powershell-unix'. No such file or directory [/builds/ayakael/aports/testing/powershell/src/PowerShell-7.2.6/src/powershell-unix/powershell-unix.csproj]

Full log accessible here

### Environment data

```powershell
Name                           Value
----                           -----
PSVersion                      7.2.6
PSEdition                      Core
GitCommitId                    7.2.6
OS                             Linux 5.4.157-1-pve #1 SMP PVE 5.4.157-1 (Mon, 29 Nov 2021 12:01:44 +0100)
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Visuals
No response

The error was not a crosscompilation error, but rather having to do with https://github.com/dotnet/runtime/issues/73908
Closing as fixed by disabling optimization on arm + arm64 platforms.


Add bamstats to RNASeq and Exome and alignment pipelines

https://www.dockstore.org/containers/quay.io/briandoconnor/dockstore-tool-bamstats

Cleaning up tickets. Treehouse designated QC was added to RNAseq and exome/alignment pipelines are not part of production.


Completion of error handling

Would you like to add more error handling for return values from calls of a function like printf()?

No. What we should do in a case it fails? Call printf() or fprintf() to print an error message? It makes no sense.

Please reconsider the possibility to indicate such a software failure by an other program exit status.


why set different std to backbones in FOCS.

I check the configs from FCOS, where std=[1.0, 1.0, 1.0] is used in r50/101 backbone while std=[58.395, 57.12, 57.375] is used in resnext101. Any reasonable explainations could give?

I think I have got the reasons that std=[1.0,1.0,1.0] pretrained backbone is 'caffe' style, and std=[58.395, 57.12, 57.375] pretrained backbone is 'pytorch' style.


Test/testing ci errors

Draft PR created to test github actions, changes added to https://github.com/linz/topo-imagery/pull/1
Closing PR.


Hi, how is viz! used?

Hi,
at first I want to say thank you for this project. I looked through your tests and noticed that there is no test where viz! is used. I guess viz! is used to draw multiple meshes within one window. Could you give an example for that? It seems that there is also no example in the documentation.
Thank you for any answer ..

Hi @berndmehnert , the version of viz with the exclamation mark works like any other Makie recipe:
viz(triangle) # start scene with triangle
viz!(quadrangle) # add quad to scene
viz!(circle) # add circle to scene

Please check Makie documentation to learn more.

Thank you very much ;) I will look into Makie ..


camera not recognize in native android webview

i've been able to scan QR codes through browsers (firefox,chrome) but not in webview.
the camera list always returns null. given permission to .CAMERA and uses-feature in manifest too.
can anybody please help. Thanks.

I tried everything I could  but could not get the camera to show up when using the webview. Any suggestions?

Seems like all device-related will ever work in a webview. I end up built a separate modules in JS.

String permission = Manifest.permission.CAMERA;
int grant = ContextCompat.checkSelfPermission(this, permission);
if (grant != PackageManager.PERMISSION_GRANTED) {
    String[] permission_list = new String[1];
    permission_list[0] = permission;
    ActivityCompat.requestPermissions(this, permission_list, 1);
}

webView.setWebChromeClient(new WebChromeClient() {

            @TargetApi(Build.VERSION_CODES.LOLLIPOP)
            @Override
            public void onPermissionRequest(final PermissionRequest request) {
                request.grant(request.getResources());
            }
}

String permission = Manifest.permission.CAMERA;
int grant = ContextCompat.checkSelfPermission(this, permission);
if (grant != PackageManager.PERMISSION_GRANTED) {
    String[] permission_list = new String[1];
    permission_list[0] = permission;
    ActivityCompat.requestPermissions(this, permission_list, 1);
}

webView.setWebChromeClient(new WebChromeClient() {

            @TargetApi(Build.VERSION_CODES.LOLLIPOP)
            @Override
            public void onPermissionRequest(final PermissionRequest request) {
                request.grant(request.getResources());
            }
}

Does anyone get an update on this issue?


WIP: Power Converter Benchmark

I merged to master for fixing the documentation following https://github.com/dionysos-dev/Dionysos.jl/pull/359

@johnaoga Is this ready to be merged? Otherwise I convert it to a draft

There is the failure

The size of type StaticArraysCore.SMatrix is not known.

shown in the docs build that we should fix

@johnaoga Is this ready to be merged? Otherwise I convert it to a draft

@adrienbanse you can make it a draft, it's far from being merged, I'm still working on it.

I'm closing this as well. I will recreate it whenever needed.


Fix for osx build running out of log space travis

This PR should fix the issue with log file being too large on OSX build.

A new build of cc6eeeddb66d3780a650be79403b9219a88aea4b has completed succesfully!
Binaries available at https://build.nav.community/binaries/fix-for-osx-build-running-out-of-log-space-travis

@aguycalled  @chasingkirkjufell travis build for OSX now working on this branch: https://travis-ci.org/github/navcoin/navcoin-core/builds/759533906


support for electron-80

The current stable version of the Electron framework is 9.0.0. (https://electronjs.org/)
Could you support the version (electron-80)?
Thank you.

Tried rebuilding manually for ABI 80 it but it cannot build..
  add_subdirectory given source "libuiohook" which is not an existing
  directory.```

Tried rebuilding manually for ABI 80 it but it cannot build..
  add_subdirectory given source "libuiohook" which is not an existing
  directory.```

I built the iohook successfully against electron-80.
Please use Visual Studio 2017 and set the version of robotjs to v0.6.0 in package.json.

Closing in favor of #241


Not an issue, just a question

Hi @lni :)
Thank you for sharing this project, I love it! Multi-raft is exactly what I needed 👍
I am currently using v3.3.5 for a project I'm building.
I was just wondering how stable and feature complete master is and how far away a v3.4.0 is?
It's not to rush you at all - I am just trying to decide, whether I should stick with v3.3.5 or use the master branch instead.

I'd recommend to use the latest released version which is v3.3.5.
As the dev branch of the project, there are a few known issues on the master branch. I'd expect v3.4.0 to be released once all of them are addressed, hopefully in a few weeks.

Super 👍 Thank you @lni :)

Thanks @lni 👍 I read that file and thought it would be nice with Gossip, but I will just use v3.3 and wait for v3.4 before implementing Gossip.

@morphar gossip was released as a part of v3.3, so you won't miss that. The only new feature in v3.4 that you won't get in v3.3 is the pre-vote support, which from my understanding is not super useful.

Nice 👍 I will try to get that working then. Thanks @lni 👍


Add round function

This looks dimension agnostic, so it should go in dn.py and have d2 and d3.py pull it in (see bottom of those files)
Also I would call it rounded to avoid colliding with the builtin round

fb76964cb7dc28f48da3198f6841e14a894fa70a adds dilate and erode


Typescript unused imports

What:

Fix TypeScript compilation error
Fix eslint error with JSDocs

Why:
The Travis CI build is currently broken on these 2 issues.

How:

Add tsconfig to error on unused imports to help identify invalid usages and then removed them
Added JSDoc @param and @return declarations

Checklist:

[x] Documentation N/A
[x] Tests N/A
[x] Ready to be merged
[x] Added myself to contributors table

Codecov Report

Merging #176 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master   #176   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           4      4
  Lines         267    267
  Branches       64     64
=====================================
  Hits          267    267

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 22a1b3e...4033cce. Read the comment docs.

Thank you!

Thanks again for your help! I've added you as a collaborator on the project. Please make sure that you review the CONTRIBUTING.md file (specifically the bit about the commit messages and the git hooks) and familiarize yourself with the code of conduct (we're using the contributor covenant). You might also want to watch the repo to be notified when someone files an issue/PR. Please continue to make PRs as you feel the need (you can make your branches directly on the repo rather than your fork if you want). Thanks! And welcome to the team :)

Cool, thanks! I'll take a look at all those things. Some of these will be new for me.

You may also find this useful: https://github.com/paypal/downshift/blob/master/other/MAINTAINING.md


App doesn't work on FireTV

Not working on my fire tv stick plz help

please elaborate

Ok understandable have a nice day 👍


Pretty printing and protection of new field :channel_

The newly created field :channel_ is currently not protected and distributed to the client

a new const INTERNALFIELDS = [:channel_, :channel__, :modes__] is created in order to make protection of internal fields easier
protection is now based on INTERNALFIELDS, not on a manual listing

model printing is currently not easy to understand ath the REPL, Garish.pprint doesn't improve the situation a lot

prettyprinting for the REPL has been implemented

julia> @app begin
         @out non_reactive a_::Int = 12
         @out s_ = "Hello"
         @out f = jsfunction"console.log('Hi')"
       end
__GF_AUTO_HANDLERS__ (generic function with 1 method)

julia> @init
Instance of 'Main_ReactiveModel'
    channel_ (internal): JUURVSVWBPYQFUNBDYIEDYVCFGCTUEFG
    channel__ (internal): JUURVSVWBPYQFUNBDYIEDYVCFGCTUEFG
    modes__ (internal): LittleDict(:a_ => 4)
    isready (autofield, in): false
    isprocessing (autofield, out): false
    fileuploads (autofield, in): Dict{AbstractString, AbstractString}()

    a_ (out, non-reactive): 12
    s_ (out): Hello
    f (out): Dict{Symbol, Any}(:jsfunction => Dict{Symbol, Any}(:body => "console.log('Hi')", :arguments => ""))

@hhaensel Thanks!
What does "protecting channel_" means? channel_ is readonly and it's meant to be outputted - the point of adding channel_ is to inject it into the Vue scope (which can't access global scope like window).

Have a look at this:
julia> @init(channel = "hh")
Instance of 'Main_ReactiveModel'
    channel_ (internal): JUURVSVWBPYQFUNBDYIEDYVCFGCTUEFG
    channel__ (internal): hh
    modes__ (internal): LittleDict(:a_ => 4)
    isready (autofield, in): false
    isprocessing (autofield, out): false
    fileuploads (autofield, in): Dict{AbstractString, AbstractString}()

    a_ (out, non-reactive): 12
    s_ (out): Hello
    f (out): Dict{Symbol, Any}(:jsfunction => Dict{Symbol, Any}(:body => "console.log('Hi')", :arguments => ""))

I think you should modify channeldefault() such that it calls channelfactory() if no parameter is found.

@hhaensel channel_ is correct. What you see on the server is redundant initialisation code that should be refactored/removed. But ultimately, in the client it ends up like this:

I see. But then we can still keep it private, because we don't do any updates on :channel_ it; will simply exist as client data

I see. But then we can still keep it private, because we don't do any updates on :channel_ it; will simply exist as client data

When you say private you mean readonly? Cause private fields are not exposed, are they? Or do you mean to just have a field that is outputted straight into the Vue instance, without a corresponding field in the Reactive model?

BUT: different clients connect to the same channel if they never connected before, because the default channel is defined in the model type

I don't understand this.


Postgresql Metadata Configuration

Hi,
We are setting up SCDF on the Kubernetes cluster through kubectl.  We are using PostgreSQL for the Metadata process. We got the set up done, and we can see various tables created in the Postgresql, and we can access SCDF UI, but when we try to add any task or try to import repository, then we are getting this error message :
“could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet “

Seems like you opened the issue in the wrong repo, try opening it here https://github.com/spring-cloud/spring-cloud-dataflow


v4.2.1

Update README (demo link)
Edit test command

Coverage remained the same at 100.0% when pulling 26889ab334ba9f6ac93582aec73aa0ce6feae04c on v4.2.1 into 67237b0619661fe52f33b0dd6bf7a723a07f5082 on master.

Coverage remained the same at 100.0% when pulling 26889ab334ba9f6ac93582aec73aa0ce6feae04c on v4.2.1 into 67237b0619661fe52f33b0dd6bf7a723a07f5082 on master.


DBZ-4473 Remove unused brackets in MySqlParser

Refer https://issues.redhat.com/browse/DBZ-4473
Have removed in upstream grammars-v4

Thx @harveyyue, applied.


Update dispatch-config.md

Description & motivation
The docs confused me.
To-do before merge
Yes
Pre-release docs
Just docs
Checklist
Check

Thank you for opening this, but it looks like it was addressed in a different PR. Please open a new PR if you see anything else on the dispatch_config page needing updates! 🙇🏻♀


Can't control MOSFETs with bms.set_mosfet_control

Looking at the bms.cpp file and specifically the function definition "OverkillSolarBms::set_mosfet_control(bool charge, bool discharge)",  I see the following call:
write(true, BMS_REG_CTL_MOSFET, length, data);
The first parameter "true" is used to indicate that the BMS will be read, why isn't this set to "false" indicating a write to the BMS to control the FETs? I changed the line in the code as follows:
write(false, BMS_REG_CTL_MOSFET, data, length);
I changed the first parameter from true to false (should change the old read to a write), and I swapped the data and length fields as others have noted, but it still doesn't work. I've seen others swapping data bytes (https://www.reddit.com/r/OverkillSolarBMS/comments/mmosr0/overkillsolarbmsarduinolibrary_mosfets_onoff/) to try and fix the issue but I am hesitant to arbitrarily write different registers within the BMS without knowing. Are the BMS registers defined somewhere so I can determine the proper way to write and control the FETs?

The fix on that site took care of it for me.  Using Arduino Mega, no need to 3.3 to 5v TTL translators, since Mega is a 5v board and 5v UART.
This is what I followed:
I think there are some errors in the bms.cpp.
First, there are 5 lines with
write(true, BMS_REG_NAME, data, length);
with an NODEMCU i got an error, I change data with length to
write(true, BMS_REG_NAME, length, data);
Second, line 357
write(true, BMS_REG_CTL_MOSFET, length, data); change to
write(false, BMS_REG_CTL_MOSFET, data, length);
Last, lines 348 ff
data[0] = 0b11;
data[1] = 0;
if (charge) {
data[0] &= 0b10;
}
if (discharge) {
data[0] &= 0b01;
} change to
data[0] = 0;
data[1] = 0b11;
if (charge)
{
data[1] &= 0b10;
}
if (discharge)
{
data[1] &= 0b01;
}
now
bms.set_mosfet_control(true (or false), true (or false)) works.


Remove mongolab addon from Heroku deploy

As raised in #212, mLab is shutting down their mongolab Heroku addon on November 10th 2020.  This is a WIP pull request containing the changes to remove the addon and update documentation.
The functional changes are complete and the next step is the documentation. I'm posting this draft so contributors can comment on the general approach and give feedback on the documentation changes once they are added.
This branch cannot be merged until after PR #214, and it also requires the docker-compose fix from my fix/mongodb-uri branch. It also includes a change to speed up Cypress tests, which can be pulled out if required.
Tasks:

[x] Remove mongolab:sandbox addon from app.json
[x] Add a MONGODB_URI env variable to app.json (required, default "")
[x] Remove reference to the current mLab database from config/env/all.js
[x] Remove support for MONGOLAB_URI in config/env/all.js (only needed for the mongolab addon)
[x] Update heroku deploy instructions in README.md to cover database setup
[x] Update tutorial for A1 - Injection to say NoSQL injection is blocked on deployments using Atlas M0

Added the updated instructions to the PR.
As well as updating the instructions to cover Atlas instead of mLab, there are some structural changes. The main one is that Heroku is now the last option on the list. The loss of the mLab addon makes it a lot less convenient, as database setup is now required. Also, the local MongoDB and docker setups have become easier to use because they work with the default settings.
The last thing needed to complete this PR is an updated A1 tutorial with a warning that the NoSQL injection vulnerability isn't demonstrable when using Atlas M0.
Feel free to reply in the meantime with any feedback on the documentation or the functional changes.

This is now ready to review.
As already mentioned, this PR includes #214 as its first commit. It also includes ec40213 and fe5b12b to make test turnaround faster. I'm happy to split this up or squash/rebase the changes if desired.


chore: create repository skeleton

Closes #2

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#11  👈
#10
master

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @rphmeier and the rest of your teammates on  Graphite

Merge activity

Mar 20, 4:36 PM EDT: @rphmeier started a stack merge that includes this pull request via Graphite.


Discord Sharding

Hi @javis86 thank you for this amzing node-red tool.
Wanted to start a discussion related to sharding. Once bot will reach to more than 1000 guilds we also need to do sharding.
Auto sharding
const client = new Client({ shardCount: "auto" });
is a quick solution for some time.
Is there any plan to support ShardingManager? Happy to contribute.

I think it´s possible to add internal Sharding without any impact of the current functioning.
Would SharingManager work through several nodered instances?
Do you have some experience executing ShardingManager to run the shards in differents containers/VMs? This is in order to evaluate the correct functioning if it is implemented.

It could be added

Done in 3.4.1


Provide specific errors for database connection failures from the webserver

Is your feature request related to a specific problem?
If the webserver fails to connect to the database, a generic "database unreachable" error is given
Describe the solution you'd like
We should let the user know exactly which part of their configuration is incorrect (i.e. user/password, vs. completely unreachable)
Describe alternatives you've considered, if any
A description of any alternative solutions or features you've considered.
Additional context
should be done after #562

After https://github.com/ethyca/fides/pull/649, the errors sqlalchemy raises by default seem pretty decent, for example:

Wrong username/password for the db

Unable to reach the database: sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) FATAL:  password authentication failed for user "postgressss"

Wrong port

fides-fidesctl-1  | 2022-05-17 20:37:37.249 [ERROR] (database:get_db_health:135): Unable to reach the database: sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) could not connect to server: Connection refused
fides-fidesctl-1  | 	Is the server running on host "fidesctl-db" (<IP_ADDRESS>) and accepting
fides-fidesctl-1  | 	TCP/IP connections on port 5431?
fides-fidesctl-1  |
fides-fidesctl-1  | (Background on this error at: https://sqlalche.me/e/14/e3q8)

Can't reach db host

fides-fidesctl-1  | 2022-05-17 17:27:55.022 [ERROR] (main:configure_db:53): Unable to configure database: sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) could not translate host name "fidesctl-db" to address: Name or service not known
fides-fidesctl-1  |
fides-fidesctl-1  | (Background on this error at: http://sqlalche.me/e/14/e3q8)

Do you think that's enough, or is there more work to do for this ticket?

those 3 seem great! we want to make sure that its enough info for an end-user to reasonably debug any connection issue, and these three feel like they'd cover the vast majority of those issues


[BUG] failed to solve: process "/bin/sh -c apt-get -y update --fix-missing" did not complete successfully: exit code: 100

Describe the bug
I run docker-compose up -d on PHPVERSION=php71 (but also 7.2, 7.3) and I get these errors:

==> ERROR [webserver  2/29] RUN apt-get -y update --fix-missing                                                                                1.9s

[webserver  2/29] RUN apt-get -y update --fix-missing:
1.015 Ign http://security.debian.org jessie/updates InRelease
1.065 Ign http://deb.debian.org jessie InRelease
1.071 Ign http://security.debian.org jessie/updates Release.gpg
1.116 Ign http://security.debian.org jessie/updates Release
1.123 Ign http://deb.debian.org jessie Release.gpg
1.160 Ign http://deb.debian.org jessie Release
1.169 Err http://security.debian.org jessie/updates/main amd64 Packages
1.169
1.205 Err http://deb.debian.org jessie/main amd64 Packages
1.205
1.218 Err http://security.debian.org jessie/updates/main amd64 Packages
1.218
1.250 Err http://deb.debian.org jessie/main amd64 Packages
1.250
1.262 Err http://security.debian.org jessie/updates/main amd64 Packages
1.262
1.290 Err http://deb.debian.org jessie/main amd64 Packages
1.290
1.310 Err http://security.debian.org jessie/updates/main amd64 Packages
1.310
1.333 Err http://deb.debian.org jessie/main amd64 Packages
1.333
1.370 Err http://security.debian.org jessie/updates/main amd64 Packages
1.370   404  Not Found [IP: <IP_ADDRESS> 80]
1.376 Err http://deb.debian.org jessie/main amd64 Packages
1.376   404  Not Found [IP: <IP_ADDRESS> 80]
1.377 W: Failed to fetch http://security.debian.org/debian-security/dists/jessie/updates/main/binary-amd64/Packages  404  Not Found [IP: <IP_ADDRESS> 80]
1.377
1.377 W: Failed to fetch http://deb.debian.org/debian/dists/jessie/main/binary-amd64/Packages  404  Not Found [IP: <IP_ADDRESS> 80]
1.377
1.377 E: Some index files failed to download. They have been ignored, or old ones used instead.

failed to solve: process "/bin/sh -c apt-get -y update --fix-missing" did not complete successfully: exit code: 100
which Branch / PHP Version are you using ?
php71, php72, php73
Steps to reproduce
Steps to reproduce the behavior:

Create a .env file
Change the PHP version to php71
Run docker-compose up -d
See errors

Expected behavior
I am expecting to run the containers, as per php8
Screenshots

Desktop (please complete the following information):

Docker version 24.0.7, build afdd53b

Additional context
Working correctly for PHP8 though.

I had the same issue with the 5.6 branch. I fixed it by adding:
RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list

before
RUN apt-get -y update....

The reason is that stretch (and jessie, not sure which you're on because the log you pasted and your screenshot seem to show both) has been archived, so you need to update the sources list to use the archive location. Hope this helps, I guess the repo should be updated to make sure the archive locations are added to the appropriate Dockerfiles.

Hey everyone,
i just pushed a fix for that. Thanks for reporting.
8140d5b


add config to skip YAML processing if needed

Signed-off-by: Will Kutler<EMAIL_ADDRESS>Adds a config option to skip YAML processing if the input to the template resolver is already YAML rather than JSON. This is needed to allow for the raw policy templates field for https://issues.redhat.com/browse/ACM-2739?filter=-1
Also renames a few variables with JSON in the name since the raw data does not have to be JSON necessarily anymore

@willkutler could you please also capitalize Add in your commit message and add the PR description in your commit message?


Implement bulk endpoint for posting service instance ports.

This will dramatically speed up service instance imports.

Closing as it's not clear we really want to implement batch updates. If we decide we need this in the future we can just recreate the ticket.


report # records returned

On the page with the query results (table), also output the number of records/rows returned.

Resolved with commit 73bd08a2a0c27da47c6e61bbe7c922bbb32c327c.