how to load weights trained on multi gpu model to the single gpu model?

I trained on 4 gpus with multi_gpu model and saved weights with callbacks ModelCheckpoint, but when i want to run the model on single gpu machines, it seems i can't load the weights in to singel model. which get error: you are trying to load a weight file containing 1 layers into a model with 100 layers.(my single model is 100 layers).
After that ,i did as below:
parallel_model,single_model = XXnet()
parallel_model.load_weights(multi_gpu_weights.hdf5)
single_model .save("singe.h5")

It seems ok and there's no error when i load the single.h5,but when i use this to predict something ,errors happened:
terminate called after throwing an instance of 'std::bad_alloc'
it seems the python core has dumped.
Really need help, thanks!

Is this solved ?

One possibility...
def load_multigpu_checkpoint_weights(model, h5py_file):
    """
    Loads the weights of a weight checkpoint from a multi-gpu
    keras model.

    Input:

        model - keras model to load weights into

        h5py_file - path to the h5py weights file

    Output:
        None
    """

    print("Setting weights...")
    with h5py.File(h5py_file, "r") as file:

        # Get model subset in file - other layers are empty
        weight_file = file["model_1"]

        for layer in model.layers:

            try:
                layer_weights = weight_file[layer.name]

            except:
                # No weights saved for layer
                continue

            try:
                weights = []
                # Extract weights
                for term in layer_weights:
                    if isinstance(layer_weights[term], h5py.Dataset):
                        # Convert weights to numpy array and prepend to list
                        weights.insert(0, np.array(layer_weights[term]))

                # Load weights to model
                layer.set_weights(weights)

            except Exception as e:
                print("Error: Could not load weights for layer:", layer.name, file=stderr)

Did you try this? I have a saved multi-gpu keras model, after used the function you provide, performance drops a lot. Dont know how to solve this. TAT

@steerspace Possibly it isn’t loading the batch normalisation weights if you had unlocked them to adjust them to your dataset. I stopped using this though as it’s a bit of a hack. The best work around is to create a custom model checkpoint callback that takes a reference to the original model, rather than the multi-gpu model as would an ordinary callback added to model.fit() / model.fit_generator. Check out my training code for my SemanticSegemenation repository, you’ll see an example. Works 100% of the time for me

@smthomas-sci Custom model checkpoint callback works very well.
The problem is that, if I only have a trained multi_gpu model weights file, how to extract single GPU model weights from it without retraining the network
I solved it by using this:
model = ResNextImageNet(blah..)
p_model = multi_gpu_model(model)
p_model.load_weights(bst)  # load multi-gpu model weights
old_model = p_model.layers[-2]   #get single GPU model weights
# it's necessary to save the model before use this single GPU model
old_model.save(save_path)

Thanks for your shares, I learned a lot.
btw, I am also working on histological images.:-)

@steermomo Thanks a lot

p_model = multi_gpu_model(model)

So in the multi_gpu_model part, would the number of GPUs have to be specified?  I tried without specifying the number of gpus and got:
For multi-gpu usage to be effective, call multi_gpu_model with gpus >= 2. Received: gpus=1

p_model = multi_gpu_model(model)

So in the multi_gpu_model part, would the number of GPUs have to be specified? I tried without specifying the number of gpus and got: For multi-gpu usage to be effective, call multi_gpu_model with gpus >= 2. Received: gpus=1
The problem is, on the single gpu machine, if the number is set to > 1 then I get an error saying there are not enough GPUs on the system.
Does this mean that the saving of the single model would have to be done on the multi-GPU machine?

@solarflarefx have you solved this issue? Thanks!

@proteus1991 , this is related to loading weights on a keras model with a tensorflow v1 backend. As of tensorflow v2+, keras natively supports loading weights trained on multi-gpus, all by the simple model.load_weights("path_to_model_weights..h5") call.


TOC update and first overview

OPS Build status updates of commit 581c386:
:clock10: Preparing: average preparing time is 37 sec(s)

OPS Build status updates of commit 581c386:
:clock10: Incremental building: average incremental building time is 16 sec(s)

OPS Build status updates of commit 581c386:
:warning: Validation status: warnings

File
Status
Preview URL
Details

enterprise-graph/enterprise-graph-overview.md
:warning:Warning

Details

enterprise-graph/toc.yml
:warning:Warning

Details

enterprise-graph/enterprise-graph-overview.md

[Warning] Author stflanag cannot be recognized in GitHub.

enterprise-graph/toc.yml

Line 0: [Warning] Invalid file link:(~/concepts-ontology.md).
Line 0: [Warning] Invalid file link:(~/service-fabric-versions.md).
Line 0: [Warning] Invalid file link:(~/concepts-entities.md).
Line 0: [Warning] Invalid file link:(~/ingesting-data.md).
Line 0: [Warning] Invalid file link:(~/mapping-data.md).
Line 0: [Warning] Invalid file link:(~/concepts-links.md).
Line 0: [Warning] Invalid file link:(~/ontology-best-practices.md).
Line 0: [Warning] Invalid file link:(~/sparql-queries.md).
Line 0: [Warning] Invalid file link:(~/enterprise-graph-use-cases.md).
Line 0: [Warning] Invalid file link:(~/qs-mapping-input-data.md).
Line 0: [Warning] Invalid file link:(~/conflating-data.md).
Line 0: [Warning] Invalid file link:(~/creating-your-ontology.md).
Line 0: [Warning] Invalid file link:(~/natural-language-queries.md).
Line 0: [Warning] Invalid file link:(~/service-fabric-best-practices-networking.md).
Line 0: [Warning] Invalid file link:(~/qs-ingesting-data.md).
Line 0: [Warning] Invalid file link:(~/qs-creating-an-ontology.md).
Line 0: [Warning] Invalid file link:(~/qs-querying-your-graph.md).
Line 0: [Warning] Invalid file link:(~/api-ref-swagger.md).
Line 0: [Warning] Invalid file link:(~/service-fabric-best-practices-security.md).
Line 0: [Warning] Invalid file link:(~/building-your-first-graph.md).
Line 0: [Warning] Invalid file link:(~/knowledge-graph-concepts.md).
Line 0: [Warning] Invalid file link:(~/concepts-attributes.md).

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.


Checkout success view

Description
See #59 for background
Provide a 'success' view for the checkout

closed by #68


Godef not working for code in path

It works on the std lib code (fmt.Errorf) but not my own code, I suspect it's a result of various environment variables not being found.
System
OS X El Captain
Emacs
(go-root-and-paths)
;; ("/usr/local/Cellar/go/1.6/libexec" "")

(getenv "GOROOT")
;; nil

Bash
go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/ksuen/gocode"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.6/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.6/libexec/pkg/tool/darwin_amd64"
GO15VENDOREXPERIMENT="1"
CC="clang"

echo 'package foo; import "fmt"; func fn() { fmt.Println() }' | godef -i -o 45
/usr/local/Cellar/go/1.6/libexec/src/fmt/print.go:263:6

Related issue https://github.com/dominikh/go-mode.el/issues/134

Your Emacs isn't inheriting GOPATH. If you only set the environment variable in your bashrc, but start Emacs via the OS X GUI, these two will work with different sets of environment variables.

@dominikh thanks for the quick debug, helped me to narrow my googling.
A solution is given in this blog post:
http://tleyden.github.io/blog/2014/05/22/configure-emacs-as-a-go-editor-from-scratch/
For the use-package users:
(use-package go-mode
  :init
  (setenv "GOPATH" "[absolute path to GOPATH]")


Fix import of LrScheduler

As mentioned in #878 the current version of Accelerate breaks with the latest Nvidia PyTorch docker image (22.12) which doesn't have the change of class names for LrScheduler. Therefore, I switched the test to be replaced with a try except.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Closing tab hides the menu

Type: Bug
I downloaded the Java JDK from site and then it happened. I have no idea why.

Maybe duplicate #159813?

Yea.. didn't notice there was already a report. Happy to see there is already a solution!

/duplicate of https://github.com/microsoft/vscode/issues/159813 where you can also find a setting to toggle that will work around this.

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.
Happy Coding!


Release stable version

TODO list

document

~[ ] add doc comment~
[x] create documet site with mkdocs

[x] support python 3
~[ ] refactoring~

use game_state_utils in engine module

Put these tasks on hold for another improvement PR.

Adding doc comment
Refacotring


Carbon's car class category

I've noticed that in XNFSMusicPlayer_Carbon.h, under SongAttrib, there's a variable called CarClassCategory.

And under DoFilePathsStruct you have this, the variable takes the value 2.

In the game, all songs of the music player are on all categories.
I know that Class Categories are represented by numbers; 1 for Exotics, 2 for Muscles and 3 for Tuners. Wouldn't be possible to assign the class category under a song in PlaylistConfig.ini? For example:
[E95E7B]
TrackEnabled= 0
Title=My music title
Album=My music album
Artist=My music artist
CarClassCategory=1
Or is there some kind of issue that won't let the music player do this?

The issue is due to the way it's implemented.
Currently wherever the function GetTrackAttribPointer() is called, it returns the SongAttrib no matter the car class.
It was implemented this way because it was particularly difficult to deal with the attribute stuff in general and as far as I remember this was the only way I could implement it without pulling my hair out.
It needs more research to implement properly.


Default name for new notes - the time function is invalid (illegal character)

What happened?
I tried to create a new project to test local budgeting.  Recognizing each transaction entry would be a separate file in the table, I attempted to set the default name as entry {{date}} {{time}} as it states they are supported variables.  States contains illegal characters when using the time variable.
When I went to the table to create a dummy transaction, it was noticed that the colon inserted for the time variable is the illegal character in question
What did you expect to happen?
To receive an easily unique file name for each transaction file, with the variables available, to reduce entry friction.
How can we reproduce it (as minimally and precisely as possible)?
create a new project. under more settings attempt to use the time variable in default name for new notes field. Provides an illegal character warning. It will let you create the project, so click save. add a new row and the illegal colon in file name prevents note/row creation.

Anything else we need to know?
If there is another way to easily append or prepend a unique id as a default for new notes, it would reduce friction on multiple projects. it would be appreciated.  I intended to use this feature for other projects. If the time variable won't work, or can't have the colon stripped automatically, could a different variable without illegal file name characters be supported for a unique id?
Plugin version
1.11.5
Obsidian version
1.1.9
OS
Windows

Currently, you can use commands like {{time:HH-mm}} to override the default HH:mm style.

I found it in the settings of core plugin Templates. For more information, you can refer to https://momentjs.com/docs/#/displaying/format/.

Thank you for that, it works like a charm.  Maybe it might be worth simply updating the screen to state the format needed for other users on the variable entry screen.
I'm excellent at breaking things, not so good at fixing them. HA HA

I agree that the default time format isn't really useful for file names. I want templates to work like in native Obsidian, so I don't really want to change the default format, but maybe we can change the description to say something like:

Supports {{date:YYYY-MM-DD}} and {{time:HHmm}} templates variables.

I'm excellent at breaking things, not so good at fixing them.

I'm pretty good at fixing things, but I need help finding things to fix. So please keep breaking Projects and tell us how you did it! 😆


sebyddd/SDVersion

SDVersion - :iphone: Lightweight Cocoa library for detecting the running device's model and screen size.
Language - Objective-C

https://github.com/vsouza/awesome-ios/pull/2345


--verbose is way to verbose for "normal" use

We should clean up the spew from --verbose to address "normal" usage where the user just wants to see some progress indicators. Today, there is way too much stuff being output for the casual observer.
Related: #987 #1010

First target should be the command table dump. It has no value in --verbose.

That is a reasonable first step :).
My suggestion is that we (whoever tackles this) comes up with a suggestion on what they'd like to see for a couple of commands w. the --verbose flag set:

