Fix haproxy crash part 2 (master)

Signed-off-by: John Pitman<EMAIL_ADDRESS>What type of PR is this?
/kind bug
What does this PR do / why we need it:
Fixes haproxy not starting up for older versions of OpenShift
Have you updated the necessary documentation?

[ ] Documentation update is required by this PR.
[ ] Documentation has been updated.

Which issue(s) this PR fixes:
Fixes #?
Test acceptance criteria:

[ ] Unit Test
[ ] E2E Test

How to test changes / Special notes to the reviewer:
Run against OpenShift 4.10 or older. Run the operator with the OpenShift Redis related images.
ARGOCD_REDIS_IMAGE=registry.redhat.io/rhel8/redis-6@sha256:53598a6effeb90e4f1b005b2521beffd2fa2b0c52d0e7f2347ee2abd2577cab3 \
ARGOCD_REDIS_HA_IMAGE=registry.redhat.io/rhel8/redis-6@sha256:53598a6effeb90e4f1b005b2521beffd2fa2b0c52d0e7f2347ee2abd2577cab3 \
ARGOCD_REDIS_HA_PROXY_IMAGE=registry.redhat.io/openshift4/ose-haproxy-router@sha256:edf7ce748b703e195220b7bd7b42fa2caa4cdfd96840445e096036a0d85f1ff2 \
REDIS_CONFIG_PATH="build/redis" \
make install run

Install an Argo CD instance
apiVersion: argoproj.io/v1alpha1
kind: ArgoCD
metadata:
  name: argocd
spec:
  ha:
    enabled: true

Check that the argocd-redis-ha-haproxy pod starts successfully.

/retest

/test v4.9-e2e

/lgtm
/approve

/hold

Tested and works on 4.9

Hi @iam-veeramalla. could you remove the hold and re-approve this please?

unhold

/unhold

/lgtm
/approve


SAK-31648: Fix annoying log message on gateway site

A few lines of code to suppress an annoying error message
https://jira.sakaiproject.org/browse/SAK-31648

The pattern is indeed odd.  Probably a better one is to have an "anonymous" user, which has a non-empty userId, "anonymous" or some such.
Do we really want to include the whole StringUtils library just for this one statement? I don't know the coding standard here...

Everything should be using string utils. It's deployed to shared and it's
static so it won't bloat anything :)
sent from my mobile
On 9 Aug 2016 5:08 AM, "Mitch Golden"<EMAIL_ADDRESS>wrote:

The pattern is indeed odd. Probably a better one is to have an "anonymous"
user, which has a non-empty userId, "anonymous" or some such.
Do we really want to include the whole StringUtils library just for this
one statement? I don't know the coding standard here...
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/sakaiproject/sakai/pull/3142#issuecomment-238343794,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAH4aSODpKF5lihm4mVdgHHu0kiO46R3ks5qd36lgaJpZM4JdT01
.

Resubmitting the PR.


how to disable nsfw filter

I want to draw things that are not nsfw but it detects me as nsfw and draws me a black square.

same

yep, having the same issue.

go to
..\sd-inf\Lib\site-packages\diffusers\pipelines\stable_diffusion
edit safety_checker.py (make a backup copy) and replace with:
`import numpy as np
import torch
import torch.nn as nn
from transformers import CLIPConfig, CLIPVisionModel, PreTrainedModel
from ...utils import logging
logger = logging.get_logger(name)
def cosine_distance(image_embeds, text_embeds):
normalized_image_embeds = nn.functional.normalize(image_embeds)
normalized_text_embeds = nn.functional.normalize(text_embeds)
return torch.mm(normalized_image_embeds, normalized_text_embeds.t())
class StableDiffusionSafetyChecker(PreTrainedModel):
config_class = CLIPConfig
def __init__(self, config: CLIPConfig):
    super().__init__(config)

    self.vision_model = CLIPVisionModel(config.vision_config)
    self.visual_projection = nn.Linear(config.vision_config.hidden_size, config.projection_dim, bias=False)

    self.concept_embeds = nn.Parameter(torch.ones(17, config.projection_dim), requires_grad=False)
    self.special_care_embeds = nn.Parameter(torch.ones(3, config.projection_dim), requires_grad=False)

    self.register_buffer("concept_embeds_weights", torch.ones(17))
    self.register_buffer("special_care_embeds_weights", torch.ones(3))

@torch.no_grad()
def forward(self, clip_input, images):
    pooled_output = self.vision_model(clip_input)[1]  # pooled_output
    image_embeds = self.visual_projection(pooled_output)

    special_cos_dist = cosine_distance(image_embeds, self.special_care_embeds).cpu().numpy()
    cos_dist = cosine_distance(image_embeds, self.concept_embeds).cpu().numpy()

    result = []
    batch_size = image_embeds.shape[0]
    for i in range(batch_size):
        result_img = {"special_scores": {}, "special_care": [], "concept_scores": {}, "bad_concepts": []}

        # increase this value to create a stronger `nfsw` filter
        # at the cost of increasing the possibility of filtering benign images
        adjustment = 0.0

        for concet_idx in range(len(special_cos_dist[0])):
            concept_cos = special_cos_dist[i][concet_idx]
            concept_threshold = self.special_care_embeds_weights[concet_idx].item()
            result_img["special_scores"][concet_idx] = round(concept_cos - concept_threshold + adjustment, 3)
            if result_img["special_scores"][concet_idx] > 0:
                result_img["special_care"].append({concet_idx, result_img["special_scores"][concet_idx]})
                adjustment = 0.01

        for concet_idx in range(len(cos_dist[0])):
            concept_cos = cos_dist[i][concet_idx]
            concept_threshold = self.concept_embeds_weights[concet_idx].item()
            result_img["concept_scores"][concet_idx] = round(concept_cos - concept_threshold + adjustment, 3)
            if result_img["concept_scores"][concet_idx] > 0:
                result_img["bad_concepts"].append(concet_idx)

        result.append(result_img)

    has_nsfw_concepts = [len(res["bad_concepts"]) < 0 for res in result]

    for idx, has_nsfw_concept in enumerate(has_nsfw_concepts):
        if has_nsfw_concept:
            images[idx] = np.zeros(images[idx].shape)  # black image

    if any(has_nsfw_concepts):
        logger.warning(
            "Potential NSFW content was detected in one or more images. A black image will be returned instead."
            " Try again with a different prompt and/or seed."
        )

    return images, has_nsfw_concepts

@torch.inference_mode()
def forward_onnx(self, clip_input: torch.FloatTensor, images: torch.FloatTensor):
    pooled_output = self.vision_model(clip_input)[1]  # pooled_output
    image_embeds = self.visual_projection(pooled_output)

    special_cos_dist = cosine_distance(image_embeds, self.special_care_embeds)
    cos_dist = cosine_distance(image_embeds, self.concept_embeds)

    # increase this value to create a stronger `nsfw` filter
    # at the cost of increasing the possibility of filtering benign images
    adjustment = 0.0

    special_scores = special_cos_dist - self.special_care_embeds_weights + adjustment
    # special_scores = special_scores.round(decimals=3)
    special_care = torch.any(special_scores > 0, dim=1)
    special_adjustment = special_care * 0.01
    special_adjustment = special_adjustment.unsqueeze(1).expand(-1, cos_dist.shape[1])

    concept_scores = (cos_dist - self.concept_embeds_weights) + special_adjustment
    # concept_scores = concept_scores.round(decimals=3)
    has_nsfw_concepts = torch.any(concept_scores > 0, dim=1)

    images[has_nsfw_concepts] < 0.0  # black image

    return images, has_nsfw_concepts`

Do you mind giving an absolute path (on a Colab instance) of this file, because I can't find it.

There's a much simpler solution, you can just do this
text2img.safety_checker = lambda images, **kwargs: (images, False)
inpaint.safety_checker = lambda images, **kwargs: (images, False)

More info here https://write.farook.org/adventures-in-imagineering-stable-diffusion-the-unstable-bits/

Do you mind giving an absolute path (on a Colab instance) of this file, because I can't find it.

Sorry, there's not specified in opening post. for collab i don't know. i use it locally, the folder are located in your conda data folder, in my case is "C:\ProgramData\Miniconda3\envs\sd-inf\Lib\site-packages\diffusers\pipelines\stable_diffusion".
for collab im sorry, i don't know if is possible to doing the same modification.

Do you mind giving an absolute path (on a Colab instance) of this file, because I can't find it.

Sorry, there's not specified in opening post. for collab i don't know. i use it locally, the folder are located in your conda data folder, in my case is "C:\ProgramData\Miniconda3\envs\sd-inf\Lib\site-packages\diffusers\pipelines\stable_diffusion". for collab im sorry, i don't know if is possible to doing the same modification.

I wonder if the right way to go would be to create a separately hosted instance from which to access the files, either by enabling it to access a local drive, or by having it hosted online such as a separate repository or even fork. Unfortunately, I don't know enough about how Colab does things to know either :(

Do you mind giving an absolute path (on a Colab instance) of this file, because I can't find it.

Sorry, there's not specified in opening post. for collab i don't know. i use it locally, the folder are located in your conda data folder, in my case is "C:\ProgramData\Miniconda3\envs\sd-inf\Lib\site-packages\diffusers\pipelines\stable_diffusion". for collab im sorry, i don't know if is possible to doing the same modification.

I wonder if the right way to go would be to create a separately hosted instance from which to access the files, either by enabling it to access a local drive, or by having it hosted online such as a separate repository or even fork. Unfortunately, I don't know enough about how Colab does things to know either :(

You. can just use the solution I posted, that is
text2img.safety_checker = lambda images, **kwargs: (images, False)
inpaint.safety_checker = lambda images, **kwargs: (images, False)

this owrks and requires no source code modification

As the updated UI has a checkbox for that, I'll close this issue.


PHOENIX-6523 Support for HBase Registry Implementations through Phoen…

…ix connection URL

This was just for running CI on 5.1


Add mapbox-gl draw mode

Description
if tooltip state is draw , mount mapbox-gl-draw and change mode accordingly.
Added callback once draw is completed. Currently, callback will reset the draw mode. In future PR, will
add Filter Meta based on draw shape.
Issues Resolved
#213
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.
https://user-images.githubusercontent.com/11067894/225174933-0cb198ba-bd62-40fb-9c63-5063da957786.mov

Codecov Report

Merging #347 (9b494ce) into main (3a20e81) will decrease coverage by 1.29%.
The diff coverage is n/a.

:exclamation: Current head 9b494ce differs from pull request most recent head b01eb6d. Consider uploading reports for the commit b01eb6d 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             @@
##             main     #347      +/-   ##
==========================================
- Coverage   85.71%   84.42%   -1.29%
==========================================
  Files          18       18
  Lines         448      456       +8
  Branches       66       71       +5
==========================================
+ Hits          384      385       +1
- Misses         43       49       +6
- Partials       21       22       +1

see 3 files 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.


Use Tree

Rewrite of library to store contexts and configurations in a trie style tree, this scales better than the current method.
Most internal methods and variables are changed so client code that relies on these will likely break, support can be added if needed. Public methods should match previous behavior in all cases.
Perf measurements based off the preexisting benchmark for reads and initial load time:

Input
YCB(ops/sec)
Tree(ops/sec)
Improvement

Base
472,447
2,985,223
6.3x

y20 (large config / large dimensions)
29,010
245,589
8.5x

y20 (large config / small dimensions)
40,699
280,518
6.9x

y20 (small config / large dimensions)
93,800
5,046,250
53.8x

y20 (small config / small dimensions)
230,637
3,181,432
13.8x

