Chess Activity (GSoC 2020)

Fixes #592
Initial submission for the task. Would request @llaske and @ashish0910 , and other members to kindly review. The features include:

Playable with other users (using the Presence Framework).
Displays the list of moves during play.
Uses buddy colors for the background, move history and the XO Icons for users.
Integrated with Journal.
Implements Localization with the web10Ln Library.
Includes a tutorial with written instructions on how to move each of the pieces on the board.
Is responsive with Bootstrap 3 and includes a Fullscreen button.
Tested to work on Google Chrome, Mozilla Firefox and Electron.
Does not depend on the internet.
Gives information about Check, Checkmate, Draw and Stalemate in the More Information section.
The Spectators area comes alive when 2+ players join, or if one leaves the network.
If more than 2 players join the same game on the network, the third player and onwards become the spectators, and Buddy Color Icons are used to notify everyone.
If the any of the player leaves, all the players are notified in the spectators area.
Implements two levels of computer difficulty (Random and Gains based algorithms) in the current version.
Provides Undo and Restart options in the Single Player mode.

The activity is built utilising Chessboard.js for the Chess layout and Chess.js for moves validation. The engine is self written (inspired by the Lauri Hartikka) and the Sugar Web Library is for the UI.
Further work (would love to have community feedback on how to improve well here):

Better Leave Network implementation.
Switching sides. (Updated in 58cd959)
Less dependence on text and focus on colors.
Better UI design.
Interaction in the tutorial by the player.
More complex AI algorithms. (Updated in 2838724)

Good start . I Found UI very colourful and good .
Few remarks :

I have issues with difficulty level . The hard does not really work like hard mode . It works as if easy mode . Also there should be more than 2 difficulty modes .
Option to switch between white and black will be appreciated .

You are correct @ashish0910 , seems like the method was relatively easy. Made it Medium and added new difficulty level Hard, and can be accessed by the same toolbar buttons. Implements the Graph Searching, so might take some time in calculations.
Also added switch sides button. Thanks for the review!

The new hard mode is good but slow . May be you can use p4wn or some other way to improve it .

Another approach might be to give the user an option to set the depth of the search in the Graph Algorithm, which is currently preset to 3. An increased depth will make the computer play better, but slower, and vice versa.
Let me know your thoughts @ashish0910 , I will work on the p4wn.js integration in the meanwhile.

No @utkarsh-raj I don't think adding depth option is a good idea . It will make things complicated for students .

Okay @ashish0910 , you're right. The complexity of the UI is a major point. I will just go ahead with the p4wn.js Engine.

Thanks for your nice implementation of the Chess activity.
It show your skill on Sugarizer activity development.
BTW we've decided that the winner of the challenge is https://github.com/llaske/sugarizer/pull/702
Feel free to propose improvements or to send PR on the activity.
Thanks again for your work.


Add more Janitza devices to template description

May also support Modbus TCP

Fixed by https://github.com/evcc-io/evcc/commit/57df11e0be2d452e523db75391db0a5b74502602


Make gasPrice configurable at grip time

const config = {
  // ...
  gasPrice: 0.25
};

gripApp(config, ...)

Closing this issue due to lack of definition. No implemented.


Workers won't move