Simple paged list command (i.e. vm list)
Simple show command (i.e. vm show)
Long running post operation (i.e. vm stop)
Long running resource create (i.e. vm create)

and make sure that get the appropriate tracing/level in place to match.

@johanste : take a look


iree-build/runtime/setup.py exits with a TypeError

What happened?
Was trying to install the iree-runtime package with the commit b77145db3 and ran into the following error:
Traceback (most recent call last):
  File "setup.py", line 363, in <module>
    setup(
  File "/home1/navdeep/iree.venv/lib/python3.8/site-packages/setuptools/__init__.py", line 107, in setup
    _install_setup_requires(attrs)
  File "/home1/navdeep/iree.venv/lib/python3.8/site-packages/setuptools/__init__.py", line 75, in _install_setup_requires
    dist = MinimalDistribution(attrs)
  File "/home1/navdeep/iree.venv/lib/python3.8/site-packages/setuptools/__init__.py", line 57, in __init__
    super().__init__(filtered)
  File "/home1/navdeep/iree.venv/lib/python3.8/site-packages/setuptools/dist.py", line 473, in __init__
    for ep in metadata.entry_points(group='distutils.setup_keywords'):
  File "/home1/navdeep/iree.venv/lib/python3.8/site-packages/setuptools/_vendor/importlib_metadata/__init__.py", line 999, in entry_points
    return SelectableGroups.load(eps).select(**params)
  File "/home1/navdeep/iree.venv/lib/python3.8/site-packages/setuptools/_vendor/importlib_metadata/__init__.py", line 449, in load
    ordered = sorted(eps, key=by_group)
  File "/home1/navdeep/iree.venv/lib/python3.8/site-packages/setuptools/_vendor/importlib_metadata/__init__.py", line 996, in <genexpr>
    eps = itertools.chain.from_iterable(
  File "/home1/navdeep/iree.venv/lib/python3.8/site-packages/setuptools/_vendor/importlib_metadata/_itertools.py", line 16, in unique_everseen
    k = key(element)
  File "/home1/navdeep/iree.venv/lib/python3.8/site-packages/setuptools/_vendor/importlib_metadata/__init__.py", line 931, in _normalized_name
    return self._name_from_stem(stem) or super()._normalized_name
  File "/home1/navdeep/iree.venv/lib/python3.8/site-packages/setuptools/_vendor/importlib_metadata/__init__.py", line 600, in _normalized_name
    return Prepared.normalize(self.name)
  File "/home1/navdeep/iree.venv/lib/python3.8/site-packages/setuptools/_vendor/importlib_metadata/__init__.py", line 855, in normalize
    return re.sub(r"[-_.]+", "-", name).lower().replace('-', '_')
  File "/usr/lib/python3.8/re.py", line 210, in sub
    return _compile(pattern, flags).sub(repl, string, count)

Steps to reproduce your issue
Followed these steps to build the bindings. https://iree-org.github.io/iree/building-from-source/python-bindings-and-importers/#building-python-bindings and then went on to install the packages.
What component(s) does this issue relate to?
Python, Runtime
Version information
b77145db3
Additional context
No response

This is actually working. Apologies for the spam.


Cart types update

Description
Closes #636 and also fixes another related thing with cart quantites.
Blocked by https://github.com/Shopify/shopify/issues/352017
Additional context

This is a 2022-07-only change; perhaps our first one? May be worth watching closely on release.

Before submitting the PR, please make sure you do the following:

[x] Read the Contributing Guidelines
[x] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123)
[x] Update docs in this repository according to your change
[x] Run yarn changeset add if this PR cause a version bump based on Keep a Changelog and adheres to Semantic Versioning

Things all work now from my testing, so let's merge this! (once tests all pass just to be sure)


CVE-2022-25857 flagged on snakeyaml 1.30, which appears to be a dependency of the Detekt Grade plugin

See also https://github.com/detekt/detekt/issues/5271
The OWASP Dependency Check Gradle plugin version 7.1.2 flags vulnerability CVE-2022-25857 in dependency snakeyaml v1.30 on a project that also has the Detekt Gradle plugin configured. The ./gradlew -q dependencies command shows that snakeyaml is a transitive dependency of the Detekt plugin. The ./gradlew buildEnvironment doesn't list this dependency at all.
I've tried suppressing this issue, both by CPE and by CVE, but that didn't appear to work.
Also, overriding plugin dependencies is apparently not trivial in Gradle. See this discussion: https://discuss.gradle.org/t/how-to-change-the-version-of-dependency-of-a-gradle-plugin-as-an-end-user/32456
I think I remember having a similar conversation here before, but is there truly no way to configure the OWASP Dependency Check Gradle plugin to disregard plugin-related vulnerabilities that do not affect the build artifacts, or merely log such vulnerabilities as warnings, without failing the build?
Thanks.

un-suppresable  dep-check cves come up from time-to-time, but the work-around is fairly generic:
configurations.all {
    resolutionStrategy.eachDependency {
        if ((requested.group == "org.yaml") and (requested.name == "snakeyaml")) {
            useVersion("1.31")
            because("https://github.com/jeremylong/DependencyCheck/issues/4802")
        }
    }
}

(using the kotlin dsl — groovy can do the same)

Since my service is not processing YAML files my workaround was to exclude snakeyaml from being imported as transient dependency from any dependency by adding the following lines to my build.gradle:
configurations.implementation {
    exclude group: 'org.yaml', module: 'snakeyaml'
}

Unfortunately, another CVE is being flagged by 1.31 as well, for which no fix or mitigation is available. This is CVE-2022-38752. And the snakeyaml developers apparently consider it a non-issue, so it's not expected to be "fixed".
@jeremylong This isn't the first time that the OWASP Dependency Check Gradle plugin flags a vulnerability in the dependency of a Gradle plugin, which is not part of the actual build. Is there really no way to improve the plugin so it can be configured to ignore plugin dependencies?

there is now a 1.32 that doesn't trigger for CVE-2022-25857

Unfortunately, 1.32 does not prevent CVE-2022-38752 from being triggered, snice that CVE neglected to specify an affected version range. :confused: See https://github.com/jeremylong/DependencyCheck/issues/4839

CVE-2022-38751 is still reported for cpe:2.3:a:snakeyaml_project:snakeyaml:1.31:*:*:*:*:*:*:* in dependency-check 7.2.1 even though the NIST data says "Up to (excluding) 1.31".

I think the bigger weirdness is why suppression isn't working here. I was able to suppress fine in one Gradle groovy project but couldn't in a different Kotlin one with detekt. Didn't dig into why, but seems a bug somehwere with the suppressions.
As to the wider question, you can normally use skipConfigurations to skip plugin related dependencies where those plugins define a configuration (e.g detekt) if you are only concerned with things that affect the built artifacts.

why suppression isn't working here

This suppression as been working fine for me:
<suppression>
  <note>Not parsing user input with snakeyaml</note>
  <cve>CVE-2022-38751</cve>
  <cve>CVE-2022-38752</cve>
</suppression>

Yeah, as I mentioned, an identical suppression rule is working fine on one project but not another so there must be something specific to the Gradle project, plugin or configuration that is preventing the suppressions from working in some cases.
FWIW 38751 isn't being reported on 1.31 from NVD CVE data now, so perhaps you had/have cached data at the time. Hopefully they fix affected versions for 38752 soon.

For me, also 1.33 is still detected as being affected by CVE-2022-38752
Using 7.2.1 / snakeyaml 1.33
snakeyaml-1.33.jar<EMAIL_ADDRESS>cpe:2.3:a:snakeyaml_project:snakeyaml:1.33:*:*:*:*:*:*:*, cpe:2.3:a:yaml_project:yaml:1.33:*:*:*:*:*:*:*) : CVE-2022-38752

Scanning mvn

@EugenMayer assuming you have confirmed it is coming from NVD rather than, say, OSSIndex could it be NVD cached data being different between your mvn and Gradle examples? Fix version for 38752 was only corrected to 1.32 in NVD a few days ago.

@chadlwilson i would not say i confirmed that, sorry. I would rather say i'am not even sure how. I ensure to wipe the CI cache / local cache to have a clean scan with refreshed indexes. But i'am not sure this is what you asked for.
I'am not yet DependencyCheck bullet proof so there is a good chance i did miss something that is needed by protocol - if so, please bear with me.
So by https://nvd.nist.gov/vuln/detail/CVE-2022-38752 - which is what i checked, versions from 1.32 should no longer be affected. This is what i checked, but i cannot confirm that this actually is my result, hence the notice here. Anything i did wrong?

I have not looked at this specific issue - however, the question around suppressing items that are not actually part of the build artifacts may come down to not scanning specific configurations in gradle. See https://jeremylong.github.io/DependencyCheck/dependency-check-gradle/configuration.html for skipConfigurations and scanConfigurations.

@chadlwilson i would not say i confirmed that, sorry. I would rather say i'am not even sure how. I ensure to wipe the CI cache / local cache to have a clean scan with refreshed indexes. But i'am not sure this is what you asked for.

@EugenMayer  Not sure if your setup would allow the cache to be retained across builds, but you could try mvn dependency-check:purge per the docs. I cant recall the location that the mvn plugin caches the NVD data. If you don't override cveValidForHours to a larger cache number (4 hours by default), and there is nothing retained in your env across attempts.

So by https://nvd.nist.gov/vuln/detail/CVE-2022-38752 - which is what i checked, versions from 1.32 should no longer be affected. This is what i checked, but i cannot confirm that this actually is my result, hence the notice here. Anything i did wrong?

