unexpected results in inference with increased maximum sequence length

❓ Question
import transformers

name = 'mosaicml/mpt-7b-instruct'

config = transformers.AutoConfig.from_pretrained(name, trust_remote_code=True)
config.max_seq_len = 4096 # (input + output) tokens can now be up to 4096

model = transformers.AutoModelForCausalLM.from_pretrained(
  name,
  config=config,
  trust_remote_code=True
)

I'm using the recommended approach by HF to increase the length using Alibi, but I'm getting really poor results. It can't even correctly tell me what comes after 2000; I get empty string outputs or meaningless results。
Additional context
here are some examples ：
input:    "please tell me what is the next number ?" + ' '.join([str(i) for i in range(1000)])
output: 'The next number after 0,1,2,3...999 is 1000'
input: "please tell me what is the next number ?" + ' '.join([str(i) for i in range(2000)])
output:  ''
input: "please tell me what is the next number?" + ' '.join([str(i) for i in range(2000)])
output: "The first thing you can do to help your own personalised with guidance and support services, so we will be able to make sure it's safe for our favourite pet dog in this section of course 0.001]]. The most important part of my life was born as well but also have some people who are not only because they're very helpful when I am going to use their ability to get back into the world class[.]\nThe following were written by using the same.[]\n\n  the best way to start getting ready to take advantage to find out how much time spent on the process which could be found at least [the value]'. This would like to know about the latest reports from being too long ago given to check rules over the decision to stay away from the possibility to look up to spend the last decisions to attend without having been made available to rule or any other words)\n\n## What’s happening today?”\n\n#### To improve Our mission statement “This”\n\n## A few months later.”\n\n## You may need to read the text below\n\n## And finally decided to write something else\n\n## That has been done\n\n## There are no longer\n\n## An example of the city\n\n## It should be obvious\n\nTo put them\n\nA manhattan\n\nYou might Notional\n\nIf you don’t want to work\n\nAncient\n\n“It’Selling\n\nIn general, there are six different ways to attractiveness\n\nI think writing\n\nIsolated IncognitoESCAPEPEACEUVICECTIONDESKTOPICIPEDESPECTIVE DESIGNATESpecialized DesigneespecializeDesignDesignedEspecially DesignedespecializeDESIGNEDESPECTDESTINE DESCRIPTIONDESIREDESCRIPTEDESPECTDESINE DESIGENTSpecializingDESIGNESSIPDESIREDESPECTINGDESIGNESPECTDESINE DESIDESpecializespecialitiespecialismspecializedDESIGNSDESIDESTDNDESILDESINEIDSpectingDESIGNESPECTIMERSpecialismidesimpleDESIGNESPECTIMEISLESpecializedDESDESMANDESpecializedDESETDESINELLEDESPECITYDESERVICESpecializedDESERTDESINEUXESpecificatespecialisespecialsitespeciousdeservespecitingDESECTDESULTESpecialitiespecialistencespecitableDESDDESPECTDESINEATTRACTED"
here is my python script
from typing import Any, Dict, Tuple
import warnings

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, AutoConfig
from transformers import StoppingCriteria, StoppingCriteriaList

INSTRUCTION_KEY = "### Instruction:"
RESPONSE_KEY = "### Response:"
END_KEY = "### End"
INTRO_BLURB = "Below is an instruction that describes a task. Write a response that appropriately completes the request."
PROMPT_FOR_GENERATION_FORMAT = """{intro}
{instruction_key}
{instruction}
{response_key}
""".format(
    intro=INTRO_BLURB,
    instruction_key=INSTRUCTION_KEY,
    instruction="{instruction}",
    response_key=RESPONSE_KEY,
)

class InstructionTextGenerationPipeline:
    def __init__(
        self,
        model_name,
        torch_dtype=torch.bfloat16,
        trust_remote_code=True,
        use_auth_token=None,
    ) -> None:
        config = AutoConfig.from_pretrained(model_name, trust_remote_code=True)
        config.max_seq_len = 4096
        self.model = AutoModelForCausalLM.from_pretrained(
            model_name,
            torch_dtype=torch_dtype,
            use_auth_token=use_auth_token,
            config = config,
            trust_remote_code=True,
        )

        tokenizer = AutoTokenizer.from_pretrained(
            model_name,
            trust_remote_code=trust_remote_code,
            use_auth_token=use_auth_token,
        )
        if tokenizer.pad_token_id is None:
            warnings.warn(
                "pad_token_id is not set for the tokenizer. Using eos_token_id as pad_token_id."
            )
            tokenizer.pad_token = tokenizer.eos_token
        tokenizer.padding_side = "left"
        self.tokenizer = tokenizer

        device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
        self.model.eval()
        self.model.to(device=device, dtype=torch_dtype)

        self.generate_kwargs = {
            "temperature": 0.5,
            "top_p": 0.92,
            "top_k": 0,
            "max_new_tokens": 512,
            "use_cache": True,
            "do_sample": True,
            "eos_token_id": self.tokenizer.eos_token_id,
            "pad_token_id": self.tokenizer.pad_token_id,
            "repetition_penalty": 1.1,  # 1.0 means no penalty, > 1.0 means penalty, 1.2 from CTRL paper
        }

    def format_instruction(self, instruction):
        return PROMPT_FOR_GENERATION_FORMAT.format(instruction=instruction)

    def __call__(
        self, instruction: str, **generate_kwargs: Dict[str, Any]
    ) -> Tuple[str, str, float]:
        s = PROMPT_FOR_GENERATION_FORMAT.format(instruction=instruction)
        input_ids = self.tokenizer(s, return_tensors="pt").input_ids
        input_ids = input_ids.to(self.model.device)
        gkw = {**self.generate_kwargs, **generate_kwargs}
        with torch.no_grad():
            output_ids = self.model.generate(input_ids, **gkw)
        # Slice the output_ids tensor to get only new tokens
        new_tokens = output_ids[0, len(input_ids[0]) :]
        output_text = self.tokenizer.decode(new_tokens, skip_special_tokens=True)
        return output_text

class StopOnTokens(StoppingCriteria):
    def __call__(self, input_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs) -> bool:
        for stop_id in stop_token_ids:
            if input_ids[0][-1] == stop_id:
                return True
        return False

model_path = '/home/work/data/models/generate_models/mosaicml_mpt-7b-instruct'
generate = InstructionTextGenerationPipeline(
    model_path,
    torch_dtype=torch.float16,
    trust_remote_code=True,
)
stop_token_ids = generate.tokenizer.convert_tokens_to_ids(["<|endoftext|>"])

def generate_text(instruction, temperature=0.1, top_p=1, top_k=0, max_new_tokens=512):
    if temperature < 0.1:
        temperature = 0.0
        do_sample = False
    else:
        do_sample = True

    stop = StopOnTokens()
    gkw = {
        **generate.generate_kwargs,
        **{
            "max_new_tokens": max_new_tokens,
            "temperature": temperature,
            "do_sample": do_sample,
            "top_p": top_p,
            "top_k": top_k,
            "stopping_criteria": StoppingCriteriaList([stop]),
        },
    }

    response = generate(instruction, **gkw)

    return response

It is not the case that 1 number == 1 token. If you are putting that string into the template, that is 3,249 input tokens. ALiBi allows length extrapolation, but the quality does fall off as you go beyond the training length.
Another factor here is that instruction tuning examples in the wild are short; the ones we used were on average much shorter than the 2048 max, and we have found that performance starts to degrade around 1500 tokens.
We are working on curating longer instruction following data.
As a final note, putting the task at the beginning of the prompt makes it harder, I would try
inp = PROMPT_FOR_GENERATION_FORMAT.format(instruction=' '.join([str(i) for i in range(2000)]) + "\nplease tell me what is the next number?")

Not certain, but the model has a better chance with that


Trying to figure out lm-sensors

Issue description
I'm trying to get lm_sensors to work as the fans won't stop blowing at what seems like full speed or 80 - 90% full speed.
Steps to reproduce
I ran sudo sensors-detect with the defaults - it took me through the scanning steps and finished with.
Now follows a summar of the probes I have just done.

Driver `coretemp':
  * Chip `Intel digital thermal sensor' (confidence: 9)

Do you want to generate /etc/sysconfig/lm_sensors? (yes/NO):
To load everything that is needed, add this to one of the system
initialization scripts (e.g. /etc/rc.d/rc.local):

#--- cut here ---
# Chip Drivers
modprobe coretemp
/usr/local/bin/sensors -s
#--- cut here ---

You really should try these commands right now to make sure everything
is working properly. Monitoring programs won't work until the needed
modules are loaded.

Unloading i2c-dev... OK
Unloading cpuid... OK

$

In which it said I needed to add something to my kernel modules but I'm not really sure what that means or how to do that.
Then sudo pwmconfig but it gave me There are no pwm-capable sensor modules installed.
I did some digging and realized I need to set these things up in my configuration.nix file. Not really sure what to put in there though.
I'm still relatively new to Nixos but I'm proud to say I got it installed and working on my machine so much faster than I got Arch linux running on my Mac Book Pro thanks to the nixos-install process which made it all relatively trivial. Now I just need to iron out the kinks and get musnix working!
Technical details

System: Acer Predator G9-792-74YC

NixOS: 16.03.1299.a8e0739 (Emu)

Nix version: 1.11.2
Nixpkgs version: 16.03.1299.a8e0739 (Emu)

Maybe mbpfan can help?

How so?
Does the Acer Predator have the same sort of hardware as a MacBook Pro?
More importantly, I'm still learning / tweaking knobs per se... So an example or some sort of documentation would be greatly appreciated. Thank you so much for your time.

Sorry, I confused with the Mac Book Pro mentioned in the last paragraph.

IIRC, with recent hardware the BIOS manages fans, exposing controls through ACPI thermal zones.
If the fans are running 80-90% capacity, use sensors from  lm_sensors with the coretemp module to see if the processor cores are hot. If they're at room temperature, then you might have a problem...

@jcumming thanks! That sounds accurate. My issue primarily is Im still new to some of the Nix concepts and I'm not sure what to do with the sensors info or how to configure lm_sensors for a NixOS environment?
I'm on my phone at the moment but generally the output from sensors indicates the cores running nice and cool right around room temp.
I haven't seen any settings to control fan speed from the bios (f2 boot menu)?
I think my main issue is Im not really sure how to configure lm_sensors for NixOS? And I haven't seen much in the way of documentation for fan speed control. That or I'm just missing some rudimentary understanding of Linux which is also highly likely as I'm coming at this from being terminal happy on MacOSX.

@erlandsona: Maybe this configuration.nix file snippet will help you:
  # Enable many sensors (try running "sensors" now and see the
  # difference). Module names were found by running "sudo sensors-detect".
  boot.kernelModules = [ "coretemp" "nct6775" ];

