RuntimeError: CUDA error: the provided PTX was compiled with an unsupported toolchain.

Hello, I have this issue running the python main.py --text "a hamburger" --workspace trial -O command.
I have the latest CUDA drivers and Cuda 11.8.1 installed. ( WSL 2 )
GPU: 3090

@Qualzz Hi, have you tried this?

best thing is to start with same pytorch and cuda from the README

@Qualzz Hi, have you tried this?

Yes, that's how I ended with the 11.8 version.
Long story short despite having the correct pytorch/cuda combo, I had some conflict between my base environnement and the one I used for dreamfusion. It used the wrong version of cuda.
Despite several reinstallation/cleaning, uninstallation of anaconda/conda, bunch of restarts, pytorch reinstall/cuda/nvidia drivers reinstall, I wasnt able to use it.
I've spent a few hours trying to fix my installation, and out of nowhere, my last attempt of reinstalling pytorch ( with the exact same commands I used 10 times already ) now worked.
So I can now close this issue.


Repository support

I have been using this project for a long time in different projects, and I have now decided to stop using it and either search for an alternative or implement laravel / mongo integration from scratch. It really is a shame, because the community on this project is quite active. I understand the maintainers may not have any time to dedicate to an open source project, but the least they could do is accept PRs which make sense in a sensible amount of frame (or at least say why they are rejected). Some of them have been open for months now without any presence of the maintainers.
Is there a way we (the community) can help in some way, other than doing PRs? Because I really feel like this could be an awesome addition to the Laravel ecosystem, but in my opinion it's to unstable at the moment.

We use this project across a lot of our production applications. We have explored other Laravel MongoDB implementations and have found that they seem to also become a little inactive after a period of time. This project does have a great community and is generally quite active.
As @NoelDeMartin said, if there is anyway that we as part of the community can help, we'd be keen to do what we can.

Hello and sorry for late reply!
We're as community trying to help out this library on fixes and new features. Most of the issues has been closed and PRs merged as well new version released.
We kindly ask you for your help here
Thanks!


better originaldate support

coverage: 61.566% (-0.005%) from 61.571% when pulling ed9b39bde88dce442de6ee31a2bf6c41f05ffb9d on origdate into 7e40f86d41a437463faf9feab149689b733cccf2 on main.


Remove the dependence on carbon

Not every developer needs carbon. It is an overhead that could be avoided. Possibly. you could also offer a factory that returns \DateTime or \Carbon instance depending on the configuration.

We wrote this package to use in projects that all have carbon installed. For us it doesn't make sense atm to invest time in abstracting this.
Feel free to fork the package.


raw_freq score does not sum to 1

Noticed that when calculating bigram frequency using raw_freq. The result score does not sum to 1.
Checked the source code, finding that it is using the total number of words as TOTAL for the denominator instead of total number of bigrams.
Wondering if this is a bug or it has some rationale behind it?

Hi @stevenluda sorry for the delayed response. Are you talking about the collocations module?

It does not use the total numbers of words as TOTAL for the denominator, unlike what you suggest. It does in fact use the total number of bigrams.
This is the function raw_freq in question:
https://github.com/nltk/nltk/blob/6c07b5e99389b47e13c5e70fa07b37ef29ea8f73/nltk/metrics/association.py#L100-L103
where
https://github.com/nltk/nltk/blob/6c07b5e99389b47e13c5e70fa07b37ef29ea8f73/nltk/metrics/association.py#L36-L43
So, raw_freq simply divides the first parameter in your input by the last parameter. If this produces indesirable results, it's because your input values are incorrect.
You mention bigram frequency, so I'm assuming you used BigramAssocMeasures, which has the following documentation:
https://github.com/nltk/nltk/blob/6c07b5e99389b47e13c5e70fa07b37ef29ea8f73/nltk/metrics/association.py#L166-L192
So, the function should be used as bam.raw_freq(n_ii, (n_ix, n_xi), n_xx) where n_ii is the number of times the bigram that is being scored occurs, and where n_xx is the total number of bigrams. (n_ix, n_xi) can just be discarded for raw_freq.
Then, raw_freq will compute the number of times the scored bigram occurs divided by the number of bigrams, which does produce a frequency, like intended.

Tom Aarsen

I believe this has been answered. I'll close it accordingly. Feel free to reopen or create a new issue if you feel like this has not been resolved.


[Safari + Japanese IME] While InputEvent.isComposing is true, DOM value doesn't match actual input value, so assigned v-model value also becomes unexpected value.

Version
3.0.0-beta.12
Reproduction link
https://gist.github.com/hecateball/9ecaa0358626e5719f3ba2200eb901af
I'm sorry for providing only a SFC file here...
Steps to reproduce

create text input form with v-model directive (ex: <input type="text" v-model="value" />)
Input any value using Japanese IME and then compare input value and the dom value/model value

What is expected?
dom value (& assigned v-model value) should be same as input value
What is actually happening?
dom value (& assinged v-model value) will be previous dom value  +  current dom value (not sure)
For example, input １２３ results １１２１２３ (= １ + １２ + １２３ )

I confirmed following cases.
Works as expected

on macOS Chrome
use English IME

Doesn't work well

on iOS Safari, iOS Chrome

Can you provider an whole project with this?

@underfin added my git repo  to Reproduction Link. Please use this project.

Yeah. I found bug and take a pr to reslove it.


Add get_item_by_key_value as abstract function for list dict

Could anyone review this?

ping

Thanks @wkentaro I'll have a look at this when I get a chance.

@os
When do you think you find the time?


Java Heap error

Hi I am creating 100 nssm service services to run my application.
After running some time i am getting nssm stopped working.
Please help me how can i handle this.