IIRC the text report output doesn't clarify which component of dependency check is complaining about a given issue. Could be OSSIndex, could be NVD... or others. Since OSSIndex and NVD both typically refer to Java vulnerabilities via their CVE identifier, I don't think the output above doesn't tell you where the false positive is coming from. You can confirm that from the full HTML report. Usually I look at the suggested suppression fragment to determine, as OSSIndex ones will have <vulnerabilityName> instead of <cve> in the suppression fragment, but there might be a smarter way.
The reason I suggest checking is that sometimes the same false positive is coming from two datasources, and the suppression rule needs to be adjusted to reflect that (and this issue is about suppressions not working, although likely has several possible root causes different to the one being discussed here regarding detekt as a Gradle plugin).

Here is the full screenshot of the HTML report:

I guess the part
CVE-2022-38752 (OSSINDEX)  suppress

I what you are looking for, seems like the OSSINDEX is the cause.
I ran mvn dependency-check:purge and then ran mvn verify again and it failed the same way (and i have seen it downloading all the indexes for the usual long time).
Does this help?

@EugenMayer As the docs indicate, only NVD data is cached. So purging it won't help if the issue is OSSIndex. You'll have to suppress until https://github.com/OSSIndex/vulns/issues/328 is addressed. Anyway, CVE-2022-38752 currently comes up via OSSINDEX with 1.33 on Gradle for me, so if it's not appearing for you there must be something different in your setup between Maven and Gradle. In any case it doesn't sound like your issue has anything to do with this specific problem with Dekekt and Gradle. I believe this is supposed to be about suppression not working in some cases, not about false positives per se.

As to the root problem here, it's possible to have something very strange going on. It seems like in some cases Dependency Check or its Gradle plugin is not actually updating when there are any updates to the suppression file, so when one adds suppressions it doesn't see them and it seems like it's not working and keeps using the old values.
Not sure if that is what was going on here, but I can't replicate exactly the same issue I was having with detekt now; but did get something similar happening with changes to suppressions seemingly being ignored. I seemed to be able to fix it by removing the local .gradle folder and trying again. 🤷♂

@EugenMayer As the docs indicate, only NVD data is cached. So purging it won't help if the issue is OSSIndex. You'll have to suppress until OSSIndex/vulns#328 is addressed. Anyway, CVE-2022-38752 currently comes up via OSSINDEX with 1.33 on Gradle for me, so if it's not appearing for you there must be something different in your setup between Maven and Gradle. In any case it doesn't sound like your issue has anything to do with this specific problem with Dekekt and Gradle. I believe this is supposed to be about suppression not working in some cases, not about false positives per se.

I was entirely unware of https://github.com/OSSIndex/vulns/issues/328 and the entire existence of OSSindex as a second source. Thank you for bringing this up, helped me a lot.
Suppressing is not an issue, my point here was, that i was not expecting to be in need of an suppression - now i know better. Next time i check OSSindex in addition before posting FUD. Sorry!


No pointerover styling possible in TabControl

Is your feature request related to a problem? Please describe.
When I am styling my TabControl, the pseudoclass :pointerover is not shown in the frontend.
Describe the solution you'd like
I want to style the :pointerover different to the given FluentTheme styling.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
TabItem :selected ->

TabItem :selected and :pointerover

Here you can see my code, which should set the foreground to red, when the :pointerover pseudoclass is activated:
<Style Selector="TabItem:pointerover">         <Setter Property="Foreground" Value="Red"/> </Style>
Neither the following has no result in the frontend:
<Style Selector="TabItem:selected:pointerover">         <Setter Property="Foreground" Value="Red"/> </Style>

please check original styles to understand which selector to be overridden. Most likely there is also a DynamicResource which can simply be overridden in App.resources.
Original Style: https://github.com/AvaloniaUI/Avalonia/blob/d6ecb517b8dd2597aa72fb09cad65b299b8d9bb1/src/Avalonia.Themes.Fluent/Controls/TabItem.xaml#L66-L70

I'll convert it into a discussion for now. Let me know if it worked.


Modularise terraform pipeline steps

User Need
As a Developer
I want a simple terraform pipeline module for github actions
so that I don't need to repeat the same code in each pipeline
Acceptance Criteria:

Investigate creating a github action/reusable workflow for applying Terraform to reduce code duplication across our pipelines.

https://docs.github.com/en/actions/sharing-automations/reusing-workflows

https://github.com/ministryofjustice/operations-engineering/pull/4773


Expanding c++ calculator

Describe the Feature you want to end
I would like to add more arithmetic operations to C++ calculator and turn it into a scientific calculator
Expected behavior
Features-:

Logarithmic function
Rounding off
Exponential Function
Factorial of a Number
Square root
percentage

@MohitGupta121 sir kindly assign me this issue


Disable  Distracting apps - Abhinav R Cillanki

Adding the feature to disable apps during focus time using pkill --signal STOP and IFS to be ',' to take a list of apps.

@proffapt please check if it's fine now

@proffapt please check now

you haven't made changes to the sound script.. pomodoro-sounds-cli.sh

you haven't made changes to the sound script.. pomodoro-sounds-cli.sh

I made the changes in my last commit

@proffapt made the change.


Returning dataclass with pydantic-compatible fields (e.g. datetime) fails for FastAPI >= 0.67

First check

[x] I added a very descriptive title to this issue.
[x] I used the GitHub search to find a similar issue and didn't find it.
[x] I searched the FastAPI documentation, with the integrated search.
[x] I already searched in Google "How to X in FastAPI" and didn't find any information.
[x] I already read and followed all the tutorial in the docs and didn't find an answer.
[x] I already checked if it is not related to FastAPI but to Pydantic.
[x] I already checked if it is not related to FastAPI but to Swagger UI.
[x] I already checked if it is not related to FastAPI but to ReDoc.
[x] After submitting this, I commit to one of:

Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.
I already hit the "watch" button in this repository to receive notifications and I commit to help at least 2 people that ask questions in the future.
Implement a Pull Request for a confirmed bug.

Example & Description
I have encountered an issue when returning dataclass responses with some pydantic-compatible (but incompatible with json encoder of Python standard library) fields, e.g. datetime objects or pathlib file paths.
Here's a self-contained, minimal, reproducible, example  where I have added a datetime field to the  Item class in tests/test_serialize_response_dataclass.py:
from datetime import datetime
from fastapi import FastAPI
from fastapi.testclient import TestClient
from dataclasses import dataclass

app = FastAPI()

@dataclass
class Item:
    name: str
    date: datetime

@app.get("/items/no-response-model/object")
def get_no_response_model_object():
    return Item(name="object", date=datetime(2021, 7, 26))

client = TestClient(app)

def test_no_response_model_object():
    response = client.get("/items/no-response-model/object")
    response.raise_for_status()
    assert response.json() == {
        "name": "object",
        "date": datetime(2021, 7, 26).isoformat(),
    }

I would

Run the test code snippet with Pydantic 0.67
I would expect it pass because datetime objects are compatible with Pydantic models
It fails with the following stack trace:

