Windows: get/setWindowSize include drop shadow area

They shouldn’t. We want window bounds excluding the drop shadow, both for getting and setting window position and size.
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getwindowrect#return-value

I'm working on this now as part of #286 -- it might take me some days to get the PR ready, but this local code seems to work.
RECT jwm::WindowWin32::_getWindowRectSimple() const {
    RECT rect;
    // TODO: continue using old implementation if "OS major version is < 6" (Vista)
    // GetWindowRect(_hWnd, &rect);
    DwmGetWindowAttribute(_hWnd, DWMWA_EXTENDED_FRAME_BOUNDS, &rect, sizeof(rect));
    return rect;
}

jwm::IRect jwm::WindowWin32::getWindowRect() const {
    RECT rect = _getWindowRectSimple();
    return IRect{rect.left, rect.top, rect.right, rect.bottom};
}

I've replaced all calls to winAPI GetWindowRect with the internal getWindowRectSimple & this is working so far.


Automated cherry pick of #6563

Cherry pick of #6563 on release-5.28.
/cc  @josephbaylon

@saturninoabril I added you as review to approve cherry pick as I don't seem to have authority to merge it. Please merge when you can. Thanks!


deleted aware DAO fix

What exactly is the ‘fix’?

@shreymahendru why can't we extend on the JS file instead of manually converting it to Java? Can you also add tests that illustrate the issues leading to this fix?


[hw] Lower bits of MTVEC can't be set