Hello @AngariDinesh
I'm not sure to understand why do you think your bug might be related to this Chef cookbook.
It seems to be more an NSSM related bugs, don't you think?
I suggest you to have a look at the Windows event logs to understand a bit more the context of your bug, then report it to the nssm maintainer. (cf https://nssm.cc/bugs)


Problem with square in Tooltip: no colors inside the square.

I have this problem: the squares of the tooltips aren't filled with color.
I changed the multiTooltipTemplate: "<%= datasetLabel %> - <%= value %>  though  also without this parameter i can't see the colors:
Thanks for any hint.
Fulvio

I think the dataset "color" comes from the point backgrounds and not the lines or fills. Noticed them changing color when the point color changes on hover in v2.0. Sometimes they are the non-hovered color of the point, sometimes the full hovered color of the point... many times the color ends up somewhere in-between.
http://jsbin.com/hikukideha/edit?output

@asmith3079 is correct. The point fill colour becomes the colour shown in the legend

In case someone finds this for the same reason I did:
I made the dataset option 'fill': false and did't bother to set a background color. That made the box in the tooltip to show the border only (no fill). I added background to the dataset to be the same color as the border and it works.
Suggestion:
Make it work the same way as the legend.

@martin-manov thanks for the suggestion, I had the same use case and this was a great solution.
IMO the legend should have it's own separate/override-able configuration so that it can be more flexible.


typo: fix repo name 5-tof -> 5-dof

5-tof-vision-combined-robot-arm should be 5-dof-vision-combined-robot-arm in repository name.

thank you,I will fix it.


Improve Pipfile and setup.py to allow in-place editing

I've made a mistake in a previous PR as I treated this repo as a service, not a package.
This PR fixes that and allows in-place editing using pipenv.
I followed requests approach.

No problem @MakuZo
I have ti remove a few unused packages as well thanks


Tab complete without recursion

Category

[ ] fzf binary
[ ] fzf-tmux script
[ ] Key bindings
[x] Completion
[ ] Vim
[ ] Neovim
[ ] Etc.

OS

[ ] Linux
[ ] Mac OS X
[ ] Windows
[ ] Windows Subsystem for Linux
[ ] Etc.

Shell

[ ] bash
[ ] zsh
[ ] fish

It's an interesting hack to set FZF_COMPLETION_TRIGGER to an empty string and get tab completion but the problem is since FZF recurses (presumably using _fzf_compgen_path and _fzf_compgen_dir) it generates potentially a ton of results.  I'd love to have tab completion act simply on the results of the current directory, without recursion.  Is this possible?

_fzf_compgen_path() {
  ls "$1"
}

(https://github.com/junegunn/fzf#settings)


Update library

Hi! You accepted my pull request some time ago. Do you have a plan to update library? Or did you refuse this repo?

Done! Sorry for the delay.


Modal - can't close if using angular 1.4

You can't close modals with version 0.13. Angular-bootstrap 0.12 modal works well with angular 1.4.
Angular 1.3 + bootstrap 0.13 works too.

Plunker please.

There is a known issue with Angular 1.4 and the Modal/Carousel directives.  The ngAnimate module had some significant changes documented here that breaks how those directives are chaining animations.  The area that needs to be addressed in the modal is here.  As a workaround, I changed that line from:
domEl.one('$animate:close', function closeFn() {
    $rootScope.$evalAsync(afterAnimating);
}

To:
$rootScope.$evalAsync(afterAnimating);

You lose the closing animation.  @chrisirhc is aware of the problem.

@RobJacobs What you're refering to is probably #3615 ?
@alippai specifically said he 'cant close modals' which would suggest that the modal always stays open after opening once. Thats why I asked for a plunkr reproducing this problem.
Reading this again, the issue is supposedly with AngularJS 1.4, which we don't currently support since it's still in beta.
If you're using UI Bootstrap, use 0.13 with Angular 1.3 and it's all good.

Only the backdrop didn't disappear, the dialog closed successfully. I couldn't create a plunker as the official demo worked with angular 1.4.

When you create a plunkr you can choose which library versions you want to use.

I referenced the correct versions, but couldn't reproduce the wrong behaviour.

That's when an issue gets closed :wink:

@alippai is correct, the modal will close, but the backdrop element does not get removed.  Reason being the $animate api has changed on how to attach event handlers.  It needs to be:
$animate.on(element, 'event', function() {})

So the afterAnimating function never gets called which is responsible from removing the backdrop element.  Oddly enough, plunkr does not exhibit this behavior but I've been testing Angular 1.4 compatibility locally with the documentation page and that's how I noticed the problem.

Reopening. Related: #3624

with AngularJS 1.4, which we don't currently support since it's still in beta.
Please note, that your statement above is false. AngularJS 1.4 is out of beta, it's a RC now.

We love to use the fresh version of the 3rd parties, caught this bug testing the upgrade path on an experimental branch. Few weeks from now newbies will download AngularJS 1.4 with Angular Bootstrap 0.13 and it won't work, don't kill their learning process please. I can stick with the old version for months, they can't and won't do that.

@alippai You're welcome to submit PRs to help out!

This looks like a reasonable support to add, check for the presence of $animate.on and use that instead of element.on('$animate:close'….

+1

angular 1.4 here too, and this is the only critical bug that prevents me from upgrading to 0.13... It would be super cool to have this fixed soon!

Continuing this discussion in #3633 since it has a more fitting issue title and description, describing exactly what is discussed here.

+1

Just for the record, this is not just an Angular 1.4 issue. I am using Angular 1.3 and I started getting this issue when I upgraded from 0.12.1 to 0.13.0. Upgrading to the latest version of Angular 1.3 (1.3.16) did not solve my issue. However, it seems to point to the same lines of code as the Angular 1.4 issue (listening for the '$animate:close' event). That event never fires in my case. Globally turning off animation with $animate.enabled(false) makes modal dialogs start to close again.

Plunker that does not close backdrop (only if app depends on ngAnimate): http://plnkr.co/edit/lQMQm5NJuRHkTBfER7cq?p=preview

I had a problem where the modal itself would close, but the modal backdrop would remain.
Downgrading angular.js and angular-animate.js to 1.3.16 resolved this issue for me.

Modal closes but backdrop remains with ui-bootstrap 0.13 and angular 1.4. Can be worked around by setting the animation property to false when calling $modal.open()

I just go ahead and repeat myself:

Continuing this discussion in #3633 since it has a more fitting issue title and description, describing exactly what is discussed here.

I'll close the comments here and encourage everyone to continue this discussion in #3633 so we can keep everything in one place instead of having to manage duplicate issues.


Added getPipedPaths() method

As per #101 this PR adds a method for returning the paths that have been added via MiddlewarePipe::pipe()

This is not a feature we want to support.
We deliberately do not provide mechanisms to introspect the middleware pipeline; the idea is you pipe stuff in, and the process the pipeline, making introspection an edge case.
Introspection can be accomplished in userland extensions or decorators, though you'll have to either use reflection to get access to the $pipeline property, or override the pipe() method to store the information separately.
(As an example, we already have something similar in Expressive 2.0, where we expose getRoutes(), which returns the set of Route instances that were attached to the instance, which gives access to the paths, allowed HTTP methods, and attached middleware. The example is imperfect, as routed middleware is different than pipeline middleware; the point, however, is this happens in a MiddlewarePipe extension.)


.env-example is empty

.env-example is empty can you please update it with filled information

.env-example is empty can you please update it with filled information

you just need to fill api_id and api_hash


Update README.md

Updated the README.md file with Swift code as well as removing some confusing sentences related to the Sample app from before the SDK was a CocoaPod.

Nice, :+1:


Ability to explicitly set the baseURL

This issue has the same symptom as #282, but the proposed solution won't work in this case.  I have tried forgeing the headers using RequestHeader append X-Forwarded-Port "443" but this did not work, I guess the headers are added after mod_auth_openidc looks at the request.
I would like a configuration option to explicitly set the baseURL, which then overrides the value returned by oidc_get_current_url_base.
Environment

mod_auth_openidc-1.8.8-3.el7.x86_64
Apache 2.4.6
Centos 7

Expected behaviour
After logging in, the user is redirected to an URL with the port number the user was communicating with.
Actual behaviour
After logging in, the user is redirected to an URL with the port number that Apache is listening on
Minimized example
On one host, use a reverse proxy, for example sslh.
# /etc/sslh.cfg
verbose: false;
foreground: true;
inetd: false;
numeric: false;
transparent: false;
timeout: 5;
user: "sslh";
listen:
(
	{ host: "::"; port: "443"; },
	{ host: "<IP_ADDRESS>"; port: "443"; }
);
protocols:
(
	{ name: "ssl"; host: "localhost"; port: "8443"; log_level: 0; }
);

Then make Apache listen on port 8443.
<VirtualHost [::1]:8443>
	ServerName	https://example.com:443

	RequestHeader append X-Forwarded-Port "443"
	OIDCProviderMetadataURL https://example.com/.well-known/openid-configuration
	OIDCClientID 00000000-0000-0000-0000-000000000000
	OIDCClientSecret 00000000-0000-0000-0000-000000000000
	OIDCRedirectURI https://example.com/redirect_uri/
	OIDCCryptoPassphrase s3cr3t

	AuthType openid-connect
	Require valid-user
</VirtualHost>

Navigate to https://example.com and attempt a log in. After logging in, you are redirected back to https://example.com:8443, which will not work.

Actually I ran into the same "challenge" today. After turning on the highest logging level in Apache and later Googleing for more information I found out that Authentication comes second (just after the core features of apache). This means that the header info is not set in time (like you already found out yourself). To solve this issue you will need to make sure that the port is set directly after the core commands of apache are run. The answer to your problem is actually very simple if you know all this.
Change "RequestHeader append X-Forwarded-Port 443" to RequestHeader append X-Forwarded-Port 443 early" or "RequestHeader set X-Forwarded-Port 443". That will solve your problem!

Thanks for the (pretty obvious, afterwards) solution to this problem :-)
I'll leave the ticket open to think about whether it makes sense to include something in mod_auth_openidc rather than relying on a workaround through an external module.

I actually think this edge case case makes the workaround appropriate enough.


Search editor: empty editor starts with line 2?

Refs: #89396
Is that intentional?

Fixed in 708877d8257a27107b841b5411a7add663ddc65c


[Idea] make it possible to use different contexts/namespaces in multiple shells

What do people following kubectx think of this idea:
We can detect if kubectx command is executed in interactive mode OR eval'ed in a shell (like eval $(kubectx ...), piped elsewhere or redirected to a file, by checking if /dev/stdout is a TTY or not.
If kubectx is evaluated in a shell, we can print an alias that aliases kubectl to kubectl --context=NAME. So when that shell is exited, the default context would go back to what's set before. This would let users work on multiple clusters simultaneously in different terminal tabs. It would look like this:
eval $(kubectx NAME)

and it would print something like alias kubectl=kubectl --context=NAME which then is evaluated in the current shell, therefore creating an alias. Similarly, eval $(kubens ...) would also evaluate an alias kubectl=kubectl --namespace=NAME (these two wouldn't work together, but I might have a solution for that too, by writing a basic bash function that picks up these names from env.
Just an idea. The good old way of using kubectx/kubens would still be around and would continue to work the same way.

Couple of notes, because I like this idea, and I'd really prefer a kubectx that I can use from multiple shells at the same time (and I'm using my own version that does something like that):

The problem with just aliasing the kubectl command is that any non-interactive scripts that call out to kubectl don't follow the context switch.

This varies from annoying (e.g. kube-ps1 displays the wrong context), to dangerous (you verify some state interactively with kubectl describe blah, but then you run some helper script where someone on your team forgot to shopt -s expand_aliases and it runs on the wrong cluster)

But there's a better variant of this idea I think: use the existing $KUBECONFIG env var that is supported, in combination with the "produce a single context config" trick (kubectl config view --minify --flatten --context=$KUBE_CONTEXT > $KUBE_TMP_CONFIG_FILE) to generate configs on the fly

Then you just export KUBECONFIG=$KUBE_TMP_CONFIG_FILE from your shell function
That way, anything that supports KUBECONFIG (basically everything, including helm etc.) follows the context switch, even non-interactively.
You can generate the temporary config files in some mktemp -d dir, and basically cache them there against the context/namespace name

You can detect whether the script is being sourced pretty reliably with things like (bash) [[ "${BASH_SOURCE[0]}" == "${0}" ]] or (zsh) [[ "$ZSH_EVAL_CONTEXT" == 'toplevel' ]] and print instructions for sourcing the script correctly - so even a bad install doesn't result in a terrible user experience.

Thanks it took me a while to unpack your idea @dominics. Thanks a lot, I mostly agree with the KUBECONFIG route.

use the existing $KUBECONFIG env var

I agree that we can use $KUBECONFIG for per-shell settings. ✅

You can generate the temporary config files in some mktemp -d dir

If we can, it would be great to avoid creating a new file. Something like:
foo="$(kubectl config --minify [...])
KUBECONFIG=<(echo "$foo")

This doesn't work because fd is readable only once. But I bet we can find a trick without writing to fs.

You can detect whether the script is being sourced pretty reliably with things like (bash) [[ "${BASH_SOURCE[0]}" == "${0}" ]] or (zsh) [[ "$ZSH_EVAL_CONTEXT" == 'toplevel' ]]

I don't think we should complicate it like that.

That said, I'm actually more interested in the user experience about how env var gets exported.

I think user should NOT source a script and we should NOT change installation instructions for this. So I'm -1 for the following:

source /path/to/kubectx-helper.sh
source <(kubectx print-shell-func)

I think we should start a new shell for each kubectx/kubens command.

It's a pain to exit each nested shell though after running the cmd a few times ❌
We can easily start the shell like env KUBECONFIG=... bash

What do you think?

In my opinion starting a new shell is very hacky, as I user I wouldn't expect a command to start a new shell, so I would be very surprised to discover this behavior.
There's nothing wrong with using source command, what's your concern about it? If you are thinking that it's a long command to type, it is always possible to wrap it in some aliases 😉
I'd avoid using <() because it won't allow fuzzy filter to work, but mktemp sounds like a perfect approach, it exists for a good reason, no need to be afraid of writing tiny scripts to disk 🙂
In other words, this doesn't look too bad to me:
$ kubectx ctx1                            # set context globally
$ . $(kubectx --local ctx2)               # set context in this terminal
$ . $(kubectx --local $(kubectx | fzy))   # choose context with fuzzy filter and set it in this terminal

Where kubectx --local is implemented like this:
context="$1"
file="$(mktemp -t "kubectx.XXXXXX")"
echo 'export KUBECONFIG=...' >$file
echo $file

If I could have kubectx be limited to the current shell/session that would solve much of mine. I daily administer multiple clusters and not being able to have different shells/sessions configured for different clusters causes lots of switching for me.

Really looking forward to this feature too!

Just a word of warning regarding this feature, I have written a custom script which uses the $KUBECONFIG environment variable by first writing whatever context you want as current-context to a file /tmp/kubecontext/${context}.yaml. Example, /tmp/kubecontext/prod.yaml might contain "current-context: prod" (and that line only).
Then just export KUBEXONFIG=/tmp/kubecontext/prod.yaml:$HOME/.kube/config, as per the docs, the first defined config value wins, so whatever context was set in /tmp/kubecontext/prod.yaml should be used
This works flawlessly most of the time, but sometimes after running some kubectl commands, the current-context in $HOME/.kube/config gets overwritten by what was set in /tmp/kubecontext/${context}.yaml.
This is happening on kubectl 1.16.1 (client version). I've yet to find the cause for this bug though, it might also perhaps be a bug in how my shell renders PS1. Found this project while searching for solutions. :)

@Eeemil Are you trying to use Kubernetes without your custom script in some cases? If not, why does it matter that the current-context in the main .kube/config file gets modified? It should always be overridden by $KUBECONFIG, right?

Also, would you mind sharing your script? It sounds pretty simple, but it would be nice not to have to write it myself.

Yes, I'm trying to use Kubernetes without my custom script in some cases. The problem is that when I run my script, set-cluster -l prod, I expect to only be logged in to prod in that specific terminal. Still, after running a few kubectl commands, I may sometimes be logged in to prod in all my terminals. (Which is a pretty scary surprise)
Here is my script, with some names redacted
#!/usr/bin/env bash

# Set gcloud/kubernetes cluster
# Usage:
# Either:
# eval $(./tools/set-cluster.sh [-l|-g local or global] prod|stage)
# (eval needed to export environment variables)
# or
# Just steal the functions to your rc-file. Fish is incompatible with almost
# everything though ¯\_(ツ)_/¯
# or
# Add the following FISH COMPATIBLE function to your rc
# function set-cluster
#     eval (PATH-TO-THIS-SCRIPT.sh -FISH $argv)
# end

# For zsh auto completion
_set-cluster() {
    #compdef set-cluster
    _arguments "1: :(-l -g stage prod)"
    _arguments "2: :(stage prod)"
}

# Switch between k8s&gcloud clusters
# Usage: set-cluster [-POSIX (default)|-FISH] [-l|g local/global] prod|stage
set-cluster () {
    local SYNTAX="POSIX"
    if [ "$1" = "-POSIX" ]; then
        SYNTAX="POSIX";
        shift
    elif [ "$1" = "-FISH" ]; then
        SYNTAX="FISH";
        shift
    fi
    if [ "$1" = "-l" ]; then
        local SET_GLOBAL="false"
        shift
    elif [ "$1" = "-g" ]; then
        local SET_GLOBAL="true"
        shift
    else
        local SET_GLOBAL="true"
    fi
    local G_CLUSTER=$1
    local PROD_CLUSTER="prod-cluster-name-in-kubeconfig"
    local STAGE_CLUSTER="stage-cluster-name-in-kubeconfig"
    _apply-cluster () {
        # $1: google project
        # $2: GKE cluster
        # $3: Kubecontext name
        # $4: Should set global? (true|false)
        # Unset environment variables. If they are not unset, running `set
        # cluster stage` after `set cluster -l prod` will keep you logged in to
        # prod due to environment variables overriding global settings)
        if [ "$SYNTAX" = "POSIX" ]; then
            echo "unset CLOUDSDK_CORE_PROJECT;"
            echo "unset CLOUDSDK_CONTAINER_CLUSTER;"
            echo "unset KUBECONFIG;"
        elif [ "$SYNTAX" = "FISH" ]; then
            echo "set -e CLOUDSDK_CORE_PROJECT;"
            echo "set -e CLOUDSDK_CONTAINER_CLUSTER;"
            echo "set -e KUBECONFIG;"
        fi
        unset CLOUDSDK_CORE_PROJECT
        unset CLOUDSDK_CONTAINER_CLUSTER
        unset KUBECONFIG
        local G_PROJECT=$1
        local G_CLUSTER=$2
        local K_CONTEXT=$3
        local SET_GLOBAL=$4
        if [ "$SET_GLOBAL" = true ]; then
            gcloud config set project "$G_PROJECT"
            gcloud config set container/cluster "$G_CLUSTER"
            >&2 kubectl config use-context "$K_CONTEXT"
            >&2 echo "Globally switched to cluster ${G_CLUSTER}/${K_CONTEXT}"
        else
            # https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/
            export CLOUDSDK_CORE_PROJECT=$G_PROJECT
            export CLOUDSDK_CONTAINER_CLUSTER=$G_CLUSTER
            mkdir -p "/tmp/kubecontext"
            local currentcontext="/tmp/kubecontext/${K_CONTEXT}.yaml"
            echo "current-context: $K_CONTEXT" > "${currentcontext}"
            export KUBECONFIG="$currentcontext:$HOME/.kube/config"
            if [ "$SYNTAX" = "POSIX" ]; then
                echo "export KUBECONFIG=$currentcontext:$HOME/.kube/config;"
                echo "export CLOUDSDK_CORE_PROJECT=$G_PROJECT;"
                echo "export CLOUDSDK_CONTAINER_CLUSTER=$G_CLUSTER;"
            elif [ "$SYNTAX" = "FISH" ]; then
                echo "set -gx KUBECONFIG $currentcontext:$HOME/.kube/config;"
                echo "set -gx CLOUDSDK_CORE_PROJECT $G_PROJECT;"
                echo "set -gx CLOUDSDK_CONTAINER_CLUSTER $G_CLUSTER;"
            fi
            >&2 echo "Locally switched to cluster ${G_CLUSTER}/${K_CONTEXT}" 2>&1
        fi
    }

    case "${G_CLUSTER}" in
        # Prod aliases
        "prod" | "production" | "other" | "names" | "$PROD_CLUSTER" )
            local K_CONTEXT=$(kubectl config view -o jsonpath="{.contexts[?($.context.cluster=='$PROD_CLUSTER')].name}")
            _apply-cluster "google-project-name" "google-cluster-name" "${K_CONTEXT}" "$SET_GLOBAL"
            ;;
        # Stage aliases
        "stage" | "staging" | "other" | "aliases" | "$STAGE_CLUSTER" )
            local K_CONTEXT=$(kubectl config view -o jsonpath="{.contexts[?($.context.cluster=='$STAGE_CLUSTER')].name}")
            _apply-cluster "google-stage-project-name" "google-stage-cluster-name" "${K_CONTEXT}" "$SET_GLOBAL"
            ;;
        *)
            echo "Unknown cluster ${G_CLUSTER}"
            ;;
    esac
}