Fail: TypeError: Object of type datetime is not JSON serializablepytest(./tests/test_serialize_response_dataclass_minimal_failing.py::test_no_response_model_object)
test_serialize_response_dataclass_minimal_failing.py(23, 5): test_no_response_model_object
test_serialize_response_dataclass_minimal_failing.py(24, 5): response = client.get("/items/no-response-model/object")
sessions.py(555, 9): return self.request('GET', url, **kwargs)
testclient.py(415, 9): return super().request(
sessions.py(542, 9): resp = self.send(prep, **send_kwargs)
sessions.py(655, 9): r = adapter.send(request, **kwargs)
testclient.py(243, 17): raise exc from None
testclient.py(240, 13): loop.run_until_complete(self.app(scope, receive, send))
base_events.py(642, 9): return future.result()
applications.py(199, 17): await super().__call__(scope, receive, send)
applications.py(112, 9): await self.middleware_stack(scope, receive, send)
errors.py(181, 13): raise exc from None
errors.py(159, 13): await self.app(scope, receive, _send)
exceptions.py(82, 17): raise exc from None
exceptions.py(71, 13): await self.app(scope, receive, sender)
routing.py(580, 17): await route.handle(scope, receive, send)
routing.py(241, 13): await self.app(scope, receive, send)
routing.py(52, 13): response = await func(request)
routing.py(243, 13): response = actual_response_class(response_data, **response_args)
responses.py(53, 9): self.body = self.render(content)
responses.py(161, 9): return json.dumps(
__init__.py(234, 5): return cls(
encoder.py(199, 9): chunks = self.iterencode(o, _one_shot=True)
encoder.py(257, 9): return _iterencode(o, 0)
encoder.py(179, 9): raise TypeError(f'Object of type {o.__class__.__name__} '

I have created a PR #3607 with an attempt to fix the issue and extend the existing tests in tests/test_serialize_response_dataclass.py.
Without this PR, all tests in this updated file fail.
Note that the example above and the extended tests also pass with a pre 0.67 version of FastApi (before official dataclass response support).
Environment

OS: [e.g. Linux / Windows / macOS]: macOS
FastAPI Version [e.g. 0.3.0]: 0.67.0
Python version: 3.9.6

It also fails, when specifying the response model in the route:
from datetime import datetime
from fastapi import FastAPI
from fastapi.testclient import TestClient
from dataclasses import dataclass

app = FastAPI()

@dataclass
class Item:
    name: str
    date: datetime

@app.get("/item", response_model=Item)
def get_object():
    return Item(name="object", date=datetime(2021, 7, 26))

client = TestClient(app)

def test_object():
    response = client.get("/item")
    response.raise_for_status()
    assert response.json() == {
        "name": "object",
        "date": datetime(2021, 7, 26).isoformat(),
    }

Hello,
I've added 1 more test case in another issue for proving the change introduced in 0.67 version broke the contract of jsonable_encoder.

This is a pretty important bug for me, but the fix seems to not have any traction.

This is also important for me, and the PR already exists, let me know if you need any help on this.

This is very important to me aswell

Thanks for the complete report! And thanks for the fix @himbeles in https://github.com/tiangolo/fastapi/pull/3607
This will be available in the next release, FastAPI 0.81.0 :rocket: :tada:


Lettuce5 redis cluster 模式下获取 peer_ip

What Does This Do
#81
Motivation
Additional Notes
Jira ticket: [PROJ-IDENT]

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.liurui 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.


Take out Birth Date

Let us not ask workers (admin, workers) what their birth date is in signuo

Actually, let's reduce the amount of information we need to ask of from the workers/admins. Let's have a talk to discuss this. For example, we should still ask for their personal phone and personal email (in case they need to be contacted directly) but not their personal address or birth date - only clients should be asked this

i think its fine to leave in for now, tbh. Its not a real hinderance

also i think @steffen12 we need birthdate to ensure workers/admins etc are older than 18 bc i dont think theyre authorized under HIPAA if theyre too young.


Add command onenote page list

Closes #4001
Also noticed that the telemtry in onenote notebook list was wrong, so I've resolved this.
I believe that currently, in this command, it is also possible to add both groupId and userId, and only the userId will be used, which shouldn't be allowed if I'm correct. Should I log an issue for this?

I believe that currently, in this command, it is also possible to add both groupId and userId, and only the userId will be used, which shouldn't be allowed if I'm correct. Should I log an issue for this?

Great catch!
This is indeed not what is supposed to happen. Let's indeed create a new issue for this one, according to me all options should be in 1 big optionset right?

Also noticed that the telemtry in onenote notebook list was wrong, so I've resolved this.

Another great catch, I suggest that we remove the fix from this PR and include it in the new issue.

Other than that, great work, we'll try to review your PR ASAP!

I believe that currently, in this command, it is also possible to add both groupId and userId, and only the userId will be used, which shouldn't be allowed if I'm correct. Should I log an issue for this?

Great catch! This is indeed not what is supposed to happen. Let's indeed create a new issue for this one, according to me all options should be in 1 big optionset right?

Also noticed that the telemtry in onenote notebook list was wrong, so I've resolved this.

Another great catch, I suggest that we remove the fix from this PR and include it in the new issue.

Thanks for the reply. Created the issue #4315  and removed the file from the PR.

Hi @Adam-it
Thanks for your feedback. I've resolved the issues and added a comment on one of your remarks. Could you have another look if you have some spare time?

ready to merge 🚀

merged manually. Thank you for your awesome work 🤩


[AppConfig] rename Label to SettingLabel

This PR addresses API feedback by renaming the Label model to SettingLabel, along with it's related models.

/azp run net - appconfiguration - tests

API change check
APIView has identified API level changes in this PR and created following API reviews.
Azure.Data.AppConfiguration


Document the delay param in baffle.reveal() on Github Pages

The second param of the reveal function isn't documented on the website.

Do you mean here? I think it's documented everywhere. Did I miss it somewhere?

D'uh, I have no idea what I meant now. Closing for now.


feat: Adding Contributors Section in Website

What feature?
I would like to add the list of all contributors in the website page.
Add screenshots
Just above the footer section
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSoC'23 contributor
[X] I want to work on this issue

we already had contributors page & removed it


[FEA] log whether libcudf and libcudfjni were built for PTDS

Given queriable flags defined in:

CUDF JNI: https://github.com/rapidsai/cudf/issues/6112
CUDF: https://github.com/rapidsai/cudf/issues/6111

Produce a log at startup stating whether the plugin is running with PTDS enabled. Additionally, if there is a mismatch between these two flags (jni/libcudf) we should ERROR at least, and one could argue we show blow up... since we have a PTDS and not-PTDS.

Once the libcudf API is implemented, the Java tests should automatically fail if JNI was not compiled in the same manner.  That should effectively prevent a cudf build from mismatching.


TPF indexing in Db

Although TPF queries are implemented, they are very slow and won't scale - a single TPF query iterates over all individual atoms in the store. To solve this, we need some type of index. Since we're using Sled, a key-value store, we can't use some SQL index, we need to build it ourselves.
One solution is to create two new Sled tree (a new k-v store). In the first one (for searching by Value) every k represents an Atomic Value, and v a vector of all subjects. In the second one for Properties, k = property, v = subject.
However, a very common TPF query will be like this: * isA SomeClass. If we only do above indexes, this will still be a costly query, because we'll still iterate over many resources - pretty much all resources will have the isA property.
We could improve performance if we'd also store the Property in the v fields mentioned above, instead of only storing the subjects.  To prevent unnecessary data duplication / minimize storage impact, it might make sense to not store entire atoms, but to leave out the thing that's already known (the thing in the key).
A TPF query such as * isA SomeClass would probably start with using the ValueIndex, which return all SubjectProperty combinations. Then, the implementation will iterate over all SubjectProperties, filtering by property, returning all subjects.
I think Atomic Collections will rely on this query quite a bit: make a list of all Persons (or some class), sorted by some thing. This will do such a TPF query using the indexes, than returns all subjects.
Another possible optimization strategy is caching Collections (which internally use TPF queries). We could rebuild (or invalidate) them on Commits.

Resources have an explicit parent. Getting the parent is a cheap operation, but generating the children is expensive, as it currently requires a TPF query that iterates over all items. This specific operation should be very quick, but I'd like to make the optimizations generalizable.
One way to optimize this TPF query, is to keep track of incoming links. We could create a new inverted tree for this: ValueIndex<valueURL, MentionedIn<propery, Vec<subject>>>. In human language: you can get a MentionedIn for any value, which contains a list of properties. For any given property, you can find the subjects that have used that property to refer to the valueURL.
So when we have this ValueIndex, we need to add stuff into it. When do we build the index? I think we should update it whenever we add or remove a resource. We iterate over all the PropVals, check if they have an AtomicURL or ResourceArray, and add the items to the index. When a resource is deleted, it needs to be deleted from the index, too.

While I was working on the document editor, performance for Collections became pretty bad. This was due to the Documents creating a lot of Commits and Elements, and there was no indexing in the DB. When a Collection was to be fetched, a TPF query would be done, which in turn iterated over every resource... So I've started to build a value index. The Value index seems to be working properly, and it solves the performance issues I've had locally.
But a new issue is arising: it takes way to long to build the index. On my dev machine, where I have some 500MB of things in the store, it took about 30 minutes to build the index. It's insane. Every resource takes about 100+ ms. But why? I have no clue.
Maybe it's time to add some serious benchmarking.

possible causes

some Atoms have a lot of values (long resource arrays for write)
some value are very common (such as the "" empty string)

I'm pretty content with the current implementation. Closing for now.


Error when Offer approved

[CSBOX.PL 2015-11-30 18:25:50] SUCCESS: Offer approved, accepting.
[CSBOX.PL 2015-11-30 18:25:55] ERROR: Steam API error encountered. Trying again. Tries: 1
[CSBOX.PL 2015-11-30 18:25:56] ERROR: Tried total number of tries, giving up.
OR
[CSBOX.PL 2015-11-30 18:20:39] SUCCESS: Offer approved, accepting.
[CSBOX.PL 2015-11-30 18:20:41] ERROR: Server deposit request failed, declining trade. Error message:
An error occured while fetching market price for an item.
Amy ideas ?

@Xeroner
You fixed this already? I got the same problem but the items are going into the pot

No, it's not fixed

i think this happens to everybody :S

Yes, and author of this script don't give a fu** :P

,, It's not happend to me ,, and thats all....

did you setup the right password in your settings.json?

@TheRod1990 Are you kidding me right?

Just asking mate :p

I cant help if i dont know whats wrong with your setup xD

@Xeroner he's trying to help, don't be rude...
The issue is most likely due to the recent change in the market API where you can only have X number of request per seconds/ minute. Try reading the API docs to find that value (I forget what it is). I suggest using an API like BitSkins or something similar.

@andrewda Without correct password it's not possible to get this errors...
[CSBOX.PL 2015-11-30 18:25:50] SUCCESS: Offer approved, accepting.
[CSBOX.PL 2015-11-30 18:25:55] ERROR: Steam API error encountered. Trying again. Tries: 1
[CSBOX.PL 2015-11-30 18:25:56] ERROR: Tried total number of tries, giving up.
it's happend all the time, every single offer.


[Feature] Allow specifying saved query group by items with dundered syntax vs the object syntax

Is this your first time submitting a feature request?

[X] I have read the expectations for open source contributors
[X] I have searched the existing issues, and I could not find an existing issue for this feature
[X] I am requesting a straightforward change to existing dbt-semantic-interfaces functionality, rather than a Big Idea better suited to a discussion

Describe the feature
Currently you need to to use the object syntax to call dimensions in a saved query:
saved_queries:
  - name: new_customer_orders
    description: New customer orders by name and time
    query_params:
      metrics:
        - orders
      group_by:
        - Dimension('customer__customer_name')
        - TimeDimension('metric_time', 'day')
      where:
        - "{{ Dimension('customer__customer_type') }}  = 'new'"
    exports:
      - name: new_customer_orders
        config:
          export_as: table

You should be able to add call dimensions without needing jinja brackets. This is consistent with how you call dimensions in the CLI.
saved_queries:
  - name: new_customer_orders
    description: New customer orders by name and time
    query_params:
      metrics:
        - orders
      group_by:
        - customer__customer_name
        - metric_time__day
      where:
        - "{{ Dimension('customer__customer_type') }}  = 'new'"
    exports:
      - name: new_customer_orders
        config:
          export_as: table

Describe alternatives you've considered
No response
Who will this benefit?
No response
Are you interested in contributing this feature?
No response
Anything else?
No response

I vaguely recall that we specifically did not want to have the dundered syntax in the configs?


light-cv:0.1.1

I am submitting

[ ] a new package
[x] an update for a package

Description: Update the thumbnail to display the bottom margin correctly - fixes this issue Thumbnail is cropped in my package's repository.

Thank you


Particle System lifetime(?) issue

example case: When casting Sleep, it will stay stuck in this state for a while at the end of the particle effect (for 2 seconds or so).

This is now fixed


Investigation, Comedy Central and other channels disappeared

Are they down? Cheers

Idk, i wanted to watch NBC Sports but it's missing, same with Nickelodeon & TeenNick.

Let's hope it can get fixed quickly, this is on par or better than most paid IPTV services

I hope so, this is the only place i could find these channels.

Unfortunately, links to these channels stopped working and were removed from the playlist. But if I find links to the working broadcasts of these channels, I will return them back.


fix: add positive for-value to progressing argo app rule

It seems as the ProgressingArgocdApp rule is not loaded correctly to RHOBS due to the for field set to 0m. Setting it to 1m to work around that.

/retest


Scroll not working in Group Settings

Uploading Screen Recording 2024-02-21 at 3.48.24 PM.mov…
I noticed today when toggling group settings that I was unable to scroll when in Group Settings (See video attachment). I'm trying to delete a group and can't scroll down to the delete button.
I'm working off my mac on google chrome.

Seems like the video didn't upload?

seems to be working for me, and also the video didnt upload

I'm guessing its a small screen size. The left side of the page doesn't scroll right? So if the screen size is small, you might not be able to reach the bottom (delete) tab


Issue [Edge Case] Handle the Empty file Upload

Fix issue on Login/index.jsx and Dashboard/dashboard.jsx

Fix issue on Login/index.jsx and Dashboard/dashboard.jsx

Please add few screenshots and a short description of the your work and approach to make reviewers understand well


updating packages

I have resolved some security vulnerabilities by doing the following:

upgraded some packages
installed some peer dev dependancies manually
removed the firebase-tools package as had a vulnerability in it and the package wasn't being used anywhere. Note: If we need it in future add the latest (secure) version.
updated sass-loader to v10 (which is the latest version of sass-loader that is compatible with Vue CLI v4). The application now compiles faster :)

I also resolved some minor compilation warnings coming from the linter
Note: The majority of the vulnarabilities left are moderate and caused by an outdated version of postcss but upgrading this would require many other packages to be upgraded too.
PREVIEW:DEVELOP

Hey @joy-ade just to confirm the acceptance test for this ticket is to check and see if Admin is still working (using the preview url). No visual changes have been made.

@warrensearle I have tested the Admin and its works. PR has been approved.


Settings : editor.cursorSurroundingLines misleading default

Type: Bug
Settings : editor.cursorSurroundingLines displays the default as being 0 while it is in fact 5. any input between 0 (included) and 4 (included) seems to be ignored anyway and processed as being "5"
VS Code version: Code 1.93.0 (4849ca9bdf9666755eb463db297b69e5385090e3, 2024-09-04T13:02:38.431Z)
OS version: Linux x64 6.10.6-200.fc40.x86_64
Modes:

System Info

Item
Value

CPUs
AMD Ryzen 7 5800H with Radeon Graphics (16 x 4441)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: disabled_softwarevulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_offwebnn: disabled_off

Load (avg)
2, 2, 1

Memory (System)
13.49GB (6.67GB free)

Process Argv
--crash-reporter-id 65116bd1-1c78-4041-a566-c113afd1dba7

Screen Reader
no

VM
0%

DESKTOP_SESSION
gnome

XDG_CURRENT_DESKTOP
GNOME

XDG_SESSION_DESKTOP
gnome

XDG_SESSION_TYPE
wayland

Extensions (27)

Extension
Author (truncated)
Version

vscode-neovim
asv
1.18.12

github-markdown-preview
bie
0.3.0

markdown-checkbox
bie
0.4.0

markdown-emoji
bie
0.3.0

markdown-footnotes
bie
0.1.1

markdown-mermaid
bie
1.25.0

markdown-preview-github-styles
bie
2.1.0

markdown-yaml-preamble
bie
0.1.0

gitlens
eam
2024.9.1905

codespaces
Git
1.17.3

copilot
Git
1.231.0

copilot-chat
Git
0.20.2

remotehub
Git
0.64.0

vscode-github-actions
git
0.26.5

vscode-pull-request-github
Git
0.97.2024091904

debugpy
ms-
2024.10.0

python
ms-
2024.14.1

vscode-pylance
ms-
2024.9.1

remote-containers
ms-
0.386.0

remote-ssh
ms-
0.115.2024091615

remote-ssh-edit
ms-
0.86.0

vscode-remote-extensionpack
ms-
0.25.0

azure-repos
ms-
0.40.0

remote-explorer
ms-
0.5.2024081309

remote-repositories
ms-
0.42.0

remote-server
ms-
1.6.2024081909

pdf
tom
1.2.2

(1 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
da93g388:31013173
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
impr_priority:31102340
nativerepl2:31139839
refactort:31108082
pythonrstrctxt:31112756
flighttreat:31134774
wkspc-onlycs-t:31132770
wkspc-ranged-t:31125599
fje88620:31121564

Done, doesn't change anything

You might want to change this setting:  editor.stickyScroll.maxLineCount
I'm in the middle of trying to figure out what the difference is between these two settings.
They both seem to do the same thing...?????

They both seem to do the same thing

They are not the same thing and differ
Firsty, of course, it works without stckyScroll, but also, it also take into accounts lines from below


Implement Observability Metrics for LLM Calls

As we aim to enhance the user experience and transparency of our application, it's essential to offer users insight into their interactions with the llms. We propose to introduce the following observability metrics:
Cost : Users should be able to see the monetary cost associated with each LLM call they make through their llm apps. This not only enhances transparency but also helps users manage and anticipate their expenses.
Total Tokens Used for a Prompt: Displaying the number of tokens consumed for a particular prompt can assist users in understanding the complexity and depth of their requests.
Latency of an LLM Call: Display the response time for each LLM call. This can be vital for users to understand the efficiency and speed of the model, especially when dealing with time-sensitive applications.
Our goal is to ensure users have complete visibility into their LLM interactions, aiding them in optimising their usage and getting the most out of the system. Feedback and additional suggestions are welcome as we embark on this enhancement journey.

duplicate see https://github.com/Agenta-AI/agenta/issues/452


Added to minification-benchmarks

Hey, just wanted to give you a heads up that we started benchmarking your minifier here:
https://github.com/privatenumber/minification-benchmarks
Thanks for your project and good luck!

That sounds great, excited to be part of the benchmarks!
I did some work on the parser and minifier over the last week, which should have some impact on the performance and effectiveness. Do the benchmarks automatically re-run on a new version? I released a new minor version 0.5.1, which is technically breaking, but there's no change in the Node.js API, only the Rust API.

Yeah any new version published to npm should trigger Renovate to open a new PR and automatically benchmark it.


perf: avoid regexp for generate alphabetic name fn

Removing RegExp to improve the speed of this helper fn.
Results:
generateAlphabeticName V1: 14.510s
generateAlphabeticName V2: 3.515s
Result: nJkmV

Benchmark:
var AD_REPLACER_R = /(a)(d)/gi;
/* This is the "capacity" of our alphabet i.e. 2x26 for all letters plus their capitalised
 * counterparts */
var charsLength = 52;
/* start at 75 for 'a' until 'z' (25) and then start at 65 for capitalised letters */

var getAlphabeticChar = function (code) {
  let temp = code + (code > 25 ? 39 : 97);

  return String.fromCharCode(temp);
};

const D_LOWER_CHAR = 'd'.charCodeAt(0);
const D_CHAR = 'D'.charCodeAt(0);

const A_LOWER_CHAR = 'a'.charCodeAt(0);
const A_CHAR = 'A'.charCodeAt(0);

function ensureDashForAD(a, b) {
  if (a.length === 0 || b.length === 0) {
    return a + b;
  }

  const lastBChar = b.charCodeAt(b.length - 1);

  if (lastBChar !== D_CHAR && lastBChar !== D_LOWER_CHAR) {
    return a + b;
  }

  const lastAChar = a.charCodeAt(a.length - 1);

  if (lastAChar !== A_CHAR && lastAChar !== A_LOWER_CHAR) {
    return a + b;
  }

  return a + '-' + b;
}

function generateAlphabeticNameV1(code) {
  let name = '';
  let x;

  /* get a char and divide by alphabet-length */
  for (x = Math.abs(code); x > charsLength; x = (x / charsLength) | 0) {
    name = getAlphabeticChar(x % charsLength) + name;
  }

  return (getAlphabeticChar(x % charsLength) + name).replace(AD_REPLACER_R, '$1-$2');
}

/* input a number, usually a hash and convert it to base-52 */
function generateAlphabeticNameV2(code) {
  var name = '';
  var x;
  /* get a char and divide by alphabet-length */
  for (x = Math.abs(code); x > charsLength; x = (x / charsLength) | 0) {
    name = ensureDashForAD(getAlphabeticChar(x % charsLength), name);
  }

  return ensureDashForAD(getAlphabeticChar(x % charsLength), name);
}

let result = '';

console.time('generateAlphabeticName V1')
for (let i = 0; i < 1e8; i++) {
  result = generateAlphabeticNameV1(i);
}
console.timeEnd('generateAlphabeticName V1')

console.time('generateAlphabeticName V2')
for (let i = 0; i < 1e8; i++) {
  result = generateAlphabeticNameV2(i);
}
console.timeEnd('generateAlphabeticName V2')

console.log('Result:', result);

Perf for this library sometimes doesn't work the way you'd expect in my experience.

Which value represents this PR?

Ok I found a discrepancy in the benchmark code that I fixed in main and we can properly test this now

Ran it again and the perf is pretty much the same between latest and this branch

I know for sure this will be faster but maybe the impact on the benchmark is not much relevant, so is up to you to merge.
At least when I profiled some time ago, I was able to remove this function from the profile chart with this change, my benchmark was just rendering the same box multiple times.


Improved bouncing in pong tutorial

I've added a bouncer manager, so basic but works.
Added as step6 with files.
Updated docs with that new bouncer stuff.
Im not english, feel free to correct any gramatical error/s.
Regards.

Saw PEP8 error in travis.
Seems is line 50 comment, so long. Just remove it, i forgot to inspect that line before PR

Do i have to redo the stuff or just add new commits pathing the current ones??
Im sorry but im not confident with that.
Thank you for advising me.
Regards.

@erm3nda that's your decision :) You might just throw the commits in here, though it will cause that the PR will be less readable and then it might be squashed into a single commit. You can also use git rebase HEAD~N to clean the commits locally and git push -f the clean commit history.

Okay, i lost the changes 3 times because of git. Lucky me i saved the changes in another folder before. I think i should start to use git CLI because the software i used to make my life easier just f***** my work and my time.
I'll erase my current fork with all those bad commits, and start again.
Closing that PR, thanks.


EJB App Packaging for Mac & Linux

Overview

See: https://jira.bf.local/browse/ECR-XYZ
Definition of Done

[ ] There are no TODOs left in the code
[ ] Change is covered by automated tests
[ ] The coding guidelines are followed
[ ] Public API has Javadoc
[ ] Method preconditions are checked and documented in the Javadoc of the method
[ ] Changelog is updated if needed (in case of notable or breaking changes)
[ ] The continuous integration build passes

@vitvakatu Why does it target master, including all the changes made so far? Can we review only the updated bits, targeting ejb-app-configuration? If you, however, pushed these directly, please target a new branch off 0d192bf3de5123366e8ca0ce9550bcbb27abfec9.

@dmitry-timofeev the reason is, vitvakatu/ejb-app-configuration is in sync with the latest exonum/master, but exonum/ejb-app-configuration is not (and includes some fixes after #732 reviews). So if I target exonum/ejb-app-configuration - we'll get huge amount of changes, including changes from master.

Coverage remained the same at 85.725% when pulling 910abee92438ecc87644556ce126f2273447d36e on vitvakatu:ejb-app-configuration into 49850499a471194a885d93df8fcab3119b2deea4 on exonum:master.

@vitvakatu Do we squash it or merge as is?

@dmitry-timofeev as you wish, I'm okay with squashing


Handle react 404 page not found error and display the 404 Page

If route is not present in routes and no component is assigned to that route display a component which will say this route is not present and it should be beasutiful

@trickster26  Done in branch random_url_page_breakdown. Kindly review and merge.

Working but routes like admin/dashboard/abc or admin/fgh not working but i dont think this is important


Set JWT in Snakemake call for accessing TES server

Snakemake takes a --tes parameter or allows setting this the TES access via the --profile files, but that does not include authentication to the TES server.
Implement in Snakemake a way to pass a JWT to the TES server.

https://gitlab.com/one-touch-pipeline/weskit/api/-/issues/290

PR is open and waiting for review
https://github.com/snakemake/snakemake/pull/1966

This seems to be done 🥳


OpenLogic CentOS 7_9-gen2 does not have cloud-init enabled by default

i have a product that works in aws.  now trying to make it work in Azure.  (so customer that have azure can use it).
Getting cloud-init to run in auzre with a ARM provisioned collection has been 10 times more complicated than aws.
i finally figured out that OpenLogic CentOS 7_9-gen2 should have it working by default by finding this page.  the package is installed 19.x.  but it is disabled:
grep "cloud-init is enabled" /var/log/waagent.log
2021-04-14T22:56:18.091986Z INFO Daemon cloud-init is enabled: False
i feel like i am making progress with https://docs.microsoft.com/en-us/azure/virtual-machines/linux/redhat-create-upload-vhd.
but please improve this.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 67fb132b-0dc3-d493-69bc-dc28b5bfd5e1
Version Independent ID: ba5cb476-3e32-911f-0395-0cc8087d1ff3
Content: Overview of cloud-init support for Linux VMs in Azure - Azure Virtual Machines
Content Source: articles/virtual-machines/linux/using-cloud-init.md
Service: virtual-machines
Sub-service: extensions
GitHub Login: @danielsollondon
Microsoft Alias: danis

@duaneguthrie Thanks for the feedback. As the CentOS section of this doc shows, only 7.7 & 8.1 images are cloud-init enabled by default. You can still likely use cloud-init with a 7.9 image, but you might need to take additional steps to make sure cloud-init is enabled before deployment like creating a custom image.
If you would like us to prioritize enabling a specific image or version, please leave your feedback here on feedback.azure.com.

https://docs.microsoft.com/en-us/azure/virtual-machines/linux/using-cloud-init
calls out 7.7 and 8.1 it will be enabled.
then it says "All OpenLogic:CentOS 7.8 and 8.2 (Gen1 and Gen2) images are
provisioned using cloud-init".
which implies all future versions will have it enabled.  then 7.9 has no
enablement.
On Thu, Apr 15, 2021 at 10:39 AM TravisCragg-MSFT @.***>
wrote:

@duaneguthrie https://github.com/duaneguthrie Thanks for the feedback.
As the CentOS section of this doc shows, only 7.7 & 8.1 images are
cloud-init enabled by default
https://docs.microsoft.com/en-us/azure/virtual-machines/linux/using-cloud-init#centos.
You can still likely use cloud-init with a 7.9 image, but you might need to
take additional steps to make sure cloud-init is enabled before deployment
like creating a custom image.
If you would like us to prioritize enabling a specific image or version,
please leave your feedback here on feedback.azure.com
https://feedback.azure.com/forums/216843-virtual-machines.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/azure-docs/issues/73833#issuecomment-820528049,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFMPMMQF7WR4NAYMUSYO2TTTI4CCVANCNFSM427SSTJA
.

--
This message is intended exclusively for the individual(s) or
entity to which it is addressed. It may contain information that is
privileged or otherwise legally exempt from disclosure.  If you are not the
named addressee, you are not authorized to read, print, retain, copy or
disseminate this message or any part of it. If you have received this
message in error, please notify the sender immediately by e-mail and delete
all copies of the message.
Any digital signatures or certifications
transmitted with this email are for sender verification purposes only and
have not been included in this email for the purposes of binding the
company to any statement or attachment made herein or for any other purpose.

@duaneguthrie This doc outlines our plans with marketplace images and CentOS, which does not include 7.9. I would recommend that you create a custom image for 7.9 with cloud-init enabled for your Azure deployments. If you would like us to add a 7.9 image with cloud-init enabled in the future, your best bet is the feedback link I posted above.
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

What I would like to prioritized is an end-to-example:

Start  Azure approved centos 7.x
Add stuff with placker. . Publish to shared gallery.
Deploy arm template with vm  image from shared gallery.
Demonstrate cloud-init runs.

On Thu, Apr 15, 2021 at 10:39 AM TravisCragg-MSFT @.***>
wrote:

@duaneguthrie https://github.com/duaneguthrie Thanks for the feedback.
As the CentOS section of this doc shows, only 7.7 & 8.1 images are
cloud-init enabled by default
https://docs.microsoft.com/en-us/azure/virtual-machines/linux/using-cloud-init#centos.
You can still likely use cloud-init with a 7.9 image, but you might need to
take additional steps to make sure cloud-init is enabled before deployment
like creating a custom image.
If you would like us to prioritize enabling a specific image or version,
please leave your feedback here on feedback.azure.com
https://feedback.azure.com/forums/216843-virtual-machines.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/azure-docs/issues/73833#issuecomment-820528049,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFMPMMQF7WR4NAYMUSYO2TTTI4CCVANCNFSM427SSTJA
.

--
This message is intended exclusively for the individual(s) or
entity to which it is addressed. It may contain information that is
privileged or otherwise legally exempt from disclosure.  If you are not the
named addressee, you are not authorized to read, print, retain, copy or
disseminate this message or any part of it. If you have received this
message in error, please notify the sender immediately by e-mail and delete
all copies of the message.
Any digital signatures or certifications
transmitted with this email are for sender verification purposes only and
have not been included in this email for the purposes of binding the
company to any statement or attachment made herein or for any other purpose.


Requesting License File

Would like to play around with this, could you add the license please?

Hi @dotjasonhwang,
Done. Happy coding!

Awesome, thanks!


Overlapping labels [PEOPLE-41]

Maintenance and Internal labels overlapped other UI elements when viewed on smaller screens (MacBook Air).
JIRA: https://netguru.atlassian.net/browse/PEOPLE-41

:+1:


Jseldess/basic sql commands

Added select basics to Query a Table section.
You can see html version here: http://cockroach-draft-docs.s3-website-us-east-1.amazonaws.com/basic-sql-commands.html
Covers #5 and #33.
In future, will edit examples to be more specific, probably a bank scenario.

@RaduBerinde, @petermattis: Latest commit should address your previous feedback:

quotes fixed
explanation of asc and desc sorting fixed
now using statements instead of commands
added create index and show index
other minor tweaks

Please let me know if you have any other thoughts.
You can see an update html version here: http://cockroach-draft-docs.s3-website-us-east-1.amazonaws.com/basic-sql-statements.html

LGTM


Any chance of trimming returned values?

First thank you for a great library - succinct and just right for the job.
We've been using the library a while and we LOVE it! However, QA was getting a funky error over the weekend and it turns out that one of the integer properties was throwing a conversion error.
The line in the properties file is
pollingPeriod = 300 # secs

The intent is for a polling period of 5 minutes. We caught the first exception because of the #secs comment but it was hard to see why '300 ' was throwing an error.
By the way, it would be nice if in line comment is supported but not a must have.
Thanks again for a job well done.

I'll look into it asap.

Hi.
The properties file format does not support inline comments:

Lines that start with the comment characters ! or # are ignored. Blank lines are also ignored.

In fact the "# secs" is taken as part of the property value, and I get this error:
java.lang.UnsupportedOperationException: Cannot convert '300 # secs' to java.lang.Integer
	at org.aeonbits.owner.Util.unsupported(Util.java:132)
	at org.aeonbits.owner.Converters.unsupportedConversion(Converters.java:274)
	at org.aeonbits.owner.Converters.access$200(Converters.java:40)
	at org.aeonbits.owner.Converters$11.tryConvert(Converters.java:254)
	at org.aeonbits.owner.Converters.doConvert(Converters.java:266)
	at org.aeonbits.owner.Converters.convert(Converters.java:261)
	at org.aeonbits.owner.PropertiesInvocationHandler.resolveProperty(PropertiesInvocationHandler.java:82)
	at org.aeonbits.owner.PropertiesInvocationHandler.invoke(PropertiesInvocationHandler.java:63)
	at com.sun.proxy.$Proxy7.pollingPeriod(Unknown Source)
	at org.aeonbits.owner.issues.Issue120.shouldReturnProperValue(Issue120.java:32)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:78)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)

Also my IDE (IntelliJ IDEA 14) shows the trailing "#" in green as value of the property:

So I suggest to specify the information in a different way:
# polling period must be specified in seconds
pollingPeriod = 300

pollingPeriodInSeconds = 300
polling.period.seconds = 300

If I implement the inline comment I break the compatibility with properties and I also need to provide an escaping mechanism for the "#" character, that is not needed in standard java properties.
That said, I'll look into the possibility to trim values for primitives and numeric wrapper classes.

Hi.
I committed on master branch a new 'Preprocessor' feature. Here is an example on how to use it:
public class PreprocessorTest {

    @PreprocessorClasses({ SkipInlineComments.class, Trim.class })
    public interface ConfigWithPreprocessors extends Config {
        @DefaultValue("  300  ")
        Integer pollingPeriod();

        @PreprocessorClasses(ToLowerCase.class)
        @DefaultValue("  HelloWorld  ")
        String helloWorld();

        @DefaultValue("  This is the value  ! this is an inline comment # this is the inline comment too")
        String skipsInlineComments();

        @PreprocessorClasses(ToLowerCase.class)
        String nullValue();
    }

    @Test
    public void shouldReturnTrimmedValue() {
        ConfigWithPreprocessors cfg = ConfigFactory.create(ConfigWithPreprocessors.class);
        assertEquals(new Integer(300), cfg.pollingPeriod());
    }

    @Test
    public void shouldReturnLowercasedTrimmedHelloWorld() {
        ConfigWithPreprocessors cfg = ConfigFactory.create(ConfigWithPreprocessors.class);
        assertEquals("helloworld", cfg.helloWorld());
    }

    @Test
    public void shouldSkipInlineComments() {
        ConfigWithPreprocessors cfg = ConfigFactory.create(ConfigWithPreprocessors.class);
        assertEquals("This is the value", cfg.skipsInlineComments());
    }

    @Test
    public void shouldNotThrowExceptions() {
        ConfigWithPreprocessors cfg = ConfigFactory.create(ConfigWithPreprocessors.class);
        assertNull(cfg.nullValue());
    }

    // preprocessors implementation

    public static class Trim implements Preprocessor {
        public String process(String input) {
            return input.trim();
        }
    }

    public static class ToLowerCase implements Preprocessor {
        public String process(String input) {
            return input.toLowerCase();
        }
    }

    public static class SkipInlineComments implements Preprocessor {
        public String process(String input) {
            int hashTagIndex = input.indexOf('#');
            int exclamationMarkIndex = input.indexOf("!");
            if (hashTagIndex == -1 && exclamationMarkIndex == -1)
                return input; // comments not present.

            int commentIndex = min(hashTagIndex, exclamationMarkIndex);
            if (commentIndex == -1)
                commentIndex = max(hashTagIndex, exclamationMarkIndex);

            return input.substring(0, commentIndex);
        }
    }

}

full source code of this example is available here.

The interface of Preprocessor may change to address also #118, I could include parameter values passed to the method, and eventually additional context objects (i.e. the internal properties representation for other properties.)

Thanks Iviggiano!
We are aware that Java properties api does not support inline comment and that was why it was a 'would be nice' request. Also, we would not be looking for alternative solution if that Java built-in solution had worked.
Thank you for your elegant solution to our requests. We will test your solution asap.
More importantly, thank you for a job well done on the Owner library.

Hi!
I just wanted to say that the pre-processor functionality is awesome.
The solution solved our problems - we are happy.
Thank you.

Thanks for your feedback.
The feature will be available with the next released jar in maven central repository, I hope soon. (I am planning to get back on more active development on this library soon)

Today I release OWNER 1.0.9.  Sorry for the long delay.
Hope everything is fine; let me know if there is any problem with it.


composer: include nette 3.0

in another PR I could send di / phpstan fix

dup https://github.com/nettrine/dbal/pull/25


Some permissions required is unnecessary and useless in this library

There are three permissions I questioned:
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
<uses-permission android:name="android.permission.READ_PROFILE"/>
<uses-permission android:name="android.permission.READ_CONTACTS"/>

As a socket library, it needn't get user accounts, read profile or contacts. In this library, these permissions are required but useless.
Maybe you can remove them from README.md and README-CN.md .

ops! really sorry .It will be removed as soon as possible tks


ludusavi backup requires to specify --merge although it is set in config.yaml

Ludusavi version
v0.13.1
Operating system
Linux
Installation method
Other
Description

Configured backups to merge in config.yaml
run backup on CLI, getting error message

$ ludusavi --version
ludusavi 0.13.1
$ ludusavi  backup Factorio
The backup target already exists ( /home/MYUSER/Games/00-savegames/0-ludusavi-backup ). Either choose a different --path or delete it with --force.
$ ludusavi  backup --merge Factorio
Factorio [187.88 MiB]:
  - /home/MYUSER/Games/Factorio/game/config/config.ini
  - /home/MYUSER/Games/Factorio/game/saves/_autosave1.zip
  - /home/MYUSER/Games/Factorio/game/saves/_autosave2.zip
[...]

Overall:
  Games: 1
  Size: 187.88 MiB
  Location: /home/MYUSER/Games/00-savegames/0-ludusavi-backup

Ludusavi configuration:

Logs
No response

Yeah, this isn't a good experience. I think it should prompt for confirmation, like it does in the GUI, unless you use --force to bypass that. The phrasing of the error is a carryover from before the merge option was available.


Allow selecting a random new playlist via service

First of all, because of this integration I got interested in Meural and am a very happy user for a few years now :-) Thank you very much for creating this integration.
Reason
We have "many" playlists on our canvas. The downside of the playlists is that they can sometimes be beautiful and boring at the same time. For example, when going through 32 planets, after 6 we would like to see a different one. Ultimately, we would like the Meurals to shuffle between playlists and images (but I couldn't find settings that can do this, only shuffle images inside a playlist).
Description
It would be great if we could select a random playlist, or even a random item. I checked the source, it is possible to browse galleries, but this is not exposed via a service? I think there could be a service call play_random_item that picks a random gallery and random image to play. Not sure about the performance of switching playlists though.

Thanks! Switching to a random playlist should not be too difficult to add. Let me look into it.


fix: comments for helper.

What this PR does / why we need it:
fix comment.
Special notes for your reviewer:
/cc @kdada

Release note:

NONE

/lgtm


Scenario Runner via OpenSCENARIO waypoint mission for adversarial vehicles

Hello together,
I am currently trying to get a simple scenario in the OpenSCENARIO format working.
In a first stage my goal is to have the evo_vehicle and one or multiple adversarial vehicle each on separate waypoint missions.
It is kind of related to the issue here: https://github.com/carla-simulator/scenario_runner/issues/516
However, the issue I linked above is with an old version of the scenario runner.
In my implementation (WaypointScenario.zip), the one adversarial vehicle is not starting its route, even though I implemented a relative distance based trigger.
Do you have any idea, why this is the case?
Is having multiple adversarial vehicles on different waypoint missions even possible?
Best regards
SchDevel

OS: Ubuntu 20.04
CARLA Version 0.9.10
Python version 2.7
Version 0.9.10 (latest pull)

Hi, I checked your file.
adversary is not moving because speed is set to 0.0 by default.
You are using only one event for adversary actor.
<Event name="FollowsRoute" priority="overwrite">

but in XOSC you need to use a seperated event to set the adversary Speed and then trigger FollowsRoute event.

Exmple:

<Event name="adversarySetSpeed" priority="overwrite">
	<Action name="adversarySetSpeed">
		<PrivateAction>
			<LongitudinalAction>
				<SpeedAction>
					<SpeedActionDynamics dynamicsShape="step" value="10" dynamicsDimension="distance" />
					<SpeedActionTarget>
						<AbsoluteTargetSpeed value="30" />
					</SpeedActionTarget>
				</SpeedAction>
			</LongitudinalAction>
		</PrivateAction>
	</Action>
	<StartTrigger>
		<ConditionGroup>
			<Condition name="adversaryStartCondition" delay="0" conditionEdge="rising">
				<ByEntityCondition>
					<TriggeringEntities triggeringEntitiesRule="any">
						<EntityRef entityRef="ego_vehicle" />
					</TriggeringEntities>
					<EntityCondition>
						<RelativeDistanceCondition entityRef="adversary" relativeDistanceType="cartesianDistance" value="300" freespace="false" rule="lessThan" />
					</EntityCondition>
				</ByEntityCondition>
			</Condition>
		</ConditionGroup>
	</StartTrigger>
</Event>
<Event name="FollowsRoute" priority="overwrite">
	<Action name="FollowsRoute">
		<PrivateAction>
			<RoutingAction>
				<AssignRouteAction>
					<Route name="StraightRoute" closed="false">
						<ParameterDeclarations />
						<Waypoint routeStrategy="fastest">
							<Position>
								<WorldPosition x="-78.0" y="12.96" z="0.6" h="3.14" />
							</Position>
						</Waypoint>
						<Waypoint routeStrategy="fastest">
							<Position>
								<WorldPosition x="-11.42" y="43.82" z="0.6" h="1.57" />
							</Position>
						</Waypoint>
					</Route>
				</AssignRouteAction>
			</RoutingAction>
		</PrivateAction>
	</Action>
	<StartTrigger>
		<ConditionGroup>
			<Condition name="FollowsRouteStartCondition" delay="0" conditionEdge="rising">
				<ByEntityCondition>
					<TriggeringEntities triggeringEntitiesRule="any">
						<EntityRef entityRef="adversary" />
					</TriggeringEntities>
					<EntityCondition>
						<TraveledDistanceCondition value="10" />
					</EntityCondition>
				</ByEntityCondition>
			</Condition>
		</ConditionGroup>
	</StartTrigger>
</Event>

can you try this and let me know if it solves your issue.

Hey @sagar-g-v,
thank you for the fast response!
Interesting point regarding the adversaryspeed and the trigger events. I did not know that.
However, adding this into the code did not change anything. The adversary vehicle is still not moving, despite being <300 in cartesian coordinates away from the ego_vehicle.
I attached the file again here:
WaypointScenarioEdit.zip
Is there something wrong with the start triggers of the ManeuverGroup?
Thank you once again!
Best regards
SchDevel

Hi @SchDevel ,
I believe the issue is due to the start condition that has been set for the adversary.
Line 114: <RelativeDistanceCondition entityRef="adversary" relativeDistanceType="cartesianDistance" value="300" freespace="false" rule="lessThan" />
As the cartesian distance between ego and adversary is < 300 since spawning, hence the trigger condition does not run.
Can you try to set a shorter distance? Maybe having the condition at < 90?
For more info, you can refer ASAM's documentation here
Below is an example of the trigger.

Hey there,
sorry for my super late response. Thank you for your helpful comment @seowwj.
Playing with the start conditions solved my problem.
The reference to the documentation is very helpful.
Best regards
SchDevel

Hey there,
sorry for my super late response. Thank you for your helpful comment @seowwj.
Playing with the start conditions solved my problem.
The reference to the documentation is very helpful.
Best regards
SchDevel

Hello! I am trying to run your .xosc code but it does not work. I spawn an ego vehicle in the simulation and afterwards execute your code. A second vehicle spawns behind the first ego-vehicle but none of them move. What conditions have you been playing with in order to move both vehicles?
Thank you
Best regards

Hey there,
sorry for my super late response. Thank you for your helpful comment @seowwj.
Playing with the start conditions solved my problem.
The reference to the documentation is very helpful.
Best regards
SchDevel

Hello! I am trying to run your .xosc code but it does not work. I spawn an ego vehicle in the simulation and afterwards execute your code. A second vehicle spawns behind the first ego-vehicle but none of them move. What conditions have you been playing with in order to move both vehicles?
Thank you
Best regards

@SchDevel

@EnekoRamirez Did you found any solution to this issue?


apiserver proxy stopped accepting namespaces

The apiserver proxy rewrites links to the form "/proxy/ns/default/...":
https://github.com/GoogleCloudPlatform/kubernetes/blob/master/pkg/apiserver/proxy.go#L162
But this form stopped working recently, seemingly around https://github.com/GoogleCloudPlatform/kubernetes/commit/18609e17062ad4a56c3533f80014299815bfee76. The "/proxy/ns/default/..." form always returns "404: Page Not Found", similar to the problem seen in https://github.com/GoogleCloudPlatform/kubernetes/pull/4283. If you remove "/ns/default" from the URL, it works.

/cc @davidopp @nikhiljindal

I can investigate this as well.

I see the issue, sending a PR.

The proxy path needs to be built with knowledge of the apiversion of the incoming proxy request, and it needs to be updated to use the knowledge from the restmapper.  This is a little trickier than I have time for right now, but it should definitely not be hardcode appending the /ns form.
Not clear why this is not also caught by our test case.  I can try and look at this more in the AM unless someone else wants to take a look in interim.
/cc @smarterclayton

Let me steal this one from you, I think I can fix it.

Have at it.  /cc me on your PR

Sorry, I see you've already got a PR out!

No problem.
I would be happy if you finished my PR relative to the commit I started.  It will be a few days before I can go back to looking at this issue.
I think v1beta1/v1beta2 proxy urls in go-restful need to always but the namespace scope in the path as the ultimate fix.
I do want the proxy to have access to the restmapper per my PR.
----- Original Message -----
From: "Daniel Smith"<EMAIL_ADDRESS>To: "GoogleCloudPlatform/kubernetes"<EMAIL_ADDRESS>Cc: "Derek Carr"<EMAIL_ADDRESS>Sent: Friday, February 13, 2015 4:56:19 PM
Subject: Re: [kubernetes] apiserver proxy stopped accepting namespaces (#4304)
Sorry, I see you've already got a PR out!

Reply to this email directly or view it on GitHub:
https://github.com/GoogleCloudPlatform/kubernetes/issues/4304#issuecomment-74334006

Any updates @lavalamp ?

This is breaking monitoring since it requires the proxy. Bumping up the priority to P0.

Sorry for dropping this. Working on a fix.


Renames SS14 Stamina to Pain , Adds Custom Stamina and Sliding mechanic

About the PR
Screenshots

Changelog

:cl:

add: Added sliding
add: Custom stamina system
add: Replaced SS14 Stamina with pain , just a rename for now.

this is going to be extremely CBT to maintain with merge conflicts


Gas mining mission not working properly, and a lot of lag

Minecraft Version:

1.7.10
Forge Version:
Not sure (it's the latest)
LibVulpes Version:
0.2.6
is this the latest curseforge build?
Yes
Please Pastebin crash
N/A
Crash Report:
N/A
Explain issue in detail:

My gas mining rockets are set up properly, all 4 of them. I can launch them fine and i do so automatically and they return fine, but there are two big problems: Firstly when they take off, they disappear when they leave render distance so the mission doesn't actually start. The monitoring stations read "mission progress: N/A" and incorrectly shows the rockets are full of fuel. however, flying into the chunks that they disappeared in causes them to reappear mid-flight and the mission starts and continues as usual. this makes automation impossible.
Another issue is that the game turns into a slideshow whenever the rockets are formed, but docked. as soon as they take off, all lag is instantly gone as the last one leaves, also when they're disassembled. (I usually get around 60-80 fps, but this takes it down to around 10 fps)

Other mods? What is your configuration? Did you tried it also on Vanilla + AdvancedRocketry only?

Can you get a profile of the lag issue with visualvm or simiar.  It's actually rather odd because the only difference between docked and not is velocity, all the same stuff gets rendered and run.  Also I typically get around 20 to 30fps in vanilla and have not encountered this while testing.  As for the issue with it not being automatable, can you use chicken chunks or similar to check to see if the rocket is correctly registering as a chunkloader?

I'll look into that visualvm and blank world testing and get back to you, but from just running them a bit more, I think the lag mainly pops up when the rockets are docked and empty, ready to be launched, and then, mentioned above the lag is completely gone as soon as they're launched. I have them docked and full of fluid with no lag. Also I assume you mean just any chunkloader? I had to uninstall chicken chunks because those loaders were constantly causing crashes. The entire station and a large around it are all loaded with a rotarycraft chunkloader.

The whole lag issue still baffles me, I am curious to see the results of a visualvm profile.
The autonomous rockets themselves are supposed to be a chunkloader, so they can make it out far enough to begin the mission (and still return if the player happens to move around a bit).  Chicken chunks has a utility to show a map of loaded chunks.  It doesn't have to be chicken chunk, just some way of knowing if the rocket is actually loading the chunks like it should be.

Just tested, it's a mod interaction issue i think. everything works fine with just AR and chicken chunks in a blank world, and i didn't even need to try the chunk viewer thing, it just worked. so it seems i'm either gonna have to put up with it or have fun testing combinations of around 120 mods to find the problematic one...

I don't think providing a visualvm profile is going to be possible now after trying it and looking at tutorials, I can't even run it as I have no clue what I'm doing with any of these files or commands.

Just an update, the lag issue looks to be an issue with how the fluid unloader reacts with other mods. the block is only set to send a signal out of one side, but having an ender io redstone conduit, even unconnected, causes lag, so does a TE fluiduct, even without a servo for redstone control. removing all of this fixes the lag. basically it seems the unloader in at least some cases doesn't like having any redstone entities around it, connected or not, while it's sending a signal, which it was in my case, being docked docked and empty. this obviously wasn't a problem in the blank test pack.

the fact that they only need to be nearby and not actually connected is baffling to me...  As for running visualvm there shouldn't be many commands you need to run.  You should only need to double click the minecraft java instance from the main menu on the left side of the screen, then go to the sampler tab, then click CPU.  From there just focus the game window for a few seconds (it behaves a bit differently when not focused).  then in visualvm again, hit stop then snapshot.  After clicking snapshot you should see a bunch of bars in the workspace with names like thread-0 etc, at that point, just click the export to button in the window and upload the resultant file.  It should contain exactly why it's lagging and would make my life easier I hope.  In theory.
I hadn't considered the max size of the station being a problem, I did double check and verify only players are affected.  Rockets and other entities won't be.  however there is an interesting edge case.  If the rocket does go outside of station boundries before "descending to the planet" it may get confused as to the planet it's going to.  What I'd expect to happen is that it would just disappear and never come back or maybe come back empty.  but neither of those fit the issue you're experiencing and definatly wouldn't prevent the mission from starting.
With the most recent update it still sounds like it could be a chunkloading issue.  Do you ever see a line in the server logs indicating advanced rocketry tried to allocate a chunk loader and was unable to?

Just tested in the blank world with the rockets a fair distance away from the center, they worked okay, even though the ones in my main world in about the same position didn't. before this though, I was playing, had a crash (just something random about reactorcraft fusion plasma and CPW event handler), but when I came back on I had 1800ms tick lag coming from the space station. I visited to see what was going on, looked at the rocket coming back and it kept bouncing up and down in its frame, just being generally really glitchy, trying to scan/rebuild and it had no clue what it was doing.
Also my problem with visualvm was that I couldn't open it because it was trying to use something to run it and was asking for jdk 8? which i think I installed but the whole thing is confusing me and I don't want to mess anything up. I wonder if all of this could be explained by corruption of some sort, though I have no idea how it could have happened, or even if it did happen and what it could have affected. I'll just attach a log here if that's okay. Last time I tried pastebin it was far too long and wouldn't work.
Here it is:
2017-11-04-3.log.gz
sorry if I'm making this all really complicated haha, I'm just a musiciscian who doesn't know the first thing about programming so things that might seem obvious to you and others just go completely over my head

Is this still a issue? Please comment if it is and i will reopen if if you are unable? We are closing old issues to see what is still relevant and needs to be fixed.


Update README.md with Individual Membership context

Adds section on Individual Membership Directors and adds title next to their names in Members list.

Going to merge this since there has not been any -1 feedback. If you have concerns/comments, feel free to open another PR or Issue 🙏


VM stateful migration doesn't work on s390x

lxc stop v1 --stateful
Error: Migration is disabled when VirtFS export path '/var/snap/lxd/common/lxd/devices/v1/config.mount' is mounted in the guest using mount_tag 'config'
Try `lxc info --show-log v1` for more info

Hmm, so 9p doesn't work for migration on s390x but does on other architectures?

Is that a QEMU error? If so, then there's likely not much we can do about it.
migration.stateful already turns off virtiofs in favor of 9p to allow the dump to work.

Yes thats a QEMU error.

Odd that this is architecture specific though.
Maybe it's got to do with all the ccw stuff on s390x?

Yeah maybe, I thought I'd log the issue as I noticed it, in case we want to spend some time figuring out if it can be fixed.

Actually, that's normal behavior for 9p, but we work around that by not keeping things mounted.

Our current lxd-agent-setup script copies the data and then unmounts.
Were you trying with a 22.04 image which should have the current lxd-agent-loader logic?

Interesting, so it suggests the lxd-agent unmount isn't working on s390x?

@tomponline most likely you used a 20.04 image from ubuntu: which has the old lxd-agent-loader unlike our own images on images: (which lack s390x support).

I was using the ubuntu:focal image I think, as images: doesn't produce s390x images right?

root@s5lp3:~# lxc launch ubuntu-daily:22.04 v1 --vm
Creating v1
Starting v1
root@s5lp3:~# lxc snapshot v1 --stateful
Error: Stateful stop requires migration.stateful to be set to true
root@s5lp3:~# lxc stop v1
root@s5lp3:~# lxc config set v1 migration.stateful=true
root@s5lp3:~# lxc config device override v1 root size.state=2GiB
Device root overridden for v1
root@s5lp3:~# lxc start v1
root@s5lp3:~# lxc snapshot v1 --stateful
root@s5lp3:~# lxc restore v1 snap0
root@s5lp3:~#


Design the Checklist for IBM.com Web Standard website

As an IBM.com Web Standard adopter,

I need a way to view all the requirements and learn all the standards I need to meet

So that I can create an user centered experience for IBM.com visitors.

Note
Design ideation and conversation detial can be viewed via #150 on the ideation board.
https://github.com/carbon-design-system/digital-design-ideation/issues/150
Tasks

[ ] Work on the designs based on the ideation outcome
[ ] Share design with team members and get feedback
[ ] Revised design based on the feedback
[ ] Finalize the design

Issue moved to carbon-design-system/carbon-for-ibm-dotcom-website #748 via ZenHub


How to ensure directionality of drift?

Suppose we only want to detect the drift in one direction (positive or negative). Does the Evidently AI provide any such facility?
Example: If we are checking drift in RMSE, we only want to detect drift in a positive direction because RMSE is lower the better kind of metric. Similarly, for r2_score, we only want to detect drift in a negative direction as r2_score is higher the better kind of metric.
@emeli-dral Please guide me on this.

Hi @MokshaVora,
If you are referring specifically to detecting statistical distribution drift ("data drift" metric in Evidently), these tests either measure the distance between distributions or return a P-value of a statistical test. The nature of these checks is to test if distributions are different, not in which "direction" the numerical value changes. Moreover, most of our drift detection methods are normalized, so that you can assess the "size" of the drift, rather than the "direction".  You can read more about different tests here: https://www.evidentlyai.com/blog/data-drift-detection-large-datasets
If you referring to the ability to detect whether the RMSE has increased compared to some expectations, you can set a rule-based expectation on the RMSE threshold. For example:

TestValueRMSE(lte=15)  - this will alert if the RMSE is equal or < 15 (pick the threshold that works for your use case)
In this case, you pass a dataset with model predictions and actuals to the tool. So you are comparing a single RMSE value against the threshold.

What I would do, if I got you right, is to calculate the root squared error for each row of the dataset and create a column with these errors. Basically it will be just a numerical column in the dataset
Then you can pass this column as a numerical column to Evidently and run a rule-based check like:

TestColumnValueDrift
TestColumnValueMeanInSigmas (I personally believe this is the best one, and I like the visualisation. I think it is pretty helpful for the understanding of drift direction)
TestColumnValueMax(column_name='RMSE-column', lte=15) - this will alert if any of the values are above 15.

Let me know if that answers your question!