So I added boot.kernelModules = [ "coretemp" ]; to my /etc/nixos/configuration.nix. Saved and ran sudo nixos-rebuild switch.
Fans are still blowing at 80% and sensors is showing ~80ºF (~30ºC) temps for the cores...
My current configuration.nix can be found https://bitbucket.org/erlandsona/.dotfiles/src/2b73da3b961265539d997372f525bcde45984d5a/configuration.nix?at=master&fileviewer=file-view-default
It's only ~120 lines so I definitely feel like I'm missing something obvious...
Also network manager isn't working right? I'll add my hardware-configuration.nix to the repo as well...
Thank you all so much for your time helping me with this. I really want to use nix because the philosophically this os will save me loads of headache down the road. But it does feel a bit like learning Vim at the moment.

Extra info... I've got a Killer Networking 1535 wireless chip in the machine... maybe this is relevant for networking?
http://www.killernetworking.com/product-support/knowledge-base/17-linux

My current configuration.nix can be found https://bitbucket.org/erlandsona/.dotfiles/src/2b73da3b961265539d997372f525bcde45984d5a/configuration.nix?at=master&fileviewer=file-view-default

It requires a login.

Extra info... I've got a Killer Networking 1535 wireless chip in the machine... maybe this is relevant for networking?
http://www.killernetworking.com/product-support/knowledge-base/17-linux

Probably. (Sorry, cannot help.)

Oh my bad! Didn't realize I made my bitbucket dotfiles a private repo. I just opened up access so you shouldn't need a login.

@erlandsona: Looks to me like the NixOS part of your problem is solved(?). (If you have trouble with fan control, maybe contact upstream?) Close?

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/correct-way-to-use-lm-sensors-in-nixos/10139/2


[BUG]: Constraints can cause forward references, use selection order instead of dependency order

Describe the bug
The order you select lines in a sketch determines the order the parallel constraint code mod is applied, so if you select the later line first it will result in invalid code that has a forward reference.
Steps to Reproduce

Create a sketch with at least 3 segments
Select the third segment
Hold Shift and select the first segment
Click the Constrain button in the tool bar and select Parallel
The sketch will break and the code will be invalid

Some example code:
const sketch001 = startSketchOn('XY')
  |> startProfileAt([-67.97, 165.46], %)
  |> line([377.06, 87.22], %)
  |> line([-42.32, -593.86], %)
  |> line([-388.61, 118], %)
  |> lineTo([profileStartX(%), profileStartY(%)], %)
  |> close(%)

Expected Behavior
I expect that the application order of the code mod would be in dependency order, with the earlier item being used to constrain the later one that depends on it, regardless of the selection order.
Screenshots and Recordings
https://github.com/KittyCAD/modeling-app/assets/23481541/404e066a-bfd8-4085-8095-c26554c04fd4
Desktop OS
any
Browser
any
Version
v0.22.0
Additional Context
@jessfraz I think this would fall under the high-priority tag

I just realized that this is just a limitation with all multisegment constraints, I was able to reproduce the behavior with the Equal Length constraint too


bump SB version.

cc @geoand

@geoand it did :)

Great, thanks @ask4gilles!

Building 2.1.1 now


[MXNET-350] Logical NOT Operator

Description
Implementation for logical NOT operator
Checklist
Essentials

[x] The PR title starts with [MXNET-350]
[x] Changes are complete (i.e. I finished coding on this PR)
[x] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[x] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

[x] Implementation of logical NOT operator
[x] Unit test for logical NOT operator

Comments
For bridging the gap between MXNet and ONNX operators

Should add this function to __all__ like https://github.com/apache/incubator-mxnet/pull/10679/files#diff-151ed3672c6bd71b358e13771357696dR45


Injection error checking fix

A one-line change that fixes the error checking of NTSTATUS in SharpSploit.Execution.Injection.RemoteThreadCreate.Inject. The current version causes the function to return false incorrectly, making it difficult to know when the injection succeeded.

Ooops, I accidentally merged this into dev before changing the base branch of the PR, so GH isn't picking up on the merge. But it's been added in, just going to close.


Changed demjson to demjson3

demjson does not support python3.

I think demjson does support python3. Though it is good to keep the package up to date. Any reason we want to use demjson3 over the standard json library of python?

I think demjson does support python3. Though it is good to keep the package up to date. Any reason we want to use demjson3 over the standard json library of python?

Talking about demjson, the "og" demjson uses "DICT.has_key" which doesn't exist in python3 (python plugins that I have ported from Wox didn't work for me so I had to manually patch the flowlauncher package and install demjson3 myself).
Considering the demjson vs json, I don't know the original reason for using demjson, but if I were to guess, it has something to do with unicode and multilingual support.

This night later, I will check this new changing. Laterly, I'm kind of busy.

Talking about demjson, the "og" demjson uses "DICT.has_key" which doesn't exist in python3 ( python plugins that I have ported from Wox didn't work for me so I had to manually patch the flowlauncher package and install demjson3 myself).

Is there a specific plugin?

Considering the demjson vs json, I don't know the original reason for using demjson, but if I were to guess, it has something to do with unicode and multilingual support.

The standard json lib can't handle empty inputting.
https://github.com/Flow-Launcher/Flow.Launcher.JsonRPC.Python/blob/89f6ca63808c5daa89fa3c3ac1ae907442d145e6/flowlauncher/FlowLauncher.py#L20-L21
In [1]: import json

In [2]: json.loads("")
---------------------------------------------------------------------------
JSONDecodeError                           Traceback (most recent call last)
Input In [2], in <cell line: 1>()
----> 1 json.loads("")

File C:\Software\miniforge3\lib\json\__init__.py:346, in loads(s, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
    341     s = s.decode(detect_encoding(s), 'surrogatepass')
    343 if (cls is None and object_hook is None and
    344         parse_int is None and parse_float is None and
    345         parse_constant is None and object_pairs_hook is None and not kw):
--> 346     return _default_decoder.decode(s)
    347 if cls is None:
    348     cls = JSONDecoder

File C:\Software\miniforge3\lib\json\decoder.py:337, in JSONDecoder.decode(self, s, _w)
    332 def decode(self, s, _w=WHITESPACE.match):
    333     """Return the Python representation of ``s`` (a ``str`` instance
    334     containing a JSON document).
    335
    336     """
--> 337     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    338     end = _w(s, end).end()
    339     if end != len(s):

File C:\Software\miniforge3\lib\json\decoder.py:355, in JSONDecoder.raw_decode(self, s, idx)
    353     obj, end = self.scan_once(s, idx)
    354 except StopIteration as err:
--> 355     raise JSONDecodeError("Expecting value", s, err.value) from None
    356 return obj, end

JSONDecodeError: Expecting value: line 1 column 1 (char 0)

demjson does not support python3.

Well, as so far demjson is working fine with python3.x.
I don't mind replace demjson with demjson3.
I want to know demjson3 has any advantage compare to demjson such as running speed, importing speed.

demjson does not support python3.

Well, as so far demjson is working fine with python3.x.
I don't mind replace demjson with demjson3. I want to know demjson3 has any advantage compare to demjson such as running speed, importing speed.

Iv'e done some testings, the latest version that works with demjson is 3.8.10.

The standard json lib can't handle empty inputting.
https://github.com/Flow-Launcher/Flow.Launcher.JsonRPC.Python/blob/89f6ca63808c5daa89fa3c3ac1ae907442d145e6/flowlauncher/FlowLauncher.py#L20-L21

demjson can't either (3 or the original) ->
# With original
import demjson
demjson.decode("")
# Error
Traceback (most recent call last):
  File "<pyshell#3>", line 1, in <module>
    demjson.decode("")
  File "C:\Users\mrmet\AppData\Roaming\FlowLauncher\Plugins\Hello World Python-1.0.0\lib\demjson.py", line 5696, in decode
    result = j.decode( txt,
  File "C:\Users\mrmet\AppData\Roaming\FlowLauncher\Plugins\Hello World Python-1.0.0\lib\demjson.py", line 4915, in decode
    raise errors[0]
demjson.JSONDecodeError: No value to decode
# With 3
import demjson3
demjson3.decode("")
# Error
Traceback (most recent call last):
  File "<pyshell#7>", line 1, in <module>
    demjson3.decode("")
  File "C:\Users\mrmet\AppData\Roaming\Python\Python310\site-packages\demjson3.py", line 6423, in decode
    result = j.decode(
  File "C:\Users\mrmet\AppData\Roaming\Python\Python310\site-packages\demjson3.py", line 5607, in decode
    raise errors[0]
demjson3.JSONDecodeError: No value to decode

The core problem is setuptools already removes lib2to3 from version 58.0.0.

Do you want me to write a poc using the native json lib?

I've done it anyway, works well for me:
Native Json PR

Well, it took a little time to find out the reason why use demjson. The details see commit aa145ff1a460d436c0ea5ac543f217a4e3bb4db5.

use demjson replace json to solve json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1) problem. json can't recognize '

The empty string is the answer to handle this line problem from original source wox.py.
https://github.com/Wox-launcher/Wox/blob/121a9103beaa2fe3cd0d64b18928b0a9247801c8/JsonRPC/wox.py#L13
To avoid empty inputting.
https://github.com/Flow-Launcher/Flow.Launcher.JsonRPC.Python/blob/89f6ca63808c5daa89fa3c3ac1ae907442d145e6/flowlauncher/FlowLauncher.py#L20

Well, it took a little time to find out the reason why use demjson. The details see commit aa145ff.

use demjson replace json to solve json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1) problem. json can't recognize '

That's not a problem, that's by design. JSON should not contain single quotes.
I wouldn't want something that claims it's JSON to be formatted with single quotes.

The empty string is the answer to handle this line problem from original source wox.py.
https://github.com/Wox-launcher/Wox/blob/121a9103beaa2fe3cd0d64b18928b0a9247801c8/JsonRPC/wox.py#L13
To avoid empty inputting.
https://github.com/Flow-Launcher/Flow.Launcher.JsonRPC.Python/blob/89f6ca63808c5daa89fa3c3ac1ae907442d145e6/flowlauncher/FlowLauncher.py#L20

So this if statement fixes it without being a problem, not?

Well, it took a little time to find out the reason why use demjson. The details see commit aa145ff.

use demjson replace json to solve json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1) problem. json can't recognize '

That's not a problem, that's by design. JSON should not contain single quotes. I wouldn't want something that claims it's JSON to be formatted with single quotes.

The empty string is the answer to handle this line problem from original source wox.py.
https://github.com/Wox-launcher/Wox/blob/121a9103beaa2fe3cd0d64b18928b0a9247801c8/JsonRPC/wox.py#L13
To avoid empty inputting.
https://github.com/Flow-Launcher/Flow.Launcher.JsonRPC.Python/blob/89f6ca63808c5daa89fa3c3ac1ae907442d145e6/flowlauncher/FlowLauncher.py#L20

So this if statement fixes it without being a problem, isn't it?

We use standard json lib to create the json input, so it shouldn't contain ' anymore.

We use standard json lib to create the json input, so it shouldn't contain ' anymore.

