Automatically creating validators for certain types

Question

Python version: 3.7
Pydantic version: 0.32

I am trying to automatically generate pre-validators for some specific types (e.g., datetime) in order to complement Pydantic's.
In order to accomplish that, I am using something similar to the following exert.
However, it turns out my decode function is never called and I don't understand why. Thoughts?
from contextlib import suppress
from functools import partial
import datetime
import typing

from pydantic import BaseModel
from pydantic import validator

class Validator(BaseModel):
    def __new__(cls, *args, **_kwargs):
        for item, _type in typing.get_type_hints(cls).items():
            with suppress(TypeError):
                if issubclass(_type, datetime.datetime):
                    parser_name = f"parse_{item}"
                    custom_validator = partial(lambda __type, _, value: decode(value, __type), _type)
                    custom_validator.__name__ = custom_validator.__qualname__ = parser_name
                    custom_validator.__module__ = cls.__module__
                    setattr(cls, parser_name, validator(item, pre=True)(custom_validator))
        return BaseModel.__new__(cls, *args)

def decode(value):
    return datetime.strptime(value, "%m/%d/%Y %H:%M")

Validators are actually set up by the BaseModel metaclass, if I recall correctly; I think this is why you aren’t getting the desired behavior when you modify the __new__ function. (Note that if your approach did work, it would likely add a great deal of performance overhead since it would add validators every time the model was instantiated.)
The outcome you are trying to accomplish is almost certainly still possible though. Let me think about it for a bit..

Appreciate your response.
I am aware that it will certainly add some performance cost by adding them as the __new__ magic method. I've been browsing Pydantic source code and I am reaching the same explanation you proposed. At least I am at the right path [to understanding why it doesn't work].

@viniciusd Three approaches:

Inject a validator:

This is the closest I could come to your approach; it works in the example below, but I don't guarantee it that it would behave exactly right with regard to inheritance, etc.
I would consider this non-idiomatic for pydantic; see 2. below for the idiomatic approach.)

Click to expand
from datetime import datetime

from pydantic import BaseModel
from pydantic.class_validators import Validator
from pydantic.utils import lenient_issubclass

def custom_datetime_validator(value):
    print("validated datetime")
    return value
datetime_validator = Validator(
    custom_datetime_validator, pre=False, whole=False, always=False, check_fields=False
)

class BaseDatetimeModel(BaseModel):
    def __init_subclass__(cls):
        for name, f in cls.__fields__.items():
            if not lenient_issubclass(f.type_, datetime):
                continue
            f.class_validators.update({f"validate_datetime_{name}": datetime_validator})
            f.prepare()

class DatetimeModel(BaseDatetimeModel):
    x: datetime

print(DatetimeModel(x=0))
# validated datetime
# DatetimeModel x=datetime.datetime(1970, 1, 1, 0, 0, tzinfo=datetime.timezone.utc)

Create a custom type to use as your field annotation

I believe this is the idiomatic approach

Click to expand
from datetime import datetime

from pydantic import BaseModel
from pydantic.datetime_parse import parse_datetime

def custom_datetime_validator(value):
    print("validated datetime")
    return value

class CustomParsedDatetime(datetime):
    @classmethod
    def get_validators(cls):
        yield parse_datetime
        yield custom_datetime_validator

class DatetimeModel(BaseModel):
    x: CustomParsedDatetime

print(DatetimeModel(x=0))
# validated datetime
# DatetimeModel x=datetime.datetime(1970, 1, 1, 0, 0, tzinfo=datetime.timezone.utc)

Update pydantic.validators._VALIDATORS

This uses a private API, so use of this approach should probably be discouraged, but unlike approach 1 I am fairly confident it will work everywhere, and doesn't require a subclass.

Click to expand
from datetime import datetime

from pydantic import BaseModel
from pydantic.validators import _VALIDATORS

def custom_datetime_validator(value):
    print("validated datetime")
    return value

for type_, validators in _VALIDATORS:
    if type_ is datetime:
        validators.append(custom_datetime_validator)

class DatetimeModel(BaseModel):
    x: datetime

print(DatetimeModel(x=0))
# validated datetime
# DatetimeModel x=datetime.datetime(1970, 1, 1, 0, 0, tzinfo=datetime.timezone.utc)

@samuelcolvin is there a public API for updating the contents of pydantic.validators._VALIDATORS? Or would you just recommend the use of option 2 above?

Also, note that with approach 2 above, if you don't want to run into mypy issues due to the datetime subclass in other parts of your code, you could replace it with:
from typing import TYPE_CHECKING:

if TYPE_CHECKING:
    CustomParsedDatetime = datetime
else:
    class CustomParsedDatetime(datetime):
        @classmethod
        def get_validators(cls):
            yield parse_datetime
            yield custom_datetime_validator

Thank you very much @dmontagu, that's a lot of learning about Pydantic internals
I managed a fourth approach, which even I myself would discourage but it ran. It consists of inheriting from the metaclass itself instead of BaseModel:

