Contributing.md

Description
There is no CONTRIBUTING.md file which is breaking the link in Readme.md.
Fix
Add a CONTRIBUTING.md file in the main code.
Issue Type
documentation, good first issue

Nice catch @DhairyaBahl.
Anyone who wants to tackle this can resolve it by copying the boilerplate CONTRIBUTING.md from the main brigadecore/brigade repo. That itself just points elsewhere.

@krancour I will fix this asap. Kindly assign it to me. Or we can just leave it for some time coz it's a great issue for first time contributors. Its ur call.

Assigned


wsl2 with mirrored network cannot connect to vmware workstation virtual machine

Windows Version
Microsoft Windows [Version 10.0.22631.3085]
WSL Version
WSL version: <IP_ADDRESS> Kernel version: <IP_ADDRESS>-1 WSLg version: 1.0.59 MSRDC version: 1.2.4677 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows version: 10.0.22631.3085
Are you using WSL 1 or WSL 2?

[X] WSL 2
[ ] WSL 1

Kernel Version
Linux version <IP_ADDRESS>-microsoft-standard-WSL2 (root@1c602f52c2e4) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37) #1 SMP Thu Oct 5 21:02:42 UTC 2023
Distro Version
Debian 12
Other Software
VMware® Workstation 17 Pro, 17.5.0 build-22583795
Repro Steps
Start vm (ubuntu 20.04) and start ssh service on it.
systemctl status sshd
● ssh.service - OpenBSD Secure Shell server
     Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: e>
     Active: active (running) since Thu 2024-02-01 18:09:32 PST; 4h 35min ago
       Docs: man:sshd(8)
             man:sshd_config(5)
    Process: 899 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
   Main PID: 907 (sshd)
      Tasks: 1 (limit: 9387)
     Memory: 2.3M
     CGroup: /system.slice/ssh.service
             └─907 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups

Feb 01 18:09:32 ubuntu systemd[1]: Starting OpenBSD Secure Shell server...
Feb 01 18:09:32 ubuntu sshd[907]: Server listening on <IP_ADDRESS> port 22.
Feb 01 18:09:32 ubuntu sshd[907]: Server listening on :: port 22.
Feb 01 18:09:32 ubuntu systemd[1]: Started OpenBSD Secure Shell server.

ip address info:
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet <IP_ADDRESS>/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: ens32: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:0c:29:2b:17:46 brd ff:ff:ff:ff:ff:ff
    altname enp2s0
    inet <IP_ADDRESS>/24 brd <IP_ADDRESS> scope global dynamic noprefixroute ens32
       valid_lft 1799sec preferred_lft 1799sec
    inet6 fe80::9e4e:2d4e:f20b:986/64 scope link noprefixroute
       valid_lft forever preferred_lft forever

ssh from wsl2:
ssh -vvv <IP_ADDRESS>
OpenSSH_9.2p1 Debian-2+deb12u2, OpenSSL 3.0.11 19 Sep 2023
debug1: Reading configuration data /home/wang1zhen/.ssh/config
debug1: /home/wang1zhen/.ssh/config line 20: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname <IP_ADDRESS> is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/wang1zhen/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/wang1zhen/.ssh/known_hosts2'
debug3: ssh_connect_direct: entering
debug1: Connecting to <IP_ADDRESS> [<IP_ADDRESS>] port 22.
debug3: set_sock_tos: set socket 3 IP_TOS 0x10

.wslconfig
[wsl2]
networkingMode=mirrored
dnsTunneling=true
autoProxy=true
firewall=true

Expected Behavior
wsl2 ssh to vmware ubuntu successfully.
Actual Behavior
ssh hangs
ssh -vvv <IP_ADDRESS>
OpenSSH_9.2p1 Debian-2+deb12u2, OpenSSL 3.0.11 19 Sep 2023
debug1: Reading configuration data /home/wang1zhen/.ssh/config
debug1: /home/wang1zhen/.ssh/config line 20: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname <IP_ADDRESS> is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/wang1zhen/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/wang1zhen/.ssh/known_hosts2'
debug3: ssh_connect_direct: entering
debug1: Connecting to <IP_ADDRESS> [<IP_ADDRESS>] port 22.
debug3: set_sock_tos: set socket 3 IP_TOS 0x10

However, ssh.exe <IP_ADDRESS> from windows host or wsl2 both works:
ssh.exe -v <IP_ADDRESS>
OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to <IP_ADDRESS> [<IP_ADDRESS>] port 22.
debug1: Connection established.
debug1: identity file C:\\Users\\wang1zhen/.ssh/id_rsa type -1
debug1: identity file C:\\Users\\wang1zhen/.ssh/id_rsa-cert type -1
debug1: identity file C:\\Users\\wang1zhen/.ssh/id_dsa type -1
debug1: identity file C:\\Users\\wang1zhen/.ssh/id_dsa-cert type -1
debug1: identity file C:\\Users\\wang1zhen/.ssh/id_ecdsa type -1
debug1: identity file C:\\Users\\wang1zhen/.ssh/id_ecdsa-cert type -1
debug1: identity file C:\\Users\\wang1zhen/.ssh/id_ecdsa_sk type -1
debug1: identity file C:\\Users\\wang1zhen/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file C:\\Users\\wang1zhen/.ssh/id_ed25519 type -1
debug1: identity file C:\\Users\\wang1zhen/.ssh/id_ed25519-cert type -1
debug1: identity file C:\\Users\\wang1zhen/.ssh/id_ed25519_sk type -1
debug1: identity file C:\\Users\\wang1zhen/.ssh/id_ed25519_sk-cert type -1
debug1: identity file C:\\Users\\wang1zhen/.ssh/id_xmss type -1
debug1: identity file C:\\Users\\wang1zhen/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.6
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.2p1 Ubuntu-4ubuntu0.11
debug1: compat_banner: match: OpenSSH_8.2p1 Ubuntu-4ubuntu0.11 pat OpenSSH* compat 0x04000000
debug1: Authenticating to <IP_ADDRESS>:22 as 'wang1zhen'
debug1: load_hostkeys: fopen C:\\Users\\wang1zhen/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher<EMAIL_ADDRESS>MAC: <implicit> compression: none
debug1: kex: client->server cipher<EMAIL_ADDRESS>MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:3xtPBNTmzBJw0agVfnBIaXyyz1Y4BSSUw02font6vi0
debug1: load_hostkeys: fopen C:\\Users\\wang1zhen/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts2: No such file or directory
debug1: Host '<IP_ADDRESS>' is known and matches the ED25519 host key.
debug1: Found key in C:\\Users\\wang1zhen/.ssh/known_hosts:1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: pubkey_prepare: ssh_get_authentication_socket: No such file or directory
debug1: Will attempt key: C:\\Users\\wang1zhen/.ssh/id_rsa
debug1: Will attempt key: C:\\Users\\wang1zhen/.ssh/id_dsa
debug1: Will attempt key: C:\\Users\\wang1zhen/.ssh/id_ecdsa
debug1: Will attempt key: C:\\Users\\wang1zhen/.ssh/id_ecdsa_sk
debug1: Will attempt key: C:\\Users\\wang1zhen/.ssh/id_ed25519
debug1: Will attempt key: C:\\Users\\wang1zhen/.ssh/id_ed25519_sk
debug1: Will attempt key: C:\\Users\\wang1zhen/.ssh/id_xmss
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519<EMAIL_ADDRESS>debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: C:\\Users\\wang1zhen/.ssh/id_rsa
debug1: Trying private key: C:\\Users\\wang1zhen/.ssh/id_dsa
debug1: Trying private key: C:\\Users\\wang1zhen/.ssh/id_ecdsa
debug1: Trying private key: C:\\Users\\wang1zhen/.ssh/id_ecdsa_sk
debug1: Trying private key: C:\\Users\\wang1zhen/.ssh/id_ed25519
debug1: Trying private key: C:\\Users\\wang1zhen/.ssh/id_ed25519_sk
debug1: Trying private key: C:\\Users\\wang1zhen/.ssh/id_xmss
debug1: Next authentication method: password
<EMAIL_ADDRESS>password:

Diagnostic Logs
No response
### Tasks

@wang1zhen since it fails with set socket 3 IP_TOS 0x10 try connecting with ssh -o IPQoS=none and see if it works.
From the ssh_config man page:
IPQoS
Specifies the IPv4 type-of-service or DSCP class for connections. Accepted values are af11, af12, af13, af21, af22, af23, af31, af32,
af33, af41, af42, af43, cs0, cs1, cs2, cs3, cs4, cs5, cs6, cs7, ef, le, lowdelay, throughput, reliability, a numeric value,
or none to use the operating system default. This option may take one or two arguments, separated by whitespace.
If one argument is specified, it is used as the packet class unconditionally. If two values are specified, the first is
automatically selected for interactive sessions and the second for non-interactive sessions. The default is af21
(Low-Latency Data) for interactive sessions and cs1 (Lower Effort) for non-interactive sessions.

ssh -o IPQoS=none

SSH now hangs here:
ssh -vvv -o IPQoS=none <IP_ADDRESS>
OpenSSH_9.2p1 Debian-2+deb12u2, OpenSSL 3.0.11 19 Sep 2023
debug1: Reading configuration data /home/wang1zhen/.ssh/config
debug1: /home/wang1zhen/.ssh/config line 20: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname <IP_ADDRESS> is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/wang1zhen/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/wang1zhen/.ssh/known_hosts2'
debug3: ssh_connect_direct: entering
debug1: Connecting to <IP_ADDRESS> [<IP_ADDRESS>] port 22.

Hi. Can you please collect networking logs by following the instructions below?
https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues

WslNetworkingLogs-2024-02-09_13-04-47.zip
I have uploaded the networking logs according to the instructions here.

thanks for attaching the logs. sorry for the delay following up on this
at the moment this is not supported when using mirrored networking mode
mirrored mode allows communication between WSL and the Windows host using <IP_ADDRESS> or using an IPv4 address assigned to the Windows host, but not communication with another VM running on Windows

you will be able to SSH by forwarding the port on windows host.
add the following to ~/.ssh/config in WSL
match host <IP_ADDRESS> exec "pgrep -f '^/init.*2022:localhost:22' || exec /mnt/c/Windows/System32/OpenSSH/ssh.exe -NL 2022:localhost:22 <IP_ADDRESS> &"
        hostname localhost
        port 2022


Problem Training

I think there is a problem in testing. I tested different number of classifiers, different size of features and different number of training image. However, it either find all faces correctly (0 correct in non-faces) or find all non-faces correctly (0 correct in faces).
By the way I am using Caltech web faces dataset. Why does it happen ?
Can you share your dataset which you used in notebook ?

Hey,
that sounds strange. The data set that I used came from the university, which is why I am not sure whether I can make it public.
However, I found that the data set here is exactly the data set I used.
Regards,
Simon

Hi Simon,
The data set you suggested is of size 19 19 , it works) ,but  if I want to use a data set of size 6464, where do I need to change ?
Thanks.


How can I force esp-idf to use sdkconfig.defaults.c6_thread for Thread building? (CON-1343)

Describe the bug
I am trying to build the Multiple On Off plugin unit example for Thread but it build for Matter over WiFi.
By default it loads sdkconfig.defaults.esp32c6.
How can I force esp-idf to use sdkconfig.defaults.c6_thread?
Environment

ESP-Matter Commit Id: 131c1ae7f787c24d103459efa62d486c3d045936

ESP-IDF Commit Id: 3b8741b172dc951e18509698dee938304bcf1523

SoC (eg: ESP32 or ESP32-C3):

Device Logs (Please attach the log file):

Host Machine OS: Ubuntu 22.04.5 LTS

Host Machine Python version :Python 3.10.12

Commissioner app and versions if present: N/A

Home hub app and versions if present: N/A

Commissioner's logs if present: N/A

Any additional details
cd ~/esp-matter/examples/multiple_on_off_plugin_units
idf.py set-target esp32c6
idf.py menuconfig

This is the use case of building with custom sdkconfig.
What you can do is use -DSDKCONFIG_DEFAULTS option to build you application, eg:
idf.py -DSDKCONFIG_DEFAULTS="sdkconfig.defaults.c6_thread" set-target esp32c6 build

The same method is mentioned in https://github.com/espressif/esp-matter/issues/1008#issuecomment-2249289022

Thanks


Tip29 Issue - unable to connect to Selenium Remote

Tip29 Issue - unable to connect to Selenium Remote (PR #178 )

Issue with very last code block (connecting with Selenium Remote); unsure how to change syntax to make it work.

removed reference to selenium remote; closing issue


[release/v1.4] Update to Go 1.21.5

What this PR does / why we need it:
This bumps Prow jobs for the release/v1.4 branch to use a build image that includes Go 1.21.5.
Which issue(s) this PR fixes:

Towards https://github.com/kubermatic/release/issues/22
What type of PR is this?
/kind chore
Special notes for your reviewer:
Does this PR introduce a user-facing change? Then add your Release Note here:

OSM is now built using Go 1.21.5

Documentation:

NONE

/hold
I screwed up the build image.

/hold cancel


Build JS from SJSIR manually

Hi,
I need to build a js file from sjsir files at runtime to implement a system of plugins, so that it can't be done at compile time with the rest of my compilation. I used to implement the same process in 0.6.3 with the following code, but it seems to be deprecated. What algorithm do you recommand to achieve the same action with 0.6.13 ?
Thanks
Mathieu

    val scalajsLib = copyJar("scalajs-library_2.11-0.6.3")

    val semantics = org.scalajs.core.tools.sem.Semantics.Defaults

    val partialClasspath = PartialClasspathBuilder.build(collection.immutable.Seq(scalajsLib, src))

    val completeClasspath = partialClasspath.resolve()

    val optimizer = new ScalaJSOptimizer(semantics)

    val logger = new ScalaConsoleLogger

    val out = WritableFileVirtualJSFile(new java.io.File(target, JS_FILE))
    if (optimized) {
      val sems = semantics.optimized

      new ScalaJSClosureOptimizer(sems).optimizeCP(
        new ScalaJSOptimizer(sems),
       val scalajsLib = copyJar("scalajs-library_2.11-0.6.3")

    val semantics = org.scalajs.core.tools.sem.Semantics.Defaults

    val partialClasspath = PartialClasspathBuilder.build(collection.immutable.Seq(scalajsLib, src))

    val completeClasspath = partialClasspath.resolve()

    val optimizer = new ScalaJSOptimizer(semantics)

    val logger = new ScalaConsoleLogger

    val out = WritableFileVirtualJSFile(new java.io.File(target, JS_FILE))
    if (optimized) {
      val sems = semantics.optimized

      new ScalaJSClosureOptimizer(sems).optimizeCP(
        new ScalaJSOptimizer(sems),
        completeClasspath,
        ScalaJSClosureOptimizer.Config(out),
        logger
      )
    } else {
      optimizer.optimizeCP(
        completeClasspath,
        ScalaJSOptimizer.Config(out, checkIR = false, wantSourceMap = !optimized),
        logger
      )

    }     completeClasspath,
        ScalaJSClosureOptimizer.Config(out),
        logger
      )
    } else {
      optimizer.optimizeCP(
        completeClasspath,
        ScalaJSOptimizer.Config(out, checkIR = false, wantSourceMap = !optimized),
        logger
      )

    }

Questions are best asked on Stack Overflow. This issue tracker is for bug reports and feature requests.

OK, I posted it first en the google group, but it does not seem to be the place where to do it !


Updates psutil to 3.2.2

Current coverage is 96.15%

Merging #85 into master will not affect coverage as of fd0622a

@@            master     #85   diff @@
======================================
  Files           38      38
  Stmts         2416    2416
  Branches         0       0
  Methods          0       0
======================================
  Hit           2323    2323
  Partial          0       0
  Missed          93      93

Review entire Coverage Diff as of fd0622a

Powered by Codecov. Updated on successful CI builds.


Change class and apply new animation?

I have a list being populated. Once it reaches a certain length, I want to change the animation class of the first item and remove the item from the array with a new animation
Using Laravel 5.4 and Vue2

     // each item will slide in, works fine

@{{ item }}

watch: {
   'myItems'() {
       if(this.myItems.length > 2) {

         // get the first item
         var div = document.getElementsByTagName('ul')[0].children[0].children[0];

         // Change class name, works
         div.className = 'box wow fadeOutLeft';

         **// how to trigger the new class ?**

         // remove first item from the array
         this.myItems.pop[this.myItems[0]];

    }
}

I think that stackoverflow on the vue.js tag is a better place for your question. This is not an issue and is not directly related to animate.css. You'll get better and faster answer there.
I'll close this as it's unrelated to animate.css.


[set up dev environment] unable to run runtests.py

Hello!
I'm a first-time contributor and attempting to set up a dev environment by following the instructions here: https://docs.scipy.org/doc/scipy/reference/dev/contributor/quickstart_ubuntu.html#quickstart-ubuntu
on step 19, I'm trying to run the runtests.py file but I am getting the following:
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh_integer realloc(): invalid next size Fatal Python error: Aborted  at 21% completed.
I'm sure this is not an actual bug, so apologies if this isn't the right place to post this, but I really want to contribute to SciPy and I haven't managed to find any sort of fix to this from googling. I also recently installed Ubuntu to go through this set up so there may be some sort of issue there.

Hi @WillTirone
Please provide information below:

OS information
Python version
Pytest version
SciPy version

on step 19, I'm trying to run the runtests.py file but I am getting the following:
scipy/linalg/tests/test_decomp.py::TestEigh::test_eigh_integer realloc(): invalid next size Fatal Python error: Aborted  at 21% completed.

Have you successfully completed the previous steps?

Hi @EverLookNeverSee,
I've completed the previous steps, yes. I was able to successfully do an in-place build and import the dev version of scipy (1.5)
System info:

Ubuntu 18.04.4 LTS (The guide says Ubuntu 16.04 but I assumed the newer version would be okay)
Python 3.7.6 (installed w/ Anaconda)
Pytest: 5.3.5
Scipy: 1.5.0.dev0+d607334 (this is inside the virtual env)

Thank you!

So the failing part was reworked quite heavily recently in https://github.com/scipy/scipy/pull/11304, so there's a reasonable possibility that it's a real bug. @ilayn WDYT?

@WillTirone in the meantime, you can try using e.g. the -s <submodule> flag to restrict the tests to a particular submodule. If the tests for other submodules pass, then it increases the chance that there's a SciPy bug, and it might also unblock you on whatever you are trying to work on.

@WillTirone this is an ideal situation for a git bisect. if you can find a last known commit that works, it allows you to find the exact commit that broke things. If you can find the submodule that fails the test then that would speed up the process.

@andyfaff cool! Thanks for the suggestion - per git bisect, it looks like 6bb954d3ce5c743b008bc9036dc29e6f34640b80 is the first bad commit, so it is actually a Scipy issue.

The bisect may not be perfect if the test failure is not consistent.

This smells like rather an anaconda and/or MKL bug. Also we should be able to make people work with regular virtual environments.

@andyfaff good point - there was actually one test that gave me 55% before failure that I marked as "good" because it was a different failure point, although i thought marking that as "bad" would obfuscate the issue.
@ilayn any way to check if its an Anaconda bug? and by regular do you just mean using the virtualenv module or?

@WillTirone yes just creating a virtualenv and installing the dependencies and following the rest.

Hello @WillTirone , Could you solve this issue using python virtual environment?

Hi @EverLookNeverSee, I've been pretty busy this week but I am going to attempt it tomorrow night!

@WillTirone
what is default python version on your system(preinstalled)?
How many python3 interpreter do you have in your venv?
I mean python3.7 and python3.8

@EverLookNeverSee 2.7 was my default and 3.6 was what I used to run the test - I can attempt with 3.7 as well.

@WillTirone

Remove your virtual environment
remove conda environment(completlly)
keep only one python3 interpreter on your system
update python3 version to python3.8
create a new virtual environment using command below:
python3 -m scipydev /path/to/new/virtual/environment --system-site-packages
activate virtual environment using command below:
source scipydev/bin/activate
install these packages:
pip install cython numpy pytest spyder pybind11
check fortran compiler existence on your system using command below:
gfortran --version
fork and clone scipy repository on your system:
git clone https://github.com/scipy/scipy.git
in scipy root directory, run command below in order to build it:
python3 setup.py build_ext --inplace
run scipy tests:
python3 runtests.py -v
run the following command in order to install development version of scipy in your virtual environment:
python setup.py develop
run python3 interpreter and checkout scipy version:
>>> import scipy
>>> print(scipy.__version__)
the output will be something like this:
1.5.0.dev0+e27a9c1

@EverLookNeverSee thank you! Should I close this issue?

@WillTirone Yes, if the problem is solved!

@EverLookNeverSee thank you! Should I close this issue?

@WillTirone
Your welcome and Good luck.

@EverLookNeverSee thank you! Should I close this issue?

@WillTirone
Your welcome and Good luck.

as a last follow up - is there a place to discuss scipy-related issues (other than formally opening an issue) on a slack / discord or something, or just the dev mailing list?

is there a place to discuss scipy-related issues (other than formally opening an issue) on a slack / discord or something, or just the dev mailing list?

Just the scipy-dev list. Most maintainers have only a few hours per week for SciPy outside of their day job, so a synchronous messaging option like Slack hasn't really been a good option so far.


Update Asset Preparation + Token Type Guides

Creates "Working with Assets Section" within Learn Section (Moved 3 Files):

Updates Token Type Guide

Took over changes and fixed merge conflicts in #992

Took over changes and fixed merge conflicts in #992


JWT Authentication not working in 1.0.1 with KeyCloak OpenID provider

Describe the bug
JWT authentication is not working with the KeyCloak OpenID provider and I cannot locate sufficient documentation to fully trace the source of the problem. I can get JWT working with the simple tokens located on Github in the Istio repo.
Same here using 1.0.1 build.  I have read all the Istio 0.8 and 1.0 docs on authentication and I am trying to implement origin authentication with a KeyCloak openid provider. I have tried repeatedly to get Istio to talk to KeyCloak and validate token that I have issued, using the following authentication config:
apiVersion: authentication.istio.io/v1alpha1
kind: Policy
metadata:
  annotations:
  name: jwt-example
spec:
  origins:
  - jwt:
      issuer: "http://<IP_ADDRESS>/auth/realms/freeipa"
      jwksUri: "http://<IP_ADDRESS>/auth/realms/freeipa/protocol/openid-connect/certs"
      audiences:
      - test
  principalBinding: USE_ORIGIN
  targets:
  - name: httpbin
  peers:
  - mtls:
      mode: STRICT

My ingress gateways are working without these configs and I see no warnings or errors in the pilot/discovery containers. The services are setup without the "protocol: TCP" that is mentioned above. The KeyCloak install is able to issue tokens using curl and is running on a load-balanced IP accessible to the Istio pods. The client 'test' was created in KeyCloak to and the token requested from that to map to this authentication policy.
I can use JWT with the minimal example on github as shown below but I don't see any errors showing when I add the policy or warnings to indicate where authentication is failing. I see a "upstream connect error or disconnect/reset before headers" but can't see how to locate the failing component.  When using curl command with TOKEN set to my KeyCloak access_token :
curl -v -H 'Host: http1.example.com' -H "Authorization: Bearer $TOKEN"  http://<IP_ADDRESS>/headers

Steps to reproduce the bug
Setup keycloak realm, create client test and point Istio to that KeyCloak:
apiVersion: authentication.istio.io/v1alpha1
kind: Policy
metadata:
  annotations:
  name: jwt-example
spec:
  origins:
  - jwt:
      issuer: "http://<IP_ADDRESS>/auth/realms/freeipa"
      jwksUri: "http://<IP_ADDRESS>/auth/realms/freeipa/protocol/openid-connect/certs"
      audiences:
      - test
  principalBinding: USE_ORIGIN
  targets:
  - name: httpbin
  peers:
  - mtls:
      mode: STRICT

Version
Istio:
Version: 1.0.1
GitRevision: 42773aacced474d97159902d20579a25b1f98106
User: root@832d5020b1d4
Hub: gcr.io/istio-release
GolangVersion: go1.10.1
BuildStatus: Clean

Kubectl:
Client Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.0", GitCommit:"91e7b4fd31fcd3d5f436da26c980becec37ceefe", GitTreeState:"clean", BuildDate:"2018-06-27T20:17:28Z", GoVersion:"go1.10.2", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.5", GitCommit:"f01a2bf98249a4db383560443a59bed0c13575df", GitTreeState:"clean", BuildDate:"2018-03-19T15:50:45Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}

Is Istio Auth enabled or not?
{{ Did you install the stable istio.yaml, istio-auth.yaml.... or if using the Helm chart please provide full command line input }}
$ helm template install/kubernetes/helm/istio --name istio --namespace istio-system > istio.yaml
$ kubectl create namespace istio-system
$ kubectl apply -f istio.yaml

Environment
CentOS 7.4
Cluster state
{{ If you're running on Kubernetes, consider [following the
instructions](http://istio.io/help/bugs/#generating-a-cluster-state-archive
(istio-dump.tar.gz))
)
to generate "istio-dump.tar.gz", then attach it here by dragging and dropping
the file onto this issue. }}