Therefore, please consider merging https://github.com/Flow-Launcher/Flow.Launcher.JsonRPC.Python/pull/15 in.

JSON should not contain single quotes. It's right as a protocol. But it's also hard to constrict the inputting from the user.
Another solution is to drop sys.argv and demjson.
I'm thinking we don't need to parser sys.argv actually.
Why do we define a python package called flowlauncher?
To define the port which let the user could use query and context_menu RPC methods, not others.
Based on my writing plugin experiences, sys.argv line only works in running tests like python test.py {blah blah blah}.
https://github.com/Flow-Launcher/Flow.Launcher.JsonRPC.Python/blob/aa145ff1a460d436c0ea5ac543f217a4e3bb4db5/flowlauncher/FlowLauncher.py#L19
https://github.com/Flow-Launcher/Flow.Launcher.JsonRPC.Python/blob/aa145ff1a460d436c0ea5ac543f217a4e3bb4db5/flowlauncher/FlowLauncher.py#L31-L32

Because that's how flow currently pass in the query information (by sys.argv).

Because that's how flow currently pass in the query information (by sys.argv).

Agree,
Until there's a better solution, native json is better since it's supported on both sided (Flow & Python).

It could use json replace dejson. #15
Because sys.argv is a port to receive JSON-RPC from Flow Launcher not the user or developer.
The inputting string is a standard JSON. But source code should add some comments to remind the developer about this.


Incorrect sphere scaling with SPHERE_LIST marker type

According to the docs, when using SPHERE_LIST marker type, all spheres must share a common scale (and color). However, my recent experience shows me that irregular scaling (i.e. to render ellipsoids) does not work neither when using the SPHERE_LIST type.
You can see this behavior by running this test package.
Am I doing something wrong? Is this intended behaviour? And if it is, shouldn't it be mentioned in the wiki?
I've tested this on Indigo/Ubuntu12.04. Maybe someone can confirm whether this is still present in later releases.

Thanks for the detailed report. Yeah, looks like the sphere list's scale doesn't work. I don't have time to look into this now, but if you want, it should be relatively easy to fix (I guess). The culprit code is probably here:
https://github.com/ros-visualization/rviz/blob/0d423d6249a39f7f3ddd591007952c6dc940b6ac/src/rviz/default_plugin/markers/points_marker.cpp#L83
It's reusing the PointCloud interface in rviz, so you might look in there:
https://github.com/ros-visualization/rviz/blob/0d423d6249a39f7f3ddd591007952c6dc940b6ac/src/rviz/ogre_helpers/point_cloud.cpp#L346
Also, you might check to see if the same problem exists for CUBE_LIST.

I only stumbled upon this because rviz_visual_tools was using the SHPERE_LIST marker type to publish even a single sphere marker. Since davetcoleman/rviz_visual_tools#47 already fixes the problem for a single sphere marker, I don't really have a strong need to fix it nor a lot of spare time to look into it. I will if I can, but I can't promise anything.

Are there any updates to this? It still doesn't work as of 2022.

@andrewjong, you are very welcome to provide a fixing PR 😄

I shortly looked into the issue a little deeper. The problem is more fundamental:
For efficiency, rviz renders a large number of spheres (as in point clouds or the SPHERE_LIST marker type) using a fragment shader (shaded_circle.frag), visualizing a simple shaded disk oriented towards the camera. Here is the material definition:
https://github.com/ros-visualization/rviz/blob/697ed3ff0496b79b1bb4270aabf457ee2f2ae736/ogre_media/materials/scripts120/point_cloud_sphere.material#L1-L10
To fix this, one could try to replace the current vertex shader (billboard.vert) to a shader that ignores the camera position (see box.vert) and adapt the texture coordinates such that a correctly tilted ellipse will be rendered instead.
I won't have time to tackle this. Anybody in need of this feature should tackle this.


Fix/readact creds from logging

This work is to help B2K with the issue of sensitive information getting logged without REDACTING.
Long term solution will be to remove any information which we don't need.
Solution is simple and extensible by just adding the enum and storing the data with redacted information.
Thanks heaps and to all for taking a look, ❤☕🥷🙏
Redacted data will look like this:

Thank you for this!


Explain extism_alloc a little bit in the readme

Make it clear when extism_free is needed or not needed.

Thanks! I feel like we could use a little more somewhere about what this memory channel is for exactly and that would help a little. Maybe a more formal explanation. I think you need to know how extism works to understand when you'd want to free it. But I'll let @zshipko weigh in on what he thinks.

Maybe we could have something on the concepts page about how memory works and link to it from the README?
We should specifically mention that Extism allocated memory will be reset before each call so free is only needed to recycle memory within a single call. This means values you know you're done with should be freed just to avoid wasting resources but there won't be any memory leaks if you forget.

Maybe we could have something on the concepts page about how memory works and link to it from the README?

A short snippet with a more in-depth explanation linked sounds best to me.

Added https://extism.org/docs/concepts/memory to the concepts. Now I just have to link it here.


[Android] Cannot enable the location service (NoClassDefFoundError)