shell="$(ps -p $$ | awk '$1 != "PID" {print $(NF)}')"
# Auto completion (zsh only)
[ "$shell" = "zsh" ] && compdef _set-cluster set-cluster

if [ $# -gt 0 ]; then
    # If sourced without arguments, just load the functions
    set-cluster $@
fi

@Eeemil Thank you very much!

My version is at https://github.com/vital-software/kc if anyone wants to take a look. Not sure about fish compatibility, but it works with bash/zsh including completion. It has some iterm2, kube-ps1, and aws-vault integration, but those are optional.

using zsh/oh-my-zsh I have a file at $ZSH_CUSTOM/kubectx.zsh (auto sourced as part of oh-my-zsh I think) with:
export KUBECTXTTYCONFIG="${HOME}/.kube/tty/$(basename $(tty))"
mkdir -p "$(dirname $KUBECTXTTYCONFIG)"
export KUBECONFIG="${KUBECTXTTYCONFIG}:${KUBECONFIG}"
cat <<EOF >${KUBECTXTTYCONFIG}
apiVersion: v1
kind: Config
current-context: ""
EOF

ct() {
	kubectx $*
	kubectl --context="$(kubectl --kubeconfig $KUBECTXTTYCONFIG config current-context)" config view --raw --minify -o json | jq 'del(.users,.clusters)' >$KUBECTXTTYCONFIG
}

alias ns="kubens"

which allows me to use different contexts/namespaces in different tmux splits

@stuart-warren Tried your script. Got an error for the part kubectl --kubeconfig $KUBECTXTTYCONFIG config current-context. It says: error: current-context is not set

@stuart-warren Oh I just realized that even without running the ct function, just the regular kubectx command would just work. This is so awesome. thanks! The snippet I put in my .zshrc:
# kubeconfig per session
file="$(mktemp -t "kubectx.XXXXXX")"
export KUBECONFIG="${file}:${KUBECONFIG}"
cat <<EOF >"${file}"
apiVersion: v1
kind: Config
current-context: ""
EOF

I wrote a tool, which plays well with kubectx, to accomplish the suggested functionality. It is doing something similar to the scripts previously suggested here, but my tool is written in go.
Maybe some of you find it useful: https://github.com/jlesquembre/kubeprompt

I also came here to request for a similar feature. I've kinda gotten used to how aws-vault does it. For example, to (temporarily) use an AWS profile for a command, you would go aws-vault exec $PROFILE -- followed by whatever command.
So, FWIW I'm throwing my hat in for a suggestion of the form:
kubectx exec $CONTEXT -- helm ls

I had the same issue with managing multiple clusters and solved it with direnv.
There are two directories named A and B - one for each cluster. In each directory I created .envrc file that sets KUBECONFIG variable. Cluster configurations are in ~/.kube/config-A and ~/.kube/config-B files.
When I cd A my kubectl commands are targeted to cluster A. When I leave that directory Kubernetes context unsets and I am not worried to damage some random cluster.
Third-party tools like k9s also work fine.
Hope this solution helps even if doesn't include kubectx :)

Eventually, I created kubech which set the context/namespace per shell/terminal.
The nice thing about kubech is that it requires zero extra config, it simply works with any cluster in ~/.kube/config with no change in kube config file, and most important thing is that it still can be used along with kubectx/kubens :-)

Has this been added into kubectx? Is there any plan on adding/releasing it? I think #219 addressed this, but I'm not sure if I've understood that PR correctly.

Another tool in this vein is jx shell: docs; key bit of sources

https://github.com/sbstp/kubie