Seems to be working now, I think the "mtls: mode: STRICT" was actually preventing the authorization connection but nothing in the logs to show this.


Release 2.1.8

Codecov Report
Base: 40.61% // Head: 40.18% // Decreases project coverage by -0.43% :warning:

Coverage data is based on head (a128ebc) compared to base (6b3f573).
Patch coverage: 21.05% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #248      +/-   ##
==========================================
- Coverage   40.61%   40.18%   -0.44%
==========================================
  Files          94       94
  Lines        5207     5303      +96
  Branches      588      613      +25
==========================================
+ Hits         2115     2131      +16
- Misses       3092     3172      +80

Impacted Files
Coverage Δ

...public/cases/v2_views/accept_own_org_invitation.py
46.15% <0.00%> (ø)

trade_remedies_public/cases/v2_views/invite.py
30.88% <0.00%> (-3.90%)
:arrow_down:

trade_remedies_public/config/context_processors.py
0.00% <0.00%> (ø)

trade_remedies_public/config/utils.py
23.25% <0.00%> (-1.75%)
:arrow_down:

trade_remedies_public/config/version.py
0.00% <0.00%> (ø)

trade_remedies_public/documents/views.py
55.17% <0.00%> (-1.98%)
:arrow_down:

..._public/cases/v2_views/registration_of_interest.py
32.63% <6.52%> (-3.62%)
:arrow_down:

trade_remedies_public/core/views.py
23.34% <10.00%> (-0.27%)
:arrow_down:

...cases/v2_views/accept_representative_invitation.py
46.47% <27.27%> (-1.91%)
:arrow_down:

trade_remedies_public/registration/forms/forms.py
59.69% <66.66%> (ø)

... and 5 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Add support Windows and Linux

xbar is a good software. I want to use it in other platforms. This software is written in Go, so I think it will not be too difficult to support Windows and Linux. Thank you.

I have used this in Linux.

More precisely, Argos is a GNOME Shell extension that turns executables' standard output into panel dropdown menus. It is inspired by, and fully compatible with, the BitBar app for macOS. Argos supports many BitBar plugins without modifications, giving you access to a large library of well-tested scripts in addition to being able to write your own.

https://github.com/p-e-w/argos

This software is written in Go, so I think it will not be too difficult to support Windows and Linux.

That's a wrong assumption. The programming language itself is rarely the reason for something to work or not work on certain platforms as there is hardly any popular language that doesn't work on all major platforms.
The reason why GUI applications are harder to port to other platforms is usually because of their GUI toolkits, desktop environments, and often other intricacies of the underlying operating systems. And even though xbar is built using Wails which theoretically allows you to build cross-platform GUI applications that's usually only easy for quite simple windowed applications. As soon as you enter deeper territory of the desktop environment, like docks and menu bars, it becomes more difficult.
So, while adding support for more desktop environments directly to xbar could theoretically be possible it would also add a lot of maintenance overhead. Things would have to be tested and kept up-to-date with all target platforms which are evolving as well. That would take quite some bandwidth away from developling actual features.
That is why I personally would be a big fan of a different approach.
The thing that makes xbar (and BitBar before) so great is the simple protocol between plugins and xbar's UI. This should be somehow formalized and versioned, and maybe even extracted into some kind of library or CLI tool, so that a desktop environment specific UI can be built on top of it.
Argos (as mentioned by @xfangfang) kinda already does this but only loosely and I don't think that there's a formalized or even automatable way for it to ensure compatibility.

The Wails project (the tech that allows us to build the xbar UI and to control the menus) is indeed cross-platform, so when Wails v2 is released, we do expect to be able to build xbar for other operating systems. @dAnjou does raise some good points.

@dAnjou does raise good points and full compatibility cross platform is a lofty goal, however not unachievable. For instance, Linux is hard to support as gnome dropped support for system trays but you can hack around it using libappindicator, etc. I'm not even sure you can get text into a windows tray icon.

I think it might be possible to use OpenSwiftUI instead of SwiftUI on Windows and Linux platforms.
https://github.com/Cosmo/OpenSwiftUI

@leaanthony One option is just to build a new UI that looks and works like menus for cases where traditional menu bars are unavailable.
@hmsjy2017 we use Wails, not SwiftUI.

I'm not even sure you can get text into a windows tray icon.

On windows It should be possible to somehow create a "toolbar" to do this. Lenovo usually has something like this to show the battery percentage preinstalled on their laptops (for some reason). Here's a screenshot i found:

Unfortunately, after half an hour of googling about "windows taskbar toolbars" i was no closer to finding the underlying api which allows you to do this. But I am sure there are windows development wizards out there that could help if this turns into a serious effort 😄

@K1ngjulien pystray can do this on windows
https://github.com/moses-palmer/pystray/blob/master/lib/pystray/_win32.py

I'd really like to see this, it would be really useful to be able to share custom xbar plugins with non-Mac users. e.g. in my team we have all 3 of these OSes represented within the team.
I figure there's 2 parts to this:

the xbar app to work on other OSes
Plugin system probably needs a defined way to label/filter plugins by OS

The app
For the most part the xbar code seems pretty cross-platform friendly. I managed to get it to compile & run on linux with just a little refactoring. But sadly, no system tray icon appeared, because ...
Wails un-readiness
Wails itself (v2) doesn't currently support system tray (or much else) on linux or windows ... They have begun ports to windows and linux, but it looks like they're doing one after the other and progress is slow. It might take years to get systray parity with the mac support ... They mention their roadmaps here: https://github.com/wailsapp/wails/issues/661
Alternatives?
I'm not sure if you're aware but https://github.com/getlantern/systray is a decent & workable system tray library in go. I've used it in Mac and Linux happily... There's one awkward limitation though, it only supports a single icon per process. Possibly because of some specific per-os limitations, I don't know the rationale.
I'm going to assume it would be really gross to try to crowbar this library it into xbar instead of wails. I mean, systray does integrate with a webview component but I just figure it'd be a big change for an app which is already working nicely for a lot of folks...
A fork/clone?
I'm tempted to build a compatible xbar clone with getlantern/systray (managing multiple processes to get multiple icons). If argos can do it in js then why not try it in another Go app ...
But really, it'd be nice not to fork/clone the app. It's preferable not to fragment an ecosystem, but I don't have the appetite to work on the C parts of Wails myself...
Any thoughts on how to go about this while playing nicely with the xbar community?