y20 (small config / large dimensions / big context)
98,767
5,032,506
51.0x

y20 (large config / large dimensions / big context)
18,654
173,161
9.3x

y20 (medium config / jumbo dimensions / tiny context)
119,894
865,038
7.2x

y20 (medium config / jumbo dimensions / medium context)
23,115
481,654
20.8x

y20 (medium config / jumbo dimensions / bigger context)
0.46
167,406
364,000x

Input
YCB(ops/sec)
Tree(ops/sec)
Improvement

Load Base
153,850
205,738
1.3x

Load (large config / large dimensions)
53
148
2.8x

Load (small config / large dimensions)
845
3,991
4.7x

Load (small config / small dimensions)
12,579
29,781
2.4x

Load (large config / small dimensions)
241
391
1.6x

Load (medium config / jumbo dimensions)
586
872
1.5x

Cool thanks! It might take me a while to review this. Since this a big change it might make sense to bump the major version number (even though the API is the same). What do you think?

Oh yeah when we were using this heavily in production we noticed that the large amount of object creations was causing garbage collection pressure. Not sure if there's something we can do in the tests (existing or new) to capture the GC events and compare them between the old & new code.

Overall, I'm ok with the changes. I'm not intimately familiar with the previous code so I don't know the inns and outs of each change. However, if upon testing with our production code that the same input produces the same output and there are no performance regressions, we can publish it with a major version bump.

After testing internally and validating the same output is produced with these changes, we want to start testing this. Therefore, I'm going to merge this and publish under 2.x.
Thanks @BillDorn!


Crash when loading my world

when i load my world i get this crash
http://pastebin.com/VCpu2EVG

Hmm - stack trace is Mekanism - don't think that has anything to do with EnderIO.

i updated it to tthe latest still happening i even removed the conduits in mcedit now showing another coordinates

Get rid of optifine, This is not an EIO issue, the crash log doesnt even mention it,

i did remove it and the problem still there http://pastebin.com/RCqNdcL8
if its not supported that doesnt mean its the problem i have been using optifine since i started my world and without it my frames will be 0.5 fps, anyway the problem happened after i updates some mods

i found the problem it was after i updated forge to the latest and the cause of the problem is Fluid changes introduced with latest Forge


Make length, etc. members?

In Haskell's Data.Foldable, a lot of the utility functions are class members, allowing for instances to define more efficient implementations. What do people think of potentially doing this here?

Until we have default member implementations we don't want to do this, as implementing 20+ functions rather than 2 or 3 is a little unreasonable for instance-writers to be expected to deal with.


Missing parent: GO:0160007 | glutathione import into mitochondrion

GO term ID and label for which you request a new superclass

GO:0160007 | glutathione import into mitochondrion

New superclass (parent) suggested

GO:1990542 | mitochondrial transmembrane transport

Reference(s), if appropriate
PMID:nnnnnnn

Should the reasoner add this?

yes, but the logical definitions are inconsistent.
@balhoff is this flagged anywhere?

Hi @ValWood
If you want to do this: the logical definition of 'mitochondrial transmembrane transport' should be
transport
and ('has target start location' some cytosol)
and ('has target end location' some 'mitochondrial matrix')
and ('results in transport across' some 'mitochondrial membrane')
This should make GO:0160007 | glutathione import into mitochondrion a child when you re-run the reasoner.
Thanks, Pascale

I changed the logical def as described and I still don't see this term under "mitochondrial transmembrane transport"
In fact, this is ALL that is there:

Ignore, I was only looking at asserted


Add plugin system, ability to config with extra body and prompts

fixes #39

Thanks for the prompt response, will check out this later.


Receiving support?

Hi there! This isn't a issue but I didn't know where to ask!
Are you accepting donations or supports? Because may you get some extra support for Flatabulous!
I don't trying to spam you, but I want to invite you to beerpay.io, a simple platform to monetize open source projects, like Flatabulous.
I know that the open source is free, but it's okay if someone want to contribute in other way.
Thanks for this work man!

Hey, thank you for taking time out and trying to help out with money. Looks like a cool platform, and will be glad to use it, in the future. Thanks 👍


[Now playing widget] Invert swipe gesture is always enabled

Once you untick the "Invert swipe gesture" option, it appears to be ticked again if you switch to another widget settings and get back.
Also, there is no option to hardcode a player. For example, I'm listening to spotify and launching a video on youtube.. wanna stop spotify, but there is Firefox browser already on the widget, even though they are playing both at the same time.

For inverted swipe, you can force a change of it through pock's plist.


⚠ Bofrost.de has degraded performance

In a40f0d1, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1500 ms

Resolved: Bofrost.de performance has improved in b641ffa.


Project is looking for maintainers

Hey @litwisha and @FedirAlifirenko maybe You are interested in?

Hi @hellysmile. Yeah, I would like to fix some bugs.
Let's start from this.

invitation is send


The buttons of the tutorial are not aligned.

Looks amateurish on mobile.
To Reproduce
Steps to reproduce the behavior:

Go to any tutorial on the phone

Screenshots

won't fix


No map0 file

Only a maps file in directory tdata\D877F783D5D3EF8C and other random generated files.
Program fails using maps file
11:38:04 could not decrypt file 'tdata/D877F783D5D3EF8C/maps': keytype not treated: 865852196
github.com/atilaromero/telegram-desktop-decrypt/tdata/decrypted.ReadDMap

Same

The maps file is an updated version of map0 and it looks like the author didn't update the code

pc telelgram   storage_account.cpp

I have the same problem.
There is only a maps file in the folder.
Any chance to decrypt messages or contacts without Internet connection ?

Have you found a solution?


LUA error when opening map

Message: Interface/AddOns/HelpMePlay/Automations/Quests.lua:610: attempt to index field 'HMPQuestCountText' (a nil value)
Time: Thu Dec 22 04:14:50 2022
Count: 6
Stack: Interface/AddOns/HelpMePlay/Automations/Quests.lua:610: attempt to index field 'HMPQuestCountText' (a nil value)
[string "=[tsm error check]"]:1: in main chunk
[string "=(tail call)"]: ?
[string "=[C]"]: ?
[string "@Interface/AddOns/HelpMePlay/Automations/Quests.lua"]:610: in function <Interface/AddOns/HelpMePlay/Automations/Quests.lua:602>
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "=[C]"]: in function Show' [string "@Interface/FrameXML/UIParent.lua"]:2890: in function SetUIPanel'
[string "@Interface/FrameXML/UIParent.lua"]:2733: in function ShowUIPanel' [string "@Interface/FrameXML/UIParent.lua"]:2598: in function <Interface/FrameXML/UIParent.lua:2594> [string "=[C]"]: in function SetAttribute'
[string "@Interface/FrameXML/UIParent.lua"]:3196: in function ShowUIPanel' [string "@Interface/FrameXML/QuestLogOwnerMixin.lua"]:103: in function SetDisplayState'
[string "@Interface/FrameXML/QuestLogOwnerMixin.lua"]:41: in function HandleUserActionToggleSelf' [string "@Interface/AddOns/Blizzard_WorldMap/Blizzard_WorldMap.lua"]:440: in function <...rface/AddOns/Blizzard_WorldMap/Blizzard_WorldMap.lua:439> [string "=[C]"]: ? [string "=[C]"]: in function ToggleWorldMap'
[string "TOGGLEWORLDMAP"]:1: in function <[string "TOGGLEWORLDMAP"]:1>
Locals:

The feature is incompatible with Kaliel's Tracker. I have no intention of writing a workaround, so this feature will be inaccessible to players running said addon.
Are you using Kaliel's Tracker?

Nope, I only use the default blizzard quest tracker.

Getting the exact same error. I also am not using Kaliel's Tracker.
By going back to the last version of help me play i am no longer getting the error message.

Same, even with Kaliel's Tracker do not get the error in v2.06.

Fixed in caa3de5.


feat: Update Compose Builder to Support PostgreSQL as Database

closes #463

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-compose/blob/main/.github/Contributing.md
PR Checklist
Please check if your PR fulfills the following requirements:

[x] I am not introducing a breaking change (if you are, flag in conventional commit message with BREAKING CHANGE: describing the break)
[x] I have fully tested (add details below) this the new feature or bug fix (if not, why?)
[ ] I have opened a PR for the related docs change (if not, why?)

Testing Instructions

Run the following command to test EdgeX services with PostgreSQL as database from /compose-builder folder in non-secure mode
make run no-secty keeper mqtt-bus postgres

or
make run no-secty keeper mqtt-bus postgres arm64

Or secure mode
make run keeper mqtt-bus postgres

or
make run keeper mqtt-bus postgres arm64

The support-cron-scheduler service need to be in a separated file for now so that the make down and make clean commands can work without errors.


chore: Collapse form builder panels by default in preview mode

implrements issue https://github.com/shesha-io/shesha-framework/issues/2234
to Collapse form builder panels by default in preview mode and bring them back when back in edit mode

tested locally with where SidePanel react component is being used: Datatable to edit columns, form designer, Entity Configurator

https://github.com/user-attachments/assets/ce19b971-e6c8-4d9f-8d38-906ae1e873ee

Hi @teboho. This logic shouldn't be a part of the SidebarContainer, it's a generic control and it's used in different places. Please move code for hiding panels to the upper level.
Also I think that it's better to hide panels in the preview mode rather then collapse them

Thank for review @IvanIlyichev will look into it

Hi @teboho. This logic shouldn't be a part of the SidebarContainer, it's a generic control and it's used in different places. Please move code for hiding panels to the upper level. Also I think that it's better to hide panels in the preview mode rather then collapse them

Hi @IvanIlyichev. Thank you for the suggested changes, I modified the code accordingly:

Reverted the earlier commits to bring back the code to original state
Took the collapse control to the designerMainArea

Now rendering the form outside of the sidebarContainer if in preview mode (formMode !== 'designer') otherwise use the sidebarContainer like before if in 'designer' mode

Added a border top for preview mode to separate the rendered preview of the form from the designer toolbar and the rest of the upper section

https://github.com/user-attachments/assets/fb04fca7-5304-476f-806d-be2f1402185e

Hi @teboho. You created two copies of the same markup. Please minimize code duplication to avoid mistakes during code support (for instance wrap SidebarContainer with a ConditionalWrap).

Hey @IvanIlyichev, I've made use of the ConditionalWrap please review. This was great feedback, finally getting to understand why there was a need for conditional wrap react component.


Change order when listing

What do you think about an option to change the default order when listing?
It could be done in two flags, -o, --order-by to choose the column to sort, and -r, --reverse to… euh… reverse the order.

Related to #265, because I also have the same behavior than @codeinred, where the oldest mails are listed first.
I think that it appends after running mbsync. If I don't use it, new mails appears first, after a call to mbsync the ID order changes.
I really appreciate your tool, I'm in the process to replace my setup mbsync+notmuch with himalaya only. Thanks @soywod!

Related to #265, because I also have the same behavior than @codeinred, where the oldest mails are listed first.

The problem is that the sequence number does not match the date. In a regular set up, a small sequence number = an old message. I'm afraid there is not that much I can do :disappointed:. I thought about reordering messages from the rust side (instead of IMAP), but we will still not get the right messages. The best we can do is either to check if there is an option in mbsync to reverse the default order, or to wait for https://github.com/soywod/himalaya/issues/34.

It could be done in two flags, -o, --order-by to choose the column to sort, and -r, --reverse

I plan to add them with #34 :slightly_smiling_face:


[WIP] Torus create/recover PoC

Local dev environment requires Node version >=14.17.0.
Testing link
https://near-wallet-pr-2224.onrender.com/
Create account w/ Torus instructions

First recover an existing testnet account or click on this link
Now go through the account creation flow and choose 'Torus' as recovery option
On the funding option page, select 'fund with existing account' (Only the 'fund with existing account' option works right now before making changes to contract-helper.)

Import account w/ Torus instructions

Once you have created an account (or a few) with Torus, you can log out of all Wallet accounts by typing localStorage.clear() in the browser console and hitting enter.
Then navigate to /recover-account and select 'Sign in with Torus'
Expect all Torus enabled accounts to be recovered and then sent to the Wallet dashboard

Closing this for now as it's not immediately relevant anymore


Improve committee member workload overview

The committee member workload overview is not quite up to Desiree's wishes and should be improved:

In de eerste lijst staan aanvragen die ‘niet verder in behandeling’ zijn genomen; die mogen eruit.
In de eerste lijst staan volgens mij ook nooit of nog niet ingediende aanvragen (nl. nog bij supervisor); die mogen eruit.

In de tweede lijst ontbreken mensen (bijv. in de LK: ondergetekende, en Michael mag eruit, sorry Michael, Koen Leurs mag er ook uit; in de AK: ondergetekende ontbreekt, Hugo mag eruit).
 Betreft het nu het aantal ingevulde beoordelingen vanaf exact een jaar geleden? Of gaat het ook nog om lopende beoordelingen?
Kan ik ook te zien krijgen welke persoon welke aanvragen nog moet beoordelen?

The queryset is clearly not working properly ... And some extra features could be implemented.

The problems with the first list were a fairly easy solve. The initial queryset filter was just bad.
For the second list, Desiree would like to be able to set the start and end date of the period herself.
Also, this second list is now constructed by looking at all the reviewers in a chamber. This is not so great, as there are members of a chamber, who don't really do reviews (such as Michael). We should probably look at all the handled proposals of a chamber, and build up the reviewers list from there.

The second list is now constructed by looking at all the reviewers in a chamber, but the reviewers mentioned include supervisors. I would be interested to see just the members of the chamber involved in that list. Is that possible, i.e. the five members, including, me, plus Leon plus Frans.

But the first list looks great and it's also nice I can select the period for the second list!

I only need to see members and advisory members. What happens if one of the members is the supervisor in an application?

For clarity, this would be the entire QS:
       return reviewers.annotate(
            total=Count("decision", filter=base_filter),
            num_short_route=Count(
                "decision",
                filter=base_filter
                & Q(
                    decision__review__proposal__is_revision=False,
                    decision__review__short_route=True,
                ),
            ),
            num_long_route=Count(
                "decision",
                filter=base_filter
                & Q(
                    decision__review__proposal__is_revision=False,
                    decision__review__short_route=False,
                ),
            ),
            num_revision=Count(
                "decision",
                filter=base_filter & Q(decision__review__proposal__is_revision=True),
            ),
        ).exclude(total=0)

Perfect. Thank you!

Two additional requests for the second list (Workload overview of past period):

Please adjust format date from month-day-year to day-month-year
Please make the default period three months instead of one year
Thanks!

Additional request: At the moment, the upper list has all applications that still need to be reviewed by one or more people. It lists all reviewers attached to that application, independent of if they have already submitted their decision or not.  If possible, I want all reviewers that have submitted a decision to be removed from the table.


Flatten list

Write a function that takes a list with nested lists and return its flatten version.
NestedIntList = Union[int, List["NestedIntList"]]

Resolved with 0ebf30164b86117834aaecc3a0721fe524ce5d28


upgrade druid version

@Smartappli thanks for the contribution! The latest Druid version is 0.12.1, and we might release 0.12.2 in a few weeks. Would you change the Druid version to 0.12.1?

@Smartappli sorry I forgot to ask before merging. Would you fill out our CLA here (http://druid.io/community/cla.html)?

@jihoonson done ;)

@Smartappli thanks!


Add label "Status: Needs Review" when an issue is labeled "Bug"

This has a PR - #11

this should be closed as the PR has been merged


04/12/2018 03:07 : Create Pull Request for branch master -> prTesting1_2018041203

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestCon1.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Inconsistent slash in links generation from markdown ADRs to HTML pages

Reproducing:
Create some ADR with crosslinks by adr-tool (or by hands)
adr init
adr new Implement Feature1
adr new -s 2 Another Realisation of F2

We'll got
in 0002-implement-feature1.md
Superseded by [3. Another Realisation of F2](0003-another-realisation-of-f2.md)
in 0003-another-realisation-of-f2.md
Supersedes [2. Implement Feature1](0002-implement-feature1.md)
Generate docs
We'll got
correct links in structurizr/build/site/master/decisions/index.html
Implement Feature1
Another Realisation of F2

but links without slash in structurizr/build/site/master/decisions/2/index.html and in structurizr/build/site/master/decisions/3/index.html

Superseded by 3. Another Realisation of F2

and

Supersedes 2. Implement Feature1

Maybe some sort relevant to #530 and #543
Please fix.
Thanks.

Thank you for quick fix! Yes, now it works fine. Checked by running sources from IDEA with yours example and mine.


How to use containerd with crictl on Windows Server 2022

Here are the steps I tried to install containerd on Windows Server 2022.

Install Windows Features
Add-WindowsFeature Containers,Hyper-V,Hyper-V-Tools,Hyper-V-PowerShell -Restart -IncludeManagementTools

Install containerd 1.6.1
# Download containerd 1.6.1
curl.exe -LO https://github.com/containerd/containerd/releases/download/v1.6.1/containerd-1.6.1-windows-amd64.tar.gz

tar xvf containerd-1.6.1-windows-amd64.tar.gz
mkdir -force "C:\Program Files\containerd"
mv ./bin/* "C:\Program Files\containerd"
Remove-Item bin

. "C:\Program Files\containerd\containerd.exe" config default | Out-File "C:\Program Files\containerd\config.toml" -Encoding ascii

Add-MpPreference -ExclusionProcess "$Env:ProgramFiles\containerd\containerd.exe"

. "$Env:ProgramFiles\containerd\containerd.exe" --register-service

Start-Service containerd

$env:PATH = "C:\Program Files\containerd;" + $env:PATH

Configure container networking
mkdir -force "C:\Program Files\containerd\cni\bin"
mkdir -force "C:\Program Files\containerd\cni\conf"

Download windows-container-networking-cni-amd64-v0.2.0.zip file from microsoft/windows-container-networking
curl.exe -LO https://github.com/microsoft/windows-container-networking/releases/download/v0.2.0/windows-container-networking-cni-amd64-v0.2.0.zip
Expand-Archive windows-container-networking-cni-amd64-v0.2.0.zip -DestinationPath "C:\Program Files\containerd\cni\bin" -Force
Remove-Item windows-container-networking-cni-amd64-v0.2.0.zip

Creating a nat network
curl.exe -LO https://raw.githubusercontent.com/microsoft/SDN/master/Kubernetes/windows/hns.psm1
Import-Module ./hns.psm1

$subnet="<IP_ADDRESS>/16"
$gateway="<IP_ADDRESS>"
New-HNSNetwork -Type NAT -AddressPrefix $subnet -Gateway $gateway -Name "nat"

@"
{
    "cniVersion": "0.2.0",
    "name": "nat",
    "type": "nat",
    "master": "Ethernet",
    "ipam": {
        "subnet": "$subnet",
        "routes": [
            {
                "gateway": "$gateway"
            }
        ]
    },
    "capabilities": {
        "portMappings": true,
        "dns": true
    }
}
"@ | Set-Content "C:\Program Files\containerd\cni\conf\0-containerd-nat.conf" -Force

Running a container using ctr

Check Windows version
cmd /c ver

Here is my Windows Server 2022 version: 10.0.20348.587
Microsoft Windows [Version 10.0.20348.587]

Pull mcr.microsoft.com/windows/nanoserver:ltsc2022 image
ctr.exe image pull mcr.microsoft.com/windows/nanoserver:ltsc2022

Running a container
ctr.exe run --rm  mcr.microsoft.com/windows/nanoserver:ltsc2022 test cmd /c echo hello

hello

Using ctr.exe is all okay. No problem at all.

Running a Pod and Container using crictl

Install crictl tool
curl.exe -LO https://github.com/kubernetes-sigs/cri-tools/releases/download/v1.23.0/crictl-v1.23.0-windows-amd64.tar.gz
tar xvf crictl-v1.23.0-windows-amd64.tar.gz
mv crictl.exe "C:\Program Files\containerd"

Configure crictl config
mkdir -Force "$home\.crictl"

@"
runtime-endpoint: npipe://./pipe/containerd-containerd
image-endpoint: npipe://./pipe/containerd-containerd
timeout: 10
#debug: true
"@ | Set-Content "$home\.crictl\crictl.yaml" -Force

crictl.exe info

Pull Pause container image (k8s.gcr.io/pause:3.6)
crictl pull k8s.gcr.io/pause:3.6

Creating a sandbox / Pod
@"
{
    "metadata": {
        "name": "nginx-sandbox",
        "namespace": "default",
        "attempt": 1,
        "uid": "hdishd83djaidwnduwk28bcsb"
    },
    "log_directory": "/tmp",
    "linux": {
    }
}
"@ | Set-Content "pod-config.json" -Force

crictl runp .\pod-config.json

I stucked here. ( IP address is either invalid or not part of any configured subnet(s). )

time="2022-03-23T01:19:40+08:00" level=fatal msg="run pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "035006a1d4b4fd6ab8244f4fef527fc5117b6b37188b61e321f37538f8f01b78": plugin type="nat" name="nat" failed (add): error creating endpoint hcnCreateEndpoint failed in Win32: IP address is either invalid or not part of any configured subnet(s). (0x803b001e) {"Success":false,"Error":"IP address is either invalid or not part of any configured subnet(s). ","ErrorCode":2151350302} : endpoint config &{ 035006a1d4b4fd6ab8244f4fef527fc5117b6b37188b61e321f37538f8f01b78_nat 94530bee-c40a-4f25-9caf-19bbe91e748f  [] [{ 0}] { [] [] []} [{<IP_ADDRESS> <IP_ADDRESS>/0 0}]  0 {2 0}}"

I don't know how to fix the error!

Have you also created a NAT network before trying to start containers with NAT networking?
Import HNS module: https://www.powershellgallery.com/packages/HNS/0.2.4
New-HnsNetwork -Type NAT -Name nat

@daschott Please see my Creating a nat network section in my original post. I did and it created.
Get-HnsNetwork

ActivityId             : 58261574-A434-494B-BF39-A698343E225D
AdditionalParams       :
CurrentEndpointCount   : 0
Extensions             : {@{Id=E7C3B2F0-F3C5-48DF-AF2B-10FED6D72E7A; IsEnabled=False; Name=Microsoft Windows Filtering Platform},
                         @{Id=F74F241B-440F-4433-BB28-00F89EAD20D8; IsEnabled=False; Name=Microsoft Azure VFP Switch Extension},
                         @{Id=430BDADD-BAB0-41AB-A369-94B67FA5BE0A; IsEnabled=True; Name=Microsoft NDIS Capture}}
Flags                  : 8
Health                 : @{LastErrorCode=0; LastUpdateTime=132924426122016395}
ID                     : 94530BEE-C40A-4F25-9CAF-19BBE91E748F
IPv6                   : False
LayeredOn              : 490CA4AE-EB76-4F4D-831C-F6580C4934A1
MacPools               : {@{EndMacAddress=00-15-5D-5F-CF-FF; StartMacAddress=00-15-5D-5F-C0-00}}
MaxConcurrentEndpoints : 0
Name                   : nat
NatName                : NAT9EB86A6C-8942-4B54-8F11-135F3849E2D5
Policies               : {@{Type=VLAN; VLAN=1}}
State                  : 1
Subnets                : {@{AdditionalParams=; AddressPrefix=<IP_ADDRESS>/16; Flags=0; GatewayAddress=<IP_ADDRESS>; Health=;
                         ID=AB6315D3-D415-4C69-9C2C-0E07E5995146; IpSubnets=System.Object[]; ObjectType=5; Policies=System.Object[]; State=0}}
TotalEndpoints         : 0
Type                   : NAT
Version                :<PHONE_NUMBER>1
Resources              : @{AdditionalParams=; AllocationOrder=2; Allocators=System.Object[]; CompartmentOperationTime=0; Flags=0; Health=;
                         ID=58261574-A434-494B-BF39-A698343E225D; PortOperationTime=0; State=1; SwitchOperationTime=0; VfpOperationTime=0;
                         parentId=67604C6B-D935-4FC5-8A40-282135C362DA}

I experience the same with ctr. Installing on both Windows Server 2019 and 2022 with the same steps:
curl.exe -LO "https://github.com/lippertmarkus/containerd-installer/releases/download/v0.0.3/containerd-installer.exe"
.\containerd-installer.exe --debug  --containerd-version "1.6.1"
[Environment]::SetEnvironmentVariable("Path", "$($env:path);C:\Program Files\containerd", [System.EnvironmentVariableTarget]::Machine)
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine")

Afterwards running a container on Windows Server 2019 works:
ctr i pull mcr.microsoft.com/windows/nanoserver:1809
ctr run --cni -rm mcr.microsoft.com/windows/nanoserver:1809 test curl.exe https://example.org

{"level":"debug","msg":"[cni-net] Plugin wcn-net version .","time":"2022-03-22T18:04:26Z"}
{"level":"debug","msg":"[net] Network interface: {Index:4 MTU:1500 Name:Ethernet HardwareAddr:00:22:48:5c:62:0f Flags:up|broadcast|multicast} with IP addresses: [fe80::e4be:a00:f1d5:266a/64 <IP_ADDRESS>/24]","time":"2022-03-22T18:04:26Z"}
{"level":"debug","msg":"[net] Network interface: {Index:1 MTU:-1 Name:Loopback Pseudo-Interface 1 HardwareAddr: Flags:up|loopback|multicast} with IP addresses: [::1/128 <IP_ADDRESS>/8]","time":"2022-03-22T18:04:26Z"}
{"level":"debug","msg":"[net] Network interface: {Index:13 MTU:1500 Name:vEthernet (nat) HardwareAddr:00:15:5d:bd:ee:5f Flags:up|broadcast|multicast} with IP addresses: [fe80::a14f:e9fd:1b46:c580/64 <IP_ADDRESS>/20]","time":"2022-03-22T18:04:26Z"}
{"level":"debug","msg":"[cni-net] Plugin started.","time":"2022-03-22T18:04:26Z"}
{"level":"debug","msg":"[cni-net] Processing ADD command with args {ContainerID:default-test Netns:ce201286-3dd9-4974-a8e4-108d3b104548 IfName:eth0 Args: Path:/opt/cni/bin}.","time":"2022-03-22T18:04:26Z"}
{"level":"debug","msg":"[cni-net] Read network configuration \u0026{CniVersion:0.2.0 Name:nat Type:nat Ipam:{Type: Environment: AddrSpace: Subnet:<IP_ADDRESS>/20 Address: QueryInterval: Routes:[{Dst:{IP:\u003cnil\u003e Mask:\u003cnil\u003e} GW:\u003cnil\u003e}]} DNS:{Nameservers:[] Domain: Search:[] Options:[]} OptionalFlags:{LocalRoutePortMapping:false AllowAclPortMapping:false} RuntimeConfig:{PortMappings:[] DNS:{Servers:[] Searches:[] Options:[]}} AdditionalArgs:[]}.","time":"2022-03-22T18:04:26Z"}
{"level":"debug","msg":"Parsing port mappings from []","time":"2022-03-22T18:04:26Z"}
{"level":"debug","msg":"[cni-net] Found network 407bddba-9e12-4191-b584-df13a6380a5d with subnet [{{<IP_ADDRESS> fffff000} <IP_ADDRESS> []}].","time":"2022-03-22T18:04:26Z"}
{"level":"debug","msg":"[cni-net] Creating a new Endpoint","time":"2022-03-22T18:04:26Z"}
{"level":"debug","msg":"hcn::HostComputeEndpoint::Create id=","time":"2022-03-22T18:04:26Z"}
{"level":"debug","msg":"hcn::HostComputeEndpoint::Create JSON: {\"Name\":\"default-test_nat\",\"HostComputeNetwork\":\"407bddba-9e12-4191-b584-df13a6380a5d\",\"IpConfigurations\":[{}],\"Dns\":{},\"Routes\":[{\"NextHop\":\"<IP_ADDRESS>\",\"DestinationPrefix\":\"<IP_ADDRESS>/0\"}],\"SchemaVersion\":{\"Major\":2,\"Minor\":0}}","time":"2022-03-22T18:04:26Z"}
{"level":"debug","msg":"hcn::HostComputeEndpoint::AddNamespaceEndpoint id=13615a0d-5346-4ab7-b13f-87a38fd96ca0","time":"2022-03-22T18:04:26Z"}
{"level":"debug","msg":"hcn::HostComputeNamespace::ModifyNamespaceSettings id=ce201286-3dd9-4974-a8e4-108d3b104548","time":"2022-03-22T18:04:26Z"}
{"level":"debug","msg":"[cni-net] result: IP4:{IP:{IP:<IP_ADDRESS> Mask:fffff000} Gateway:<IP_ADDRESS> Routes:[]}, DNS:{Nameservers:[] Domain: Search:[] Options:[]}","time":"2022-03-22T18:04:26Z"}
{"level":"debug","msg":"[cni-net] Plugin stopped.","time":"2022-03-22T18:04:26Z"}

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1256  100  1256    0     0   1653      0 --:--:-- --:--:-- --:--:--  1656

{"level":"debug","msg":"[cni-net] Plugin wcn-net version .","time":"2022-03-22T18:04:29Z"}
{"level":"debug","msg":"[net] Network interface: {Index:4 MTU:1500 Name:Ethernet HardwareAddr:00:22:48:5c:62:0f Flags:up|broadcast|multicast} with IP addresses: [fe80::e4be:a00:f1d5:266a/64 <IP_ADDRESS>/24]","time":"2022-03-22T18:04:29Z"}
{"level":"debug","msg":"[net] Network interface: {Index:1 MTU:-1 Name:Loopback Pseudo-Interface 1 HardwareAddr: Flags:up|loopback|multicast} with IP addresses: [::1/128 <IP_ADDRESS>/8]","time":"2022-03-22T18:04:29Z"}
{"level":"debug","msg":"[net] Network interface: {Index:13 MTU:1500 Name:vEthernet (nat) HardwareAddr:00:15:5d:bd:ee:5f Flags:up|broadcast|multicast} with IP addresses: [fe80::a14f:e9fd:1b46:c580/64 <IP_ADDRESS>/20]","time":"2022-03-22T18:04:29Z"}
{"level":"debug","msg":"[cni-net] Plugin started.","time":"2022-03-22T18:04:29Z"}
{"level":"debug","msg":"[cni-net] Processing DEL command with args {ContainerID:default-test Netns: IfName:eth0 Args: Path:/opt/cni/bin}","time":"2022-03-22T18:04:29Z"}
{"level":"debug","msg":"[cni-net] Read network configuration \u0026{CniVersion:0.2.0 Name:nat Type:nat Ipam:{Type: Environment: AddrSpace: Subnet:<IP_ADDRESS>/20 Address: QueryInterval: Routes:[{Dst:{IP:\u003cnil\u003e Mask:\u003cnil\u003e} GW:\u003cnil\u003e}]} DNS:{Nameservers:[] Domain: Search:[] Options:[]} OptionalFlags:{LocalRoutePortMapping:false AllowAclPortMapping:false} RuntimeConfig:{PortMappings:[] DNS:{Servers:[] Searches:[] Options:[]}} AdditionalArgs:[]}.","time":"2022-03-22T18:04:29Z"}
{"level":"debug","msg":"Parsing port mappings from []","time":"2022-03-22T18:04:29Z"}
{"level":"debug","msg":"hcn::HostComputeNamespace::RemoveNamespaceEndpoint id=13615a0d-5346-4ab7-b13f-87a38fd96ca0","time":"2022-03-22T18:04:29Z"}
{"level":"debug","msg":"hcn::HostComputeNamespace::ModifyNamespaceSettings id=ce201286-3dd9-4974-a8e4-108d3b104548","time":"2022-03-22T18:04:29Z"}
{"level":"debug","msg":"hcn::HostComputeEndpoint::Delete id=13615a0d-5346-4ab7-b13f-87a38fd96ca0","time":"2022-03-22T18:04:29Z"}
{"level":"debug","msg":"[cni-net] DEL succeeded.","time":"2022-03-22T18:04:29Z"}
{"level":"debug","msg":"[cni-net] Plugin stopped.","time":"2022-03-22T18:04:29Z"}

And on Windows Server 2022 it doesn't:
ctr i pull mcr.microsoft.com/windows/nanoserver:ltsc2022
ctr run --cni -rm mcr.microsoft.com/windows/nanoserver:ltsc2022 test curl.exe https://example.org

{"level":"debug","msg":"[cni-net] Plugin wcn-net version .","time":"2022-03-22T18:31:07Z"}
{"level":"debug","msg":"[net] Network interface: {Index:5 MTU:1500 Name:Ethernet HardwareAddr:60:45:bd:8b:6d:c2 Flags:up|broadcast|multicast} with IP addresses: [fe80::31b3:7fb1:5fe5:36ed/64 <IP_ADDRESS>/24]","time":"2022-03-22T18:31:07Z"}
{"level":"debug","msg":"[net] Network interface: {Index:1 MTU:-1 Name:Loopback Pseudo-Interface 1 HardwareAddr: Flags:up|loopback|multicast} with IP addresses: [::1/128 <IP_ADDRESS>/8]","time":"2022-03-22T18:31:07Z"}
{"level":"debug","msg":"[net] Network interface: {Index:13 MTU:1500 Name:vEthernet (nat) HardwareAddr:00:15:5d:7d:96:13 Flags:up|broadcast|multicast} with IP addresses: [fe80::f542:9c67:7f4:d2fc/64 <IP_ADDRESS>/20]","time":"2022-03-22T18:31:07Z"}
{"level":"debug","msg":"[cni-net] Plugin started.","time":"2022-03-22T18:31:07Z"}
{"level":"debug","msg":"[cni-net] Processing DEL command with args {ContainerID:default-test Netns: IfName:eth0 Args: Path:/opt/cni/bin}","time":"2022-03-22T18:31:07Z"}
{"level":"debug","msg":"[cni-net] Read network configuration \u0026{CniVersion:0.2.0 Name:nat Type:nat Ipam:{Type: Environment: AddrSpace: Subnet:<IP_ADDRESS>/20 Address: QueryInterval: Routes:[{Dst:{IP:\u003cnil\u003e Mask:\u003cnil\u003e} GW:\u003cnil\u003e}]} DNS:{Nameservers:[] Domain: Search:[] Options:[]} OptionalFlags:{LocalRoutePortMapping:false AllowAclPortMapping:false} RuntimeConfig:{PortMappings:[] DNS:{Servers:[] Searches:[] Options:[]}} AdditionalArgs:[]}.","time":"2022-03-22T18:31:07Z"}
{"level":"debug","msg":"Parsing port mappings from []","time":"2022-03-22T18:31:07Z"}
{"level":"debug","msg":"[cni-net] Endpoint was not found error, err:Endpoint Id  not found","time":"2022-03-22T18:31:07Z"}
{"level":"debug","msg":"[cni-net] Plugin stopped.","time":"2022-03-22T18:31:07Z"}
ctr: plugin type="nat" name="nat" failed (add): error creating endpoint hcnCreateEndpoint failed in Win32: IP address is either invalid or not part of any configured subnet(s). (0x803b001e) {"Success":false,"Error":"IP address is either invalid or not part of any configured subnet(s). ","ErrorCode":2151350302} : endpoint config &{ default-test_nat d41bb839-10a8-408c-b4c3-3ffe81e53845  [] [{ 0}] { [] [] []} [{<IP_ADDRESS> <IP_ADDRESS>/0 0}]  0 {2 0}}

Without CNI it's also working on Windows Server 2022:
ctr run -rm mcr.microsoft.com/windows/nanoserver:ltsc2022 test curl.exe https://example.org

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: example.org

So I think the issue is rather somewhere in the NAT CNI plugin https://github.com/microsoft/windows-container-networking

My apologies @doggy8088 I missed that part. I am also able to reproduce this issue using Windows CNI plugins release v0.2.0.
There is a change missing because the binaries in v0.2.0 release are outdated. There needs to be a new CNI release made that includes needed changes that correct this behavior for Windows Server 2022 support.
cc @Keith-Mange
In the meantime, can you try to build the CNI plugins yourself? Alternatively, I can also share the compiled binaries with you, just let me know.

I can confirm it works when compiling the CNI plugins by myself.

@daschott
After re-compile nat CNI plugins, it works now. But...

Creating a sandbox / Pod
@"
{
    "metadata": {
        "name": "pause-sandbox",
        "namespace": "default",
        "attempt": 1,
        "uid": "hdishd83djaidwnduwk28bcsb"
    },
    "log_directory": "/tmp",
    "linux": {
    }
}
"@ | Set-Content "pod-config.json" -Force

$POD_ID=(crictl runp .\pod-config.json)

It works now.

Creating container
@"
{
  "metadata": {
      "name": "k8s.gcr.io/pause:3.6"
  },
  "image":{
      "image": "k8s.gcr.io/pause:3.6"
  },
  "command": [
      ""
  ],
  "log_path":"pause.0.log",
  "linux": {
  }
}
"@ | Set-Content "container-config.json" -Force

$CONTAINER_ID=(crictl create $POD_ID .\container-config.json .\pod-config.json)

It works here too.

Start the container
crictl start $CONTAINER_ID

time="2022-03-23T09:22:30+08:00" level=fatal msg="starting the container "fd178939d36a209bf894bfcee8664fb25a7db4ddf01380e242fe12ad85f352b0": rpc error: code = Unknown desc = failed to create containerd task: failed to create container loggers: failed to create and open log file: The system cannot find the path specified."

I stucked here again.

Thank you for confirming. At this point, I think this is a different issue. To cover the original CNI issue, could you file a new issue in https://github.com/microsoft/windows-container-networking/ requesting a new CNI release?
To cover the next issue, could @cwilhit can you add the relevant CRI expects here to investigate? The CNI issue should be resolved with updated plugins @doggy8088 is currently using.

@doggy8088 you specified a log_directory in your pod config but that directory doesn't exist. You need to create it:
mkdir C:\tmp

@lippertmarkus After I created the C:\tmp folder, the log file pause.0.log is generated after I started the container. Thanks!
But I still stuck at this issue:
time="2022-03-23T19:14:32+08:00" level=fatal msg="starting the container \"34234d60deb6babf29594f257e5bb7b67f4aadbf2a8b742a66198086c2c57bf0\": rpc error: code = Unknown desc = failed to start containerd task \"34234d60deb6babf29594f257e5bb7b67f4aadbf2a8b742a66198086c2c57bf0\": hcs::System::CreateProcess 34234d60deb6babf29594f257e5bb7b67f4aadbf2a8b742a66198086c2c57bf0: The parameter is incorrect.: unknown"

Do you have any idea what going on?

@doggy8088 your pod/container specs are tailored to Linux. Can you try the ones here (with ltsc2022 image instead): https://lippertmarkus.com/2022/01/22/containerd-ctr-windows/#running-containers-with-crictl
Those did work for me.

@lippertmarkus It works for me too. Thank you so much! 😊

Hi All
PS C:\> containerd.exe -v
containerd github.com/containerd/containerd v1.6.6 10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1

I downloaded https://github.com/microsoft/windows-container-networking/releases/tag/v0.3.0 and resolved the path https://github.com/microsoft/windows-container-networking/issues/70 , --cni is work. ( Thanks, @lippertmarkus  )
PS C:\> ctr run --cni --rm mcr.microsoft.com/windows/nanoserver:ltsc2022 test ipconfig

Windows IP Configuration

Ethernet adapter vEthernet (default-test_nat):

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::c59d:f941:c0c6:74cb%17
   IPv4 Address. . . . . . . . . . . : <IP_ADDRESS>
   Subnet Mask . . . . . . . . . . . : <IP_ADDRESS>
   Default Gateway . . . . . . . . . : <IP_ADDRESS>

setup crictl from @doggy8088  blog:
PS C:\> crictl -v
crictl version v1.24.1

crictl info
PS C:\> crictl info
{
  "status": {
    "conditions": [
      {
        "type": "RuntimeReady",
        "status": true,
        "reason": "",
        "message": ""
      },
      {
        "type": "NetworkReady",
        "status": true,
        "reason": "",
        "message": ""
      }
    ]
  },
  "cniconfig": {
    "PluginDirs": [
      "C:\\Program Files\\containerd\\cni\\bin"
    ],
    "PluginConfDir": "C:\\Program Files\\containerd\\cni\\conf",
    "PluginMaxConfNum": 1,
    "Prefix": "eth",
    "Networks": [
      {
        "Config": {
          "Name": "nat",
          "CNIVersion": "0.2.0",
          "Plugins": [
            {
              "Network": {
                "cniVersion": "0.2.0",
                "name": "nat",
                "type": "nat",
                "capabilities": {
                  "dns": true,
                  "portMappings": true
                },
                "ipam": {},
                "dns": {}
              },
              "Source": "{\"capabilities\":{\"dns\":true,\"portMappings\":true},\"cniVersion\":\"0.2.0\",\"ipam\":{\"routes\":[{\"gateway\":\"<IP_ADDRESS>\"}],\"subnet\":\"<IP_ADDRESS>/20\"},\"master\":\"Ethernet\",\"name\":\"nat\",\"type\":\"nat\"}"
            }
          ],
          "Source": "{\"cniVersion\":\"0.2.0\",\"name\":\"nat\",\"plugins\":[{\"capabilities\":{\"dns\":true,\"portMappings\":true},\"cniVersion\":\"0.2.0\",\"ipam\":{\"routes\":[{\"gateway\":\"<IP_ADDRESS>\"}],\"subnet\":\"<IP_ADDRESS>/20\"},\"master\":\"Ethernet\",\"name\":\"nat\",\"type\":\"nat\"}]}"
        },
        "IFName": "eth0"
      }
    ]
  },
  "config": {
    "containerd": {
      "snapshotter": "windows",
      "defaultRuntimeName": "runhcs-wcow-process",
      "defaultRuntime": {
        "runtimeType": "",
        "runtimePath": "",
        "runtimeEngine": "",
        "PodAnnotations": [],
        "ContainerAnnotations": [],
        "runtimeRoot": "",
        "options": {},
        "privileged_without_host_devices": false,
        "baseRuntimeSpec": "",
        "cniConfDir": "",
        "cniMaxConfNum": 0
      },
      "untrustedWorkloadRuntime": {
        "runtimeType": "",
        "runtimePath": "",
        "runtimeEngine": "",
        "PodAnnotations": [],
        "ContainerAnnotations": [],
        "runtimeRoot": "",
        "options": {},
        "privileged_without_host_devices": false,
        "baseRuntimeSpec": "",
        "cniConfDir": "",
        "cniMaxConfNum": 0
      },
      "runtimes": {
        "runhcs-wcow-process": {
          "runtimeType": "io.containerd.runhcs.v1",
          "runtimePath": "",
          "runtimeEngine": "",
          "PodAnnotations": [],
          "ContainerAnnotations": [],
          "runtimeRoot": "",
          "options": {},
          "privileged_without_host_devices": false,
          "baseRuntimeSpec": "",
          "cniConfDir": "",
          "cniMaxConfNum": 0
        }
      },
      "noPivot": false,
      "disableSnapshotAnnotations": false,
      "discardUnpackedLayers": false,
      "ignoreRdtNotEnabledErrors": false
    },
    "cni": {
      "binDir": "C:\\Program Files\\containerd\\cni\\bin",
      "confDir": "C:\\Program Files\\containerd\\cni\\conf",
      "maxConfNum": 1,
      "confTemplate": "",
      "ipPref": ""
    },
    "registry": {
      "configPath": "",
      "mirrors": {},
      "configs": {},
      "auths": {},
      "headers": {
        "User-Agent": [
          "containerd/v1.6.6"
        ]
      }
    },
    "imageDecryption": {
      "keyModel": "node"
    },
    "disableTCPService": true,
    "streamServerAddress": "<IP_ADDRESS>",
    "streamServerPort": "0",
    "streamIdleTimeout": "4h0m0s",
    "enableSelinux": false,
    "selinuxCategoryRange": 0,
    "sandboxImage": "k8s.gcr.io/pause:3.6",
    "statsCollectPeriod": 10,
    "systemdCgroup": false,
    "enableTLSStreaming": false,
    "x509KeyPairStreaming": {
      "tlsCertFile": "",
      "tlsKeyFile": ""
    },
    "maxContainerLogSize": 16384,
    "disableCgroup": false,
    "disableApparmor": false,
    "restrictOOMScoreAdj": false,
    "maxConcurrentDownloads": 3,
    "disableProcMount": false,
    "unsetSeccompProfile": "",
    "tolerateMissingHugetlbController": false,
    "disableHugetlbController": false,
    "device_ownership_from_security_context": false,
    "ignoreImageDefinedVolumes": false,
    "netnsMountsUnderStateDir": false,
    "enableUnprivilegedPorts": false,
    "enableUnprivilegedICMP": false,
    "containerdRootDir": "C:\\ProgramData\\containerd\\root",
    "containerdEndpoint": "\\\\.\\pipe\\containerd-containerd",
    "rootDir": "C:\\ProgramData\\containerd\\root\\io.containerd.grpc.v1.cri",
    "stateDir": "C:\\ProgramData\\containerd\\state\\io.containerd.grpc.v1.cri"
  },
  "golang": "go1.17.11",
  "lastCNILoadStatus": "OK",
  "lastCNILoadStatus.default": "OK"
}

PS C:\> crictl pull hello-world:nanoserver-ltsc2022
Image is up to date for sha256:c764b8ebd864571db3689163cd960f3631acafa81bb1f0d81dc629cc738994a3

Until the create Pod error:
PS C:\PodConf> $POD_ID=(crictl runp .\pod-config.json)
E0718 08:13:56.836281    3080 remote_runtime.go:201] "RunPodSandbox from runtime service failed" err="rpc error: code = DeadlineExceeded desc = context deadline exceeded"
time="2022-07-18T08:13:56Z" level=fatal msg="run pod sandbox: rpc error: code = DeadlineExceeded desc = context deadline exceeded"

I repeated the test with Will and Markus's blog posts, but still the same error.

seems like you didn't set the runtime endpoint correctly:
$env:CONTAINER_RUNTIME_ENDPOINT="npipe:////./pipe/containerd-containerd"

Script from your blog:
PS C:\PodConf> $env:CONTAINER_RUNTIME_ENDPOINT="npipe:////./pipe/containerd-containerd"
PS C:\PodConf> crictl pull mcr.microsoft.com/windows/nanoserver:ltsc2022
Image is up to date for sha256:e9a98dadcd0872c19ade490b9ed424af502bb022974bbf9029d6347e0c867652
PS C:\PodConf> cat .\pod.json
{
    "metadata": {
      "name": "mycont-sandbox",
      "namespace": "default",
      "uid": "hdishd83djaidwnduwk28basb"
    }
}
PS C:\PodConf> cat .\container.json
{
    "metadata": {
        "name": "mycont"
    },
    "image":{
        "image": "mcr.microsoft.com/windows/nanoserver:ltsc2022"
    },
    "command": ["cmd", "/c", "ping -t <IP_ADDRESS>"]
  }
PS C:\PodConf> $POD_ID=(crictl runp .\pod.json)
E0719 02:34:28.959978    4100 remote_runtime.go:201] "RunPodSandbox from runtime service failed" err="rpc error: code = DeadlineExceeded desc = context deadline exceeded"
time="2022-07-19T02:34:28Z" level=fatal msg="run pod sandbox: rpc error: code = DeadlineExceeded desc = context deadline exceeded"

screen shot

After running all windows configuration here, we got this error , on kube-proxy for windows, I am using flannel
error while dialing open \\.\pipe\rancher_wins: The system cannot find the file specified."
can someonw help here please


Update (android_alarm_manager_plus): Bump targetSDK to 30, update Android related dependencies

Description
Found out that plus plugins use quite a lot of outdated Android dependencies or some config properties, which are deprecated already. As an Android dev decided to go update both plugin and example app Android parts to latest versions of dependencies.
Both plugin and example won't use Jetifier anymore, which should improve build times.
Additionally, bumped target and compile SDKs to 30 (Android 11). Didn't bump to 31 (Android 12) because it has a behavior change requiring additional permission from the user. I believe such change should be in a separate PR.
My plan is to go over other Android projects in Plus plugins and update their dependencies as well to have them up to date.
Related Issues
Didn't find anything related to possible issues caused by outdated dependencies here.
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
[ ] All existing and new tests are passing.
[x] I updated/added relevant documentation (doc comments with ///).
[ ] The analyzer (flutter analyze) does not report any problems on my PR.
[x] I read and followed the Flutter Style Guide.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
[x] No, this is not a breaking change.

I am not sure about the strategy for handling CHANGELOG file. Should contributors add each change as a new version with one new version bump?

I am not sure about the strategy for handling CHANGELOG file. Should contributors add each change as a new version with one new version bump?

I have the same question, since the Contributor Guide (https://github.com/google/charts/issues/678#issuecomment-917855303) says both:

Before opening a Pull-Request, please increase the build number in the pubspec.yaml and create a new entry in the CHANGELOG.md describing the change. This will help us speed-up the release process for the provided fix or feature.

Changelogs and version updates are automatically updated by a project maintainer (via Melos). The new version is automatically generated via the commit types and changelogs via the commit messages.

Changelogs and version updates are automatically updated by a project maintainer (via Melos). The new version is automatically generated via the commit types and changelogs via the commit messages.

Yes, this is not correct. PRs should contain the changes in the CHANGELOG and bump the version in the pubspec.yaml.
I will modify the document.

@vbuberen the package has been upgraded to v2.0.0. Please merge main back into your branch and update the pubspec version accordingly. Thanks!

Since 2.0.0 isn't released yet I added mention of my changes to 2.0.0 as well and merged latest main changes.

Since 2.0.0 isn't released yet I added mention of my changes to 2.0.0 as well and merged latest main changes.

It IS released! https://pub.dev/packages/android_alarm_manager_plus/versions/2.0.0

Added

merged and released, thanks!


Truly a forward looking application. Feature request: Alpha layer.

Hello.
I admire you approach towards helping the graphic sector within Frontend Development.
Wonder if the next great step for your 'ImageTracerJS', could be to implement a 'Pick layer as Alpha' for the user?
The use of PNG's with alpha layers is highly valued (for me at least), and having an image that can be used as - for instance - a texture of sorts, that brings new levels of professional options -> while seeking solutions that renders with a High End vector-based touch :-)
I hope you will consider my Feature request, with a positive mindset.
//br Thomas Due, Denmark

Hi Thomas,
If you think about operations on polygons, like alpha-masking, that would be a bit too complex and not really in the scope to include in this project.
If you want to change a color (the background) to transparency, you can change the color palette after tracing, before rendering.
You can get a tracedata object from ImageTracer.imageToTracedata or ImageTracer.imagedataToTracedata, manipulate the palette, for example:
tracedata.palette[1] = { r:0, g:0, b:0, a:0 };

then render with svgstr = ImageTracer.getsvgstring( tracedata, options );
So it's rather easy to set colors to transparency in the output. But what about the input? It would be possible to select pixels that are similar to a specific color and set them transparent. But I think tracing these would have the same result as changing palette after tracing.
Please reply whether these answer your question or not! :)
Full example:
<!DOCTYPE html>

<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<meta charset="utf-8">

		Please enable JavaScript!

I hope these helped. Feel free to reopen the Issue if you have more questions!

Yes, forgot to answer ... my silence was a passive 'ok I can use this'

thanks


Encapsulate SSM Commands into a Utility Class for Reusability

Description:
The StepDefinitions.kt file currently includes SSM commands for the following tasks:

Execute a ping from host A to host B.
Wait until the command completes (success, failure, or timeout).
Check the output of the command.

To improve code organisation and reusability, these steps should be encapsulated into a utility class called Ssm, similar to the existing Exec utility class. This will allow for more flexible handling of SSM commands beyond ping operations.
The signature of the exec method could be structured as follows:
fun exec(instanceId: String, command: String, timeoutSeconds: Long): String {
    // Execute the command and return the output

    return "Command output"
}

Currently, StepDefinitions.kt only handles ping commands, but the new utility class will allow the execution of any SSM command, enabling more complex test automation scenarios.
For more information on potential use cases and future capabilities, refer to the use-cases.md file in the project repository.
Tasks:

Create an Ssm utility class.
Move existing SSM command logic (ping) from StepDefinitions.kt to the new utility class.
Implement the exec method in Ssm for reusable command execution.
Update test cases and scenarios as needed.

https://github.com/crederauk/infra-guard-aws/pull/8


Tanks ignore "filtering" fluid arguments

Your fluid tanks (tested with the "Fluid Tank" block) don't seem to respect the fluidstack fluid part of IFluidHandler.drain(side, FluidStack, doDrain). This is a problem for filtered extration pipes (specifically BuildCraft emerald fluid pipes) as they pass in the fluid that they want to extract. I think you can fix this by changing https://github.com/joshiejack/Mariculture/blob/1.7.10-1.3.0/src/main/java/mariculture/core/tile/TileTankBlock.java#L92 something along the lines of this:
@Override
public FluidStack drain(ForgeDirection from, FluidStack resource, boolean doDrain) {
    if (resource == null) {
        // BuildCraft takes this as "The return must be equal to the given argument" so it just returns null
        // Feel free to disagree with that though, and take it for "anything"
        return null;
    }
    if (resource.isFluidEqual(tank.getFluid())) {
        return drain(from, resource.amount, doDrain);
    }
    return null;
}

You may also want to do the same for canDrain but BuildCraft dosn't use that method so it won't change this particular situation if you do so.
I tested this with version <IP_ADDRESS>a, however this seems to still be the case in https://github.com/joshiejack/Mariculture/blob/1.7.10-1.3.0/src/main/java/mariculture/core/tile/TileTankBlock.java#L92.
(This was reported to us in the BC IRC chat by Sungak)

Out of interest, why was this closed? Is 1.7.10 not being maintained or was this invalid?

I'm not working on 1.7.10 anymore. I was just closing everything, that was related to that. (Except that one where other people are discussing/pr'ing). I'm happy to accept PR's. But I'm not working on it myself.

I'm guessing someone is "cleaning up" for some reason?


VS Code hitting breakpoints that don't exist

Issue Type: Bug
I'm running on ubuntu 18.04 LTS. I have the latest version of VS Code
Edit: I'm amending this issue. Breakpoints were in my breakpoint list even though I never set them. They were not appearing on the left margin though which is why i thought they weren't set. Setting and unsetting via the left margin did not clear them. I had to go to my breakpoints list and clear them that way.

Exit VS Code to be sure it's not screwing up on this instance
Checkout source from https://github.com/codewitch-honey-crisis/JSON-CPP
Go to the project directory
Do " ./run.sh" to guarantee rebuilt binary and matches source
Do "code ."
Hit Ctrl+F5 and watch as it starts a debugging session even though you told it not to (separate issue, also annoying)
Watch as it breaks on places where there is no breakpoint
Reinstall code just to be sure, repeat, watch it do it again

VS Code version: Code 1.52.1 (ea3859d4ba2f3e577a159bc91e3074c5d85c0523, 2020-12-16T16:32:10.090Z)
OS version: Linux x64 5.4.0-53-generic

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz (4 x 3137)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offopengl: enabled_onprotected_video_decode: unavailable_offrasterization: disabled_softwareskia_renderer: enabled_onvideo_decode: unavailable_offvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
1, 1, 1

Memory (System)
7.73GB (0.38GB free)

Process Argv
. --no-sandbox --crash-reporter-id 22ca02d3-1c91-4562-bfee-cbb0f8aa7d1e

Screen Reader
no

VM
0%

DESKTOP_SESSION
ubuntu

XDG_CURRENT_DESKTOP
Unity

XDG_SESSION_DESKTOP
ubuntu

XDG_SESSION_TYPE
x11

Extensions (3)

Extension
Author (truncated)
Version

vscode-pull-request-github
Git
0.22.0

cpptools
ms-
1.1.3

platformio-ide
pla
2.2.1

A/B Experiments
vsliv368:30146709
vsreu685:30147344
openlogontheside:30221877
python763:30178808
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
python504:30227505
vswsl492cf:30211402
wsl2prompt:30224612
pythonvsdeb440cf:30237828
unusedpromptcf:30224611
folderexplorercf:30224615
openfilemenucf:30224648
pythonvsded773:30236629
vsjup459cf:30237188

/extCpp


Add counter

What do these changes do?

Are there changes in behavior for the user?

Related issue number

Checklist

[ ] I think the code is well written
[ ] Unit tests for the changes exist
[ ] Documentation reflects the changes

Hello @traff! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file aiohttp/parsers.py:

Line 532:17: W292 no newline at end of file


PIL UserWarning: Truncated File Read

Hey, peter I have been getting this error lately while using eco assist can you help me fix this.

@Anujkrishna12 Looks like there is a problem with a truncated file. Can you test something for me?

Navigate to your EcoAssist_files folder. You can find where it is located here.
Open EcoAssist/EcoAssist_GUI.py with a text editor like Notepad or Visual Studio Code.
Add the following two lines to line 36

from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True

Save the file and try again.

@Anujkrishna12 Looks like there is a problem with a truncated file. Can you test something for me?

Navigate to your EcoAssist_files folder. You can find where it is located here.
Open EcoAssist/EcoAssist_GUI.py with a text editor like Notepad or Visual Studio Code.
Add the following two lines to line 36

from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True

Save the file and try again.

Its still showing Model warning error

Can you try if the same error pops up if you test your installation?

Can you try if the same error pops up if you test your installation?

No, error did not pop in Test.

Alright, I'm going to need some more information from you. Please explain to be in detail how you got this error. Which feature did you use? Which model did you run? How can I reproduce the error? Would it be possible for you to send me some images on which this error pops up? If so, you can send it to<EMAIL_ADDRESS>

For other users: the images were corrupted and that's why it gave out warnings. Corrupt JPEG data: premature end of data segment.


uiua: 0.0.18 -> 0.0.19

Description of changes
Changelog: https://github.com/uiua-lang/uiua/releases/tag/0.0.19

Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

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

1 package built:

uiua


Hover plugin

Griddle major version
1.3.0
Changes proposed in this pull request
Added a plugin that provide each Cell with hoveredRowKey property which is equal to griddleKey of hovered row.
Why these changes are made
Don't know if this repo is a proper place to contribute plugins (at least I see plugins directory).
We use it to show toolbar for records in rows (see storybook demo).
Are there tests?
Storybook story only.

@dahlbyk Any news on merging this one?

@yoursdearboy Any news on addressing @dahlbyk's comments? 🙂

@MichaelDeBoey honestly, I would just copy the relevant bits into your own plugin. There's not all that much to wiring up row events.

@dahlbyk Yeah I had a few problems doing so, so was hoping the plugin could help 😕

Glad to help as time allows


More testsystems

Adds

Intel i9-13900H   (Thinkpad P1 Gen6)
MPCDF Raven compute node
MPCDF Viper compute node

Raven and Viper login nodes seem to use the same hardware as the compute nodes. (Should I add them too, just in case?)

Raven and Viper login nodes seem to use the same hardware as the compute nodes. (Should I add them too, just in case?)

If they have the same hardware it doesn't make sense.

Can you rename Intel_i9-13900H → Intel_i9_13900H for consistency? Will merge afterwards.

Can you rename the Intel_i9-13900H folder → Intel_i9_13900H

Whoops, that was a typo - fixed. :-)

@carstenbauer Would you like another test system with 2x AMD EPYC 9654 96-Core , or is that CPU type covered already?

Would you like another test system with 2x AMD EPYC 9654 96-Core , or is that CPU type covered already?

Sure, why not. I don't think it's covered yet.

Sure, why not. I don't think it's covered yet.

Ok, I'll add it to this PR.

How should I name it (it's the node type of an institute internal cluster without a special name)? "Dual_AMD_EPYC 9654" or so?

How should I name it (it's the node type of a "nameless" institute-internal cluster)? "Dual_AMD_EPYC-9654" or so?

If you use an underscore instead of the hyphen I'm fine with this name 👍

I can also add an "NVIDIA_Jetson_Orin_NX_16GB" (mem size included because the 8GB has less cores)?

NB: The Jetson Orin NX is shown to have two sockets (lscpu says the same). I think there are two CPU "modules" on the SOC, but they (as well as the CPU cores) are all connected to the same memory, as far as I know.

That's an interesting one. Please add it and I will check/debug later.

Please add it and I will check/debug later.

Thanks - I've added it to this PR.

FYI, soon it will look like this:
julia> sysinfo()
Hostname:       NVIDIA_Jetson_Orin_NX_16GB
CPU(s):         2 x Cortex-A78AE
CPU target:     generic
Cores:          8 (8 CPU-threads)
NUMA domains:   1 (8 cores each)

∘ CPU 1:
        → 4 cores (4 CPU-threads)
        → 1 NUMA domain (shared among CPUs: 1,2)
∘ CPU 2:
        → 4 cores (4 CPU-threads)
        → 1 NUMA domain (shared among CPUs: 1,2)

FYI, now it will look like this

Oh, nice!
I guess with the coming generations of CPU + GPU + (part of the) RAM devices, this is probably not that last we've seen of such "unusual" situations ...

Speaking of more reference system configurations, @williamfgc , could you maybe add Frontier? And @luraess could probably get the Lumi configuration, right?

Reminder: The instructions for how to add test systems are here. Shouldn't take more than a few minutes.

Do you have access to a Grace-Hopper system @carstenbauer ? If not, @ludgerpaehler might be able to get that reference config.

I do have access to A LOT of systems and surely also Grace-Hopper. The thing is, I'm busy with creating/improving these packages right now and help from the community to gather the system information would be appreciated 😉

Then let me also CC @JBlaschke, he might have access to some interesting novel system configurations as well. :-)

Side comment: This "fake system" framework is much more useful and stable than I thought. I'm even running Distributed.jl tests for ThreadPinning.jl on the fake systems. And it feels great to see the test suite pass on all of those systems :) (see https://github.com/carstenbauer/ThreadPinning.jl/actions/runs/10297349876/job/28500311017#step:6:149)

Oh, that's a really neat capability!


Pretty printing errors

This PR makes Pulse use the new error doc framework in F*, and improves the two most common errors with it: 'cannot prove vprop' and 'unmatched vprop in post'. See this example from L0Crypto.fst
Trying to free something twice:

Forgetting to free something:

This is a big improvement, thanks!
While we're here, can I nit pick at a few things in the error message?

Can we remove the string "Tactic logged issue"?
Can we drop the word "vprops" from the messages?
Do we need the backticks around the assertions? e.g., A.pts_to adigest (reveal s), instead of enclosing within ` `
Can we rename "post hint" to, say, "annotated postcondition"? "post hint" is internal, implementation lingo.
Can the last message say:

Error in proving postcondition
Inferred postcondition additionally contains:
A.pts_to ...

This is a big improvement, thanks!
While we're here, can I nit pick at a few things in the error message?

Can we remove the string "Tactic logged issue"?

It's easy to remove, and I see it looks very weird here, but I added in F* to make sure that errors raised by a tactic can be clearly distinguished from normal errors. I'm having second thoughts about it now though, it's not like tactics/plugins are really adversarial, so I maybe it's fine to drop it (and maybe --debug forces it to print or something like that).

Can we drop the word "vprops" from the messages?

Done

Do we need the backticks around the assertions? e.g., A.pts_to adigest (reveal s), instead of enclosing within

Removed. I nested them 2 extra spaces deep though. WDYT?

Can we rename "post hint" to, say, "annotated postcondition"? "post hint" is internal, implementation lingo.

Can the last message say:

Error in proving postcondition
Inferred postcondition additionally contains:
A.pts_to ...

Edited. Some captures here:

Other minor ideas:

The second one could say "Did you forget to free?"
For the last one, I'm not sure the initial context+goal are so useful, at least nowadays

The second one could say "Did you forget to free?"

This looks good to me too

Updated! The initial context+goal will print if --ext pulse:initial_solver_state is "true" (set to something other than "", "false" or "0"). The env_on_err option is still available too.
I'll add the debug level toggle on a separate PR.


Bind arguments (alternative to Named arguments)

Creates bound arguments at generation time and allows replacements using a map/struct.
Alternative syntax for #66

See #104


CDN down? Source map error 404 when loading player

New to this vidstack stuff. I'm using the pure CSS version for audio and found the media player to not appear at all. Inspecting its element gave a warning:
Source map error: Error: request failed with status 404
Resource URL: https://cdn.vidstack.io/player/theme.css
Source map URL: /sm/51d48ccd6b...

Seems like something similar happened a few months ago as reported here #1232 .

Source maps don't work at the moment, not important though. If you can't get it to work then join our Discord and share your code and what you've tried so we can help.


sh: 1: yarn: not found

Attempting to install or upgrade Koel.
Remember, you can always install/upgrade manually following the guide here:
📙  https://koel.phanan.net/docs
App key exists -- skipping
JWT secret exists -- skipping
Migrating database
Data seeded -- skipping
Now to front-end stuff
├── Installing Node modules in resources/assets directory
sh: 1: yarn: not found
Oops! Koel installation or upgrade didn't finish successfully.
Please try again, or visit https://koel.phanan.net/docs for manual installation.
😥 Sorry for this. You deserve better.

Hi, thanks for reporting the error. Please note that it is known and can be ignored safely as stated in the README:

/!\ koel:init will fail at the stage where it checks front-end assets. This is known and is due to the absence of node.js and yarn. koel's frontend assets are already built in this image so this step is not necessary.

It is a bit annoying though so I've opened an issue in koel/koel for it, you can follow it here: https://github.com/koel/koel/issues/1283

While browsing the code I've discovered that there is a --no-assets option that will skip this unnecessary step. Try the following:
docker exec -it koel php artisan koel:init --no-assets

The error should not appear and the command should succeed.

Unfortunately the --no-assets flag doesn't seem to exist:

Using master as of today (260165365f612a1bf63087fceb2c66a01be27f4e)
Removing the flag and letting it fail seems to be OK, as per the readme though. Not ideal, but it's a workaround.

Strange, I cannot reproduce. The flag is correctly recognized. I've tried with hyzual/koel:latest image ID eb29cb3624cb. From your screenshot, it looks like there is no typo either... :confused:
$ docker exec -it docker-koel_koel_1 php artisan koel:init --no-assets
Attempting to install or upgrade Koel.
Remember, you can always install/upgrade manually following the guide here:
📙  https://docs.koel.dev

App key exists -- skipping
Migrating database
Let's create the admin account.

 Your name:
 > admin

 Your email address:
 ><EMAIL_ADDRESS>
 Your desired password:
 >

 Again, just to be sure:
 >

Seeding initial data
The absolute path to your media directory. If this is skipped (left blank) now, you can set it later via the web interface.

 Media path [/music]:
 >

🎆  Success! Koel can now be run from localhost with `php artisan serve`.
You can also scan for media with `php artisan koel:sync`.
Again, visit 📙 https://docs.koel.dev for the official documentation.
Feeling generous and want to support Koel's development? Check out https://github.com/users/phanan/sponsorship 🤗
Thanks for using Koel. You rock! 🤘

you're totally right -- sorry!
Turns out I had and old image -- docker-compose pull fixed it. I had assumed docker would grab a labelled version or something.


rebuild issues, grub

Describe the bug
When i rebuild my system, the desktop session (pantheon) crashes and there are some grub errors.
https://youtu.be/OT5M4J9bEak
Nov 09 19:14:30 gaming kernel: failed to validate module [nf_tables] BTF: -22
Nov 09 19:14:30 gaming kernel: BPF:[79706] ENUM
Nov 09 19:14:30 gaming kernel: BPF:size=4 vlen=22
Nov 09 19:14:30 gaming kernel: BPF:
Nov 09 19:14:30 gaming kernel: BPF:Invalid name
Nov 09 19:14:30 gaming kernel: BPF:

Steps To Reproduce
Steps to reproduce the behavior:

nixos-rebuild
desktop session crash, so i ran rebuild again in tty1 to avoid the shell session dissapear
see a lot of grub (i guess) errors (reproducible)

Expected behavior
no crash, no errors
Additional context
Add any other context about the problem here.
Notify maintainers
pantheon maintainer @bobby285271: do you experience this as well?
Metadata

system: "x86_64-linux"
host os: Linux 5.15.0, NixOS, 21.11 (Porcupine)
multi-user?: no
sandbox: yes
version: nix-env (Nix) 2.3.16
channels(root): "home-manager-21.05, nixos-21.11pre328987.c935f5e0add, nixos-hardware, nixos-unstable-21.11pre328987.c935f5e0add"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

iirc this can happen because of mismatched kernel and kernel header versions

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/nixos-rebuild-switch-crashes-wm-de/16127/5

This seems to be independent from both pantheon and grub. I also get this with sway and systemd-boot.

FYI: at the time of writing the issue, it was reproducible every time i re-run the rebluild, but after i rebooted, i did not have the issue again. it's annoying and i had it in the past

https://github.com/NixOS/nixpkgs/pull/149244 may fix this because i saw similar errors in journalctl when i got that issue


zsh: character not in range

When trying to print out a \u200b (zero width space) character, hyperterm prints out this warning.
zsh: character not in range

Steps to reproduce

use zsh, (type zsh)
enter the command $ echo -e '\n%{\u200B%}'
see error and ponder ( :grin: )

In iterm and osx's default terminal the character is printed out correctly.

Same error here..

@sergiovilar would you be able to post any steps to reproduce this? Might help isolate where the issue is.

@mhartington Is this error still here in the latest released version?

Sorry, the email when to my spam folder.  Nope looks like it's all taken care of now! Thanks!

Issue persists in 0.7.1!


Question about loss function.

Hi.
Thank you for sharing the code.
I have the question about the total loss function using in this code.

As i know, most codes of GAN backward the generator and discriminator loss separately. However, you backward them in once by combining them into one loss. (As i understood, loss_ad_local and loss_ad_global are same with discriminator and generator loss).
Does backwarding the combined loss function have the same effect as backwarding each loss functions?
Thank you.

Hi, thanks for interest in our work.
The discriminator losses are implemented by gradient reversal: https://github.com/uta-smile/TVT/blob/main/models/modeling.py#L419
Please refer to this paper: https://arxiv.org/pdf/1409.7495.pdf

I understood!
Thank you! :)


CASMTRIAGE-7207: CT ITF triage kubectld pods unhealthy

The iSCSI metrics related pods in bad state as iSCSI was not configured/provisioned. This issue is addressed by preventing these pods from scheduling on nodes which do not have iSCSI labels.
Summary and Scope
This is in the context of CASM-3756 where iSCSI metrics were added via CASMPET-6820. So there are daemonset pods to collect iscsi metrics on each of the worker node where iscsi is configured and Marshal agent is running. But testing on freshly installed CSM 1.6 system these pods failed as iSCSI was not configured. This iscsi will be configured via ansible playbooks.
But these have to be run manually. This is getting automated which is in progress.
The other approach to address this issue by preventing these iscsi pods from scheduling on nodes which are not configured with iscsi. So currently this is being done by having node selector (as nodes with iscsi configured will have iscsi=sbps label).
Issues and Related PRs
CASM-3756,  CASMPET-6820, CASMPET-6797

Resolves [issue id](issue link): CASMTRIAGE-7207

Testing
Tested on the system where issue encountered: gamora
Tested on:
Gamora
Test description:
Required manifest change was done for daemonset manifest file on the system and it is observed that issue is not seen if nodes are not labeled with iscsi.

Were the install/upgrade-based validation checks/tests run (goss tests/install-validation doc)? - N/A
Were continuous integration tests run? If not, why? - N/A
Was upgrade tested? If not, why? - N/A
Was downgrade tested? If not, why? - N/A
Were new tests (or test issues/Jiras) created for this change? - No

Risks and Mitigations
None
Pull Request Checklist

[x] Version number(s) incremented, if applicable
[x] Copyrights updated
[x] License file intact
[x] Target branch correct
[x] Testing is appropriate and complete, if applicable

Thanks a lot for the quick review @rambabubolla and @dborman-hpe !


Add maxLength to ParameterContainer

The Oci8/Statement class currently sets the max length parameter of oci_bind_by_name to -1.  I need to be able to manually set this parameter.
This is my approach to doing this.

Merged to develop for release with 2.4.0


Feature Request : add an option to exclude domain from referrer

The Referrers URL panel is mostly full of your own domain.
An option to exclude domains would help a lot.

Hi  @lord-re.
You can use some tool for filtering like a AWK, SED, PYTHON or another that you have mastered.
Remember that a site can be accessed through others like google.

I could also use this filtering to display stats and all… that's not the point.

Please try:
--ignore-referer=<NEEDLE>       - Ignore a referer from being counted. Wild cards are allowed. i.e., *.bing.com

It doesn't seem to change :

The left one is with --ignore-referer=lord.re
(shouldn't this option be named --ignore-refeRRer ?

I do have the same issue.
In my configuration file:
ignore-referrer *.my-domain.*
ignore-referrer *.my-domain.at
ignore-referrer *.my-domain.at*
ignore-referrer *.My-Domain.at*

... has no effect on the sections of Referrer URLs with version 1.5.2. Therefore, my referrer section is dominated by my own pages in the live-view which basically kills the feature for me.


Add a default timeout to all requests

While we support timeouts, the default is currently set to never.
What would be an appropriate default? 30 seconds?

30 seems good.

Added in https://github.com/RogueException/Discord.Net/commit/0660af528cd90cd659789c45c2167973206fe3fe


URL validation rule is being executed even not being it isn't required

The URL validation rule is being executed even not being it isn't required. This way, when not sending the 'hyperlink' key, there ends up being an error in the validation of the library's schema due to at null value.
To "resolve" this, I inform you that the value can be 'nullable', but the other rules don't require this.
Example:
$data = [
   "alt" => "Alt",
   "main" => true
];

$rules = [
   "alt" => "required|string",
   "hyperlink" => "url",
   "main" => "required|boolean",
];

When executing, this throws the exception:
Uncaught TypeError: Somnambulist\Components\Validation\Rules\Url::validateCommonScheme(): Argument #1 ($value) must be of type string, null given, called in .../vendor/somnambulist/validation/src/Rules/Url.php on line 38 and defined in .../vendor/somnambulist/validation/src/Rules/Url.php:53

@andreoneres Hi, this is a known problem and stems from using strict_types. With rakit/validation these errors would not have been present as PHP would type-juggle. In fact, the next version of this library will invert the rules making them required unless specified otherwise as strictly speaking semantically defining a field with a rule implies it is required.
As you have already mentioned the fix is to use either sometimes if the field is completely optional and can be be ignored, or nullable if you wish to allow it to be null (not recommended in all honesty).
With all that said: I have checked the source and there is an explicit test for null handling in the Url rule. Could you check which version of the library you are using, and if necessary update to the most recent version? This should have been fixed in version 1.5.3.

@dave-redfern That's right, when updating to the latest version (1.7) the problem was solved. I had forgotten about this little detail :) Thanks!


Feature: Curve V2 Sim

[ ] Create SimCurveCryptoPool class
[ ] Metrics class needs to handle generic pool (will need generic value function etc); metrics like imbalance need to be updated too
[ ] Grid class should be updated to allow "parser" dependencies to be injected.
[ ] Update relevant network modules
[ ] Create any necessary arbitrage pipelines if we can't re-use

WIP to better scope/define:

need to investigate what the impacted modules are
identify what needs to be refactored to handle the greater generality

Blocked by:

#87

I tried to simulate two V2 pools, not knowing they were not yet supported. Thought I'd contribute my findings. TLDR: my specific errors result from the large difference between simulated Stableswap prices and actual (volatile) prices where the peg is not 1:1.
Both pools were basic two-token ones, crv-eth (symbol "crvCRVETH") and cvx-eth (symbol "crvCVXETH") on mainnet, using the following code:
import curvesim
res = curvesim.autosim("[symbol]")

No parameters were overridden or added. The output, which I've truncated, looked like the below (this is the cvx-eth pool)
Warning: Opt_arb error, Pair: (1, 0) Pool price: 0.9996 Target Price: 0.003889433647690374 Diff: 0.9957105663523097
Warning: Opt_arb error, Pair: (1, 0) Pool price: 0.9996 Target Price: 0.003916063090355466 Diff: 0.9956839369096446
Warning: Opt_arb error, Pair: (1, 0) Pool price: 0.9996 Target Price: 0.003888620809118686 Diff: 0.9957113791908814

Naturally, the simulated pool is behaving as if both tokens were stablecoins under Stableswap (pool price close to 1), since only V1 pools are supported at the moment. The specific error is a ValueError handled by the except clause on line 658 in curvesim/pipelines/arbitrage.py, in function get_trade_args. Possible reasons:

On lines 653-655 opt_arb(get_bounds, error_function, in_index, out_index, price) propagates a ValueError from subsequent calls in the call stack
On line 656, min(trade[2], limit) raises a ValueError due to taking in an empty iterable with no default placeholder specified. Source

The error_function passed in is post_trade_price_error(dx, i, j, price_target) defined on line 74 of curvesim/pool/sim_interface/pool.py, which calculates dydx - price_target. It doesn't look like root_scalar(error_function,...) imported from scipy.optimize (line 476 of arbitrage.py) or error_function itself return a ValueError. Therefore, it may be possible to reuse the arbitrage pipeline if you redefine the invariant to suit V2, and modify the logic where you raise an exception based on Pool Price - Target Price, wherever it is.

Thanks @PhilipLu97, that sounds about right. The arbitrage pipeline should work once we make sim_interfaces for v2, which will provide the error_functions, etc.
Once we merge the new metrics/plotter, we will also need add entries to compute the metrics for v2 pools.
@chanhosuh -- So we don't forget, we also need to make bonding_curve and order_book support v2

Epic finished with the release of 0.5.0.b1, although we will of course wrap up the data provider issues etc.


Does Multiverso support concurrent message handling in server table?

 I suppose the table can concurrently handle multiple GET and ADD ops. No matter how many threads I create, I can only observe "200% CPU usage" in Linux top command. I guess "100%" is on client side, and another "100%" is on server side.
I also notice "opm_threads" keyword exists in the API-document. But I failed to setup this variable and get a fatal error in FlagRegister::SetFlagIfFound method.
Does Multiverso support concurrent message handling in server table? If it does, how to enable concurrent server side processing?

No, the table can't concurrently handle multiple Get and Add. The message are processed one by one. The Get and Add interface are not thread-safe -- you shall care about concurrent issues in user side.
For the CPU usage, how many cores does your machine have?
The option "omp_threads" specify the number of omp thread used by Multiverso. The omp is mainly used in server side when server handle workers' request. For example, when handling one Add request, multiple threads is used to speedup. But every time only one message is processed.

Thanks for reply. I come up to this question when I trying to implement an algorithm, which requires lots of computation on server side.
Although my machine have 8 cores, the implementation's server table ProcessGet and ProcessAdd are just serial. This should be the bottleneck.
 I think I should make each Get and Add heavier and use multi-threads to handle each request.

Yes, please use multi-threads to handle each request.


[iOS/ImageViewer] Proposal of Fix share image button infinite loop

Proposal of a Fixes ( Unfortunately, I can't test the rest of the code as the iOS camera requires a real device. )
Fixes https://github.com/JetBrains/compose-multiplatform/issues/4970

@issamux
Thanks for your contribution! Looks good to me.
Why is it in draft status?

@issamux Thanks for your contribution! Looks good to me. I've checked on a real device too, works fine. Why is it in draft status?

Thanks :) ... PR ready :)


[Feature] - Help & Support

Missing features:

[ ] About project link
[ ] Changelog in app
[ ] Version & Commit in app

User can found source code of this app from About page

Change log shows when there's a new version available

I don't understand the Version & Commit in app means.