Drafted a quick tool in the subshell style (save as kubectl-shell in $PATH):
#!/bin/bash
if [[ $# = 0 ]]
then
    kubectl config get-contexts
    exit
elif [[ $# != 1 ]]
then
    echo 'Usage: kubectl shell [<context-name>]'
    exit 1
fi
ctx=$1
kc=/tmp/kubeconfig-$RANDOM.json
rc=/tmp/bashrc-$RANDOM.sh
cat >$rc <<EOF
[ -f /etc/bash.bashrc ] && . /etc/bash.bashrc
[ -f ~/.bashrc ] && . ~/.bashrc
export KUBECONFIG=$kc
export PS1='$ctx\$ '
EOF
kubectl config view --flatten --merge --output json | jq --arg ctx $ctx '(.contexts[] | select(.name == $ctx)) as $c | {apiVersion, kind, preferences, "current-context": $ctx, contexts: [$c], clusters: [.clusters[] | select(.name == $c.context.cluster)], users: [.users[] | select(.name == $c.context.user)]}' > $kc
trap "rm -f $kc $rc" EXIT
chmod go-rwx $kc
bash --rcfile $rc

Combining a few of the suggestions above to make a solution that works with a folder of kubeconfig files and adds different context per shell. Just add your kubeconfigs in CUSTOM_KUBE_CONTEXTS.
# Set the default kube context if present
DEFAULT_KUBE_CONTEXTS="$HOME/.kube/config"
if test -f "${DEFAULT_KUBE_CONTEXTS}"
then
  export KUBECONFIG="$DEFAULT_KUBE_CONTEXTS"
fi

# Additional contexts to be added in a folder
CUSTOM_KUBE_CONTEXTS="/path/to/kubeconfigs"
mkdir -p "${CUSTOM_KUBE_CONTEXTS}"

OIFS="$IFS"
IFS=$'\n'
for contextFile in `find "${CUSTOM_KUBE_CONTEXTS}" -type f -name "*.yaml"`
do
  chmod 600 $contextFile
  export KUBECONFIG="$contextFile:$KUBECONFIG"
done
IFS="$OIFS"

# Needed in order for kubectx to work independently in each terminal session
export KUBECTXTTYCONFIG="${HOME}/.kube/tty/$(basename $(tty) 2>/dev/null || echo 'notty')"
mkdir -p "$(dirname $KUBECTXTTYCONFIG)"
export KUBECONFIG="${KUBECTXTTYCONFIG}:${KUBECONFIG}"
cat <<EOF >${KUBECTXTTYCONFIG}
apiVersion: v1
kind: Config
current-context: ""
EOF

# Required to speed up namespace setup. Lookups are not required
kns() {
  if [ -z "$1" ]; then
    kubens
    echo
  else
    kubectl config set-context --current --namespace $1
  fi
}

It's not just a convenience thing, it's a safety thing.
If I have one tab open with my ctx set to my development cluster, then when I open a bright red tab for production to check something out real quick, I'm gonna set my context to prod obviously. When I'm done, I close the prod tab and 10 minutes later need to delete some pods in my development context, whoops. My shell session in the first tab was changed to the production ctx. I've just bangarang'd prod.
Then I dust off my resume, because 💩

@joelmellon you should take a look at https://github.com/vmware-archive/ktx
it is discontinued, but i use it every day. it helps a lot when using more than one shell.

I use a relatively straightforward shell alias to achieve this. I published it as a gist here: https://gist.github.com/bitti/183771a7308b030d933dbe4ea9c5cc9f. It currently doesn't support switching namespaces because I don't need that but this could be easily added.
While researching this I also found https://github.com/aabouzaid/kubech which is pretty similar. And then there is https://github.com/sbstp/kubie which does this and much more. It seems to be a 'kitchen sink' though, so maybe overkill for some for just this usecase. It also works a little different since it spawns a new shell with the new environment instead of changing the environment of the current shell.

@bitti The reason for that is you can't really change env vars of the current shell from a program executed from that shell. You have to spawn a new shell as a subprocess to do that (or run source <(program) on your shell, which I assume is a lot less desirable). Correct me if I'm wrong.

Yes you can either source a script (which is not that bad with an alias, see my gist) or use a shell function. I don't like the subshell solution because initializing a new shell implies reading ~/.bashrc etc. and therefore changes the state of the current session. kubie is pursing this solution though. Just after I posted my comment above I also found https://github.com/danielfoehrKn/kubeswitch though which is pursing the bash function approach and seems to be the most mature of all.
Sadly what both kubie and kubeswitch get wrong is that they miss to set the modified config for the current session to readonly, which means tools which are modifying the config will silently update the local config instead of the global one. My gist takes care to set this to readonly, so at least such attempts will fail and remind me that I need to switch back to global context first. I also don't like the complexity of merging configs when kubectl already supports merging multiple configs via : in KUBECONFIG. So I think I keep using my gist till I find a need for the advanced features kubeswitch provides.

I find sub-shell solutions awkward too. It's not obvious when you're in a sub-shell, and you have to mentally keep track of where you are in shell stack. Also, the behaviour of exit will differ depending on whether you are at the top of the shell stack or in a child shell.

It's not obvious when you're in a sub-shell

That is why you should override PS1, as in #12 (comment) and many other tools.

I don't see where this indicates that you're in a subshell? Most of us have an indicator of the current context in the prompt already I suppose. Personally, since I use session specific contexts, I find the prompt indicator insufficient though, therefore I also added this to my ~/.bashrc:
set_badge() {
    local status=$?
    printf "\e]1337;SetBadgeFormat=%s\a" $(IFS=:; sed -n '/current-context: \(.*\)/{s//\1/p; q; }' ${KUBECONFIG:-$HOME/.kube/config} | tr -d '\n' | base64)
    return $status
}

[[ $LC_TERMINAL = iTerm2 ]] && PROMPT_COMMAND="set_badge; ${PROMPT_COMMAND}"

As you may have guessed this only works with iTerm2 (but other terminals may have similar features). The reason I don't use printf "\e]1337;SetBadgeFormat=%s\a" $(kubectl-latest config view -o jsonpath='{.current-context}' | base64) here is that for my prompt I care about every ms.
But adding an indicator to show if you're the global or in a session context might be a good idea. That can be done in any solution though and doesn't make the subshell solution really better.


Test breadcrumb fix

This is flagging 2000+ broken link issues in the Broken link dashboard.

@JohanFreelancer9

@traya1 Can you review this change? Thanks

@beccarobins - Merging the PR now. Let me know if that resolves the broken link issues. More than happy to review/merge PRs to help resolve that issue.


Support constructor

Constructor should get executed when application is called without any parameters

Change of plan. Constructor parameters are used as application level options


chore: release main

:robot: I have created a release beep boop
compose-template: 2.3.1
2.3.1 (2024-11-17)
Bug Fixes

🐛 test template changes changes (#251) (8ac20d9)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

compose-template-v2.3.1
:sunflower:


Conditional enablement of service

Hi phlipper!
My Chef recipes disable the postgresql service (for valid reason), but the upstream chef-postgresql::service recipe enables the postgresql service unconditionally. The end result is the postgresql service flip-flops to enabled and then disabled again on each convergence run, manifesting into a kind of false-positive.
If possible, I'd like to be able to suppress the action [:enable] behavior via configuration on my side; a default of the current behavior is completely fine. If it helps, whether the postgresql daemon (service) is started or not is an unrelated matter. In short, my concern focuses on the :enable in action [:enable, :start].
Thank you

@vivid-inc I have a similar requirement in one of my infrastructures. In my case, I want to enable the service, but I don't want to start it until some additional recipes have been executed. You should be able to use something like the following to achieve what you are looking for:
include_recipe "postgresql::server"

# don't enable the database server - override the action to just `start`
resources("service[postgresql]").action(:start)

I would also be willing to accept a PR which would make this configurable. Good luck!


Enforce that objects have a typeof objects

Fixes a mismatch before where object() assumed anything was an object. Now it defines an object to be a not-null type where typeof foo === 'object'

@connor4312, thanks for your PR! By analyzing the blame information on this pull request, we identified @SimonSchick to be a potential reviewer

lgtm :)

looks ok.

lgtm


Stringify header keys for request

Mixlib::Config reads in our config file with entirely Symbol keys, causing problems when you wish to override headers given to you by Typhoeus with String keys. This change converts the Symbol header keys into String keys.
/cc @joewilliams @keithduncan @github/pages

I looked into it further and it's how I am parsing the JSON, I think we should omit this instead:
https://github.com/joewilliams/nugget/blob/master/lib/nugget/service.rb#L24

@joewilliams Oh, sweet! Does that mean anytime we use options[:url], we'll have to change it to options["url"], though? Seems like that'd force a large change in the codebase.

@parkr yeah, I suppose you're right, that would cause anything using symbol keys in the codebase to have issues. That change probably isn't worth the trouble, we'd even need to change the underlying http testing library. Lets move forward with this PR as is and if things look good I'll merge it in mainline as well.


Issue/5047 contradicting log msg compiler service iso5 (#5147)

Pull request opened by the merge tool on behalf of #5147

Merged into branches iso4 in 2ee3a58fe3de36754b959e79f35b34c9a9a22eef


[🐞] nonce is missing on scripts

Which component is affected?
Qwik City (routing)
Describe the bug
I'm not sure what exactly this code is. It looks like something in qwik city.
These two tags are rendered in preview without a nonce.
    <script>
    (function() {
        const l = location
        , c = l.pathname + l.search
        , t = "_qCityPopstateFallback"
        , o = "_qCityHistory";
        window[t] || (window[t] = ()=>{
            window[o] || c === (l.pathname + l.search) || l.reload()
        }
        ,
        setTimeout(()=>{
            addEventListener("popstate", window[t])
        }
        , 0))
    }
    )();
</script>
<!--/qv-->
<!--/qv-->
<script q:key="1Z_0">
    ((s,a,i,r)=>{
        i = (e,t)=>{
            t = document.querySelector("[q\\:base]"),
            t && a.active && a.active.postMessage({
                type: "qprefetch",
                base: t.getAttribute("q:base"),
                ...e
            })
        }
        ,
        document.addEventListener("qprefetch", e=>{
            const t = e.detail;
            a ? i(t) : t.bundles && s.push(...t.bundles)
        }
        ),
        navigator.serviceWorker.register("/service-worker.js").then(e=>{
            r = ()=>{
                a = e,
                i({
                    bundles: s
                })
            }
            ,
            e.installing ? e.installing.addEventListener("statechange", t=>{
                t.target.state == "activated" && r()
            }
            ) : e.active && r()
        }
        ).catch(e=>console.error(e))
    }
    )([])
</script>

Reproduction
Stackblitz dead
Steps to reproduce
Stackblitz is dead right now:

Run a qwik app with a plugin middleware:
<EMAIL_ADDRESS>import type { RequestHandler } from<EMAIL_ADDRESS>
export const onRequest: RequestHandler = (ev) => {
  const nonce = Date.now().toString(55);
  ev.sharedMap.set('@nonce', nonce);

  const csp = [
    `default-src 'self' 'unsafe-inline'`,
    `font-src 'self' `,
    `img-src 'self' `,
    `script-src 'strict-dynamic' 'unsafe-inline' 'nonce-${nonce}' `,
    `style-src 'self' 'unsafe-inline'`,
    `frame-src 'self' 'nonce-${nonce}'`,
    `object-src 'none'`,
    `base-uri 'self'`,
    `require-trusted-types-for 'script'`
  ];

  ev.headers.set(
    'Content-Security-Policy',
    csp.join('; ')
  );
};

System Info
Binaries:
    Node: 16.17.0 - /usr/local/bin/node
    Yarn: 1.22.19 - ~/.yarn/bin/yarn
    npm: 8.15.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 113.0.5672.126
    Edge: 113.0.1774.57
    Firefox: 108.0.2
    Safari: 16.4
  npmPackages:
    @builder.io/qwik: ^1.1.4 => 1.1.4
    @builder.io/qwik-city: ^1.1.4 => 1.1.4
    undici: 5.22.0 => 5.22.0
    vite: 4.3.3 => 4.3.3

Additional Information
No response

mind creating a new PR?! would be very happy to merge it!

@manucorporat I still have no idea what the flow of qwik-city is.
I looked up the code and the first script implements clientNavigate, but no clue where it is embedded.
The second one might be sw-prefetch.ts
But somehow, this looks correctly implemented:
export const ServiceWorkerRegister = (props: { nonce?: string }) =>
  jsx('script', { dangerouslySetInnerHTML: swRegister, nonce: props.nonce });

@tzdesign can you share a link to a repository or stackblitz to reproduce the issue and i will try and help

@DustinJSilk Stackblitz fails somehow. These guys seem to be having trouble.
See https://github.com/the-zimmermann/csp-nonce-issue
I just added the plugin the scripts are reported and one odd thing a temporary script or smt?

I see you havent passed the nonce to the ServiceWorkerRegister. Try updating your root.tsx file to include this:
  const nonce = useServerData<string | undefined>('nonce')

  return <QwikCityProvider>
      <head>
        <meta charSet="utf-8" />
        <link rel="manifest" href="/manifest.json" />
        <RouterHead />
      </head>
      <body lang="en">
        <RouterOutlet />
        <ServiceWorkerRegister nonce={nonce} />
      </body>
    </QwikCityProvider>

@DustinJSilk if you do this in my repository do you still see the issue pointing to a missing script (closing )

Feel free to submit a PR with documentation.
We manually pass the none to the service worker since it is a lite component (not created with component$) and was not easy to pass the value to the component automatically.
I don't use require-trusted-types-for in my CSP policy. Removing that solves the TrustedScriptURL issue.

@DustinJSilk I've removed require-trusted-types-for and you're right about that, but would you please check again?
There are still bugs like when there are some temporary scripts, if you follow the link in dev-tools, you end up at the end of a style tag and there are no script tags anymore.
@jordanw66 thanks for clarifying

@DustinJSilk I'm pretty busy too, but I checked it out. v1.0.0 works fine, not a single report in the console.
I added a page to the docs in this pr #4440.
I will check another version after lunch and let you know what I find.

@DustinJSilk looks like version 1.1 is already having this issue.
I think it's the new RouterOutlet by @manucorporat with a plain script.
https://github.com/BuilderIO/qwik/blob/6dd1b47923b62f9673c93040cdd19778f3a4ce92/packages/qwik-city/runtime/src/router-outlet-component.tsx#L33
Would it be save to add useServerData here?

/**
 * @public
 */
export const RouterOutlet = component$(() => {
  _jsxBranch();

  const nonce = useServerData<string | undefined>('nonce');

  const { value } = useContext(ContentInternalContext);
  if (value && value.length > 0) {
    const contentsLen = value.length;
    let cmp: JSXNode | null = null;
    for (let i = contentsLen - 1; i >= 0; i--) {
      cmp = jsx(value[i].default, {
        children: cmp,
      });
    }
    return (
      <>
        {cmp}
        <script dangerouslySetInnerHTML={popStateScript} nonce={nonce}></script>
      </>
    );
  }
  return SkipRender;
});

If yes let me know, I can create another PR

Yes that looks like it would work. Have you managed to test if it solves the problem in your repo?

@DustinJSilk In my pr I changed the router-outlet, but there is a discussion if it should be changed to a prop instead of useServerData. Let's see what Manu thinks as he has rewritten this file.

@tzdesign is there a PR open for this change yet? I havent seen one.
(A prop would make sense as it keeps it inline with how the nonce is passed to the service worker)


Migrate Build container to Nix

### Tasks

Waiting for https://github.com/NixOS/nixpkgs/pull/260064

CL is created and waits for review

Turns out its not as easy as I thought. When building the monorepo in the nix-container on jenkins-internal gives me the following error:
GoCompilePkg cloud/bmaas/bmdb/model/model.a failed: Mount target '/run' does not exist. Bazel only supports bind mounting on top of existing files/directories. Please create an empty file or directory at the mount target path according to the type of mount source.

Fixed by adding /run to build container


What is this.

I dont understand the concept. All it says is lists

Its about 😎 Awesome lists about all kinds of interesting topics, in my opinion, it is so clear. If you read the README.md file, you should not be confused.

What do you mean by lists. What is in the lists. The read me is just ads and links to lists

https://github.com/sindresorhus/awesome/blob/main/awesome.md

https://github.com/sindresorhus/awesome/blob/main/awesome.md

ok so its links to lists that have links to websites/programs/etc

Ooops, I hope I didn't screw something up, Hey guys I do apologize if I did!
Hi💁♀ I'm brand new & learning pretty much what I read as I go. It doesn't help that I'm way old👵🤫😁.
I've had some real issues with my computer & tech in at my place. I'm also not able to work at it every day. But let me tell ya, super excited to have my emails & things finally going.😁😁😁 I think I maybe have opened up something a moment ago that was wrong 🤪😬. Please if at all you can tell me which way to go, I will kindly exit. I'm really just learning & I don't want to be in the way if I'm to slow.
I guess what I'm looking for is A Place for Mom 👵👩🦳

I'm pretty sure I thought I was opening something that would be useful outside of here😬 kinda like a coupon 😂


How to view AI rations and tax levels

I finally found out how to view the AI tax and ration levels. By accident, as I had saved and reloaded an AI after the visual glitch happened.
Simply save then reload an AI only game, and you can view these AI statistics, but it only works really once the AI castle is completed, if you do it too soon into a game the AI won't build their castle.

And how do you view it?! How does it look? Can you upload a screenshot?

Need screenshot ...

And how do you view it?! How does it look? Can you upload a screenshot?

Mine Wolf AIV is mad, no doubt. lol :rofl:

0_0 immpresive!

@Lolasik. Nah I playtested vs all other AI lords 1vs1 on all gold settings possible. He owns them.

@Rakso69 I still think he will lose. Because I have not seen more than one battle, except for your screenshots. Because I have not seen  battle, except for your screenshots. And he can only play on your map. Plus it is clearly being built for a long time.

@Lolasik011 We can say that he's on really early beta version. For now I'll wait for futher patch upgrades to work over him futher.
I agree with everything You said. I didn't made him compactible with more maps than this one, it's likely beacuse he has only one AIV file, no more.
Tbh he doesn't even enclose himself on maps where he's put in the middle, beacuse He doesn't have any wall on the side of the grass as you see, but that helps him when he's at the corners, cuz the game rotates him in such a way as presented above in order to "close his keep".
Right, surely I'd make his defense better if the AIV had more options & less limits. For now I can't think of anything beside that.
Would be difficult to burn him without break his walls, but that's a stage when everyone is capable of that, so it has no point. He has wall "blankets" in the everywhere instead of normal walls, so they're bigger and less likely is possible to shoot through these. Also the mills themselfs serve as a little cover for the buildings inside, beacuse they're so tall, that might block a balista's belt.
As far as I'm aware there are no more efficent strategies to fight against fire except for:
a) Build a small eco in overall, and tons of water pots.
b) surround the economy with the tallest watchtowers(expensive tho).
c) delete the buildings as fire asap they catch it, so they fire does not spread futher

this one could be possible to do by AI, as it has superhuman multitask, but I'd say it's too much broken to implement on the patch imo, cuz any building whoom would catch fire would be immediatly deleted and build anew in a few seconds. :D
I agree that the economy also must be flexible, but AI doesn't put it into consideration, it just choses the most fitting castle instead of the most efficent economically one, as would be a castle with an economy capable of survival on an empty map without iron, stone, grass or anything for example.
Thanks for opinion. Cheers.

as would be a castle with an economy capable of survival on an empty map without iron, stone, grass or anything for example.

Abbot could probably survive on a map with no resources with his vanilla castle (although maybe not with the lower gold starts though).

@Rakso69 Do not worry, everything is ahead. You can make the perfect AI castle. I will wait for the castle to come out. Of course, if you share it :)

@Lolasik011 Oh. I recall why I didn't gave him the watch towers walls against fire balistas actually.
That's right! AI doesn't repair towers. That's also the reason for what I've surrounded the Large Towers with high wall blankets. Cuz he can repair these, so the towers could keep on hold longer against catapults barrage.

Yes, loading a save might do that. I will probably add it as a feature too in the next version.

By the way, sorry for being late to the party but this is "old news" so to say... one could just save a regular game, rename the "someName.sav" save file to "someName.map", place it in the maps folder and load it up in the editor.
Then, in the editor one can inspect rations, taxes, etc. for all players on that savegame.


Priority -4 for some threads of Microsoft Edge (Chrome based)

Viewing the threads of msedge.exe shows some threads have priority of -4:

What is this?
Windows 8.1 x64, Edge stable 87.0.664.47

These are nonstandard priorities with no name.

ok, first time I saw this


Plugin for angular or rxjs or both

The angular is using rxjs and thus the context propagation is not kept between user_interaction and for example XMLHttpRequest when using rxjs observable. To achieve that I believe it would be a rxjs which needs to be patched. It might be not all but I think Observable could be a start and then to see if context (zone) is being propagated correctly

FWY, I made an angular library https://www.npmjs.com/package/@jufab/opentelemetry-angular-interceptor

@jufab awesome! Maybe you should list it on the registry so people can find it?

@dyladan PR sent for the registry ;)