The plugin repo
It would still be good for the plugin repo to be cross-platform, even while the xbar app isn't. By that I think I'm just talking about marking and filtering plugins by OS.
xbar.os?
So, I figure it would be good to define some per-OS tagging support to the plugin system, and to have xbar's plugin browser respect those labels... xbar already defines plugin metadata fields ...

Maybe add a new plugin field xbar.os?
PluginsService.GetPlugins() should filter results by OS? (maybe send OS as a parameter for server-side filtering?)

Probably this warrants its own ticket, but I'm just airing it here first...
Cheers

There are a number of technical reasons why this is hard, and you list some. The fact that there are libraries to do some of the work doesn't get around the fact that for a gui application, you have the problem of who owns the main event loop.
Despite these technical issues, the biggest issue with making xbar cross platform IMHO is that the concept of system trays on both Linux and Windows do not have parity with MacOS. The main difference being that they do not show text next to them. There doesn't seem to be any good solution to this other than to mimic the functionality with hacks that are a support concern, especially on Linux.
No matter what libraries you use, this disparity is still a core issue. Do you have any thoughts on a good solution?

Hi, fair point that Windows can't support text in the systray. The getlantern/systray docs confirm that 'set title' takes no effect in Windows, but it shows text just fine in Linux ... For my use case this one thing isn't a deal breaker... I'm hoping that mytext | icon=x.png could hypothetically be used to indicate a systray icon?
... I'd be happy to use icons for the plugins I have in mind, and I think it's OK generally - assuming the possibility to mark some plugins as 'unsupported' on a per-OS basis, and then a plugin author would need some guidance in order to support multiple platforms ....
Are there any other platform-related obstacles you're aware of?
...

you have the problem of who owns the main event loop.

Sorry, I don't understand how this relates to the cross-platform thing.

The libraries you mentioned all have a Run function that owns the main event loop.

right, and xbar currently owns that loop? OK. Yeah my experiment with getlantern/systray lib is presenting each icon in a separate process and attempting some IPC (not very well as yet)... I don't know specifically why the library works this way but I'm just running with it.
You asked if I had any ideas for cross-platform support... Mainly I have just notes about obstacles and weird workarounds. Maybe some of these are helpful, maybe not ...
Icons vs text for the tray item
Icons vs text - as you say we'd need an alternative for platforms with icon-only tray items, and I haven't thought of anything amazing ...

Generating icons: So far I generated an icon from a font with the first letter of output. It looks OK for my personal use... I tried generating an icon from an emoji, it looked terrible. Possibly a default icon could be substituted in that case...
Named icons? I guess a | and a property could be added to the text, but that wouldn't be consistent with xbar's current format ... not sure how bundling such icons might work. (bundled by plugin or by xbar? maybe a plugin comment-tag could indicate where to fetch them from?)
I added an additional 'first' item show the text in place of the title. I also used this as the entry point for the 'xbar menu'

Refreshing the tray
Generally refreshing works fine in each platform, but with there's some challenges with the specific library I'm using ...

Separators and removals... in systray, it's a bit hard to remove an item, and there's no way to remove a separator. You don't get a reference to it...
I worked aroudn this by retaining a list of sytray menu items and replacing the text / content on refresh. Any extra items get hidden.
I made the 'xbar' item the top item, so that it would be easier to manage, especially with the separator... (this is also the same item which shows the 'title' on Windows). It's not amazing but it works.

Authoring plugins for cross-platform
I feel like it would be really challenging for someone to write a plugin and feel confident it was ready for cross-platform use. Little differences would trip people up IMO... But also dependency management. It'd be hard for someone to say 'well if you're on windwos then you need to install bash, oh and on mac the grep binary needs to be from gnu... etc'

I'm experimenting with a bundled shell and writing some plugins using that shell, such as a world clock plugin and a docker-compose plugin ... I'm trying elvish, it's kinda great to be honest, although it is a bit quirky. I'm beginning to eke out some helper functions for outputting submenus and OS-specific stuff like getting the home directory.
I think one of the nice things about a bundled shell with some library functions would be that you could easily make things composable. (composability is part of the magic of xbar I think, so it might take that further). Like, a plugin could represent a single docker-compose, or you could tweak it to stack multiple docker-compose instances...

OS integration ...

Open directory ... You can just use open / xdg-open / explorer.exe on a directory. That seems straightforward.
Open file. I'm not sure why xbar doesn't have an 'edit plugin script' to go with 'open plugin folder', but it seems like a nice-to-have.. I think it makes sense to drop folks into an editor ($EDITOR or $VISUAL, if set). Not sure what to do if it's not set - probably could make some platform-specific assumptions for (TextPad, Notepad), and maybe a configuration parameter... Hopefully the 'alternatives' system has an appropriate thing for editors in linux...

Wails 2.0 was released yesterday: https://wails.io/blog/wails-v2-released/

Wails 2.0 was released yesterday: https://wails.io/blog/wails-v2-released/

Last, but not least, a huge thank you to Mat Ryer who has provided advice and support during the development of v2. Writing xBar together using an early Alpha of v2 was helpful in shaping the direction of v2, as well as give me an understanding of some design flaws in the early releases. I'm happy to announce that as of today, we will start to port xBar to Wails v2, and it will become the flagship application for the project. Cheers Mat!

That's Awesome!

@matryer do you have an estimate when the ported xBar on Wails v2 could be released?

Is there anything for windows that exists that is at all similar to xbar?

The issue is that tray icons don't support text. Would you run it if it created a bar at the top of the screen permanently? Or maybe there's a better UI?

If it was auto-hide, maybe
On Tue Jan 24, 2023, 08:03 AM GMT, Lea Anthony @.***> wrote:

The issue is that tray icons don't support text. Would you run it if it created a bar at the top of the screen permanently? Or maybe there's a better UI?
—
Reply to this email directly, view it on GitHub https://github.com/matryer/xbar/issues/691#issuecomment-1401519378, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAYAUAII6TO5SMUS55QPLDWT6EEZANCNFSM42M6X5WA.
You are receiving this because you commented.Message ID: @.***>

I am using this on all desktops
https://pkg.go.dev/fyne.io/systray
works well and designed for extensibility

Most plugins output text, and are updated multiple times a minute. Doesn't systray use bubble notifications on windows? So that would mean having a continuous stream of bubble notifications from all enabled plugins?

hey
screenshot:
(https://raw.githubusercontent.com/fyne-io/systray/master/example/screenshot.png)
i don’t have windows to test on though

Yeah Linux isn't a problem (apart from the shambles of whether the user will need to install a shared lib or not as it isn't standard)... It's Windows that has no concept of text next to the tray icon

Can someone run this on windows maybe. I would like to see what it looks like :)
Sorry but just don’t have windows machine.

Yeah Linux isn't a problem (apart from the shambles of whether the user will need to install a shared lib or not as it isn't standard)... It's Windows that has no concept of text next to the tray icon

Fyne has installers and updaters. We can try them

Hey. Is there any update in this case? It would be great to have xbar on Windows 🥰

We would love to do that but what would it look like? Tray menus on windows do not support text so it wouldn't be a 1:1 port. Would it be a bar at the top? Same for Linux.

We would love to do that but what would it look like? Tray menus on windows do not support text so it wouldn't be a 1:1 port. Would it be a bar at the top? Same for Linux.

As mentioned above, there is a systray package that allow to create an icon in the tray menu, but it doesn't support refreshing menu itself.
I guess that it wouldn't be a 1:1 port because yesterday I studied the wails 2.7 package and there are a lot of differences, so probably it should be a new repository calls I don't know... wbar maybe...

Now I noticed that there is a v3-alpha version available of the Wails and there is a new systray package (https://v3alpha.wails.io/whats-new/#systrays) I will try to write something using v3-alpha version for fun :)

OK, I know that the code is not perfect and it should be refactored, but it is a prototype :)
Because I used the xbar mostly for the Jira issues counter, inspired by the python Jira plugin, I've made a simple app with a dynamically generated icon tray icon and issue list.
package main

import (
	"bytes"
	_ "embed"
	"fmt"
	"image"
	"image/png"
	"log"
	"strings"
	"time"

	jira "github.com/andygrunwald/go-jira"
	"github.com/fogleman/gg"
	"github.com/wailsapp/wails/v3/pkg/application"
)

type JIRAAuth struct {
	juser  string
	jtoken string
	jql    string
	uri    string
}

func generateIcon(number int) []byte {
	const size = 16
	dc := gg.NewContext(size, size)

	dc.SetRGB(0, 0, 0)
	dc.Clear()

	dc.SetRGB(1, 1, 1)
	dc.DrawStringAnchored(fmt.Sprintf("%d", number), size/2, size/2, 0.5, 0.5)

	var img image.Image = dc.Image()
	result := new(bytes.Buffer)
	png.Encode(result, img)

	return result.Bytes()
}

func FetchJIRAIssues(JIRA JIRAAuth) *[]jira.Issue {
	tp := jira.BasicAuthTransport{
		Username: JIRA.juser,
		Password: JIRA.jtoken,
	}
	jiraClient, err := jira.NewClient(tp.Client(), JIRA.uri)

	opt := jira.SearchOptions{
		MaxResults: 20,
		Expand:     "summary,issuetype,status,assignee,project",
	}

	issues, _, err := jiraClient.Issue.Search(JIRA.jql, &opt)
	if err != nil {
		log.Fatal(err)
	}

	return &issues
}

func GenerateMenu(app *application.App, systemTray *application.SystemTray, issueTypes []string, JIRA JIRAAuth) int {
	myMenu := app.NewMenu()
	issues := FetchJIRAIssues(JIRA)
	var added bool

	for _, issueType := range issueTypes {
		added = false

		for _, issue := range *issues {
			if strings.ToUpper(issue.Fields.Status.Name) == strings.ToUpper(issueType) {
				if added == false {
					myMenu.Add(issueType).SetEnabled(false)
					added = true
				}

				label := fmt.Sprintf("[%s] %s", issue.Key, issue.Fields.Summary)
				myMenu.Add(label).
					SetTooltip(issue.Key).
					OnClick(func(ctx *application.Context) {
						app.BrowserOpenURL(fmt.Sprintf("%s/browse/%s", JIRA.uri, ctx.ClickedMenuItem().Tooltip()))
					})
			}
		}
	}

	myMenu.AddSeparator()
	myMenu.Add("Go to JIRA Issues").OnClick(func(ctx *application.Context) {
		app.BrowserOpenURL(fmt.Sprintf("%s/issues/?jql=%s", JIRA.uri, JIRA.jql))
	})
	myMenu.Add("Quit").OnClick(func(ctx *application.Context) {
		app.Quit()
	})
	systemTray.SetMenu(myMenu)

	return len(*issues)
}