Click to expand
```py
from contextlib import suppress
from functools import partial
from datetime import datetime
from pydantic import BaseModel
from pydantic import validator
from pydantic.main import MetaModel
class Validator(MetaModel):
def new(mcs, name, bases, namespace, **kwargs):
for item, _type in namespace["annotations"].items():
# Suppress TypeError in case there is some typing instead of raw
# types, e.g., Union[str, int]
with suppress(TypeError):
if issubclass(type, datetime):
parser_name = f"parse{item}"
custom_validator = partial(
lambda __type, value: decode(value, __type), _type
)
custom_validator.name = (
custom_validator.qualname
) = parser_name
custom_validator.module = namespace["module"]
namespace[parser_name] = validator(item, pre=True)(
custom_validator
)
return MetaModel.new(mcs, name, bases, namespace)
def decode(value):
return datetime.strptime(value, "%m/%d/%Y %H:%M")
if getattr(BaseModel, "class") != Validator:
# Replace pydantic.BaseModel's metaclass with our own custom metaclass
setattr(BaseModel, "class", Validator)
</details>

The correct approach is a custom type or use of standard class validators.
I don't think any other approach should be necessary, but if I'm missing something let me know.

Well, my initial point is exactly about automatically creating class validators instead of manually doing that for each field. Thanks anyway.

You could use a class validator on all fields then examine the field argument to check the type of the field.

Is there a way to make a validator run against all fields or do I need to manually insert the list of fields?


ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Centos 7
TensorFlow installed from (source or binary): binary
TensorFlow version: 1.6
Python version: 2.7
Installed using virtualenv? pip? conda?: pip
CUDA/cuDNN version: 9.0/7
GPU model and memory: GeForce GTX TITAN and Tesla K40c

Describe the problem
Provide the exact sequence of commands / steps that you executed before running into the problem
when "import tensorflow", will show "ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory"
But /usr/local/cuda-9.0 is installed, and CUDA_HOME points to this path.
Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

>>> "libcublas.so.9.0" in os.listdir("/usr/local/cuda-9.0/lib64")
True
>>> os.environ["CUDA_HOME"]
'/usr/local/cuda-9.0'
>>> import tensorflow
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/project/activelearning/shalijiang/anaconda2/lib/python2.7/site-packages/tensorflow/__init__.py", line 24, in <module>
    from tensorflow.python import *
  File "/project/activelearning/shalijiang/anaconda2/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "/project/activelearning/shalijiang/anaconda2/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "/project/activelearning/shalijiang/anaconda2/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "/project/activelearning/shalijiang/anaconda2/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "/project/activelearning/shalijiang/anaconda2/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/install_sources#common_installation_problems

for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

@shalijiang
Can you go through the below link1  , #20569 and see software requirements and see if it helps you.Thanks!

@shalijiang
Any updates on the issue please. Thanks!

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!


CI: Use standard node image

Change-type: patch
Signed-off-by: Josh Bowling<EMAIL_ADDRESS>

@balena-ci I self certify!


How to use float8 for training?

Are there any examples for training the MLP blocks using float8 from torchao?
Thanks!

Hi @vgoklani , we don't currently support this, but you could modify a recipe to call torchao.float8.convert_to_float8_training on your model at the end of this function.
However, I recommend using QLoRA, where frozen base model params are quantized to a lower precision (NF4), while the trainable adapter params are kept in a higher precision.
Here's an example config. The QLoRA model builder replaces the model's linear layers with LoRALinear(...,quantize_base=True) layers. If you want to use float8 instead of nf4, you can modify the LoRALinear class.
Let me know if you have any questions!

Thanks @calvinpelletier. We are using the full-finetune scripts, and since the hardware already supports FP8, we are just leaving a lot of performance on the table... We can add it to our internal version, but I would imagine that there are other groups that want this included too.

We would definitely appreciate a PR if full-finetuning in FP8 works out well for you all!

I was working on adding INT8 training to torchtune #1552, and FP8 was also on the discussion. Once the INT8 PR is merged, we can make another one for FP8 too, since it follows a similar design.

Thank you @calvinpelletier and @gau-nernst
Using Dynamic scaling with the torachao api was trivial, and gave me a ~30% performance boost in tokens-per-second
We're running on 4x NVIDIA A6000 Ada cards (SM89)

from torchao.float8 import (
    CastConfig,
    Float8LinearConfig,
    ScalingType,
    convert_to_float8_training,
)

config = Float8LinearConfig(
    enable_fsdp_float8_all_gather=True,
    force_recompute_fp8_weight_in_bwd=True,
    cast_config_input=CastConfig(scaling_type=ScalingType.DYNAMIC),
    cast_config_weight=CastConfig(scaling_type=ScalingType.DYNAMIC),
    cast_config_grad_output=CastConfig(scaling_type=ScalingType.DYNAMIC),
)

convert_to_float8_training(mlp, config=config)

strangely enough, using DELAYED scaling crashed torch.compile... will need to dig into that further...

@vgoklani Delayed scaling is not as well-supported as dynamic scaling I think. Should be fine to stick to dynamic scaling.

@gau-nernst The loss was very close to bfloat16


TextBox KeyDown should not cause hamburger menu opened

When typing some words on TextBox in Minimal sample project and pressing Enter key, the app should only navigate to DetailPage but not open the hamburger menu simultaneously.

I agree.

Can you see what is causing the Pane to re-open? I'm looking at it and can't put my finger on why it's opening in the first place.

I've fixed it, will send a pull request and provide some explanation for this issue soon.

@JerryNixon I have submitted the pull request #81 for this issue.
This is an internal bug of WinRT, confirmed by MSFT on MSDN forum three years ago. The KeyDown event of TextBox will be triggered twice. When the second time of KeyDown fired, the frame has been navigated to another page, but the event still propagates and then intercepted by other controls. In this case, the hamburger button handles it, so the pane is opened.
I replace KeyDown with KeyUp in this patch, and it works fine on both PC and phone :)
Anyway, please help to report this bug to RD team, it has been added to internal bug database for 3 years. It's easy to be reproduced with a simple application.

Resolved in current pull.


Can't find drupal.yml

I finally got my TuringPi v1 and have been following your excellent youtube videos but have got stuck on the drupal part of https://www.youtube.com/watch?v=IafVCHkJbtI&ab_channel=JeffGeerling as the file does not seem to be in your github

found it https://gist.github.com/geerlingguy/4613ea753d2286b6ed0cb4e3c272ce23

https://gist.github.com/geerlingguy/4613ea753d2286b6ed0cb4e3c272ce23


Different Position.Timestamp between Android and iOS

Bug
Different Timestamp is returned by Android devices and iOS devices.
I wrote a simple program that displays Latitude, Longitude, Altitude, Timestamp, Timestamp.LocalDateTime, Accuracy, Heading.
Like you can see in the attachment (taked at 16:20 local, 14:20 UTC time) the Android phone (Galaxy A3) shows the correct timestamp, instead on the iOS devices (iPhone 4 / iPhone 5c) a wrong timestamp is displayed (an hour back).
                LabelTime.Text = pos.Timestamp.ToString("HH:mm:ss z");
                LabelTimeLocal.Text = pos.Timestamp.LocalDateTime.ToString("HH:mm:ss z");

Version Number of Plugin: 3.0.4 (last stable)
Device Tested On: Samsung Galaxy A3 (Android 5.0.2) / iPhone 4 (iOS 9.2.1) / iPhone 5c (iOS 9.3.4)
Simulator Tested On:

I think we fixed this in the beta....
Due to convergence with how I moved the repos it is hard for me to go back and fix this as a hotfix :(


ERA file support

Problem description
As Ethereum moves towards a world where historical information over 1 year is purged on nodes that don't really need it, support has been gaining around ERA files .e2s to store and redistribute execution, but also beacon chain history and state. We should be able to support integrating this data structure format in Lodestar.
Solution description
The solution is not as straight forward, but we can work towards how we can approach supporting these files.

How do we integrate them?
If we can parse them, what do we do with them?
If we can generate .e2s files, when do we create them and how does that affect our database?

As of today, no specification has been proposed about how to integrate an endpoint for supporting this feature.
Additional context
Implementation of e2store files by Nimbus: https://github.com/status-im/nimbus-eth2/blob/stable/docs/e2store.md
EthResearch Post: https://ethresear.ch/t/era-archival-files-for-block-and-consensus-data/13526
Ultralight (Portal Network) integration: https://github.com/ethereumjs/ultralight/pull/613

Requirements (do we want to do these?):

Tool to create an .era file
Being able to configure the BN to point to a dir with the era files and use them for historical state type tasks.
There are multiple points in the BN to regenerate the data files: Once every period after the period finalizes. Or after X months (after the block data availability period is over during prune).


nixos: make symlinks in /etc relative (except /etc/static)

Motivation for this change
Main motivation is to fix extra-container, so it can run declarative NixOS containers on non-NixOS (https://github.com/erikarvstedt/extra-container/issues/1#issuecomment-426211660).
But seriously, there is a real problem with symlinking stuff currently. Let me show an example. Here's a simple container, where we override NixOS version.
  containers.custom = {
    autoStart = true;
    config = {
      system.nixos.version = "CUSTOM";
    };
  };

Now let's see, if that works:
### good
$ sudo nixos-container run custom -- cat /etc/os-release | grep VERSION=
VERSION="CUSTOM (Koi)"

### bad
$ sudo cat /var/lib/containers/custom/etc/os-release | grep VERSION=
VERSION="19.03.git.0652f62 (Koi)"

Indeed, in second case /var/lib/containers/custom/etc/os-release points to /etc/static/os-release of the host system, not container! This is wrong, but even worse happens on non-NixOS, where there is no /etc/static on the host - container can be created and started, but can't be rebooted.
This builds on top of https://github.com/NixOS/nixpkgs/pull/35364, however, I am not fixing the original problem (allow machinectl pull-tar to run NixOS containers). I'll make a separate PR, which builds on top of this (and https://github.com/NixOS/nixpkgs/pull/35364) and makes /etc relative symlink for container tarballs.
cc @edolstra
cc @florianjacob as original author
cc @Ekleog @7c6f434c @erikarvstedt as potential interested parties
Things done
This makes symlinks relative in host's /etc too. Rebuild-switch is handled correctly, and my machine survives multiple reboots. Also, simple installer NixOS test passes.

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

[X] NixOS
[ ] macOS
[X] other Linux distributions

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

Pretty sure it's this PR, but after upgrading this morning, I've been getting boot warnings on stage-2-init about symlinks, though it doesn't seem to break anything.
One such example:
/etc/cups directory contains user files. Symlinking may fail. at /nix/store/amhpx347b7n6m2bq24siw0qq27w3np8n-setup-etc.pl line 114.

@eadwu I'll take a look

Same warnings here.  Basically the check for isStatic is incomplete and doesn't handle things like:
/etc/plymouth/plugins -> ../static/plymouth/plugins
Some of this can be fixed but I don't know if there's a great answer for this that doesn't involve manually walking the filesystem or making some assumptions (perhaps enabled by constructing /etc to make this easier?).
Well nevermind, I was puttering late at night so maybe there's a good answer here :).  But I think this should be fixed soon and carefully.  And if this is going to 19.03 resolving these warnings should be a blocker so as to not confuse or mislead users.  It looks like /etc is still populated appropriately, but would be good to have some confidence we're not going to nuke user files by misunderstanding their origin or something.

@dtzWill you were correct.
I've spent a few hours trying to make this coversion /etc/udev/rules.d -> ../static/udev/rules.d -> /etc/static/udev/rules.d, but failed. Perl explicitly warns that
/etc/udev/../static/udev/rules.d

isn't same as
/etc/static/udev/rules.d

and none of it's primitives resolve .. without taking symlink realpath. And realpath doesn't work, because /etc/static is itself tree of symlinks, so /etc/static realpath and /etc/static/udev/rules.d realpath are different.
I tend to reverting this PR, until I can figure out what is the most appropriate way to fix this. :(

On Fri, 22 Feb 2019 23:41:14 -0800, Danylo Hlynskyi<EMAIL_ADDRESS>wrote:

@dtzWill you were correct.

:( I was hoping I'd missed something.

I've spent a few hours trying to make this coversion /etc/udev/rules.d -> ../static/udev/rules.d -> /etc/static/udev/rules.d, but failed. Perl explicitly warns that
/etc/udev/../static/udev/rules.d

isn't same as
/etc/static/udev/rules.d

and none of it's primitives resolve .. without taking symlink realpath. And realpath doesn't work, because /etc/static is itself tree of symlinks, so /etc/static realpath and /etc/static/udev/rules.d realpath are different.
I tend to reverting this PR, until I can figure out what is the most appropriate way to fix this. :(

I've reverted it locally for this reason.
If this can't be sorted out perhaps the original goal
re:/etc/os-release can just be special-cased?

--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/NixOS/nixpkgs/pull/54980#issuecomment-466626133Non-text part: text/html

This pull request has been mentioned on Nix community. There might be relevant details there:
https://discourse.nixos.org/t/nixos-rebuild-switch-upgrade-error-directory-contains-user-files-symlinking-may-fail/2266/2

@layus there is also namei util, which I thought would be useful to reuse.
This has to be solved in some other way. Currently "static" files are checked by being symlink to /etc/static, but they can also be checked if those exist in some file etc-static-list. So etc-builder should build list of static files, which it can then use to remove unreferenced files.


SiSEC 2018 Evaluation campaign website down (sisec18.unmix.app)

Hey,
I don't know if the people behind this repository also manage the evaluation campaign website, but it has been down for the last couple days.
Thanks !

Hi @hugo-paugesteros I didn't know so many people still need it so I quit the domain.  Thank you very much for your quick response ! Unfortunately, the link you provided doens't seem to work (at least in France, I don't know if it could be related). But don't worry, i just wanted to check if this was a known issue or not :)


Message Spam detection

@avinashkranjan I would like to work on this issue, I am a participant in SWOC 2021.
Aim

Detecting whether the obtained message is spam or not spam.

Details

I will be using naive-Baye's machine learning algorithm. To build this model.
I will first collect the data set, then train the model and test the model
Then I will just import a simple text or a message and check whether the message is spam or non-spam.

This script will help the students who are exploring machine learning algorithms.

Sure Go ahead @saiharsha-22

@avinashkranjan thank you for assising the issue I will start working on it

Hello, I would love to work on this.
My approach would be:

Find a relevant dataset.
Examining, analyzing, and visualizing the data.
Data Cleaning & Feature Extraction.
Data Preprocessing (lemmentizing, bag of words/tdidf)
Model training using sklearn algorithms
Model selection based on test results.

@Nkap23 Updates on this?

@Nkap23 Updates on this?

Yes sir, I am working on it. 60% done. Will finish it by today or tomorrow.

Sorry for the late PR. I have finally finished it (had some urgent clg work, so this got delayed). I will be making a PR soon :)


Some edge detail pages make ui crash

The is in docker plugin rendering when they are empty.

Fixed in commit 0650d455b732e447ce8fa9117a1da97016309fd9


terraform-providers.netlify: 0.4.0 -> 0.6.12

Motivation for this change
Switch base, https://github.com/hashicorp/terraform-provider-netlify has
been archived. AegirHealth is the freshest one and supports DNS
records that are needed for NixOS/nixos-org-configurations#163
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

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

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 140460 at afc60010 run on aarch64-linux 1

2 packages built successfully:

terraform-full
terraform-providers.netlify

@zimbatm
This provider seems like it is unmaintained as it hasn't been updated since this PR and currently it doesn't build with go 1.18 on darwin.
https://github.com/AegirHealth/terraform-provider-netlify
https://github.com/NixOS/nixpkgs/blob/e30abcd5d74648ffe676337fc0abea33377d2c4a/pkgs/applications/networking/cluster/terraform-providers/default.nix#L67
When go 1.17 is EOL in a couple of months I'm planning on removing any providers that don't build on all platforms as I don't think having the code to mark them broken by platform and filter them from terraform-full is worth the hassle when it is only a couple of problematic providers out of ~140, easier to drop them and we re-add them later if they get fixed.
In this case we are using this provider in the nixos.org config so I can't just drop it outright. We could patch it but given it seems unmaintained that doesn't seem like a long term solution. Not sure what the best way forward is?

Since we only use the provider on Linux, I don't mind if it's broken for Darwin. If you want to remove it I'll maintain my version in the org repo, or use the -bin release. Other than that, the provider is still working as expected AFAIK.
Maybe the issue is to have this terraform-full package? It was introduced for terragrunt, but terragrunt doesn't depend on terraform explicitly anymore. It was also a time when the number of providers was small and still reasonable to download them all.

Maybe the issue is to have this terraform-full package? It was introduced for terragrunt, but terragrunt doesn't depend on terraform explicitly anymore. It was also a time when the number of providers was small and still reasonable to download them all.

Yeah, with the number of providers we have terraform-full likely isn't that useful to anyone. If we drop it broken providers aren't really much of an issue, and we can switch to using terraform.passthru.full for testing the updates on ofborg.
I'll open a PR for this soon.


Fix dynamic dropdown scripts for service reconfiguration

Previously scripts to feed entries for dynamic dropdown lists including AvailableFlavors,  AvailableImages, AvailableResourceGroups and AvailableTenants  do not work correctly in service reconfigure dialog.
This fix finds orchestration_manager through service_template in the case of orchestration service provisioning, or through service in the case of service reconfiguration.

@gmcculloug Please review


Generated bindata.go file depends on unspecified information

The Problem
I used the following command to generate the bindata.go file:
go-bindata examples/ca/CA.key

The $PWD (current working directory) is /home/zhongming/git/LogiOcean.
The generated bindata.go file contains functions such as the following:

var _bindataHomeZhongmingGitLogiOceanExamplesCaCAkey = []byte(
        "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x6c\x97\x37\x0e\xac\x0a\x16\x05\x73\x56\xf1\x73\x34\x02\x1a\xdb\xc1\x0f" +
        "\xf0\xde\x7b\x32\xbc\xf7\x8d\x5d\xfd\xe8\x3d\x4d\x38\x37\xbd\x59\xa9\x82\x53\xff\xf9\x73\x0c\x2f\xca\xc6\x3f\x8e" +
        "\x4b\xff\x63\x39\x72\x40\x7b\xfc\x3f\x2a\x1f\xff\xfd\x00\xba\x2c\x2b\xca\x25\x33\x34\xad\xb2\x74\xcd\xd3\xb0\x57" +
        "\x73\xed\xd9\xb2\x75\xbe\xda\xf9\x48\x72\x1a\x57\x98\xa7\x97\xab\x77\x31\xd9\xbb\xeb\x47\x20\x42\x3e\xf6\xe3\x83" +
        "\xae\x41\x5c\xbf\x8e\x96\x81\xde\x12\x74\xd1\x20\xa8\x4b\x96\xb0\x5a\x05\xc1\x53\x1f\x9c\xfb\x91\xac\x42\xd8\x64" +

(omitted for brevity ...)

Apparently, the function name was derived from the absolute path of the asset file, which is /home/zhongming/git/LogiOcean/examples/ca/CA.key.
This means that if I git clone my repo to a different location, cd there, and run the same command go-bindata examples/ca/CA.key, the generated bindata.go file would not be identical.  However, I DO expect them to yield identical generated files in both cases.
The root problem of such function names is that they depend on things that are NOT part of the original command line input.
Proposed Fix
I'd like to propose modifying the Scan function defined in the fsscanner.go file to respect relative paths such as in go-bindata examples/ca/CA.key. So that the Translate function defined in translate.go would have relative paths in the assets' Func field.

I think this has been fixed on master.  Can you tried it?

Thanks @shuLhan for the update.
I have just tested. This problem is fixed on commit 39bbb8f7e6f7ffe0a226b35c53cf631880a47540 (master as of this writing).
Thanks!

I do not have anything else to complain about now.  Thanks for the help. Appreciate it. Please feel free to close this issue.

I am glad it had been resolved. Sorry for long respond.

Out of the very many go-bindata forks, this is the most well-maintained.
Thanks for your time fixing issues! Really appreciate it!


fix: next route handler extensions

This is unfortunately undocumented like most next.js quirks but this does work if you are making an og image route handler kinda like the opengraph-image convention but with less magic

Thanks for the PR, @Jaxenormus. Any chance you could share what routes exactly aren't matching?
There's https://knip.dev/reference/plugins/vercel-og but that's not enough I guess. What related dependencies are listed in package.json?

Thanks for the PR, @Jaxenormus. Any chance you could share what routes exactly aren't matching?
There's knip.dev/reference/plugins/vercel-og but that's not enough I guess. What related dependencies are listed in package.json?

in our use case the route that did not match was apps/hub/app/api/images/ [companyRoute]/og-png/route.tsx where the route was sending an ImageResponse which lets you return jsx but to do so the files has to be a tsx file

Alright, thanks for the clarification!

:rocket: This pull request is included in v5.12.0. See Release 5.12.0 for release notes.
Using Knip in a commercial project? Please consider sponsoring me.


Something something... I made diz squishy_cookies

Check this
https://github.com/omar2205/squishy_cookies

There is this method where you set a field in the table:
User table = {
  // ...
  login: 1
}

And you use it like this:
await createSignedCookie('id', `${user.id}:${user.login}`, ....)

And to invalidate the cookie just increase that number

It's beautiful! I slept on it and decided I was going to create this if someone didn't. The RequestCookieStore and SignedCookieStore just don't seem quite right for what we need here.


EDU-699 Do not swallow duplicate key errors happening during maintenance

Closes https://educandu.atlassian.net/browse/EDU-699

Nice catch!


Typing long reads

Hello
Help me with long read typing
I tried_
bash script/ long_read_typing.py -j 5 -n HLAs1 -r HLAs1. fastq -o output_

Hello,
Thanks for using SpecHLA. What error did you meet after running this command?

I cannot open the screenshot.

script/long_read_typing.py: line 4: $\r\nFunction 1: assign long reads to the gene\r\nFunction 2 : typing with only long reads\r\n\r: command not found script/long_read_typing.py: line 5: $\r': command not found`