Make sure to check the demo app(s) for sample usage
YES
Make sure to check the existing issues in this repository
YES but the solution does not work anymore !
If the demo apps cannot help and there is no issue for your problem, tell us about it
Please, ensure your title is less than 63 characters long and starts with a capital
letter.
I have this error
JS: Error: Cannot enable the location service. Error: java.lang.NoClassDefFoundError: com.google.android.gms.location.LocationRequest
JS:     java.lang.Class.classForName(Native Method)
JS:     java.lang.Class.forName(Class.java:324)
JS:     java.lang.Class.forName(Class.java:285)
JS:     com.tns.Runtime.getClassForName(Runtime.java:1036)
JS:     com.tns.ClassResolver.resolveClass(ClassResolver.java:27)
JS:     com.tns.Runtime.resolveClass(Runtime.java:604)
JS:     com.tns.Runtime.callJSMethodNative(Native Method)
JS:     com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1116)
JS:     com.tns.Runtime.callJSMethodImpl(Runtime.java:996)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:983)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:967)
JS:     com.tns.Runtime.callJSMethod(Runtime.java:959)
JS:     com.tns.FragmentClass.onCreateView(FragmentClass.java:45)
JS:     android.app.Fragment.performCreateView(Fragment.java:2220)
JS:     android.app.FragmentManagerImpl.moveToState(FragmentManager.java:973)
JS:     android.app.FragmentManagerImpl.moveToState(FragmentManager...

Which platform(s) does your issue occur on?

Android

"tns-android": {
	"version": "4.3.0-2018-08-13-04"
}

emulator or device. What type of device?
emulator genyMotion and normal emulator

Please, provide the following version numbers that your issue occurs with:

CLI: (run tns --version to fetch it)
4.3.0-2018-08-07-12084
Cross-platform modules: (check the 'version' attribute in the
node_modules/tns-core-modules/package.json file in your project)
Runtime(s): (look for the "tns-android" and "tns-ios" properties in the package.json file of your project)

"dependencies": {
		"base-64": "^0.1.0",
		"build-url": "^1.1.1",
		"email-validator": "^2.0.4",
		"moment": "^2.22.2",
		"nativescript-barcodescanner": "^2.7.7",
		"nativescript-camera": "^4.0.2",
		"nativescript-fancyalert": "^1.2.0",
		"nativescript-fontawesome": "^1.0.0",
		"nativescript-geolocation": "^4.3.0",
		"nativescript-google-maps-sdk": "^2.6.1",
		"nativescript-i18n": "^0.2.4",
		"nativescript-imagepicker": "^6.0.2",
		"nativescript-intl": "^3.0.0",
		"nativescript-loading-indicator": "^2.4.0",
		"nativescript-phone": "^1.3.1",
		"nativescript-socketio": "^3.0.2",
		"nativescript-telephony": "^1.0.4",
		"nativescript-theme-core": "~1.0.4",
		"nativescript-toast": "^1.4.6",
		"nativescript-zxing": "^1.5.6",
		"tns-core-modules": "^4.2.0",
		"tns-platform-declarations": "^4.1.0",
		"tslib": "^1.9.2",
		"utf8": "^3.0.0"
	},
	"devDependencies": {
		"babel-traverse": "6.26.0",
		"babel-types": "6.26.0",
		"babylon": "6.18.0",
		"lazy": "1.0.11",
		"nativescript-dev-sass": "^1.6.0",
		"nativescript-dev-typescript": "^0.7.1",
		"typescript": "~2.6.2"
	}

import * as geolocation from "nativescript-geolocation";

export function onLoad(args) {
    var page = args.object;

    geolocation.enableLocationRequest();
    let location  = geolocation.getCurrentLocation({});
    location.then(location => {
        console.log(location)
    })
    .catch(console.error)
    page.bindingContext = new Maps();
}

Thanks

@DimitarTodorov please can you answer.

The solution is to add the flowing in app/resources/android/app.gradle as explain in the documentation :
project.ext {
        googlePlayServicesVersion = "+"
}

And if like my case you do not have a include.gradle in the same path add it :
dependencies {
	def googlePlayServicesVersion = project.googlePlayServicesVersion
	compile "com.google.android.gms:play-services-location:$googlePlayServicesVersion"
}

I don't know why this issue is closed.
I get the same error, it has been 6h i'm working on nativescript-geolocation to have a map / marker and get my current location, that last thing who doesn't work because of this same error.
And i tried what is listed here and here : https://github.com/NativeScript/nativescript-geolocation/issues/172
This shit doesn't work neither. sorry.
android {     project.ext {       googlePlayServicesVersion = "15.0.1"   } }

I don't know why this issue is closed.
I get the same error, it has been 6h i'm working on nativescript-geolocation to have a map / marker and get my current location, that last thing who doesn't work because of this same error.
And i tried what is listed here and here : #172
This shit doesn't work neither. sorry.
android { project.ext { googlePlayServicesVersion = "15.0.1" } }

I tested it and it works with nativescript 6, nativescript-geolocation 5.1.0, angular 8.2.0
project.ext {
googlePlayServicesVersion = "16.+"
}
dependencies {
def googlePlayServicesVersion = project.googlePlayServicesVersion
compile "com.google.android.gms:play-services-location:$googlePlayServicesVersion"
}


Show unite error message if fetching jira issues failed

Let unite show an error message when fetching the issues list failed.

Thanks for the fix @m42e :+1:


Fix pbr rendering

This PR fixes a few things

The white default material is no longer an off gray
This extends to adding color
Fix incorrect multiplied and defaulted metallic and roughness values for imported models, this fixes odd gleams for unity trees and models where they should be rough leaves
Fix invisible vantablack models
Expand the PR example

@philpax after bumping the timeout for the CI the blessed images look different, as they are captured at 60s instead of 30s
The checking worked as it just tried every second until it mathed the 30th second or eariler if it is repeating at an interval, like the sun

Can you try removing the *2.2 constants in the following files:
https://github.com/AmbientRun/Ambient/blob/7aba88cca2eef35643e4a8c4f8657201afc317f1/guest/rust/packages/games/minigolf/src/server.rs#L160
https://github.com/AmbientRun/Ambient/blob/6cb67f04bb6b132a8792139f756071c928ea1e71/guest/rust/packages/games/music_sequencer/src/client.rs#L124-L131
https://github.com/AmbientRun/Ambient/blob/6cb67f04bb6b132a8792139f756071c928ea1e71/guest/rust/packages/games/tangent/mods/level_cubicide/src/server.rs#L124-L126
and see if they look as bright as they should? (The music sequencer I'm less sure about - from Arkanoid it seems like the colours are still dimmer than they should be for UI, but I'm guessing that's an entirely separate issue)

Can you try removing the *2.2 constants in the following files:
https://github.com/AmbientRun/Ambient/blob/7aba88cca2eef35643e4a8c4f8657201afc317f1/guest/rust/packages/games/minigolf/src/server.rs#L160
https://github.com/AmbientRun/Ambient/blob/6cb67f04bb6b132a8792139f756071c928ea1e71/guest/rust/packages/games/music_sequencer/src/client.rs#L124-L131
https://github.com/AmbientRun/Ambient/blob/6cb67f04bb6b132a8792139f756071c928ea1e71/guest/rust/packages/games/tangent/mods/level_cubicide/src/server.rs#L124-L126
and see if they look as bright as they should? (The music sequencer I'm less sure about - from Arkanoid it seems like the colours are still dimmer than they should be for UI, but I'm guessing that's an entirely separate issue)

How did we originally come up with the 2.2 value? Didn't know about this workaround 😅, but have always noticed the slight oddity of the color accuracy

It feels like we should add a PBR example (the standard one, with just all the spheres) so we know that it works as intended. I added one here a while ago but it's on the host side: https://github.com/AmbientRun/Ambient/blob/main/crates/renderer/examples/pbr.rs

Can you try removing the *2.2 constants in the following files:
https://github.com/AmbientRun/Ambient/blob/7aba88cca2eef35643e4a8c4f8657201afc317f1/guest/rust/packages/games/minigolf/src/server.rs#L160
https://github.com/AmbientRun/Ambient/blob/6cb67f04bb6b132a8792139f756071c928ea1e71/guest/rust/packages/games/music_sequencer/src/client.rs#L124-L131
https://github.com/AmbientRun/Ambient/blob/6cb67f04bb6b132a8792139f756071c928ea1e71/guest/rust/packages/games/tangent/mods/level_cubicide/src/server.rs#L124-L126
and see if they look as bright as they should? (The music sequencer I'm less sure about - from Arkanoid it seems like the colours are still dimmer than they should be for UI, but I'm guessing that's an entirely separate issue)

How did we originally come up with the 2.2 value? Didn't know about this workaround 😅, but have always noticed the slight oddity of the color accuracy, it does look like the default gamma, but in that case it is just a happy coincidence.
Just glad to have this fixed finally 🙌

Magic bodge constant. It's just a coincidence that it's the gamma correction factor, yeah.

I'm just going to merge this. The issue is that the animation for third_person_camera changes each time the GI tests are run, because they all start at a slightly different time. We can figure out a better solution for this at another time (likely some kind of clock-override solution?)


✨ Add background images

Description
It could be great if we can add image to the background and make it change by the current theme set for exemple a Japan city for Light Mode and a moon for the Dark Mode.
Alternatives Considered
No response
Additional Context
No response
Screenshots
No response

This seems...unnecessary...


Add display name to openstreetmap geocoder

issue 219

Could you name it formattedAddress like the google geocoder

@nchaulet thanks, rename done.

v3.19.0


⚠ Bofrost.at has degraded performance

In a4ea82e, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2190 ms

Resolved: Bofrost.at performance has improved in d59ea56 after 6 minutes.


Validate credentials in the admin backend

Shouldn't this be done in the Core library?

Because that's related to WooCommerce Settings API. There aren't any core the specific methods.

The point of the Core library is to do WooCommerce-related stuff that is common between the Payments and Checkout plugins. Isn't this precicely that?


Added RCT Convert and CoreLocation libraries

Does any other open PR do the same thing?

No.
What issue is this PR fixing?
As mentioned in the Lean Core project as well as here , the Geolocation libraries are being moved out of react-native core. This would break dependencies used here and many other places, thus this PR addresses that.
How did you test this PR?

This addresses iOS, and given it's an import all previous tests should pass.

We also need to change #import statement somewhere here in this repo.

@shergin we actually have to change it in quite a few files, but I want to know the best way to structure it, currently, I have the RCTConvert+CoreLocation.h and RCTConvert+CoreLocation.m files in a Shared folder and then import them in the respective files from there. What do you think?

@maschad @shergin
How is this influencing the older RN versions (still supported by this module?)
I mean if we merge is a breaking change?
I also see iOS only, android is ok, needs changes, or ?
Thanks 😻

@christopherdro ^^

Hey @rborn so this came to my awareness because of an issue where iOS was still requiring users to update their Info.plist despite them not using any geolocation libraries, that was further explained here. There is a breaking change on the react-native repo but I don't believe it would be here if this was merged, given the import would now be from a library that is in the repo.

@maschad but we would need to "force" the usage of the latest RN version  right? (or the one using shared ) or it will be done by RN  ? (Sorry, my objC-foo is minimal 😅)

@rborn no you wouldn't need to as React Native would still have the libraries there until this is merged. I am not strong in Objective-C either so I would like some guidance on how I could test this PR to ensure I am importing the files correctly. But if that does work, then this should be fine to merge as these changes add the requisite files.

@maschad great, thank you, maybe @shergin can add some insight? 😻

I don't know how to advice in which folder to put new files because I am not a maintainer of the repo so I have no context.
This change is probably already backward-compatible (because it removes a dependency, not introduces it) but to make it even more safe (just in case we don't want to bother with testing) we can just rename the methods to eliminate the possibility of ODR-like violations.

Doing any changes to this libs dependencies that are shared with RN will limit the users of the library to use a matching RN library, this is common in the RN environment and ideally we always support the latest version of RN out of the box.
highlighting RN version compatibility can be done in the release  note


Remove choice when sharing a proposal with Shutter

Currently even if you vote is encrypted for Shutter voting, the UI know what you vote for when you cast the vote and will propose to share it on Twitter, we should remove the choice from the sharing message to avoid confusion.

Fixed https://github.com/snapshot-labs/snapshot/commit/c66c3a224f1ec73ee6215bc410f4078401e0f478


Need Scorecard to run on release branch

What would you like to be added?

[X] fix vuln in dev branch: https://github.com/ratify-project/ratify/security/code-scanning/77
[X] update action to cover release branch
[ ] release new patch

Anything else you would like to add?
No response
Are you willing to submit PRs to contribute to this feature?

[X] Yes, I am willing to implement it.

preparing release patch: https://github.com/ZAFT-Armored-Keeper-of-Unity/ratify-personal/pull/17

Prepared PR which passes scan_vuln


Increase bar customizability

[ ] Custom padding
[ ] Custom margin

Setting a custom font-size that gets inherited by all the widgets would also be nice.


Incorrect commands to build project in ui.sh

In the ui.sh the build function to build the ui contains the script as
function riotpot::ui::build(){
    npm install react-scripts --silent
    npm install ui --silent
    npm --prefix="ui" --omit="dev" run build
}

I think this is probably wrong as the correct command should have been first installing the dependencies and then running the npm build command inside the ui folder. After running the present command we get a node_modules folder and the package.json, (which contains the unwanted ui package) file in the root directory.

This is the intended behavior :)

@RicYaben , Sir, thank you for reviewing the PR. I am looking forward to contributing to this project in GSoC'24. Could you please provide me with the means to connect with you? I tried searching for you on Discord but was unable to find you.
Actually, I have some doubts and would like to know what things you would like to add or improve during GSoC'24.
Thank you for your time.
Best Regards,
Mehul Kuma


Default theme is All but initially showing icons for filled icons only.

Prerequisites

[x] I am running the latest version
[x] I checked the documentation and found no answer
[x] I checked to make sure that this issue has not already been filed

Expected Behavior
Since, default theme is All, all the icons should be displayed.
Preview

Current Behavior
Only filled icons are displayed.
Preview

Steps to Reproduce
Simply run the current plugin.

Working on it.


Can't activate Single Gateway (VPN)

Describe the bug
I installed VPN clients (OpenConnect and Wireguard) following the publicly available tutorials. But can not activate them under gateways.
To Reproduce
Steps to reproduce the behavior:

Add WG client according to https://docs.opnsense.org/manual/how-tos/wireguard-client-azire.html
Add gateway
Try to activate gateway

Expected behavior
Gateway should be able to activate but is always disabled.
Screenshots
Wireguard client is working:
![Image of WG cient]
(https://i.imgur.com/L2dosdc.png)
VLAN to be routed through Wirguard Client (not really relevant, just listing to give context)
![Image of VLAN interface]
(https://i.imgur.com/4uLzL79.png)
NAT rule for Wireguard Client
![Image of NAT]
(https://i.imgur.com/BB2L3v3.png)
Firewall rule to fwd to gateway
![Image of FW rule]
(https://i.imgur.com/i2NDgax.png)
!!!! Gateway that can not be activated:
![Image of boken gateway activation]
(https://i.imgur.com/OD7AsTF.png)
Relevant log files
I already tried to look at the logs, but they are empty.
File /var/log/gateways.log yielded no results.
Additional context
I tried removing, and creating it new, and I have the same issue with the OpenConnect VPN client, so I assume its no issue with WireGuard but with actual gateway logic.
Environment
OPNsense 19.7.10_1-amd64
FreeBSD 11.2-RELEASE-p16-HBSD
OpenSSL 1.0.2u 20 Dec 2019
AMD GX-412TC SOC (4 cores)

Can someone please help me here? Problem still persists

How will I get support for this? willing to pay some money to get this resolved

Openconnect doesnt work with gateway I guess. For Wireguard search Forums for <IP_ADDRESS> and you will find how to add gateway

That's not really helping, as I am not even able to enable the gateway, as seen in the screenshots

Please Open a forum thread for this top and close the issue. I can better help you over there

This issue has been automatically timed-out (after 180 days of inactivity).
For more information about the policies for this repository,
please read https://github.com/opnsense/core/blob/master/CONTRIBUTING.md for further details.
If someone wants to step up and work on this issue,
just let us know, so we can reopen the issue and assign an owner to it.


Switching Boogie build to .NET Standard/Core

Recently I started looking into how to improve the portability of Boogie across platforms, and in particular whether it can be compiled using Microsoft's dotnet core distribution for Linux. After reading a bit about various .NET implementations, it seems to me that it would be good to switch Boogie from .NET Framework v4.5 (which it currently requires) to something that is more portable, such as .NET standard/core. (Note that .NET Framework is not available on Linux from Microsoft, while .NET Core is - see https://www.microsoft.com/net/download/linux)
Based on my understanding, switching to .NET Standard/Core ought to be possible (and hopefully not too hard) since Boogie is a command line application that does not use GUI.
Note that I was quite confused about what the heck .NET Framework, Core, and Standard are, and this is a good place to start learning about this: https://msdn.microsoft.com/en-us/magazine/mt842506.aspx
Anyhow, I would like to start a discussion regarding this switch, and maybe get opinions and/or suggestions from people who understand the potential issues and how to go about this better.

Boogie is also used by Dafny, including from within the Dafny plug-in for Visual Studio. Will that still work with .NET Core?

I suspect that in this scenario Boogie is being invoked as a library. My understanding is that should still work. In fact, .NET Core is mentioned as the best option for implementing libraries if one is interested in portability. If there are GUI aspects within Boogie, then that would probably create problems.
Having said that, I am certainly not an expert on these .NET portability issues/frameworks, and it would be good to get some input from someone who has a better understanding of this landscape and options. Which is why I created this issue.

I believe this issue has been addressed by the work done by @michael-emmi and @bkragl.  Boogie now builds with .NET Core and Standard.  The travis build is .NET core.  So closing the issue now.  Please reopen if necessary explaining what remains unaddressed.


Project horizontal spacing

In the horizontal project view, let's make the logo larger and centered vertically, and also get the text and categories spaced closer together horizontally to make the height of each submissions smaller.  This will allow for faster scrolling though the large number of projects.
Currently:

Working on it

Is this ok

I just merged in this change but I think an improvement would be for the icon to be vertically aligned in the center. Right now it is slightly above center.

Agree, aligned with the top and bottom borders of the card would be a nice touch.

Perfect
On Thu, 26 Oct 2023, 18:09 Zak G, @.***> wrote:

Agree, aligned with the top and bottom borders of the card would be a nice
touch.
—
Reply to this email directly, view it on GitHub
https://github.com/scaffold-eth/OP-RetroPGF3-Discovery-Voting/issues/145#issuecomment-1781515172,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APJDTO7V4TJS37UFZEGL3JLYBKKLLAVCNFSM6AAAAAA6PY2KRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBRGUYTKMJXGI
.
You are receiving this because you commented.Message ID:
@.***
com>

Done


core_provider.Stop() should get running services from the Core

The CLI access directly the function service.ListRunning().
It should use the core API ServiceList to list the services and then stop them.
For now, ServiceList doesn't return the service's status. We can implement a first dummy version that try to stop ALL of them.
Then in the future, we can add the status to the ServiceList and stop only the running ones.
https://github.com/mesg-foundation/core/blob/c3e23fd91747f05750f9f18c699bb4910a082b7e/commands/provider/core_provider.go#L33-L66

should re-open after https://github.com/mesg-foundation/core/pull/499 is merges, this issue will be closed by another PR.

I would actually keep that one but maybe change it a bit to say that the core itself when it stops should stop the running services. The actual solution of fetching the list of services and stop them all is good enough for now but it will change.


can't registered.

Hello,
Can You provide more info about this POST request, what is response you got, what is post data sent?
In my case, this request is successed.
May be you did some actions before sing up, that can be caused of this bug?

Hello,
Can You provide more info about this POST request, what is response you got, what is post data sent?
In my case, this request is successed.
May be you did some actions before sing up, that can be caused of this bug?

Sorry , it's ok after I disbale  cache .


feat: rename workload version to workload version

fixes #66

After private communication we agreed to close this PR due to it's complexity and continue with a new one here https://github.com/keptn/lifecycle-toolkit/pull/2255
Thank you for your effort @geoffrey1330 !


Clarified GPodder API section, added User Creation Section, and minor edits

Description

When enabling GPODDER_INTEGRATION_ENABLED without setting up AUTH, you get the below error:
GPODDER_INTEGRATION_ENABLED activated but no BASIC_AUTH or OIDC_AUTH set. Please set BASIC_AUTH or OIDC_AUTH in the .env file.

Debug file located at /home/rust/src/target/x86_64-unknown-linux-musl/release/build/podfetch-47ad4ae1dbcbace8/out/built.rs

GPodder API section now has more clarity on what is needed to set up GPodder API access.
Created a User Creation section to assist with the updated GPodder API section, as there is no mentions about invites.

I just realized that this repo has a wiki with some info as well... I added the wiki link to the GPodder API section.
Please let me know your opinion about this pull request, or edits you'd like made.

Thanks. I started to work on the wiki. It is not finished yet. But it is a good idea to link to it.


Animated GIFs

Any chance for animated GIF support?

:+1: we use this library for NodeBB would be cool to have this supported as well :)

:+1:

Yep, do it please.

+1 for animated gifs included.

Since this is a generic image library, in order to support animations it needs to be generic enough to work with formats which doesn't have animations.
Any suggestions how it would look like?

I was thinking when opening an image it would just preserve the frames if they exist, and likewise perform operations and encoding on all frames if they exist.
No need to add any editing of the individual frames.

In my application it would be handy just to know if a gif is animated. Any chance we can get an isAnimated boolean on the Image type?

I would like the capacity to trim gifs please.


Fix: Properly rewrite rich text with mixed links

The bulk rich text link rewriter logic introduced in  #5875 doesn't work properly if the rich text contains multiple link types where one of those types doesn't need to be rewritten (for example external links like <a href="https://wagtail.org/">).
This commit fixes that bug by handling these cases, and adds additional unit tests to cover the failure cases.
Fixes #11957.

Thanks @chosak! I see the second issue mentioned on #11957, where a custom LinkHandler is in use, is still present - I think this might be a separate bug, since it involves the replacement tag being written in the wrong place entirely, rather than just URLs being switched around.

Thanks @gasman! I've just pushed a fix and test for that issue as well.

Thanks @chosak! I'm happy with the updated logic, although still concerned that the "zipping tuples of dicts" approach is rather hard to follow, and probably largely responsible for these bugs sneaking in in the first place...
I've now had a go at refactoring it by introducing a TagMatch object to encapsulate all the information for an individual tag - please let me know what you think.

@gasman works for me! This is a nice way to make the logic more straightforward, thank you.

Thanks @chosak! Merged in bf3f87b75910495471e84e976fff0af7f6a74df5 (main) / 729acab069661e83bd6ee429ffc73bdd59068ccb (stable/6.1.x).


translate: rfc2495

Translate rfc2495. Feel free to discuss or rephrase anything weird.

Rendered

I also updated the PR description to have the Rendered link for 網頁好讀版 >_*


Add support for golang 1.7 + remove 1.5 version

Bump osxcross revision
Add gnupg package now required for apt-key

👍

Thanks


ci: [M3-6837] - Allow Cypress runs to be parallelized without reliance on third party services

Description 📝
This experimentally introduces yet another handful of environment variables to manipulate the behavior of Cloud Manager's Cypress tests. Specifically, CY_TEST_SPLIT_RUN, CY_TEST_SPLIT_RUN_INDEX, and CY_TEST_SPLIT_RUN_TOTAL have been added.
The purpose of these environment variables is to facilitate basic test parallelization which does not rely on any 3rd party service (e.g. Cypress Cloud). This implementation will not be as performant as what we're used to, because Cypress Cloud's parallelization uses historic test result data to determine which runners run which tests to better optimize run length.
Parallelization is achieved by limiting each process's specs to a subset of the total. It is up to the user (or CI pipeline) to initiate each process and interpret the results.
Usage 🛠
Use CY_TEST_SPLIT_RUN to enable the feature. Use CY_TEST_SPLIT_RUN_TOTAL to specify the total number of runners for a given test run, and use CY_TEST_SPLIT_RUN_INDEX to specify the runner index to assign to each individual runner.
For example, if you wish to run your Cypress tests locally in parallel, split between 2 runners, you could execute the following:
CY_TEST_SPLIT_RUN=1 CY_TEST_SPLIT_RUN_TOTAL=2 CY_TEST_SPLIT_RUN_INDEX=1 yarn cy:run
CY_TEST_SPLIT_RUN=1 CY_TEST_SPLIT_RUN_TOTAL=2 CY_TEST_SPLIT_RUN_INDEX=2 yarn cy:run

The console output for each should reflect that the run has been split, and each process should be handling roughly half of the specs. (Keep in mind that the tests themselves will likely fail unless you also specify a separate MANAGER_OAUTH value for each process.)
Major Changes 🔄

Added CY_TEST_SPLIT_RUN, CY_TEST_SPLIT_RUN_INDEX, and CY_TEST_SPLIT_RUN_TOTAL.

How to test 🧪

Confirm that tests run as expected without any of these environment variables applied (we can rely on the automated run for this one)
Confirm that if CY_TEST_SPLIT_RUN is enabled, CY_TEST_SPLIT_RUN_TOTAL and CY_TEST_SPLIT_RUN_INDEX must also be defined, and Cypress will fail if not
Confirm that if split running is enabled, only a subset of specs are run for each process, and that there is no overlap (e.g. if one runner runs a spec, the other runners should not run that spec)

Copy/pasted from Jira, with some modifications:
I was able to run our Cloud Manager end-to-end tests parallelized using our alternative parallelization solution without any reliance on Cypress Cloud.

The average run duration for our Cypress runs against develop using Cypress Cloud is 14m 50s.
On the build linked above, Cypress ran in 21m 21s, about 7 minutes more than average. However, our slowest test (Any/All StackScript test) was flaky and failed on its first attempt. This test takes on average 3m 5s to complete. If it had passed on its first attempt, the run would have taken about 18m 06s to complete, less than 3.5 minutes more than average.

This is roughly in line with what we had expected. It's not quite as performant since Cypress Cloud is able to more efficiently distribute tests among runners, but it may still be performant enough to allow us to eliminate Cypress Cloud on PRs.


Project Initialization and Setup

Initialize a new Node.js project with npm or yarn.
Set up Express.js as the server framework.
Create a basic server listening on a configurable port.
Install essential npm packages: mongoose, dotenv, bcryptjs, jsonwebtoken, and nodemon.
Organize the project directory with initial folders: config, controllers, models, routes, and utils.
Add a .env file for managing environment variables like PORT and DATABASE_URI.
Configure nodemon for automatic server restarts on file changes.


Allow undefined users when checking for clouds.yaml

There's a way to workaround this issue by setting OS_CLIENT_CONFIG_FILE
to the right path, it's still not ok to fail when a USER is not defined
in the system. This can happen in various scenarios, including running
within a container.
OS_CLIENT_CONFIG_FILE should be a feature and not a workaround for this
problem. If USER is not defined or the ~/.config/openstack dir
doesn't exist, we should just move on.

Fixed in #71


Make thumbnail tag recognize .PNG and .GIF

Files with the upper case extensions .PNG and .GIF are now recognized by the thumbnail template tag as being PNG- and GIF images, respectively, instead of being treated as JPEG images.

Thanks


Merge master-qa

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.4 out of 5 committers have signed the CLA.:white_check_mark: LucasBrazi06:white_check_mark: OliveGerste:white_check_mark: jerome-benoit:white_check_mark: mahdibenromdhane:x: gochaxYou have signed the CLA already but the status is still pending? Let us recheck it.


How can I render rdl(not rdlc) files from my App_Data folder ?

Can you please let me know how can I render local rdl files in my App_Data folder ?

Do you have support for this ?
If so, how will it have support for Shared Data sources ?

I am interested in having a custom report server and bring my rdl files from that server to this report viewer.
Thanks

No, you cannot render RDL report locally. You will have to install SSRS and deploy your reports there. You can use SQL Server Express with Advanced Services as a starting point.

Why can't I render RDL report locally if RDLC is possible? I am not clear about this argument as all the internet posts say that both file are same except RDLC we need to provide dataset and db related info ourself whereas in rdl files those are inside the xml element
So, wouldn't be it possible to just ignore that  element part and process the rdl files as like the rdlc one. But yes we can't see that .rdl file in VS designer mode, which i think should not affect the process.
Hi ilich, please clarify me and help me out as i need to deploy the SSRS generated rdl files into my mvc project (where i am using your mvcreportviewer html helper dll to achieve the requirement)


Userspace CNI in OpenNESS

Hi @amr-mokhtar
I am trying to deploy Userspace CNI POD in OpenNESS Network Edge kubernetes cluster.
I am followed below link for reference.
https://github.com/open-ness/specs/blob/master/doc/dataplane/openness-userspace-cni.md
but i am not able to see the two userspace cni interface available on pods. can you please help me on it.

@amr-mokhtar can you please help me on this ?

This ticket is open for a while now. Given that we have multiple releases since can you please check if this on the latest and open a ticket if it's still an issue.


Capture logs in CommandHelper tests

This allows us to:

avoid printing annoying logs to console while testing
Testing the logging itself

@nonninz Perfect!


Update db-active-record.md

Q
A

Is bugfix?
no

New feature?
no

Breaks BC?
no

Tests pass?
yes

Fixed issues

Merged. Thanks!


Add PPO1

Basic implementation is ready. Still to add support for continuous action spaces.

Can you also add wiki on coding guidelines, etc on how/what to use for structuring/linting. Code looks really clean which is really good

Sure. I'll do that.
I think we should get back to the deterministic and greedy actions a little later (in another PR) when we are working on the policies.py file directly. What do you think?
Apart from that, are we ready to merge this?

I think we can add it to the issue #3


Pulling Future games for players

Is there a simple way to pull the schedule for future games, for a given player? I'm interested in simulating future performance for a week, and need to know how many times each player will play.

Ok, I think I've figured some of this out, but there's still some sort of problem. Using:
s = Scoreboard(day,month,year)
s = s.game_header()
I can get lists of the team ID's that play on that day, and cross-reference with a player list, to find out who plays when. Now, I'm getting a weird issue where calling the Scoreboard for any dates past the 12th, of any month, returns an error. But the 12th or lower is fine. Any ideas?


Unified interface for Cookies / cookie.

Coming from PHP world and conceived the usefulness of PSR (PHP Standards Recommendations). I think that we should have a unified interface for a stable and lightweight component like Cookie.
Last night, it cost me a lot of time to compare the different of Cookie libraries like js-cookie vs ScottHamper/Cookies vs florian/cookie.js. I wonder why libraries' authors don't spend time together to design a unified interface for Cookie. We also don't have the feature that big company like Google used to set "multiple values to a key" (Youtube.PREF: {hl=en&abc=xyz&...}).
An interoperable unified interface helps library user much when choosing a good one and swapping to the right one in the forest of libraries of JS community.

Hey Tung,
While I absolutely appreciate the sentiment for collaboration in the open-source community, I think that having libraries with differing APIs is precisely what makes them valuable.
Ultimately, the existing native browser API for handling Cookies in JavaScript is a unified interface that's supported by any browser you choose. However, the interface is really awful to use, and so third-party libraries have stepped in to provide a better experience. The fact that these libraries are providing a non-standard interface is what makes them useful for some people to use.
Another consideration is that different libraries can focus on different goals. For example, js-cookie appears to focus on being sort of a "Swiss army knife" of cookie libraries. It attempts to provide utilities to cater to every possible use-case, making it versatile but complicating its API. Cookies.js, on the other hand, is more focused on providing a pleasant "core" experience without many frills - the API is compact, but advanced use-cases will require the user to do additional work on their end. Depending on user preference, and the project being worked on, either library could be a great a fit.
I can definitely understand the frustration of spending a lot of time comparing differences between many options, instead of accomplishing productive work. One option for dealing with this might be to only research options until you find one that seems to meet all your use-cases, while otherwise seeming "OK" (API, documentation, and/or source code look reasonable, etc). At that point, instead of spending more time comparing and contrasting it with all the other options, go ahead and try it out. If you run into problems as you start using it, then you can move onto another option to see if it works out better. This is just one idea - I'm not sure what the best way to handle the vast sea of JavaScript libraries is, and it's probably different at different times.
Lastly, if you'd like to set multiple values to a cookie key, you can use JSON to do so effectively. In Cookies.js, you'd have to manually serialize a JS object to a JSON string before storing it in a cookie, like this:
var prefs = { hl: 'en', bc: 'xyz' };
Cookies.set('Youtube.PREF', JSON.stringify(prefs));

And then deserialize the cookie value after retrieving it:
var prefs = JSON.parse(Cookies.get('Youtube.PREF'));

You could use the same approach with js-cookie, though it looks like they provide some API methods for doing the JSON (de)serializing while also getting/setting a cookie, which can save you a few keystrokes.
In any case, thanks for checking out the library and taking the time to discuss all of this with me!

Hi Scott,
After checked the answer of FagnerMartinsBrack at https://github.com/js-cookie/js-cookie/issues/125 yesterday, I realized that at least we already have 2 unified methods for cookie (get, set) (the same idea about the existing native browser API as you said above). They are undoubtedly suitable for most of the projects. So, we could end this issue here.
Thank you for spending the time to reply my opinion, giving valuable advice and the effort of maintaining an open source project.


Grammar railroad diagram

Category
Cedar grammar changes/additions
Describe the feature you'd like to request
Manually editing https://github.com/cedar-policy/cedar/blob/main/cedar-policy-core/src/parser/grammar.lalrpop we can get a nice navigable railroad diagram.
Copy and paste the EBNF  shown bellow on https://www.bottlecaps.de/rr/ui on the tab Edit Grammar the click on the tab View Diagram to see/download a navigable railroad diagram.
Policies ::= Policy*

Annotations ::= ('@' Ident '(' String ')')*

Policy ::= "label" ('permit' | 'forbid') '(' VariableDef* ')' Cond* ';'

VariableDef ::= Variable (':' Name)? (('in' | '==') Expr)?

// Identifier, but not the special ones

// The special ones, play multiple roles

Cond ::= ('when' | 'unless') '{' Expr '}'

Expr ::= Or | 'if' Expr 'then' Expr 'else' Expr

Or ::= And ('||' And)*

And ::= Relation ('&&' Relation)*
Relation ::= Add (RelOp Add)* | Add HAS Add | Add LIKE Add
RelOp     ::= '<' | '<=' | '>=' | '>' | '!=' | '==' | 'in'

Add ::= Mult (('+' | '-') Mult)*
Mult ::= Unary (('*' | '/' | '%') Unary)*
Unary ::= ('!' '!'* | '-' '-'*)? Member
Member ::= Primary MemAccess*
MemAccess ::= '.' IDENT | '(' ExprList? ')' | '[' Expr ']'
Primary   ::= LITERAL |
             Ref |
             Name |
             Slot |
             '(' Expr ')' |
             '[' ExprList? ']' |
             '{' MapOrFieldInits? '}'

Name ::= IDENT ('::' IDENT)*
// NameInline is exactly the same as Name (and needs to remain so), but the
// inlining gets around an LR(1) problem in the definition of `Ref`

Ref ::= Name '::' (STR | '{' RefInits? '}')

RefInit ::= IDENT ':' LITERAL
RecInit  ::= Expr ':' Expr   |   IDENT ':' Expr

LITERAL   ::= BOOL | INT | STR

// Whitespace and comments
// r"\s*" => { }, // The default whitespace skipping is disabled an `ignore pattern` is specified
// r"//[^\n\r]*[\n\r]*" => { }, // Skip `// comments`

// \("[^"]+"\) => \(\S+[^,]\),
// Special Identifiers (begin expressions)
TRUE ::= "true"
FALSE ::= "false"
IF ::= "if"

// Common Identifiers
PERMIT ::= "permit"
FORBID ::= "forbid"
WHEN ::= "when"
UNLESS ::= "unless"
IN ::= "in"
HAS ::= "has"
LIKE ::= "like"
THEN ::= "then"
ELSE ::= "else"

// main idents
PRINCIPAL ::= "principal"
ACTION ::= "action"
RESOURCE ::= "resource"
CONTEXT ::= "context"

// Valid slots, hardcoded for now, may be generalized later
PRINCIPAL_SLOT ::= "?principal"
RESOURCE_SLOT ::= "?resource"

// data input
IDENTIFIER ::= [_a-zA-Z][_a-zA-Z0-9]*
// The `NUMBER` token is a positive integer.
// Negative number literals are negation operations.
NUMBER ::= [0-9]+
STRINGLIT ::= '"'(.|[^"\])*'"'

// other tokens used
//"@",
//".", ",", ";", ":", "::",
//"(", ")", "{", "}", "[", "]",
//"==", "!=", "<", "<=", ">=", ">",
//"||", "&&",
//"+", "-", "*", "/", "%",
//"!",

Describe the solution you'd like
Shown above
Describe alternatives you've considered
Shown above
Additional context
No response
Is this something that you'd be interested in working on?

[ ] 👋 I may be able to implement this feature request
[ ] ⚠ This feature might incur a breaking change

I'm not quite sure what you're suggesting? Do you want us to add a link to the diagram? I'm going to close this since it is better suited for the cedar-spec repo. If you want you can re-open it there and provide some more context of what you'd like changed.
Note you can find the grammar in appendix B here: https://docs.cedarpolicy.com/Cedar-Language-Spec-v2.0.pdf?raw=true

Good point. We'll update the pdf.


Either the documentation of the following specified topic is not present or there is incorrect address is linked

Request type

[ ] New documentation
[x] Correction or update

Details

In the documentation of Writing xpcshell based unit tests under the topic Test case registration and execution there is a line Adding conditions through the add_test function which holds the link: (https://developer.mozilla.org/en-US/docs/Mozilla/QA/Writing_xpcshell-based_unit_tests#Adding_conditions_through_the_add_test_function) but upon clicking it doesn't get redirected to the desired topic "Adding Conditions through the add test function" either the documentation of the desired topic doesn't exist or a wrong link is provided

The heading changed, so the links became wrong. I've fixed it now; thanks for reporting!


Adding nomad installation script

The intent of this change is to provide an installation mechanism for nomad. For MacOS, Alpine, Gentoo, and Arch, we will be using the OS's internal package management systems to install.
For all other linux distros, we will be querying Hashicorps checkpoint api to determine the latest released version of Nomad, and download and install that into /usr/local/bin.
This also moves some dependencies around, namely jq moved to the depends list and removed from recommends, additionally this is adding 7z as a new secret decoder ring for archives (more versatile than just adding unzip).

This looks awesome! You probably want to add a test to tests/all_depends.etest in the ETEST_depends array of commands to check for the new things you moved there from recommends and then remove things from the ETEST_recommends test right below it. And also add a ETEST_install_nomad test to the bottom of that file

This looks awesome! You probably want to add a test to tests/all_depends.etest in the ETEST_depends array of commands to check for the new things you moved there from recommends and then remove things from the ETEST_recommends test right below it. And also add a ETEST_install_nomad test to the bottom of that file

great call, this bit me last time, thank you for the reminder!


Update inline-style-prefixer to version 2.0.5

Fixes some vender prefixing issues, including a significant one affecting iOS 8 Chrome 47:
https://github.com/rofrischmann/inline-style-prefixer/issues/72

Coverage decreased (-8.7%) to 87.574% when pulling 74d830335dbec5d59cd33edc8a3737d628bc3973 on ScottDikowitz:master into 2c3746eeb83df8a57617f862e167e3ea5d3c27b7 on FormidableLabs:master.


High polling rate makes mouse(HID) movement sluggish

[x] I have read the FAQ.
[x] I have searched in existing issues.

Environment

OS: Windows 10
scrcpy version: 1.23
installation method: Windows release
device model: Huawei Matepad 10.4
Android version: 10

Describe the bug
The polling rate of my mouse can be set to 125hz, 500hz, 1000hz in driver. When it is set to 500hz or 1000hz, mouse(HID) movement is sluggish.

Any relevant logs in the console output?

Sorry. I'm not a programmer that might not understand you well. Where can I find the console output?

Run scrcpy by double-clicking on scrcpy-console.bat. The console is the black window 😉

Double-click on open_a_terminal_here.bat, type scrcpy --otg. Some logs will be printed in this terminal while scrcpy is running.

scrcpy -KM doesn't work. scrcpy --otg works.
And here is the log.
D:\Program Files\scrcpy-win64-v1.23>scrcpy -KM -s TFMNU20429107644
scrcpy 1.23 <https://github.com/Genymobile/scrcpy>
ERROR: On Windows, it is not possible to open a USB device already open by another process (like adb).
ERROR: Therefore, -K/--hid-keyboard and -M/--hid-mouse may only work in OTG mode (--otg).

D:\Program Files\scrcpy-win64-v1.23>scrcpy --otg -s TFMNU20429107644
scrcpy 1.23 <https://github.com/Genymobile/scrcpy>
INFO: Killing adb daemon (if any)...
INFO: USB device: TFMNU20429107644 (12d1:107e) HUAWEI BAH3-W09
WARN: On this platform, libusb does not have hotplug capability; device disconnection will not be detected properly
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event
WARN: Could request HID event

When the polling rate is set to 125hz, I don't see the WARN: Could request HID event

OK, that's what I suspected.
Scrcpy enqueues at most a fixed number of events (currently 64), because if there are too many events not consumed, we want to discard them (to avoid forwarding them with a high delay).
With a high polling rate, this limit might be too low, let's try to increase to 512:
diff --git a/app/src/usb/aoa_hid.h b/app/src/usb/aoa_hid.h
index d785a0e9..d1a95643 100644
--- a/app/src/usb/aoa_hid.h
+++ b/app/src/usb/aoa_hid.h
@@ -27,7 +27,7 @@ sc_hid_event_init(struct sc_hid_event *hid_event, uint16_t accessory_id,
 void
 sc_hid_event_destroy(struct sc_hid_event *hid_event);

-struct sc_hid_event_queue CBUF(struct sc_hid_event, 64);
+struct sc_hid_event_queue CBUF(struct sc_hid_event, 512);

 struct sc_aoa {
     struct sc_usb *usb;

Here is a binary to replace in your v1.23 release:

scrcpy.exe sha256:0801c7a6b84be4e08a9a26d09ab12e5a66fe6fdeb66a6514886cd2e077fd6083

Please check if there are still warnings in the console (if you mouse the mouse for a while). If not, please check that there is no noticeable delay between your mouse motion and the cursor motion.
If there are still warnings, then the events could not be consumed/forwarded at the same rate as they are received. That would require event resampling/merging to accommodate the issue.

I replaced the file.
There are still warnings in the console and the delay is much worse than before.

OK, thank you.
So an event resampling/merging mechanism will be necessary. It's not trivial and requires some work.
Unfortunately, I could not reproduce on my machine with my mouse (AFAIK I could not configure the polling rate).

This is quite important as the polling rate of a gaming mouse is normally set to at least 500hz by default. I'm now ok with 125hz though. I will wait patiently.

Does it work with another Android device?

There are still warnings in the console and the delay is much worse than before.

I tested it on my phone. Still the same.

device model: Honor V10
Android version: 10

OK.
And does it work xorrectly if you connect your mouse directly to the Android device?

Also, do you reproduce the problem if you use the default mouse injection method instead of HID? (Since mouse motion events are not forwarded when nl mouse buttons are pressed, press the left button and move the mouse.)

And does it work xorrectly if you connect your mouse directly to the Android device?

I connect my mouse directly to my Android devices via OTG cable. It works correctly.

Also, do you reproduce the problem if you use the default mouse injection method instead of HID? (Since mouse motion events are not forwarded when nl mouse buttons are pressed, press the left button and move the mouse.)

Sorry. I don't quite understand this. What is "default mouse injecton method"?

Sorry. I don't quite understand this. What is "default mouse injecton method"?

Without --otg.

Do you mean mirroring screen of Android device and controling it on pc screen?

Do you mean mirroring screen of Android device and controling it on pc screen?

Yes. In that case, when you move the mouse with left button pressed, are there any warnings in the console?

No, there is no any warnings in the console.

I have the same issue on v1.24 (latest right now) using a Razer DeathAdder Essential which only can be set to 500 or 1000 Hz polling rate. I tested both
Using 500 Hz, very tiny movements dont trigger the message and seem to result in a good latency. Moving a fraction more or faster and such triggering the message do result in a very noticable input lag. 1000 Hz does increase the input lag even more I would say you can feel it.
I cut the end of the Terminal output because its repeating:
PS C:\Programs\scrcpy-win64-v1.24> .\scrcpy.exe --otg
scrcpy 1.24 <https://github.com/Genymobile/scrcpy>
INFO: Killing adb daemon (if any)...
INFO: USB device: 227d5ca9 (18d1:4ee7) Xiaomi Redmi Note 10 Pro
WARN: On this platform, libusb does not have hotplug capability; device disconnection will not be detected properly
WARN: Could not request HID event (mouse motion)
WARN: Could not request HID event (mouse motion)
WARN: Could not request HID event (mouse motion)
WARN: Could not request HID event (mouse motion)
WARN: Could not request HID event (mouse motion)
WARN: Could not request HID event (mouse motion)
WARN: Could not request HID event (mouse motion)
WARN: Could not request HID event (mouse motion)
WARN: Could not request HID event (mouse motion)
WARN: Could not request HID event (mouse motion)
WARN: Could not request HID event (mouse motion)
WARN: Could not request HID event (mouse motion)
WARN: Could not request HID event (mouse motion)
WARN: Could not request HID event (mouse motion)
WARN: Could not request HID event (mouse motion)
WARN: Could not request HID event (mouse motion)
WARN: Could not request HID event (mouse motion)
WARN: Could not request HID event (mouse motion)
WARN: Could not request HID event (mouse motion)
WARN: Could not request HID event (mouse motion)
WARN: Could not request HID event (mouse motion)
WARN: Could not request HID event (mouse motion)
WARN: Could not request HID event (mouse motion)

I know its asking a bit lot but the DeathAdder Essential is a very cheap gaming mouse by now. I bought it for 28€ 2 years ago not on discount. Cheapest price new I found 22€ just now. Maybe you could consider it for supporting mice that dont go under 500 Hz. I would even use 125 Hz as a workaround if it was available for me.
And heck I would even do 10€ via PayPal or send you mine if needed.

Everything described above applies to my 1000Hz mouse on Linux if that is any help

For sending HID events, it is possible to combine multiple HID event data into one send. after AOAv2 receives the data and reports it to the kernel, the system splits and processes the received HID events one by one. this approach keeps the 1000Hz polling data intact and reduces the data interaction frequency to 125Hz. but it introduces a latency of about 8ms. But I think this is enough to solve the problem.

For sending HID events, it is possible to combine multiple HID event data into one send. after AOAv2 receives the data and reports it to the kernel, the system splits and processes the received HID events one by one. this approach keeps the 1000Hz polling data intact and reduces the data interaction frequency to 125Hz. but it introduces a latency of about 8ms. But I think this is enough to solve the problem.


Blog series

I was thinking it would be cool to have a JuliaML blog which showcases some machine learning and visualization.  Is anyone interested in participating?  Any ideas for content?

sure, but for me it's a little early to contribute. maybe in ~2-3 weeks


Django Hurricane Marketing

Django Agencies: https://docs.google.com/spreadsheets/d/1BF3bxVeAkpbOoF6v1aihJMZ8gW91PF1Rx92W9umzdkI/edit#gid=0
Website: https://django-hurricane.io/        -     Role model: https://quarkus.io/

[x] Proofread Website  https://github.com/Blueshoe/django-hurricane/tree/master/website except documentation
[x] Add Legal Notice & Link to BS Data privacy
[ ] Research Django agencies
[x] Write copy for addressing Django agencies and potential support customers

@Schille I have created a pull request for the legal notice of django hurricane. This has to be linked to in the footer. How do I do this? Also we would like to ad a Link to the Data Privacy of Unikube or Blueshoe in the footer.

@Schille I saw that the pull request is done, great, thanks. How can I access the footer to insert the links?

I did that already. Published.

Thanks @Schille. Two more things:

Imprint should be called Legal Notice
We need another link in the footer for data privacy linking to our bs data privacy: https://www.blueshoe.de/datenschutz/

reminder ping @Schille

Can you fit this in @Schille?

done.

I have researched some django agencies (How many do we want?) and I have made a proposal for the email text. @Schille @Truthans can you give me some feedback?  https://docs.google.com/spreadsheets/d/1BF3bxVeAkpbOoF6v1aihJMZ8gW91PF1Rx92W9umzdkI/edit#gid=846113784

@marty-2015 kannst du bitte für jede Agentur noch einen konkreten Ansprechpartner finden? Z. B. über LinkedIn?
Außerdem den Text für's Anschreiben bitte auch noch einmal auf deutsch. Danke!

@Truthans done. Wenn noch was fehlt, gib Bescheid.

@marty-2015 currently Viktor is building a step-by-step guide to make it easier to understand the implementation of Hurricane. I'd like to wait until this is done before I start the outreach.


ref not working in Slider component

<Slider ref={itemContainerRef} {...settings}>
seems like ref is not working for DOM operations
Uncaught TypeError: Cannot read properties of undefined (reading 'remove')
i got this when try to remove the Slider classList

This is solved by referencing it as a children


x/tools/cmd/godoc: godoc should have a version flag

What version of Go are you using (go version)?

$ go version
go version go1.13 darwin/amd64

Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN="/Users/llimllib/go/bin"
GOCACHE="/Users/llimllib/Library/Caches/go-build"
GOENV="/Users/llimllib/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/llimllib/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org"
GOROOT="/usr/local/Cellar/go/1.13/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.13/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/llimllib/mct/backend/master/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/r4/mc760j7j6xjdgr5p5hxk_xrw0000gq/T/go-build055316358=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?
godoc -version
What did you expect to see?
A version number
What did you see instead?
$ godoc -version
flag provided but not defined: -version

The godoc team suggests upgrading to the latest version to get module support: https://groups.google.com/forum/#!msg/golang-nuts/adEisyiOlwo/Q_5jL9ZKAwAJ
But there's no way to tell what version of godoc you are using, making it difficult to know if you have properly upgraded (especially since there are no documents on upgrading godoc (!))

godoc is frozen.


no-empty-model rule shouldn't warn on record models

issue: https://github.com/Azure/typespec-azure/issues/1710

All changed packages have been documented.

:white_check_mark: @azure-tools/typespec-azure-resource-manager

Show changes
@azure-tools/typespec-azure-resource-manager - fix ✏

Fix the no-empty-model rule to prevent it from being triggered for Records, as this is already covered by another rule.

You can try these changes here

🛝 Playground
🌐 Website
📚 Next docs

validation result: https://github.com/Azure/azure-rest-api-specs/actions/runs/11902850879


Update troubleshoot-apiml.md

Fix the links to the configure certificates.
Close https://github.com/zowe/docs-site/issues/3152
Description (including links to related git issues)
Please describe your pull request.
:heart:Thank you!

All the links on the page for 2.9 works correctly now.


Change Prism to Autoload languages

Description
This pull request will allow Prism to automatically load all supported Prism languages from the official Prism CDN, this increases the currently supported list of languages from the very small amount to literally everything that prism can do.
This pull request also removes all languages except for the ones marked as "Core" on the Prism download site.
Test
N/A
Documentation Changes
I will make a pull request on the larecipe-docs repo after this request gets merged
Breaking Changes?
None, current functionality remains the same but is expanded to more languages.

Awesome 🔥
Thank you @tankerkiller125 for your contribution. You guys are amazing 😍

You should be able to use the markdown just like always, the prism autoload plugin will automatically go to prism CDN and retrieve the correct files.

@OwenMelbz which browser are you using? And if you open the developers tools under network do you see the PRISM CDN request?

@tankerkiller125 yeah it was downloading it correctly, I think the problem was that the CSS required for the styling wasn’t hooking in.
I downloaded the css file on the lararecipe website and replaced and it fixed it.
So was almost like the source code version which was published didn’t support it maybe

The source code version should be work properly, I published the CSS and JS change, so I'm really not sure what happened in your case


fix(graphql-model-transformer): fixed @model scalar types model filter input generation

Description of changes

fixed @model scalar types model filter input generation
added test for multiple @model directives
implemented on top of #7884

Description of how you validated changes

ran yarn test
added unit test

Checklist

[x] PR description included
[x] yarn test passes
[x] Tests are changed or added

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Can you please rebase this to make it simpler to review (some of the changes are already merged I believe).

already merged as part of https://github.com/aws-amplify/amplify-cli/pull/7927


Fix geonetwork API endpoints. Add automatic API discovery

There are many types of Geonetwork API, current API discovery project doesn't cover all API types. Need to implement pingin possible API endpoint and to identify endpoint types

All endpoints tested and updated for all instances using 'scripts/apidetect.py'


single-validator stake pools

tldr we are writing a stripped-down stake pool program for the single-validator case that enables liquid staking with no fees and 100% capital efficiency. the pr comments are a mess because it was originally a poc so im going to track work to-be done here
present status: code is done, pending review from jon, then we discuss/make changes and send into preliminary audit
work (no blockers):

fuzz deposit/withdraw calculations, including how they hold up post-rewards
port over all program/tests/ code to stake-pool-tests/tests/
write a build.rs plus whatever yaml files (if needed?) to get the new stuff running on ci
update cli to work with both programs
update js to work with both programs

work (pending discussion or upstream changes):

assign this a vanity address. i dont know what the process is for how we manage program keys, size mainnet program buffers (but we can realloc program accounts now maybe?), pay fees, etc
click-to-stake instruction(s). this probably depends on the stake program adding multistake accounts. the original idea i had for this was: the user creates and delegates a new stake account and sets withdrawer to the pool authority and staker to their wallet or token account or something. (or we could just alloc a special account. maybe a linked list.) when it activates, anyone can permissionlessly fix Authorized, sweep stake into the pool, and mint tokens to the user. perhaps the user fronts a bounty to incentivize next-epoch merges. with multistake accounts, i believe the flow is much the same, except we track the user via a special account, and the stake is batched in the multistake intake. minting tokens after activation is a design necessity to obviate the need for fees (but again we may have users pay a fee to the minter for timeliness)
slippage. we may want to take this as an argument to deposit and withdraw. we are not exposed to the "manager frontruns a fee change" attack vector the multi-pool is, but we are exposed to sandwich attacks. in theory with access to stake ≫ pool value, an mever could intercept ~all user deposits. we should at least debate whether this is purely theoretical or an actual plausible attack vector

questions / comments / slander / invective:

is anyone assigned to the multistake impl? should i be working on this?
we will need to do some light rework to accomodate multistake accounts. ideally we want every pool to have a multistake and no other stake account. if multistake lands before we deploy, just edit the code to use them and audit again. but if multistake will land after, we want to design a clean upgrade path before we deploy, so that the pools can transition without leaving behind legacy cruft

but if multistake will land after, we want to design a clean upgrade path before we deploy, so that the pools can transition without leaving behind legacy cruft

Assuming multi-stake will land after is probably the right approach. Ideally we can freeze the mono-stake program independently, when it feels right to do so, while also including a mechanism to migrate to a new multi-stake version of the program (perhaps that's just a simple jup.ag-like token swap from the perspective of most users though..)

first version is now merged in under /stake-pool/single-pool/ and ready for audit! and now on to building out the tests

im going to leave it as-is for now because we have audits in flux but since they dont share any code it might make sense to relocate spl/stake-pool/single-pool/ to spl/single-pool/` since trent et al suggested a separate cli (and presumbly js) made the most sense, which i agree with (in part because it will make them significantly simpler architecturally)


add missing permission for managed-serviceaccout

Signed-off-by: Wei Liu<EMAIL_ADDRESS>

/assign @JakobGray

See https://github.com/stolostron/backplane-operator/pull/340


Added pentaho client tools

Tools list:

Pentaho Aggregation Designer
Pentaho Metadata Editor
Pentaho Report Designer
Pentaho Schema Workbench

Closed to favor of https://github.com/edgardmessias/scoop-pentaho


Fix GCC 10 compile errors

Fixed issue #240 by adding stdio.h include headers to src/threadPool.cpp

Sadly doesn't  fix it, but at least the error did change!
https://gist.github.com/Kattus/8e16fcae74eb561040368b021b424d77

@Kattus Are you building it using the AUR package?
The fix worked for me when I built it from my git repo on Archlinux kernel version 5.6.12 with GCC 10.1.0; OpenCV 4.3.0-7; OpenCL 2.2; CUDA 10.2.89-5

@Wykerd I did, used https://aur.archlinux.org/packages/waifu2x-converter-cpp-git/ but applied this as a patch, also tried to replace source to your own repo but errors were identical (I checked with diff)
Anyway it doesn't seem to do anything wacky so I don't see how it works for you but not me.
linux-zen 5.6.13.zen1-1
gcc 10.1.0-1
opencv 4.3.0-7
opencl-headers 2:2.2.20170516-2
cuda 10.2.89-5
so only change is that I use the linux-zen kernel, I'll try using the stock kernel next.

@Kattus I've tried compiling it using the AUR package's method by passing the -DCMAKE_BUILD_TYPE='Release' flag to cmake and I got the same error you have.
The build instructions for linux in the BUILDING.md files says to simply call cmake .. without any flags.

The stdio header had to be included before thread :-)

Yup that made it compile again, cheers! :)

is #227 can solved by this PR?


Handle huge integers in OpenQASM 2 expression evaluator

Summary
This modifies the expression evaluator to directly parse the backing string data of an integer token in a floating-point context, which lets us handle numbers that would otherwise overflow a usize.  It's possible for this to be totally valid, if, for example, the integer is a multiple of some very large power of two that doesn't overflow a double-precision float.
We already needed to immediately cast the integer to a float, so this is just a more accurate way of doing the evaluation, and doesn't affect when we use integers in other contexts.

Details and comments
Fix #11561

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

2 of 2 (100.0%)  changed or added relevant lines in 2 files are covered.
9 unchanged lines in 3 files lost coverage.
Overall coverage decreased (-0.008%) to 89.372%

Files with Coverage Reduction
New Missed Lines
%

crates/qasm2/src/expr.rs
1
94.03%

crates/qasm2/src/lex.rs
2
92.62%

crates/qasm2/src/parse.rs
6
97.15%

Totals

Change from base Build<PHONE_NUMBER>:
-0.008%

Covered Lines:
60262

Relevant Lines:
67428

💛  - Coveralls


Follow symlinks when walking.

Implements fix for issue #5.

Integration tests are still passing.

The default behavior of Unix / POSIX find and of the Python os.walk() are to ignore symlinks, and I expect that uncommitted users will bring those expectations to its behavior. Could you adjust this behavior to be controlled by a command line option? If this were an opt-in behavior actuated by a -L option, then I will be happy to land it. Thanks for the idea, and for the pull request!

Indeed, I've now made it optional.

ping

(Am finally digging back out after chairing PyCon 2016) —
This looks good! I might tweak the partial thing a bit, but otherwise I think this is useful and well-written. Thanks for contributing!


fix: fix wrong dot and assign complete after special ty

fix issues about wrong complete after str ty.
a = "1"
# a.   // wrong complete str builtin functions

schema A:
    a: str
   check:   // wrong complete str builtin functions

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

[ ] N
[x] Y #524

2. What is the scope of this PR (e.g. component or file name):
lsp/completion.rs

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[x] Other

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

[x] N
[ ] Y

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

[ ] Unit test
[ ] Integration test
[ ] Benchmark (add benchmark stats below)
[ ] Manual test (add detailed scripts or steps below)
[x] Other

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 87.787%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2293

Relevant Lines:
2612

💛  - Coveralls