func main() {
	app := application.New(application.Options{
		Name:        "JIRA Issue Counter",
		Description: "A demo of the Wails v3 API",
		Assets:      application.AlphaAssets,
		Mac: application.MacOptions{
			ActivationPolicy: application.ActivationPolicyAccessory,
		},
	})
	JIRA := JIRAAuth{
		juser<EMAIL_ADDRESS>		jtoken: "jira_ptoken",
		jql:    "assignee = currentUser() ORDER BY created DESC",
		uri:    "https://yourcompany.atlassian.net",
	}
	systemTray := app.NewSystemTray()

	var issueTypes []string
	issueTypes = append(issueTypes, "New")
	issueTypes = append(issueTypes, "In Progress")
	// issueTypes = append(issueTypes, "Oczekuje na odpowiedź klienta")
	// issueTypes = append(issueTypes, "Odpowiedź od klienta")
	// issueTypes = append(issueTypes, "Wstrzymane")

	go func() {
		for {
			cnt := GenerateMenu(app, systemTray, issueTypes, JIRA)
			systemTray.SetDarkModeIcon(generateIcon(cnt))

			time.Sleep(60 * time.Second)
		}
	}()

	err := app.Run()
	if err != nil {
		log.Fatal(err)
	}

}

So yes, it is possible, the wbar will have few limitations, f.ex. it is not possible to put into Windows tray a long text, but it works :)

I'm not even sure you can get text into a windows tray icon.

On windows It should be possible to somehow create a "toolbar" to do this. Lenovo usually has something like this to show the battery percentage preinstalled on their laptops (for some reason). Here's a screenshot i found:

Unfortunately, after half an hour of googling about "windows taskbar toolbars" i was no closer to finding the underlying api which allows you to do this. But I am sure there are windows development wizards out there that could help if this turns into a serious effort 😄

There's a tool called Traffic Monitor can do this.

But its wrote with c, the method is a bit hack. It seems to create a transparent and borderless window as a child window of explorer.exe.

But its wrote with c, the method is a bit hack. It seems to create a transparent and borderless window as a child window of explorer.exe.

Oh wow. I wonder what it looks like if you fill the taskbar with icons or move it to be vertical 😬


feat: eliminate unknown state for better ssr

eliminate unknown state for better ssr

Sorry I screwed this one up. I'll do it in a separate PR.


Revert "Revert "Revert "Revert "Revert "Revert "Revert "Revert "Rever…

…t "Revert "Test 2 (#6)" (#7)" (#8)" (#9)" (#10)" (#11)" (#12)" (#13)" (#14)" (#15)"
This reverts commit 617271e7e69d64c3ed37fe6d139ee0c141db34d6.

/cherry-pick testbranch


request help: How to define apisixroute with  multiple apisix-controller

Issue description
I'm running multiple apisix ingress controller on the same k8s cluster, and I want different apisix ingress controller to read different apisixroute object, in a form similar to ingress-class.
Could you please let me know how to configure it?
Environment

your apisix-ingress-controller version (output of apisix-ingress-controller version --long):
Version: 1.6.0 Git SHA: no-git-module Go Version: go1.19.4 Building OS/Arch: linux/amd64 Running OS/Arch: linux/amd64
your Kubernetes cluster version (output of kubectl version):
Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.0", GitCommit:"c2b5237ccd9c0f1d600d3072634ca66cefdf272f", GitTreeState:"clean", BuildDate:"2021-08-04T18:03:20Z", GoVersion:"go1.16.6", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"24+", GitVersion:"v1.24.6-aliyun.1", GitCommit:"be2c483aa02d6189c93f0b4ca6420c1d37d5c55c", GitTreeState:"clean", BuildDate:"2022-11-16T04:06:26Z", GoVersion:"go1.18.6", Compiler:"gc", Platform:"linux/amd64"} WARNING: version difference between client (1.22) and server (1.24) exceeds the supported minor version skew of +/-1
if you run apisix-ingress-controller in Bare-metal environment, also show your OS version (uname -a):

I don't think this is currently possible. However, if your ApisixRoutes are in different namespaces, say namespaceA and namespaceB, then you can configure one ingress controller to look only at namespaceA and the other only at namespaceB.

thanks for reply,unfortunately my svcs are in the default namespace


Inverse localising values

see issue #169

although the ILV tests pass, there seems to be a rounding error where 0.25 becomes 0


[feature] Allow the Webhook to communicate with the OVH Api via a HTTP proxy

Hello!

Vote on this issue by adding a 👍 reaction
If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

My kubernetes cluster is hosted in a restrictive network that requires using a HTTP proxy in order to access the internet. Currently cert-manager-webhook-ovh doesn't offer any support to specify a proxy in any way when using a Helm Chart.
Please consider implementing this as suggested in PR #17
Affected area/feature

Deployment
Environment variables

If you are looking for this feature and much more, head to https://github.com/aureq/cert-manager-webhook-ovh


monkey patch _get_tiddler_content for cache manifests

PLEASE REVIEW @cdent, @bengillies
I'm not sure whether this is the right place to monkey patch or if there is a better way then monkey patching but this describes what needs to be done!
this ensures that any tiddlers with type text/cache-manifest when
served via the html serialization will have a commented line related
to the version number. This ensures that any updates to tiddlyspace
propagate to clients that have cached common libraries
see #781 for original motivation

Makes sense.
I'm not really sure where to start with this. Are there any existing plugins that do something similar that I could look at?

Not really. I'll cook one up and then perhaps it can be used as an example for other things later.


Performance improvements for table checkboxes event listeners

Description
This is an attempt to have better performance on tables (issue #13631), by using only one event listener on a parent element to handle the checkboxes clicks.
Visual changes
Performance before the change:

Performance after the change:

Functional changes

[x] Code style has been fixed by running the composer cs command.
[x] Changes have been tested to not break existing functionality.
[x] Documentation is up-to-date.

Thanks!


fix default opengraph image

The open graph image currently points to https://swyx.iosyx-ski.jpeg, whereas it should be https://swyx.io/swyx-ski.jpeg
Update siteConfig.DEFAULT_OG_IMAGE with proper trailing slash and SITE_URL to make sure the correct link is used
Example here with the broken image link: https://www.opengraph.xyz/url/https%3A%2F%2Fswyx.io%2F

shit.. no wonder it was broken


DNS queries taking longer than expected

After the computer went to sleep tonight and woke back up DNS queries are taking longer than expected. Restarting the service resolves the issue but is only a stopgap. Add logging or tooling to debug DNS queries

Additional observation - after restarting the service there are nominal amounts of dns requests being processed. Perhaps one per second or so. After this state triggers there's floods of DNS requests seem to be processed

Other observation - when the flood of DNS requests trigger it seems like there's a queue that's backed up because I noticed some DNS requests going to the demo server URL which wasn't expected. I do recall having this page open before putting the computer to sleep but I would not have expected these requests to be getting processed after waking back up.


Arrow resize

Hi,
I'm using slideshow with full width, and resizement.
But when slideshow is resized, arrows are resized too, and I don't want arrows resize that.
How can I disable that?

Please specify $Scale option for $ArrowNavigatorOptions
$ArrowNavigatorOptions {
    ...
    $Scale: 0,
    ...
}


can't unban from the chat

can't unban from the chat even if your admin

Has this been implemented?

yeah i saw a PR


Enable dumping of the intermediate representation source code

This adds a new flag to the glint CLI command that causes it to write out the internal intermediate representation of each file, after it has been transformed into the form that TypeScript itself will "see".
Example usage:
Given an app containing:
//  app/components/example.gts
import Component from '@glimmer/component';
export class A extends Component {
  <template>Hello</template>
}

Run glint --debug-intermediate-representation, and your project dir will also contain:
// GLINT_DEBUG/app/components/example.gts
import Component from '@glimmer/component';

export class A extends Component {
  static { ({} as typeof import("glint-environment-ember-template-imports/-private/dsl")).template(function(𝚪: import("glint-environment-ember-template-imports/-private/dsl").ResolveContext<A>, χ: typeof import("glint-environment-ember-template-imports/-private/dsl")) {
  𝚪; χ;
}) as unknown }
}

Design Decisions
I am not at all wedded to this particular interface, but I think it's reasonable. A few design decisions to note:

The value of cluttering up the public --help documentation with a "behind-the-scenes" option like this may be debatable. I think any downside is outweighed by the ease-of-discovery for new contributors. I kept only the long-form name because I think that implies the verbosity / low-level-nature of the feature.

I'm communicating this option via globalThis instead of adding it to something like GlintEnvironment. IMO, I think it's nicer to not complicate the other interfaces with a purely diagnostic feature like this, which justifies this "back-channel" communication.

I didn't do the file writing inline in @glint/transform because I think it will be easier to port Glint to new environments if a lower-level utility like @glint/transform avoids platform-specific features like fs. Whereas @glint/core/src/cli is already coordinating a lot of environment-specific stuff (like yargs and config file reading).

Thank you, @ef4! This will definitely be useful for folks debugging.

The value of cluttering up the public --help documentation with a "behind-the-scenes" option like this may be debatable. I think any downside is outweighed by the ease-of-discovery for new contributors. I kept only the long-form name because I think that implies the verbosity / low-level-nature of the feature.

Agreed.

I'm communicating this option via globalThis instead of adding it to something like GlintEnvironment. IMO, I think it's nicer to not complicate the other interfaces with a purely diagnostic feature like this, which justifies this "back-channel" communication.

I think that's a reasonable stance, and since it's internal anyway there's nothing stopping us from changing this in the future if for whatever reason we decide to.

I didn't do the file writing inline in @glint/transform because I think it will be easier to port Glint to new environments if a lower-level utility like @glint/transform avoids platform-specific features like fs. Whereas @glint/core/src/cli is already coordinating a lot of environment-specific stuff (like yargs and config file reading).

👍  This aligns with the separation of concerns the packages currently adhere to


Short term roadmap - DRAFT

[x] Increase logging support
[x] Ensure comments provider are additive (core)
[ ] Investigate how active source control provider can control what's visible in the PR viewlets
[ ] PR viewlet should how the union of all remotes (will have picker later on)
[x] Ensure cross-platform support
Architecture

[ ] Ensure clear auth separation
[ ] Basic auth tests
[ ] Ensure clear model separation
[ ] Basic model tests

[ ] Publish preview in Marketplace
[ ] Setup CI
[ ] Investigate alternatives for multi-vendor story; i.e. support PR from providers other than GH

Right now extensions can create SCM source control but there is no way to access current active source control instance. It would be great if we can access them like how to access active text editor, the API can be like
    export namespace scm {
		export let activeSourceControl: SourceControl | undefined;
		export const onDidChangeActiveSourceControl: Event<SourceControl | undefined>;

		/**
		 * ~~The [input box](#SourceControlInputBox) for the last source control
		 * created by the extension.~~
		 *
		 * @deprecated Use SourceControl.inputBox instead
		 */
		export const inputBox: SourceControlInputBox;

		/**
		 * Creates a new [source control](#SourceControl) instance.
		 *
		 * @param id An `id` for the source control. Something short, eg: `git`.
		 * @param label A human-readable string for the source control. Eg: `Git`.
		 * @param rootUri An optional Uri of the root of the source control. Eg: `Uri.parse(workspaceRoot)`.
		 * @return An instance of [source control](#SourceControl).
		 */
		export function createSourceControl(id: string, label: string, rootUri?: Uri): SourceControl;
	}

@kieferrm @rebornix +1! Being able to retrieve the active SourceControl instance would be valuable for Live Share as well. I’d love to see this become possible 😁

//  @joaomoreno fyi

Awesome work guys! Can't wait to use this, been following it closely, gonna be a game changer in the productivity department for sure 😄


Feature request: customize volume increment

First off, I really love this application! I found it when I discovered that my new LG monitor has built-in speakers...
I really love being able to adjust the volume directly from my keyboard.
However, this monitor is SO LOUD! The volume apparently goes up to 100. If I put the volume all the way down, and start to increase it, MonitorControl set the volume from 0, to 6, then to 13 if I increase it again.
The trouble is, 13 is right on the threshold of being too loud. You can hear it across the house! I can't imagine how loud this thing would be if I set it to 100, or even 50.
But then again, 6 is too quiet.
So, I find myself using MonitorControl and the keyboard to set the volume to 13, but then reaching for the actual monitor buttons to bump the sound back down to 11 or 12. Which sort of defeats the purpose!
I am thinking one of the 2 following options would work:

If I could set a custom volume increment for MonitorControl it would be perfect, but maybe it doesn't work this way
Maybe the first option is impossible and it works by percentages... if that is the case, maybe there could be a setting to Override the maximum that the monitor can be set to... Like, if I could set the maximum Monitor volume to be 20, then MonitorControl calculates the percentages out... each time the volume is pressed, it increases/decreases by 2.

Another fix would be to limit the "line out" volume at the system level, but:

I am not sure how to do that myself, and
That's probably out of scope as a feature for this app? But maybe not :)

First, thanks for the great program!
I have the exact same issue with a pair of LG 32BL95U-W 4K monitors.  Pressing the volume up or down on the keyboard after enabling MonitorControl turns the volume up by large incremental steps just as described above 0 > 6 > 13 > 19, etc.  By volume level 19 these monitors are already LOUD.  Would love to be able to adjust the volume granularity and raise / lower the volume on the monitor by 1.  Thanks!

Try holding down Shift and Option when you use the keyboard buttons to increase/decrease volume. The volume should go up in increments of 1/64 instead of 1/16. (works for brightness and keyboard brightness too)

Try holding down Shift and Option when you use the keyboard buttons to increase/decrease volume. The volume should go up in increments of 1/64 instead of 1/16. (works for brightness and keyboard brightness too)

Is there an option or config to modify to make this the default behavior?  Thanks!

Hi, this is a useful request, I assigned it to myself and will try to add this as an advanced option in one of the future releases.

This will be dealt with in this issue:
https://github.com/MonitorControl/MonitorControl/issues/310


Fix INACTIVITY_PENALTY_QUOTIENT description

Issue
It's a very old leftover from https://github.com/ethereum/eth2.0-specs/pull/949#discussion_r278051185: when we didn't update the constant number description when we changed INACTIVITY_PENALTY_QUOTIENT from 2**24 to 2**25.
How to fix it
This PR updates corresponding INVERSE_SQRT_E_DROP_TIME to the right number. Alternatively, we can consider removing this paragraph as @JustinDrake suggested.
/cc @benjaminion for the annotated spec project.

Why was it changed in #949?
I've been operating under the assumption of ~2.5 weeks. Not ~3.5 weeks

Why was it changed in #949? It was listed as "cosmetic" in the PR -- CC @JustinDrake

The previous formula had a // 2 (see INACTIVITY_PENALTY_QUOTIENT // 2 here) which I removed and counter-balanced by changing the constant. The intent was to preserve functionality, i.e. make it a cosmetic change. It is entirely possible I messed up and made a substantive change 😂

@JustinDrake sorry, I didn't notice you removed // 2 in #949 when I read it for this PR. So ifthe previous numbers were correct, this section should be:
The INACTIVITY_PENALTY_QUOTIENT // 2 equals INVERSE_SQRT_E_DROP_TIME**2 where INVERSE_SQRT_E_DROP_TIME := 2**12 epochs (about 18 days) is the time it takes the inactivity penalty to reduce the balance of non-participating validators to about 1/sqrt(e) ~= 60.6%. Indeed, the balance retained by offline validators after n epochs is about (1 - 1/INACTIVITY_PENALTY_QUOTIENT)**(n**2/2); so after INVERSE_SQRT_E_DROP_TIME epochs, it is roughly (1 - 1/INACTIVITY_PENALTY_QUOTIENT)**(INACTIVITY_PENALTY_QUOTIENT/2) ~= 1/sqrt(e).
However, I did some git log trace 🔎

The mysterious // 2 was added in https://github.com/ethereum/eth2.0-specs/commit/53dd49167b095b02f91dea4629e48aff0dd703c8 (#347)

Adds a // 2 to the inactivity leak to compensate for it being applied twice

But, in https://github.com/ethereum/eth2.0-specs/commit/d1d1b73fb1783b564556a48ea86d69d8dd1003e7 (#826), changes, the twice penalties became just one.

Inactivity leak penalty specifically on missing the target, not both the target and the source

Am I correct that we don't even need // 2 after #826, so the true fix should be, simply change INACTIVITY_PENALTY_QUOTIENT from 2**25 to 2**24?
/cc @djrtwo @vbuterin for more 👀 and better memory.

It does indeed seem like INACTIVITY_PENALTY_QUOTIENT should be changed to 2**24. The description that after n epochs the log-balance decreases by (n**2 / 2) / INACTIVITY_PENALTY_QUOTIENT, and so when n = INVERSE_SQRT_E_DROP_TIME = 2**12 the log-balance drops by 1/2, ie. a sqrt-e factor drop, is correct.

closing by #1712


bevy_ecs::world: error[B0003] for Predicted and Interpolated entities on client disconnect

Hey there!
I noticed this warning when a client disconnects with entities that have prediction or interpolation enabled. It’s a harmless one but still a bit annoying, so it'd be great to find a way to silence it. Unfortunately, I don’t have a perfect fix in mind, but here’s what I’ve found.
What I’m Seeing
When the client disconnects, it throws this warning:
WARN bevy_ecs::world: error[B0003]: Could not despawn entity Entity { index: 54, generation: 2 } because it doesn't exist in this World. See: https://bevyengine.org/learn/errors/#b0003

Steps to Reproduce

Run the simple_box example and disconnect the client.
I get this warning for each Predicted and Interpolated entity, specifically their Predicted and Interpolated counterparts.

What I Think is Happening
After some investigation, here’s my theory:

On client disconnect, the OnDisconnect schedule runs, which queues the removal of all Replicated, Predicted, and Interpolated entities for the next tick (?).
Then, after entities are removed, the removal triggers for both the predicted and interpolated systems also activate, re-queuing removal for entities that were already removed.
Finally, I get the Bevy ECS error, which makes me think the error is triggered by these double-queued entities.

Possible Solution?
Entities that are already removed should be skipped, though I’m not entirely sure how to tackle this. I hope my little investigation here helps narrow down a fix!
Thanks!

You're right, those error messages are due to the Disconnect schedule which tries to despawn any replicated entity. It queues a despawn Command, and there's probably some other palce in the codebase which also queues a despawn command.
I would think that this wouldn't happen since I'm guarding despawns with
if let Some(entity_mut) = commands.get_entity(predicted) {
but maybe not!


Type checking failures pass CI checks

Hi @jgoz thanks for the awesome plugin. I've added typechecking as a build step in CI, it seems even when the typechecking fails the build passes the CI check and you get a green build. I've tried a couple things like changing the shell to bash, but figure I'd post an issue and see if you have any obvious insights I'm missing.
Thanks!

Was able to resolve this, unrelated to the plugin as expected

👍 Glad to hear it. Would you mind posting what the problem was, if you have time? Just in case someone else encounters this.
I looked through the code again and saw that it was setting process.exitCode on failure, so I thought it might be related to how esbuild was being invoked in your case.

my custom build script was calling .catch on the errors 🙈


Unable to set the colors

I am sorry if this is a duplicate or known issue, but the language of the current issues where in a foreign language to me.
I am trying to set the colors for the menu by providing the property "colors" to "circle-menu" like this:
<circle-menu class="the-menu" type="bottom" :number="4" mask='black' circle btn colors="[ '#000', '#000', '#000', '#000', '#000' ]">

</circle-menu>

This does not work for me.

circle and btn could not work, it's also happened to me

Same for me, I am unable to set the colors I want:, any solution here?

I rewrite the source code to resolve it :) just modify the circle-button CCS

thanks @mngogo


at_invitation_flutter -- Migrate from package:pedantic to package:lints

Describe the solution you'd like:
Per the guidance from dart-lang/lints:
in pubspec.yaml:

pedantic: ^1.11.0

lints: ^1.0.1

-include: package:pedantic/pubspec.yaml
+include: package:lints/pubspec.yaml

Good day, I will like to work on this issue.


[flakes] enable unfree packages

Summary
To enable unfree packages with flakes, we need to do both of:

set NIXPKGS_ALLOW_UNFREE=1
use --impure flag

There is also an option to do:
nixpkgs {
   config {
      allowUnfree = true;
   }
}

However, I have not done this because:

we'd still need --impure for nix profile install that doesn't use flake.nix.
I couldn't actually figure out how to set config.allowUnfree in our flake.nix since we are using the num-tides flakes-utils to enable the flake to work for all system values.

How was it tested?
in examples/testdata/unfree-packages, I can now do:
DEVBOX_FEATURE_FLAKES=1 DEVBOX_FEATURE_UNIFIED_ENV=1 DEVBOX_DEBUG=1 devbox shell

I was a little concerned that --impure would introduce a lot of other environment variables
into the shell, but I think it is safe for the following reasons.

I tested with a specific env-var:

> export SAVIL=impure-test
> env | grep SAVIL
SAVIL=impure-test

> DEVBOX_FEATURE_FLAKES=1 DEVBOX_FEATURE_UNIFIED_ENV=1 DEVBOX_DEBUG=1 devbox shell
(devbox) > env | grep SAVIL

So, the SAVIL env-var was not included in the devbox shell.

I compared all the env-vars by doing env > env_with_{property}.txt for this branch and the main branch.

From visual inspection, the order of env-vars was different but the number of lines were same.
So, I sorted them alphabetically and then compared them:
❯ cat env_with_main.txt | sort > env_with_main_sorted.txt
(devbox)

❯ cat env_with_impure.txt | sort > env_with_impure_sorted.txt
(devbox)

❯ diff env_with_main_sorted.txt env_with_impure_sorted.txt
77c77
< STARSHIP_SESSION_KEY=7757126821727611
---
> STARSHIP_SESSION_KEY=3237459778369717
92c92
< ZDOTDIR=/var/folders/zv/r3sx92_94gq86_rq3yn1ky2h0000gn/T/devbox3757196048
---
> ZDOTDIR=/var/folders/zv/r3sx92_94gq86_rq3yn1ky2h0000gn/T/devbox1045668199

The differences here are session-specific, and I don't see a lot of other env-vars being introduced due to --impure.

Current dependencies on/for this PR:

main

PR #670   👈

This comment was auto-generated by Graphite.

I think --impure doesn't affect things because we control which env vars make it through to the child shell, instead of just allowing it to inherit everything like nix-shell would do (if you passed --impure)


setObjectCamera Function at 1.0.0 Broke

Describe your bug here.
When i tried the 1.0 Release and testing out some things like setObjectCamera
does nothing it defaults to camGame (game)
Command Prompt/Terminal logs (if existing)
function onEvent(name, value1, value2)
	if name == "blackout" then
		makeLuaSprite('image', value1, 0, 0);
		addLuaSprite('image', true);
		doTweenColor('hello', 'image', 'FFFFFFFF', 3, 'quartIn');
		setObjectCamera('image', 'camOther');
		runTimer('wait', value2);
	end
end

function onTimerCompleted(tag, loops, loopsleft)
	if tag == 'wait' then
		doTweenAlpha('byebye', 'image', 0, 0.3, 'linear');
	end
end

function onTweenCompleted(tag)
	if tag == 'byebye' then
		removeLuaSprite('image', true);
	end
end

Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
No i tested out with Lua

setObjectCamera doesn't work in version 1.0. Temporarily, you can use this:
setProperty('Object.camera', instanceArg('NameCamera'), false, true)
Use that until it's fixed.


wildfly image not working with odo

/kind bug
What versions of software are you using?
Operating System:
Linux fedora 6.2.10-100.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr  6 23:20:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Output of odo version:
$ odo version
odo v3.9.0 (e9c5f8656)

How did you run odo exactly?
$ odo init --name wildfly --devfile java-wildfly --devfile-registry DefaultDevfileRegistry --starter microprofile-rest-client
$ odo dev

Actual behavior
$ odo dev
 Running on the cluster in Dev mode
 •  Waiting for Kubernetes resources  ...
 ✓  Added storage m2-repository to component
 ⚠  Pod is Pending
 ✓  Pod is Running
 ⚠  Back-off restarting failed container
 ⚠  Back-off restarting failed container

$ odo logs
wildfly: tail: cannot watch '/dev/null': Permission denied

Expected behavior
Any logs, error output, etc?

It works for me on MacOS and cluster.
$ odo dev
  __
 /  \__     Developing using the "wildfly" Devfile
 \__/  \    Namespace: default
 /  \__/    odo version: v3.9.0
 \__/

 ⚠  You are using "default" namespace, odo may not work as expected in the default namespace.
 ⚠  You may set a new namespace by running `odo create namespace <name>`, or set an existing one by running `odo set namespace <name>`

↪ Running on the cluster in Dev mode
 •  Waiting for Kubernetes resources  ...
 ✓  Added storage m2-repository to component
 ⚠  Pod is Pending
 ✓  Pod is Running
 ✓  Syncing files into the container [193ms]
 ✓  Executing post-start command in container (command: copy-galleon) [3s]
 ◐  Executing post-start command in container (command: provision-ser...

/close
Bug is specific to the machine. Feel free to reopen if it comes up again.


Added German translation

Also the new build with this PR
app.zip

Thank you! I will make a new release tomorrow :)


fix: update to eye v8.0.4

fix: update to eye v8.0.4

:tada: This PR is included in version 10.0.4 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release
v10.0.4

Your semantic-release bot :package::rocket:


[Don't Merge] Benchmarks

I've adopted Benchmark project from FsPickler. There are some benchmarks that you may find interesting. Some benchmarks fail because of lack of support.  Waiting for your suggestions on benchmarks. Maybe add some other libraries to compare?
BenchmarkRun-20190429-105157.log

Thank you for doing this!
First thing to note: performance has never been priority for me while
writing FSharp.Json. This does not mean I made it slow intentionally, I
just never concentrated on it. Main focus was on strong type consistency:
correct null-safety support, better unions support.
Main reason of slowness (you are right) is in the slow backend which is
JsonValue. JsonValue looked as convenient intermediate layer between
raw data and F# structures: string (or byte array) -> JsonValue -> F#
structures. JsonValue provided me some luxury in FSharp.Json source code,
though this convenience came with performance penalty. Newtonsoft.Json is
using simplest tokenizer under the hood and that's why it's faster.
Switching backend is plenty of work and I think I will need to do it at
some point. Especially for leveraging new Span type. Though FSharp.Json
wasn't designed with swappable backend in mind and as I mentioned
JsonValue is bigger then just tokenizer. So this is not easy. Also
regarding backends made in C# (like Utf8Json): I strongly believe in zero
transitive dependencies approach for such core libraries as JSON
serialization. Internalizing C# code into F# project is not possible as I
know. There are some workarounds but they are not as beautiful as
internalized code to my taste.
On Mon, Apr 29, 2019, 04:18 Daniil Barbashov<EMAIL_ADDRESS>wrote:

Attached run log so you could see exceptions. Waiting for your suggestions
on benchmarks. Maybe add some other libraries to compare?
BenchmarkRun-20190429-105157.log
https://github.com/vsapronov/FSharp.Json/files/3126473/BenchmarkRun-20190429-105157.log
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/vsapronov/FSharp.Json/pull/23#issuecomment-487488385,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGYLNR4KPDJ5PWBACAAYPTPS2VM3ANCNFSM4HJBGP6Q
.


feat(home): change layout of env item [EE-4182]

sync code changes from https://github.com/portainer/portainer-ee/pull/2525
closes EE-4182

/azp run


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 1667 ms

Resolved: Bofrost.at performance has improved in 12c48ba.


Update metadata_test.go

This pr is to add License notice statement information

Please fix in the following way, @431500288
You only have one commit incorrectly signed off! To fix, first ensure you have a local copy of your branch by checking out the pull request locally via command line.  Next run

git push --force-with-lease origin master


create a spec parser that retains line number information

create a spec parser that retains line number information.
This is useful for making linters and such

I'll have a look at it.
It would be indeed quite useful for me, but might prove quite hard to implement, since most of the work is delegated to other dependant packages.
To the very least, it would be a test/integration nightmare to convey line number from bottom - up to the "swagger validate".
@casualjim Here is the idea I was pondering. Please advise.

let's suppose we may build on top of these tools to associate a file and line number to a path
we let most of our tooling unaltered, but extend the validation errors reporting structure with the path of the key
the go-openapi/validate package would publish an error reporting function with path/file/line number context info, given the raw spec definition (remain to be seen: variations between json or yaml raw format)
the top most caller (e.g. swagger validate command) would:

request validation to go-openapi/validate as usual
call the additional go-openapi/validate function to report file/line context

This way, we could scaffold the feature first in the validate package, then later on in go-swagger


How could I customize the renderer in case of exception?

Summary

How could I customize the renderer in case of exception?
when i use oauth2 with allowFormAuthenticationForClients.

AuthorizationServerSecurityConfigurer#clientCredentialsTokenEndpointFilter create OAuth2AuthenticationEntryPoint so i can't customize OAuth2ExceptionRenderer in it's parent AbstractOAuth2SecurityExceptionHandler
the DefaultOAuth2ExceptionRenderer have already fill some converters

i can't find endpoint to customize the renderer, i need some help. plz.
Actual Behavior

Expected Behavior
use customize render

when some things wrong , in DefaultOAuth2ExceptionRenderer#writeWithMessageConverters  i can call  my customize converter to convert exception with a customized json view
Configuration

allowFormAuthenticationForClients = true
Version

spring-security-oauth2-2.3.4.RELEASE
Sample

Best Regards

Thanks for getting in touch, but it feels like this is a question that would be better suited to Stack Overflow. We prefer to use GitHub issues only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add some more details if you feel this is a genuine bug.


Move Documentation to Wiki

@glennrfisher and I had a conversation earlier today where we talked about Github's Wiki feature. He mentioned wanting to move the information in the Documentation folder over.

Documentation has been moved to the gh-pages branch consistent with all the other Watson SDKs.


New package: MinGW-w64.MSYS2 version 4.6.0

Description

Resolve https://github.com/microsoft/winget-pkgs/issues/122962

Checks

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[x] Does your manifest conform to the 1.5 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

This is an installation wizard packaged by Qt Installer Framework.
Available commands and options
PS D:\Workloads\winget-pkgs> .\Packages\msys2-x86_64-20230718.exe --help
Usage: D:\Workloads\winget-pkgs\Packages\msys2-x86_64-20230718.exe [options] command <args> <key=value>

Qt Installer Framework supports both GUI and headless mode. The installation operations can be
invoked with the following commands and options. Note that the options marked with "CLI" are
available in the headless mode only.

Commands:
  in, install - install default or selected packages - <pkg ...>
  ch, check-updates - show available updates information on maintenance tool
  up, update - update all or selected packages - <pkg ...>
  rm, remove - uninstall packages and their child components - <pkg ...>
  li, list - list currently installed packages - <regexp>
  se, search - search available packages - <regexp>
    Note: The --filter-packages option can be used to specify
    additional filters for the search operation
  co, create-offline - create offline installer from selected packages - <pkg ...>
  cc, clear-cache - clear contents of the local metadata cache
  pr, purge - uninstall all packages and remove entire program directory

Options:
  -?, -h, --help                                 Displays help on commandline
                                                 options.
  --help-all                                     Displays help including Qt
                                                 specific options.
  -v, --version                                  Displays version information.
  -d, --verbose                                  Verbose mode. Prints out more
                                                 information. Adding -d or
                                                 --verbose more than once
                                                 increases verbosity.
  -g, --logging-rules <rules>                    Enables logging according to
                                                 passed rules. Comma separated
                                                 logging rules have the
                                                 following syntax:
                                                 loggingCategory=true/false.
                                                 Passing empty logging rules
                                                 enables all logging categories.
                                                 The following rules enable a
                                                 single category: ifw.*=false,
                                                 ifw.category=true. The
                                                 following logging categories
                                                 are available:
                                                 ifw.installer.installlog
                                                 ifw.server
  --ar, --add-repository <URI,...>               Add a local or remote
                                                 repository to the list of user
                                                 defined repositories.
  --at, --add-temp-repository <URI,...>          Add a local or remote
                                                 repository to the list of
                                                 temporary available
                                                 repositories.
  --st, --set-temp-repository <URI,...>          Set a local or remote
                                                 repository as temporary
                                                 repository, it is the only one
                                                 used during fetch.
                                                 Note: URI must be prefixed with
                                                 the protocol, i.e. file:///,
                                                 https://, http:// or ftp://.
  --sp, --system-proxy                           Use system proxy on Windows
                                                 and Linux. This option has no
                                                 effect on macOS. (Default)
  --np, --no-proxy                               Do not use system proxy.
  --su, --start-updater                          Start application in updater
                                                 mode. This will override the
                                                 internal marker that is used to
                                                 distinguish which kind of
                                                 binary is currently running.
  --sm, --start-package-manager                  Start application in package
                                                 manager mode. This will
                                                 override the internal marker
                                                 that is used to distinguish
                                                 which kind of binary is
                                                 currently running.
  --sr, --start-uninstaller                      Start application in
                                                 uninstaller mode. This will
                                                 override the internal marker
                                                 that is used to distinguish
                                                 which kind of binary is
                                                 currently running.
  -t, --root <directory>                         [CLI] Set installation root
                                                 directory.
  --oi, --offline-installer-name <filename>      [CLI] Set custom filename for
                                                 the generated offline
                                                 installer. Without this the
                                                 original filename is used with
                                                 an added "_offline-yyyy-MM-dd"
                                                 suffix.
  -p, --platform <plugin>                        Use the specified platform
                                                 plugin.
  --nf, --no-force-installations                 Allow deselecting components
                                                 that are marked as forced.
  --nd, --no-default-installations               Deselects components that are
                                                 marked as default.
  --ns, --no-size-checking                       Disable checking of free space
                                                 for installation target.
  --sv, --show-virtual-components                Show virtual components in
                                                 installer and package manager.
  -i, --install-compressed-repository <URI,...>  Installs QBSP or 7z file. The
                                                 QBSP (Board Support Package)
                                                 file must be a .7z file which
                                                 contains a valid repository.
  --cl, --create-local-repository                Create a local repository
                                                 inside the installation
                                                 directory. This option has no
                                                 effect on online installers.
  --fp, --filter-packages <element=regex,...>    [CLI] Comma separated list of
                                                 additional key-value pair
                                                 filters used to query packages
                                                 with the search command. The
                                                 keys can be any of the possible
                                                 package information elements,
                                                 like "DisplayName" and
                                                 "Description".
  --cp, --cache-path <path>                      Sets the path used for local
                                                 metadata cache. The path must
                                                 be writable by the current
                                                 user.
  --am, --accept-messages                        [CLI] Accepts all message
                                                 queries without user input.
  --rm, --reject-messages                        [CLI] Rejects all message
                                                 queries without user input.
  --aa, --auto-answer <identifier=value>         [CLI] Automatically answers
                                                 the message queries with the
                                                 message identifier and button
                                                 value. Several identifier=value
                                                 pairs can be given separated
                                                 with comma, for example
                                                 --auto-answer
                                                 message.id=Ok,message.id2=Cance
                                                 l.
  --da, --default-answer                         [CLI] Automatically answers to
                                                 message queries with their
                                                 default values.
  --al, --accept-licenses                        [CLI] Accepts all licenses
                                                 without user input.
  --file-query <identifier=value>                [CLI] Automatically sets the
                                                 QFileDialog values
                                                 getExistingDirectory() or
                                                 getOpenFileName() requested by
                                                 install script. Several
                                                 identifier=value pairs can be
                                                 given separated with comma, for
                                                 example --file-query
                                                 filedialog.id=C:/Temp,filedialo
                                                 g.id2=C:/Temp2
  -c, --confirm-command                          [CLI] Confirms starting of
                                                 installation, update or removal
                                                 of components without user
                                                 input.
  -s, --script <file>                            Execute the script given as
                                                 argument.
  --ss, --start-server <mode, socketname, key>   Starts the application as
                                                 headless process waiting for
                                                 commands to execute. Mode can
                                                 be DEBUG or PRODUCTION. In
                                                 DEBUG mode, the option values
                                                 can be omitted. Note: The
                                                 server will not shutdown on his
                                                 own, you need to quit the
                                                 process by hand.
  --sc, --start-client <socketname, key>         Starts the application to
                                                 debug the client-server
                                                 communication. If a value is
                                                 omitted, the client will use a
                                                 default instead. Note: The
                                                 server process is not started
                                                 by the client application in
                                                 that case, you need to start it
                                                 on your own.
  -q, --squish-port <port number>                Give a port where Squish can
                                                 connect to. If no port is
                                                 given, attach to squish not
                                                 done. Note: To enable Squish
                                                 support you first need to build
                                                 IFW with SQUISH_PATH parameter
                                                 where SQUISH_PATH is pointing
                                                 to your Squish installation
                                                 folder: <path_to_qt>/bin/qmake
                                                 -r SQUISH_PATH=<pat_to_squish>
  --mco, --max-concurrent-operations <threads>   Specifies the maximum number
                                                 of threads used to perform
                                                 concurrent operations in the
                                                 unpacking phase of components.
                                                 Set to a positive number, or 0
                                                 (default) to let the
                                                 application determine the ideal
                                                 thread count from the amount of
                                                 logical processor cores in the
                                                 system.

Arguments:
  Command                                        Command to be run by
                                                 installer. Note that this
                                                 feature may be disabled by
                                                 vendor.
  Args                                           Extra arguments for command,
                                                 each separated by space.
  InstallerValue                                 Key-value pair to be set
                                                 internally by the framework.

This wizzard have default install path pre-configured as an empty string "", so users HAVE TO set an install path in headless mode. This stuff may block Azure Pipeline and cause an Validation-Unattended-Error label.

I believe the package already exists as MSYS2.MSYS2.

Thank you @mdanish-kh , it's my fault. I didn't search it before submitting PR. Checks with winget search and winget show.
This pull request can be close as duplicated.
PS> winget search MSYS2.MSYS2
名称  ID          版本     源
----------------------------------
MSYS2 MSYS2.MSYS2 20230718 winget
PS> winget show MSYS2.MSYS2
已找到 MSYS2 [MSYS2.MSYS2]
版本: 20230718
发布者: The MSYS2 Developers
发布服务器 URL: https://www.msys2.org/
发布服务器支持 URL: https://www.msys2.org/contact/
作者: The MSYS2 Developers
描述: MSYS2 是一套工具和库的集合,为构建、安装和运行原生 Windows 软件提供易于使用的环境。
主页: https://github.com/msys2/msys2-installer
许可证: BSD-3-Clause
许可证 URL: https://github.com/msys2/msys2-installer/blob/main/LICENSE
版权所有: Copyright 2023 MSYS2 devs
发行说明: - The usual round of package updates
发行说明 URL: https://github.com/msys2/msys2-installer/releases/tag/2023-07-18
文档:
  文档: https://www.msys2.org/docs/what-is-msys2/
  Wiki: https://www.msys2.org/wiki/Home/
安装：
  安装程序类型： exe
  安装程序 URL： https://github.com/msys2/msys2-installer/releases/download/2023-07-18/msys2-x86_64-20230718.exe
  安装程序 SHA256： deab67221a974e68a62f5967fe4b6fe895eb396585fe0ed4eaf9f3e656b873e0
  发布日期: 2023-07-18


Add server / linux support once Swift 3 is released

There is a need to run Alamofire on Open Swift server platforms

https://github.com/apple/swift-evolution#development-major-version--swift-30

We're certainly very interested in this possibility! Once we get closer to seeing exactly how the linux Foundation is implemented, we'll start investigating how we'll need to modify Alamofire to support it.
Cheers. 🍻

Development of Swift 3 is almost finished and dispatch/NSURLSession will be supported on Linux. It would be great to start considering working on the possibility to port Alamofire to Linux.

Any news on the development of the above function?

agree any news?

DRAFTED swift 3 docker container + Alamofire. (3 lines of code)
https://gist.github.com/johndpope/01a74ffb93921df48e334097117be1b3
I think an outstanding 'hello world' example would be using protobufs with alamofire serer side.
If anyone's interested - ping me or feel free to check out  https://github.com/johndpope/DockerParseyMcParsefaceAPI.
As the trend of backend development is to go microservices - swift 3 /4/5 will likely find it's niche / foothold there.

Working on stubbing out the classes in NetworkReachabilityManager.swift class if linux os is detected.
https://gist.github.com/johndpope/b09b4560d7a91b638c4ffab356be3516

This Edge framework seems like another nice alternative to alamofire for server side swift https://github.com/SwiftOnEdge/Edge

Suggestion: we should move this discussion to #1935

Yes, all Linux discussion is now in #1935.


Add ability to filter out docker-bench-security container from results

The Docker container that executes the security benchmark tests shows up in a number of warnings that obscures the work needed to secure the target Docker containers.  It would be nice to exclude the container that is running the tests from the analysis by default (or atleast add an option to exclude).

confirmed. guess i should fix instead of just tweeting about it?

@jwilmoth this container should already be excluded. That is why we are using the --label

warnings i get when running are all for the docker-bench-security container itself

@d-a-v-i-- confirmed locally. We have a regression somewhere. /cc @konstruktoid

as mentioned Aug 1: https://twitter.com/daviottenheimer/status/627526813820960768

Sorry for the late reply, I merged #69 which should fix this issue.

Please reopen if #69 didn't fix.


Marketing: Add used by X to README / Create "Made with Earl" badges

L2BEAT has recently migrated to Earl, but there is no way for this change to benefit Earl

Related https://github.com/dethcrypto/earl/issues/66

Closing this as this was cool in 2021, and we probably don't really need this now