Fresh installed on mac (same one I mentioned on issue #203 just for reference that everything else seems to work) but the workers won't move.
If I run bootstrap there is nothing in the log file after starting bootstrap phase 2. After a few hours, all the workers are still in the same place.
I've let a scan instance running for days while trying to figure out why, and they discovered their nearby spawnpoints, but there is still no movement (discover new spawnpoints enabled).
I've already tried what is suggested on issue #138 without luck, and with different speed limits.

None of my instances are working anymore, I just get "invalid requests", are yours doing that?

I started getting pogoapi error but solved it pulling.
Also found the issue; speed_unit (what ever you choose / hour) is bound to speed_limit (wasn't like that before) and I had 15 meters/hour... changed it to kilometers and done.


Unbinding  or .off() ?

Sorry if this is a silly question or the wrong place to ask it but I was curious, is there a method for unbinding postRobot listeners?
For example:
Previously in my react components I was doing something like...
componentWillMount() {
     window.addEventListener('message', this.onMessage);
}

componentWillUnmount() {
    window.removeEventListener('message', this.onMessage);
}

Now with postRobot I have something like...
componentWillMount() {
    postRobot.on('ON_MESSAGE', { window: window.parent }, (event) => {
      this.onMessage(event);
    });
}

So i was wondering do I need to unbind? I was imagining something like...
componentWillUnmount() {
    postRobot.off('ON_MESSAGE');
}

Or is this automatically handled since each request is hashed as a new postMessage?

You can do:
    let listener = postRobot.on('ON_MESSAGE', { window: window.parent }, (event) => {
      this.onMessage(event);
    });

    listener.cancel();

I'll add a section for the docs for this too.

Awesome. Thank you
Would you be opposed to a contribution for an .off(KEY) method that takes a key? I feel like it would be a little cleaner API to be able to cancel by key.  I'm willing to give it a shot if it's something you agree with. It can just be a wrapper around the existing cancel.
Thanks for the quick response

I'd like to understand the use case a bit better first. Generally speaking I prefer not to expose too many interfaces which do the same thing.

Its super minor but the use case you presented with let listener = ... assumed they are both being called in the same scope but in my example/usage I would now need to add a constant or something to the scope of my whole component so it would be available in both the componentWillMount and componentWillUnmount.  Like I said, its super nit-picky, but it just makes more sense to me that since you always have a unique identifier when you are binding (the key), that you could easily unbind using that same identifier in a similar fashion/pattern.
Also I think as a pattern it just makes more sense, like jQuery .on() and .off() or even the window.addEventListener and window.removeEventListener.  To undo something in a similar way that you did it in the first place.
If that makes any sense.

Definitely makes sense. Let me re-open this issue while I mull it over.

So I'm closing this -- reason is as follows. Listeners aren't just tied to event name, they're tied to [ event name + domain + window ]. So if we were to have a postRobot.off, would it mean "Cancel all event listeners for all domains and all windows for a given name", or only "Cancel all event listeners for the event name with domain * and window *"?
I think either option leaves a lot of ambiguity, and it's easy enough to implement either outside of postRobot, so I think we're going to stick with the listener.cancel() approach to cancel a specific listener.

@travisdahl did you ever figure out a way to scope this to a react component?
I can get it all working except if I call this.listener.cancel() it doesn't do anything. The only way I can make it work is by setting my listener as a global variable and then in my react component I check for listener.cancel and if it exists I call it. Not ideal since I assume adding two instances of this component will mess everything up.

hmm, nevermind! It looks like those "global" variables are still scoped to my component. Not very clean but I don't really care since it seems to work well! Thanks for this library!


Rename oxide.root.json to oxide.json or oxide.cfg

I'm not sure what the purpose of the "root" is in the name aside from the file being in the root directory, but I don't think it's really needed. We'll likely be adding other options in the future, so we may want to consider a more sensible name.

Originally the intention was to have 2 config files, oxide.root.json AND oxide.json. The idea is for server providers that run multiple instances from the same directory, they can have a single oxide.root.json that governs configuration across ALL their instances, and then an oxide.json per instance for instance specific things. If server providers don't do this and just make a whole new install per server instance, removing root from the name should be fine.

Ended up renaming it to oxide.config.json, we'll see where it goes from there!


Allow for the use of @flows with Jobflow

What new feature would you like to see?
Hinges on two things:

https://github.com/materialsproject/jobflow/pull/547
https://github.com/materialsproject/jobflow/pull/450

We might be able to use Covalent as an intermediary to get the Jobflow Flow since they have a nice compiler for the Lattice objects.


Datatables issue again?

First I did a composer update to some older installation, and noticed that server is returning 500 in 'user actions' view. Then I've tried with fresh installation and same thing happened. I got "Fatal error: Class 'yajra\Datatables\Datatables' not found." message.
I managed to resolve this just by changing "use yajra\Datatables\Datatables;" to "use Yajra\Datatables\Datatables;" (with capital Y in word Yajra!) in vendor/laraveldaily/quickadmin/src/Controllers/UserActionsController.php file.
You probably know this already, but I think it should be fixed...
Nice package, BTW :-)

Hello,
This problem is solved with our latest version if QuickAdmin.

I was talking about latest version... Search everything for 'yajra' and replace it with 'Yajra' namespace.

@ergonomicus Then it is possible that i didn't understand you quite well... Sorry for that and I'm going to check it as fast as possible

Sorry for this really long wait, with dev-master it should work fine now and we will be releasing updated package version soon


Update sites.json

added bbbhltz.codeberg.page

Thanks for submitting @bbbhltz ! Have a great weekend!


Regenerate client with fixed swagger

This PR regenerates the client with an adapted generator based off of https://github.com/grafeas/client-go/pull/15.
The current client is not up to date, and has old bugs that were fixed in the past year or so.
This PR also moves to go module using name module github.com/grafeas/client-go, and moves away from keeping the version in the generated directory.
Now we generate into two paths, grafeas and projects for the two different swagger files. Updating documentation included in README.md

Hey @wkozlik , just tagging you here for visibility.

Turns out this is being affected by a bug in swagger-codegen, looking into a fix.

Thanks for reviewing @wkozlik ! Would you be able to tag a version when you get a chance as well? I have it as 1.0.0 in the config.go.json file.
Otherwise this should be good to go. I'll plan on updating this PR whenever the swagger-codegen change gets merged.

Thank you for this fix. It is looking great. I need to update the build step, to be able to merge this PR.

@wkozlik anything I can help contribute to?

I am sorry for the delay. We should be okay now. Could you resolve merge conflicts?


Exception: DataFusion error: Plan("Invalid function 'mean'")

Here's the code I'm trying to run:
import datafusion

ctx = datafusion.SessionContext()

ctx.register_csv("x", path)

ctx.sql("select id3, sum(v1) as v1, mean(v3) as v3 from x group by id3").collect()

It's giving me the following error:     return ctx.sql("select id3, sum(v1) as v1, mean(v3) as v3 from x group by id3").collect()
Exception: DataFusion error: Plan("Invalid function 'mean'")
Other queries like this one are running without issue:
ctx.sql("select id1, sum(v1) as v1 from x group by id1").collect()

I am using DataFusion v0.6.0.
Am I missing an import?  Or are these functions not defined with the Python bindings yet?  Looks like this query is running fine with the Rust version, see this PR by @andygrove.  Thanks for the help!

We have avg but not mean

Yep, that works, thanks 😄

Here's a PR to upgrade the Python bindings to use DataFusion 10.0.0
https://github.com/datafusion-contrib/datafusion-python/pull/57
On Fri, Jul 15, 2022 at 3:34 PM Matthew Powers @.***>
wrote:

Yep, that works, thanks 😄
—
Reply to this email directly, view it on GitHub
https://github.com/datafusion-contrib/datafusion-python/issues/56#issuecomment-1185963618,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAHEBRGMHUVAWOTU3XZJLU3VUHKP5ANCNFSM53WVO7SQ
.
You are receiving this because you were mentioned.Message ID:
@.***>


Fix blueprint generators and include all available blueprints

The output of ember-cli for available blueprints seem to have changed around 2.6. Since then the available blueprints were split up into legacy blueprints (which I guess should be moved into ember itself at one point) and ember-clis own blueprints. This PR should include all available blueprints and fixes the problem that blueprints weren't appearing since 2.6 (which should close #22 and #21).

Thank you so very much!


Text with Chinese characters is incorrectly displayed

Describe the bug
Text with Chinese characters is incorrectly displayed.
To Reproduce
https://makecode.com/_7wTM6ob0V9g5
Expected behavior
Screenshots

Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Additional context
Decided dialog font by calling image.getFontForText() like sprite.say()
https://github.com/microsoft/pxt-common-packages/blob/cba8b344f8c5b74a7a68e78fcf519fcc62691363/libs/game/textDialogs.ts#L215
https://github.com/microsoft/pxt-common-packages/blob/cba8b344f8c5b74a7a68e78fcf519fcc62691363/libs/game/textDialogs.ts#L166

Fixed. Thanks for your contribution


Connector "Restart All Tasks" button has no effect

When choosing a specific connector there are several options you can choose:

Restart all tasks sends the next POST request that actually does do nothing.
https://xxx/api/clusters/local/connects/local/connectors/reddit-source-json/action/RESTART
According to the REST API documentation https://docs.confluent.io/platform/current/connect/references/restapi.html there is no such request available. And the correct one is this:

Restarting the specific task using the triple dot context menu works great tho.

@5hin0bi we currently only restart connector instance, not tasks on this button click. I will change this to restart both connector and all its tasks. I think we will also need to rename this button to smth like "Restart connector".

@5hin0bi can you please verify it works, and reopen issue if not

Checked on our dev environment. The button is now called "Restart Connector", but failed tasks themselves are not restarted.

To do: create 3 buttons

Need to implement frontend

I'm seeing a similar error with KafkaConnect where it's trying to hit an api endpoint:
500 Server Error for HTTP GET "/api/clusters/local/connectors?search="
that also doesn't seem to exist, per Confluent's API.

I'm seeing a similar error with KafkaConnect where it's trying to hit an api endpoint: 500 Server Error for HTTP GET "/api/clusters/local/connectors?search=" that also doesn't seem to exist, per Confluent's API.

That's our backend with our API, not confluent's. Please raise a new issue.


Blazor Client can not get access token after login successfully

[EDIT by guardrex to add the metadata]
Issue description
I am using Blazor Webassembly Standalone with AAD. Login is ok, but I can not get access token by AuthenticationService.RequestAccessToken. The tokenResult is not null but when I get tokenResult.TryGetToken(out var token) it can not get token
Program.cs
builder.Services.AddMsalAuthentication(options =>
            {
                var authentication = options.ProviderOptions.Authentication;
                authentication.Authority = "https://login.microsoftonline.com/...";
                authentication.ClientId = "...";
            });

Index.cshtml
@using Microsoft.AspNetCore.Authorization
@using Microsoft.AspNetCore.Components.WebAssembly.Authentication

@inject HttpClient Http
@inject IAccessTokenProvider AuthenticationService

<button type="button" class="btn btn-secondary oi oi-loop-circular" @onclick="Search"></button>

@code {
    protected async Task Search()
    {
        var tokenResult = await AuthenticationService.RequestAccessToken();
        if (tokenResult.TryGetToken(out var token))
        {
            Http.DefaultRequestHeaders.Add("Authorization", $"Bearer {token.Value}");
        }
    }
}

Software versions

[ ] .NET Core: 3.1.200
[ ] Microsoft.AspNetCore.Components.WebAssembly : 3.2.0-preview4.20210.8

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

ID: b30c952e-6e09-5486-1b3a-3f7b1941c75c
Version Independent ID: e281407e-e12b-e618-88d9-3a2b3a9074b5
Content: Secure an ASP.NET Core Blazor WebAssembly standalone app with Azure Active Directory
Content Source: aspnetcore/security/blazor/webassembly/standalone-with-azure-active-directory.md
Product: aspnet-core
Technology: aspnetcore-security
GitHub Login: @guardrex
Microsoft Alias: riande

Hello @hieuluong1989 ...

You meant to type "Index.razor," correct?
Can you try running the app securely (HTTPS) with a secure callback URL configured in Azure?
Make sure that you've checked the Access Tokens checkbox in the app's Web platform config in Azure.
What you show :point_up: doesn't indicate that the token isn't there. Assign token.Value to a private field and show it in your component, log it, or write it to the console.

btw - Please use the This page feedback button and form at the bottom of any topic to open issues. It identifies the topic, tags the issue with metadata to help us track the work, and pings the author. No worries here, I'll manually add the metadata to your opening comment.

@guardrex : Thank for your replying!

Yes, Index.razor
I tried upgrade to 3.1.201, Https, and also checked checkbox Access Tokens. I tried with Console.WriteLine but code flow didn't go into the IF condition

if (tokenResult.TryGetToken(out var token))
{
      Console.WriteLine($"TOKEN: {token.Value}");
}

What about HTTPS? ... Did you convert over to secure communication (like https://localhost:5001) with Azure AD and use a secure callback URL (https://localhost:5001/authentication/login-callback)?

@guardrex : yes, I tried with https://localhost:5001

I uploaded my simple project https://github.com/hieuluong1989/BlazorAAD. If you have time, please take a look for me. I have this problem from 3.2.0-preview2, I hoped it was fixed in preview4 but not.

Nothing really jumping out as obviously wrong.
Open an issue for engineering at ...
https://github.com/dotnet/aspnetcore/issues
... and give them the link to your repro project. Please add a cc: @guardrex to your opening comment and a link to this docs issue ...
https://github.com/dotnet/AspNetCore.Docs/issues/17963

If they come up with something that we need to document, then I'll re-open this issue and work it from there.

I got the same issue now. the project is a Blazor Webassembly Standalone with OIDC authentication by a third-party provider Authing.cn. Login function works properly, but access token can not be gotten. did I miss somthing?
Program.cs
builder.Services.AddOidcAuthentication(options =>
{
    builder.Configuration.Bind("Local", options.ProviderOptions);
});

Index.razor.cs
    [Authorize]
    public partial class Index : ComponentBase
    {
        [Inject]
        public required HttpClient Http { get; set; }

        [Inject]
        public IAccessTokenProvider TokenProvider { get; set; }

        protected override async Task OnInitializedAsync()
        {
            var option = new AccessTokenRequestOptions
            {
                Scopes = new[] { "openid" }
            };
            var tokenResult = await TokenProvider.RequestAccessToken(option);
            if (tokenResult.TryGetToken(out var token))
            {
                Http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Value);
            }
        }
    }

net 7.0
Microsoft.AspNetCore.Components.WebAssembly: 7.0.10

@RogueJin ... First, go to ...
https://github.com/dotnet/aspnetcore/issues
... and search the open and closed issues to see if anyone else has asked about this. If you can't find an existing issue, open a new issue for them.
Please add ...
cc: @guardrex https://github.com/dotnet/AspNetCore.Docs/issues/17963

... to the bottom of your opening comment so that I can follow along. I might re-open this for doc work depending on what they say.

@guardrex got it


[WIP] Try to set up Jenkins job for windows tests

test test test

Looks like we would not be able to merge this PR because of merge conflicts. Please rebase, fix conflicts, and force push to your branch.

Looks like we would not be able to merge this PR because of merge conflicts. Please rebase, fix conflicts, and force push to your branch.

closing this - I think there've been a bunch of jenkins changes lately, so this is outdated.  we may possibly want to run this on appveyor instead as well so that other maintainers can admin.


Allow access to Cookie/Session middleware on 'upgrade' events

I want to access cookies and session objects during an upgrade event. eg:
app.on('upgrade', function(req, socket, head) {
    var someValue = req.session.someValue; // Doesn't work
});

Cookie and Session middleware is hooked up properly and accessible from app.get/post/put/delete methods, just not from special events such as 'upgrade' even though the Connect session cookie token is available in the raw HTTP request headers eg.
app.on('upgrade', function(req, socket, head) {
    var connectCookie = req.headers['cookie'];
});

FYI: an 'upgrade' event is fired on a WebSocket handshake. During the handshake it would be ideal to get hold of the logged in user (stored in the current session). Also WebSocket frameworks for node.js as such https://github.com/Worlize/WebSocket-Node rely on the 'upgrade' event, hence why I believe this feature would be desirable for anyone building web sites that use WebSockets.

Bump for this.
I'm having to use a custom cookie parser as a workaround since this isn't available.
It would probably just involve suppressing the original upgrade event, creating a custom one that is sent through a certain config chain before being sent to the upgrade handler.


Add gradient support for clarity icons

[ ] bug
[x] feature request
[ ] enhancement

Actual behavior

Add gradient support for clarity icons.

@likwifi: I am sorry but I do not understand. Could you please edit your description to add more information about your request? Please add screenshots, if any, along with your description as that will help us review the feature that you are requesting.

I'm not sure I understand what kind of API would be useful here, this is just CSS that you could write to target any clr-icon.

@gnomeontherun
I mean something like this.
<clr-icon shape="home" clr-gradient="linear-gradient(red, yellow)" size="40">
and considering this attribute clarity-icons js should create svg defs>linearGradient tag.

I see, we'll mark this as an enhancement request and see if it is something that we'll support.
@reddolan What would the UX guidance be with having gradients?

@gnomeontherun is there something to prevent them from using css gradients now?

@gnomeontherun I just assumed that if we allow for color change that gradient would be included. I didn't know it was an extra effort to enable it. I would think if it isn't too much effort, we would want the flexibility. If it is quite a bit of effort/time, then lets chat offline about it and figure out how to proceed.

With respect to actionable and indicator icons which are 16px the value of adding gradient support is dubious. It is also not clear that such a look is consistent with Clarity visual design. Since @gnomeontherun says “It means restructuring all of the icons SVG markup to include a linearGradient capability. Its non-trivial, but wanted to verify if we even recommended gradients first.” It is probably best to wait for the Clarity visual refresh and look at the pros and cons of gradient fills for icons at that time.

In the meantime some thoughts about usage and intent will be useful. Given the following types of icons, where do we want or need to enable gradients, and in which cases should they be programmatically applied as opposed to part of a unique and app specific design asset?

Icon types overview (with example)

▪	Control (Karet)
▪	Indicator static (Home)
▪	Indicator toggle (Read / unread)
▪	Actionable with states (filter)
▪	Display (accompanying navigation text)
▪	Small Illustration (on a card)
▪	Large illustration (page level)
▪	Application (to launch application)
Clearly some of these are too small / inappropriate for gradient, others become specific designs using colored fills etc and applying gradients will compromise the intent. What is the subset of these where a gradient is required and will be attractive, useful and appropriate for the context?

Closing this given the contrast with current Clarity visual design sensibilities and the effort required re: "restructuring all of the icons SVG markup" - will reopen in the context of a visual refresh if appropriate.


searchChatMessages with sender_user_id

I'm trying to search photo messages sent by some user inside public chat.  And I got error in return:
==> {"@type":"searchChatMessages","chat_id":-100XXX,"filter":{"@type":"searchMessagesFilterPhoto"},"query":"","from_message_id":74563190784,"offset":-1,"limit":20,"sender_user_id":YYY,"@extra":58}
<== {"@type":"error","code":400,"message":"INPUT_FILTER_INVALID","@extra":58}

I "sender_user_id" is not specified, then no error occurs and photo messages from any user are returned.  How to search photo messages sent by given user?
Thanks

This combination of filters is not supported server-side, because official clients don't need it. The best you can do is to find all user messages and filter them client-side.


How much GPU memory is needed for evaluation?

I want to evaluate GEN-VLKT-S (R50) model on HICO-DET dataset using a single RTX 3090TI. However,  throw an error: CUDA error: out of memory.
I wonder how much GPU memory is needed for evaluation?
Thanks!

Hi, you may adopt a small batch size, like 4.


Parallel Feature Extraction

This is an amazing project.
Even I can create image generation from scratch.
However, the problem I'm currently facing is that feature extraction using the T5 encoder cannot be done in parallel.
To extract features from 1.2M images, parallel extraction is essential.
But with the current code, extraction can only be done with a single GPU.
How should I address this issue? Please advise.

We have start_index and end_index in the extracting script, which is used to run several commands at the same time in a .sh file. Same as the parallel you said.
https://github.com/PixArt-alpha/PixArt-sigma/blob/30c3297259da6544295168c14a67500f35397ab3/tools/extract_features.py#L307

Thank you!
I do so.


Update guidance around 5 years work history

Context
We need to remove references to 5 years of work history from the candidate facing guidance and content.
Changes proposed in this pull request

[x] On work history start page update the guidance to remove references to 5 years (as specified).
[x] On work history start page change choices to simple complete or no work history.
[x] Change guidance on work history explanation page to remove references to 5 years (as specified) and reduce size of text area.

Guidance to review

Is the content correct?
Is there anything missing?

Link to Trello card
https://trello.com/c/12YzTgic/2526-dev-update-guidance-around-needing-5-years-of-work-history
Things to check

[x] This code does not rely on migrations in the same Pull Request
[x] If this code includes a migration adding or changing columns, it also backfills existing records for consistency
[x] API release notes have been updated if necessary
[x] New environment variables have been added to the Azure config

I was just playing around with this locally and you can get the following which doesn't seem ideal. It's out of scope for this card, but you can do the following to get this.

say no and fill in an explanation of why you've not worked
Add a job
add a work break
delete the job

lgtm. I'll let paul sign it off.


Avoid messages in the night

Fixes: https://github.com/PerfectFit-project/virtual-coach-issues/issues/392
Fixes: https://github.com/PerfectFit-project/testing-tickets/issues/24

Check for the time before scheduling and before triggering a scheduled task. If the task occurs in nighttime, it is moved to the next morning
Avoid checking for the dialog status in the night.

@wbaccinelli When we offer people the opportunity to reschedule dialogs, we send them at 7am if they choose the morning (https://github.com/PerfectFit-project/virtual-coach-rasa/blob/main/Rasa_Bot/actions/definitions.py). For consistency, it might be good to also use 7am here as the "morning time".

@wbaccinelli When we offer people the opportunity to reschedule dialogs, we send them at 7am if they choose the morning (https://github.com/PerfectFit-project/virtual-coach-rasa/blob/main/Rasa_Bot/actions/definitions.py). For consistency, it might be good to also use 7am here as the "morning time".

@nelealbers You're absolutely right! Will do that


[rhobs-logs] Add missing readiness and liveness probes

This PR adds readiness and liveness probes where they are missing in the Loki deployment.
Note: The changes also impact a monitoring manifest.
JIRA:

LOG-2503
LOG-2505

LGTM from metrics-template pov Also you might want to run make all to resolve CI?

Thank you @saswatamcode :+1:
Will run it and see what results from that.

@aminesnow Unfortunately only a make all --always-make will probably solve the diff issues.


Error: recursive use of an object detected which would lead to unsafe aliasing in rust

Unsure how to give more info, but getting this error sometimes.

Also this:

Hey @maccman, could you provide me with a file of the embeddings so I can reproduce the error?

@ocavue can you put this on your list.

Here is a demo: https://github.com/issueset/voy-issue-50
Steps to run this demo:
# enable Node.js corepack to install pnpm.
$ corepack enable

# clone the repo
$ git clone https://github.com/issueset/voy-issue-50
$ cd voy-issue-50

# install dependencies and run the app
$ pnpm install
$ pnpm run dev

Open http://localhost:5173/ and click the button, you will see the following error:
000a7e72:0x1b81f Uncaught (in promise) RuntimeError: memory access out of bounds
    at 000a7e72:0x1b81f
    at 000a7e72:0x11a18
    at 000a7e72:0x4d58
    at 000a7e72:0x185aa
    at 000a7e72:0x1b068
    at _Voy.deserialize (voy_search_bg.js:322:26)
    at start (entry-browser.ts:39:19)

The core part of this demo is javascript/entry-browser.ts and data/value.json.

@ocavue thanks for the demo. I'm currently on vacation. Will look into it in a couple weeks.

The issue is caused by the memory allocation limit for WebAssembly. Browsers arbitrarily assign up to 4GB memory for wasm. In #48, I increased the bucket size to allow more data points in the index but it led to stack overflow during the deserialization process. Because the memory limit is a hard requirement for the browsers  until memory64 arrives, I think it's the best to revert the bucket size. To index large amount of resources, I suggest to use multiple indexes to avoid the error in #48.

Fix released in v0.6.3.


Fix "since" deprecation, should be "1.3" not "1.2"

The deprecation here should be since 1.2 and not since 1.3, I believe.
This look okay @albert-magyar?

Actually maybe change the commit message :)


Skript honks when

Checklist

[ ] I have checked that this feature has not been suggested before
[ ] I have checked that this feature is not already in the to-do/wip list (view Projects tab)

Describe your feature
Add skript hooks honks (haha good pun right)
How is this useful to others?
Helps skripters
Additional Information

React with 👍 or 👎 to show your opinion on this feature. You may also reply to give feedback.

what is there even to hook into though

Honkore is a skript addon?

Not currently but maybe I can add hooks for reports and punishments. Just a thought though and I won't guarantee it

Can you give me some examples? I don't see why Skript users would need to hook into honkore.

Yea, would love some hooks for things like what you said above.

Quick poll:
I'm making decent progress on integrating Skript into honkore.
For punishments, how should lengths be specified? Should the user provide a timespan (ex, "forever", "1m2s"), should they provide how many seconds long the punishment is, or should they provide a Skript timespan ("2 minutes and 1 second")

I would use timespan's personally.

@quick007 can I get your feedback on this :)

progress


Fixed issue converting ArrayBuffer to empty object

Fixes an error that was causing the replace of ArrayBuffer values with empty objects.

Changes Unknown when pulling 1f461d86f508c60e64ac9dd316cf4e48b4dc5ef8 on emidiocroci:master into ** on mcmath:master**.


[cmake] Error when building with Cmake

Issue description
I am getting this error when installing raylib through Cmake.
CMake Error in CMakeLists.txt:
  IMPORTED_IMPLIB not set for imported target "raylib" configuration "Debug"`

Here is what my CmakeList.txt looks like
cmake_minimum_required(VERSION 3.21)
project(GameDev)

set(CMAKE_CXX_STANDARD 20)

find_package(raylib CONFIG REQUIRED)

add_executable(GameDev src/main.cpp)

target_link_libraries(GameDev PRIVATE raylib)

Environment
Windows: 10
Clion: 2021.3.3
vcpkg: 2022-02-01-c76e0def147898591d9c35113b95e0b3f2eaa4d4
Triplet: x64-mingw-dynamic
Code Example
Install raylib through vcpkg and setup the Cmakelists.

It works fine if I write this
target_include_directories(GameDev PRIVATE ${raylib_INCLUDE_DIRS}) target_link_libraries(GameDev PRIVATE ${raylib_LIBRARIES})
But official docs didn't state I had to use the macros.

@TheAwesomeGem I'm afraid I'm not maintaining the Cmake build system, it was user-contributed, feel free to join raylib Discord and ask in the specific CMake channel or wait in case some user can contribute to this issue.

Sounds good. Perhaps you can update the documentation in the meantime incase someone in the future might be having the same issue.

@TheAwesomeGem Feel free to send a PR.

For other confused people coming here, the information when installing through VCPKG states you should include raylib with the statements:
    find_package(raylib CONFIG REQUIRED)
    target_link_libraries(main PRIVATE raylib)

But the raylib target does not expose the library paths or headers. So do what @TheAwesomeGem did and you should be alright.
Also, depending the version of vcpkg you are using, you might need to use the upper-case RAYLIB_INCLUDE_DIRS and RAYLIB_LIBRARIES variables instead.


Adding subscriptions

Added the first part of the subscriptions (subcription_spec, subscription model and associations) under guidance from Radar.

Was it intentional to delete most of spec/dummy's migrations ?

No Philip, I was having trouble running migrations so Ryan told me to run:
bundle exec rake -f spec/dummy/Rakefile forem:install:migrations
Then:
bundle exec rake -f spec/dummy/Rakefile db:drop db:create db:migrate db:test:prepare
Perhaps that's what deleted them?

Maybe when @radar wakes up he can comment :-)

We might be waiting a while... last I heard of him he was legless lol

Not so legless today.
By running bundle exec rake -f spec/dummy/Rakefile forem:install:migrations it would have copied over the migration for the subscriptions table to the spec/dummy/db/migrate folder. This then should have been added to Git, rather than the migrations in dummy being removed. The reason for this is because there's more than the Forem migrations in dummy: There's also migrations that set up stuff for the dummy application's users table which we most definitely don't want to delete.

To restore the migrations I ran this little command. Was a good exercise in learning more about Git.
git checkout <sha that deleted commits>^ -- spec/dummy/db/migrate/20110625220405_create_forem_forums.rb spec/dummy/db/migrate/20110625220406_create_forem_topics.rb spec/dummy/db/migrate/20110625220407_create_forem_posts.rb spec/dummy/db/migrate/20110625220408_add_reply_to_to_forem_posts.rb spec/dummy/db/migrate/20110625220409_add_locked_to_forem_topics.rb spec/dummy/db/migrate/20110625220410_add_pinned_to_forem_topics.rb spec/dummy/db/migrate/20110625220411_add_forem_views.rb spec/dummy/db/migrate/20110625220412_add_updated_at_and_count_to_forem_views.rb spec/dummy/db/migrate/20110708030915_add_email_to_users.rb spec/dummy/db/migrate/20110625220412_add_updated_at_and_count_to_forem_views.rb spec/dummy/db/migrate/20110828132917_add_hidden_to_forem_topics.rb spec/dummy/db/migrate/20111026062441_add_devise_to_users.rb spec/dummy/db/migrate/20111026132103_add_login_back_to_users.rb spec/dummy/db/migrate/20111026132225_add_forem_admin_to_users.rb spec/dummy/db/migrate/20111108032747_add_indexes_to_topics_posts_views.rb spec/dummy/db/migrate/20111108032748_create_forem_categories.rb spec/dummy/db/migrate/20111108032749_add_category_id_to_forums.rb

Added in @1edab8d0a1386bab8ea604a98e823183a695a057 and @f341b3b961c989b44d1883c136477ef08852511c.
Thanks Aston!

I'm not seeing this in master (or a branch for that matter).  Once this gets merged I'll start on the front end.

Added on master.


VSCode and IntelliJ IDE integration

Ongoing IDE integration tasks should be identified here.

/remove-lifecycle stale

Closing as obsolete


Parameterize Scala version

A small build change to make it easier to test different versions of Spark and Scala. See #66

This is helpful for testing, and in fact we define our dependencies this way
  <properties>
    <scala.version>2.12.6</scala.version>
    <scala.version.prefix>2.12</scala.version.prefix>
    <spark.version>2.4.0</spark.version>
  </properties>
...
      <dependency>
        <groupId>org.apache.spark</groupId>
        <artifactId>spark-core_${scala.version.prefix}</artifactId>
        <version>${spark.version}</version>
        <scope>provided</scope>

The problem is that Disq will need to produce separate _2.11 and _2.12 artifacts (to match each Spark Scala version we support), and for whatever reason (I knew at the time, but that was a while ago) the <artifactId> cannot have property substitution in it.  Thus we have to
<artifactId>foo_2.12</artifactId>
<name>foo_${scala.version.prefix}</name>

and then use shell scripts to modify the pom.xml files in place during continuous integration and the Maven release process.
I believe @ryan-williams has come up with a better cross-Scala version build pattern; I think it is based on sbt though.
I've been meaning to take a look at Scalor Maven Plugin, which uses separate Maven modules
https://github.com/random-maven/scalor-maven-plugin/tree/master/src/it/test-cross

Yea, I moved everything to SBT. Scala cross-publishing is baked in, and I wrote a plugin to cross-publish against multiple Spark major versions as well (though I ultimately just dropped Spark 1.x, and don't use that functionality).
scalor-maven-plugin looks promising.
Writing code to configure builds is important to me. Easy factoring out of that code to reusable plugins is also a plus.
Toward that end, I bookmarked polyglot-maven, which ostensibly supports writing Scala to configure Maven builds, perhaps it's a useful data point here.

Thanks, @ryan-williams.
I'd -1 moving to sbt for ADAM, simply because what we have there works for the most part, and is not unreasonably complicated for supporting four different languages.
I'm fine with using sbt here (along with your suite of build tools) if makes things easier.

Interesting! It would be straightforward to set up an SBT build here for Scala cross-publishing; I'll try to put together a PR showing that. Do you have any other fancy needs, e.g. Spark-version cross-publishing?

Do you have any other fancy needs, e.g. Spark-version cross-publishing?

Spark 3 if/when that is ready, at least six months' out by my guess.
The interoperability and large file tests might be considered a bit fancy.  ;)
Looking further out, building out a harness for performance comparison benchmarks would be useful.

Spark is a provided dependency in Disq, and we only build Java source (there's no Scala code at the moment). So I think it may be possible to just have a single Disq JAR that works with both Spark 2.3.x_2.11 and 2.4.x_2.12. So unless I'm missing something, we may not need anything more fancy yet.

gtk! If Spark's Java APIs obey semver correctly, then yea, one build against them should let you use any underlying 2.x Spark version.

So I think it may be possible to just have a single Disq JAR that works with both Spark 2.3.x_2.11 and 2.4.x_2.12. So unless I'm missing something, we may not need anything more fancy yet.

I think this might be risky, we've run into at least one issue with Java specific to Scala 2.12.  I'll have to dig though, will update this comment.

How about we continue to build a single JAR (build with Scala 2.11), until we find an issue running on Scala 2.12? It may work fine so we won't need to introduce unnecessary changes to Disq build.
This change is useful for testing, so should be OK to merge.

I think it is fine to merge this as is, but since the most recent ADAM release now has both 2.11 and 2.12 artifacts, I would like to build out an example Scala 2.11/2.12 project that uses Disq to make sure there are no issues before we cut the next Disq release with only 2.11 artifacts.


HHVM3.6 instead of php, the cart items won't show up

When you run on HHVM3.6 instead of php, cart items won't show up in amazon standalone checkout.
Can you fix this issue?
Thank you very much
Justin

fixed.
https://github.com/lawrencetran/amazon-payments-magento-plugin/commit/7f441df37869f31701aca47e3c25e5ac2bc4eb1a


feat: add ":(" to the end of type: bug label description

PR Checklist

[x] Addresses an existing open issue: fixes #454
[x] That issue was marked as status: accepting prs
[x] Steps in CONTRIBUTING.md were taken

Overview
Add ":(" to the end of type: bug label description to make it more interesting

@all-contributors please add @tungbq for code.

🤖 Beep boop! This comment was added automatically by all-contributors-auto-action.
Not all contributions can be detected from Git & GitHub alone. Please comment any missing contribution types this bot missed.
...and of course, thank you for contributing! 💙

Thank you @JoshuaKGoldberg !


📝 Update includes in docs/de/docs/advanced/advanced-dependencies.md

📝 Update includes in docs/de/docs/advanced/advanced-dependencies.md

Thanks for the effort! :cake:
This was handled in another PR, so I'll close this one now. :coffee:


fix(forge): fix the --debug flag in forge debug, default to off

'forge debug' was ignoring the --debug flag. This change fixes that, so without running without --debug will print a trace, and running with --debug will run in the debugger. This is as already described in the documentation.
Motivation
I wanted to run 'forge debug' without the debugger, and was confused that the behavior did not match the documentation.
Solution
Just plumb the command line arg through.

Deprecating for the upcoming debugger refactor


Sample: Add the custom cell

The custom cell element has been added, which consists of:

Header label;
Value label - a random number;
A button that generates a random number and sets it to a value.

I have replaced the hardcoded size with the image size and now it looks like that:


Please invite me to the community

Name
kevin KALISA
Additional Context
I encountered Infraform Community through online research while exploring infrastructure management tools. Its open-source nature fosters collaboration and innovation. The community's focus on automating and streamlining infrastructure processes aligns with my goal of improving efficiency. By joining, I hope to contribute to the project's growth, learn from experienced users, and potentially integrate Infraform into my workflow.

Invitation sent to join the GitHub Organization. Welcome to Infraform 🎉Please check your mail to accept the invitation sent by GitHub! 🤖About usInfraform is a remarkable open-source solution tailored for serverless platforms, aimed at empowering creators to craft their infrastructure solutions. 💻 We're thrilled to welcome you into our vibrant community! ✨ We eagerly anticipate your valuable contributions! 🤓 Don't forget to explore our community on Github and connect with us on LinkedIn 💜 Feel free to spread the word about our community to like-minded individuals interested in development, DevOps, technology, and collaborative contributions. 👉💜👈


Ignoring Unused function which has name with _ prefix is not working.

environment: ubuntu22(wsl) rescript v10.1.2 rescript-vscode: v1.12.0
I have a function start which is exported and used from js side, but it is marked start is never used..  As i know, you can add an prefix _ to the variable or function to skip unused checking, this is working on the compiling console, but still get warning in the editor.
compilation console

editor

I just found the decorator @live can make the code be skipped.


cargo fix: Call rustc fewer times.

This is an improvement of cargo fix so that it calls rustc one fewer times per target. The original code an extra step of calling rustc to display final diagnostics to the user. Part of the reason is that in the past, cargo did not always use JSON, and so cargo fix was forced to call rustc with and without JSON. Now that cargo uses JSON all the time, that is not necessary. This avoids the final call to rustc by remembering the original output from rustc.
This needs to keep track of both the first and last output from rustc. This is to handle the situation where cargo fix fails to apply some suggestion (either because the verification fails, or rustfix fails). The cargo fix output includes both the error, and the original diagnostics before the error.
The first commit is a little test framework to exercise the various edge cases around how fix works. The comments should explain how it works, but it essentially has a rustc replacement that emits various different diagnostics and counts how often it is called.
The subsequent commit includes the change to keep track of the output from rustc and to avoid the final call.
Fixes #13215

Thanks!
@bors r+

:pushpin: Commit e7eaa5190968e8b1d6d0898ca70913b5684832ca has been approved by epage
It is now in the queue for this repository.

:hourglass: Testing commit e7eaa5190968e8b1d6d0898ca70913b5684832ca with merge dfdd5ff81a96afbc1bca8f3df2a37f23a4071da0...

:sunny: Test successful - checks-actions
Approved by: epage
Pushing dfdd5ff81a96afbc1bca8f3df2a37f23a4071da0 to master...


Exited with code 0 after building in VS 2017

So im trying to build from source but when i run it, it gives me an error saying exited with code 0 without any info on what the issue is..
Please tell us about your environment:

TJAPlayer3 version: latest in source code
Operating system version: windows 10
Windows System Locale: japanese

I am not using any extra stuff for the game as it cant run.

I noticed that you closed this issue not long after you opened it. Were you able to get things building and running?

No unfortunatly.

Did the main window appear at all? If so did it present a dialog box as it went to crash? Or did it not even get as far as to do either of those things?
Also, a log file may have been produced. If so then you might find some clues in it, and/or you could compress and attach it to this issue and I might be able to take a look.
(Please note that for a few different reasons I have neither been working on TJAPlayer3, or even playing it, for a very, very long time, so I may only be able to provide so much assistance.)

I am currently not at my computer when i am i will send the log

Hi sorry for the late response but after running debug this is the debug output i get:
'TJAPlayer3.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_<IP_ADDRESS>__b77a5c561934e089\mscorlib.dll'. Cannot find or open the PDB file.
'TJAPlayer3.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Users*****\Desktop\TJA player\TJAPlayer3\Test\TJAPlayer3.exe'. Symbols loaded.
The program '[8876] TJAPlayer3.exe' has exited with code 0 (0x0).
I hope you can get back to me as soon as possible.


Azure B2C - Maintain a login session and manage access tokens in a SPA (React)

Library

[ ]<EMAIL_ADDRESS>[ ]<EMAIL_ADDRESS>
Description

We are using Azure B2C to manage external users sign in, sign up, password reset, MFA for a Single page app . Currently we are using MSAL 2.2.0 to login the user using the msal.loginredirect flow.

Once the user is logged in , we use the msal.getAllAccounts(); call to check if the user is logged in. Every time we refresh a page or navigate from one route to another the msal.getAllAccounts() return no accounts. If there are no accounts we cannot make the acquireTokenSilent call and have to make the login redirect call which is not a good solution.
How do we use the acquireTokenSilent flow without an account object ?
(I am using a custom policy in our use case and have defined session type/timeouts and token lifetimes in the sign in/sign up relying party file)

We are also using access tokens based on a scope defined on the API registration in B2C. Every time we make an API call we look for an access token with
the below request "msal.acquireTokenSilent(silentTokenRequest )", if the silent call fails we make a msal.loginredirect request again and look for the account needed for the silent call.

Is this the right way of handling access tokens as well ?
export const silentTokenRequest = {
scopes: ["https://abcd.onmicrosoft.com/api/data.write";],
account: null,
redirectUri: msalConfig.redirectUri,
forceRefresh: false
}
Thanks!
Sharat

@Sharatmenon

We are using Azure B2C to manage external users sign in, sign up, password reset, MFA for a Single page app . Currently we are using MSAL 2.2.0 to login the user using the msal.loginredirect flow.
Once the user is logged in , we use the msal.getAllAccounts(); call to check if the user is logged in. Every time we refresh a page or navigate from one route to another the msal.getAllAccounts() return no accounts. If there are no accounts we cannot make the acquireTokenSilent call and have to make the login redirect call which is not a good solution.

How do we use the acquireTokenSilent flow without an account object ?

Can you please try using<EMAIL_ADDRESS>and let us know if getAllAccounts still returns an empty array? This was a known issue that was fixed in 2.6.0.

We are also using access tokens based on a scope defined on the API registration in B2C. Every time we make an API call we look for an access token with
the below request "msal.acquireTokenSilent(silentTokenRequest )", if the silent call fails we make a msal.loginredirect request again and look for the account needed for the silent call.
Is this the right way of handling access tokens as well ?

export const silentTokenRequest = {
scopes: ["https://abcd.onmicrosoft.com/api/data.write";],
account: null,
redirectUri: msalConfig.redirectUri,
forceRefresh: false
}

Yes, this is close. The one change is that account should not be null, which you can populate via the account APIs (getAllAccounts, getAccountByUsername, getAccountByHomeId, getAccountByLocalId).

Thank you @jasonnutter for the quick response. I tried 2.6.0 and getallaccounts works now. What a relief :)


Add gateways API.

Add gateways as main-level data container
Move devices to exist within a gateway
Update create device endpoint to require a gatewayHid
Update get device endpoint to have optional filter by gatewayHid

Wanted to get eyes on this before we just merge it in :)


fix: allow higher versions of typescript to be used

This is a real problem.
If I installed a different version of typescript in a project, this package will overwrite the ./node_modules/.bin/tsc with typedoc's typescript version.
I'm even thinking if this should be a dependency at all, just a peerDependency.

This is not feasible for TypeDoc right now since it relies on internal APIs and can break even with a minor release. See #880

okay sure thing! there must be some solution to not let typedoc's dependency overwrite the tsc bin.


update inquirer and deep-extend to fix reported vulnerabilities

npm is reporting security vulnerabilities for gh-release when installed due to some out of date deps.
The tests pass, and only one method is used from inquirer, so even though this update would skip like 5 major versions the interface for that method is the same and it should work fine.

📦 3.3.1 🚀


specify version of hppc

In a project that depends on titan-core the version of hppc was automatically resolved to 0.7.1 (the latest), which isn't compatible. Fixing it to 0.6.0 should work.

I've used 0.6.0 because that's what mvn dependency:tree resolved to in titan-core. 0.6.1 works aswell, so maybe we should use that.

titan09 now uses 0.7.1 (as of 9a49faa3669fc2c03e458c7999ecf095e0b0725d).  The dependency version is currently controlled in the root pom.xml's <dependencyManagement>.

Sweet, thank you!


NavigationView indicator animations for OSX

On MacOS, the NavigationView did not have animations when changing the selected item on the navigation view.
This PR fixes that by implementing a custom behaviour, which animates the SelectedIndicator border (on Left display mode).
Before:
https://user-images.githubusercontent.com/13438702/200153392-b081413a-336e-4ed0-9d6a-da90c89b2cca.mov
After:
https://user-images.githubusercontent.com/13438702/200153394-1a214835-2645-49a3-9ebd-9635198fc94b.mov

The video above is a video from my own project. The navigation view now behaves like this in the samples app:
https://user-images.githubusercontent.com/13438702/200153602-5d8aa8a2-68a3-4f07-af01-06f54e9ad656.mov

Hi! Thanks for taking an interest in this. Unfortunately, this isn't something I'm looking to merge in. The selection indicator doesn't animate on any OS at the moment. The animations that do it in WinUI are done using composition animations, which we didn't have in Avalonia at the time I ported the control so I left it out (but kept the method where it begins so it could be added in the future - hence the AnimateSelectionIndicator). I am looking to add that code in now that we have a compositor, but I'm waiting for it to stabilize a bit and a feature (scoped batch animations) to be implemented first.
What you've done is pretty neat and may be useful to others looking for this in the near-term, though I don't think its suitable for the library itself. This feature would need to work on all OS's, all display modes of the NavigationView, support hierarchical scenarios, and be properly clipped if the animation has to proceed to an item that's offscreen (scrolling). I also think it'd be better not to be a markup extension and implemented directly in the source and I'd like to avoid setting ClipToBounds=False as that could potentially cause issues for others as a result - and this is where composition animations help. Sorry, but thanks again for your interest!

I understand. But what I noticed is that it does work in Windows out of the box! (Windows 11 tested). I will just keep using the code for now in my own app, but if anyone else is interested in using this, they can use my fork however they like.
Cheers!


Feature: Installations API

See https://developer.github.com/v3/apps/installations/
And also retrieving an access token: https://developer.github.com/v3/apps/#create-a-new-installation-token

Going to start with the installation token.

With the work in https://github.com/softprops/hubcaps/pull/178/files#diff-cca72d990dfd11d6b691180e03694f19R36 this should be easier now.

This should be covered now https://github.com/softprops/hubcaps/blob/master/examples/invitations.rs


Use ReactJS for the frontend

Consider using ReactJS for the frontend of Crypter as it will have increased interactivity demands for which ReactJS may be ideal (currently uses handlebars and manually updates UI -> no two way data-binding going on :( ).

Laters


ESP32: Map ESP32 error codes with CHIP error codes

Problem
ESP32 APIs return the error codes specific to ESP32. When these API are called in the CHIP code, they should be mapped to corresponding CHIP error codes to be propagated forward so that the behavior is correct
Summary of Changes
Added the function which maps ESP32 APIs return codes to CHIP error codes.
Fixes #4256

LGTM  I would however consider removing ret temporary variable and use MapBLEError directly as suggested.

Removed it.


/oauth/token endpoint returns raw token

/oauth/token endpoint returns raw token
Summary
/oauth/token endpoint returns raw token with content-type set to application/json
Environment

quay.io/keycloak/keycloak:13.0.1
quay.io/gogatekeeper/gatekeeper:1.3.2

Expected Results
Either gatekeeper returns the decoded token with content-type at application/json, or it returns the raw token with content-type at application/json;base64. I think it's more logical that this endpoint returns the decoded token, as I don't see the point otherwise.
Actual Results
/oauth/token endpoint returns raw token with content-type set to application/json
Steps to reproduce
just call /oauth/token endpoint
Additional Information

The endpoint in Gatekeeper 7.0.0 returns the decoded token,
The commit that changes endpoint behavior.

I can change this behavior and make a pull request, but as it's a recent change, a discussion is probably needed.

@Booyaabes thank you for reporting!

@p53 thank you!


Incorrect Last Modified dates in My Resources listing

Description of the bug
On my My Resources page, I see a listing that has the last Modified date for many of the resources listed as very recent (Yesterday or today).  I know that I did not touch these recently, and if I enter in to the landing page of one of the resources I see the last updated date, the correct date
My Resources listing

Landing page

Steps to reproduce the bug:

Go to My resources page.  Check last updated date
Click on one of the resources listed
See that the Last updated date is not the same as was in the my resources page

Expected behavior
The Last Modified date in the My Resources listing should be the same as the Last updated date on the landing page.  We should also settle on a consistent terminology, either Last Updated or Last Modified.  I suggest Last Modified as a modification may not always be an update.

This has been fixed as part of release 2.1


Job Summary Size Limitation aborts the job

The job identified all the vulnerabilities as per log but got the below error and the job aborted.
$GITHUB_STEP_SUMMARY upload aborted, supports content up to a size of 1024k, got 1292k.
Although the size limitation is due to GitHub, is there any option to opt out for Job Summary when size exceeds?

I see this has been addressed on #767 . Is this been released yet?

Hello ,

name: 'Dependency Review'
id: dependency-review
uses: actions/dependency-review-action@72eb03d02c7872a771aacd928f3123ac62ad6d3a
 I getting this error still on 4.3.3 . Can you check ??


Molecule throws error during gather_facts : Failed to create temporary directory

Overview
This appears to be an issue with default docker settings on ubuntu 22.04 desktop, so I don't think it is an actual issue with the image. However, I wasn't sure where else to put the knowledge. Apologies if this is the wrong call.
Error
When running molecule test with the geerlingguy/docker-ubuntu2204-ansible:latest image, gather_facts throws the error:
{"changed": false, "msg": "Failed to create temporary directory.
 In some cases, you may have been able to authenticate and did not have permissions on the target directory.
 Consider changing the remote tmp path in ansible.cfg to a path rooted in \"/tmp\", for more error
 information use -vvv.

Failed command was: ( umask 77 && mkdir -p \"` echo ~/.ansible/tmp `\"&& mkdir \"` echo ~/.ansible/tmp/ansible-tmp-1662828157.3138137-2593026-85746141845239 `\" && echo ansible-tmp-1662828157.3138137-2593026-85746141845239=\"`
 echo ~/.ansible/tmp/ansible-tmp-1662828157.3138137-2593026-85746141845239 `\" ),
exited with result 1", "unreachable": true}

As stated clearly in the README for this project, the cgroupns=host should be used.  Docker says the default cgroupns is host, however unless I specified that on the command line, it would not run manually or via molecule.
Making modifications to molecule.yml did nothing.  Finally I edited /etc/docker/daemon.json to set the default cgroupns for docker to host and it started working.
Fix
Add `default-cgroupns-mode" to docker's daemon.json file and restart docker.
$ cat /etc/docker/daemon.json
{
  "default-cgroupns-mode": "host"
}

Alternate Fix
If someone knows how to specify cgroupns in the molecule file, I think that would be a better solution.  I could not find anyway to do so.  Please comment if you know how.
Host Machine
Host: Ubuntu 22.04 Desktop, amd64
Docker Version
Client: Docker Engine - Community
 Version:           20.10.17
 API version:       1.41
 Go version:        go1.17.11
 Git commit:        100c701
 Built:             Mon Jun  6 23:02:46 2022
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.17
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.17.11
  Git commit:       a89b842
  Built:            Mon Jun  6 23:00:51 2022
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.6
  GitCommit:        10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1
 runc:
  Version:          1.1.2
  GitCommit:        v1.1.2-0-ga916309
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Molecule Config
---
dependency:
  name: galaxy
driver:
  name: docker
lint: |
  yamllint .
  ansible-lint
  flake8
platforms:
  - name: ubuntu-22.04
    image: geerlingguy/docker-ubuntu2204-ansible:latest
    command: "/lib/systemd/systemd"
    privileged: true
    pre_build_image: false
    #dockerfile: ../common/Dockerfile-ubuntu.j2
    capabilities:
      - SYS_ADMIN
    volumes:
      - /sys/fs/cgroup:/sys/fs/cgroup:rw
    tmpfs:
      - /run
      - /tmp

provisioner:
  name: ansible
verifier:
  name: ansible

+1 on this. Also encountered today and was about to report this

Concur with @patrickstump that this isn't actually an issue for this repo/image - molecule has an open discussion (here) and a PR in the works (here).

Possible duplicate of #4.

For those with the same issue, this is the solution:
# molecule.yml
# ,,,
platforms:
  - name: ubuntu2204
    image: geerlingguy/docker-ubuntu2204-ansible:latest
    cgroupns_mode: host
    command: ""
    volumes:
      - /sys/fs/cgroup:/sys/fs/cgroup:rw # won't work with ro
    privileged: true
    pre_build_image: true
# ...

My understanding is that this removes any isolation from the container and the processes run directly on the host. Obviously an issue in prod, but fine for local dev and automated testing on GitHub Actions.


Can't pull image for Istio release-1.0-latest-daily

Got ImagePullBackOff errors during install istio
Events:
  Type     Reason                 Age                From                                                  Message
  ----     ------                 ----               ----                                                  -------
  Normal   Scheduled              22m                default-scheduler                                     Successfully assigned istio-citadel-5768b899d4-jg226 to ip-172-31-60-71.cn-north-1.compute.internal
  Normal   SuccessfulMountVolume  22m                kubelet, ip-172-31-60-71.cn-north-1.compute.internal  MountVolume.SetUp succeeded for volume "istio-citadel-service-account-token-skxg9"
  Warning  Failed                 22m                kubelet, ip-172-31-60-71.cn-north-1.compute.internal  Failed to pull image "937788672844.dkr.ecr.cn-north-1.amazonaws.com.cn/gcr.io/istio-release/citadel:release-1.0-latest-daily": rpc error: code = Unknown desc = Error response from daemon: manifest for<PHONE_NUMBER>44.dkr.ecr.cn-north-1.amazonaws.com.cn/gcr.io/istio-release/citadel:release-1.0-latest-daily not found
  Warning  Failed                 22m                kubelet, ip-172-31-60-71.cn-north-1.compute.internal  Error: ErrImagePull
  Normal   BackOff                22m (x2 over 22m)  kubelet, ip-172-31-60-71.cn-north-1.compute.internal  Back-off pulling image "937788672844.dkr.ecr.cn-north-1.amazonaws.com.cn/gcr.io/istio-release/citadel:release-1.0-latest-daily"
  Warning  Failed                 22m (x2 over 22m)  kubelet, ip-172-31-60-71.cn-north-1.compute.internal  Error: ImagePullBackOff
  Normal   Pulling                22m (x2 over 22m)  kubelet, ip-172-31-60-71.cn-north-1.compute.internal  pulling image "937788672844.dkr.ecr.cn-north-1.amazonaws.com.cn/gcr.io/istio-release/citadel:release-1.0-latest-daily"

OK it looks like you are installing Istio release-1.0 with tag release-1.0-latest-daily
https://github.com/istio/istio/blob/8573fb473fd9b2fc0a8b71ea28d4890e3150b4eb/install/kubernetes/helm/istio/values.yaml#L9
I will add them into the required-images.txt

helm repo add istio.io https://storage.googleapis.com/istio-prerelease/daily-build/master-latest-daily/charts
----- the link above can't be reached in china.

@lenew You should be able to pull the image now
$ docker pull<PHONE_NUMBER>44.dkr.ecr.cn-north-1.amazonaws.com.cn/gcr.io/istio-release/citadel:release-1.0-latest-daily
release-1.0-latest-daily: Pulling from gcr.io/istio-release/citadel
1c9d6d1ff394: Pull complete
ce9de9334766: Pull complete
a0a862f76eab: Pull complete
564beca69889: Pull complete
Digest: sha256:2734c0a71c780155a1dfb9fdaf7e6eedfb4b5b01a8338cdac159b2d0824484ad
Status: Downloaded newer image for<PHONE_NUMBER>44.dkr.ecr.cn-north-1.amazonaws.com.cn/gcr.io/istio-release/citadel:release-1.0-latest-daily
9801a7a9620b:istio hunhsieh $

I installed helm v2.11.0 using my private ECS repo.
current version
Client: &version.Version{SemVer:"v2.11.0", GitCommit:"2e55dbe1fdb5fdb96b75ff144a339489417b146b", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.11.0", GitCommit:"2e55dbe1fdb5fdb96b75ff144a339489417b146b", GitTreeState:"clean"}

Problems with istio 1.0.3 and 1.0.4:
"helm dep update install/kubernetes/helm/istio" won't work
Error: no repository definition for , , , , , , , , , , , , . Please add them via 'helm repo add'
Note that repositories must be URLs or aliases. For example, to refer to the stable
repository, use "https://kubernetes-charts.storage.googleapis.com/" or "@stable" instead of
"stable". Don't forget to add the repo, too ('helm repo add').

helm install isto whith out "helm dep update install/kubernetes/helm/istio"
NAME                                      READY   STATUS              RESTARTS   AGE
grafana-9cfc9d4c9-dssrn                   1/1     Running             0          3m
istio-citadel-5768b899d4-rld2v            0/1     ErrImagePull        0          3m
istio-egressgateway-596c994775-qrqhm      1/1     Running             0          3m
istio-galley-ff5fb797-bpd4j               0/1     ContainerCreating   0          3m
istio-ingressgateway-5454746b8-7gkpc      1/1     Running             0          3m
istio-pilot-76fc7cd7c6-5nxnw              2/2     Running             0          3m
istio-policy-94b59d6f8-h6zl6              2/2     Running             0          3m
istio-sidecar-injector-54767fb8d5-5tmz8   0/1     ContainerCreating   0          3m
istio-telemetry-55bb9c4cf-wv4l8           2/2     Running             0          3m
prometheus-f556886b8-bw662                1/1     Running             0          3m

Events:
  Type     Reason                 Age                From                                                   Message
  ----     ------                 ----               ----                                                   -------
  Normal   Scheduled              89s                default-scheduler                                      Successfully assigned istio-citadel-5768b899d4-rld2v to ip-172-31-71-227.cn-north-1.compute.internal
  Normal   SuccessfulMountVolume  87s                kubelet, ip-172-31-71-227.cn-north-1.compute.internal  MountVolume.SetUp succeeded for volume "istio-citadel-service-account-token-6vrcw"
  Normal   Pulling                43s (x3 over 86s)  kubelet, ip-172-31-71-227.cn-north-1.compute.internal  pulling image "937788672844.dkr.ecr.cn-north-1.amazonaws.com.cn/gcr.io/istio-release/citadel:release-1.0-latest-daily"
  Warning  Failed                 43s (x3 over 85s)  kubelet, ip-172-31-71-227.cn-north-1.compute.internal  Failed to pull image "937788672844.dkr.ecr.cn-north-1.amazonaws.com.cn/gcr.io/istio-release/citadel:release-1.0-latest-daily": rpc error: code = Unknown desc = Error response from daemon: pull access denied for<PHONE_NUMBER>44.dkr.ecr.cn-north-1.amazonaws.com.cn/gcr.io/istio-release/citadel, repository does not exist or may require 'docker login'
  Warning  Failed                 43s (x3 over 85s)  kubelet, ip-172-31-71-227.cn-north-1.compute.internal  Error: ErrImagePull
  Normal   BackOff                3s (x5 over 84s)   kubelet, ip-172-31-71-227.cn-north-1.compute.internal  Back-off pulling image "937788672844.dkr.ecr.cn-north-1.amazonaws.com.cn/gcr.io/istio-release/citadel:release-1.0-latest-daily"
  Warning  Failed                 3s (x5 over 84s)   kubelet, ip-172-31-71-227.cn-north-1.compute.internal  Error: ImagePullBackOff

Problems with istio master a44d4c8:
Events:
  Type     Reason                 Age                From                                                   Message
  ----     ------                 ----               ----                                                   -------
  Normal   Scheduled              54s                default-scheduler                                      Successfully assigned istio-citadel-7dcd44c4d9-vwzst to ip-172-31-71-227.cn-north-1.compute.internal
  Normal   SuccessfulMountVolume  53s                kubelet, ip-172-31-71-227.cn-north-1.compute.internal  MountVolume.SetUp succeeded for volume "istio-citadel-service-account-token-gr6vx"
  Normal   BackOff                25s (x3 over 51s)  kubelet, ip-172-31-71-227.cn-north-1.compute.internal  Back-off pulling image "937788672844.dkr.ecr.cn-north-1.amazonaws.com.cn/gcr.io/istio-release/citadel:master-latest-daily"
  Warning  Failed                 25s (x3 over 51s)  kubelet, ip-172-31-71-227.cn-north-1.compute.internal  Error: ImagePullBackOff
  Normal   Pulling                11s (x3 over 52s)  kubelet, ip-172-31-71-227.cn-north-1.compute.internal  pulling image "937788672844.dkr.ecr.cn-north-1.amazonaws.com.cn/gcr.io/istio-release/citadel:master-latest-daily"
  Warning  Failed                 11s (x3 over 52s)  kubelet, ip-172-31-71-227.cn-north-1.compute.internal  Failed to pull image "937788672844.dkr.ecr.cn-north-1.amazonaws.com.cn/gcr.io/istio-release/citadel:master-latest-daily": rpc error: code = Unknown desc = Error response from daemon: pull access denied for<PHONE_NUMBER>44.dkr.ecr.cn-north-1.amazonaws.com.cn/gcr.io/istio-release/citadel, repository does not exist or may require 'docker login'
  Warning  Failed                 11s (x3 over 52s)  kubelet, ip-172-31-71-227.cn-north-1.compute.internal  Error: ErrImagePull

Still missing 'citadel:release-1.0-latest-daily' and 'citadel:master-latest-daily'.
Trying to create my private ECS mirror with 'mirror-images.sh', but it seems needs hours...

I can confirm<PHONE_NUMBER>44.dkr.ecr.cn-north-1.amazonaws.com.cn/gcr.io/istio-release/citadel:release-1.0-latest-daily can be pulled now.
$ docker pull<PHONE_NUMBER>44.dkr.ecr.cn-north-1.amazonaws.com.cn/gcr.io/istio-release/citadel:release-1.0-latest-daily
release-1.0-latest-daily: Pulling from gcr.io/istio-release/citadel
1c9d6d1ff394: Pull complete
ce9de9334766: Pull complete
a0a862f76eab: Pull complete
564beca69889: Pull complete
Digest: sha256:2734c0a71c780155a1dfb9fdaf7e6eedfb4b5b01a8338cdac159b2d0824484ad
Status: Downloaded newer image for<PHONE_NUMBER>44.dkr.ecr.cn-north-1.amazonaws.com.cn/gcr.io/istio-release/citadel:release-1.0-latest-daily

Thank you 😄


Graduating to Emeritus

Description:
I've switched projects at Lyft and no longer have the bandwidth to maintain Envoy. It has been quite the ride(or check ins you could say :) ).
Risk Level: N/A
Testing: N/A
Docs Changes: N/A
Release Notes: N/A

:cry: thank you for your contributions @ccaraman!

Sad to see you switch projects @ccaraman, appreciate all the work you've done for the Envoy community as a maintainer and contributor 👍


Add support for Alerting to match OpenSLO PR#54

Problem to solve
With alerting now supported in OpenSLO, we should update Oslo to support and validate these new kinds and add a test configuration or two
Proposal
More information available in the related PR on OpenSLO project : https://github.com/OpenSLO/OpenSLO/pull/54

Resolved by https://github.com/OpenSLO/oslo/pull/107


Pip 1537 nested scatter

Hot fix for nested scatters.
There is no circleci testing for croo yet.
Tested with atac, chip, hic and some toy WDLs with subworkflows and nested scatters.

@paul-sud: I added pytests to test subworkflows and nested scatters. I will make a new ticket/PR for CircleCI and more refactoring.

@paul-sud Yep, fixed as you suggested.


Use a very small wrapper around Java 2d/awt to reduce the size of gui apps

Currently, when creating an app that uses strigui, it will be close to 1 gb because of /org/bytedec and stuff inside the jar file coming from Clojure2d. Clojure2d has tons of features of which only a small subset is needed in strigui.
Perhaps I can create a small basic wrapper around Java 2d/awt that can be used independently to strigui. It should be able to draw whats in Dame. And so its nice to have a lightweight library with which new widgets can be created.

Will be done over here: https://github.com/MikeHardIce/Capra

This has been completed and tested in Dame (https://github.com/MikeHardIce/Dame)


Subscriptions Page cuts off videos

Firefox 40, YouTubeCenter dev 533

welcome to my world. you freshly installed chrome and imported a previous save and reloaded didn't you ?
the only way to fix it is to uninstall the extension, clear cache and cookies of apps in chrome and download the extension again, only this time , dont import any old yts settings.

I have this on firefox and I just refreshed it, where it deletes all addons / resets settings to default. So I had to reinstall greasemonkey and get the user.js file. Yet exactly this is how my subscriptions page looks to me.
I added that page to the exclusion list for the script, still sucks though because clicking on a video does not actually go to a new site, but youtube just changes to the player opening said video. So it does not counter as going to the video link, therefor greasemonkey will not load the script. My guess is that for gm it looks like the page is just the subscription page doing some JS mumbojumb, not loading another URL?

I can confirm that this is happening to me, too. I reinstalled Pale Moon, deleted all my old settings, reinstalled my addons and this is what I get when I look at my subs. Excluding the page in the Greasemonkey settings works, but it's a shame I gotta do that.

I've been having this issue for quite a while, and I've discovered a solution that doesn't require blacklisting the subscriptions page:

Disabling "grid subscriptions" allows the videos to load normally. Checked with the userscript via Greasemonkey, and with the addon via the .xpi file.

That worked for me. Thanks, Ordeth.

That fixed it for me, thanks Ordeth.

Yeah, not a problem. Been bothering me for months now.


How can i create keyword for  Javascript click in selenium .

I am having one button it is not clicking in safari browser and the same is working fine for chrome and firefox.
How can i create java script click in order to perform that click by using opentest . Java script click will be used to click on invisable elements.
Can u please provide some suggestion for this.
below is the code snippet for java script click.
WebElement element = driver.findElement(By.id("gbqfd"));
JavascriptExecutor executor = (JavascriptExecutor)driver;
executor.executeScript("arguments[0].click();", element)

Even I had used all clicks available in opentest framework like click.ActionsClick,Sendkeys Enter,Actions sendkeys Enter none worked fine.

If you have a test that works in Chrome and Firefox but not in Safari, it sound like there might be a problem in Safari's WebDriver implementation.  Anyway, here's how to solve some typical scenarios. If you want to click an element by running JavaScript in the browser, you can do it like this:
- description: Click element using client-side script
  action: org.getopentest.selenium.ExecuteScript
  args:
    script: |
      var buttonElement = document.querySelector("button.red");
      buttonElement.click();

If you want to click an element that is not visible, you must first make it visible using this code:
- description: Make sure button is visible
  action: org.getopentest.selenium.ExecuteScript
  args:
    script: |
      var buttonElement = document.querySelector("button.red");
      buttonElement.style.visibility = "visible"
      buttonElement.style.display = "block"

I had used both the methods none worked for me and it is showing result as null in output
log:
Executing action org.getopentest.selenium.ExecuteScript with arguments {"script":"var buttonElement = document.querySelector("div.custom-control-content.b-cmp__loaded");\nbuttonElement.click();\n"}...
11:58:36 | WEB | DEBUG: The output values from action org.getopentest.selenium.ExecuteScript were: >>>>> result = null
Can you please suggest


Won't search short class names

Searching for the GC class doesn't return any results  E.g. https://docs.microsoft.com/en-us/dotnet/api/?term=GC If I search https://docs.microsoft.com/en-us/dotnet/api/?term=System.GC does though. This feels closely related to the "Support searching for parts of API names" request though.

⚠ Idea migrated from UserVoice
Created By: Chris Klein
Created On: 2017/04/06 14:04:04 +0000
Votes at Migration: 7
Supporters at Migration: 7

#log-suggestion @dend

🚀 ATTENTION: Internal request logged.

Given that this item has an internal tracking issue and there is no definitive time frame in which the fix will be deployed, I am going to close this issue for now. We continue to look at how we can improve the API Browser search and integrated API experiences.


Utilize proper pms coefficients

The Pierson-Moskowitz uses a coefficient called $\beta$, which is defined as 0.74.
Source: https://wikiwaves.org/Ocean-Wave_Spectra
In our code, we have $\beta$ hardcoded as 5.0/4.0 = 1.25. This is incorrect.
This PR updates the Wavefield code to use the correct parameter.
Full equation:
$$ S(\omega) = \dfrac{\alpha g^2}{\omega^5} \exp \left( - \beta * \left(\dfrac{\omega_0}{\omega}\right)^4 \right)$$
with $\alpha = 0.0081$ (correct in our code) and $\beta = 0.74$ (not correct in our code).
cc: @bsb808 @jeastnswc

I'll let @bsb808 comment further, but it may be useful to refer to our paper for the intended equations (see particularly equation 5 on page 3), and references.

Sorry to not mention that. I did actually look at the papers and it the paper also uses the incorrect parameter, without citing the original paper.

With the help of @jeastnswc, we have tracked down our confusion.
The original paper (Pierson and Moskowitz, 1964) lists the coefficient in spectral form which is a function of wind speed, while Frechot writes the equation in terms of the frequency of the spectral peak (which when simplified does not have the wind speed in the equation). This was clarified in (S.K. Chakrabarti, 1987) pg. 105


IE11 Polyfills

There are a couple of instances where we use Array.includes in the components, consumers who need to support IE11 will need to manually polyfill this. We should either mention this in the docs or modify the code. Given the small number of instances it might be worth just modifying the code.
The test app is quite a good place to work on any IE11 issues npm run test:app

Are we still supporting IE11?


NordicFire Sienna 3 problem with attributes

Hi All,
i recently bought a new nordic fire stove but unfortunately this addon it not working for this type. I see the following error in my logs:
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 614, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 782, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 539, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 579, in _async_write_ha_state
self.device_state_attributes is not None
File "/config/custom_components/aguaiot/climate.py", line 110, in device_state_attributes
ATTR_SMOKE_TEMP: self._device.gas_temperature,
File "/usr/local/lib/python3.9/site-packages/py_agua_iot/init.py", line 600, in gas_temperature
return float(self.__get_information_item('temp_gas_flue_get'))
File "/usr/local/lib/python3.9/site-packages/py_agua_iot/init.py", line 430, in __get_information_item
formula = self.__register_map_dict[item]['formula']
KeyError: 'temp_gas_flue_get'
I saw a post from Dynalte with a fix on the gas flue but i do not know how to use his fork. How can i edit the file in the folder /usr/local/lib/python3.9/site-packages/py_agua_iot/ because when i open the terminal this folder does not exist.
Thanks in advance.
Regards,
Heddock

Issue is "solved" by defaulting the setting to 0. I updated the setting directly with the HassOS Cli.


Binary Classifier experiment - log loss

Hi,
Fantastic Library!
I was just wondering, i am trying to use the library for a binary classifier experiment using the log loss function to train the model. This is for a university experiment around benchmarking different models. Would you have time to provide an example of how to use the library to achieve the above goal.
Also, with an included visualisation on how the model learns.
Many thanks,
Best,
Andrew

An example of binary classification is here:  http://keras.io/examples/
"MLP for binary classification"


🔨 Options in Git tag script

📝 Description
We would like to update our gitTag.sh script for creating a Git tag by accepting the following options:

<name> for providing the name of the tag (example: gitTag 1.0.0)
-f for forcing the creation of the tag (example: gitTag -f 4.0.0)
-h for showing the documentation of the script (example: gitTag -h)

✅ Checklist

[ ] ...
[ ] Close this issue as completed and update tracking ones if present.

This issue is outdated and Kotools Types has no scripts right now.


Astro + Firefox not working for quite some time

Describe the bug
For quite some time, Astro doesn't work anymore on Firefox. I didn't find a particular issue, so I opened one.
The astro dev command, for example, is supposed to launch a dev server, but stacklibtz fails silently and I am not sure why.
Link to the blitz that caused the error
https://stackblitz.com/edit/github-t5xhyw?file=package.json
Steps to reproduce

Open the container attached
Wait for all the commands to execute
Notice that the dev server doesn't bootstrap

This is just an example. Any Astro starter template is affected by the same issue.
Expected behavior
The web container should attach to the dev server
Parity with Local

[X] I have run the project in my local machine and I could not reproduce the issue.

Screenshots

Platform

OS: macOS
Browser: Firefox
Version: Firefox developer edition

Additional context
No response

I was trying to run a template here and with NPM and PNPM and nothing was working, just like yours @ematipico, but installing and running with yarn worked.

Since today my astro project suddently stopped working in Firefox on my MacBook Pro with latest MacOS:
i just run astro dev and got some random 500/404 responses in Firefox, without any logs in the terminal, then i realized that it is working in Chrome. Here a side by side screenshot:


Multiline unsupported since v2.5.0

Describe the bug
Multiline does not work anymore. (no \n \t cleaning before processing?)
To Reproduce
twMerge(
	`
	justify-center
`,
	"justify-start"
)

Result:
			justify-center
		 justify-start

Expected behavior
 justify-start

Environment

tailwind-merge version: 2.5.0+

Additional context

Indeed, will fix this soon.


Add missing version to docker run command

Coverage remained the same at 85.714% when pulling e18d5e536f092b03fed17fa880827831597af221 on fbiville:master into f5bd8fa6e20635f3f9e88e44081961414d0a415b on liquigraph:master.


Is there a Nav Pane Splitview template

Hi,
at build there was a session on the new guidelines for the nav pane navigation pattern: https://channel9.msdn.com/Events/Build/2016/B842
Is there a template for this pattern available for download? Or is there a place with info on sizes, and instructions on how to make nav pane menu items look the way they should look?

@AudioW  You can find the Navigation Menu sample on the Windows Universal Samples repository.
For UI and Design Guidance, like recommend the Design and UI site. Specifically, you can look at the Screen sizes and break points page for some tips and tricks on sizing.
For established UX/UI patterns and practices I'd recommend looking for samples on the Windows Universal Samples repository there's lots of good established resources there.
We are primarily focused on testing and experimenting with new UX patterns, getting early feedback on APIs, and working with developers developing on Insider builds. If you're interested in that I'd highly recommend becoming a Windows Insider.
Hope that helps!

Hi
Thank you for your response. I saw all the samples but I am specifically looking for the one mentioned in the Build 2016 video. It looks different than the samples both in size and color.

I was unable to find the exact sample shown in the video, however you'll find some of the samples mentioned in the video here: https://developer.microsoft.com/en-us/windows/samples
Specifically, the PhotoSharing example: https://github.com/Microsoft/Appsample-Photosharing

The main thing you'll want to look for is AppShell.xaml and its friends. The Photosharing sample that @pgills linked to and the RssReader sample are great places to start. Just note that they also come with a lot of scaffolding to get them up and running, but I think it's worth it. Once it's up, there's much less tinkering whenever you want to add a new menu item/page.

I made a ui on my own to mimic the shown functionality.


Just a test

This did not work, I don't see my change here: https://opensuse.github.io/backlogger/pr-preview/pr-40/


Update glslang version to 0.0.8

It turns out we can safely use version 0.0.8 with the appropriate path.
R: @petele

Whoops!
There were 3 warnings that will prevent this PR from being merged. Please take a look, and either fix, or provide a justification for why they can't be fixed.
WARNINGS
src/content/en/updates/2019/08/get-started-with-gpu-compute-on-the-web.md#L72 - Common typo found: 'implicity' Should it be 'implicitly'?
src/content/en/updates/2019/08/get-started-with-gpu-compute-on-the-web.md#L224 - Common typo found: 'implicity' Should it be 'implicitly'?
src/content/en/updates/2019/08/get-started-with-gpu-compute-on-the-web.md#L231 - Line must be at most 100 characters

:tada: This has been pushed live to https://developers.google.com/web/


Should the Orchestrator link to Mauro?

Should items in the Orchestrator link to Mauro?
For example, in National Eye Colour Data Set Version 1, EYE COLOUR IDENTIFIER.
The links go to: dm:Data Elements|dc:E|de:EYE COLOUR IDENTIFIER and dm:Classes and Attributes|dc:PERSON STATED EYE COLOUR|de:EYE COLOUR IDENTIFIER
What should they go to?

There seem to be multiple formatting issues with the preview. I have managed to make a correctly styled link like this:

This only works because I manually removed the title attribute from the URL that was automatically added by the Mauro HTML editor:
EYE COLOUR IDENTIFIER

I have linked this to issue:

MauroDataMapper-NHSD/mdm-plugin-nhs-data-dictionary#101

19/08/2024 - System C working on this.

This has been fixed and is waiting for deployment

This issue has been fixed and deployed to TEST, TRAINING and LIVE. Please move this to the "Ready for NHS E Testing" state.

The fix is that any link you enter to a description via the Mauro UI will appear with the correct styling in the Orchestrator preview. e.g. Classes, Attributes, Elements etc.


Landrush and docker

I seem to be seeing issues using landrush when installing docker on guests.
No landrush - OK:
Vagrant.configure("2") do |config|
  #config.landrush.enabled = true
  config.vm.provider "virtualbox" do |vb|
    vb.gui = false
    vb.memory = "1024"
  end

  config.vm.define "swarm1" do |swarm1|
    swarm1.vm.box = "centos/7"
    swarm1.vm.hostname = "swarm1.vagrant.test"
  end
end

[root@swarm1 ~]# systemctl start docker
[root@swarm1 ~]# docker run -d alpine
Unable to find image 'alpine:latest' locally
Trying to pull repository docker.io/library/alpine ...
latest: Pulling from docker.io/library/alpine
3690ec4760f9: Pull complete
Digest: sha256:1354db23ff5478120c980eca1611a51c9f2b88b61f24283ee8200bf9a54f2e5c
Status: Downloaded newer image for docker.io/alpine:latest

Landrush - fails:
Vagrant.configure("2") do |config|
  config.landrush.enabled = true
  config.vm.provider "virtualbox" do |vb|
    vb.gui = false
    vb.memory = "1024"
  end

  config.vm.define "swarm1" do |swarm1|
    swarm1.vm.box = "centos/7"
    swarm1.vm.hostname = "swarm1.vagrant.test"
  end
end

[root@swarm1 ~]# systemctl start docker
[root@swarm1 ~]# docker run -d alpine
Unable to find image 'alpine:latest' locally
Trying to pull repository docker.io/library/alpine ...
Get https://registry-1.docker.io/v2/library/alpine/manifests/latest: Get https://auth.docker.io/token?scope=repository%!A(MISSING)library%!F(MISSING)alpine%!A(MISSING)pull&service=registry.docker.io: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
docker: Get https://registry-1.docker.io/v2/library/alpine/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Falpine%3Apull&service=registry.docker.io: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See '/usr/bin/docker-current run --help'.

[root@swarm1 ~]# docker run -d alpine
Unable to find image 'alpine:latest' locally
Trying to pull repository docker.io/library/alpine ...
latest: Pulling from docker.io/library/alpine
3690ec4760f9: Pulling fs layer
Get https://registry-1.docker.io/v2/library/alpine/blobs/sha256:baa5d63471ead618ff91ddfacf1e2c81bf0612bfeb1daf00eb0843a41fbfade3: dial tcp: lookup registry-1.docker.io on <IP_ADDRESS>:53: no such host
docker: Get https://registry-1.docker.io/v2/library/alpine/blobs/sha256:baa5d63471ead618ff91ddfacf1e2c81bf0612bfeb1daf00eb0843a41fbfade3: dial tcp: lookup registry-1.docker.io on <IP_ADDRESS>:53: no such host.
See '/usr/bin/docker-current run --help'.

Interestingly, I get different errors - dial tcp sometimes, sometimes parts download (as per above). Sometimes, restarting docker can 'help' get a layer or two before it fails again.
I tried, per the troubleshooting steps:
[root@swarm1 ~]# ping <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from <IP_ADDRESS>: icmp_seq=1 ttl=63 time=5.98 ms
64 bytes from <IP_ADDRESS>: icmp_seq=2 ttl=63 time=6.06 ms

I did a bit of googling and it looks like similar issues are seen with Docker on Mac, but pretty quickly I'm out of my comfort zone.
I'm using Linux and Virtualbox.

Tried on Mac and got same result:
[root@swarm1 ~]# docker pull swarm
Using default tag: latest
Trying to pull repository docker.io/library/swarm ...
latest: Pulling from docker.io/library/swarm
220609e0bc51: Pulling fs layer
b54bf338fe2f: Pulling fs layer
d53aac5750d5: Pulling fs layer
Get https://registry-1.docker.io/v2/library/swarm/blobs/sha256:942fd5fd357e2fe2fcecbaf3dd77c313f22ce18a84a5a4d288c0df407a61e623: dial tcp: lookup registry-1.docker.io on <IP_ADDRESS>:53: no such host
Get https://registry-1.docker.io/v2/library/swarm/blobs/sha256:942fd5fd357e2fe2fcecbaf3dd77c313f22ce18a84a5a4d288c0df407a61e623: dial tcp: lookup registry-1.docker.io on <IP_ADDRESS>:53: no such host

Try disabling the DNS server on the guest:
config.landrush.guest_redirect_dns = false

Thanks - tried this but it did not work for me. Apologies I didn't retain the details.
I ended up resolving with this code:

            # Workaround for docker networking issues + landrush.
            shutit.send('''echo "$(host -t A index.docker.io | grep has.address | head -1 | awk '{print $NF}') index.docker.io" >> /etc/hosts''')
            shutit.send('''echo "$(host -t A registry-1.docker.io | grep has.address | head -1 | awk '{print $NF}') registry-1.docker.io" >> /etc/hosts''')

@ianmiell, still an issue?


MWPW-129295 Release Homepage v3

Fix <MWPW-129295>
Test URLs:

Before: https://main--express-website--adobe.hlx.page/express/?lighthouse=on
After: https://homepage-v3--express-website--adobe.hlx.page/drafts/qiyundai/homepage-v3?lighthouse=on

Closing this PR for now and we can re-open it when time comes for this feature to go live @JingleH . it keeps the report clean.


Export worksheet to HTML

Sorry, but what is the status of this?

I like this a lot, but I was wondering... Since Jupyter notebooks are essentially JSON files with base64-encoded images, why not export to .ipynb and take advantage of the built-in rendering abilities of GitHub and many other sites?


123 copy methods

Factored out dictionary of builder methods from Document class
Created global BUILDER_REGISTRY and placed in object.py to avoid circular references
Cloning an object from one Document to another is supported
Resolve #123
Resolve https://github.com/SD2E/opil/issues/50

New issues should be created for the following:

Cloning an object within a single Document is not supported (need to figure out how to deal with URI collisions)
Copying into new namespaces not currently supported either

Since the global variable BUILDER_REGISTER is an offensive code smell, we might add it as a static variable in the SBOLObject class in order to better encapsulate it.

Also, if the goal is to eventually deprecate SBOLObject we can move the BUILDER_REGISTER and copy methods to Identified.  I think that should be fairly easy.


[Service Connector] BREAKING CHANGE: az spring connection: Remove default value of --deployment to support spring app connection

Related command

az spring connection
Description

Reference #27371, remove the default value of --deployment, so the az spring connection command can support creating spring app connection besides spring app deployment connection. When user doesn't pass value of --deployment, the connection will be created at spring app level.
Testing Guide

run azdev test --discover --live test_springapp_storageblob_e2e test_springcloud_storageblob_e2e can test both spring app and spring app deployment connection lively.
History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR title and description has followed the guideline in Submitting Pull Requests.

[x] I adhere to the Command Guidelines.

[x] I adhere to the Error Handling Guidelines.

Service Connector

This PR is still Draft?

This PR is still Draft?

@yonzhan We would plan to merge it after our backend ready. So just stay in draft until them.


Trying to use this with AWS lambda

Runs locally and I'm compiling with Ubuntu 16.04 and it should work, however I'm getting an unhelpful error message that a file import fails.
Anyone else have any luck with this?

@simlu I am not too familiar with AWS lambda, but if you have a .zip or something that I could try out I’d be happy to.

My bad. AWS Lambda Linux Distro and Ubuntu used to be compatible, but they're not anymore. Following this to the letter worked for me: https://instil.co/2017/08/07/using-native-dependencies-with-aws-lambda/


fix: only update CCs from NIF during NodeInfo interview stage

fixes: https://github.com/zwave-js/node-zwave-js/issues/1865

@zwave-js-bot pack this

Call me crazy, I dont think this was ever fixed.  WD-100 and WD-200's still don't work, the way this fix was supposed to fix them.

If there is still a problem, please open a new issue and fill out the issue template.