Hello，as this is a Python script， you should run it with python3.在 2024年5月21日，17:10，oumodavid1625 @.***> 写道：
script/long_read_typing.py: line 4: $\r\nFunction 1: assign long reads to the gene\r\nFunction 2 : typing with only long reads\r\n\r: command not found script/long_read_typing.py: line 5: $\r': command not found`
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

Thank you, this one worked

Good to hear this.


Fixes Chrome field losing focus

In the latest version of Chrome, the text field loses focus when mouse
is used to select suggestion.

@tadurham :+1:


list getitem doesn't throw with step 0

for example, in python, [][::0] raises ValueError("slice step cannot be zero")
fora is perfectly happy with this

yeah, that's no good...
On Tue, Nov 10, 2015 at 4:53 PM, Thomas Peters<EMAIL_ADDRESS>wrote:

for example, in python, [][::0] raises ValueError("slice step cannot be
zero")
fora is perfectly happy with this
—
Reply to this email directly or view it on GitHub
https://github.com/ufora/ufora/issues/109#issuecomment-155578555.

--
Braxton McKee                             CEO / Ufora
www.twitter.com/braxtonmckee www.ufora.com


FlowContainer Scale also scales the wrap breakpoint

Tested versions
Tested in 4.3.beta1
System information
Godot v4.3.beta1 - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4070 (NVIDIA; <IP_ADDRESS>22) - AMD Ryzen 7 5800X 8-Core Processor (16 Threads)
Issue description
If you have a Control > H/VFlowContainer
and you add 2 or more childs,(more childs make it more obvious)
everything works as intended if you now change the size with dragging the x or y value of the FlowContainer

But if you now scale the FlowContainer to for example 0.5 all childs wrap at half of the size of the FlowContainer

Steps to reproduce
setting up takes 10 seconds
Make a new scene with a flow container
add at least 2 childs, more is better.
child should have a size I tested with just ColorRect custom minimum size (50,50)
Change scale of FlowContainer to example 0.5
then drag/resize the FlowContainer window with mouse and you will see the problem
Minimal reproduction project (MRP)
N/A

Not seeing it with my setup. No ideas why.
AMD Radeon 5700XT, Forward+, 4.3 beta

@Sluggernot Your Scale is 0.6 so the break point will be at 60% of the width on your selection which you just barely did not reach
if you reprocude this with a lower scale for example 0.2 it should be very obvious

I'm just bad. I should have stated I did lots of testing with different values. I only saw wrapping when expected. That is, shrinking the right side over until a ColorRect must wrap to not be obfuscated.


Ignore failure of pyenv activate

When the current pyenv environment is not a virtualenv, this line
exits with a return code of 1. This is annoying for those of us
who report the last return code in our own PROMPT_COMMAND, so
ignore the output of pyenv activate if we're not currently using
a virtualenv.

Looks good. Thanks :octocat:


[Question] My browser refreshes every 30-ish seconds, even when nothing changes. Desired behavior?

I was using the browser devtools to look at an object returned by a function. VSCode was in the background, nothing changed, and yet my browser reloaded. I started observing this, and for some reason, the browser reloads every 30 seconds or so. This happens on two external browsers, the internal VSCode browser, and even a browser on a different device, so the refresh is definitely coming from VSCode. I love the instant updating, but this periodic forced refresh is driving me crazy. Is this desired behavior? If so, how can I turn it off?

It is not expected behavior for the browser to reload without any changes or saves. Can you give some example code that triggers this bug?
Also, if you want to see less refreshes, you can toggle what triggers refresh using the livePreview.autoRefreshPreview setting. Perhaps changing this to only refresh on save will help out?


Kubernetes: allow lakeFS to start with the default values

It is a convention in the k8s world for the default values to allow the system to start (usually in quickstart mode for learning purposes).
This will require an embedded database of some sort.

Subset of #504


feature request: offer the possibility to add an analytic tag

I think it would be cool to allow the integration of an analytic tag (such as matomo) to the docker image of niolesk.
It could be cool to add a parameter to the Docker image to add an analytic tag at runtime, when launching the container.

I don't use analytics, or at least since many many years, so I want to be sure of the need here.
Would the following feature be enough ?

A "string" would be provided as a docker ENV VAR (containing a valid DOM node)
The string would be included somewhere on any page

Matomo offer several solutions for tracking website activity:

javascript code to be included (where changing data are the u matomo server url, and the siteId site id):

image tracking (with the same matomo server url and site id):

and few other solutions (server log analyzing, SDK for mobile apps, http api, specific SPA - Single Page Application - tracking, and specific tag management)

I think that it would be great to propose at least the two first solutions, that are widely used among all analytics solutions.
For example, lutim is offering the image tracking solution as a configuration entry in the configuration file. The integration made by lutim is interesting as you only have to enter the image tracking url, and not the whole img src tag. But the drawback is that you can't choose between the image tracking or the javascript code.
That's why I think that the solution that you propose is a bit more complicated for average user, but more powerful and versatile. Note that the solution should be available for docker users (and as well available as a docker en var), but also to raw html users (with or without a yran build, users should be able to find a placeholder and to replace it by a javascript script, or by an image tracking tag).

I don't like having to depend on "the latest way to include analytics info" from "the latest tool".
I do understand the problem of ease of use.
I'll try to implement a mixed solution to have as much as possible no dependency on matomo or another specific tool, and still have something "not too complex" to configure...
Also, the kroki engine URL is currently configurable threw a config file, that file being patched when the docker container is started, or just editable when used as a simple static site. There is no reason to not do that for any other configuration value, so any configuration will be both configurable using DOCKER env or config file.

The solution I envisage:

Some docker env var

A NIOLESK_ANALYTICS_CONTENT : If defined, the whole string used as HTML content
A NIOLESK_ANALYTICS_PROVIDER : A string for a "provider" (like "matomo_js" or "matomo_image" for example). Is overrided by NIOLESK_ANALYTICS_CONTENT
A NIOLESK_ANALYTICS_DATA1 : Depends on the provider, but can be the matomo site url
A NIOLESK_ANALYTICS_DATA2 : Depends on the provider, but can be the matomo site id
possibly some NIOLESK_ANALYTICS_DATA3, NIOLESK_ANALYTICS_DATA4 if needed by provider...

A configuration file (automaticly patch by docker when stated inside docker) with all those parameters

May look like

window.config = {
    krokiEngineUrl: 'https://kroki.io/',
    analytics: {
    content: '',
      provider: 'matomo_js',
      data: [ 'https://matomo.server.url/', '42' ]
    },
};

A provider configuration file:

May look like

window.analytic_providers_config = {
    matomo_js: `

    `,
    matomo_image: `

    `,
    google: `

    `,
};

That way, the niolesk process don't have to know the providers. Only the providers configuration file is needed. That file can be edited by power user. For docker, that file can be overriden with -v on the file itself.
The whole content of the HTML analytics block can passed in the "content" var/field, overiding everything else.

That would be great!
And this solution seems brilliant!

Coded that, but doesn't work : javascript "script" tag can't be included at runtime like any block of html, because of security considerations.
I'm rewriting a slyghly more complex version where code should be either html block or script.

Hello !
Now, it's done... at least on the dedicated branch. Spec has changed a bit, as

Ok, I'll test it as soon as possible. But it won't be this week.

Merged, and released with version 1.7.4

I've tested this feature, and I can't see any request in my web developement tools.
Here are the environment variables that I have added:

NIOLESK_ANALYTICS_PROVIDER_NAME=matomo_js
NIOLESK_ANALYTICS_PROVIDER_ARG1=https://my.matomo.instance.url/
NIOLESK_ANALYTICS_PROVIDER_ARG2=9221

Have I forgot anything?


Removed a non-recognized format.

Removed some redundant text from the explanation for "General Date".
Removed date format "aaaa", as this is not recognized by the function.
Changed uppercase H, N, and S to the common (and equivalent) lowercase h, n, s - as used above in paragraph "Time Symbols".

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

Language/Reference/User-Interface-Help/format-function-visual-basic-for-applications.md
:white_check_mark:Succeeded
View

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


Fix clang-cl treating file as a /U arg.

On MacOS, paths will likely start with /Users, but clang-cl treats /U
as an argument, which leads to the source being mistaken for a flag. To
avoid this, we can pass -- before the source to ensure argument parsing
is disabled.

This was already previously proposed in https://github.com/alexcrichton/cc-rs/pull/670
I can confirm this works as expected.


Swift?

Any chance you will turn to swift?
Very nice library btw.

It's been a long time since I don't update this library.
Is there any reason I should rewrite this in Swift? Interoperability between both languages are quite ok IMO.


Installing package with --x86 seems to be 'sticky' for subsequent packages

In my BoxStarter script, I install Notepad++ with the --x86 flag.
All packages that are installed after this seem to also install as 32bit packages. This is not new with 2.9.x - I saw the same problem with the previous version of BoxStarter.
Here is a gist which reproduces this problem on a new Azure VM - https://gist.github.com/flcdrg/87802af4c92527eb8a30/raw/7f28c4c77e3bf85346a813269cd8529ade8d1f65/boxstarter-bare.txt
As a workaround I'm going to try putting Notepad++ at the end of the script.

@flcdrg Is this still an issue? PR #306 was merged to fix the issue.

Good question.. When I get a chance, I'll try and repro it with the latest bits

Just confirmed that this is still a problem. Ran latest Boxstarter with a Gist like this:
cinst notepadplusplus --x86
cinst microsoft-teams

And it installs microsoft-teams as 32-bit

Here's the boxstarter.log

Line 2553 "User specified -x86 so forcing 32 bit"

So this appears to be a Chocolatey issue - we'll fix it for 0.10.14.

@flcdrg Is this still an issue as it was fixed in 0.10.14 of Chocolatey?

I'm not sure. The Notepad++ x86 plugin compat issue has largely gone away, plus I pretty much use VS Code now anyway.
I'm closing this. If someone else hits it, feel free to reopen.


[NEW ICON] Apache Cassandra

Skill Name
ApacheCassandra (or just cassandra)
Why?
There are icons with Redis, Postgresql, MongoDB and others - why not 🤷♀? + cassandra has an svg template
Reference Image
Background: #FFFFFF

https://upload.wikimedia.org/wikipedia/commons/5/5e/Cassandra_logo.svg

Added in 47e2fb9bc1353315f589ad5ce992b4f7debf2e48


Add methods that takes percentage parameters

It is now possible to user ‘%’ characters.
ex:
view.pin.top().left(25%).width(25%).height(100%)

top(_ percent: Percent)
left(_ percent: Percent)
bottom(_ percent: Percent)
right(_ percent: Percent)
hCenter(_ percent: Percent)
vCenter(_ percent: Percent)

Plus:

Implement hCenter() & vCenter()
Implement margin(_ vertical: CGFloat, _ horizontal: CGFloat) & margin(_ top: CGFloat, _ horizontal: CGFloat, _ bottom: CGFloat)
Add more unit tests
Removed few forced optionals
Removed deprecated UIView+PinLayout extension.

Nice les % !

Codecov Report

Merging #27 into master will increase coverage by 0.38%.
The diff coverage is 80.97%.

@@            Coverage Diff             @@
##           master      #27      +/-   ##
==========================================
+ Coverage   93.54%   93.93%   +0.38%
==========================================
  Files          15       14       -1
  Lines        2417     2605     +188
==========================================
+ Hits         2261     2447     +186
- Misses        156      158       +2

Impacted Files
Coverage Δ

PinLayout/Helpers/Coordinates.swift
100% <ø> (+14.63%)
:arrow_up:

PinLayout/PinLayout.swift
100% <100%> (ø)
:arrow_up:

PinLayoutTests/AdjustSizeSpec.swift
100% <100%> (ø)
:arrow_up:

PinLayoutTests/PinEdgesSpec.swift
100% <100%> (ø)
:arrow_up:

PinLayout/TypesImpl.swift
100% <100%> (ø)
:arrow_up:

PinLayout/PinLayoutImpl.swift
81.27% <53.84%> (-2.96%)
:arrow_down:

Continue to review full report at Codecov.

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

@HugoMirego oui je trouve aussi 😄


Semi & singleQuotes configuration - [Not available for now]

Hi @dsznajder, thanks for making this nice plugin. Is there an existing way to use double quotes instead of single quotes and to add semicolons?
Example ->
import React, { PureComponent } from "react";
import PropTypes from "prop-types";

export default class TaskInformation extends PureComponent {
  static propTypes = {

  }

  render() {
    return (
      <div>

      </div>
    );
  }
}

There is no possibility for now, but feel free to add this option :)

I didn't check the code base yet, I will try anyways :)

Single quotes is based on your vscode settings.

I'm not sure if you need this feature inside the library for another reason but there is always the possibility to have prettier autoformat your code based on your project preferences.

Insert snippet
Save document with prettier installed or format code via the command palette CTRL|CMD+Shift+P => Format Document

@ReasonableDeveloper Sure, but would be nice if someone could do it without some onSave hook / format document. I'm also looking forward to add some other specific settings as // @flow annotation, etc. I will check once more if anything has changed

For semi-colons, it is possible by editing snippets.json. However, not all users prefer semi-colons.

It would be good if you add this as an option. If it turned on it will add semicolon, vice versa.

@trailofdad I've tried the approach which we discussed, unfortunately I didn't achieve the expected result. active function only is applied when command for search is triggered, and I did not found any other solution in docs (maybe I've missed something). Additionally, .json files are loaded on very beginning (their paths are declared in package.json).

I found this plugin has options to decide whether to use semicolons or not. The plugin works for now but it seems that it's no longer being manitained by its owner.
Maybe someone would check this. React Redux ES6 Snippets

So you guys just gave up on this idea?

 Unfortunately, It's still very limited but it's working for snippets from search. Hope so for now it will be enough but still looking into the possibility of dynamically loading inline prompts and applying format


Crash, RE3

Version
3.1.1 (1e8850a)
Seed
R730-VLCY-WXHH48LZ9YL00QJZZZZZWZZZZZZZZZZZZZZZZZZZZZ
Scenario
RE 3 (Jill)
Player Character
Claire RE2
What happened?
Game continuously crashes as you go through the initial cable car sequence. After getting past the gate with the gems, proceed to the cable car. Once you enter, you will have a conversation with Nicholai (RE5 Chris) and interact with Mikhail (also RE5 Chris). When you enter the next room to meet Carlos and Nicholai, the game crashes. Up to this point I have completed the medical office beyond the fire, have completed the Stagla gas station, have not interacted with Mayor Warren's statue (the door is still closed until I go back) and I received all three key items (fuse, power cord, mixed oil). Upon adding 2 of the 3 key items, this crash happens. If you only add 1 of the 3 items or none of the items, it still crashes once you open the door. I have tested this by leaving the fuse in the item box, but it still crashes. If you add all 3 of 3 key items, you get a Carlos cut-scene (feature Annette RE2R), followed by the initial cut scenes; a crash still happens when you enter the next room. I tried to door-skip my way past the error, but the second cable car room (which usually has the wrench) does not show up. If you jump to the cable car moving room you can get around this error but you are unable to finish the areas.

Disable mod_biorand\room (rename folder name "room" to room.01) , run the game again.
If game ok , maybe the problem is some npc crashed the game.

You are playing an old version. I think this is fixed in the latest version, 3.1.2.


[stable/prometheus-rabbitmq-exporter] Fix ServiceMonitor port

Signed-off-by: Nacef LABIDI<EMAIL_ADDRESS>
What this PR does / why we need it:
ServiceMonitor points to port named "publish" which is service targetPort instead of service's externalPort
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Title of the PR starts with chart name (e.g. [stable/chart])

@nacef-labidi sorry I missed this. Can you reopen/resubmit?


Bug 2074675: Fixing HPA not converting apiGroup for deploymentconfigs (#126)

Fixing HPA not converting apiGroup for deploymentconfigs

Fixing typos

Update velero-plugins/horizontalpodautoscaler/restore.go

Co-authored-by: Pranav Gaikwad<EMAIL_ADDRESS>
Update velero-plugins/horizontalpodautoscaler/restore.go

Co-authored-by: Pranav Gaikwad<EMAIL_ADDRESS>

Throwing error when it's not possible to parse APIVersion of hpa.spec.scaleTargetRef

Excluding HPA from common restore plugin

Co-authored-by: Adriano Marcondes Machado<EMAIL_ADDRESS>Co-authored-by: Pranav Gaikwad<EMAIL_ADDRESS>

/hold


Change theme, fix Quickstart & Examples

Change theme
Add favicon
Refactor "Hello world" example
Move "Why HPX" and "Terminology" sections at the end
Simplify titles of "Examples"

@dimitraka the updated docker image is now available. Could I ask you to change all occurrences of build_env:7 to build_env:9 (9 is not a typo)? We use it e.g. here: https://github.com/STEllAR-GROUP/hpx/blob/92ab22eb6efc9215fa57092b3304ee1330493b29/.circleci/config.yml#L13, in the .github subdirectory, and tools/docker/Dockerfile.


refactoring touchAllFields & todo case

i consolidated into a class to manage repetitive pieces of code in one place I also defined classes in a simple way and generated error messages dynamically @joepuzzo

Kafam karıştı, bunun yalnızca gerekli olan bir if ifadesini kaldıran bir değişikliği var mı?
I thought since an array already has a Field, the condition would not be needed @joepuzzo


Not working anymore

I've found this API by stumbling on it via the ReDoc repo. Seems like this is what I want to use in order to combine all OpenAPI YAML files into a single JSON/YAML file.
However, I've noticed a few things that are just broken (version 0.0.2):

There is a node_modules/.bin/openapi-cli file that has the following example/test content:'use strict';

exports.validate = function() {
  console.log("This is my first npm");
};

When I try to run node ./node_modules/.bin/openapi -h, or any other command, I get the following error message:/Users/{redacted}/site/public/developers/api-reference/node_modules/simple-websocket/server.js:45
  _handleListening = () => {
                  ^
√ api-reference % ./node_modules/.bin/openapi-cli -h                                                                                (master)api-reference
./node_modules/.bin/openapi-cli: line 1: use strict: command not found
./node_modules/.bin/openapi-cli: line 3: syntax error near unexpected token `('
./node_modules/.bin/openapi-cli: line 3: `exports.validate = function() {'
?2 api-reference % node ./node_modules/.bin/openapi-cli -h                                                                                (master)api-reference
√ api-reference % node ./node_modules/.bin/openapi -h                                                                                (master)api-reference
/Users/{redacted}/site/public/developers/api-reference/node_modules/simple-websocket/server.js:45
  _handleListening = () => {
                  ^

SyntaxError: Unexpected token =
    at Module._compile (internal/modules/cjs/loader.js:723:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/Users/{redacted}/site/public/developers/api-reference/node_modules/@redocly/openapi-cli/lib/cli/preview-server/server.js:6:22)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

I have discovered that I was installing openapi-cli and not @redocly/openapi-cli, however even after correcting my install and purging all files related to the openapi-cli, I get the same exact error.
Node: v10.17.0
NPM: 6.14.5

The problem is related to the package simple-websocket having used the public class fields syntax that is still in Stage 3 and only supported in Nodejs 12+:
_handleListening = () => {
  this.emit('listening')
}

To support Nodejs less than 12, it should be:
_handleListening () {
  this.emit('listening')
}

I would propose that either simple-websocket be refactored to support Node versions prior to version 12, or add a en engineStrict and engines to it's package.json to prevent usage with an unsupported version of Node. Alternatively, this package would use engineStrict and engines to prevent usage of this module with an unsupported version of Node.

Thanks for the suggestion. We'll add engineStrict and engines to the package.json to both this and @redolcy/openapi-cli


Optionally override "spinner" className

I love this react component, but when trying to use it within a wordpress plugin, the className "spinner"  collides with the wordpress internal spinner class and the spinner is not shown.

Released a 1.1.0


Added Proxifier Rules

Added detailed steps to install and run proxifier , and add applications which you want to use with proxy server

make keywords bold. Like in

Download & Install Proxifier
Click on the Profile tab and click on Proxy Server option.

and so on.

Ok


ZEPPELIN-455 Improve build instruction

This PR improves build instruction in README.md
https://issues.apache.org/jira/browse/ZEPPELIN-455

Looks great to me.
Do we mention all interpreters here or only those who mandatory require a build-time flags? (i.e Flink is not here)

Thanks. While 'Build from source' section on the install page points README.md, it is good to list if any interpreter has build flag that user should aware. But i think if there're no special option to configure in build-time, no reason to mention.

looks good

Merge if there're no more discussions


Bug: Update operation not working for AWS public helm registry

📜 Description
getting error like
rpc error: code = Unknown desc = MissingRegion: could not find region configuration
in case of redeploying karpenter chart
Affected areas
Deployment from Chart store
Additional affected areas
Other CRITICAL functionality
Prod/Non-prod environments?
Prod
Is User unblocked?
No
How was the user un-blocked?
PERMANENTLY - By giving a workaround (From outside Devtron)
Impact on Enterprise
SP
👟 Steps to replicate the Issue
use karpenter helm chart with AWS helm repo (OCI)
👍 Expected behavior
should able to  redeploy the chart
👎 Actual Behavior
giving issue like
rpc error: code = Unknown desc = MissingRegion: could not find region configuration
☸ Kubernetes version
any
Cloud provider
any
🌍 Browser
Chrome
✅ Proposed Solution
No response
👀 Have you spent some time to check if this issue has been raised before?

[X] I checked and didn't find any similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

AB#9433

Closed


[Feature] Better sponges & lava sponge

Add a lava sponge as well as a "spnoge" (taking a page from the "snad" book), both of which behave in a similar fashion to the Bigger Sponge Absorption Radius mod from Serilum.

Use Sponj instead.


CLN: Fix spelling in monthly template

Merged, thanks!
FYI: I just merged the monthly-ie-totals-branch into master and deleted the branch.


Added versioning check to Broker on bootstrap

This PR adds version checks to the broker when bootstrapping an APB
Changes proposed in this pull request

Move version.go to its own version pkg
Add version check on imageToSpec conversion
Add unit tests for compatible version checks

Note:
I plan to open an issue to move the version to the spec itself so that this check moves out of the adapter pkg.

@shawn-hurley Thanks for the feedback. Just making it known that this will always fail CI until the APBs are updated with the proper version which I am working on doing today as well.

Confirmed when running catasb with the canary tag for images that are being built off recent commits that they are passing version validation.

Linter errors:
pkg/version/apbversion.go:3:1: comment on exported const MinAPBVersion should be of the form "MinAPBVersion ..."

pkg/version/apbversion.go:7:7: exported const MaxAPBVersion should have comment or be unexported

Found 2 lint suggestions; failing.

make: *** [lint] Error 1

You need to update the version.go.tmpl package as well.

@dymurray forget my CI comment then, I see your comment about being dependent on apbs. But the linter is still broken so that comment still stands.

CI is failing on binding... unsure how my PR affects binding of mediawiki to postgres. I have confirmed the latest images on dockerhub have the proper version and the broker is bootstrapping them.


Support multiple errors in ValidationToolTipTemplate

With INotifyDataErrorInfo in .NET 4.5 it's possible to have more than one validation error per property.
This is fixed easily by modifying the ValidationToolTipTemplate to bind to the errors collection instead of the current item.
I've also modified the popup's FontSize to match the font size of the adorned item. This feels like the correct behaviour to me.
Added some sample code.
One additional (minor) issue that I don't know how to fix, is if a control is inside a viewbox and the validation error is displayed, the popup control doesn't resize while the viewbox is resized. Try it using the sample.

added with ba6cf29eeed3079ebd92c6313a4eddf55aeb12c0


Qt4: On mac, configure with the 10.9 SDK

(This PR follows up on the discussion in #36, starting here: https://github.com/conda-forge/qt-feedstock/pull/36#issuecomment-294006768.)
On my machine**, our Qt4 recipe doesn't use the 10.9 SDK, despite the fact that we set QMAKE_DEPLOYMENT_TARGET = 10.9.
The fix I is to provide the -sdk argument to configure:
configure [...] -sdk $(xcode-select --print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk

The resulting package, built with these changes, can be found on my channel:
https://anaconda.org/stuarteberg/qt/4.8.7/download/osx-64/qt-4.8.7-8.tar.bz2
(BTW, I briefly verified that my build works with Spyder.)
** macOS 10.12 Sierra, Xcode 8.3

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

(BTW, I briefly verified that my build works with Spyder.)

Thanks!

Xcode 8.3

I thought we were trying to use XCode 6.4 to follow Travis specs. @jakirkham?


Feat: Add Preloader

What feature?
Design and Appearance:

A simple and visually appealing animation.
Should match the overall design language of the application.
Customizable options for color, size, and style to fit different themes.

Functionality:

Should display during the loading of heavy components or data fetching processes.
Must cover the main content area that is being loaded.
Option to show the preloader globally (entire screen) or locally (specific component).

Performance:

Lightweight and optimized to prevent additional load times.
Should not interfere with the loading process of the main content.

Implementation:

Should be implemented as a reusable component.
Easy to integrate with different parts of the application.
Must include appropriate documentation for usage and customization.

Add screenshots

Record

[X] I agree to follow this project's Code of Conduct
[X] I want to work on this issue

Hi @AsmitaMishra24,
currently, if you notice there is a loader already implemented. How is yours going to be different than the existing one?


Separate Configuration Settings per System Console section

Continuing to split out configuration settings into separate pages based how they're grouped via the System Console.

@justinegeffen - fantastic feedback, as always! Would you be open to a quick second pass?


🐛 Biome show lint errors in projects with not biome setup

VS Code version
1.92.0
Extension version
2.3.0
Biome version
1.8.3
Operating system

[ ] Windows
[X] macOS
[ ] Linux

Description
I installed biome vscode extension to see the lint errors in a new project with biome rules.
but now, I see biome errors in other projects that not use biome setup.
for example, I create a new project with t3 and I see biome errors and I shouldn't create a biome config file to disable that error.

Steps to reproduce

install biome vscode extension
create a new project that not use biome and has ESLint rules like pnpm create t3-app@latest
notice how you see biome lint errors.

Expected behavior
If not exist a biome.json file, not show lint errors like biomelint/style/useImportType
Does this issue occur when using the CLI directly?
Not sure / Not applicable
Logs
No response

As far as I know, this is intentional. Biome generally prefers use cases that require the least amount of configuration for a better user experience. Biome assumes a "default" configuration when none is provided, and will emit diagnostics as such.
As a workaround in vscode, you can disable the extension per workspace.

This will be fixed in V3

@ematipico Is v3 the version you get when you switch to using the release candidate? I switched to using the release candidate yet the extension is still linting repositories that do not use Biome. This is a problem since I have a mixed workspace consisting of repositories using Biome and some that don't. Forcing me to choose an all or nothing approach for my workspace hurts migrating efforts.

@ematipico Is v3 the version you get when you switch to using the release candidate? I switched to using the release candidate yet the extension is still linting repositories that do not use Biome. This is a problem since I have a mixed workspace consisting of repositories using Biome and some that don't. Forcing me to choose an all or nothing approach for my workspace hurts migrating efforts.

V3 is a work in progress and has not yet been released as a nightly version. Can't promise anything but I expect to ship it sometime at the end of August/ early September.


Add <%= error_message %> template support for onerror fallback queries

This closes #319.

Cool!. You've just opened the door to new powerful features, 🚀 !!!
At first sight, I was a bit worried because of it seemed to me a little specific use case.
👍


Starting VSCode --help doesn't produce output

Issue Type
Bug
Description
Starting VSCode from powershell with --help doesn't produce any output to the powershell window or open a window with help instructions.
VS Code Info
VS Code version: Code - Insiders 1.21.0-insider (70e020b2377f12894ca11254548ce365a0e435f1, 2018-02-15T05:17:01.988Z)
OS version: Windows_NT x64 10

System Info

Item
Value

CPUs
Intel(R) Core(TM) @ 2.70GHz

Memory (System)
31.88GB

Process Argv
C:\Program Files\Microsoft VS Code Insiders\Code - Insiders.exe --help --disable-extensions

Screen Reader
no

VM
0%

Extensions disabled
Reproduces without extensions

Cannot reproduce in my Windows setup

I was running the exe Program Files\Microsoft VS Code Insiders\Code - Insiders.exe - running ...\bin\code-insiders.exe works.


Add mypy check to CI and fix existing mypy errors

I created this PR and, at the suggestion of Adrin, #62, to evaluate whether we want to use mypy and if yes, how.
In this PR, mypy is used in strict mode and as can be seen, it does require a few workarounds to make it pass. Most notably, we have:
class SklearnBaseEstimator(Protocol):
    def get_params(self, deep: bool = True) -> dict[str, Any]:
        ...

is needed (and conveniently, CI complains that ... was not covered by tests) since sklearn is not typed.
class _SklearnConfig(TypedDict):
    environment: list[str]

class ConfigJson(TypedDict):
    sklearn: _SklearnConfig | None

to represent the config.json (of course, TypedDict doesn't exist in Python 3.7).
    def recursively_default_dict():  # type: ignore
        return collections.defaultdict(recursively_default_dict)

a recursive data structure not based on a type, ugh.
Moreover, there are still lot's of Anys,
On the other hand, the non-strict PR shows that mypy let's us slip a bunch of untyped functions and methods, which decreases our confidence on how much we can rely on the type checker to help us out (e.g. when refactoring code).
Between strict and non-strict, there is of course a spectrum using the available mypy settings to silence specific types of errors.
Another question is whether we want to add mypy to the pre-commit hooks. It would work well for now but mypy tends to get slow when the code base gets large. The daemon could help, I don't know how big of a difference it makes and how convenient it is to use.
My personal opinion is that I'm pretty meh on the value mypy brings currently. But of course, the larger the code base will become, the more potential it has to uncover hidden errors and guide in refactoring. Editor type hints are not so important for me personally.
ping @merveenoyan @adrinjalali
PS: I'll take a look at the failing codecov once we decide how to proceed.

After discussion with @adrinjalali we decided to go for non-strict type checks for the time being (#62).


proposal: time: add Ticker functions to affect the next tick

While it accomplishes the goal, I find the time.Ticker's API to be very limiting.
In many unique cases, you may want the functionality of a ticker but also want more control over when the next tick happens. One method to achieve this is to simply create a new Ticker. However, this becomes burdensome for the Garbage Collector if we are operating at the millisecond/nanosecond duration. It also is arguably inefficient for such a small feature especially if this is done for a larger project.
To help tackle this, I propose the following API:
// Sets the duration till the next tick happens.
// Ticker resumes the normal duration after the next tick.
(t *Ticker) Set(time.Duration)

// Skip immediately executes a tick.
(t *Ticker) Skip()

// Add adds time before the next tick happens.
(t *Ticker) Add(time.Duration)

// TimeLeft returns the duration of time till the next tick.
(t *Ticker) TimeLeft() time.Duration

The point of time.Ticker is that it tries to give a regular tick regardless of system delays and such.  You seem to be describing a different kind of functionality.  I think you could probably build what you want on top of time.Timer.  That seems like a better direction than complicating time.Ticker.

This proposal has been added to the active column of the proposals project
and will now be reviewed at the weekly proposal review meetings.
— rsc for the proposal review group

Based on the discussion above, this proposal seems like a likely decline.
— rsc for the proposal review group

No change in consensus, so declined.
— rsc for the proposal review group


Use kotlinx serializer native features

This issue will be the follow up to assist the long way of using native kotlinx serialization features like @Contextual, @SerialName, serializerModules and much more to unlock native features like value classes, serialization modules declaration, custom serializers.
This work would touch to the schema generation and the encoding/decoding codebase, while we will try to not touch the user entrypoint Avro.

Feature for @SerialName:
Since there isn't native serial namespace annotation, when we set a serial name that contains dots, we can set the namespace using everything before the latest dot, and set the schema name from the last word after the latest dot

Thanks to @thake fixed the release issue, I'll work on it in next weeks

@thake Currently working on it, and found a way of encode every possible schema. I'll push the pr (wip) in next days. It will come with other fixes and optimisations.

@AvroName is going to be deprecated prior to native @SerialName

Some primitives (char, byte, short) are going to be handled by default as int

We will be allowed of serializing unions with non-record types (like union of double, string and records by example)

AvroInline will be removed in favour of kotlin native value class. If users want to migrate, just @AvroInline data class Something(val field: Data) will become value class Something(val field: Data), that's all

Closing this issue as it is too global to be implemented atomically. Also, it will be covered by multiple issues #114 #187 #166 #165 #160 #151 #114 #131


add wasm runtimes (embedded and nodejs) in kpt

This PR introduces 2 commands: kpt alpha wasm push and kpt alpha wasm pull:

kpt alpha wasm push [path-to-local-wasm-file] [desired-OCI-image-name]
kpt alpha wasm pull [OCI-image-name] [desired-local-path-to-store-the-wasm-file]

This PR added 2 wasm runtimes (one embedded wasmtime and node.js) in kpt:

It is not a WASI runtime, since golang doesn't have a great support to compile go program to WASI and most of our KRM functions are written in go.
It requires the wasm to register a js function called processResourceList in the globals.

To use it in Kptfile:
apiVersion: kpt.dev/v1
kind: Kptfile
metadata:
  name: app
pipeline:
  mutators:
    - wasm: gcr.io/mengqiy-playground/set-namespace:v1.2.4 # Note: wasm is the keyword
      configMap:
        namespace: staging

Then run kpt fn render --allow-wasm

Syntax
embedded wasmtime
node.js
container

first run
real    0m8.648s  user    0m44.559s  sys     0m1.047s
TODO
TODO

subsequent run
real    0m1.223s  user    0m1.125s  sys     0m0.498s
TODO
TODO

This PR requires go 1.18+. I have cherry picked the 2 commits from https://github.com/GoogleContainerTools/kpt/pull/3447.
This PR requires CGO, it seems cross compilation doesn't work nicely with CGO. We may need to build in container for different OS.

Some small nits, but this is pretty close I think.
I think sending the go 1.19 and ioutil -> os changes separately would help make this much more reviewable.

I think sending the go 1.19 and ioutil -> os changes separately would help make this much more reviewable.

These changes are really from https://github.com/GoogleContainerTools/kpt/pull/3447. I cherry picked the commits to make CI happy.
This PR requires CGO, but it seems we cross compilation doesn't work nicely with CGO. To workaround it, We may need to build it in container for darwin and windows. @justinsb Any suggestions or prior arts in other k8s projects?

I just realized that a few comments have not been addressed. I missed them until I resolved other comments. I will resolve them tomorrow.
Meanwhile the PR is mostly ready for another round of review.
I have move part of porch/pkg/oci package to pkg/oci. If you think I should split it out to its own PR. Please let me know. It should not be hard to do it.

Two small things, but lgtm!


(Fix):  Certain redirects caused failed hostname verification

See examples such as:

https://tucowsdomains.com
https://api-2-0.spot.im

Todo: Add tests for this case.

Codecov Report

Merging #8 into master will decrease coverage by 0.37%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master       #8      +/-   ##
==========================================
- Coverage   69.51%   69.13%   -0.38%
==========================================
  Files           1        1
  Lines          82       81       -1
==========================================
- Hits           57       56       -1
  Misses         19       19
  Partials        6        6

Impacted Files
Coverage Δ

transport.go
69.13% <ø> (-0.38%)
:arrow_down:

Continue to review full report at Codecov.

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


[REFACTOR] Refactor Language Json

After merging #1537 , we should revisit the language json files.

[x] Remove the lines that are not in use anymore
[x] Add the new ones

After this we should revisit the crowdin configs and add the lines screenshots to make & overview the translation easier
@daGscheid - https://crowdin.com/project/stereum
With this we should tackle to handle translation mainly through AI now and at least offer all languages targeted in #862

Translations are updated & Crowdin should be fixed with the next push


Add option to enable / disable timestamps & sample number

In the /mqtt endpoint, add an option to enable / disable timestamps & *sample number * so that this information is added / removed from the sample transmitted via MQTT.
So the body of POST /mqtt would be:
{
  "broker_address": "...",
  "username": "...",
  "password": "...",
  "enable_timestamp": true,
  "enable_sample_count": true
}

done!


slate sniffer & fuzzer setup

I'm trying to follow up with your slate-sniffer and fuzzer but got stuck with some issues.

about the dish-setup
I couldn't find a way to access my dish emulator through ssh connection. what I've tried is this.

I've editted rootfs/etc/ssh/ssh_config file to enable the password authentication. But when I start the emulator, the edited version doesn't seem to be applied.
I've tried to just execute the dish-setup.shfile. But it came out with this error. ssh: Could not resolve hostname starlink: Temporary failure in name resolution.
I've tried to create a ssh-key in the emulator with ssh-keygen but failed because the filesystem is read-only.

about generate_service_json.py file
at first, I've tried using the service_directory file for the generate_service_json.py. But my service_directory file contained only small bits of data which indicated what file to include.  this is my service_directoryfile.

# The UT version of this file only includes the minimal set of entries

%include    service_directory_common_sat_gw_ut.include
%include    service_directory_starlink_slate_sharing.include

################################################################################
# Reliable Telemetry
tron_telemetry_at_pop_grpc                 tron-telemetry-at-pop.svc.starlink.com   8012 tcp_proto

network.pop                                pop.starlink.com                         4754  udp_proto
network.cplane_server                      cplane.starlink.com                      4754  udp_proto

so what I did was instead of using service_directory file, I used the one above(service_directory_starlink_slate_sharing.include) instead and it successfully generated service_directory.json. Is what I did the right way?
I wish to here specific details on how to access the emulator through ssh connection and the comment about what I've done. thank you.

Sorry, I haven't had the time to look at your issue yet.
Have you solved it on your own?

yes! I solved it by adding some interfaces shown in your blog. But another problem is going on right now. I am trying to sniff some packets with slate sniffer but no packets seem to be capturing. I think it is because my user_terminal_control binary is not executing well. when I execute the binary it prints out the following errors.
[root@user1 bin]# ./user_terminal_control
external/rocket/src/bullwinkle/all/Configs.cc:43: SacIfNot
external/rocket/src/bullwinkle/all/Configs.cc:45: Error: 'dat' is not a directory.
external/rocket/src/bullwinkle/all/StandardMultiload.cc:128: SacAbortIfNot(,)
external/rocket/src/bullwinkle/all/bin_util.cc:252: SacAbortIfNot(,)
external/rocket/src/bullwinkle/all/bin_util.cc:297: SacAbortIfNot(,)
external/rocket/src/flight/sat/all/user/user_terminal_control_bin.cc:147: SacAbortIfNot(,)

what should be the reason?

The first error is due to the working directory in which you are executing the process: it should be /sx/local/runtime.
But then you will experience many other errors due to missing hardware, such as the secure element.
To solve those, you'll have to either emulate in QEMU the missing part (in that case, please share your work!) or patch the binary in order not to fail, but the latter is obviously not the optimal solution.

Yeah I think I'll have to stick to stick to the QEMU. In your case, how did you get user_terminal_control to work? Could you share your specific works? Thanks

You can still sniff and fuzz other processes but yeah, having the control process working would have been useful

Thank you! I think I'll have to try :)


STOR-1049: Add topology aware sc

Fixes https://issues.redhat.com/browse/STOR-1049

cc @rvanderp3 @jcpowermac

/retest

I am going to close this favour of https://github.com/openshift/vmware-vsphere-csi-driver-operator/pull/125
/close


Compiling with Visual Studio 64 bit

Why is it that after I installed vcpkg fr the first time today, it can do a full compile in 32 bit but not 64 bit? For 64 bit it can't find the files.
I did call the integrate command.

https://solarianprogrammer.com/2020/01/26/getting-started-gsl-gnu-scientific-library-windows-macos-linux/

Hhhm. I gave up. 32 bit was fine. 64 bit was not - even after all that stuff downloaded.
Reverted to the trusted folder on my PC.
It would be nice if these libraries were in nuget packages as an alternative.
But I do not know why it did not work.

Doubled confirmed with VS2022 prewiew 6, gsl:x64-windows built successfully, and the headers can be used normally.


Handler type error in Typescript

Prerequisites

[X] I have written a descriptive issue title
[X] I have searched existing issues to ensure the bug has not already been reported

Fastify version
3.20.2
Plugin version
1.0.2
Node.js version
14.17.1
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
20.04
Description
Trying to integrate this in a typescript project gives Type errors on the simplest example I can think of.
Steps to Reproduce
import Fastify from "fastify";
import { fastifyFunky } from "fastify-funky";

const fastify = Fastify();
fastify.register(fastifyFunky);
// this gives a type error:
fastify.get("/", (req, reply) => {
	return { right: { id: 1 } };
});

Expected Behavior
The code compiles without type errors. I might expect to have to extend the Fastify interface type to do so.

@cjol Thank you for reporting! This is a limitation with fastify types, I've raised an issue there, hopefully we can address this upstream.

Released in 1.0.3


Test targets need to be part of main SDK

From @onovotny on December 22, 2016 17:19
Right now, it seems the only way to invoke unit test projects via the test platform is to use dotnet test on the project file. The problem is that forces the CoreCLR version of the Build tasks and not all tasks work on CoreCLR.
For example:
https://github.com/Reactive-Extensions/Rx.NET/blob/f339ba7c0821d00f9c0cb29186c97713765a6d03/Rx.NET/Source/Tests.System.Reactive/Tests.System.Reactive.csproj
I cannot simply run dotnet test on that because the GitVersionTask is .NET Desktop only. That's fine for building, but I then need a way to invoke the test platform once per target framework with the right parameters.
It should do whatever dotnet test is...I think it's going to vstest.console /Framework: ... with the supported frameworks.
It seems that Microsoft.TestPlatform.targets is in the CLI build but not in the main SDK. It should be in the main SDK for use with msbuild.
Copied from original issue: dotnet/sdk#546

From @jaredpar on December 22, 2016 18:45
Related issue https://github.com/Microsoft/msbuild/issues/1499

@dotnet/vstest This is a request for running tests using the desktop msbuild - a msbuild /t:Test.

From @pvlakshm on January 9, 2017 12:56
We've added this ask to backlog. However we will likely get to it post RTM.

From @codito on January 11, 2017 3:6
We're considering the option to pull the target/task into a nuget package or use the existing Microsoft.NET.Test.Sdk.

From @onovotny on January 9, 2017 13:10
This really needs to be in 1.0...otherwise, given that these targets are distributed with VS 2017 and not via NuGet, it'll need to wait for Update 1, wont' it?. We need a coherent unit test strategy out-of-the-box.

Tracking this as part of #326.


Anticipate fixing FStarLang/FStar#1905

This PR fixes spurious uses of names, as described in FStarLang/FStar#1905.
Here's one example change:
diff --git a/code/hash/Hacl.Hash.Core.SHA1.fst b/code/hash/Hacl.Hash.Core.SHA1.fst
index 9d06123a6..c625d428c 100644
--- a/code/hash/Hacl.Hash.Core.SHA1.fst
+++ b/code/hash/Hacl.Hash.Core.SHA1.fst
@@ -52,7 +52,7 @@ let legacy_init s =
   )

 inline_for_extraction
-let w_t = (b: B.lbuffer (word SHA1) 80)
+let w_t = B.lbuffer (word SHA1) 80

 inline_for_extraction
 let block_t = (block: B.buffer uint8 { B.length block == block_length SHA1 } )

F* will reject these uses when #1905 is fixed.

@prosecco These changes in hacl-star are desirable regardless of how https://github.com/FStarLang/FStar/issues/1905 is resolved. Could you comment in the issue instead?


404 when access explore/code

Description
I made a docker clean install and enable the code indexer with:
GITEA__indexer__REPO_INDEXER_ENABLED=true
Everything works like a charm, but the https://example.com/explore/code show 404 status code, every search in organization, repo works fine.
Another thing: I used gitea/gitea:latest and I get 1.20.0+rc0, RC is considered stable?
Gitea Version
1.20.0+rc0
Can you reproduce the bug on the Gitea demo site?
No, code search is disabled.
Log Gist
No response
Screenshots

Git Version
2.40.1, Wire Protocol Version 2 Enabled
Operating System
Container Manager (docker engine) on DSM 7.2
How are you running Gitea?
My deploy:
version: "3.9"

services:
  gitea:
    image: gitea/gitea:latest
    container_name: app-gitea
    env_file: .env
    networks:
      - gitea
    volumes:
      - "$STORAGE/data:/data"
      - /etc/TZ:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    expose:
      - 3000
      - 22
    restart: unless-stopped

networks:
  gitea:
    name: gitea

.env
USER_UID=1026
USER_GID=101
STORAGE=/volume1/docker/gitea
GITEA__migrations__ALLOW_LOCALNETWORKS=true
GITEA__indexer__REPO_INDEXER_ENABLED=true

Database
SQLite

Was fixed in https://github.com/go-gitea/gitea/pull/25181 and will be in next RC.


Issue with Sock Shop Application

Have a problem using Sock Shop Application
I get a output when run:
kubectl -n sock-shop get svc front-end so I know everything was created, and I can see all the containers and pods created.
I can browse :30001 but the application is not painting all the pictures and I cannot register, getting an Internal Server Error message.

[ ] Feature Request
[x] Bug Report

Problem:

Proposed Solution:
Page to Update:
http://kubernetes.io/...

@mwithrow :wave: This issue sounds more like a request for support and less like an issue specifically for docs. I encourage you to bring your question to the #kubernetes-users channel in Kubernetes slack. You can also search resources like Stack Overflow for answers to similar questions.
You can also open issues for Kubernetes functionality in https://github.com/kubernetes/kubernetes.


'git push' fails when Kudu path contains space

I was running Kudu locally (its path contains spaces), created a new application and tried to 'git' to push a website to the new application. An error was returned. There seem to be multiple parts of code where paths containing spaces will result in errors.
@gissues:{"order":64.42307692307672,"status":"backlog"}

Hi
Kudu will continue to run in Azure App Service. However, this repo will no longer be maintained.
If the problem persists and is related to running on Azure App Service, please open a support incident in Azure:
https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request
This way we can better track and assist you on this case
Thanks,
Joaquin Vano
Azure App Service


vsce: 2.20.1 -> 2.21.0

Description of changes
change log: https://github.com/microsoft/vscode-vsce/releases/tag/v2.21.0
diff: https://github.com/microsoft/vscode-vsce/compare/v2.20.1...v2.21.0

Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

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

1 package built:

vsce


xsl:import getting confused

b.212
Create an XSLT with the line <xsl:import href="xxx"/>
Create two XSLTs both named xxx.
Step main XSLT and get the error FATAL XsltPoolImpl - java.io.IOException: Found 2 resources for : "xxx"
Rename one of the xxx XSLTs.
Restep main XSLT and same error occurs despite only one instance of xxx present.
Delete the previously renamed xxx XSLT
Restep main XSLT and same error occurs despite only one instance of xxx present.
Works fine if href is changed to the uuid but then impossible to lookup uuid to name from UI.

Actually seems to be a caching issue.  Clearing the XSLT cache solves the problem.
However, deletion or renaming of an XSLT should really cause the cache to update.

Fixed in >7.0.1


Issue credits to gardenenigma

Issue 100000 credits to @gardenenigma.

 Follow up
On Sunday, 24-Mar-24 01:16:52 UTC by Gov4Git dev
Issued 100000 credits to member @gardenenigma.


Can a request returning a file cause issues?

I have an API where if I call a specific URI it will return a file that my browser can download.
If I use the URI with "localhost:8080" for exemple, the URI works fine and the browser downloads the file.
If I use the devtunnel uri "test-8080.use.devtunnels.ms" for exemple, then I get a 502 error everytime and nothing happens.
I can see on my server that the call is being made properly and that my server returns a 200 with the file in question but for some reason the devtunnel is returning a 502.
Is devtunnel able to support request where the response has a content-type specific to a file? Exemple image/png or application/pdf?
It seems to work fine if the response contains JSON.

I'd recommend reviewing these limits - https://aka.ms/devtunnels/limits.
If you don't believe you're hitting any of those limits, with the request id and timestamp, we may be able to better track down the cause of the 502.

Closing this as stale but please comment to clarify your use case if you continue to see an issue.


Dataloader incorrectly batches fields with the same name from different entities.

With dataloader enabled, federation gateway seems to have issues with resolving fields with the same name from different entities.
Dataloader seems to build the batch request based on the result of parent resolution. That combined with how batchFetchState.next method expects to be called sequentially for each item in batch request, can cause dataloader to return incorrect entities.
Given following subgraphs:
Books
type Book @key(fields: "id") {
	id: ID!
	isbn: String!
}

Movies
type Movie @key(fields: "id") {
	id: ID!
	title: String!
}

Authors
interface Media {
	id: ID!
}
extend type Movie @key(fields: "id") {
	id: ID! @external
}
extend type Book @key(fields: "id") {
	id: ID! @external
}
type MovieMedia implements Media {
	id: ID!
	media: Movie! @provides(fields: "id")
}
type BookMedia implements Media {
	id: ID!
	media: Book! @provides(fields: "id")
}

type Author {
	name: String!
	media: [Media!]
}

type Query {
	authors: [Author!]
}

For client query
{
  authors {
    name
    media {
      id
      ... on MovieMedia {
        media {
          id
          title
        }
      }
      ... on BookMedia {
        media {
          id
          isbn
        }
      }
    }
  }
}

Result without dataloader
{
  "data": {
    "authors": [
      {
        "name": "John Doe",
        "media": [
          {
            "id": "book-id",
            "media": {
              "id": "book-id",
              "isbn": "1-4028-9462-7"
            }
          },
          {
            "id": "movie-id",
            "media": {
              "id": "movie-id",
              "title": "Superhero movie"
            }
          }
        ]
      }
    ]
  }
}

Result with dataloader
{
  "data": {
    "authors": [
      {
        "name": "John Doe",
        "media": null
      }
    ]
  }
}

Full repro: https://github.com/Dennor/graphql-go-tools-bad-resolution

Sure. I'll try to take a stab at creating a test case today.

I've created a PR with test case, I do however have to be honest that this PR is quite bad, as in, rather than highlighting the issue, it does that by proposing a solution. The problem I had for this test case is that I wasn't sure how to write it in one place as it feels that solving it would require changes in different components.


Pagination

http://w2ui.com/web/blog/8/W2UI-1.3-Released-Goodbye-Pagination-Hello-Infinite-Scroll

Pagination not supported, infinite scroll is the new "black", see
http://w2ui.com/web/demos/#!combo/combo-9
https://github.com/vitmalina/w2ui/issues/964


Code Analysis Issues for prope

From<EMAIL_ADDRESS>on 2013-02-28T17:38:13Z
Spyder Version:  2.1.13
Python Version:  2.7.3
Qt Version:      4.7.4, PySide 1.1.1 on Windows
The code analysis in the left pane isn't smart enough to handle properties in class definitions, in particular getter/setter methods.  For example, use this example code in the editor:
#-----------------------------------------------
class C(object):
def init(self):
self._x = None
@-property
def x(self):
    """I'm the 'x' property."""
    return self._x

@-x.setter
def x(self, value):
    self._x = value

@-x.deleter
def x(self):
    del self._x

#-----------------------------------------------
You'll see warnings everywhere the x function is defined.
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1290

From contrebasse on 2013-02-28T14:58:08Z
It's a known bug in pyflakes, cf https://bugs.launchpad.net/pyflakes/+bug/812958 .
Apparentely, it was corrected recentely (on 2013-01-29).

From<EMAIL_ADDRESS>on 2013-02-28T15:00:13Z
Ah ok thanks for letting me know.  So I presume the 2.2 will have this fixed?

From contrebasse on 2013-03-01T00:47:00Z
Pyflakes is not provided by spyder. If you use Python(x,y), I guess it will be updated in a future version. You could also update it manually via pip.

From<EMAIL_ADDRESS>on 2013-03-02T11:01:23Z
Yes, that's fine.  My question is whether or not 2.2 will require a version of pyflakes that fixes this problem.  You can set minimum required version of python packages on install, yes?

From<EMAIL_ADDRESS>on 2013-03-01T06:54:56Z
Issue is with Pyflakes which is an external package.
Status: Invalid


FYI: relevant SDR podcast ep about clipboards

I came across this podcast episode about gnarly clipboard details and immediately thought of syncopate: https://youtu.be/sLiBImciFaQ. Especially about ⅔ through the episode they talk about relevant gotchas preserving code formatting and the like.

Feel free to just close this issue, just an FYI I wanted to pass along to anyone still involved here. =)


Dev main

Description
Please include a summary of the change, new sample or fixed issue. Please also include relevant motivation and context.
Please read the contribution guidelines
Fixes #
General Checklist:
Please ensure the following points are checked:

[ ] My code follows the coding style
[ ] I have reviewed file licenses
[ ] I have commented any added functions (in line with Doxygen)
[ ] I have commented any code that could be hard to understand
[ ] My changes do not add any new compiler warnings
[ ] My changes do not add any new validation layer errors or warnings
[ ] I have used existing framework/helper functions where possible
[ ] My changes do not add any regressions
[ ] I have tested every sample to ensure everything runs correctly
[ ] This PR describes the scope and expected impact of the changes I am making

Note: The Samples CI runs a number of checks including:

[ ] I have updated the header Copyright to reflect the current year (CI build will fail if Copyright is out of date)
[ ] My changes build on Windows, Linux, macOS and Android. Otherwise I have documented any exceptions

If this PR contains framework changes:

[ ] I did a full batch run using the batch command line argument to make sure all samples still work properly

Sample Checklist
If your PR contains a new or modified sample, these further checks must be carried out in addition to the General Checklist:

[ ] I have tested the sample on at least one compliant Vulkan implementation
[ ] If the sample is vendor-specific, I have tagged it appropriately
[ ] I have stated on what implementation the sample has been tested so that others can test on different implementations and platforms
[ ] Any dependent assets have been merged and published in downstream modules
[ ] For new samples, I have added a paragraph with a summary to the appropriate chapter in the readme of the folder that the sample belongs to e.g. api samples readme
[ ] For new samples, I have added a tutorial README.md file to guide users through what they need to know to implement code using this feature. For example, see conditional_rendering
[ ] For new samples, I have added a link to the Antora navigation so that the sample will be listed at the Vulkan documentation site

 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.0 out of 2 committers have signed the CLA.:x: manda.ryan:x: mandagodmanda.ryan seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

@mandagod: What is this PR about?

@mandagod: What is this PR about?

this is a mistake pls close it.

Closing pull request as requested by the creator


W11 efficiency mode

can I make the efficiency mode setting stick to the processes I chose? on vanilla w11 the setting only sticks until reboot. thanks

yes, it would be great to have the same "Save for x" checkmark for efficiency mode as we do with priorities etc

Oh so I take it's not possible with Process Hacker at the moment. Pity, I was looking for a program that can do that and it looks like there isn't one that has that function as of now.  : <

The latest update has a new menu right-click > Efficiency > Save for... where you can save efficiency preferences 👍

Yay! Thank you very much.

What does this mode even do?  Does it work on windows 10?

Shouldn't there be a columnar choice for it (a la Task Manager) so it's easy to see which processes actually have it on? There might be, but if there is the word "Efficiency" isn't in the name.

The latest update has a new menu right-click > Efficiency > Save for... where you can save efficiency preferences 👍

I not see it.


docs: remove incorrect link

Describe this PR
Link mentioned for cockroach db redirects to postgresql documentation.
Changes
Remove incorrect link prisma-schema-reference
Any other relevant information
n/a

@all-contributors please add @Dhoni77 for doc

Thanks for approving my pr @janpio ✨

Thanks for updating the link.
I've left a comment that updates the URL to CockroachDB's docs. Once the suggestion is added, I can go ahead and merge this in 🙂

Thanks @ruheni 🙂