Two-part Hover info using MarkupContent

Question
I'm aiming for a typical hover UI with colorized code element signature/type information and plain markdown docs at the bottom.

I managed to implement a demo using Hover.contents: MarkedString[]:
export function getHover(analysis: CodeAnalysis, params: HoverParams): Hover {
    return {
        contents: [
            {language: "jitterbit", value: '(function) WriteToOperationLog(string message): string'},
            'Some `text` over here'
        ],
    };
}

As MarkedString is deprecated, how can I achieve similar behaviour using MarkupContent?
Is it even possible given MarkupKind currently only supports markdown and plaintext? I think #843 tried to answer that.

See also https://github.com/microsoft/vscode-languageserver-node/blob/e1345cca06095d61d3c5c0ff961472d55cbcf798/types/src/main.ts#L2039


tolerant-php-parser fails to warn about "${varname->prop}"

The ${simple} syntax allows a very limited subset of expressions. ({$...} allows a much wider range of expressions.)
For example, ${varname->prop} is an error in PHP, but ${varname['field']} or ${a+b} is valid.
And ${a+b->prop} is invalid.
See the discussion in #226 . I'd also recommend looking at the language spec, since I'm not familiar with every possible edge case

It looks like that became allowed in php 8.0 after I filed this issue
And https://wiki.php.net/rfc/enumerations in php 8.1 would allow constants to point to objects that had properties
(define() was then changed to allow constants to be declared as any object, including non-enums)
php > $x = "${varname->prop}";

Warning: Uncaught Error: Undefined constant "varname" in php shell code:1
Stack trace:
#0 {main}
  thrown in php shell code on line 1
php > echo PHP_VERSION;
8.0.17-dev


TensorFlow Import Error

System information
Intel 8th gen i7 with integrated graphics
using stock script, import tensorflow as tf caused failure
WIndows 10
Tensorflow installed from pip, version 2.0.0 (also tried 2.5.0, same error)
Python Version 3.7.9
No CUDA and GPU
Exact command to reproduce: import tensorflow as tf
Describe the problem
There is a problem to import tensorflow 2.0.0 using Python 3.7. Installation appears to have worked on pip with all the requirements satisfied, but the import command results in an OSError: [WinError 126]. Any help is greatly appreciated, thank you so much in advance
Source code / logs
Source Code:  import tensorflow as tf
Error:
C:\Users\steven.f>python3
Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 16:30:00) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
import tensorflow as tf
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\steven.f\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow\__init__.py", line 98, in <module>
    from tensorflow_core import *
  File "C:\Users\steven.f\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow_core\__init__.py", line 40, in <module>
    from tensorflow.python.tools import module_util as _module_util
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 959, in _find_and_load_unlocked
  File "C:\Users\steven.f\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow\__init__.py", line 50, in __getattr__
    module = self._load()
  File "C:\Users\steven.f\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow\__init__.py", line 44, in _load
    module = _importlib.import_module(self.__name__)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "C:\Users\steven.f\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow_core\python\__init__.py", line 83, in <module>
    from tensorflow.python import keras
  File "C:\Users\steven.f\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow_core\python\keras\__init__.py", line 26, in <module>
    from tensorflow.python.keras import activations
  File "C:\Users\steven.f\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow_core\python\keras\__init__.py", line 26, in <module>
    from tensorflow.python.keras import activations
  File "C:\Users\steven.f\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow_core\python\keras\activations.py", line 23, in <module>
    from tensorflow.python.keras.utils.generic_utils import deserialize_keras_object
  File "C:\Users\steven.f\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow_core\python\keras\utils\__init__.py", line 38, in <module>
    from tensorflow.python.keras.utils.multi_gpu_utils import multi_gpu_model
  File "C:\Users\steven.f\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow_core\python\keras\utils\multi_gpu_utils.py", line 22, in <module>
    from tensorflow.python.keras.engine.training import Model
  File "C:\Users\steven.f\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow_core\python\keras\engine\training.py", line 47, in <module>
    from tensorflow.python.keras.engine import training_arrays
  File "C:\Users\steven.f\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow_core\python\keras\engine\training_arrays.py", line 41, in <module>
    from scipy.sparse import issparse  # pylint: disable=g-import-not-at-top
  File "C:\Users\steven.f\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\__init__.py", line 136, in <module>
    from . import _distributor_init
  File "C:\Users\steven.f\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\_distributor_init.py", line 61, in <module>
    WinDLL(os.path.abspath(filename))
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\ctypes\__init__.py", line 364, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found

@stevenf7 Regarding the OSError, please take a look at the system requirements and check if you have all the compatible software installed. Also, make sure that you have installed Python from python.org and not from the Microsoft Store.
Also, try to uninstall and then re-nstall the  tensorflow package  that may fix the issue. Thanks!

Thank you so for your response! I uninstalled that version of python from the Microsoft store and reinstalled python 3.9 from python.org and that worked!
Thanks again!


Adding ns2.0 and netcoreapp2.0 targets to Ix.NET

Adding netstandard2.0 and netcoreapp2.0 targets to Ix.NET.
.NET Core 2.0 added TakeLast and SkipLast methods so you need to exclude those methods against that target.

What did .NET Core 2 do? We can't reduce surface area in the platform since that'll cause missing method exceptions if you're built against the netstandard version.

See those two links - it added TakeLast and SkipLast IQueryable methods that now conflict with this library. So while they're not in netstandard, they are in netcoreapp2.x but not in any other netstandard targets.
If you leave the methods in, the netcoreapp2.0 tests won't even compile, you get a CS0121 error:
Tests.Qbservable.cs(135,61,135,69): error CS0121: The call is ambiguous between the following methods or properties: 'System.Linq.QueryableEx.TakeLast<TSource>(System.Linq.IQueryable<TSource>, int)' and 'System.Linq.Queryable.TakeLast<TSource>(System.Linq.IQueryable<TSource>, int)'

This is a problem and there's no support for global aliases. @terrajobst @davidfowl what do we do? We cannot remove these methods from the netcoreapp surface area or it'll throw missing method's.

How is this any different than what Ix does today? If you reference Ix in a netcoreapp2.0/2.1 today, I think you'll have the same issue?

@onovotny yep, you do. If you just add a netcoreapp2.0 target to the test projects for example, they won't compile:
"C:\dev\dotnet-reactive\Ix.NET\Source\Ix.NET.sln" (restore;build target) (1) ->
"C:\dev\dotnet-reactive\Ix.NET\Source\System.Interactive.Tests\System.Interactive.Tests.csproj" (default target) (7:18) ->
"C:\dev\dotnet-reactive\Ix.NET\Source\System.Interactive.Tests\System.Interactive.Tests.csproj" (Build target) (7:19) ->
(CoreCompile target) ->
  Tests.Qbservable.cs(135,61): error CS0121: The call is ambiguous between the following methods or properties: 'System.Linq.QueryableEx.TakeLast<TSource>(System.Linq.IQueryable<TSource>, int)' and 'System.Linq.Queryable.TakeLast<TSource>(System.Linq.IQue ryable<TSource>, int)' [C:\dev\dotnet-reactive\Ix.NET\Source\System.Interactive.Tests\System.Interactive.Tests.csproj]
  Tests.Single.cs(355,23): error CS0121: The call is ambiguous between the following methods or properties: 'System.Linq.EnumerableEx.TakeLast<TSource>(System.Collections.Generic.IEnumerable<TSource>, int)' and 'System.Linq.Enumerable.TakeLast<TSource>(Sy stem.Collections.Generic.IEnumerable<TSource>, int)' [C:\dev\dotnet-reactive\Ix.NET\Source\System.Interactive.Tests\System.Interactive.Tests.csproj]
  Tests.Single.cs(363,23): error CS0121: The call is ambiguous between the following methods or properties: 'System.Linq.EnumerableEx.TakeLast<TSource>(System.Collections.Generic.IEnumerable<TSource>, int)' and 'System.Linq.Enumerable.TakeLast<TSource>(Sy stem.Collections.Generic.IEnumerable<TSource>, int)' [C:\dev\dotnet-reactive\Ix.NET\Source\System.Interactive.Tests\System.Interactive.Tests.csproj]
  Tests.Single.cs(371,23): error CS0121: The call is ambiguous between the following methods or properties: 'System.Linq.EnumerableEx.TakeLast<TSource>(System.Collections.Generic.IEnumerable<TSource>, int)' and 'System.Linq.Enumerable.TakeLast<TSource>(Sy stem.Collections.Generic.IEnumerable<TSource>, int)' [C:\dev\dotnet-reactive\Ix.NET\Source\System.Interactive.Tests\System.Interactive.Tests.csproj]
  Tests.Single.cs(379,23): error CS0121: The call is ambiguous between the following methods or properties: 'System.Linq.EnumerableEx.TakeLast<TSource>(System.Collections.Generic.IEnumerable<TSource>, int)' and 'System.Linq.Enumerable.TakeLast<TSource>(Sy stem.Collections.Generic.IEnumerable<TSource>, int)' [C:\dev\dotnet-reactive\Ix.NET\Source\System.Interactive.Tests\System.Interactive.Tests.csproj]
  Tests.Single.cs(394,23): error CS0121: The call is ambiguous between the following methods or properties: 'System.Linq.EnumerableEx.SkipLast<TSource>(System.Collections.Generic.IEnumerable<TSource>, int)' and 'System.Linq.Enumerable.SkipLast<TSource>(Sy stem.Collections.Generic.IEnumerable<TSource>, int)' [C:\dev\dotnet-reactive\Ix.NET\Source\System.Interactive.Tests\System.Interactive.Tests.csproj]
  Tests.Single.cs(402,23): error CS0121: The call is ambiguous between the following methods or properties: 'System.Linq.EnumerableEx.SkipLast<TSource>(System.Collections.Generic.IEnumerable<TSource>, int)' and 'System.Linq.Enumerable.SkipLast<TSource>(Sy stem.Collections.Generic.IEnumerable<TSource>, int)' [C:\dev\dotnet-reactive\Ix.NET\Source\System.Interactive.Tests\System.Interactive.Tests.csproj]
  Tests.Single.cs(410,23): error CS0121: The call is ambiguous between the following methods or properties: 'System.Linq.EnumerableEx.SkipLast<TSource>(System.Collections.Generic.IEnumerable<TSource>, int)' and 'System.Linq.Enumerable.SkipLast<TSource>(Sy stem.Collections.Generic.IEnumerable<TSource>, int)' [C:\dev\dotnet-reactive\Ix.NET\Source\System.Interactive.Tests\System.Interactive.Tests.csproj]

    74 Warning(s)
    8 Error(s)

They won't redirect, they're tied to the implementation.
Suppose you have a library compiled against the netstandard2 or 1.x version that uses QueryableEx.TakeLatest() from System.Interactive. Now that library is used on netcoreapp2.x and gets the netcoreapp2.x version of System.Interactive that does not contain that method.
You can use typeforwarders for entire types, but not methods on types.

It's ambiguous due to overload resolution of the extension methods, not because they're in the same type or assembly even. They are in the same namespace and have the same name and signature, thus ambiguous unless called with the type name. It'd be worse if the type names were the same since the CPS project system doesn't support assembly aliases today, but here the type names are still different. (Queryable vs QueryableEx)

ruh roh. Won't this come up soon with the C# 8 API proposal you mentioned?

And I'm a bit surprised this hasn't come up already, but it's only those two methods atm

I don't think there's been a conversation about how methods that were first defined in Ix move to the BCL. That should happen.

The other option here is to remove those two methods from netstandard2.0 altogether, but that doesn't seem that great either.

Keeping this open to capture the discussion since we need to resolve it...

Nice.


Issue with php8.2

Sdk Version :- v3.8.0
Line number
https://github.com/Mangopay/mangopay2-php-sdk/blob/v3.8.0/MangoPay/Libraries/HttpBase.php#L23
Deprecated issue
Issue with php8.2
SS attached of the issue
https://imgur.com/a/rN9gHZZ

the log file is quite polluted by this depreciation's call stack.
The rfc that Deprecate dynamic properties : https://wiki.php.net/rfc/deprecate_dynamic_properties


Fail when there's more than one DRAFT for an application

We're temporarily removing this check to stop a production issue in Seattle. After the root cause was idenitified and #2969 is fixed revert the change.

Bion has a fix for the root cause. Gwen is keeping up with the fallout. See https://github.com/civiform/civiform/issues/2969


Fix unpickling issues with CUDA sub-attributes

Solves issues with, for example,

criterion__weight = <cuda tensor>
optimizer__state
module__some_weird_parameter = <cuda_tensor>

Before, criterion was never considered a CUDA dependent
attribute which is also fixed.

I think there was also a bug where net.cuda_dependent_attributes_ was overwritten with the torch byte array of said attributes when unpickling. This is also fixed by introducing the intermediate state variable __cuda_dependent_attributes__.

LGTM. Could you quickly comment on why that part is no longer required:
https://github.com/dnouri/skorch/blob/master/skorch/net.py#L1422
(or was it ever?)

I've added a compatibility check so that we can direct users to this version of skorch if they have problems loading their old pickle files. In future versions this fallback can be removed.

@BenjaminBossan done, please review again!


Removed Job Listing for Program Coordinator

Removed Job Listing for Program Coordinator

Feel free to merge the PR whenever you're ready.


Custom class and ID names for components

So, I wanted to customise a specific "popover" size and style, but there is currently no way to do this.
In bootstrap.js, around line 1151, I added a quick
if ( this.options['class'] != undefined ) {
$tip.addClass( this.options['class'] );
}
if ( this.options['id'] != undefined ) {
$tip.attr( 'id', this.options['id'] );
}
This type of customisation should be standard for all generated components. This means when you are supplying the configuration you can set an ID or class. Demo: $('element').popover( { placement: 'bottom', id: 'myCustomPopover' } );

Unsure about the usefulness of this—why would folks need this out of the box?

I agree with @markdotto, just do $('element').attr( 'id', 'myCustonPopover' ).popover( { placement: 'bottom' } );

@MichaelCastelbuono I see what you're suggesting, but that doesn't actually do what the above code does.
The popover is generated and appended to the body (line ~957 ".appendTo(inside ? this.$element : document.body)")
Ok, you can append inside a div by using "in" in the placement, but not an input for example. Also, your example code would never append the popover inside the selector (target).
So if the tooltip and popovers are generated and appended to the body, you're code would add an ID to the given selector (target), not the popover itself.
@markdotto I don't believe it's too far from the imagination to see people other than myself use 2 differently styled popovers on a single page. Can show me another way to have 2 differently styled popovers on the same page without the need for this code, I would love for you to share it (and obviously I'll close this issue too).

@hostliketoast I see what you're saying now. My suggestion would not add the id to the popover itself. Perhaps there should be a way to add attributes to the popover.

Yeah, that would be a better solution all round. Maybe the .popover() could infact return the popover instance?

As an interim for sizing of popovers, I can see adding the ability to specify a class name for a popover. I'll ask @fat to take a look.

Excellent @markdotto, that was exactly my first change -sizing.

@fat your solution of using the template falls short when you need to base an attribute value off of a data attribute of the triggering element because it doesn't allow for a function argument. If it worked similar to the content option though, this would be a decent solution. I know the option is always there to instantiate with different templates for different elements, but, this ends with ugly, repetitive code. Thoughts?

Do we even know if this still an existing issue after 3 full years?

I am facing this problem in 3.3.6 so, unless the documentation is inaccurate or I am completely missing something, I believe so.


[GMOD] Error when creating a server

Hi ^_^
Today i wanted to make a Garry's mod server for me and my friend.
I install my script on my VPS etc..
When I type   ./gmodserver install the console tell me :
-bash ./gmodserver permission denied (Im withe gmodserver user)
Help me :c

chmod +x ./gmodserver

Thanks for the answer but it doesn't work ! even in Root...

print screen
ls -al /home/gmodeserver
please

Is this still an issue or can it be closed?

Thanks for the help :) it was just a bug o.o you can close :) :+1:


fix(deps): update terraform-module

This PR contains the following updates:

Package
Type
Update
Change

terraform-ibm-modules/cos/ibm (source)
module
minor
8.5.3 -> 8.8.3

terraform-ibm-modules/kms-all-inclusive/ibm (source)
module
minor
4.13.4 -> 4.14.2

terraform-ibm-modules/landing-zone-vpc/ibm (source)
module
minor
7.18.3 -> 7.19.0

terraform-ibm-modules/observability-agents/ibm (source)
module
minor
1.26.0 -> 1.28.2

Release Notes

terraform-ibm-modules/terraform-ibm-cos (terraform-ibm-modules/cos/ibm)
v8.8.3
Compare Source
Bug Fixes

deps: update terraform terraform-ibm-modules/kms-all-inclusive/ibm to v4.14.2 (#679) (35e3b51)

v8.8.2
Compare Source
Bug Fixes

deps: update terraform terraform-ibm-modules/kms-all-inclusive/ibm to v4.14.1 (#678) (5336aa5)

v8.8.1
Compare Source
Bug Fixes

add sleep around auth policy when destroying (workaround for https://github.com/terraform-ibm-modules/terraform-ibm-cos/issues/672) (#673) (208a2a1)

v8.8.0
Compare Source
Features

removed support for lite plan as this is no longer available from IBM Cloud (#674) (b37bcab)

v8.7.0
Compare Source
Features

added new outputs to the secure-cross-regional-bucket and secure-regional-bucket DA solutions: s3_endpoint_direct, s3_endpoint_private, bucket_name, cos_instance_ids (#656) (2e3c40f)

v8.6.2
Compare Source
Bug Fixes

deps: update terraform ibm to latest for the deployable architecture solution (#667) (54e538f)

v8.6.1
Compare Source
Bug Fixes

Update ibm_catalog.json - remove dependencies section (#663) (435712d)

v8.6.0
Compare Source
Features

the following new variables have been added to the root level module: activity_tracker_read_data_events, activity_tracker_write_data_events, activity_tracker_management_events, request_metrics_enabled and usage_metrics_enabled. Previously the logic only set these to true if a Monitoring or Activity Tracker CRN was passed, but that in IBM terraform provider version 1.67.0, you no longer need to pass Monitoring or Activity Tracker instance CRNs to enable monitoring or activity tracking on a bucket. If values not passed, it will default to the Monitoring or AT instance in the same location as the bucket.
As part of this work sysdig_crn has been renamed to  monitoring_crn. (#660) (7d93787)

v8.5.4
Compare Source
Bug Fixes

add community catalog id in dependencies section of ibm_catalog.json (#662) (84f196e)

terraform-ibm-modules/terraform-ibm-kms-all-inclusive (terraform-ibm-modules/kms-all-inclusive/ibm)
v4.14.2
Compare Source
Bug Fixes

deps: update terraform terraform-ibm-modules/key-protect/ibm to v2.8.0 (#520) (050e4c8)

v4.14.1
Compare Source
Bug Fixes

deps: update terraform ibm to latest for the deployable architecture solution (#514) (806370c)

v4.14.0
Compare Source
Features

The following outputs have been renamed in the module and the DA solution as they now support returning values when an existing KMS instance is passed:- kp_private_endpoint -> kms_private_endpoint- kp_public_endpoint -> kms_public_endpoint (#505) (73c3a1d)

v4.13.6
Compare Source
Bug Fixes

deps: update terraform-module (#507) (428d736)

v4.13.5
Compare Source
Bug Fixes

update the DA solutions variable descriptions (#501) (c7adca0)

terraform-ibm-modules/terraform-ibm-landing-zone-vpc (terraform-ibm-modules/landing-zone-vpc/ibm)
v7.19.0
Compare Source
Features

added new outputs dns_instance_id and dns_custom_resolver_id (#817) (b84f23a)

terraform-ibm-modules/terraform-ibm-observability-agents (terraform-ibm-modules/observability-agents/ibm)
v1.28.2
Compare Source
Bug Fixes

deps: updated the logdna-db-permissions initContainers image to icr.io/goldeneye_images/ubi9-cluster-tools:stable (was previously using ubi8-cluster-tools) (#365) (5eebbec)

v1.28.1
Compare Source
Bug Fixes

deps: update icr.io/ext/sysdig/agent docker tag to v13.3.1 (#363) (811bddc)

v1.28.0
Compare Source
Features

deps: update icr.io/ext/sysdig/agent docker tag to v13.3.0 (#361) (0433001)

v1.27.0
Compare Source
Features

add support for IKS and OCP clusters on classic infrastructure (#336) (67c47fb)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

changes tracked in this PR.
https://github.com/terraform-ibm-modules/terraform-ibm-base-ocp-vpc/pull/477


upgrade undertow to 2.0.23.Final for both 1.6.x and master

 update regex-replace to upgrade undertow to 2.0.23.Final

 update regex-replace to upgrade undertow to 2.0.23.Final


Add test to verify remaining AXFR are serviced

Test to verify is "incorrect". The timeout is set to 1/10th of a second when servicing remaining TCP connections. It's near impossible to ensure desired behavior is triggered from bash.


Redux actions not working/not triggered when app is in background on iOS

So i have something like this:
  async onReceived(notification) {
    store.dispatch(addNotif({
      title: notification.payload.title,
      description: notification.payload.body,
      object: JSON.parse(notification.payload.additionalData.object),
      read: false,
    }));
  }

I found out that whatever that is in onReceived is not run when the app is in background on iOS when debugger is not running on xcode. It works fine on Android.
In another piece of code:
  async onOpened(openResult) {
    store.dispatch(toggleRead(openResult.notification.payload.body));
    if ((openResult.notification.payload.additionalData.type === "Post") || (openResult.notification.payload.additionalData.type === "Comment")) {
      let object = await JSON.parse(openResult.notification.payload.additionalData.object);
      this.refs.root_navigator.push({ index: 'ViewPost', post: object.post});
    } else {
      let object = await JSON.parse(openResult.notification.payload.additionalData.object);
      this.refs.root_navigator.push({ index: 'ViewPost', post: object.post, comment: object.comment});
    }
  }

The store.dispatch in onOpened is not run when notification is tapped, but whatever that comes after (the if logic etc) is processed. But then again, it works fine on Android. I am not sure if its a redux issue or an issue with this library. Appreciate if you could look into this.

@avishayil just validated, store.dispatch in onOpened actually runs. It is the store.dispatch in onReceived that is not run. So now i don't think its a redux issue, its issue specifically to onReceived function in iOS

For me onReceived works only when the user is in the app (the app is active) otherwise I don't receive notifications. I receive them always in the notification center (iOS) but not in my app's:
 onReceived = (receivedNotif) => {
     ...
}

So I am also looking into this: How we can receive notifications in the app when the app is not active or the user doesn't press on the notification?

i have updates - to activate onReceived when app is on background on iOS, you have to enable Background App Refresh for the app. However, when its completely killed, we might have to look into Pushkit iOS.
Right now, I am facing the problem of, onReceive not being called when app is completely killed for both Android and iOS. Hope someone can shed more light on this.

@LEEY19 I have exactly the same problem:

Right now, I am facing the problem of, onReceive not being called when app is completely killed for both Android and iOS

From @jkasten2:

If you need to do background processing in your app as soon as the notification arrives you will need to set content_available to true on our REST API or enable this option on the dashboard when creating a new message. Enabling this does not fire the callback above, it instead wakes up your app and calls the application:didReceiveRemoteNotification:fetchCompletionHandler: selector. This selector isn't available in Cordova so you will need to write Objective-C or Swift code to handle this.

I have content_available set to true and I receive the notifications when the app is in the background but when it's completely killed/closed I don't receive them in the onReceived method.
@jkasten2 any help here?

@avishayil I have been dabbling with your native codes in RNOneSignal.java, as I am trying to implement WakefulBroadcastReceiver (referring to https://stackoverflow.com/questions/24313539/push-notifications-when-app-is-closed) so that the device can be woken app when it is originally completely killed. I realised that you are just using the normal BroadcastReceiver. However, because I don't code in java, its extremely hard for me to modify your native codes. Your help will be valuable.

We have the same problem on iOS (I am testing only on iOS).

I'm not sure this will help.
When run react-native link react-native-onesignal,
it will create Header Search Paths like this
$(SRCROOT)/../node_modules/react-native-onesignal/ios/RCTOneSignal
just change it to
$(SRCROOT)/../node_modules/react-native-onesignal/ios
I tested on iOS device and it work even when app got killed.

I'm having this problem on Android i.e., onReceived is not running when the app is killed. Anyone found a solution to this?

I'm facing the same problem, is there any solution to this issue?

same issue :(

Just a heads up that I've posted a pretty lengthy comment at https://github.com/geektimecoil/react-native-onesignal/issues/332#issuecomment-341326624 discussing this problem.

I've posted a code sample resulting in the opened event listener being called after tapping a notification from a completely closed AppState.

@LEEY19 I am closing this issue due to inactivity.
We have recently made some changes in recent releases for how the onReceived and onOpened events are handled so I think this issue is likely resolved at this point.
If you (or anyone else) is still encountering this issue please respond and I will be happy to reopen and investigate the problem.

@Nightsd01 : Nope it's not solved, I'm still facing it at version ^3.2.6, whereby on iOS platform, the event registered wont be fired onReceived if apps is on background

Still having this issue on using "react-native-onesignal": "^3.4.1"
When the app is in background it does receive the notification while running a debug build via XCode, but the Release build tested via Testflight does not receive it.
However, during the I noticed that maybe one-two times the callback was actually called even with the app in the background. So I guess there is some management by iOS which sometimes does activate the app sometimes does not.
I am sending both mutable_content and content_available from the back-end.


Discussion: DNN Independant Management Site with API and PowerShell

We @ 2sic have been automating our environment for a long time now. Based on the lessons learned, I would like to propose some core challenges we will face when creating a standard solution, and how we could resolve this:
Challenge 1: Script Versions and Upgrades
I believe the core challenge to all this (aside from authentication etc.) is maintaining the level of scripting commands in a heterogeneous installation. If each installation has its own copies of scripts and capabilities, you will quickly not be able to automate across sites, because probably DNN 9.2 will be missing some of the commands added in 9.6. And adding commands will be crucial, because this is what we need when new security holes appear. So it will be important to somehow upgrade the scripting capabilities. Our solution uses a centralized scripts-server, which is accessed from each server when running scripts.
Challenge 2: Running Scripts When The Website Is Not Running
Often some changes will cause the site to not work anymore – at least temporarily. So building a solution which requires the w3-service to run will not scale as needed. Since you’re first edition is meant for local installations, this will be your initial setup – but it’s a bit the opposite of the remoting setup.
Idea To Resolve Both: A DNN independent Management API-Site
One thing I could imagine is that remoting and actually any PS-work would not happen through DNN but through a separate API/Management site, which would be necessary to use this. This would allow us to handle both challenges 1 and 2, because this admin-powershell-management-site could also manage the central library of scripts. It would also resolve a lot of other issues because authentication could be done in a custom way, and provider who don’t want this (or don’t want to give access to this to their customers) could still use it themselves.

"Script Versions and Upgrades"
Prompt supports a command "list-commands" which gives a list of all commands and their version.
"Running Scripts When The Website Is Not Running"
If you go through the WebAPI then it will fire up the site.

@donker I need some clarification on this WebAPI.

Is this WebAPI locked down to just the Prompt or can anyone with the correct credentials access it?
Is it publically exposed outside the box or is it just for localhost traffic?
What type of authentication is used in the WebAPI?

"Is this WebAPI locked down to just the Prompt or can anyone with the correct credentials access it?"
Yes and yes. This WebAPI access point is usable by anyone who's authenticated with host credentials and can then run any Prompt command and will get the result in structured format.
"Is it publically exposed outside the box or is it just for localhost traffic?"
Public
"What type of authentication is used in the WebAPI?"
Regular web traffic auth. I guess this depends on how you've configured DNN but by default this is asp.net auth. This is the only part I've never programmed before, but it should be doable from what I know.

This is really great news and will save us lots of work. Kudos to the team that implemented this feature! They really considered the future and how this feature will expand.
With all of that being said it makes our work so much easier. The idea from here is the powershell module will just wrap a bunch of RESTful service calls which will invoke this API. The only part that may be a bit challenging is building a auth screen into powershell.

Hey guys, just catching up here a bit.  DNN, if configured properly, supports JWT Auth.  This is how I have built other solutions that are ultimately going to integrate with Prompt from the outside.  So this makes it very easy in my opinion.

Oh, and by the way, there are two endpoints in Prompt.

One for listing commands (as @donker mentioned earlier)
One for executing a command

Where Prompt needs some work is in the area of getting (via the API) options/params/help for individual commands.  That would greatly help towards our goals here.

Just to come back to this point "What type of authentication is used in the WebAPI?"
I just woke up slapping my forehead. The official way to WebAPI from outside of a browser (i.e. app) is of course JWT. So that is the correct answer to the question. Sorry for confusing anyone.

Along those same lines of the JWT conversation, please see this JIRA issue I posted a while back to address this very thing.  Right now there is a [ValidateAntiForgeryToken] decorator on the Cmd endpoint.  From my testing, this is going to be problematic executing from the outside.  Am I missing something?

Actually it works despite the anti forgery logic. I just ran some tests with my code.

Really?  Wow - I must just not be holding my mouth just right!  ;)


Generated docs include super class' methods

Problem
Generated docs include super class' methods.

https://github.com/SeleniumHQ/selenium/blob/master/py/selenium/webdriver/remote/webdriver.py

Expected results
Generated docs include methods only for the target class.
https://github.com/ki4070ma/python-client/blob/master/appium/webdriver/extensions/device_time.py

device_time
get_device_time

Used portray version
1.3.1
Generated docs
https://ki4070ma.github.io/python-client/reference/appium/webdriver/extensions/device_time/

I agree - I would like an option to prevent creating documentation for super level too.
In my case, I inherit from a pandas DataFrame and that leads to way too much documentation.

Is this a planned feature? It looks like this functionality is now available in the original pdoc repo: https://github.com/mitmproxy/pdoc/issues/15#issuecomment-762951529. In fact, the pdoc repo is now actively maintained and has an example for running with mkdocs...I like portray for its simplicity, but I'm working with code that subclasses Pytorch's nn.module so the inability to hide the huge list of methods from the parent class would be a deal-breaker.


refactor: move crosschain flags to core context in zetaclient

Description

Update core context with cross-chain flags
Added reference to core context in chain clients and signers
Referencing cross-chain flags from core context instead of querying the core each time.

Closes: https://github.com/zeta-chain/node/issues/1832
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Include instructions and any relevant details so others can reproduce.

[ ] Tested CCTX in localnet
[ ] Tested in development environment
[ ] Go unit tests
[ ] Go integration tests
[ ] Tested via GitHub Actions

Checklist:

[ ] I have added unit tests that prove my fix feature works

There are a few lines not covered in zetabridge and bitcoin signer. These packages are missing many basic unit tests and I will address these in another PR as they need much more work.


Report did not show as part of mvn site

Ran ./mvnw clean install site on my project with the plugin configured in build and reporting sections.  No report was generated

@jimbethancourt Is that CVE not fixed in the latest Maven 3.9.3 with latest plugins specified?  I think it's important in terms of discoverablity in CI/CD platforms but as a dev I can get around it.

It looks like newer versions of Doxia Site Renderer have been released in the 1.x stream - https://central.sonatype.com/artifact/org.apache.maven.doxia/doxia-site-renderer/1.11.1/versions
I'll investigate soon and see if the CVE is removed in the most recent release.

Hi @karianna!  I'm done coding this up and need to update the Readme.md file.  I also need to merge in PR #21 and update JGit and test, but it should be ready soon.  I'm keeping an eye on PMD as well for Java 21 support, but this feature is going to happen 🙂