The lower 16 bits of the mtvec register can't be set, except for the lowest bit which is hard coded to 1.
Steps to reproduce
Get the OpenTitan board running and clone the Git repo. Apply the following diff to the OT repo and rebuild the software:
diff --git a/sw/device/examples/hello_world/hello_world.c b/sw/device/examples/hello_world/hello_world.c
index bd9aecf..a7d2524 100644
--- a/sw/device/examples/hello_world/hello_world.c
+++ b/sw/device/examples/hello_world/hello_world.c
@@ -54,6 +54,12 @@ void trap_handler(uint32_t mepc, char c) {
 int main(int argc, char **argv) {
   uart_init(UART_BAUD_RATE);

+  asm ("ebreak");
+
+  asm ("lui t0,0x20000");
+  asm ("addi  t0,t0,64");
+  asm ("csrw mtvec, t0");
+
   pinmux_init();
   // Enable GPIO: 0-7 and 16 is input, 8-15 is output
   gpio_init(0xFF00);

Flash the demo application onto the board:
./sw/host/spiflash/spiflash --input=./build-fpga/sw/device/examples/hello_world/hello_world.bin

Then start OpenOCD
openocd -s util/openocd -f ./board/lowrisc-earlgrey-nexysvideo.c

In another terminal start GDB:
riscv32-oe-elf-gdb /home/alistair/opentitan-snapshot-20191101-2/sw/device/fpga/boot_rom/rom.elf

Connect to OpenOCD and restart the board:
target extended-remote :3333
monitor reset halt

Run until we hit the break point
c

You should now be stopped somewhere around here:
0x20000226 ? ebreak

with these instructions waiting to be executed
0x20000226 ? ebreak
0x20000228 ? lui	t0,0x20000
0x2000022c ? addi	t0,t0,64
0x20000230 ? csrw	mtvec,t0
0x20000234 ? lui	s0,0x10
0x20000236 ? jal	0x2000044e
0x20000238 ? addi	a0,s0,-256

Print the mtvec CSR
info registers mtvec

You will see something like this
mtvec          0x20000101	536871169

Single step GDB past the following instruction
0x20000230 ? csrw	mtvec,t0

Now print mtvec again
info registers mtvec

Instead of mtvec being set to 0x20000040 it is incorrectly set to 0x20000001.
It looks like the lower two bytes (0xFF) cannot be changed, and the lowest bit is always set.
Extra info
I also tried with this diff
diff --git a/sw/device/examples/hello_world/hello_world.c b/sw/device/examples/hello_world/hello_world.c
index bd9aecf..e5cacc4 100644
--- a/sw/device/examples/hello_world/hello_world.c
+++ b/sw/device/examples/hello_world/hello_world.c
@@ -54,6 +54,11 @@ void trap_handler(uint32_t mepc, char c) {
 int main(int argc, char **argv) {
   uart_init(UART_BAUD_RATE);

+  asm ("ebreak");
+
+  asm ("li t0,0xFFFF");
+  asm ("csrw mtvec, t0");
+
   pinmux_init();
   // Enable GPIO: 0-7 and 16 is input, 8-15 is output
   gpio_init(0xFF00);

which resulted in this value for mtvec
mtvec          0xff01	65281

which leads me to believe that the lower two bytes are not working while the other bytes all are.
NOTE: It appears that when setting the PC to the value in mtvec on an ecall the lower bit is zeroed out.

Hi Alistair - this is documented behaviour of Ibex. See the Ibex docs on mtvec. Per the RISC-V privileged spec, it's legal for mtvec not to accept every value. In our case, we have a 256 byte alignment requirement.

Ah, I didn't realise that their is a MODE section in mtvec. I'm not sure how I have never noticed that before.
Ah, I also didn't realise you can have a custom alignment. That is a bit of a hassle, but it seems correct. Thanks for correcting my mistake so quickly.


util: remove unused CSI server initialization functions

Signed-off-by: Humble Chirammal<EMAIL_ADDRESS>

/retest all

/retest all

/retest all

/retest all

/retest all

/retest all

Could you please address the request I made, and rebase this PR afterwards? Without the rebase, it is very likely that this keeps failing.

The go static-check tool is supposed to catch it. Not sure if it's an issue with the tool or we just ignoring the warnings from CI?

The go static-check tool is supposed to catch it. Not sure if it's an issue with the tool or we just ignoring the warnings from CI?

What do you mean, what should it catch? If you are talking about detecting functions that are not used, the problem is that these functions are exported in the package (start with a Captial case), so other non-local packages could use them.

The go static-check tool is supposed to catch it. Not sure if it's an issue with the tool or we just ignoring the warnings from CI?

What do you mean, what should it catch? If you are talking about detecting functions that are not used, the problem is that these functions are exported in the package (start with a Captial case), so other non-local packages could use them.

Oops! sorry, I thought this is the dead code used within the repository.

Oops! sorry, I thought this is the dead code used within the repository.

It is! But tools will have difficulties detecting it. If there are any tools that can help with that, we should definitely look into that.

@nixpanic

Can you add a note in the commit since when/why these are not needed anymore?

@nixpanic  I dont know .. Its been there for an year or so. Its an unused functions so I dont know how to answer why these are not needed anymore ?

@mergifyio rebase

@mergifyio refresh


Turning off swipe between posts?

Hi!
I'm using this theme for my personal blog, and it's awesome.
But my users don't like that feature with "swipe to change blog post", because it prevents from selecting text, sometimes.
Is it possible to turn that feature off?
It would be awesome, thank you!

Hi!
Definitely, imo every feature should be toggled in order to fit everybody's needs.
The toggle for swipe navigation just slipped my radar :smile:

Hi any updates on this issue?

No, the plan is to do it, but there is no date set for it yet 😅

@BoltzmannBrain temporally you could just delete https://github.com/PanosSakkos/personal-jekyll-theme/blob/master/_includes/js.html#L201-L270 those lines to remove the functionality altogether
Or you could just remove https://github.com/PanosSakkos/personal-jekyll-theme/blob/master/_includes/js.html#L232-L270 to just remove the popup but maintaining the ability to use swipe gestures.
HTH
@PanosSakkos would provide a PR for making it configurable but dunno if I'm able to do it - pretty busy atm


NPY201 triggers on code written to support both numpy 2 and legacy numpy

Considder an example like this which is explicitly written to support both numpy 2 and legacy numpy
import warnings

try:
    from numpy.exceptions import VisibleDeprecationWarning
except ImportError:
    # numpy < 1.25.0
    from numpy import VisibleDeprecationWarning

with warnings.catch_warnings():
    warnings.filterwarnings(
        "ignore",
        category=VisibleDeprecationWarning,
        message="Creating an ndarray from ragged nested sequences",
    )

Running ruff check file.py with NPY201 enabled triggers
error: Failed to create fix for Numpy2Deprecation: Unable to insert `VisibleDeprecationWarning` into scope due to name conflict
src\qcodes\utils\numpy_utils.py:13:18: NPY201 `np.VisibleDeprecationWarning` will be removed in NumPy 2.0. Use `numpy.exceptions.VisibleDeprecationWarning` instead.
   |
11 |     warnings.filterwarnings(
12 |         "ignore",
13 |         category=VisibleDeprecationWarning,
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^ NPY201
14 |         message="Creating an ndarray from ragged nested sequences",
15 |     )
   |
   = help: Replace with `numpy.exceptions.VisibleDeprecationWarning`

This is a false positive since the deprecated location is only used in legacy numpy versions that do not have a exceptions submodule.
This started happening in 0.5.1 probably as a result of #12065
Keyworkds Numpy, NPY201
Ruff 0.5.1 to 0.5.4
Config:
[tool.ruff.lint]
select = ["NPY201"]

I can see how the violation is undesired in this case, and we could probably specialize the rule to detect this very specific pattern. But I think it's also valid to use a suppression comment in this case to explicitly state that the use of the deprecated API is fine.
@mtsokol what do you think?

I think this pattern is likely to be quite common for projects that want to write code which is compatible with both versions of numpy. Maintaining compatibility with both versions is likely to be something that many projects are going to want to do for a while, as well.
I'd be okay with not flagging deprecated numpy imports iff:

The deprecated import is imported in an except ImportError block
The try block of that except block imports the undeprecated alternative

We should make sure all NPY rules are consistent about this sort of thing, whatever we do, though.

That makes sense to me. We should have code to detect the current set of handled exceptions.

I can see how the violation is undesired in this case, and we could probably specialize the rule to detect this very specific pattern. But I think it's also valid to use a suppression comment in this case to explicitly state that the use of the deprecated API is fine.
@mtsokol what do you think?

@MichaReiser I agree that this try catch pattern could be recognized by the rule, or users should add a suppression comment.
One note: Apart from try except pattern there's also an if else used downstream, like here in SciPy:
https://github.com/scipy/scipy/blob/c354a0482e08ef68bcdd2163f9b394f2c8e9a0a5/scipy/_lib/_util.py#L25

Thanks everybody for the input.

@MichaReiser I agree that this try catch pattern could be recognized by the rule, or users should add a suppression comment.

I personally would be fine with just adding a suppression comment as long as this limitation is documented for the rule.

I'm working on a fix as per my suggestion in https://github.com/astral-sh/ruff/issues/12476#issuecomment-2245116474.


fix(storybook): use slots instead of options array

closes #507

Hi @bar-tay JFYI when you are working further on this. The second commit https://github.com/deven-org/boiler/commit/6a5c68ab0b90ff7bed906c102666030ccd9522cf. achieves the desired behaviour based on the click event (The wrapper of the slot in radio-group component listens to the event bubbled by the slotted element[radio-button]). However, the following part still needs to be solved.
"When considering Problem 1 - Solution B: How do we know when a JS program changes the checked state of one of the blr-radio elements? We don't fire any events in this case. In this case our blr-radio-group would get out of sync and possibly have two or more radios selected simultaneously"

Hi @thrbnhrtmnn here is the issue as separate task for the first in the list https://github.com/deven-org/boiler/issues/1138


[Cards] - Implement card activation

Context
EDIT - not needed anymore, as GateHub will do activation inhouse, and the card will 'arrive' to Test Wallet as frozen. User will need to unfreeze.
Summit cards - add card activation pages and functionalities

Todos

[ ] add page for card activation - dark/light
[ ] make sure functionalities work

not needed anymore, as GateHub will do activation inhouse, and the card will 'arrive' to Test Wallet as frozen. User will need to unfreeze.


RTD Docs: Fields Reference example links are broken

Pre-requisites

[X] I have double-checked my configuration
[X] I can confirm the issues exists when I tested with :latest
[x] I'd like to contribute the fix myself (see contributing guide)

What happened/what you expected to happen?
In the Fields Reference on RTD at https://argo-workflows.readthedocs.io/en/latest/fields/ all of the "Examples" dropdowns are currently not rendering markdown properly and are displaying raw text. See below screenshot:

As a result the list is not displaying correctly and you can't directly click the links either.
I'm actually not yet sure why this is happening, which is why I filed an issue instead of a PR currently
Regression from #12360, although again not entirely sure how/why, potentially due to mkdocs dep version changes?
Version
https://argo-workflows.readthedocs.io/en/latest/fields/
Paste a small workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.
n/a this is specific to the docs

Logs from the workflow controller
n/a this is specific to the docs

Logs from in your workflow's wait container
n/a this is specific to the docs

It's the <details> sections for the examples.  I know that is a GitHub thing but don't know if it is through another extension in mkdocs.  Definitely a plugin/extension that went missing.  I'm looking into this.

Possibly related? https://github.com/squidfunk/mkdocs-material/issues/4084

We do use pymdownx.details which is mentioned in https://github.com/squidfunk/mkdocs-material/issues/4084#issuecomment-1173415244. It's included as part of mkdocs-material.
Although the code you linked above actually doesn't use the syntax from pymdownx.details... 🤔
I wonder if potentially it just happened to work in one version and then broke as it wasn't intended to be used like that anyway.
We'd want to use the md_in_html extension then and add the markdown attribute to all the details blocks. I do want to investigate a bit more before implementing that though

I figured it out.
make docs will create the correct docs, but mkdocs build won't. Specifically there's a line in the Makefile:
# fix the fields.md document
go run -tags fields ./hack parseexamples

That will end up running hack/parse_examples.go which modifies the rendered output from mkdocs.
And that code is not currently running in RTD's build.
It probably makes sense to have this work with a mkdocs extension instead of a custom hack, so I'm going to go ahead and modify it as such.

@agilgur5 nice catch.  agreed re: not using a hack.  Sorry I missed this.

I missed it during review too; I suppose that's one of the problem with hacks, they can be missed easily if you don't know about them 😅
But good thing we are now removing a handful of hacks with these updates!


Duplicate rice in the first spring

If it matters, it was on the 18th of spring.

The problem here is that challenges were not stopped when the game returns to title.  So multiple instances of "add rice in the 1st spring" where registered here.


Consider splitting each library/tool into its own dedicated repository for better discoverability

To those of us who are already in the Hot Chocolate community, it's no mystery that Hot Chocolate is in fact the best all-around .NET GraphQL server framework out there, and is actually superior to the more well-known graphql-dotnet in most respects.
However, despite this, graphql-dotnet still has more GitHub stars (5.5K vs 4.3K) and NuGet installs than Hot Chocolate (16M vs 9.4M), and also consistently appears as the very first search result when you google phrases such as ".net graphql server" and so on.
Given all of this, I think it'd be fair to say that Hot Chocolate indeed suffers from a "discoverability" problem.
Hot Chocolate is hardly in the first top 10 search results when you google nearly any combination of the keywords "graphql" and ".net"; that's not trivial, and shouldn't just be hand-waved away; it's actually a pretty consequential problem, and is likely partly the reason why graphql-dotnet still seems to be getting more traction, despite being generally inferior to Hot Chocolate.
The repository recently was renamed from "ChilliCream/hotchocolate" to "ChilliCream/graphql-platform" which is understandable, given the fact that the repo wasn't sctually limited to HC but also contained the codebases for Strawberry Shake and Banana Cake Pop; it was essentially always a monorepo so the name change very much made sense from that perspective.
But this unfortunately exacerbated the discoverability problem; by making the name of the repo even more "generic", so to speak.
I would propose that each project is given its own separate repo under the "ChilliCream" organization, this would result in a much clearer structure:

ChilliCream/HotChocolate
ChilliCream/StrawberryShake
ChilliCream/BananaCakePop

In a setup like this, the primary advantage would be that the README and the description of each repository could then be focused specifically on the respective tool that it contains, thereby enhancing its "discoverability" by orders of magnitude, basically.
Currently the README and the description of this repo are a bit too generic and unfocused; which I think is hurting the discoverability of the project(s).
This proposal might seem surface-level, or you might think it's not really worth the hassle, but I would argue it will genuinely result in better SEO, which will in turn help the project grow bigger; and hopefully eventually overtake graphql-dotnet and become the de-facto standard GraphQL server framework in the .NET world; which it very much deserves to be.
Let me know what you think.

I think you are misreading the stats a bit.
We recently started optimizing SEO and are now number 3  for the search term "graphql .net". This is an ongoing investment and renaming the repo actually does not help.

For us our dev workflow is more important. Working in a monorepo has made our workflow so much simpler and we will not go back to having multiple repros.
For the stats.... it takes time... we get 2 to 3 times more stars per day compared to graphql-dotnet and will overtake by the end of the year or mid next year... it takes time.


I am interested in using your game on my website. Could you add a license file like the MIT one in this pull request so I know how you want your software used?

Awesome! let me know where it's live. :)


Migrate twig templates using single layout to JSX

WHAT

Migrate twig templates using single layout

Search result page
Notification list page
API token page
Me page
Password page

WHY
See #639
This PR depends on #642

@lightnet328  Please run npm run format before merging.


NullRef using JsonPath.SelectToken

Describe the bug
When using the JsonPath.SelectToken feature in the handlebar transformer, I get a null ref exception. The exception occurs in HandlebarsDotNet.Helpers.JsonPathHelpers.SelectToken(object, string). Decompiling shows that the value of the string parameter is "name\" including the backslash. If I remove the backslash then everything works but the backslash is just the escape character for the double-quote. if this is the good old ID10T or pebcak issue, then please close. My guess is it's an off-by-one in some string parsing.
Expected behavior:
Handlebar transformation should function as described in example at https://github.com/WireMock-Net/WireMock.Net/wiki/Response-Templating#jsonpath.
Test to reproduce

1 Run the code below
2 Get the Null Ref exception
Add watch statements

ParseAsJToken(value, "SelectToken").SelectToken("name") - evaluates correctly
ParseAsJToken(value, "SelectToken").SelectToken("name\") - evaluates to null

Other related info
Unit Test Class
using System.IO;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using RestSharp;
using WireMock.Server;
using WireMock.RequestBuilders;
using WireMock.ResponseBuilders;

namespace Sample
{
    [TestClass]
    public class JsonPath
    {
        [TestMethod]
        public void SelectToken()
        {
            var server = WireMockServer.Start();
            server.Given(Request.Create()
                .WithPath("/JsonPathSelectToken/")
                .UsingPost())
            .RespondWith(Response.Create()
                .WithStatusCode(System.Net.HttpStatusCode.OK)
                .WithHeader("Content-Type", "application/json")
                .WithBody(File.ReadAllText("response.json"))
                .WithTransformer());

            var client = new RestClient($"{server.Urls[0]}/JsonPathSelectToken/");
            var request = new RestRequest(Method.POST);
            request.AddJsonBody(new { name = "findme" });
            var response = client.Execute(request);

            server.Stop();
        }
    }
}

response.json
{
  "name": "{{JsonPath.SelectToken request.bodyAsJson \"name\"}}"
}

Hello @sethsouthern.
WireMock.Net uses HandlebarsDotNet.Helpers.JsonPathHelpers to handle JsonPath. This project is located here:
https://github.com/Handlebars-Net/Handlebars.Net.Helpers
I did move the issue.
And can you please create a failing unit test ?
I want to check if this is an issue in JsonPath, JsonPathHelpers or Handlebars.Net

@sethsouthern did you have time to create a unit test?

@sethsouthern did you have time to create a unit test?

@sethsouthern did you have time to create a unit test?


New shape control with label and popover panel

Demo
https://github.com/user-attachments/assets/6c31d996-5e56-41e2-8527-09ba7456dfa1

Thanks for the feedback @migueloller / @agurtovoy 🙌🏼 . I think your comments are addressed in the commits I just pushed up.


[AutoRelease] t2-mongocluster-2024-09-25-24276(can only be merged by SDK owner)

https://github.com/Azure/sdk-release-request/issues/5433
Recording test success
https://dev.azure.com/azure-sdk/internal/_build?definitionId=7002

issue link:https://github.com/Azure/sdk-release-request/issues/5433

/check-enforcer override


Monty hall problem

Create homepage
Add react router
Add monty hall problem (don't be confused by the simulate button, it works in the BE, doesn't trigger any fancy animations)

@aashutoshrathi I'll extract stuff to component in a different PR. This is already huge and I need to sleep.

donzo! Many thanks @aashutoshrathi


Bug: switch

hi, is there any way to make it turn off in the switch mode and not turn on? (the slider in the enabled mode shows that it is turned off and the voice assistant thinks that it is turned off and does not turn off the computer, but turns it on and off at the command)
here are 2 computers in the picture: one is on, the other is off, and the voice assistant thinks that both are off and the slider shows that both are off

Hello, the bug template is there to make it for us to understand the issue - I can't fully grasp what is the issue here.
The screenshot that you've provided shows two entities, one available and turned off and second unavailable.
Please provide full explanation on what commands are shown on the screen, what would you like to achieve and why you can't do it now.

in the screenshot, pc1 is available, but it is displayed as turned off (the slider is turned off), you need it to be turned on

Again, it's hard to understand without a context, what kind of command/entity is the "pc1" and "pc2"?
I can take an educated guess that it might be the "Shutdown" command - if it is, it's not going to work how you'd like it to, it doesn't represent the "state" of PC but rather only allows you to turn it off.

yes, you need to display the status, is there no way to do it? these buttons turn out to be useless for voice assistants


[Mod] PRVE

Mod info

Mod name: PRVE
Author(s): SpaceODY
License: Primarily CC-BY-NC-SA 4.0
Homepage: https://github.com/SpaceODY/PRVE (Currently don't have it on the forums)
Download: https://github.com/SpaceODY/PRVE/releases

The zip files for each release are a bit tedious in their downloads since different variants need to overwrite the main download to work. I should probably use a :after for the configs in them. If you want anything changed with the setup of it let me know.

I'm looking through the guide more now and I'm going to set the mod up differently before I send a new request.


Remove pc-q35 machine type option

Summary
According to the issue discussion q35 is alias for always the latest pc-q35-version supported by version of qemu.
Remove pc-q35 machine type option on GUI.
Steps to reproduce the behavior:

Navigate to VM create page -> Advance options
Create VM vm1 with machine type pc-q35

Note. this change needs to backport to

release-harvester-v1.3
release-harvester-v1.2

PR Checklist

Is this a multi-tenancy feature/bug?

[ ] Yes, the relevant RBAC changes are at:

Do we need to backport changes to the old Rancher UI, such as RKE1?

[ ] Yes, the relevant PR is at:

Are backend engineers aware of UI changes?

[x] Yes, the backend owner is:

Fixes # https://github.com/harvester/harvester/issues/5437
Screenshot/Video

@mergify backport release-harvester-v1.3

@mergify backport release-harvester-v1.2


Make authorize and login do the same

we have had a bunch of trouble with people trying to authorize things and some people tell them to use the login button on the homepage and some people tell them to use the authorize URL and if they use the login button before they’ve use the authorize URL it gives them an athlete not found error message.
This needs to be super robust and give people instructions on joining the right clubs if things are not right.
see below:
---------- Forwarded message ---------
From: Adam and Britney<EMAIL_ADDRESS>Date: Sat, Jan 25, 2020 at 11:00 PM
Subject: Re: Better techie instructions Team 7
To: Richard Bullington-McGuire<EMAIL_ADDRESS>CC: Chuck and Karen Pena<EMAIL_ADDRESS>Jon Renaut<EMAIL_ADDRESS>Sarah Billington<EMAIL_ADDRESS>It worked!!!!
On Sat, Jan 25, 2020, 10:55 PM Richard Bullington-McGuire<EMAIL_ADDRESS>wrote:
Try using this URL please:
https://freezingsaddles.org/authorize
On Sat, Jan 25, 2020 at 7:40 PM Adam and Britney<EMAIL_ADDRESS>wrote:
When I go to the team 7 uber page this shows we have 8 people and I'm listed. I took a screen shot.is the worry that became I can't do the other link my Mike's are not counting somewhere else?
On Sat, Jan 25, 2020, 5:03 PM Chuck and Karen Pena<EMAIL_ADDRESS>wrote:
Sarah's is the last team we need to get sorted.  Everyone else now has 8 showing on the leaderboard.  Any luck figuring out why Adam can't get Strava authorized?
On Friday, January 24, 2020, 12:39:47 AM EST, Richard Bullington-McGuire<EMAIL_ADDRESS>wrote:
No. I won’t be able to look at this until the weekend.
On Thu, Jan 23, 2020 at 12:13 PM Chuck and Karen Pena<EMAIL_ADDRESS>wrote:
Are we any closer to getting this resolved???
On Thursday, January 23, 2020, 08:08:43 AM EST, Jon Renaut<EMAIL_ADDRESS>wrote:
Have you joined the Strava club for your team? Since your account is private I can't see it.
On Thu, Jan 23, 2020 at 8:05 AM Adam and Britney<EMAIL_ADDRESS>wrote:
Hi Chuck,
I tried to authorize just now from a computer and get the same error. Yes, the Strava ID you linked is me.
Could the link between these registrations got mixed up because I used a different email address for my freezingsaddles.org and bikearlingtonforum.com registration than what I use for Strava?
Thanks,
Adam
Most of our real estate business is from referrals. Please let us know if you know of anyone looking to buy or sell real estate.
Thanks,
Adam and Britney Teeple
REALTORS® | National Realty, Reston, VA
Virginia-Licensed
<EMAIL_ADDRESS>On Thu, Jan 23, 2020 at 6:54 AM Chuck and Karen Pena<EMAIL_ADDRESS>wrote:
Richard and Jon - Adam is getting an Authorization Failed Error code: ATHLETE_NOT_FOUND when he tries to authorize FS to read his Strava.  Can you guys help?
Adam - Looks like you're trying to do this from your phone.  Have you tried from a computer?  I don't know it makes any difference, but it might.  Also, is this you on Strava?  That's the ID that was on your registration.  If it's not you, please send a link of you on Strava.
https://www.strava.com/athletes/16166523
Thanks and cheers,
Chuck
----- Forwarded Message -----
From: Adam and Britney<EMAIL_ADDRESS>To: Sarah Billington<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Sent: Wednesday, January 22, 2020, 09:46:02 PM EST
Subject: Re: Better techie instructions Team 7
Hi Sarah,
So I am in the forum and did my post previously. I have tried to follow the steps below and get stuck on on the authorize in strava. I've attached a screen shot of it failing. Yes all the boxes are checked. Maybe I missed a step in between?
On Wed, Jan 22, 2020, 9:28 PM Sarah Billington<EMAIL_ADDRESS>wrote:
Adam,
If nothing I sent you earlier makes sense, please see below better instructions from Chuck.
Thanks,
Sarah Bee
Begin forwarded message:
From: Chuck and Karen Pena<EMAIL_ADDRESS>Date: January 22, 2020 at 8:41:40 PM EST
To: Sarah Billington<EMAIL_ADDRESS>Subject: Re:  You're still missing one rider

Sarah,
Any luck with your eighth rider?  If he hasn't already, here's what he should do to re-authorize:

Go to the Freezing Saddles page
Click on the LOGIN button in the upper right
Click on the CONNECT WITH STRAVA button
Make sure ALL the boxes are checked and then click AUTHORIZE

It's not hard and should take all of a minute.  Confirm that he's done this.  Confirm that his rides are either recorded with the Strava app or on a bike computer that downloads to Strava.  No manual entries.  If after doing all that he's still not showing up on the leaderboard, we can take it up with Richard and Jon to get it sorted.
But hopefully the above does the trick.  Please try to get him to do it tonight or tomorrow.  I really want to be done with the teams.  Thank you!
Cheers,
Chuck
--
Richard Bullington-McGuire<EMAIL_ADDRESS>PGP key ID: 1024D/DAC3028E 1997-07-20
Key fingerprint = D9B2 B6A6 17A8 8989 918C  3D59 0621 BDC5 DAC3 028E
Richard Bullington-McGuire<EMAIL_ADDRESS>PGP key ID: 1024D/DAC3028E 1997-07-20
Key fingerprint = D9B2 B6A6 17A8 8989 918C  3D59 0621 BDC5 DAC3 028E

This tripped me up again while I was setting up FS2022, see #213


ERROR: No matching distribution found for torch==1.0

With python 3.7.9 and pip 23.0.1:
pip3 install -r requirements.txt
ERROR: Could not find a version that satisfies the requirement torch==1.0 (from versions: 1.7.0, 1.7.1, 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.10.2, 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1)
ERROR: No matching distribution found for torch==1.0

@ghostlyghastly I'm also getting the same issue. did you solve it?

Same issue, changed it to install 1.11.1


Proposal: pass config to globalSetup and globalTeardown

I am the maintainer of Jest Puppeteer project and I would like to suggest a new feature.
When I started Jest Puppeteer I wanted to make it as simple as possible. For this purpose, I wanted to be able to configure it only using Jest config. I found testEnvironmentOptions, it looked like the exact use case for me.
Jest Puppeteer needs globalSetup and globalTeardown, but these two methods do not have access to Jest config and by the way to testEnvironmentOptions. This is the reason why I introduced jest-puppeteer.config.js.
Today people are complaining about that additional config.
This was the context, now the request:
Could you pass config to globalSetup and globalTeardown? I think it is as simple as modifying this line.
Thanks for this amazing library!

Works for me, PR welcome :)

@neoziro @SimenB
I'd be willing to look into this if you don't plan on doing it. When we say pass config, would we do it through globals or the exported function params?

🎉

@neoziro, it looks like globalConfig does not include testEnvironmentOptions: https://github.com/facebook/jest/blob/master/packages/jest-config/src/index.js#L100-L152
Have you found a workaround for this?

@backflip I didn't work on it for now. But yes it will be a problem for Jest Puppeteer.


partial_post_size=nolimit is dangerous?

Hi, regarding partial_post_size, the doc says "Setting it to nolimit is potentially dangerous."
What kind of danger would this be?
Would it be some sort of security issue?
I am asking because I want to use nolimit but since this would be for a non-public server, I don't have security concerns.

The danger here is that a client could post a very large part, so large that the web server process runs out of memory and crashes. It sounds like in your environment, clients are likely to be well behaved, and so using nolimit likely won't be a problem for you.

Understood. So it will be OK for me to use nolimit. Thanks.


make obs names unique

This PR should fix the issue reported here. Also added a warning of the operation being performed. We could optionally leave that out.

Unfortunately I don't thinks this implementation is correct because, in Visium, the obs are made unique after the old column is used to for the index of the shapes. I will change this to call obs_names_make_unique() before creating the shapes element.
Also, in Visium HD we use integers for the instance_key column, so there is no need to make the obs names unique; I will remove that.
Ideally, Visium and Visium HD should either both have integers of strings as names. But the matching between shapes and tables works in both case, and for backward compatibility it is probably better to keep things as they are now.

@melonora if it looks good to you please proceed with merging.

Codecov Report
Attention: Patch coverage is 0% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 36.10%. Comparing base (521a24d) to head (766b5b5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #133      +/-   ##
==========================================
- Coverage   36.17%   36.10%   -0.07%
==========================================
  Files          19       19
  Lines        1692     1695       +3
==========================================
  Hits          612      612
- Misses       1080     1083       +3

Files
Coverage Δ

src/spatialdata_io/readers/visium_hd.py
21.73% <ø> (ø)

src/spatialdata_io/readers/visium.py
20.83% <0.00%> (-0.54%)
:arrow_down:

@melonora quick release note would be great thanks!


Add fingerprint option to login to app or fingerprint to any particular group

well this is kinda very common thing these days. Phone's fingerprint sensor can be use to authenticate while entering in or logging into the application. These days more and more phones are coming with fingerprint sensors. https://github.com/googlesamples/android-FingerprintDialog
something like this if can be implemented that would be great.  Its a feature request more or less. Ebay uses this thing before you login into application.

@ylecollen  anything for this ?


perf(): column formatter sorting

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

2 of 2 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.3%) to 99.461%

Totals

Change from base Build<PHONE_NUMBER>:
-0.3%

Covered Lines:
220

Relevant Lines:
220

💛  - Coveralls


Enforce presence of '$ErrorActionPreference = "Stop"'

Summary of the new feature
Defensive Programming is essential to software engineering.  To enable fail-fast methodology in PowerShell, you must add $ErrorActionPreference = "Stop" to the top of every PowerShell file.  One can easily forget to add this line; I would like a PSScriptAnalyzer rule that enforces the presence of $ErrorActionPreference = "Stop", or at a minimum enforces explicitly setting $ErororActionPreference.
What is the latest version of PSScriptAnalyzer at the point of writing
N/A (whatever comes in the latest version of VS Code PowerShell extension)

Related: https://github.com/PowerShell/PowerShell-RFC/issues/199.

There are multiple types of errors in PowerShell, this would require people to throw away soft errors in favor of trying to turn everything into an exception. That might be appropriate in some places, but it's certainly not necessary in every file.
Nothing wrong with you having a rule like that for your own projects if you feel strongly about it, but it's not a rule we'd want to foist on the whole community -- frankly, shipping a rule like that in PSScriptAnalyzer would be like declaring that the language was designed wrong...

@Jaykul , I completely agree that this should not be enabled by default, but it nonetheless would be immensely valuable as an optional rule that can be installed with Install-Module PSScriptAnalyzer.


Add Bank tests

Closes #90
Accout Number:<PHONE_NUMBER>de48e4bf2ed2a9b4b839e6b2603018ecdfbf4cffdb2065e01a3ed1

I tried checking the signature of the returned objects from the functions but I couldn't find a way to do that in Jest. For now I just checked if they are truthy values but it would be better if we actually checked the objects. Any thoughts? @zinoadidi @tomijaga

you can mock
 return await super.getPaginatedData<PaginatedTransactionEntry & PaginatedEntry>("/bank_transactions", options);
using mocha and simulate the return data since we have all the objects there as various types and classes,
it takes couple of minutes yes but the sooner we start generating those data, the easier it is for future
Maybe a folder with all test data could be added as well if needed and then its reuasble

you can mock
 return await super.getPaginatedData<PaginatedTransactionEntry & PaginatedEntry>("/bank_transactions", options);
and all similar calls using mocha and simulate the return data since we have all the objects there as various types and classes,
it takes couple of minutes yes but the sooner we start generating those data, the easier it is for future
Maybe a folder with all test data could be added as well if needed and then its reuasble

Hmm I've never done anything like that. Mind pointing me towards some resources to get started?

@AbhayAysola
This one talks about how to test HTTP requests and co by mocking away the connection between the server and the client (us) so that client is independent during testing phase and works based on his own data / responses and terms >> https://scotch.io/tutorials/nodejs-tests-mocking-http-requests
This one clarify how testing asynchronous methods works using mocha >> https://staxmanade.com/2015/11/testing-asyncronous-code-with-mochajs-and-es7-async-await/

Thanks @zinoadidi I'll install mocha and work on that

@zinoadidi Should I replace Jest with Mocha?

actually, they can be there together as they provide different functionalities.
Not sure if the just guys added mocking functionalities after some time; would be worth investigating after implementation what is possible with only jest and what was needed more from mocha

@zinoadidi I added nock but I don't think Mocha and Chai are needed for our use case. I also added the test data, would like for you take a look at it.

good job. i think nock solves the problem; no need for mocking just yet.

I still need to add the test data for the rest of the tests @zinoadidi

@AbhayAysola  @zinoadidi The getTransactions() test fails because the data does not stay the same. There will be newer transactions made on the network which will always cause the test to fail.
Also the other tests only check if the method returns a value. Is this enough for a test?
I'm trying to make test for my PR but i can't find a way to check the the data returned by the network api because they are always changing

@AbhayAysola can you make a task for missing data what you haven't added yet

Sure will do


Using kubernetes CA as Issuer

Is your feature request related to a problem? Please describe.
We currently have kafka installed inside kubernetes and use its CA to provide transport encryption and user authentication. Now we want to migrate that use case over to cert-manager and currently i don't see a way to use the kubernetes CA as a CA which cert-manager can use.
Describe the solution you'd like
A issuer / cluster issuer type which represents the kubernetes CA
Describe alternatives you've considered
We currently use a mix of creating a CSR, uploading it with a CertificateSigningRequest object, approving it with the kubernetes cli and dumping the cert with cert=$(kubectl get csr kafka-server -o jsonpath='{.status.certificate}')
Additional context
Environment details (if applicable):

Kubernetes version (e.g. v1.10.2): 1.15
Cloud-provider/provisioner (e.g. GKE, kops AWS, etc): kops AWS
cert-manager version (e.g. v0.4.0): v0.15.1
Install method (e.g. helm or static manifests): helm

/kind feature

I see a potential risk of exposing the kubernetes CA as then all cluster users can go grab certificates from it and privilege escalate themselves.
A recommended alternative/workaround for your use case is copying the Kubernetes CA's cert and key into a Secret resource and then use the CA issuer: https://cert-manager.io/docs/configuration/ca/
Does this help for your use case?

The problem with copying the kubernetes CA is that the CA itself also rotates in kubernetes. Currently out usecase only uses those certs for transport encryption so the escalation part shouldn't be a problem since it should not be usable as client auth cert

I understand that in your usecase it cannot be abused to have client auth but as cert-manager we have to think about upholding best practices for our users. Adding a feature like this will allow client auth to be requested.
Looking into it further, the CA's key is nowhere available inside the cluster's API which means cert-manager would not be able to receive it.
Is there a specific reason you want to use the Kubernetes CA? Would an internal CA (with the CA issuer) not suffice?

/area ca
/priority awaiting-more-evidence

We've now documented why we don't support using the K8S API CA: https://cert-manager.io/docs/faq/#kubernetes-has-a-builtin-certificatesigningrequest-api-why-not-use-that
And we've added some experimental support for the Kubernetes CSR resource: https://cert-manager.io/docs/usage/kube-csr/
I'll close this, but please re-open if you would like to continue discussing this proposed feature.


Panic called Result::unwrap()on anErr value: InvalidLanguage in oxc_linter/src/rules/jsx_a11y/lang.rs when fixing file

File content(at the bottom should be attached raw, not formatted file - github removes some non-printable characters, so copying from here may not work):
    <html lang="n">
    </html>

command
timeout -v 100 oxlint -D all -D nursery --import-plugin --jsdoc-plugin --jest-plugin --vitest-plugin --jsx-a11y-plugin --nextjs-plugin --react-perf-plugin TEST___FILE.js --fix

App was compiled with nightly rust compiler to be able to use address sanitizer
On Ubuntu 24.04, the commands to compile were:
rustup default nightly
rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
rustup component add llvm-tools-preview --toolchain nightly-x86_64-unknown-linux-gnu

export RUST_BACKTRACE=1
export ASAN_SYMBOLIZER_PATH=$(which llvm-symbolizer-18)
export ASAN_OPTIONS=symbolize=1
RUSTFLAGS="-Zsanitizer=address" cargo +nightly build --target x86_64-unknown-linux-gnu

cause this
thread '<unnamed>' panicked at crates/oxc_linter/src/rules/jsx_a11y/lang.rs:97:71:
called `Result::unwrap()` on an `Err` value: InvalidLanguage
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

##### Automatic Fuzzer note, output status "None", output signal "Some(6)"

compressed.zip

Thanks🙏


Recover images in search

Hello
I wanted to know how we can get the address of the image when we do an album search. I tried but still have an array error. So i can't do it
thank you for your help

Can you post the code snippet for it?

Here is the display for research
foreach ($results->albums->items as $album) {
    //echo 'Titre: '.$album->images, '
';
    echo 'Titre: '.$album->name, '
';
    echo 'Date: '.$album->release_date, '
';
    echo 'Nombre de piste: '.$album->total_tracks, '
';
	echo $album['images']['1']->url;
}

Dans l'adresse api les images sont déjà dans array qui est items
[items] => Array
                (
**"Information that I collect"**
[images] => Array
                                (
                                    [0] => stdClass Object
                                        (
                                            [height] => 640
                                            [url] => https://i.scdn.co/image/ab67616d0000b273614c5f63afef27e4dfa9f596
                                            [width] => 640
                                        )

                                    [1] => stdClass Object
                                        (
                                            [height] => 300
                                            [url] => https://i.scdn.co/image/ab67616d00001e02614c5f63afef27e4dfa9f596
                                            [width] => 300
                                        )

                                    [2] => stdClass Object
                                        (
                                            [height] => 64
                                            [url] => https://i.scdn.co/image/ab67616d00004851614c5f63afef27e4dfa9f596
                                            [width] => 64
                                        )

                                )

So I would like to know how to retrieve information from an array which is already in an array
thank you

$album is a stdClass, so try:
$album->images['1']->url;

Thank you very much it works
I was not far away I had done like this echo $ album ['images'] ['1'] -> url;

Glad you got it working!
And thanks @adamazad for helping out!


Missing required license text for GPL-2.0-with-OpenSSL-exception in cryptsetup

Hello All,
We are facing issue with GPL-2.0-with-OpenSSL-exception in cryptsetup. We need a valid license for it.

We are using this tool spdx-tools-2.2.5-jar-with-dependencies.jar to verify our spdx Document. Then we get this error:
invalid: Missing required license text for GPL-2.0-with-OpenSSL-exception in cryptsetup.  GPL-2.0-with-OpenSSL-exception license is not present in SPDX license list. So what do you suggest here? Should we raise a request or  create a LicenseRef within the SPDX document with the complete text of the license?

Should we raise a request or create a LicenseRef within the SPDX document with the complete text of the license?

Since it takes some time to get a license on the license list (minimum 2 months), I suggest creating a LicenseRef and adding the text to the LicenseRef.
BTW - There is a newer version of the SPDX tools available you might want to try - https://github.com/spdx/tools-java


546 update stack tools to work with podman

Made a range of changes so that the stack-clients, stack-manager and stack-data-uploader codes work when run through Podman rather than Docker. The main changes were finding alternative functionality to that provided by Docker Swarm and putting the containers in pods so that they can connect internally using the container names.

Tested new functionality within credo and works well.
Have tested existing docker examples still work as expected.

Tested that

when using Podman the stack-manager does the right thing if you start a stack. When I manually stopped a container using podman stop <container name> and then ran the stack-manager again the stopped container was removed and replaced.
in Windows I tried to debug the stack-manager after having already started a stack and it doesn't allow you to pick the previously used port.


torch.Tensor or np.ndarray?

About autoPytorch/pipeline/components/trainer/*.py in refactor_development_regularization_cocktail branch, most data have the typing of np.ndarray, but aren't they torch.Tensor?

they are, we should fix this as well.

Actually, there are many mypy error regarding wrong typing expressions, so let's fix after the big merge.

sure.


ADD: test annotation fixer

This took me so long to find 🥹 I actually ended up writing my own and almost finished it when i found this  🙃

love it 😍


[FLINK-36542] Enable upToDateChecking to speed up the spotless

What is the purpose of the change
Speed up the spotless.
JIRA: https://issues.apache.org/jira/browse/FLINK-36542
Brief change log

Enable upToDateChecking in spotless-maven-plugin

Verifying this change
Use  mvn spotless:apply or  mvn spotless:check to verify.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency):  no
The public API, i.e., is any changed class annotated with @Public(Evolving): no
The serializers: no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature? no
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

Nice quick optimisation, thanks!

I am very happy to be able to make something that will help flink!

I think this would be pretty useful, just wondering about if we enable it by default could it break something in any CI? My understanding is that by default the index file is placed into the project root, and I think that would break the RAT license checker. But even if not, or if we add an exception for the index in the RAT config doing this extra step in CI runs has no much value, as that always runs start a clean slate, cloning the code, etc.
All in all, I think disabling this by default would be a safer choice, we can introduce a property for it to make it easy to enable indexing via a dynamic param in any local run. WDYT?

@ferenc-csaky Thanks for your review, as far as I know, the index file will be generated under root/target, this will not be put into binary package, so will not break the RAT license check, so we don't need to any extra config in CI.
BTW, disable it by default and enabled by using maven args is OK for me.
mvn spotless:apply -Dspotless.usingIndex=true

It's not a burden to me.

@ferenc-csaky Thanks for your review, as far as I know, the index file will be generated under root/target, this will not be put into binary package, so will not break the RAT license check, we don't need any extra change in CI.
BTW, disable it by default and enable this by using maven args is acceptable to me.
mvn spotless:apply -Dspotless.usingIndex=true

It's not a burden to me.

Sounds good to me! Thank you!

@flinkbot run azure

I think it'd be better to enable this by default (if there are concerns about CI, it could be disabled there), and also to upgrade the Spotless plugin version.
The default is for this feature to be enabled in 2.35.0 and higher: https://github.com/diffplug/spotless/tree/main/plugin-maven#incremental-up-to-date-checking-and-formatting

Thanks for remind this, I agree with upgrade spotless plugin.
Here are some things I want to confirm

If we upgrade the spotless to 2.35.0, then where do we disable it, in CI or disable it by default? Is there any way we can know the effect of opening on CI?  I got the result from flinkbot is SUCCESS.
Do we upgrade in this PR or submit a separate PR to upgrade？

Here are some things I want to confirm

If we upgrade the spotless to 2.35.0, then where do we disable it, in CI or disable it by default? Is there any way we can
know the effect of opening on CI?  I got the result from flinkbot is SUCCESS.

In a single run of CI, spotless is not going to fail the build.  It may slightly slow it down since there'd be extra IO to write whatever output it writes.
My opinion is that we do not need to care and do not need to override anything.  I have two reasons:
A.  The Flink build is already complex enough; fewer options is better.
B.  The maintainers for the Spotless plugin have made this setting the default.  If it were causing issues, they would not have done so.

Do we upgrade in this PR or submit a separate PR to upgrade？

Given my position above, I would suggest we update the version instead of exposing the configuration that this PR does.  If @ferenc-csaky / the community is ok with that, then it just comes down to a question of updating this PR versus a new one.  (And on that point, I do not have an opinion.)

@jnh5y @ruanwenjun Thanks for the added thoughts! I am okay with updating this PR with simply bumping the spotless version to 2.35.0, putting the index under target/ is not harmful at all, so my original point does not matter anyway.
@ruanwenjun Would you mind adapting the Jira ticket ticket summary/desc and the PR title accordingly as well?

@ruanwenjun can you pls. rebase on top of the latest master and force-push again? That wikipedia example got broken a couple days ago, but since then it was removed, so it does not block the CI anymore. I know it is not related to this change at all, but in general it is a good practice to always have a green CI. Sorry about the back and forth. :)

Done.


data migration

Hi,
Just wondering if this plugin confers any benefits in terms of data backups, restoration and migration?
I wonder if it is warranted to add an example of the above 3 exercises to the readme?

I swear I responded to this...
But no, it doesn't really have any additional benefits in terms of the 3 items you mentioned above what's already mentioned in the README.

Thanks for getting back to me. Yea, that's what I thought. I'm using this local-persist at the moment. So far so good. I like having named volumes so I know whats going on and avoid dangling volumes as much as possible.


Do you need to disable the default CSS linter for SCSS to work?

I get CSS errors in my SCSS style tag.

I followed the instructions in the doc, but I think it is incomplete since I have this error...
Cheers!

Same problem here.
I followed svelte-preprocess instructions.
The scss is functional, but i'm still getting errors in VS Code.

Index.svelte style:
<style lang="scss">
  $color: orange;
  p {
    color: $color;
  }
</style>

svelte.config.js
const sveltePreprocess = require('svelte-preprocess');

module.exports = {
  preprocess: sveltePreprocess(),
};

Same problem here.
Tried everything. but just cant get this to work.

The extension fails silently when svelte.config.js is invalid, so be extra sure make extra sure it have any syntax errors. Also make sure the output looks like this:
> require("./svelte.config.js")
{
  preprocess: {
    markup: [AsyncFunction: markup],
    script: [AsyncFunction: script],
    style: [AsyncFunction: style]
  }
}

Same problem.Try as the instructions.I created a file name svelte.config.js like this:
`import { scss } from "@kazzkiq/svelte-preprocess-scss";
module.exports = {
preprocess: scss(),
// ...other svelte options
};`
VSCode still shows svelte(css-syntax-error)


docs(university/rebase): remove duplicate paragraph

Description

Removed duplicate paragraph and fixed one typo.
Related Issue

Motivation and Context

I came across these typos while reading the article and thought that it was a good chance for me to start contributing.
How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

@@ -68,16 +68,9 @@ If there are conflicts, you can see them via git status. Update the conflicts,
$ git rebase --continue

If you have multiple commits on your branch, then you might be prompted to fix conflicts multiple times. Repeat the process until git tells you you're don
If there are conflicts, you can see them via `git status`. Update the conflicts, then `git add` the files, but do not commit them. When you're done fixing conflicts run:

$ git rebase --continue

If you have multiple commits on your branch, then you might be prompted to fix conflicts multiple times. Repeat the process until git tells you you're done.

## Pushf when you're done
## Push when you're done

Once the conflicts have been resolved and you're happy with your changes, you can push your code back up to your branch. But if you try:


state condition and upgrade logic for MultiCluster Apps

https://github.com/rancher/rancher/issues/14476

https://github.com/rancher/rancher/issues/17863

https://github.com/rancher/rancher/issues/17101


"UNRESOLVED DEPENDENCIES"

are you changing something? Because suddenly SBT can not find dependency:
 ::::::::::::::::::::::::::::::::::::::::::::::
 ::          UNRESOLVED DEPENDENCIES         ::
 ::::::::::::::::::::::::::::::::::::::::::::::
 :: be.objectify#deadbolt-core_2.11;2.4.0-SNAPSHOT: not found
 ::::::::::::::::::::::::::::::::::::::::::::::

The snapshot must have expired.  I'll republish it.

Try it again, you should find it now.
I'll publish the final of this later today.

works!


Replace "Loading..." message with loader graphics before Angular app start

Description:
Replaces plain "Loading..." text with a nice loader screen made purely in css
New imports / dependencies:
None
Unit Tests:
None

It looks like this:

Codecov Report

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

@@           Coverage Diff           @@
##           master     #829   +/-   ##
=======================================
  Coverage   91.88%   91.88%
=======================================
  Files         102      102
  Lines        2945     2945
  Branches        6        6
=======================================
  Hits         2706     2706
  Misses        238      238
  Partials        1        1

Continue to review full report at Codecov.

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

It looks like this:


rewrite ConsulServer.MetaInfo#getServerGroup() to support serverGroup

source: spring-cloud-consul
The method getServerGroup currently always return a null value. And I think it would be better to get the serverGroup from the service tags, because that services registered in consul can only provide extra infos by using tags. So getServerGroup could be like this:
    @Override
    public String getServerGroup() {
        return getMetadata().get("group");
    }

And then declaring a private attribute Map<String, String> metadata to cache the result in order to avoid building metadata every time.

AFAICT, this is not used anywhere. What are you wanting to use it for?

I'm trying to implement blue-green deployment(or a/b testing, or multi-version deployment). I use consul for service discovery, feign for inter-services communication, ribbon for load balancing on client. I classify instances of same service into multi-group, and implement a IRuleto route requests to  instances of different group depends on different loadBalanceKey.
For a simple example, there are 2 users(named Z and J) to query service A, and service A has to query some datas from service B by using feign and ribbon. And service B has 2 versions in production: version-1, version-2. I start 2 instances of service B, classify them into group-1, group-2, register them in consul and store their group info in service tags. Then I can map the request of user Z to group-1, and user J to group-2 by using customized IRule.
And I have to extract group information from the server. Because of I'm using consul, I currently write the code in my IRule like this:
        if (server instanceof ConsulServer) {
            return ((ConsulServer) server).getMetadata().get("group");
        } else {
            return server.getMetaInfo().getServerGroup();
        }

So I think it may be better to rewrite ConsulServer.MetaInfo#getServerGroup() to support serverGroup. Or there is a better solution I haven't known.
And my IRule implementation is belonging to my ribbon module, so it would introduce consul dependency into ribbon module.


Shutting down workflow gracefully.

Hi Jordan Zimmerman,
Adding "Graceful shutdown" feature, kindly review.
If it seems fine, please accept the pull request.
Thanks & Regards,
Rajesh.

Added call to Thread.currentThread().interrupt()
Thanks for review.

Do you mind writing a test to prove this?

ping @gs-rchejerla

Sorry, caught up with some work, will write test case ASAP.

merged

@dtoledo67 or @JimBugwadia will you release or do I need to?


A part of the webpage is missing

What was slurped:

the website: https://tbp.land

1717848194081 | DEBUG | onValidate called, no changes detected

Caller: t.wrapper [as addSettingTab] (plugin:settings-search:59:20)

{
  "hash":<PHONE_NUMBER>
}

1717848195613 | DEBUG | onValidate called, no changes detected

Caller: t.wrapper [as openTab] (plugin:settings-search:59:20)

{
  "hash":<PHONE_NUMBER>
}

1717848261971 | DEBUG | attempting to parse prop metadata

Caller: SlurpPlugin.slurp (plugin:slurp:12508:30)

{
  "enabled": true,
  "custom": false,
  "_key": "link",
  "_idx": 0,
  "id": "link",
  "metaFields": [
    "url",
    "og:url",
    "parsely-link",
    "twitter:url"
  ],
  "defaultIdx": 0,
  "defaultKey": "link",
  "description": "Page URL provided or a permalink discovered in metadata."
}

1717848261971 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12508:30)

"url"
"meta[name=\"url\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1717848261971 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12508:30)

"og:url"
"meta[name=\"og:url\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1717848261971 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12508:30)

"parsely-link"
"meta[name=\"parsely-link\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1717848261971 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12508:30)

"twitter:url"
"meta[name=\"twitter:url\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1717848261971 | DEBUG | attempting to parse prop metadata

Caller: SlurpPlugin.slurp (plugin:slurp:12508:30)

{
  "enabled": true,
  "custom": false,
  "_key": "byline",
  "_idx": 1,
  "id": "byline",
  "metaFields": [
    "author",
    "article:author",
    "parsely-author",
    "cXenseParse:author"
  ],
  "defaultIdx": 1,
  "defaultKey": "byline",
  "description": "Name of the primary author or the first author detected."
}

1717848261971 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12508:30)

"author"
"meta[name=\"author\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1717848261972 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12508:30)

"article:author"
"meta[name=\"article:author\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1717848261972 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12508:30)

"parsely-author"
"meta[name=\"parsely-author\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1717848261972 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12508:30)

"cXenseParse:author"
"meta[name=\"cXenseParse:author\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1717848261972 | DEBUG | attempting to parse prop metadata

Caller: SlurpPlugin.slurp (plugin:slurp:12508:30)

{
  "enabled": true,
  "custom": false,
  "_key": "site",
  "_idx": 2,
  "id": "siteName",
  "metaFields": [
    "og:site_name",
    "page.content.source",
    "application-name",
    "apple-mobile-web-app-title",
    "twitter:site"
  ],
  "defaultIdx": 2,
  "defaultKey": "site",
  "description": "Website or publication name."
}

1717848261972 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12508:30)

"og:site_name"
"meta[name=\"og:site_name\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1717848261972 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12508:30)

"page.content.source"
"meta[name=\"page.content.source\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1717848261972 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12508:30)

"application-name"
"meta[name=\"application-name\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1717848261972 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12508:30)

"apple-mobile-web-app-title"
"meta[name=\"apple-mobile-web-app-title\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1717848261972 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12508:30)

"twitter:site"
"meta[name=\"twitter:site\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1717848261972 | DEBUG | attempting to parse prop metadata

Caller: SlurpPlugin.slurp (plugin:slurp:12508:30)

{
  "enabled": true,
  "custom": false,
  "_key": "date",
  "_idx": 3,
  "_format": "d|YYYY-MM-DDTHH:mm",
  "id": "publishedTime",
  "metaFields": [
    "article:published_time",
    "parsely-pub-date",
    "datePublished",
    "article.published"
  ],
  "defaultIdx": 3,
  "defaultKey": "date",
  "description": "Date/time that the page was initially published.",
  "defaultFormat": "d|YYYY-MM-DDTHH:mm"
}

1717848261972 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12508:30)

"article:published_time"
"meta[name=\"article:published_time\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1717848261972 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12508:30)

"parsely-pub-date"
"meta[name=\"parsely-pub-date\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1717848261972 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12508:30)

"datePublished"
"meta[name=\"datePublished\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1717848261972 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12508:30)

"article.published"
"meta[name=\"article.published\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1717848261972 | DEBUG | attempting to parse prop metadata

Caller: SlurpPlugin.slurp (plugin:slurp:12508:30)

{
  "enabled": true,
  "custom": false,
  "_key": "updated",
  "_idx": 4,
  "_format": "d|YYYY-MM-DDTHH:mm",
  "id": "modifiedTime",
  "metaFields": [
    "article:modified_time",
    "dateModified",
    "dateLastPubbed"
  ],
  "defaultIdx": 4,
  "defaultKey": "updated",
  "description": "Date/time that the page was last modified, if available.",
  "defaultFormat": "d|YYYY-MM-DDTHH:mm"
}

1717848261972 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12508:30)

"article:modified_time"
"meta[name=\"article:modified_time\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

thanks for the report! often this is due to Readability thinking the block is a nav header or similar. I'll have a look and see whether that can be parsed out safely.
are there any more logs to go with this? seems to just sort of end mid-parse.

Here's another log:
slurp-2024-06-08.md
I tried slurping the same url as above twice.

yeah so this is a readability thing. it works by scoring nodes individually. the scores are based on things like link density, classes which are commonly associated with content or non-content, content length, etc.
nodes with any score > 0 become a candidate and the node with the highest score becomes the "top candidate" for the node which contains the page's actual content. once it has its top candidate, it moves up the tree to check for an ancestor which contains at least three other candidates and has a score that's no less than 25% lower than the top candidate's score.
your site produces these candidates:
Reader: (Readability) Candidate:
 with score 31.716417910447763
Reader: (Readability) Candidate:
 with score 6.598726114649682
Reader: (Readability) Candidate:
 with score 30.894308943089435
Reader: (Readability) Candidate:
 with score 29.864498644986444
Reader: (Readability) Candidate:  with score 1.5447154471544717
Reader: (Readability) Candidate:
 with score 42.23109243697479
Reader: (Readability) Candidate:
 with score 11.945945945945946

note that the main container's score is 29.86 and the work content's score is 42.23, so the main container's score is about 30% lower and it gets disqualified. it might be possible to give extra weight to an ancestor with multiple high scoring children but it might degrade the experience when parsing more complex sites.
i'll leave this issue open for now as a reminder for the next time i dive into readability work and tinker with the scoring mechanism. if it seems promising, i'll open an issue upstream and link it here.
i have to point out though: readability and slurp are geared toward news sites, blogs, and long-form writeups as that is by far the most common use case. reliably extracting page content while excluding irrelevancies like ads and nav bars requires a lot of fuzzy logic which won't work as intended on every possible page structure.

Thank you for the explanation and for keeping this issue open for further work.

readability and slurp are geared toward news sites, blogs, and long-form writeups

That makes sense. I have tried multiple "url to .MD" tools and I found that most of them ignore the first part of my website, so that's why I opened this issue. After your explanation, I have more insight about why this happens. Thanks again!


Bar(marker=AnimatedMarker()) not advancing

Description
When implementing AnimatedMarker in a ProgressBar, the Bar won't advance to the right and instead rotate in-place next to left. The code below reproduces the error.
Versions

Python version: 2.7.15 (default, May 15 2018, 15:37:31) [GCC 7.3.1 20180303 (Red Hat 7.3.1-5)]
Package version: 3.38.0

Code
import time
from progressbar import Bar, Counter, ETA, Percentage, ProgressBar, AnimatedMarker

test_size = 30

# Bar() advances just fine
widgets = ['Loading: ', Percentage(), ' ', Bar(), ' ', Counter(), '/{} '.format(test_size), ETA()]
pbar = ProgressBar(widgets=widgets, maxval=test_size).start()

for i in range(test_size):
    time.sleep(0.1)
    pbar.update(i)

pbar.finish()

# Marker rotates in-place on the right of the first |
widgets = ['Loading: ', Percentage(), ' ', Bar(marker=AnimatedMarker()), ' ', Counter(), '/{} '.format(test_size), ETA()]
pbar = ProgressBar(widgets=widgets, maxval=test_size).start()

for i in range(test_size):
    time.sleep(0.1)
    pbar.update(i)

pbar.finish()

That's pretty much the intended behaviour because the AnimatedMarker() doesn't adjust to the width of the bar (which is the default for static markers).
Static markers use the following code to automatically adjust to width:
https://github.com/WoLpH/python-progressbar/blob/32d5217db02430a2c3373e3e6f4fc5683f5efa1f/progressbar/widgets.py#L34-L48
By inheriting the AnimatedMarker you can easily change the behaviour so it works like a normal marker:
class GrowingAnimatedMarker(AnimatedMarker):

    def __call__(self, progress, data, width=None):
        marker = AnimatedMarker.__call__(self, progress, data, width)
        return marker * length

But the actual goal of the animated marker is to use it with bars of unknown width in conjunction with the bouncing bar:
import time
import progressbar

test_size = 30

widgets = [progressbar.BouncingBar(marker=progressbar.AnimatedMarker())]
pbar = progressbar.ProgressBar(widgets=widgets).start()

for i in range(test_size):
    time.sleep(0.1)
    pbar.update(i)

pbar.finish()

Having the animated bar actually fill the screen looks a bit strange :)

That explains!
Thanks for the elaborate response, on my own machine (progressbar 2.3 installed) the behaviour is like described above. So after running the same code on the machine with 3.38 I was surprised to see the in-place rotation, but your explanation makes perfect sense.


document the exact resource requirements for keptn-in-a-box

I folllowed the current instructions and used a t2.2xlarge with default memory & disk settings. Turns out the default storage size is 8GB which seems to be too small for this installation. A better default would be 30GB which I used and it worked!

Done


Update private-attributes.mdx

private attr w boostrapping

🚀 Deployed on https://66b62afeab6339007c3e01c6--cozy-fox-0defec.netlify.app


[bazel] Construct an exec_env for the CW305

Constuct an exec_env for the CW305 board.
Since the CW305 is used for SCA and we do not automatically dispatch tests to that board, the test_dispatch function can simply emit a DefaultInfo provider with the required files and signal a test-pass result.

Consider renaming fpga_cw310.bzl as fpga_cw.bzl.  It is likely that all chipwhisperer implementations will share a lot of common code and all be present in a single source file.


Modal for social media sharing

Hi I was wondering Is it possible to use a Modal to open for example http://www.facebook.com/sharer.php?

You'd need to use an iframe inside of a modal, but I don't know that Facebook allows their share screens to be loaded in iframes—they have to be in their own window. (See more here.)
There are a few ways to trigger this screen, which Facebook details in their developer documentation.


fix(runtime-dom): support mounting app to svg container

close: #2926

@posva can this be approved now?

@posva can this be approved now?

I think it's good but I'm not sure, that's why I didn't review it 😅
It looks a bit weird to pass isSVG as a parameter because it might not be the only kind of element needing a specific check, but this could also be refactored in the future with an enum if multiple types checks are needed

I think it's good but I'm not sure, that's why I didn't review it 😅
It looks a bit weird to pass isSVG as a parameter because it might not be the only kind of element needing a specific check, but this could also be refactored in the future with an enum if multiple types checks are needed

@evan We might need your input here as well.


Restart single watches

@caseydavenport This is where I've got to - as a basis for discussion whether it is worth keeping at all.
There are some changes here that I think turned out not to be required, so could be reverted:

getting an initial ResourceVersion for GlobalConfig
the 'open' arg, when reading from a watch channel; I thought it might be different from (obj != nil), but it appears always to be the same

There are other things that would need adding or finishing, for a complete PR:

the eventNeedsNewWatch calls all need changing so that they do as the code now does for (obj == nil), but set needResync, as the code used to do, if the event indicates an error
I think it would be good to add a fallback to the old behavior (full resync), if we restart a watch and then the next read gives (obj == nil) again - to make sure that we can't get into a tight loop there
testing

Finally one query, in case you happen to know this.  According to ListOptions doc, I think we should be setting Watch: true in order to get changes since the specified version.  But we're not, and we are still only getting the new changes that we want.  So not sure why exactly why that is working.

Finally one query, in case you happen to know this. According to ListOptions doc, I think we should be setting Watch: true in order to get changes since the specified version. But we're not, and we are still only getting the new changes that we want. So not sure why exactly why that is working.

Weird, I wonder if that is a new change.  The watches definitely have been working as expected to-date.

@caseydavenport @robbrockbank This is now rebased and I believe complete.  Looks like I still have a test failure to deal with - but you may like to give it another review.

LGTM.
I'm not sure, but I wonder if we might also need to store the entries on a per-resource type basis so that in the event a Watch fails we can perform a full re-sync of a single resource type (if say the revision version is too old for the API server to remember ... which in this case would trigger a full re-sync).

@robbrockbank

I'm not sure, but I wonder if we might also need to store the entries on a per-resource type basis so that in the event a Watch fails we can perform a full re-sync of a single resource type (if say the revision version is too old for the API server to remember ... which in this case would trigger a full re-sync).

Yes, absolutely, that might be a useful further optimization (and one that Casey and I have discussed too). But in practice, don't you think it's likely now that your new syncer design will land soonish?  In that case, I guess that it would not make sense for me to think about adding that idea to this design.  WDYT?


style(compiler-dom): use keys/map instead of reduce

This seems arbitrary. IMO it's the correct place to use reduce.


Error while executing

RuntimeError: Could not infer dtype of numpy.float32
I am getting the above error while enumerating the Data loader from pytorch of the following code.
'for i, (input_data, labels) in enumerate(self.train_loader):'

I found same question


[WIP] Add loading data button

Closes #607
Now, we can upload external data by clicking on the "load data" button located under the "simulation" tab. Please note that the location of the button is temporary, and we can decide together whether it should remain there later.

Codecov Report

Merging #616 (1ef44cd) into master (d5d1a03) will decrease coverage by 0.56%.
The diff coverage is 45.83%.

:exclamation: Current head 1ef44cd differs from pull request most recent head 8b9af57. Consider uploading reports for the commit 8b9af57 to get more accurate results

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##           master     #616      +/-   ##
==========================================
- Coverage   92.19%   91.63%   -0.56%
==========================================
  Files          22       22
  Lines        4229     4269      +40
==========================================
+ Hits         3899     3912      +13
- Misses        330      357      +27

Impacted Files
Coverage Δ

hnn_core/gui/gui.py
91.53% <25.80%> (-4.91%)
:arrow_down:

hnn_core/gui/_viz_manager.py
89.15% <82.35%> (+0.14%)
:arrow_up:

... and 1 file with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

I manually created dipoles from the numpy array as it seems that the read_dipole API is incompatible with our data.


Write a C# program to find average of numbers

Description
Write a C# program to find average of numbers
Average of numbers is the sum of all numbers divided by the number of numbers.
Input  : 1 2 3 4 5
Output : 3

How to contribute

Save the solution in FindAverageOfNumbers.cs file
Add FindAverageOfNumbers.cs file in find-average-of-numbers folder

!assign


it is consuming too much, making my vsc slower. I want to disable it and it is not disabling

Issue Type: Bug
Extension Name: git
Extension Version: 1.0.0
OS Version: Windows_NT x64 10.0.19041
VS Code version: 1.68.1

:warning: We have written the needed data into your clipboard. Please paste! :warning:

@iamrabie, could you please describe the issue that you are running into? Are you trying to disable the vscode.git extension? If so, could you please share the steps that you are following? Thank you!

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


slab-alloc: Create mechanism for supporting time in no-std and no-os

Currently, in util::workingset, we use std::time::Instant to keep track of time. Instead, we need some mechanism (probably a trait) for keeping track of time that is agnostic to implementation, an implementation of this mechanism for a no-std environment (where OS support is present), and a mechanism for allowing the user to provide their own implementation for no-os environments.
Progress:

[ ] Create a mechanism for abstracting over time, create an implementation of this mechanism that is backed by std::time::Instant, and update util::workingset to use this mechanism.
[ ] Create an implementation of this mechanism that does not rely on std, but only on OS-provided functionality (e.g., libc on Unix and kernel32 on Windows).
[ ] Modify the slab allocator code to allow the user to provide their own implementation of this mechanism.

I would like to take a shot at this..

Sure thing! I'm happy to mentor, so let me know if you have any questions, want to discuss approaches/designs, etc.

Here's what I'm thinking. Let's extract two, and only two, functions
fn refresh(&mut self, secs: u64) -> Option<T>
fn refresh_now(&mut self, secs: u64, now: U) -> Option<T>

into a trait. Then the current WorkingSet can be changed into an impl for this new trait with minimum effort. A user implemented mechanism will implement this trait , taking a type U instead of std::time::Instant and implement its own logic.

So I've actually been thinking about getting rid of the WorkingSet entirely since it's only used in one place (I was originally planning on using it in a magazine caching implementation that didn't end up getting included). Given that, it might be easier to make a Time trait instead.
There are multiple designs for it, but my guess is that at a minimum it'd have a function fn now() -> Self. I could see a couple of possible designs:

fn diff(&self, other: Self) -> std::time::Duration
fn secs_since(&self, other: Self) -> u32
fn secs_elapsed(&self, other: Self, secs: u32) -> bool

How do you feel about that approach? If you take a look at the WorkingSet implementation and where we use it, you'll see that it's somewhat more convoluted and ugly than it needs to be. I think that getting rid of it would make the code simpler and cleaner. I'm happy to hear other opinions though!

Sounds Good. Looks like secs_elapsed can have a default implementation based on secs_since.  You still have dependency on std::time::Duration for the diff function 😄 . If only we could do everything in u32 ...

Hey, so @ezrosent and I discussed this last night, and he had an interesting idea - curious what you think of it. It'd be nice to be able to have the notion of "time" be pretty abstract so it can include things like CPU cycle counters (which would make it easy for us to implement a no-std version without the user needing to provide their own mechanism to query for the current time). However, this makes the duration type opaque, but that's probably fine. It just means that if you want to supply a concrete duration, you need to know the specific concrete type that's being used for Time. It'd make that trait look something like this:
pub trait Time {
    type Duration: Ord;

    fn now() -> Self;
    fn since(&self, other: Self) -> Self::Duration;
}

If you had a concrete type, say with Duration = u32, representing a cycle count, then you could still construct a constant out of it. So you could still have code configure what the period of the working set algorithm is, for example.

+1
I was thinking that it doesn't even have to be a cycle count. The slab allocator could itself implement this trait.  (Or a small struct containing allocation statistics). It would of course change the semantics of the working set algorithm, but it could be accommodated by a trait along the lines of the one proposed above.


FIX: Fix example

Fixes https://app.circleci.com/pipelines/github/mne-tools/mne-python/17161

All green, in it goes


how to disable ring click , when i am tap on ring ring color change

Library version:
Android Version:
Used in [F]ragment or [A]ctivity:
Steps to reproduce (if any):

you can use
void setRingsClickable(boolean areRingsClickable)


Update sk.coffee

translations:About

Coverage increased (+0.007%) to 55.923% when pulling cce79477d92a5f5f716b129fbca448b88d3ac936 on cundamic:patch-43 into 8fda6a10a63c18a5148a6d8b83a957a8fe39e073 on codecombat:master.

Thank you for all the translations, @cundamic 😄


Add new function GetWithRefresh()

Fixes #63
See also https://github.com/open-telemetry/opentelemetry-ebpf-profiler/issues/244

There are a couple slightly weird things regarding Go conventions, but what matters is the conventions of this project.

An issue with details is appreciated :)


Add ObjectLoader, Errata, Tidy

Issues #3 and #4.
Add ObjectLoader for viewing THREEjs Object JSON files.

Also, since you added a json loader, please update README file that it is also supported in the file type line?

Reverted 808aac1 and eeb3169 as they are internal to our own work and not meant as general updates for Autodesk's 3DViewerComponent.

README updated


use round

Because the cis window file read here is a single line, it gets read as the header of the data frame when opened in.
In the unlikely case where two values are identical (it happens here when opening cpg-tenk10k-main/saige-qtl/tenk10k-genome-2-3-eur/input_files/241210/cis_window_files/chr1/ENSG00000238009_100000bp.tsv where both chr and window_start are 1), to avoid duplicated column names the second 1 gets turned into 1.1 which is then confusing when restricting an MT to a genomic range, as 1.1 is not a valid position. A bit hacky but "rounding" the value to the closest int fixes it here (in all cases .1 would get rounded down).
screenshot of my notebook to illustrate the issue

https://batch.hail.populationgenomics.org.au/batches/580127/jobs/1


Improve UI configuration text

Closes #4
@Nisaba please review to ensure I've done everything as agreed in #4.

OK, it's good for me !


Add test applications

Add tests application based on ocm-ramen-samples for using in drenv tests.

Notes from discussion with Shyam:

Consider moving to ocm-ramen-samples repo

requires adding the deployment security context in the kustomization.yaml

Is this duplicating effort for e2e tests?
Is is more important to add cephfs before the hostpath app?

Closing as stale, part of general cleanup. Please reopen and update if still required. I also assume we are not enhancing drenv test and are proceeding with e2e based tests at present.


GPU acceleration in Xiwi

Would it be possible for someone to add GPU acceleration to Xiwi?
It would be almost perfect.  Then  could run games and vlc

That'd be awesome, but it's very difficult to implement.  I'll keep this open but don't expect anything anytime soon.

Thanks. Well, if you don't ask you don't get.
Crouton is a trip. Thanks for all your hard work.
Syd
On Sun, May 17, 2015 at 11:35 PM David Schneider<EMAIL_ADDRESS>wrote:

That'd be awesome, but it's very difficult to implement. I'll keep this
open but don't expect anything anytime soon.
—
Reply to this email directly or view it on GitHub
https://github.com/dnschneid/crouton/issues/1760#issuecomment-102860839.


Just updated to latest version 1.31.2 and game no crashes when trying to load a save

README
Github is NOT here for support and general questions, it's designed for developers to discuss development and code. If your issue is unrelated to anything technical, do not make an issue, you will be blocked and your issue closed without an answer.
Bug
Operating system: Solus Plasma
Game version: Steam Current
CET version:1.31.2 -bux fix
GPU: Nvidia RTX 2060
Description
Played fine last night.  Tonight I got the error when Red4 is out of date.  Updated Red4ext, Archivexl, Tweakxl and Codeware to latest versions.  Game ran fine, played a bit, noticed CET was not working.  Saw there was an update.  Manually installed 1.31.2 - bug fix from here.  Game launches fine but no saves load.  Just CTD's.
Expected behaviour
Expected it to just work like it always does after one of the hundreds of updates I've done.
Reproduction
See description.

Try 1.31.3

Installed it.  Still has the red4ext plugin with dll, not sure if it was supposed to given the description.  CET loads and works fine (since I did added the dll via protontricks).
However none of the mods I was using with CET requirements work at all.  I have not tried updating them yet, will do that next.
---- On Fri, 01 Mar 2024 06:19:46 -0600 Maxime @.***> wrote ---
Try 1.31.3
—
Reply to this email directly, https://github.com/maximegmd/CyberEngineTweaks/issues/927#issuecomment-1973091300, or https://github.com/notifications/unsubscribe-auth/AV76U3LTGBATXP4RTZZPTL3YWBW6FAVCNFSM6AAAAABEA4JWLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZTGA4TCMZQGA.
You are receiving this because you authored the thread.
Zach Semonick
620.249.1233
@.***

Mods are working after I updated them.
I appreciate the linux support.  If you guys move forward with having your .dll please update the wiki with how to override and get it working.
Thank you very much for the quick reply and assistance.   Have a great weekend!
---- On Fri, 01 Mar 2024 06:19:46 -0600 Maxime @.***> wrote ---
Try 1.31.3
—
Reply to this email directly, https://github.com/maximegmd/CyberEngineTweaks/issues/927#issuecomment-1973091300, or https://github.com/notifications/unsubscribe-auth/AV76U3LTGBATXP4RTZZPTL3YWBW6FAVCNFSM6AAAAABEA4JWLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZTGA4TCMZQGA.
You are receiving this because you authored the thread.
Zach Semonick
620.249.1233
@.***

The .dll file isn't used anymore, it's just here to delete the old one, you don't need to keep it.


ytt guides & examples

Problem Statement
The current ytt documentation goes in depth listing what features are available in ytt which is acting like a reference. However, it lacks in explaining how these various features can be applied in real-life scenarios which leaves new ytt users to figure out how to use ytt to solve their problems on their own. This not only takes time for new users to ramp up in ytt but also leaves them feeling less confident whether they are using ytt the “best way” or the intended way it was designed to be used.
Many ytt users have pointed out that the interactive playground is a great place to learn, however, it could be hard to find the topic the users are interested in and the name of the topics are not descriptive enough to help finding the right example they are looking for.
First Increment (MVP)
Research and compile a list of 5 or 6 use cases for guides. This list will be updated as we research and get feedback.

[x] Getting started with ytt from plain yaml
[x] When I would use library file, private library, or a data values file?

[x] e.g. #392
[x] e.g. #carvel@2021-06-02T14:14Z

[ ] #649
[ ] #650
[ ] #651

Prioritizing content over presentation, create guides and code examples for the use cases.
Collect feedback on the guides early and incorporate it into the following guides.

Data point: #728
TL;DR. A critical factor in "maintainability" of a system is how likely would someone in my shop be able to intuit what's going on mostly from what's there.


Clickhouse database dialect

Create a new database dialect to support Gorm's official Clickhouse driver.

Hey @System-Glitch, I'd be happy to give this a shot.

Hello! I'm glad to hear that! If you need assistance, feel free to ask here or on our discord server.


Update approve-to-run-ci.yml

Description
This PR fixes #
Notes for Reviewers
Signed commits

[ ] Yes, I signed my commits.

changes_requested


Allow bypass of dependencies management (unicode-slugify)

please close me

I hope you figured out whatever it was, otherwise let me know.


2024 updates and cleanup

General Updates and minor fixes for the 2024 season

Resolved Mrs. G comments.


Fixed CHANGELOG - removed invalid entry

Please update also release notes:

https://github.com/zendframework/zend-log/releases/tag/release-2.5.2

It was added by mistake in: https://github.com/zendframework/zend-log/commit/3f1ef10f68b2781c98e055bc3612685e1488fd91

Thanks, @webimpress!


Fix a bug in deletion of webhook service for replacement

The condition that checks for an error with the webhook service deletion is based on the wrong variable, and the return statement is never reached, which leads to a continuous error when OLM tries to replace the webhook service on certain conditions
Signed-off-by: orenc1<EMAIL_ADDRESS>
Description of the change:
Motivation for the change:
https://bugzilla.redhat.com/show_bug.cgi?id=2048441
Reviewer Checklist

[ ] Implementation matches the proposed design, or proposal is updated to match implementation
[ ] Sufficient unit test coverage
[ ] Sufficient end-to-end test coverage
[ ] Docs updated or added to /doc
[ ] Commit messages sensible and descriptive

(Removing the BZ from the title as it messes up downstream automation)
/ok-to-test

looks like the e2e failures were transient.
/retest

/retest

/retest-required

/retest-required

/retest

/retest

/lgtm

/retest

hi @awgreene do you think we are ready to rerun the CI?
thanks

/lgtm


The Evolution of JavaScript

Title Of Blog Post : The Evolution of JavaScript
Short Description of what is expected : Overview of the major milestones and changes in the evolution of JavaScript
Category :JavaScript
Tags :JavaScript Technology

Can you please assign this task to me?

yeah sure you can work on it and please refer to contributing guidelines.

Hi, am I required to create a simple .txt file or a webpage describing the evolution of JavaScript?

Hey i have completed it and made a PR, please review and merge it as i have
worked quite alot in it
On Mon, Oct 9, 2023 at 8:53 PM deep-Ak-47 @.***> wrote:

yeah sure you can work on it and please refer to contributing guidelines.
—
Reply to this email directly, view it on GitHub
https://github.com/Grimm-s-Alchemy-Chamber/hackers_hive/issues/70#issuecomment-1753219777,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AZ6PQJMEUR3DGJMDDD2ALS3X6QJIDAVCNFSM6AAAAAA5VNSATWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJTGIYTSNZXG4
.
You are receiving this because you were assigned.Message ID:
@.***>


Remove 'class' from instance_config dict only if key exists

This will avoid raising KeyError if 'class' is not a key of instance_config dict.

I fail to see which case it raise an error can you past here the config used ?

It happened to me when I tried to use config.create_instance('urbanairship', default_class='urbanairship.Airship') with this config file:
interfaces:
    push_mobile:
        class: dhh.push_mobile.interfaces:PushMobile
        urbanairship:
            key: my_key
            secret: my_secret

hmm I see, I so wish I could nuke lymph config.py, but for now :+1:


can't open TQVault V4.3.0 , System.IO.FileLoadException

it say Vault path not set, using default setting, and an error say  System.IO.FileLoadException

could't find the game path setting in exe.config

Hi @danielplw2

could't find the game path setting in exe.config

It's because user settings are in a new file called UserConfig.xml now. The path is there.

still the same problem after I set the path

I have try different game path but still pop out the same error

is working now


Unable to find boost atomic library header files//boost-1.84.0

ERROR:
Compilation failed Stdout: [ 50%] Building CXX object CMakeFiles/test_atomic.dir/atomicity.cpp.o Stderr: /sdk/sysroots/core2-64-poky-linux/usr/share/doc/boost-atomic/examples**/atomicity.cpp:38:10: fatal error: test_clock.hpp: No such file or directory 38 | #include "test_clock.hpp" | ^~~~~~~~~~~~~~~~ compilation terminated. make[2]: ***** [CMakeFiles/test_atomic.dir/build.make:76: CMakeFiles/test_atomic.dir/atomicity.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/test_atomic.dir/all] Error 2 make: *** [Makefile:91: all] Error 2 Returncode: Expected: 0 Actual: 2
Tried adding below path but still failing with same issue. Could you please help here?
include_directories(
${Boost_LIBRARY_DIRS}/atomic/test
)

/remind

Could you please help here?

A lot more people will see your problem if you post it to the boost-users mailing list: https://lists.boost.org/mailman/listinfo.cgi/boost-users


chore: qs-jx-v3 to 0.0.8

chore: Promote qs-jx-v3 to version 0.0.8

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment