export PATH for JAVA_HOME

hi
I had a big problem.
i am just starting for new project of greengrass iot
but my device has a very small memory then i want to install corretto to another partition.
the java path is changed.
i got a problem when i try to launch greengrass service....
the loadef file ( greengrass/v2/alts/current/distro/bin/loader)  just call java ( not check java path)
how about add "export PATH =$PATH:JAVA_HOME" into loader file.

Hi, will look into that. But just wanna mention that if you have small memory you should use corretto and greengrass from master branch, since it has a version which is not depending on x11. So your image size will be half!
This improved version is not yet included in realease branch kirkstone and dunfell.


Add screen-256color to colored terminal list.

doing it manually in 9.81 as there is chance it will have conflicts


python3Packages.transformers: 2.2.1 -> 3.0.0

Motivation for this change
Changelog:
https://github.com/huggingface/transformers/releases/tag/v3.0.0
Also add myself as a maintainer.
Warning: this still needs to be rebased when #91342 is merged.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

cc: @pashashocky

@ofborg build python37Packages.transformers python38Packages.transformers

* [ ]  Commits: Squash add maintainer. Remove tokenizers when #91342 is approved

I think it's nice to have that in a commit separate from the version bump.

python38.transformers: Willing to accept, maybe include pytorch/tensorflow in inputs?? No strong opinion. (also, the

@pashashocky probably excluded these dependencies intentionally. transformers works with either, so I think it's up to the user to pick one. We use transformers with PyTorch and it would be nasty if we had to pull in Tensorflow as an additional dependency every time. Also Tensorflow has had quite a history of being broken frequently in nixpkgs.

spacing in this error message makes me want to file a PR... grr :D )

:laughing:

python37Packages.transformers: getting the same issue when launched from command-line or via transformers-cli. Not sure what's causing this, seems like it's trying to use py38.numpy for some reason??

Let me check.

python37Packages.transformers: getting the same issue when launched from command-line or via transformers-cli. Not sure what's causing this, seems like it's trying to use py38.numpy for some reason??

Let me check.

Binary seems fine?
(nix-build --no-out-link -A python3Packages.transformers)/bin/transformers-cli
Neither PyTorch nor TensorFlow >= 2.0 have been found.Models won't be available and only tokenizers, configurationand file/data utilities can be used.
usage: transformers-cli <command> [<args>]

positional arguments:
  {convert,download,env,run,serve,login,whoami,logout,s3,upload}
[...]

Rebased now that python3Packages.tokenizers is merged.

* [x]  tested via pytest & trivially w/ transformer-cli (same issue with python37Packages.transformers-cli as before, maybe re-test with that command & python37Packges.transformers in your test, vs python3Packages.transformers).

Ah, I see the problem you are running into. If you run nix-review, the Python 3.8 modules end up in PYTHONPATH. Try to run nix-review as follows: nix-review pr 91915 -p python37Packages.transformers
Then transformers-cli should run as expected.

Updated to transformers 3.0.1.

@danieldk yeah, I figured something like that was happening, but I didn't have time to debug it.


Allow Django 1.8

I created my fork to get this to install with Django 1.8. I've tested a few things and it all seems to just work™.
Also be careful with your dependency definitions. <=1.8 will allow 1.8 but not a point release like 1.8.2. If you meant <1.8 (eg up to any 1.7.* release) I've read (citation needed) you should use a syntax like <=1.7.999 instead as it's safer. It's certainly easier to understand.

Coverage remained the same at 99.17% when pulling b1bccc8fbd01d199de7c9c55ef7ed5917d3d1b04 on oliwarner:master into c11296dafcea475a6a6ec85b016b7a59b56c2470 on agiliq:master.

Also be careful with your dependency definitions. <=1.8 will allow 1.8 but not a point release like 1.8.2.

Indeed!
<1.9a0 should work, too.

@oliwarner Can you please check why the build is failing for this PR?

I think <1.9a0 "looks better".
The problem raised by Travis job is: "VersionConflict: (Django 1.7.8 (/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages), Requirement.parse('Django<=1.7,>=1.3'))"

That is a strang bug. It looks like a Travis bug?!

Django 1.8 is already supported.


Set version to 0.0.58 for the next development cycle

What changed between version 0.0.57 and this release?


Extract make args for s390x into makejdk any platform script

Refactored and extracted make command args from within build.sh and move it to makejdk-any-platform.sh, refacored all other scripts, checked for defaults and replaced with default values.
Partially fulfills #51 (we are closing in) and then there will be more platform specific checks inside any of the scripts, will be moved out to makejdk-any-platform.sh

Kicked off Jenkins build at https://ci.adoptopenjdk.net/view/work in progress/job/openjdk_build_s390x_linux_mani_test/3/console

Building the JDK: calling make CONF=linux-s390x-normal-zero-release DEBUG_BINARIES=true images
Building 'linux-s390x-normal-zero-release' (matching CONF=linux-s390x-normal-zero-release)
Building OpenJDK for target 'images' in configuration 'linux-s390x-normal-zero-release'
``` works fine as expected params are not affected.

Also tested out the changes in makejdk-any-platform.sh:
± ./makejdk-any-platform.sh -s $(pwd) -d $(pwd)
+ export JVM_VARIANT=zero
+ JVM_VARIANT=zero
+ export BUILD_FULL_NAME=linux-s390x-normal-zero-release
+ BUILD_FULL_NAME=linux-s390x-normal-zero-release
+ S390X_MAKE_ARGS='CONF=linux-s390x-normal-zero-release DEBUG_BINARIES=true images'
+ export 'MAKE_ARGS_FOR_ANY_PLATFORM=CONF=linux-s390x-normal-zero-release DEBUG_BINARIES=true images'
+ MAKE_ARGS_FOR_ANY_PLATFORM='CONF=linux-s390x-normal-zero-release DEBUG_BINARIES=true images'
+ set +x


POLYGON/LINE does not work with reversed axes

Reported by Ansley B Manke on 5 Apr 2004 17:47 UTC
! Reported by Patrick Brockmann, 4/04
!  All works as expected with a non-depth Z axis
def axis/z=1:100:1 myzaxis
let a=sin(z[a
polygon/nolab/over/line/color=2/thick=2/fill/pal=blue
{0.2,0.2,0.4,0.4},{30.,40.,40.,30.}
ppl window,off
polygon/nolab/over/line/color=2/thick=2/fill/pal=blue
{0.2,0.2,0.4,0.4},{110.,120.,120.,110.}
say "now define a depth vertical axis"
say "red thick outlines are no more present ?"
message
def axis/z=1:100:1/depth myzaxis
let a=sin(zgz=myzaxis
plot)/10)
plot a
polygon/nolab/over/line/color=2/thick=2/fill/pal=blue
{0.2,0.2,0.4,0.4},{30.,40.,40.,30.}
ppl window,off
polygon/nolab/over/line/color=2/thick=2/fill/pal=blue
{0.2,0.2,0.4,0.4},{110.,120.,120.,110.}
! Note (ACM) as in a previous bug with polygon and
! depth axes, if we multiply the Z data by -1, then
! it works ok
pause
polygon/nolab/over/line/color=black/thick=2/fill/pal=blue
{0.2,0.2,0.4,0.4},-1*{30.,40.,40.,30.}
polygon/nolab/over/line/color=black/thick=2/fill/pal=blue
{0.2,0.2,0.4,0.4},-1*{110.,120.,120.,110.}
Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/844

Comment by<EMAIL_ADDRESS>on 24 Mar 2005 22:07 UTC
I just re-discovered this bug.  The POLYGON/LINE command forgets to
flip its coordinates along reversed plot-axes.  Doesn't depend
specifically on the DEPTH attribute or anything like that.
    NOAA/PMEL TMAP
    FERRET v5.80
    Linux(g77) 2.4.18 - 01/03/05
    24-Mar-05 16:48

yes? ppl cross 1
yes? plot/vl=4:-4/hl=4:-4/vs/line {1,2,3,1},{0,2,1,0}
yes? poly/ov/col=2/pal=yellow {1,2,3,1},{0,2,1,0}
Here, the red outline of the triangle plotted with POLY is reflected
about the horizontal and vertical axes, compared to where it should be.
But note that the yellow color-fill is plotted in the right place!
This bug appears in all versions back to v5.41.  Version 5.22, though,
plots the polygon correctly!
Note also that the axes are not drawn (in any version of Ferret)
despite the "ppl cross 1", when the axes are reversed.

Comment by<EMAIL_ADDRESS>on 10 Aug 2006 22:35 UTC
fixed in ppl/tmapadds/fillpol.F  -- multiply coordinates by xinv and yinv when
plotting the /LINE

Attachment from<EMAIL_ADDRESS>on 24 Mar 2005 22:17 UTC
image that illustrates the bug
REPLACE THIS TEXT WITH UPLOADED FILE ./attachments/TRAC_844_GIT_394/ax_rev_bug.gif


Feat(Ethereum): CW-7523 Add smart contract deploy for legacy and EIP1559

Allow empty to address for legacy and EIP1559 smart contract.

Task linked: CW-7523 As a user, I want to use CoolWallet to deploy my smart contract on Ethereum


 The excludeNamespaceRegex above is designed to collect logs only from the ingress-nginx namespace & avoid all other namespaces.
However, after deploying the chart, pods of the StatefulSet sumo-logic-sumologic-otelcol-logs started failing with the error:
Cannot compile regular expression: ^(?!ingress-nginx).*$
Error: error parsing regexp: invalid or unsupported Perl syntax: `(?!`

The same regex works well in Sumo Logic Helm chart v2.18.1 (it uses FluentD instead of OTelCol).
Everything works well after removing excludeNamespaceRegex from Helm values. Logs from all namespaces are successfully sent to Sumo, as expected.
According to a few online Perl regex testers I tried, the regex ^(?!ingress-nginx).*$ is valid & matches everything except ingress-nginx, as expected.
Is there another Helm value where I can whitelist the namespaces I need, instead of using excludeNamespaceRegex to blacklist all namespaces except the ones I need?
If not, how can I fix the above regex to collect logs only from containers in the ingress-nginx namespace?

sumologic:
  logs:
    container:
      excludeNamespaceRegex: ^(?!ingress-nginx).*$

sets exclude in configuration for source processor:
      source/containers:
        annotation_prefix: pod_annotations_
        collector: eks-sandbox
        container_annotations:
          enabled: false
          prefixes: []
        exclude:
          container: ""
          namespace: ^(?!ingress-nginx).*$$
          node: ""
          pod: ""
        pod_key: pod
        pod_name_key: pod_name
        pod_template_hash_key: pod_labels_pod-template-hash
        source_category: '%{namespace}/%{pod_name}'
        source_category_prefix: kubernetes/
        source_category_replace_dash: /
        source_host: ""
        source_name: '%{namespace}.%{pod}.%{container}'

source processor is written in Go and uses regexp.Compile (in this code line)
so it is recommend to use online Go regex testers to test regular expressions (I don't know why the error message says about perl, maybe because Go uses "same semantics that Perl, Python, and other implementations use" - this comes from regexp.Compile documentation)
I've found also that the syntax that you've tried to use in configuration (^(?!ingress-nginx).*$) is supported in regexp2 but regexp2 is not used in source processor, I've found also comparison of regexp and regexp2: https://github.com/dlclark/regexp2#compare-regexp-and-regexp2
Probably the easiest method to exclude namespaces from which you don't want to collect logs is to list these namespaces in regular expression or patterns for these namespaces.
Another way to collect logs only from desired namespace/namespaces is to modify configuration for otelcol-logs-collector, using otellogs.config.merge (see this section) to set the path for container logs, current form of configuration:
    receivers:
      filelog/containers:
        include:
        - /var/log/pods/*/*/*.log
        ...

and use the fact that names of directories in /var/log/podsstart with namespace

Thanks @kkujawa-sumo for the detailed explanation & for the regexp & regexp2 comparison link. As noted there, negative lookahead (?!re) is not supported in regexp, so it's basically impossible to create a regex that can match everything except a specific namespace name (also see this StackOverflow answer).
Since other namespaces in my cluster are dynamic, I can't use a regex to filter them out by name. So, I've added this to my Helm values:
otellogs:
  config:
    merge:
      receivers:
        filelog/containers:
          include:
          # Collect logs ONLY from these namespaces:
          - /var/log/pods/ingress-nginx_*/*/*.log

and it works as expected. I'm now sending logs ONLY from the ingress-nginx namespace to Sumo!

@HarishKM7 I'm really glad that my suggestion help you to solve the problem :)


Reviewer able to view engagements from which they have been revoked

Verified, reviewer is not able to access engagements from which they have been revoked.


[FEATURE] Loading Indicator for Audio File Loading in Session Page

Description
Show a loading indicator for long loading media/audio files in the session page, that users are not confused about the empty session page.

Will be part of next release


compatibility with Mac?

First, congratulations for creating a plug-in that allows Photoshop users to discover the wonders of Gmic and FOSS applications.
Is the current plug-in meant to be compatible with MacOS?
When re-opening Photoshop it fails to load gmic in filters Filters.
I am on MacOS 10.15 Catalina
I have dropped the file GmicPlugin.8bf and gmic folder into the plug-in folder in Mac for the last two versions of Photoshop:
MainDrive/Applications/Adobe Photoshop 2021/Plug-ins
MainDrive/Applications/Adobe Photoshop 2020/Plug-ins
Photoshop does open all the other plug-ins stored in those folders.
However all my other plug-ins are set as bundles .plugin
Inside the package the Info.plist  files do refer to CFBundlePackageType 8BFM

Is the current plug-in meant to be compatible with MacOS?

No, it is currently only available for Windows.
Both the plugin and G'MIC would have to be recompiled on macOS.
G'MIC does not currently offer a macOS build for any image editor.
I designed the plugin so that is should be possible to port it to macOS, but there is also a fairly large amount of OS-specific code that would have to be rewritten.

Is the current plug-in meant to be compatible with MacOS?

No, it is currently only available for Windows.
Both the plugin and G'MIC would have to be recompiled on macOS.
G'MIC does not currently offer a macOS build for any image editor.
I designed the plugin so that is should be possible to port it to macOS, but there is also a fairly large amount of OS-specific code that would have to be rewritten.

Thanks for the info.

Thanks for the info.


Segfault loading sounds from unpacked wave files.

Sound SOUND;
int id = rresGetResourceId(ASSETS_DIR , filename);
if(id)
{
      printf("~Loaded sound from rres~\n");
      rresResourceChunk chunk = rresLoadResourceChunk( "resources/DATA.rres" , id);
      UnpackResourceChunk(&chunk);
          Wave tempWave = LoadWaveFromResource(rresLoadResourceChunk( "resources/DATA.rres" , id));
          SOUND = LoadSoundFromWave(tempWave);
          UnloadWave(tempWave);
      rresUnloadResourceChunk(chunk);
}

If the packaged wav file is too large, approximately > 10 mb, LoadSoundFromWave() segfaults.

Possibly related to https://github.com/raysan5/raylib/issues/1423

@H-Art-Src Thanks for reporting! Did you verify the data returned by LoadWaveFromResource() is correct?

Sound SOUND; int id = rresGetResourceId(ASSETS_DIR , filename); if(id) {       printf("~Loaded sound from rres~\n");       rresResourceChunk chunk = rresLoadResourceChunk( "resources/DATA.rres" , id);       UnpackResourceChunk(&chunk);           Wave tempWave = LoadWaveFromResource(chunk);           SOUND = LoadSoundFromWave(tempWave);           UnloadWave(tempWave);       rresUnloadResourceChunk(chunk); }
Realized LoadWaveFromResource() should be passing chunk, but it's still segfaulting from LoadSoundFromWave().
Unpacked sound is reported to be 28,653,396 bytes from FS.
What the log shows when commentating out SOUND = LoadSoundFromWave(tempWave);:
RRES: INFO: Loading resource from file: resources/DATA.rres RRES: INFO: Found requested resource id: 0x18705889 RRES: WAVE: Id: 0x18705889 | Base size: 28653372 | Packed size: 28653372 RRES: WAVE: WARNING: Data must be decompressed/decrypted

@H-Art-Src Please, could you provide some sample with files for testing?

https://mega.nz/folder/eNAjkK5J#3bnJLs4h0I_u5aQANkZl4Q
White noise packed and unpacked


Uses 24 GB VRAM - what optimizations can be made?

I have installed as described in the gradio demo
It is literally filling entire 24 GB VRAM working but that much VRAM
what VRAM optimizations can be made? such as loading models perhaps 16 bit ? 8 bit?
I am making 1 click auto installer and an advanced gradio app
below is the pipeline
MAX_SEED = np.iinfo(np.int32).max
device = get_torch_device()
dtype = torch.float16 if str(device).__contains__("cuda") else torch.float32
STYLE_NAMES = list(styles.keys())
DEFAULT_STYLE_NAME = "Watercolor"

# Load face encoder
app = FaceAnalysis(name='antelopev2', root='checkpoints', providers=['CUDAExecutionProvider', 'CPUExecutionProvider'])
app.prepare(ctx_id=0, det_size=(640, 640))

# Path to InstantID models
face_adapter = f'checkpoints/ip-adapter.bin'
controlnet_path = f'checkpoints/ControlNetModel'

# Load pipeline
controlnet = ControlNetModel.from_pretrained(controlnet_path, torch_dtype=dtype)

def main(pretrained_model_name_or_path="wangqixun/YamerMIX_v8"):

    if pretrained_model_name_or_path.endswith(
            ".ckpt"
        ) or pretrained_model_name_or_path.endswith(".safetensors"):
            scheduler_kwargs = hf_hub_download(
                repo_id="wangqixun/YamerMIX_v8",
                subfolder="scheduler",
                filename="scheduler_config.json",
            )

            (tokenizers, text_encoders, unet, _, vae) = load_models_xl(
                pretrained_model_name_or_path=pretrained_model_name_or_path,
                scheduler_name=None,
                weight_dtype=dtype,
            )

            scheduler = diffusers.EulerDiscreteScheduler.from_config(scheduler_kwargs)
            pipe = StableDiffusionXLInstantIDPipeline(
                vae=vae,
                text_encoder=text_encoders[0],
                text_encoder_2=text_encoders[1],
                tokenizer=tokenizers[0],
                tokenizer_2=tokenizers[1],
                unet=unet,
                scheduler=scheduler,
                controlnet=controlnet,
            ).to(device)

    else:
        pipe = StableDiffusionXLInstantIDPipeline.from_pretrained(
            pretrained_model_name_or_path,
            controlnet=controlnet,
            torch_dtype=dtype,
            safety_checker=None,
            feature_extractor=None,
        ).to(device)

        pipe.scheduler = diffusers.EulerDiscreteScheduler.from_config(pipe.scheduler.config)

    pipe.load_ip_adapter_instantid(face_adapter)

    def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
        if randomize_seed:
            seed = random.randint(0, MAX_SEED)
        return seed

    def swap_to_gallery(images):
        return gr.update(value=images, visible=True), gr.update(visible=True), gr.update(visible=False)

    def upload_example_to_gallery(images, prompt, style, negative_prompt):
        return gr.update(value=images, visible=True), gr.update(visible=True), gr.update(visible=False)

    def remove_back_to_files():
        return gr.update(visible=False), gr.update(visible=False), gr.update(visible=True)

    def remove_tips():
        return gr.update(visible=False)

    def convert_from_cv2_to_image(img: np.ndarray) -> Image:
        return Image.fromarray(cv2.cvtColor(img, cv2.COLOR_BGR2RGB))

    def convert_from_image_to_cv2(img: Image) -> np.ndarray:
        return cv2.cvtColor(np.array(img), cv2.COLOR_RGB2BGR)

    def draw_kps(image_pil, kps, color_list=[(255,0,0), (0,255,0), (0,0,255), (255,255,0), (255,0,255)]):
        stickwidth = 4
        limbSeq = np.array([[0, 2], [1, 2], [3, 2], [4, 2]])
        kps = np.array(kps)

        w, h = image_pil.size
        out_img = np.zeros([h, w, 3])

        for i in range(len(limbSeq)):
            index = limbSeq[i]
            color = color_list[index[0]]

            x = kps[index][:, 0]
            y = kps[index][:, 1]
            length = ((x[0] - x[1]) ** 2 + (y[0] - y[1]) ** 2) ** 0.5
            angle = math.degrees(math.atan2(y[0] - y[1], x[0] - x[1]))
            polygon = cv2.ellipse2Poly((int(np.mean(x)), int(np.mean(y))), (int(length / 2), stickwidth), int(angle), 0, 360, 1)
            out_img = cv2.fillConvexPoly(out_img.copy(), polygon, color)
        out_img = (out_img * 0.6).astype(np.uint8)

        for idx_kp, kp in enumerate(kps):
            color = color_list[idx_kp]
            x, y = kp
            out_img = cv2.circle(out_img.copy(), (int(x), int(y)), 10, color, -1)

        out_img_pil = Image.fromarray(out_img.astype(np.uint8))
        return out_img_pil

    def resize_img(input_image, max_side=1280, min_side=1024, size=None,
                pad_to_max_side=False, mode=PIL.Image.BILINEAR, base_pixel_number=64):

            w, h = input_image.size
            if size is not None:
                w_resize_new, h_resize_new = size
            else:
                ratio = min_side / min(h, w)
                w, h = round(ratio*w), round(ratio*h)
                ratio = max_side / max(h, w)
                input_image = input_image.resize([round(ratio*w), round(ratio*h)], mode)
                w_resize_new = (round(ratio * w) // base_pixel_number) * base_pixel_number
                h_resize_new = (round(ratio * h) // base_pixel_number) * base_pixel_number
            input_image = input_image.resize([w_resize_new, h_resize_new], mode)

            if pad_to_max_side:
                res = np.ones([max_side, max_side, 3], dtype=np.uint8) * 255
                offset_x = (max_side - w_resize_new) // 2
                offset_y = (max_side - h_resize_new) // 2
                res[offset_y:offset_y+h_resize_new, offset_x:offset_x+w_resize_new] = np.array(input_image)
                input_image = Image.fromarray(res)
            return input_image

    def apply_style(style_name: str, positive: str, negative: str = "") -> tuple[str, str]:
        p, n = styles.get(style_name, styles[DEFAULT_STYLE_NAME])
        return p.replace("{prompt}", positive), n + ' ' + negative

    def generate_image(face_image, pose_image, prompt, negative_prompt, style_name, num_steps, identitynet_strength_ratio, adapter_strength_ratio, guidance_scale, seed, progress=gr.Progress(track_tqdm=True)):

        if face_image is None:
            raise gr.Error(f"Cannot find any input face image! Please upload the face image")

        if prompt is None:
            prompt = "a person"

        # apply the style template
        prompt, negative_prompt = apply_style(style_name, prompt, negative_prompt)

        face_image = load_image(face_image[0])
        face_image = resize_img(face_image)
        face_image_cv2 = convert_from_image_to_cv2(face_image)
        height, width, _ = face_image_cv2.shape

        # Extract face features
        face_info = app.get(face_image_cv2)

        if len(face_info) == 0:
            raise gr.Error(f"Cannot find any face in the image! Please upload another person image")

        face_info = sorted(face_info, key=lambda x:(x['bbox'][2]-x['bbox'][0])*x['bbox'][3]-x['bbox'][1])[-1]  # only use the maximum face
        face_emb = face_info['embedding']
        face_kps = draw_kps(convert_from_cv2_to_image(face_image_cv2), face_info['kps'])

        if pose_image is not None:
            pose_image = load_image(pose_image[0])
            pose_image = resize_img(pose_image)
            pose_image_cv2 = convert_from_image_to_cv2(pose_image)

            face_info = app.get(pose_image_cv2)

            if len(face_info) == 0:
                raise gr.Error(f"Cannot find any face in the reference image! Please upload another person image")

            face_info = face_info[-1]
            face_kps = draw_kps(pose_image, face_info['kps'])

            width, height = face_kps.size

        generator = torch.Generator(device=device).manual_seed(seed)

        print("Start inference...")
        print(f"[Debug] Prompt: {prompt}, \n[Debug] Neg Prompt: {negative_prompt}")

        pipe.set_ip_adapter_scale(adapter_strength_ratio)
        images = pipe(
            prompt=prompt,
            negative_prompt=negative_prompt,
            image_embeds=face_emb,
            image=face_kps,
            controlnet_conditioning_scale=float(identitynet_strength_ratio),
            num_inference_steps=num_steps,
            guidance_scale=guidance_scale,
            height=height,
            width=width,
            generator=generator
        ).images

        return images, gr.update(visible=True)

+1

I'm not a programmer, but I've experimented a bit with xformers and sequential CPU offload. Without xformers the demo didn't work at all on my card (RTX4070). After using xformers it works, but the pipeline allocates about 6G of shared memory. Generating an image with a resolution of 1024 takes about 60 sec.
Sequential CPU offload give me very small VRAM usage, but generating an image takes about 70 sec.
https://huggingface.co/blog/simple_sdxl_optimizations
https://github.com/b4sh/InstantID

Sequential CPU offload

Sequential CPU offload  is giving me this error
how did you fix?
G:\instant id auto installer\venv\lib\site-packages\insightface\utils\transform.py:68: FutureWarning: `rcond` parameter will change to the default of machine precision times ``max(M, N)`` where M and N are the input matrix dimensions.
To use the future default and silence this warning we advise to pass `rcond=None`, to keep using the old, explicitly pass `rcond=-1`.
  P = np.linalg.lstsq(X_homo, Y)[0].T # Affine matrix. 3 x 4
Start inference...
[Debug] Prompt: watercolor painting, a man. vibrant, beautiful, painterly, detailed, textural, artistic,
[Debug] Neg Prompt: (lowres, low quality, worst quality:1.2), (text:1.2), watermark, anime, photorealistic, 35mm film, deformed, glitch, low contrast, noisy (lowres, low quality, worst quality:1.2), (text:1.2), watermark, (frame:1.2), deformed, ugly, deformed eyes, blur, out of focus, blurry, deformed cat, deformed, photo, anthropomorphic cat, monochrome, pet collar, gun, weapon, blue, 3d, drones, drone, buildings in background, green
Traceback (most recent call last):
  File "G:\instant id auto installer\venv\lib\site-packages\gradio\queueing.py", line 495, in call_prediction
    output = await route_utils.call_process_api(
  File "G:\instant id auto installer\venv\lib\site-packages\gradio\route_utils.py", line 232, in call_process_api
    output = await app.get_blocks().process_api(
  File "G:\instant id auto installer\venv\lib\site-packages\gradio\blocks.py", line 1561, in process_api
    result = await self.call_function(
  File "G:\instant id auto installer\venv\lib\site-packages\gradio\blocks.py", line 1179, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "G:\instant id auto installer\venv\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
  File "G:\instant id auto installer\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 2134, in run_sync_in_worker_thread
    return await future
  File "G:\instant id auto installer\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 851, in run
    result = context.run(func, *args)
  File "G:\instant id auto installer\venv\lib\site-packages\gradio\utils.py", line 695, in wrapper
    response = f(*args, **kwargs)
  File "G:\instant id auto installer\venv\lib\site-packages\gradio\utils.py", line 695, in wrapper
    response = f(*args, **kwargs)
  File "G:\instant id auto installer\web-ui.py", line 216, in generate_image
    images = pipe(
  File "G:\instant id auto installer\venv\lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "G:\instant id auto installer\pipeline_stable_diffusion_xl_instantid.py", line 522, in __call__
    prompt_image_emb = self._encode_prompt_image_emb(image_embeds,
  File "G:\instant id auto installer\pipeline_stable_diffusion_xl_instantid.py", line 235, in _encode_prompt_image_emb
    prompt_image_emb = self.image_proj_model(prompt_image_emb)
  File "G:\instant id auto installer\venv\lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "G:\instant id auto installer\venv\lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "G:\instant id auto installer\venv\lib\site-packages\ip_adapter\resampler.py", line 135, in forward
    x = self.proj_in(x)
  File "G:\instant id auto installer\venv\lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "G:\instant id auto installer\venv\lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "G:\instant id auto installer\venv\lib\site-packages\torch\nn\modules\linear.py", line 114, in forward
    return F.linear(input, self.weight, self.bias)
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument mat1 in method wrapper_CUDA_addmm)

how did you fix?

Without looking at your code, I can't tell you how to fix it.
Just a note, I use Linux running on WSL2, maybe that matters. I'll try to run it on Windows.
I just checked, VRAM usage while generating image only 1G with Sequential CPU offload.

Sequential CPU offload

yes Sequential CPU offload is amazing but I am getting DTYPE mismatch due to pipeline_stable_diffusion_xl_instantid and the method _encode_prompt_image_emb

how did you fix?

Without looking at your code, I can't tell you how to fix it.
Just a note, I use Linux running on WSL2, maybe that matters. I'll try to run it on Windows.
I just checked, VRAM usage while generating image only 1G with Sequential CPU offload.

Do you think that this can be added to https://github.com/ZHO-ZHO-ZHO/ComfyUI-InstantID/ so ComfyUI would run on a 4070 with InstantID?

Sequential CPU offload removes the model from VRAM, so after each generated image the model would have to be reloaded from disk. I don't know if this is a good solution. At the moment, gradio demo with xformers works best IMHO. I experimented with ZHO-ZHO-ZHO/ComfyUI-InstantID/ and xformers, it works on 4070, but every second generation returns an OOM error.

Sequential CPU offload removes the model from VRAM, so after each generated image the model would have to be reloaded from disk. I don't know if this is a good solution. At the moment, gradio demo with xformers works best IMHO. I experimented with ZHO-ZHO-ZHO/ComfyUI-InstantID/ and xformers, it works on 4070, but every second generation returns an OOM error.

it is not same as running it on CPU

Sequential CPU offload removes the model from VRAM, so after each generated image the model would have to be reloaded from disk. I don't know if this is a good solution. At the moment, gradio demo with xformers works best IMHO. I experimented with ZHO-ZHO-ZHO/ComfyUI-InstantID/ and xformers, it works on 4070, but every second generation returns an OOM error.

Is there some code we could add or change in their existing files that would allow us to use these changes in Comfy? It might not be the best solution, but I've got a 3060 12GB that can't run it, so anything is better than the current situation.

Sequential CPU offload removes the model from VRAM, so after each generated image the model would have to be reloaded from disk. I don't know if this is a good solution. At the moment, gradio demo with xformers works best IMHO. I experimented with ZHO-ZHO-ZHO/ComfyUI-InstantID/ and xformers, it works on 4070, but every second generation returns an OOM error.

Is there some code we could add or change in their existing files that would allow us to use these changes in Comfy? It might not be the best solution, but I've got a 3060 12GB that can't run it, so anything is better than the current situation.

This PR solves it for me: https://github.com/ZHO-ZHO-ZHO/ComfyUI-InstantID/pull/87
That is why I added it to ZHO's unofficial solution which level_2 optimisation/offloading works on 12GB.
Also, we should have soon the official as well: https://github.com/cubiq/ComfyUI_IPAdapter_plus/issues/242#issuecomment-1936499249

This PR solves it for me: ZHO-ZHO-ZHO/ComfyUI-InstantID#87 That is why I added it to ZHO's unofficial solution which level_2 optimisation/offloading works on 12GB.
Also, we should have soon the official as well: cubiq/ComfyUI_IPAdapter_plus#242 (comment)

The official support has me very excited to try. As for the modifications you suggest in the other thread, exactly where were you making these changes and in which files? I'm not familiar at all with this code, but I'm not afraid to mess around in it given good directions. :)

This PR solves it for me: ZHO-ZHO-ZHO/ComfyUI-InstantID#87 That is why I added it to ZHO's unofficial solution which level_2 optimisation/offloading works on 12GB.
Also, we should have soon the official as well: cubiq/ComfyUI_IPAdapter_plus#242 (comment)

The official support has me very excited to try. As for the modifications you suggest in the other thread, exactly where were you making these changes and in which files? I'm not familiar at all with this code, but I'm not afraid to mess around in it given good directions. :)

The modifications can be seen here per files per lines: https://github.com/ZHO-ZHO-ZHO/ComfyUI-InstantID/pull/87/files

well we also fixed the cpu off load in a standalone gradio app
1 click install with downloading models and on the fly model changing as well
enabled vae slicing, xformers too

shared on here so far : https://www.patreon.com/posts/1-click-very-gui-97769887

well we also fixed the cpu off load in a standalone gradio app
1 click install with downloading models and on the fly model changing as well
enabled vae slicing, xformers too

shared on here so far : https://www.patreon.com/posts/1-click-very-gui-97769887

awww behind a paywall, :-( looks neat. Well at least with your GUI are you able to use the normal XL safetensors from Civit? Or this odd format that Aitrepreneur has got us using https://huggingface.co/stablediffusionapi

@SoutPark99
my gui can use any civitAI models i made it support that way
put into models folder and restart the app
or give its full path in the box
sorry for late reply

awww behind a paywall, :-(

Try this. https://github.com/cubiq/ComfyUI_InstantID - IMHO the best implementation so far. It runs on a 12G VRAM card without any problem and does not use all the VRAM.

I managed to run the code in ~30 seconds on an RTX 3060. Approach:

Include @b4sh 's changes in the current main
Reduce image size to 512 in resize_img (app.py)


envelopesAPI get_document does not have option to return bytes

get_document method gets a document from an envelope. The problem is it saves the file in a temporary folder location with no other option. I would suggest having the option of getting the byte stream and file information.

Thank you for the suggestion. We'll consider this for future release.

It would be really very useful to return the byte, has there been any progress?


MQTT subscribe support

Is your feature request related to a problem? Please describe.
The great new thing about Logstash and friends were the support for continuous operations/feeding.
Describe the solution you'd like
MQTT is a low key protocol for IOT devices with NB-IOT modems that has MQTT in firmware. The devices publish messages to a broker.
The broker support subscribing to subjects. So it would be nice if Data Prepper could support a continous subscription.
These messages should preferably be in JSON to map to Opensearch records.
Describe alternatives you've considered (Optional)
An alternative is using legacy Filebeat to eat from a logfile produced by a subscription program that stores to this logfile.
This adds operational complexity and risk for failure.
Additional context

Hi @okvittem,
Thank you for creating this issue. We will keep it in mind to be added in a future release of Data Prepper. In the meantime, please read our Contribution Guidelines and Developer Guide if you are interested in making a pull request for this issue yourself. Please let us know if you have any further questions. Thanks!


add missing goods nomenclatures migration

we’ll need to rerun this data migration:
rake db:data:redo

 [TARIFF16] Investigate why some goods_nomenclature_sid data was not corrected


cannot install symbol as it is not compatible with VSCode 1.66.2

Hi, I'm trying to install the symbol extension on a company computer which does not have internet access. I downloaded the .vsix file from the marketplace (https://marketplace.visualstudio.com/items?itemName=miguelsolorio.symbols&ssr=false#version-history), and tried to install it in VSCodium. But it said "Unable to install extension 'miguelsolorio.symbols' as it is not compatible with VS Code '1.66.2'." Could you please help? Thanks.
Basically, I'm trying to bring up the outline view in VSCodium for code navigation. Is there any other way of doing so, if symbol does not work? Thanks.

That’s because the theme is only supported on versions 1.70 and higher. I’ll look into seeing if I can scale back the minimum version but I’d highly suggest updating your VS Code to the latest version as yours is more than a year old.


Code changes for APEXMAHAR-2291 as per dev email thread

@bhupeshchawda @chinmaykolhatkar Please review. Have done the code changes as discussed on mail thread, travis build has passed, have written corresponding unit test case

Please update with a more descriptive commit message.


Continous Integration

This pull request adds features for continuous integration testing which produces wheels for Windows, MacOSX, and Linux.

The Windows CI is successfully working with AppVeyor.


include_cached preventing Disqus comments from displaying

Environment

Minimal Mistakes version: 4.13.0
Ruby gem or remote theme version: remote theme version used
Jekyll version: 3.7.4
Git repository URL: https://github.com/paulfioravanti/paulfioravanti.github.io
GitHub Pages hosted (if yes provide URL to site): https://paulfioravanti.com
Operating system: Mac OS High Sierra 10.13.6 (17G65)

Expected behavior
Disqus comments display underneath a post when site.comments.provider is "disqus".
Steps to reproduce the behavior
No specific steps to re-produce as the comments were working previously at some point in the past, and then one day I noticed they were not displaying anymore. However, I suspect that #1874 could be a potential cause (see further information below for reasoning).
The log of bundle exec jekyll build --trace --verbose was quite long, so I put it in this gist.
Other
Here is a screenshot of running JEKYLL_ENV=production bundle exec jekyll liveserve on my local machine with the current version of Minimal Mistakes, where you can see that comments are not displaying:

Here is a screenshot of running JEKYLL_ENV=production bundle exec jekyll liveserve on my local machine after making the following changes:

Copying the content of _layouts/default.html to a local _layouts/default.html file, and changing https://github.com/mmistakes/minimal-mistakes/blob/c8f4820d31c6b4c605ec96f74213df007c74c7cd/_layouts/default.html#L39
from {% include_cached scripts.html %} to {% include scripts.html %}
Copying the content of _includes/scripts.html to a local _includes/scripts.html file, and changing https://github.com/mmistakes/minimal-mistakes/blob/c8f4820d31c6b4c605ec96f74213df007c74c7cd/_includes/scripts.html#L28 from {% include_cached /comments-providers/scripts.html %} to {% include /comments-providers/scripts.html %}

Making these changes does output some Javascript errors in the console, unfortunately:

However, since the comments are now displaying, I see the Javascript errors as the lesser of two issues. Hence, I have deployed out this change to my site on Github Pages, and can confirm that comments are displaying there as expected.
I haven't made a PR with the changes I've outlined since it brings up JS issues and I cannot confirm that the issue exists for other comment providers, but am happy to provide any further information I may have neglected to put in this issue.

It's definitely the cached include. The scripts and all comment provider includes should be reverted back to normal {% include %}
Some use page variables that I glossed over when don't the original enhancement, and those can't be cached to work properly.

Hey!
I just notice this when you reverted it.... but I still have {% include_cached scripts.html %} in de default layout and include_cached in the scripts.html include my comments show perfectly
e.g. https://luispuerto.net/blog/2018/07/23/new-web-in-jekyll/
Are you sure the culprit is include_cached and you don't have something in your side @paulfioravanti ?
I'm asking because I also have a problem with the include_cached when I merged @mmistakes changes because I had this in my default layout.
{% include_cached scripts.html %}
{% include scripts.html %}

So de burger menu and the search icon stopped working till I removed {% include scripts.html %}.

Hey @paulfioravanti,
You are right about questioning running the gem and then overriding it with my files. Anyhow... I've commented the gem and run it locally in production and I got the same result.
I've done really few changes related to the comments, mainly CSS. So... I really don't know.


Add endpoint that returns app version info (#115)

This PR adds a REST API endpoint that returns app version info.
Closes #115

@ashleyvega @ValentinTrinque,
If this issue has a PR is there a reason we should not review and merge? (thinking about finishing started work?)


FLINK-23969 Test Pulsar source end 2 end

What is the purpose of the change
This pull request adds end-to-end test for pulsar source.
Brief change log

Add submodule flink-end-to-end-pulsar
Add class PulsarSourceE2ECase to test exclusive and failover SubscriptionType
SubscriptionType Shared and Key_Shared are complex and will be tested later
Related code in flink-connectors/flink-connectors-pulsar is modified

Verifying this change
This change added tests and can be verified as follows:

Extended integration test for pulsar source in different SubscriptionType

Does this pull request potentially affect one of the following parts:

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

Documentation

Does this pull request introduce a new feature? (no)

I have submitted another PR for this e2e test on Pulsar. Which contains all the test cases on four types of Pulsar subsciption. I think we can close this one.


fixe broken links

Manage users and access in Azure DevOps

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

ID: 4248a01c-87cf-b534-d3aa-c139265e47f3
Version Independent ID: 94e10c7f-f3a5-3b13-0ac3-9d6614bc19b5
Content: Change access levels for a user or group, manage access to features - TFS
Content Source: docs/organizations/security/change-access-levels.md
Product: devops
GitHub Login: @KathrynEE
Microsoft Alias: kaelli

@nikoNguyen - thank you for the feedback. I believe the link is now fixed.


Consider packageing Pattypan with JPackage to enable installation without user installed Java/JVM

We should consider creating standalone .exe (Windows), .dmg (MacOS), .deb/.rpm (Linux) binaries so that users of Pattypan do not need to have Java installed.
Things to consider:

Would it be valuable to migrate from Ant to Maven or Gradle? Seems like there are way better JPackage examples/support there.
Would updates be impacted?

Hi,
I'm working in a national public agency for bibliographic data in France and we are very interested by the plugin Pattypan to realize massive uploads of images in Wikimedia Commons.
We would like to offer the opportunity to use this plugin to the community of university libraries in France, to upload their digitizations on Wikimedia Commons, but we are facing two problems to do so

The libraries will not be able to use Pattypan with Java because it's too complex for their organizations
We don't know how to package the last version of Pattypan to install it without Java

We are particularly interested by the .exe version of the standalone binaries you could create, because all the libraries of our partnership are under Windows.
Do you think you will be able to work on this issue during the next few months or do you consider other issues / other works you have as higher priorities ?
Anyway, thanks for this issue and keep me in touch if you make progress on it,
Etienne

Just to complete my first comment, a former colleague told me about launch4j to package Pattypan and to create the .exe standalone binary we need.
Did you already try this solution ?
Etienne

Hi @ENOAbes!
I have personally no plans to work on this in the near future. I would, however, happily review contributions from others in case you find someone who can work on this.

Hi @Abbe98 and hi everyone,
The direction of my agency said it would be possible to pay someone to package Pattypan. We always need a .exe version of the plugin to allow our partners to use Wikimedia Commons in an efficient way.
So if you are interested or if someone of the Wikimedia Commons community is interested, you could contact me here or directly on my mailbox<EMAIL_ADDRESS>Thanks a lot !

@ENOAbes I will share this in my network and with some developers I know!

If you do not find anyone, I can be a fallback. I have some experience with launch4j since we use it in OpenRefine too :)

Wikimedia Sverige will work on this. Specifically we will be making a stand alone executable for Windows as @ENOAbes describes. I'll do most of the development and will update here when we have something of interest.

Here's a progress report before the holidays.
I've looked a few different ways to bundle Java runtime with Pattypan. Most of these created an installation file, i.e. a file that the user would download and run to install Pattypan somewhere on the computer, along with Java runtime. At least one tool could create an EXE that could be run without installing, but that could not include Java runtime, which would have to be downloaded separately and placed next to the EXE. Since Abes wanted a program that could be run without installing, none of these would work.
When I looked a bit wider (not just for Java specific tools) I found that you can create self-extracting archives with 7-zip. You can specify what command to run inside the archive when it's executed, so if you include both Java runtime and a Pattypan JAR you have everything you need to run Pattypan. What happens when you run the EXE is that its contents is unpacked to the user's temporary directory and run there. Since there is no persistent installation this is done every time.
The EXE has been tested on Windows by @lokal-profil and can be found over at https://github.com/sebastian-berlin-wmse/pattypan/releases/tag/untagged-7342897dcee7a8fc23f7. I ran into some weird errors during development, but that is likely due to running Windows in a, as it turns out quite unstable, virtual machine. If anyone wants to test it and encounters anything strange, let me know. There are a few rough edges still, but nothing that causes any actual problems:

When launching there are one or more popups warning about the program being from an unknown publisher. Saying that you want to run anyway will start Pattypan.
There is a command prompt window that launches Pattypan and remains behind it. It's closed when Pattypan is closed.
After closing Pattypan there may be a popup saying that it wasn't "installed correctly". Telling it that it was should remove it for subsequent executions.
There are some aesthetics that are lacking, like the icon (which could be from Windows 95🧓) and metadata for the program (shown in file description).

If there is still time after we established that everything works we'll have a look at these.
I've used Github actions to create the EXE. These should be usable on this repo to automatically build the EXE when a new release is made. Building a JAR is part of the process, so that can also be saved as an asset. Some changes needs to be made to include the JavaFX dependencies (these are bundled in the EXE with the Java runtime). If we want to switch Ant to something else, we should be able to keep most of the workflow and just change the JAR build action.
If you want more (technical) information on the development and decisions here are the relevant Pahbricator tasks: https://phabricator.wikimedia.org/T323119 and https://phabricator.wikimedia.org/T323121.

Hi,
Thank you for your report, I’m on holidays tonight, so I don’t have time to read it carefully, but we will answer you during the first or second week of january anyway.
Thanks a lot and we write you soon,
Best for the end of this year,
Etienne
Étienne Naddeo
Responsable du réseau archives et manuscrits | Service des Monographies et Autres Ressources - Dépt des Métadonnées et Services aux Réseaux
+33 4 67 66 86 53
227 avenue Professeur Jean-Louis Viala |CS 84308
34193 Montpellier Cedex 5
[http://www.abes.fr/var/abes/storage/images/media/images/logos/logo_abes_new/13043-1-fre-FR/logo_abes_new_large.jpg]
De : sebastian-berlin-wmse @.>
Envoyé : mercredi 21 décembre 2022 14:39
À : yarl/pattypan @.>
Cc : Etienne Naddeo @.>; Mention @.>
Objet : Re: [yarl/pattypan] Consider packageing Pattypan with JPackage to enable installation without user installed Java/JVM (Issue #152)
Here's a progress report before the holidays.
I've looked a few different ways to bundle Java runtime with Pattypan. Most of these created an installation file, i.e. a file that the user would download and run to install Pattypan somewhere on the computer, along with Java runtime. At least one tool could create an EXE that could be run without installing, but that could not include Java runtime, which would have to be downloaded separately and placed next to the EXE. Since Abes wanted a program that could be run without installing, none of these would work.
When I looked a bit wider (not just for Java specific tools) I found that you can create self-extracting archives with 7-ziphttps://www.7-zip.org. You can specify what command to run inside the archive when it's executed, so if you include both Java runtime and a Pattypan JAR you have everything you need to run Pattypan. What happens when you run the EXE is that its contents is unpacked to the user's temporary directory and run there. Since there is no persistent installation this is done every time.
The EXE has been tested on Windows by @lokal-profilhttps://github.com/lokal-profil and can be found over at https://github.com/sebastian-berlin-wmse/pattypan/releases/tag/untagged-7342897dcee7a8fc23f7. I ran into some weird errors during development, but that is likely due to running Windows in a, as it turns out quite unstable, virtual machine. If anyone wants to test it and encounters anything strange, let me know. There are a few rough edges still, but nothing that causes any actual problems:

When launching there are one or more popups warning about the program being from an unknown publisher. Saying that you want to run anyway will start Pattypan.
There is a command prompt window that launches Pattypan and remains behind it. It's closed when Pattypan is closed.
After closing Pattypan there may be a popup saying that it wasn't "installed correctly". Telling it that it was should remove it for subsequent executions.
There are some aesthetics that are lacking, like the icon (which could be from Windows 95🧓) and metadata for the program (shown in file description).

If there is still time after we established that everything works we'll have a look at these.
I've used Github actions to create the EXE. These should be usable on this repo to automatically build the EXE when a new release is made. Building a JAR is part of the process, so that can also be saved as an asset. Some changes needs to be made to include the JavaFX dependencies (these are bundled in the EXE with the Java runtime). If we want to switch Ant to something else, we should be able to keep most of the workflow and just change the JAR build action.
If you want more (technical) information on the development and decisions here are the relevant Pahbricator tasks: https://phabricator.wikimedia.org/T323119 and https://phabricator.wikimedia.org/T323121.
—
Reply to this email directly, view it on GitHubhttps://github.com/yarl/pattypan/issues/152#issuecomment-1361324110, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A26PIBMTBA6NQ4MRYPSS4TTWOMB65ANCNFSM5NYIFYMQ.
You are receiving this because you were mentioned.Message ID: @.***>

The EXE has been tested on Windows by @lokal-profil and can be found over at https://github.com/sebastian-berlin-wmse/pattypan/releases/tag/untagged-7342897dcee7a8fc23f7. [...]

You should be able to find it over at https://github.com/sebastian-berlin-wmse/pattypan/releases/tag/release-test

Thank you for the link. I didn't realise you had to be logged in to visit the other one. I've updated the original comment.

The EXE seems to work well enough that it could be added to upstream. @Abbe98, I made a PR for the changes, #173, do you think you can merge it?
I had to do a bit of fiddling to get the action to work when I last merged it. I don't think actions are added automatically just because you add YAML files for them and I ended up making a branch with an empty action and then adding the changes. Maybe you have more experience with Github actions. If there are any questions let me know🙂


resolve null when there is no output json

Some PowerShell commands don't return anything on success, such as Remove-SMBMapping -LocalPath Z: -Force.
This is avoids an error trying create a Result object from nothing.

Thank you @rsmarples


GitHub repository does not link to the project website url

As part of our ongoing effort to ensure all the websites within the CNCF meet the CLOMonitor guidelines, we noticed that Kubeclipper does not pass the website criteria on CLOMonitor.
To fix this:
Edit kubeclipper/community repository details. See Notary for example:

In the website section, add the link to the kubeclipper website. See Notary for example:

Once done, feel free to close this issue as CLOMonitor will recrawl the page and update accordingly.

done
/close


missing increment of counter

Hi guys,
Can it be than an fnum++ is missing in the feature vector creation at the link below?
https://github.com/mvaudel/ms2pip_c/blob/master/ms2pipfeatures_c.c#L1248
Seems like the N-term pI is overwritten?
Best regards,
Marc

If yes, same at copy-pasted code:
https://github.com/mvaudel/ms2pip_c/blob/master/ms2pipfeatures_c.c#L1280
https://github.com/mvaudel/ms2pip_c/blob/master/ms2pipfeatures_c.c#L1312
https://github.com/mvaudel/ms2pip_c/blob/master/ms2pipfeatures_c.c#L1344
But one additional is introduced later:
https://github.com/mvaudel/ms2pip_c/blob/master/ms2pipfeatures_c.c#L1420

You mean this?:
v[fnum] = 0;
if (peptide[pos] == 11) {
v[fnum] = 1;
}
fnum++;
Because that is correct....the feature is 1 only if "peptide" at position "pos" equals 11, otherwise it is zero...

yes sorry I was doing too many things at a time - do you have some documentation on the different features that you use?

nope...feature optimization is ongoing right now...


Kubernetes provider - add persistence of linkage between service and pods

@miq-bot add_label providers/containers

@miq-bot assign @simon3z

@miq-bot assign simon3z

@miq-bot assign @simon3z

@miq-bot assign @simon3z

Fixed with PR #2390. Can anyone close this? (may bad for not mentioning the issue in the commit) /cc @Fryguy @blomquisg


RuntimeError: Given input size: (512x1x7x7). Calculated output size: (512x0x4x4). Output size is too small

I try to use shorter clips to train. eg.15

If you are using C3D, that architecture requires minimum clip length of 16 frames.
You can see our pre-processing options here: https://github.com/MichiganCOG/ViP/blob/master/datasets/abstract_datasets.py#L61
By default, we loop clips that are below the minimum requirement.


[Feature Request] add https://react.dev/reference/react/Fragment

but how to name it is a problem. It shouldn't conflict with future HTML tags.
https://react.dev/reference/react/Fragment

For most of the cases, simply returning an array of elements would just work, e.g.:
const Blog = () => [
  Post({title: "An update", body: "It's been a while since I posted..."}),
  Post({title: "My new blog", body: "I am starting a new blog!"}),
]

const Post = ({title, body}) => [
  PostTitle({title}),
  PostBody({body}),
]

const PostTitle = ({title}) => h1(title)
const PostBody = ({body}) => article(p(body))

Try on jsfiddle
For elements created with van.bind, you can wrap them into a pass-through container (i.e.: span for inline elements and div for block elements).


feat: Added My Boot_Node

Added my enode so other users can sync faster

Appreciate it but not looking to add bootnodes atm!


SEO should be improved  to not serve older versions in Google

SEO should be improved  to not serve older versions in Google but this might have been fixed already to not serve v1.x results.

This is most probably done by @JorTurFer already but let's verify

Did https://github.com/kedacore/keda-docs/pull/609 solve this issue?
If not, is there a specific keyword or set of results you can share to help us understand the issue?


Scripts before meta data

Capo positions scripts before meta data.
There is an issue with that though. If a script in the head tag introduces a body tag - example with a Google Tam Manager script and advertiser could add in an  tag as part of their advert script for tracking, then when the page is read by Google (and probably other search engines) it will read the body tag and will assume it has reached the body and will from that point ignore any further head tags. This can lead to meta descriptions and canonicals being missed completely. My advice, because of this, has been to always put scripts last in the head unless you know what is in them - tag managers mean you will probably not.
But perhaps this is beyond the scope of this very good project!

Hey @simoncox. I think capo is doing the right thing here by recommending scripts before metadata as a general best practice. Of course, there may be circumstances where that might not be ideal, and it's ok to deviate from capo's recommendations.
It's also important to distinguish static vs dynamic validation. If the static head includes an invalid tag midway through, yes it will implicitly start the body and that will probably screw up how the rest of the contents get parsed. But if you have a script midway through the head and that dynamically injects some invalid markup like an iframe, I'm not so sure that it'll screw up the rest of the parsing. It probably depends on whether it's doing something like document.write in an synchronous script. I would expect GTM to do more dynamic injection if anything, but I could be wrong. Got any example pages where we could test this?

Sorry, not got any examples and it is kind of rare - probably because when it does happen its a limited advert run on a site and unluckily that the point where the page was crawled!
On reflection it is going to be up to me to point this out to site owners where they’re adding dynamic tags. Carry on, and ignore this!


add index.d.ts typescript definitions

Create default file index.d.ts with typescript definition exporting interfaces and methods.
With definition is easier to add on ts project and we do not receive warnings anymore.

If owners want to add, I can work on it.

Hey @thiagotakehana, thank you for creating this issue. This is a very welcomed enhancement. Please open a PR for it at your convenience. 🙌

@thiagotakehana this is now available @5.1.4 🎉
Thank you for contributing!


[Navigation Animation] Allow observing of navigation transition state

Is your feature request related to a problem? Please describe.
My root composable is a Scaffold which only shows top/bottom bars for the Bottom Navigation screens. Other screens have their own Scaffolds. The problem is, when I navigate with a slide-in animation from my bottom nav screens, the top/bottom bars of the root Scaffold are hidden before the slide in transition completes (because I'm observing the current screen in my root Scaffold and showing the top/bottom bars only if it's a bottom nav screen). This gives a bad UX and I'd like to keep the bars until the transition to the new screen completes.
// Common scaffold for Bottom Nav Screens
Scaffold(
    topBar = { if(currentScreen is BottomNavScreen) TopAppBar(...) },
    bottomBar = { if(currentScreen is BottomNavScreen) BottomNavigation(...) }
) {
    AnimatedNavHost() {
        // Bottom Nav Screens
        navigation(route = Main.route, startDestination = BottomNavScreen.Home.route) {
            composable(BottomNavScreen.Home.route) { HomeScreen() }
            composable(...) { ... }
            composable(...) { ... }
        }

        composable(Search.route, enterTransition = { slideInVertically() }, exitTransition = { slideOutVertically() }) {
            // Search Screen
            Scaffold(...) { ... }
        }
    }
}

Describe the solution you'd like
It'd be great if we can observe the nav transition state to hide the bars when the transition finishes, as suggested here https://kotlinlang.slack.com/archives/CJLTWPH7S/p1628271130295600?thread_ts=1628263708.267200&cid=CJLTWPH7S

Note that there is a pre-existing signal that the animations have completed - only once the animations complete does the Lifecycle of the current NavBackStackEntry move to RESUMED (it is purposefully capped at STARTED prior to the animations completing).
We can do more to make this an explicit signal though. What type of signal would you actually like? It seems like just having a Boolean signal of transition in progress wouldn't be quite enough for even your use case?

Something like this:
val isTransitioningToFullScreen = transitioningToFullScreen(transitionState.fromRoute, transitionState.toRoute)
...
if(currentScreen is BottomNavScreen || isTransitioningToFullScreen) { TopAppBar() }

where transitioningToFullScreen is a function I can define to check if we're transitioning from a BottomNavScreen to a screen where I want to hide the bars.
This is what comes to mind but not sure if this is the best way.

Apologies for not updating this issue sooner, but the API needed to handle this type of case was added in Navigation 2.4.0-alpha10 via the new visibleEntries property on NavController.
This API provides a StateFlow<List<NavBackStackEntry>> that not only includes the current NavBackStackEntry (i.e., the one returned by currentBackStackEntryAsState()), but also any transitioning entries. As per the docs, the currentState of the Lifecycle of each NavBackStackEntry gives you additional information on exactly which entries are in the process of completing their exit transition (CREATED), running their enter transition (STARTED), or are the current topmost entry (RESUMED).
This StateFlow is updated whenever an entry is added or removed, which means any Composable that is using collectAsState() will automatically recompose whenever the list changes, thus allowing any logic you use to feed directly into AnimatedVisibility or similar APIs to update the visible state of other composables.
For example, let's say you have three destinations that should have a bottom bar (let's call them A, B, and C) and F, a full screen destination. This API would let you express logic like:

If you're on A, B, or C or transitioning between them, keep showing the bottom bar
If you navigate from A, B, or C to F, only hide the bottom bar after the transition to F completes

val visibleEntries by navController.visibleEntries.collectAsState()
// Show the bottom bar only while A, B, or C are still on the screen
val bottomNavDestinationVisible = visibleEntries.any { backStackEntry ->
  // Use any logic you want here
  backStackEntry.isBottomNavDestination()
}
AnimatedVisibility(visible = bottomNavDestinationVisible ) {
  // Your Bottom bar
}

This logic would immediately start showing the bottom bar as soon as you start the return transition from F back to A, B, or C (as starting that transition would cause A, B, or C to start appearing in visibleEntries again).
If you wanted the bottom bar to only start reappearing after you've settled back to A, B, or C, you could instead use logic such as:
val bottomNavDestinationVisible = visibleEntries.any { backStackEntry ->
  // Use any logic you want here
  backStackEntry.isBottomNavDestination()
}
val returningFromFullScreen = visibleEntries.any { backStackEntry ->
  backStackEntry.route == "F" && backStackEntry.lifecycle.currentState == Lifecycle.State.CREATED
}
val showBottomBar = bottomNavDestinationVisible && !returningFromFullScreen
AnimatedVisibility(visible = showBottomBar) {
  // Your Bottom bar
}

Let me know your thoughts on this API surface and if it fits your requirements.

@ianhanniballake
I‘m also interested in this topic, first I wanted to achieve an effect like this,
https://user-images.githubusercontent.com/31311826/140655014-42f97e97-48b3-441d-843e-e5afc20b8ff0.mp4
The bottomBar will move along with the new screen
I have tried what you described above
* If you're on A, B, or C or transitioning between them, keep showing the bottom bar
* If you navigate from A, B, or C to F, only hide the bottom bar after the transition to F completes
val visibleEntries by navController.visibleEntries.collectAsState()
// Show the bottom bar only while A, B, or C are still on the screen
val bottomNavDestinationVisible = visibleEntries.any { backStackEntry ->
  // Use any logic you want here
  backStackEntry.isBottomNavDestination()
}
AnimatedVisibility(visible = bottomNavDestinationVisible ) {
  // Your Bottom bar
}

But the result of this seems to be that the bottomNavDestinationVisible is updated only when the navigation transition animation of the new screen is finished.
In other words, the bottomBar will execute the AnimatedVisibility and disappear only after the new screen is fully displayed.
https://user-images.githubusercontent.com/31311826/140655267-4865ebf8-7d9a-4a3e-ae91-e9d7689c7188.mp4
Then i tried this method
val navBackStackEntry by navController.currentBackStackEntryAsState()
val currentDestination = navBackStackEntry?.destination?.route

I used the log to output the currentDestination, which outputs once before navigating to the new screen and once after navigating to the end, so I used it to determine if the bottomBar was displayed or not, and it did work, but I ran into some problems
https://user-images.githubusercontent.com/31311826/140655416-c1f1b166-2212-446a-af49-1a9adb43a206.mp4
My code looks like this:
            AnimatedNavHost(navController = navController, startDestination = AppScreen.bluetooth.route) {
                ....
                composable(AppScreen.settings.route,) {
                    Settings(navController)
                }
                composable(
                    route = "Test",
                    enterTransition = { initial, _ ->
                        when(initial.destination.route) {
                            AppScreen.settings.route -> slideInHorizontally(initialOffsetX = { 1000 }, animationSpec = tween(700))
                            else -> null
                        }
                    }
                ) {
                    Test()
                }
            }

@Composable
fun BottomBar(
    navController: NavController,
    pages: List<Screen>,
    isShown: Boolean
) {
    AnimatedVisibility(
        visible = isShown,
        exit = slideOutHorizontally(targetOffsetX = { -1000 }, animationSpec = tween(700))
    ) { ... }

I don't quite clear why there are extra white blocks in the lower left corner of the video, so I would like to know what I should do to achieve the effect shown in my video at the beginning.
And I have some other problems, if I use AnimatedVisibility in front of the bottomBar, then if I have many different Screens, I need to write a lot of judgments related to the navigation animation, otherwise the bottomBar may interfere with the navigation.
Also, if I want to achieve this transition effect like Twitter....
https://user-images.githubusercontent.com/31311826/140655749-0eb76f97-96b9-4f65-ac0f-8d0c41f3c7c2.mp4
As you can see, its new screen and the screen with the bottomBar are separated, if the NavHost is nested inside the Scaffold as I wrote before, it should be difficult to achieve this effect, right?
If I want to achieve this effect, what should I do? And, is it recommended to use nested NavHost?

@Nthily - your use case is a separate issue, perhaps more related to #729 in that you're trying to build a shared element that doesn't animate when you transition between certain screens but is treated as part of the content and its transition when moving to another screen.
This issue is specifically for "Allow observing of navigation transition state", which is what visibleEntries give you - a state change once a destination starts animating and again when it ends animating.


Finished proof three lines lemma, all cases; simplified several proofs

~Now I am only missing a sorry in the generalized statement, but I am not fully convinced what I have to prove is true, so I may have to think about it more.~
EDIT: Now it works. I changed the auxiliary function to something that was clearly holomorphic (scaling everything instead of just the horizontal direction) and adjusted the inputs accordingly.
Also, is there an easier way of doing what I just did?
There were edits to the other half of the file in upstream/master. I had already committed some things to my fork and for some reason I had a merge conflict (despite the changes being unrelated).
The merge editor was also just accepting the lines I had removed two commits prior as genuine non-conflicting incoming changes from upstream, which made it impossible to resolve it on VSCode.
So I checked out to my own master, reset it to upstream master, then copy pasted all my changes from my local commits one by one into the new one (and now the project is not even building in my fork, I guess I forgot to run "lake exe cache get" ). This took me quite a while and I think it's just a matter of me not knowing how to use Github properly.

Thanks!
It's hard to say what went wrong with just merging master without seeing the specific tree.
What regularly helps is to first merge into an earlier commit on master, and then merge into master itself. Sometimes all these intermediate steps are clean merges, and still the single merge command can give you conflicts.
I especially recommend this after you make a pull request. First merge into the last commit before your PR was merged, then merge into the next commit (which should have most changes in your branch, and should therefore be clean) and then merge into master.
Hopefully this helps for next time.
If you are working on you


*: Upgrade fmtlib and print enum value explicitly

What problem does this PR solve?
Issue Number: close https://github.com/pingcap/tiflash/issues/8331
Problem Summary:
The latest version of fmtlib disables implicit casts from enum/enum class to int, which leads to compile error. We must resolve those errors with magic_enum::enum_name to print out the enum nam or fmt::underlying to print out the int value.
Reference: https://github.com/fmtlib/fmt/issues/3671
What is changed and how it works?

Upgrade fmtlib to v10.1.1
When we are sure the enum value has corresponding name, we use magic_enum::enum_name to cast it to string
When we are not sure the enum value has corresponding name, we use fmt::underlying to cast it to int

for example, the enum type defined in kvproto/tipb

For some classes, we implement a format_as function to make it printable by fmtlib

MppVersion/MPPDataPacketVersion/StringRef/SettingInt/SettingFloat/SettingDouble

Check List
Tests

[ ] Unit test
[ ] Integration test
[x] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

None

/run-all-tests

/run-all-tests

/run-all-tests

/run-all-tests

/run-all-tests

/run-all-tests


Migrate CI to github Actions

Move from travis to Github Actions for build/test/release
Signed-off-by: Alistair Hey<EMAIL_ADDRESS>Description
Fixes #226
https://github.com/openfaas/faas/issues/1585
How Has This Been Tested?

Checklist:
I have:

[x] checked my changes follow the style of the existing code / OpenFaaS repos
[ ] updated the documentation and/or roadmap in README.md
[ ] read the CONTRIBUTION guide
[x] signed-off my commits with git commit -s
[ ] added unit tests

The Travis file needs to be removed and we have e2e tests that currently run. We need those also.

The Travis file needs to be removed and we have e2e tests that currently run. We need those also.

https://github.com/openfaas/ofc-bootstrap/pull/227/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52R34
^ adds make all to run all previosly run jobs
travis file is removed

@Waterdrips please can you run through the steps in this comment? https://github.com/openfaas/faas/issues/1585#issuecomment-725343317
In particular the setup go action needs to be used.


Updating Chart with secret volumes

Chart did not have volumes for the secrets for securityConfig.
Signed-off-by: Harrison Goscenski<EMAIL_ADDRESS>Description
Resolves #42
Issues Resolved
#42
Check List

[ ] Commits are signed per the DCO using --signoff

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.

@hgoscenski-imanage This looks a duplicate of #31 . Can you please have a look at it?

@TheAlgo it sure is! My apologies.


Allow guests to see the results of tests Visual Studio Code

Hi! I've found Live Share to be an invaluable resource for remote pair programming with my collegues, so thanks for all your work!!
One thing that is a bit of a productivity dampener is the fact that we can't share test results easily. Especially if you follow some kind of TDD flow.
This is related to issue https://github.com/MicrosoftDocs/live-share/issues/33 and as per the last comment on that issue, there was no point in working on this since VS Code doesn't have native test explorer. Well, now it does!
I would love to at the very least be able to share the "Output" panel (the thing at the bottom next to the terminal, which is shareable!) so that my remote peer can see the results.
More fancy integration with the "Testing" tab might be nice, but personally I only press the little "run test" prompts in my code and look at the "Output" panel.

Thanks for taking the time to file this issue to submit this request. Unfortunately, we’re not able to prioritize new features like this over the other current areas of focus on the team. We understand that this may be disappointing. We appreciate your input and comments on this issue till now.


Add ScotQuan as a SIG

https://github.com/compsoc-edinburgh/constitution/blob/6a404bde41083092ca53d4cfaaef1892cd85c858/sections/sigs.tex#L53-L54

@compsoc-edinburgh/committee  Is this still relevant? Has it been approved at an EGM?

Doesn't seem like scotquan is still around.


[WIP] - Jenkins CI / CD Testing - Nothing to see here, carry on

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Closing this as the needed PR testing is complete and has been implemented in team workflow


Implement more cheatcodes, based on existing ones and foundry

I'll split this task on smaller ones.


rnv can't find connected device

Describe the bug
RNV can't find tvos(might be happening with other devices also) device even if it's connected and xcode shows it
To Reproduce

Connect tvos device to your computer via cable
Optional - open xcode to see if it's really connected
Run npx rnv run -p tvos -d

Expected behavior
Device is connected and rnv can find it
Screenshots or copy&paste

Desktop (please complete the following information):

OS: osx
Node Version v16.18.0
RNV Version 0.37.0-canary.11

Same issue with ios.
I've tested on RNV Version: 0.37.0-rc.1


Fix Issue 17640 - std.concurrenct writeln conflicts with std.stdio writeln in unittests

Arguably the version(unittest) trick was a bad idea. As a workaround to achieve a similar output, let's use __gshared.
Moreover, I moved the sending of the success notification into the receive function, s.t. it's send after the first message has been received ...

Regression or critical bug fixes should always target the stable branch.

This can be ignored as the commit isn't on stable yet.
Btw @CyberShadow any insight what's wrong with the auto-deploy? The prerelease page still has no public example, whereas locally it's rendered correctly:

Oops, fixed it!


refactor: Report inventory loading errors

Issue #157

I'll have a few style suggestions, hold up

https://github.com/oprypin/mkdocstrings/commit/e3ccb943b83a2d0c703a954eeeef3f28f6af2c16  is my style suggestions.
In fact at this point I took out ChainMap, it's just a hinderance and doesn't do anything smart whatsoever.
The edited code is untested.

Ah yes the edited code doesn't work :D

Impressive that there is test coverage for this 😊
https://github.com/mkdocstrings/mkdocstrings/blob/e5522af09d9a4b88cec9e3215b9db66865339d2f/tests/test_inventory.py#L38

Thanks, great suggestions!

Impressive that there is test coverage for this blush

Haha yeah :sweat_smile:? Is this how you found out your edited code didn't work?

Suggestions applied :slightly_smiling_face:

Yes :)
Nice

Anything else? Care to approve :slightly_smiling_face: ?


from npm run dns - if certs not issued, throws request error

This line: https://github.com/arc-repos/arc-workflows/blob/master/src/dns/04-create-domain.js#L41 will throw an exception if the domain hasn't finished issuing the SSL certificates. In my case, the prod domain had been issued, but the *.domain.com had not, so this was throwing inside of arc:
❯ npm run dns

><EMAIL_ADDRESS>dns
> AWS_PROFILE=arc AWS_REGION=us-east-1 arc-dns

Found Route53 hosted zone domain.io

Please ensure your domain registration is using these nameeservers:
ns-1119.awsdns-11.org.
ns-23.awsdns-02.com.
ns-1940.awsdns-50.co.uk.
ns-875.awsdns-45.net.

/Users/remy/Sites/domain/node_modules/aws-sdk/lib/request.js:31
            throw err;
            ^

TypeError: Cannot read property 'CertificateArn' of undefined
    at Response.<anonymous> (/Users/remy/Sites/domain/node_modules/@architect/workflows/src/dns/04-create-domain.js:41:96)
    at Request.<anonymous> (/Users/remy/Sites/domain/node_modules/aws-sdk/lib/request.js:364:18)
    at Request.callListeners (/Users/remy/Sites/domain/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
    at Request.emit (/Users/remy/Sites/domain/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
    at Request.emit (/Users/remy/Sites/domain/node_modules/aws-sdk/lib/request.js:683:14)
    at Request.transition (/Users/remy/Sites/domain/node_modules/aws-sdk/lib/request.js:22:10)
    at AcceptorStateMachine.runTo (/Users/remy/Sites/domain/node_modules/aws-sdk/lib/state_machine.js:14:12)
    at /Users/remy/Sites/domain/node_modules/aws-sdk/lib/state_machine.js:26:10
    at Request.<anonymous> (/Users/remy/Sites/domain/node_modules/aws-sdk/lib/request.js:38:9)

ah, interesting, wonder if the right fix here is to check for issued like this:
https://github.com/arc-repos/arc-workflows/blob/master/src/dns/04-create-domain.js#L34
but in step 2 here:
https://github.com/arc-repos/arc-workflows/blob/master/src/dns/02-ensure-certs.js#L8-L12
so as to ensure its in the state we want…moreso than checking for a state we don't want
(thots here most welcome / this is a newer part of the code so its def not super hardened)


Does new package name require changes to associated go libraries

Describe the bug, including details regarding any error messages, version, and platform.
See https://github.com/apache/arrow-adbc/issues/2290
Component(s)
Integration

Yes, the new package name does require changes to the associated go libraries.


Suspicious GCP Storage Activities Story and Open GCP Bucket Detection

hey @davisshannon : fixed formatting in the ymls for validation on CI to pass and created a new PR:  PR_609  leveraging the content you contributed.
Thank you!


Send message from webview's page to the app

Is there a way to send data from the HTML to the page when the user taps on a button or something in the webview?
What I'm looking for is basically the equivalent of this library that I can embed in the webpage which would send a value to the app on its terms, not page load.

Closing this as I solved it.
On the web page side, I setup a condition as such:
// I'm using PHP here with jQuery.
<? if ($react_native)  { ?>
<script>
$(function() {
  $("h1").click(function() {
    var data = JSON.stringify({"clickedElement": "h1"});
    WebViewBridge.send(data);
</script>
<? } ?>

This way, if the user isn't accessing this page from the WebView,
they won't have errors in the console log.
This works pretty great. Hopefully it'll be useful to someone.

@Naoto-Ida hello, maybe I have the same issue as you.
In the RN I use the webview to visit a website and the website was return a json data. I want to know in RN how to fetch this json, because I need this json to do next step. Thank you.

@huangxiaohao Are you trying to get a JSON from the website on page load?

@Naoto-Ida thank you for your reply!
I was visit a the third party website page, not my html page, that mean when I finish my operation, the  third party website page will return a json data, and I can not do anything in the third party website page. I don't know this describes whether you are clear.

@huangxiaohao
Ah, I think I know what your trying to do.
So on the third-party website there is a variable containing JSON?
I would do something like this:
const injectScript = `
  (function () {
                    if (WebViewBridge) {

                      WebViewBridge.onMessage = function (message) {
                        if (message === "hello from react-native") {
                          WebViewBridge.send(JSON.stringify(YOUR_JSON_VARIABLE_NAME);
                        }
                      };

                      WebViewBridge.send("hello from webview");
                    }
                  }());
`;

YOUR_JSON_VARIABLE_NAME would be the variable name on the third party website.
Send back the value with the inject script.

@Naoto-Ida I'm so sorry for reply you too late, because I met a problem when I installation this component. That take me a lot of time to resolved. But so far,I have no idea to resolve it. :(

@huangxiaohao
Ah, what version of RN are you using?
If it's over 0.40, you should check this out.

@Naoto-Ida
yeah ... my RN version is "react-native": "0.41.2", over 0.40.
And there are issues in there , I think maybe you're right.

Should I use this component react-native-wkwebview in my project?
And I'm not an ios developer, and I don't use the OC, so I so happy that you can help me.
thanks a lot again!!!

@Naoto-Ida  hey, thanks a lot. I tried to do what you tall me, and I didn't use the react-native-wkwebview
I change my four files like RCTWebViewBridge.h according to Fix iOS imports on RN0.40+ and replace UIWebview with WkWebview , and it was success.
But there have an error in it when I import the component, import WebViewBridge from 'react-native-webview-bridge';
error message:
'WebViewBridge' has no propType for native prop 'RCTWebViewBridge.keyboardDisplayRequiresUserAction' of native type 'BOOL' If you haven't changed this prop yourself, this usually means that your versions of the native code and JavaScript code are out of sync. Updating both should make this error go away.


Add support for Vary: Origin for COS?

I don't fully understand it, but it may be useful to support it. https://textslashplain.com/2018/08/02/cors-and-vary/

The mozilla page about cors states:

If the server specifies a single origin (that may dynamically change based on the requesting origin as part of an allowlist) rather than the "*" wildcard, then the server should also include Origin in the Vary response header to indicate to clients that server responses will differ based on the value of the Origin request header

If I recall correctly, that's mostly because of Caching reasons:
If a resource is used with two different origins and cached by the browser, the browser might use the value of the cached Access-Control-Allow-Origin, which would only allow the first origin.

Right, but from what I've read, it needs to be put on every request even if those requests are not dynamic on Origin, otherwise caching may happen. So I'm not totally sure how that would fit in (fully-formed responses are not modified by the decorator, and I want to keep it that way). I'm comfortable for now leaving it up to the user.


Does it mean that by default, there is no encryption of disks?

Hi,
I read the following features of the encryption -
Encrypting the OS volume to protect the boot volume at rest in your storage.
Encrypting data volumes to protect the data volumes at rest in your storage.

Does it mean that by default, these disks are not encrypted when at rest? As in, not even by the service managed keys?
Thanks,
Pranav

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

ID: 7c60e59e-b306-3b47-dcad-56a3c03de428
Version Independent ID: 95ea9500-3d2e-6bef-a743-86e660e1ca86
Content: What is Azure Disk Encryption?
Content Source: articles/security/azure-security-disk-encryption-overview.md
Service: security
GitHub Login: @msmbaldwin
Microsoft Alias: mbaldwin

I just noticed that this is indeed true that it is by default encrypted. Can we add some documentation/clarification about this?

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

Hey @blueelvis it does mention in many places in the docs that the disks can be encrypted at rest, however these items are settings. I don't believe that we should list every default setting for reference.
Let me engage with some more people to determine next steps here. Stay tuned, and thanks for your feedback!

@FrankHu-MSFT - I agree that we should not list every default setting for reference. Maybe just create a separate page listing the following?

Encryption At Rest?
Encryption in Flight?
Allows Bring Your Own key Scenarios?

Thanks,
Pranav

Hi, @blueelvis. The Azure encryption overview article in our Azure Security Fundamentals site provides a summary of both Encryption at Rest and Encryption in Transit.  It links to an article specifically on Azure Data Encryption-at-Rest, which includes a section on key management models. Thank you! #please-close


Add Razor Pages to Roadmap

In one of your talks I believe you mentioned wanting to integrate Razor Pages into your sample. I'm not seeing that in the Roadmap. Are you still planning to add it? I would much appreciate it.
Thanks!
Laurie

Hi Laurie, thanks added to project roadmap. A heads up - I'm keen to see this happen, but I am not sure when it will be ready.

Also, did you see this repo - https://github.com/jbogard/ContosoUniversityDotNetCore-Pages. It's awesome.


It would be useful if the umple command-line compiler would tell users where the main method(s) are located

If a namespace is specified, as in the following example:
namespace microwave;
class Microwave {
  a;
  sm {
     s1 {
       after(1) -> s2;
     }
     s2 {}
  }
  public static void main(String[] argv) {
    Test t = new Test("aaa");
  }
}

and then the user runs
java Microwave

An error is produced:
Error: Could not find or load main class Microwave
Caused by: java.lang.ClassNotFoundException: Microwave

This is because the namespace directive causes everything generated to be in a subdirectory. The command line:
java microwave/Microwave

will work. However, it would be a nice improvement, to avoid this sort of confusion, to add a line after where it says
Success: Processing Microwave.ump

to locate the class(s) with the main program(s), if there are any, and to output
To run the main program, enter 'java microwave/Microwave'


Use random number generators, not global seeds

Fixes #52
This PR removes the use of global seeds to control numpy randomness throughout the source

Actually the tutorial experiment no longer converges after these changes. Need to look further into it

Actually the tutorial experiment no longer converges after these changes. Need to look further into it

False alarm, the new generator was just giving a particularly bad sampling with that seed so config recovery couldn't bootstrap. Changing the seed brought things back to normal

The notebooks need to be updated too, to use a single random generator rather than repeatedly passing the same integer seed.

So this means all of the functions need to be updated to accept a Generator?

The notebooks need to be updated too, to use a single random generator rather than repeatedly passing the same integer seed.

So this means all of the functions need to be updated to accept a Generator? We can deprecate the usage of int for rand_seed and move to this. I just want to make sure I understand best practices

Any function that accepts a seed should immediately pass the seed to np.random.default_rng. So the type of seed is the type of a valid input of np.random.default_rng. I never quite figured out the correct type annotation for that, but I think int | np.random.Generator | None will do.


Add Dijkstra's Algorithm for Pathing

This branches from move-units-with-go-to-button.
With this implementation, the weight of each edge is calculated with the newly added Tile.MovementCost function:
public int MovementCost() {
	return overlayTerrainType.movementCost;
}

This method probably doesn't belong in C7GameData, and in the future Dijkstra's will need to consider other factors such as units blocking the path, cities, and roads. Furthermore, this implementation does not consider that units can always use their remaining movement point to move onto any tile, so sometimes units will take a suboptimal path.
The implementation also returns the path as soon as the destination tile has been visited, however in the future when multiple units are either pathing from the same starting tile, or one unit is attempting to discover a subpath to the same destination, it may be better to compute the shortest path to all tiles once and re-use the result for multiple units.

I realized that in order to write proper integration tests for this (which we definitely should), it will require a lot of boilerplate or a refactor / improvement of the current GameMap to make it easier to programatically generate maps. The latter should probably be done in order to make testing all forms of pathing (and other game scenarios potentially) easier, so it may be good to make an issue and PR for a better C# interface for scripting basic maps and scenarios, but I'd like to get people's thoughts on this.

In short, I agree.  Being able to write tests around maps more easily would be a very good thing.  Whether that's directly programmatically, or just being able to point to a JSON file that defines a super-simple "map" for the purposes of testing.
It would help with AI testing as well.  While the "what should the AI do?" part is somewhat subjective, the "how should the AI try to do that?" involves steps that would lend themselves well to tests.

I created https://github.com/C7-Game/Prototype/issues/220 to address testability since this will require a decent amount of refactoring and new code.

Sorry about not getting to this yet; I thought it was like 700 lines but it turns out about 550 of them are whitespace.  So it's a lot closer to the length I would have expected.  Examining now...

@QuintillusCFC I've address all the feedback you left so it should be fine to merge now


Repeat flag to fill with transparency

As it stands, if you try to render a texture outside of its boundaries, it'll do one of 3 things, depending on the Repeat import flag:

Draw the closest pixel row over and over, with Repeat disabled.
Repeat the texture over and over, with Repeat enabled.
Repeat the texture mirrored over and over, with Repeat set to mirrored.

My issue is that, in order to greatly simplify a lot of shaders that need to draw outside of a Sprite's texture boundaries, such as a bloom shader, it would be very useful to have a fourth option here, that treats all pixels outside of the texture's boundaries as transparent, so that a shader can properly detect the texture's alpha outlines.
As an example of what this would accomplish, I've written an outline shader that, in order to avoid the cut-off you see around the edges in the 2D material demo, extrudes the Sprite's vertices and then re-maps the UV to draw the sprite as it usually looks, thus creating would-be empty space around the texture that the shader can draw to.
Issue is, with the current behavior of either repeating the closest pixel row/column or repeating the texture in this area, it ends up looking like this:

As you can see, the UV scaling and the vertex extrusion works fine, but the texture extends the closest rows outward.
(The Enabled checkbox disables the entire shader code, in case that isn't obvious.)
Would it be possible to add a fourth behavior for this? I think most people would intuitively expect Repeat: Disabled to behave like what I'm asking for instead of drawing garbage rows, but making it another option entirely would work too, in case something like this is more taxing on the GPU or something.

There is nothing godot can do about this, that's how GPUs work. You'll need to deal with that on your shader.

Ah, I see. Alright.


The parent componet options changes might be applied to  child component  …

Changes on options :  draggable or& resizable on the parent component  should be sent to the child component
It might usually be used

why did you close this?


[bug]: 3.6.0 UI changes feedback - lack of UI hinting/flow, commonly used parameters are harder to find

Is there an existing issue for this?

[X] I have searched the existing issues

OS
Linux
GPU
cuda
VRAM
24
What version did you experience this issue on?
3.6.0
What happened?
Some feedback on 3.6.0's UI changes.
Personally I feel like some of the 3.6.0 UI changes are a bit of a step backwards in terms of usability and flow.

Commonly used parameters such as the scheduler, steps and cfg scale are now buried within an "advanced" drop down.

I don't see how these are at all advanced, they're very frequently tweaked and tuned depending on your desired outcome and previous attempt iterations.
Having them hidden away means more clicks to get work done and the "advanced" drop downs lack obvious UI hinting and do not always stay opened between browser sessions, clients etc....

There is a lack of 'hinting' in the UI (colour/flow), this seems worse or perhaps is just more obvious with the UI changes in 3.6.0.

Section titles, Option titles, parameter names, input fields and drop down boxes all have the same styling. This means as a user your eyes aren't naturally drawn to specific areas of the UI which helps to create a sense of "flow" when using an application.
I've annotated a screenshot below which hopefully makes sense 😅.
To be clear, I'm not having a whinge - I really appreciate everything InvokeAI has brought to the table. This is purely intended as constructive feedback.
Screenshots

Additional context
No response
Contact Details
No response

I agree. New UI needs more contrast. It's the same gray everywhere without any real shading.

I agree. New UI needs more contrast. It's too similar grays everywhere without any real shading.

3.6.2 doesn't appear to have resolved many (any?) of the UI issues.
For example, after selecting "use all" or "use seed" from an image - the seed is still buried (missing / hidden) in the parameters:

Sorry for the lack of response here. Appreciate the feedback @sammcj (which has been largely echoed by many users). It's clear we need to do another pass at the UI.

Having them hidden away means more clicks to get work done and the "advanced" drop downs lack obvious UI hinting and do not always stay opened between browser sessions, clients etc....

We've fixed the not-staying open issue, I think it's not released yet. The accordions and expanders state is persisted across reloads (and tab switches).

Is this "bug report" still relevant after almost one year of development and UI changes, and more than 27 releases of Invoke? Perhaps, the user might verify with a current version of Invoke if any of the things he highlighted are still relevant today.