jax.scipy.special.expi extremely slow when applied to a jnp.array

Description
Context
jax.scipy.special.expi computes the exponential integral of a negative real x: $Ei(x) \ = \ \int_{-\infty}^{x} \frac{e^t}{t} dt$. As part of jax.scipy.special, it is based on scipy implementation of expi.
Problem
When applied to a scalar, or when applied twice to a tuple, once for each component, expi exhibits no strange behaviour.
However, when applied to a jnp.array, the function is significantly slower than when applied to each component separately - worst, it is even slower than when applied to a tuple, meaning that the "parallel" use of expi is slower than its "sequential" use.
This longer runtime happens only with small values of x in one component of the jnp.array - which is not surprising, given than $Ei$ diverges in $0-$. What is surprising is that it is not that longer in the case of expi being applied to a small scalar...
Reproducible code
import jax.numpy as jnp
from jax.scipy.special import expi
x1 = jnp.array([-1e-5])
x2 = jnp.array([-1.])
x3 = jnp.array([-1e-5, -1.])
%timeit expi(x1)
%timeit expi(x2)
%timeit (expi(x1), expi(x2))
%timeit expi(x3)

Outputs on my computer
In [1]: import jax.numpy as jnp
   ...: from jax.scipy.special import expi
   ...: x1 = jnp.array([-1e-5])
   ...: x2 = jnp.array([-1.])
   ...: x3 = jnp.array([-1e-5, -1.])
   ...: %timeit expi(x1)
   ...: %timeit expi(x2)
   ...: %timeit (expi(x1), expi(x2))
   ...: %timeit expi(x3)
316 µs ± 42.7 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)
361 µs ± 857 ns per loop (mean ± std. dev. of 7 runs, 1,000 loops each)
639 µs ± 954 ns per loop (mean ± std. dev. of 7 runs, 1,000 loops each)
19.1 s ± 15.9 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

Additional remarks
No issues with bigger values of x
As mentioned before, this longer runtime does not happen with bigger values of x:
In [1]: import jax.numpy as jnp
   ...: from jax.scipy.special import expi
   ...: x1 = jnp.array([-2])
   ...: x2 = jnp.array([-1.])
   ...: x3 = jnp.array([-2, -1.])
   ...: %timeit expi(x1)
   ...: %timeit expi(x2)
   ...: %timeit (expi(x1), expi(x2))
   ...: %timeit expi(x3)
1.01 ms ± 57.8 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)
408 µs ± 36.3 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)
1.29 ms ± 1.37 µs per loop (mean ± std. dev. of 7 runs, 1,000 loops each)
1.07 ms ± 37.1 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)

Same behaviour for jax.scipy.special.exp1
In [2]: import jax.numpy as jnp
   ...: from jax.scipy.special import exp1
   ...: x1 = jnp.array([1e-5])
   ...: x2 = jnp.array([1.])
   ...: x3 = jnp.array([1e-5, 1.])
   ...: %timeit exp1(x1)
   ...: %timeit exp1(x2)
   ...: %timeit (exp1(x1), exp1(x2))
   ...: %timeit exp1(x3)
908 µs ± 86.2 µs per loop (mean ± std. dev. of 7 runs, 1 loop each)
1.01 ms ± 2.06 µs per loop (mean ± std. dev. of 7 runs, 1,000 loops each)
1.86 ms ± 2.38 µs per loop (mean ± std. dev. of 7 runs, 1,000 loops each)
19.4 s ± 21.1 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

Workarounds
Honnestly, no idea.
System info (python version, jaxlib version, accelerator, etc.)
I am using python 3.11.9 on a cluster with following jax related packages:
In [3]: import jax; jax.print_environment_info()
jax:    0.4.28
jaxlib: 0.4.28
numpy:  1.26.4
python: 3.11.9 | packaged by conda-forge | (main, Apr 19 2024, 18:36:13) [GCC 12.3.0]
jax.devices (1 total, 1 local): [cuda(id=0)]
process_count: 1
platform: uname_result(system='Linux', node='dnagpu001', release='4.18.0-305.49.1.el8_4.x86_64', version='#1 SMP Wed May 11 09:47:48 EDT 2022', machine='x86_64')

$ nvidia-smi
Mon Jun 10 08:40:09 2024
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.129.03             Driver Version: 535.129.03   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA A100-PCIE-40GB          On  | 00000000:21:00.0 Off |                   On |
| N/A   29C    P0              35W / 250W |  15253MiB / 40960MiB |     N/A      Default |
|                                         |                      |              Enabled |
+-----------------------------------------+----------------------+----------------------+
|   1  NVIDIA A100-PCIE-40GB          On  | 00000000:E2:00.0 Off |                   On |
| N/A   27C    P0              34W / 250W |     74MiB / 40960MiB |     N/A      Default |
|                                         |                      |              Enabled |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| MIG devices:                                                                          |
+------------------+--------------------------------+-----------+-----------------------+
| GPU  GI  CI  MIG |                   Memory-Usage |        Vol|      Shared           |
|      ID  ID  Dev |                     BAR1-Usage | SM     Unc| CE ENC DEC OFA JPG    |
|                  |                                |        ECC|                       |
|==================+================================+===========+=======================|
|  0    1   0   0  |           15216MiB / 19968MiB  | 42      0 |  3   0    2    0    0 |
|                  |               2MiB / 32767MiB  |           |                       |
+------------------+--------------------------------+-----------+-----------------------+

+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0    1    0    2462066      C   ...scaling/alecler1/AlpthNN/bin/python    15170MiB |
+---------------------------------------------------------------------------------------+

It is likely to be related to the following issue:
https://github.com/google/jax/issues/13543#issue-1481352243

Thanks for the report! When running microbenchmarks like this, it's important that you keep in mind the things mentioned in https://jax.readthedocs.io/en/latest/faq.html#benchmarking-jax-code. In particular, your benchmarks don't account for asynchronous dispatch, and also fail to distinguish between compile time and runtime.
In any case, this looks like it's a known issue. expi is implemented in terms of exp1, which has previously been reported to be surprisingly slow on GPU in #13543. I think we can probably close this as a duplicate.

Thank you for your answer! I wanted to do a test on a 1000 x 1000 array at first but the computation with jax.scipy.special.expi was slightly too slow (after 20 minutes, it still had not produced an output).
In any case it looks like it is for now impossible to use expi with small negative values as the computation is way too slow as soon as we have more than one value.
I jitted the function and used %time with block_until_ready for compilation time, and %timeit with block_until_ready for jax runtime, and it is about the same timelength.
What you may find interesting however is that runtime  (be it compilation time or jax runtime) of $Ei(x_1, ..., x_n)$ seems to vary like $\max_i(-\log_{10}(|x_i|))$ for a fixed shape.


[iOS] Access color defined in Asset with Color directly

Kind (Required)

Improvement

Overview (Required)

Currently, to apply asset color to SwiftUI View is a little redundancy like this Color(AssetColor.primary.color) because AssetColor.primary.color 's type is UIColor.
Please be able to use asset color with type Color which can use in SwiftUI directly.
Please implement with editing swift5.stencil

Links

https://github.com/DroidKaigi/conference-app-2021/pull/457#discussion_r643334333

@ry-itto
I wanna take this!

thanks!assigned!


Restrict Selenium Failure fixture to Selenium Tests Only

A test failure fixture was dumping screenshots for all failed tests. It was really only intended for Selenium, so now it's restricted to Selenium.
As suggested by @beliaev-maksim in this comment.

please use Squash


Question on time cost during each iteration by uis-rnn

Sir,
I've trained the d-vectors by your code, but it takes much more time than UIS-RNN's own test sequence which have the same sequence length and dims during each iteration. The phenomenon is just like what I described in the following question.
Thank you in advance.
https://github.com/google/uis-rnn/issues/27

UIS-RNN performs a different task than this project. They recommend the following.
Here test_sequence should be a 2-dim numpy array of type float, corresponding to a single observation sequence.


Season promo homepage

Allows Seasons to be added and displayed on the homepage

Looks like a few breaking tests though.


Python solution for longest common prefix -- DSA450

Have you read the Contributing Guidelines on Pull Requests?
Yes
Description
Link : https://leetcode.com/problems/longest-common-prefix/submissions/
Approach :
Example
Input: strs = ["flower","flow","flight"]
Output: "fl"
We are supposed to return the longest common prefix
Variables :
prefix => longest common substring

Assume the longest common substring to be the first element of the list . prefix = strs[0]
Iterate through the list of words and keep comparing each char of the word with the prefix
If the char of word != char of prefix , reduce the prefix to last matched char
If the word is shorter than the prefix , and all charachters are matched , then prefix = word

Working
prefix = "flower"
i = 1
prefix = "flower" , word = "flow"
f = f , pass
l = l , pass
o = o , pass
w = w , pass
i = 4 , 4 >= len("flow") , prefix = "flow"  , break
i = 2
prefix = "flow" , word = "flight"
f = f , pass
l = l , pass
o != i  => prefix = prefix[:i] = "fl" , break
o/p = "fl"
TC : O(mn)
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.

Related Issues or Pull Requests
#921
Fill up the DCP form
If you are a part of DCP 21, fill up this form after the PR is merged.
The links provided in the form will be checked thoroughly, if someone tries fooling around, strict actions will be taken against the individual.

Please review @smv1999


Cannot read property 'name' of undefined

Hello,
I'm new in the Miscrod world, so I probably didn't configure it correctly.
I use version 4.1.5 on Windows 10 1809 x64.
Miscord shut down randomly, when someone writes a message on Messenger, and get this error :

Cannot read property 'name' of undefined
TypeError: Cannot read property 'name' of undefined
at Object.module.exports [as discord] (C:\snapshot\miscord\lib\createMessage\fromMessenger.discord.js:10:117)
at module.exports.Promise.all.channels.map (C:\snapshot\miscord\lib\messenger\listener.js:36:48)
at Array.map ()
at ApiEmitter.module.exports (C:\snapshot\miscord\lib\messenger\listener.js:35:30)
at process._tickCallback (internal/process/next_tick.js:68:7)

For the moment, I downgraded to 4.1.4, to see if I get the same problems.
Thanks for your help.

I didn't get this error with version 4.1.4 of Miscord.

(apparently it means the sender is undefined)

Also, it should be working in 4.1.6.

Didn't have this problems on 4.1.3.
I upgraded to 4.1.6, and didn't have this problem.


Add Order to SurveyQuestion

We need a attribute for question order so they are displayed properly when delivered.

I've started tackling this in PR 184


we properly rebuild the sysroot now when MIRI_LIB_SRC contents change

Thanks to https://github.com/RalfJung/rustc-build-sysroot/pull/16

@bors r+

:pushpin: Commit 3fbfc604e3afabf093d408b7e0156b1f0eb6effd has been approved by RalfJung
It is now in the queue for this repository.

:hourglass: Testing commit 3fbfc604e3afabf093d408b7e0156b1f0eb6effd with merge 6cb0c02e168c065e9d12ab4f18329fd9a21ad7e7...

:sunny: Test successful - checks-actions
Approved by: RalfJung
Pushing 6cb0c02e168c065e9d12ab4f18329fd9a21ad7e7 to master...


Upgrade github checkout actions & support node>=8

@gnought I think we can drop nodejs 8 like aedes

depends on @mcollina decision

let’s do that


Can't create forwarding host.v1 config

Hello there!
Was wandering around the documentation of host.v1 and found out that its possible to forward traffic from the tunnel without explicitly specifiying service endpoint.
https://openziti.io/docs/reference/config-types/host.v1#forwarding-configuration
So I took an example json config from the page and tried to execute it, but upon trying to create a host.v1 config the ziti edge outputs a nasty issue as follows:
 ziti edge create config test-forward.host.v1 host.v1 -f openziti-host.json
error: error creating configs instance in Ziti Edge Controller at https://myzitictrl.com:1280/edge/management/v1. Status code: 400 Bad Request, Server returned: {
    "error": {
        "cause": {
            "field": "(root)",
            "reason": "(root) is invalid: (root): Must validate \"then\" as \"if\" was valid",
            "value": "map[allowedAddresses:[<IP_ADDRESS>/24 <IP_ADDRESS>/16] allowedPorts:[map[high:2048 low:1024]] allowedProtocols:[tcp udp] forwardAddress:true forwardPort:true forwardProtocol:true]"
        },
        "code": "COULD_NOT_VALIDATE",
        "message": "The supplied request contains an invalid document or no valid accept content were available, see cause",
        "requestId": "s4ahWE34A"
    },
    "meta": {
        "apiEnrollmentVersion": "0.0.1",
        "apiVersion": "0.0.1"
    }
}

At the same time an example for listen options works fine.

can you share the contents of openziti-host.json? Generally speaking this is a subtle failure in the json being incorrect. The error message that comes back from that situation is often "really hard to figure out"... :(

It is straight from the docs. Just took and pasted it.

I feel like I'm missing something. Did you generate an openziti-host.json file? I'm asking for the contents of that file as you have it on your system. Could you share the contents of the file? I don't see openziti-host.json anywhere on the link you shared?

I feel like I'm missing something. Did you generate an openziti-host.json file? I'm asking for the contents of that file as you have it on your system. Could you share the contents of the file? I don't see openziti-host.json anywhere on the link you shared?

Sorry for miscommunication.
Its literally the example.

[openziti-host.json](https://github.com/user-attachments/files/16662130/openziti-host.json)

➜  ~ ziti edge version
Version     : v1.1.7
GIT revision: 94013fe4af89
Build Date  : 2024-07-16T13:15:20Z
Runtime     : go1.22.5

Thanks that's what I was wondering. So believe it or not this error is due to that example and this one change.
Update allowedPorts to allowedPortRanges and it'll work. I'll put a PR up for this example to fix it

Thanks that's what I was wondering. So believe it or not this error is due to that example and this one change.
Update allowedPorts to allowedPortRanges and it'll work. I'll put a PR up for this example to fix it

Ooops. And I didn't look into the specification right above this example showing exactly 'allowsPortRanges'
Thanks for the help here though!!!!!
I think this could be closed with a PR, or feel free to close it.

https://github.com/openziti/ziti-doc/pull/934 will fix it... I'll close it since it'll merge soon..


Typo in NodeClass.ts

On the file NodeClass.ts at  L406, the code defines an import that has a typo.
source = `import "pkg:/source/roku_modules/mc/Tasks.brs"

The problem is that the file Tasks.brs is no longer under the mc folder in the maestro-roku main repository. It is now under core/.
The typo causes a wrongly generated import when installing with ropm, for all the files that use the @observerswaitinitialize annotation.

I would have opened a PR with a fix, but I'm not sure if it should be:

import "pkg:/source/roku_modules/core/Tasks.brs, or
import "pkg:/source/roku_modules/maestro/core/Tasks.brs

Dependencies to reproduce:
"bslib": "npm<EMAIL_ADDRESS>"log"<EMAIL_ADDRESS>"maestro"<EMAIL_ADDRESS>

update on this. I believe it's a ropm issue.. I'll get more info to Bron about this in due course


Merge nested configs instead of overriding

Changing background color by adding config to a scene is not possible. it is overridden by the config defined in constants (LOW_QUALITY_CAMERA_CONFIG), even when the constant does not define the color. This happens because the "camera_config" is nested, so its content is never compared.
With this change nested configuration is merged instead of overridden. The change is tested on several scenes from hanoi.py, and does not break any of the tested scenes.

Thanks!


KvQ: use log-log consistently throughout package

We have the choice of relating K to Q as K ~ Q, ln(K) ~ ln(Q), K ~ ln(Q), or something else. We know that K600 is always >0 and can be in the tens or hundreds, and preliminary model runs with ln(K) ~ ln(Q) haven't looked bad, and @cyack's models use ln(K) ~ ln(Q). So at least for now, I'd like to use ln(K) ~ ln(Q), and I'd like to use them in all models for consistency across the package. This requires:

[ ] 1a. Implement b_Kb models with ln-ln, renaming parameters as necessary to indicate distribs
[ ] 1b. Update plot_distribs to reflect ln-ln relationships for b_Kb priors
[ ] 1c. Choose reasonable defaults for b_Kb priors to put in specs()
[ ] 2a. Switch K600_daily distribs from normal to lognormal (for b_np and all other b models)
[ ] 2b. Update plot_distribs to reflect lognormal distribution of K600_daily
[ ] 3a. Switch b_Kl models to ln-ln
[ ] 3b. Update plot_distribs to reflect ln-ln relationships for b_Kb priors
[ ] 3c. Choose reasonable defaults for b_Kl priors to put in specs()
[ ] 4a. Switch b_Kn models to ln-ln
[ ] 4b. Update plot_distribs to reflect ln-ln relationships for b_Kb priors
[ ] 4c. Choose reasonable defaults for b_Kn priors to put in specs()
[ ] 5. Ensure that examples and applications everywhere are converted to the new specs names

Caveats
I have some hesitations about going log-log:

I don't love logs because they're hard to think about and choose parameters for
My limited experience with lognormally distributed error parameters suggests that MCMC algorithms for lognormally distributed variables shoot to unrealistically high values more often than my intuition says is right (and with the consequence of slower convergence). But maybe that's because error parameters are especially tough?
Modeling log(K) is also not strongly precedented in the literature, though few have taken on the exact question of choosing a statistical distribution for K600 (see below).

Precedents
Fig 3 of Hall et al. 2012 has K600 (d-1) vs discharge (m3 s-1) on linear x and y axes, but this is just for a sample with narrow range for a single river.
Table 2 of Raymond et al. 2012 has k600 (m d-1) as functions of intercepts plus [discharge (m3 s-1) raised to small exponents] multiplied by velocity, slope, and/or depth also raised to exponents.
For lakes, Figs 2 & 3 of Vachon and Prairie 2013 have k600 (cm h^-1) as a linear function of wind speed (m s^-1) and as a linear function of log maximum wave height (m). they cite 6 other papers that also use linear functions to relate k600 to wind speed. Different systems, yes, but again we have k600 (m d-1) showing distributions that aren't being logged before modeling.
For large rivers and estuaries, Fig 2 of Raymond and Cole 2001 relates k600 (cm h^-1) to wind speed (m s^-1) as log(k600) ~ a + b*U.
@cyack suggested lognormal distributions for K within discharge bins, where the Q bins are partitioned on a log scale, with each bin's K also lognormally distributed relative to the previous bin's K #224.
streamMetabolizer's metab_Kmodel uses log-log relationships by default: https://github.com/USGS-R/streamMetabolizer/blob/develop/R/specs.R#L334 . One benefit is that this relationship ensures K is positive, though for Stan models it's possible to ensure that in other ways, e.g., by declaring K600_daily to have a lower bound of 0.
Citations
Hall, R. O., T. A. Kennedy, and E. J. Rosi-Marshall. 2012. Air–water oxygen exchange in a large whitewater river. Limnology and Oceanography: Fluids and Environments 2:1–11.
Raymond, P. A., and J. J. Cole. 2001. Gas Exchange in Rivers and Estuaries: Choosing a Gas Transfer Velocity. Estuaries 24:312–317.
Raymond, P. A., C. J. Zappa, D. Butman, T. L. Bott, J. Potter, P. Mulholland, A. E. Laursen, W. H. McDowell, and D. Newbold. 2012. Scaling the gas transfer velocity and hydraulic geometry in streams and small rivers. Limnology and Oceanography: Fluids and Environments 2:41–53.
Vachon, D., and Y. T. Prairie. 2013. The ecosystem size and shape dependence of gas transfer velocity versus wind speed relationships in lakes. Canadian Journal of Fisheries and Aquatic Sciences 70:1757–1764.

How many of the distributions involved should be lognormal? For example, in Kn models, should K600_daily_mu be lognormally distributed with K600_daily_mu_meanlog, K600_daily_mu_sdlog, AND should K600_daily be lognormally distributed around K600_daily_mu? Or just one? In Kl models, how should the intercept and slope be distributed?
Bringing some data to this, using unpooled MLE estimates of K600 for a random sampling of 20 of the powstreams sites.
library(mda.streams)
library(dplyr)

login_sb()
mmrs <- list_metab_runs() # use this to choose the metab_run to use in list_metab_models below
mms <- parse_metab_model_name(list_metab_models("151125 0.0.13 PRK_initial")) %>% tibble::rownames_to_column('name')
qs <- list_sites('dischdaily_calcDMean')
goodmms <- filter(mms, site %in% qs)

# download and package 20 sites worth of K estimates and Q data
mmobjs <- lapply(sample(goodmms$name, 20), get_metab_model, update_sb = F)
mmdf <- lapply(mmobjs, function(mm) {
  Qs <- get_ts(c('sitedate_calcLon','dischdaily_calcDMean'), mm@info$config$site) %>% v() %>%
    select(date=sitedate, dischdaily)
  v(mm@fit) %>%
    select(date, K600) %>%
    mutate(site=mm@info$config$site) %>%
    left_join(Qs, by='date')
}) %>% bind_rows()

# normal version
ggplot(mmdf, aes(x=K600, fill=site, color=site)) + geom_density() + facet_wrap(~ site, scales='free') + xlim(0,100) + guides(fill=FALSE, color=FALSE)

# lognormal version
ggplot(mmdf, aes(x=K600, fill=site, color=site)) + geom_density() + facet_wrap(~ site, scales='free') + scale_x_log10() + guides(fill=FALSE, color=FALSE)

Within sites, from these plots I'm thinking we could reasonably go either way: the values I probably believe are plausibly normal, while when you include the high (outlier?) values the distributions look plausibly lognormal.
And across sites?
# across-site variation + normality tests
mmstats <- mmdf %>%
  group_by(site) %>%
  summarize(
    K600_mean = mean(K600, na.rm=TRUE),
    K600_sd = sd(K600, na.rm=TRUE),
    K600_meanlog = mean(log(K600[K600 > 0]), na.rm=TRUE),
    K600_sdlog = sd(log(K600[K600 > 0]), na.rm=TRUE),
    shapiro_p = shapiro.test(K600)$p.value)

# a little more on within-site normality: passes the shapiro-wilk normality test most of the time
> table(mmstats$shapiro_p < 0.05)
##FALSE  TRUE
##    1    19

mmstats %>% select(-site) %>% summarize_all(median)
### A tibble: 1 × 5
##  K600_mean  K600_sd K600_meanlog K600_sdlog    shapiro_p
##      <dbl>    <dbl>        <dbl>      <dbl>        <dbl>
##1  29.41259 331.8827     1.832927   1.006331 1.718084e-57

library(cowplot)
cowplot::plot_grid(
  ggplot(mmstats, aes(x=K600_mean)) + geom_density(fill='chartreuse3'),
  ggplot(mmstats, aes(x=K600_sd)) + geom_density(fill='chartreuse3'),
  ggplot(mmstats, aes(x=K600_meanlog)) + geom_density(fill='navy'),
  ggplot(mmstats, aes(x=K600_sdlog)) + geom_density(fill='navy'))

Across sites, I think it's reasonable to say that the site averages for K600 are lognormally distributed.

What about KvQ? Here are plots from the MLE-based estimates of K, which we believe to be pretty weak:
ggplot(filter(mmdf, !is.na(K600) & !is.na(dischdaily)), aes(x=dischdaily, y=K600, color=site)) +
  geom_point() + scale_x_log10() + scale_y_log10() +
  facet_wrap(~ site, scales='free') + guides(color=FALSE)

And for another randomly selected set of 20 sites, re-running code from the previous comment:

What priors could we use for a linear relationship between lnK and lnQ?
library(broom)
library(tidyr)
kq <- mmdf %>%
  filter(!is.na(K600) & K600 > 0 & !is.na(dischdaily)) %>%
  group_by(site) %>%
  do(broom::tidy(lm(log(K600) ~ log(dischdaily), data=.))) %>%
  mutate(term = ifelse(term=='(Intercept)', 'intercept', 'slope')) %>%
  select(site, term, estimate) %>%
  spread(term, estimate)

ggplot(kq, aes(x=intercept, y=slope, color=site)) + geom_point()

plot_grid(
  ggplot(kq, aes(x=intercept)) + geom_density(fill='purple'),
  ggplot(kq, aes(x=slope)) + geom_density(fill='royalblue'))

These look reasonably normal to me, reasonably centered on intercept=2, slope=0.

The same plots for a new sample of 100 sites:

Setting some default priors in specs.
np and Kn
Because
# compute stats
mmstats <- mmdf %>%
  group_by(site) %>%
  summarize(
    K600_median = median(K600, na.rm=TRUE),
    K600_mean = mean(K600, na.rm=TRUE),
    K600_sd = sd(K600, na.rm=TRUE),
    K600_medianlog = median(log(K600[K600 > 0]), na.rm=TRUE),
    K600_meanlog = mean(log(K600[K600 > 0]), na.rm=TRUE),
    K600_sdlog = sd(log(K600[K600 > 0]), na.rm=TRUE),
    shapiro_p = shapiro.test(K600)$p.value,
    shapiro_p_log = shapiro.test(log(K600[K600 > 0]))$p.value,
    skew = e1071::skewness(K600, na.rm=TRUE, type=2),
    skew_log = e1071::skewness(log(K600[K600 > 0]), na.rm=TRUE, type=2))
> mmstats %>% select(-site) %>% summarize_all(mean)
# A tibble: 1 × 10
  K600_median K600_mean  K600_sd K600_medianlog K600_meanlog K600_sdlog   shapiro_p shapiro_p_log     skew skew_log
        <dbl>     <dbl>    <dbl>          <dbl>        <dbl>      <dbl>       <dbl>         <dbl>    <dbl>    <dbl>
1    6.738051  189.8936 2651.921       1.700344     1.770609   1.223438 0.002388875   0.001197968 19.92564 1.234337

we set
  # hyperparameters for non-hierarchical K600
  K600_daily_meanlog = log(6),
  K600_daily_sdlog = 1,

  # hyperparameters for hierarchical K600 - normal
  K600_daily_meanlog_mu = log(6),
  K600_daily_meanlog_sigma = 1,

Kl
Because
> mean(kq$intercept)
[1] 1.904081
> sd(kq$intercept)
[1] 2.366613
> mean(kq$slope)
[1] 0.05752507
> sd(kq$slope)
[1] 0.5173838

we set
  # hyperparameters for hierarchical K600 - linear. defaults should be
  # reasonably constrained, not too wide
  lnK600_lnQ_intercept_mu = 2,
  lnK600_lnQ_intercept_sigma = 2.4,
  lnK600_lnQ_slope_mu = 0,
  lnK600_lnQ_slope_sigma = 0.5,

Kb
Because of the above and
ggplot(mmdf, aes(x=dischdaily, color=site)) + geom_density() + guides(color=FALSE) + scale_x_log10()

we set
  # hyperparameters for hierarchical K600 - binned. -3:3 will catch most
  # streams to rivers as a first cut, though users should still modify
  lnK600_lnQ_nodes_centers = -3:3, # the x=lnQ values for the nodes
  lnK600_lnQ_nodes_meanlog = rep(log(6), length(K600_daily_lnQ_nodes)), # distribs for the y=K600 values of the nodes
  lnK600_lnQ_nodes_sdlog = rep(1, length(K600_daily_lnQ_nodes)),

looks good. ran tests and vignettes, found no specs needing renaming.


use error handling instead of abort in immut/list package

nth_exn nth head head_exn last

There should be at least one function that is unchecked so that

There's no performance penalty
Allow program to crash directly if an invariant is not respected

#923


uv tool install should hint correct package when executable is provided by a dependency

e.g. this command works:
uvx fastapi

but
uv tool install fastapi

fails because fastapi is provided by fastapi-cli (see #5017 for details).
In this error case, uv tool install should detect that an executable matching the requested package name is provided by a dependency and suggest uv tool install fastapi-cli instead.

That's a nice idea. Somewhat expensive but not terrible (and it's an error case anyway).

Yeah I don't love scanning the entire site packages for executables but since it's on-error 🤷♀ we could limit to direct dependencies if we wanted to optimize later.

Should be cheap, it's just reading RECORD files.

I can pick this one up!


GitHub Pages improperly configured

@huwaireb  Instead of using typst-community.github.io CNAME'ed to typst.community so that typst.community/typst.js/ points to https://github.com/typst-community/typst.js, typst.community is CNAME-linked to https://github.com/typst-community/typst.community only lol
Make this work just like jcbhmr.me does with https://jcbhmr.me/ghmd.css/ <=> https://github.com/jcbhmr/ghmd.css pls thx 🙏
site is live https://typst-community.github.io/typst.js/
but not https://typst.community/typst.js/

Solved from Discord. 👍


Make minimal PHP version 7.1

Recent changes (or maybe older one too) makes the library incompatible with PHP older than 7.1.
Here is a PR to update the composer.json file accordingly.

I realize that ad81d0c uses the mixed type, which was added in PHP 8.0

I tried the mixed return from ad81d0c, but it works for me for PHP 7.2 - 8.1, or my test is wrong:
<?php
declare(strict_types=1);
error_reporting(E_ALL);
ini_set('display_errors', '1');
class Test {
	public function offsetExists($offset): bool
	{
		echo $offset;
		return false;
	}
}
$t = new Test();
$t->offsetExists(PHP_VERSION."\n");

fabrice@mario:~$ php8.1 test.php
8.1.1
fabrice@mario:~$ php8.0 test.php
8.0.14
fabrice@mario:~$ php7.4 test.php
7.4.26
fabrice@mario:~$ php7.3 test.php
7.3.33
fabrice@mario:~$ php7.2 test.php
7.2.34

Wow, shame on me. Ok sorry!

I've just set the minimum php version to 8.0

Okay, minimum version is now 7.1


envoy: Pass nil completion if Acks are not expected.

[ upstream commit 8babf8dff27bc5eeef391cd01084474e14069293 ]
Completions are cleaned up when an ack or nack for the resource type
is received. This never happens if there are no configured L7 proxies.
Prevent indefinite collection of completions in this case by passing
nil completion to Upsert().
Fixes: 99a73a2fbd ("envoy: Update revision upon acks from NPDS")
Signed-off-by: Jarno Rajahalme<EMAIL_ADDRESS>

This change is

test-me-please

test-missed-k8s

test-docs-please

For reference: this is backport of #5911

Runtime tests were interrupted, no failures, testing again.

test-me-please

This needs to be backported to 1.0 as well


improve error message on invalid element names

I just got this error message (because I didn't have a "-" in my element name)
Uncaught SyntaxError: Failed to execute 'registerElement' on 'Document': Registration failed for type 'sentence'. The type name is invalid.
and a JS stack trace.
There was no reference to the file:line that was doing something bad.
Also the use of "type" in the exception but "element" everywhere else is unhelpful.

Just had the same issue. Found no reference on elements having to have a "-" in their names. This should be document, or even better fixed so elements don't have to contain a "-".
Am using Polymer 1.0.

@HoverBaum
I think polymer is following the w3c draft regarding custom elements. It under chapter 4, saying

... must contain a U+002D HYPHEN-MINUS character ...

I think. xD not so sure.

@accidentallyc
Following the standard seems to make sense. So I shouldn't be talking about "fixing" things for Polymer. Though I still think this could be worth documenting better in the Polymer docs. (Actually it's documented in the polymer-generator readme.)

It is actually documented in the tutorial too but it's easy to miss. Good
error messages would make things a lot easier.

+1 to better baked in errors here :)
CC @ebidel @tjsavage

We have this documented in a bunch of places, but it's still easy to miss:
https://www.polymer-project.org/1.0/docs/devguide/registering-elements.html#register-element
https://www.polymer-project.org/1.0/docs/start/quick-tour.html#register
http://www.html5rocks.com/en/tutorials/webcomponents/customelements/#gettingstarted
I think we can improve the error message though.

Actually, this is the error message document.registerElement throws back in the browser. Can you file a  crbug.com and post it here?
Ex: document.registerElement('abc') produces this message.

@ebidel hope I did what you asked for https://code.google.com/p/chromium/issues/detail?id=538668&thanks=538668&ts=1443807038

Dupe of #2736


Support multiple credential sets on different login pages

Some websites also allow you to optionally log in with Gmail. This means that users may be entering application-specific credentials into the primary login page, or entering Gmail credentials into a proxied Google oauth page. However, Evilginx2 currently only supports identifying a single login page and a single set of credentials.
Currently, the only workaround I have found is to define two separate phishlets, having a dedicated Google phishlet operate for stealing the Google credentials. However, this creates a separate session and is not easily associated with the initial lure. While that's not really a problem if you're just trying to phish credentials, associating the act with the initial lure is important in a "white-hat" setting.

**Hi 👽 ! If you are interested in ⚙Advanced Phishing⚙ and the ✨Evilginx3✨ tool then I offer you Google Gmail and Custom Phishlets with a ✅Free Tutorial✅ which arrives if the 📈Telegram reaches 50 Subscribers📈
⏳ GOOGLE GMAIL PHISHLET 2024 WITH PROOF ⏳
->
⛔https://www.youtube.com/watch?v=nA47UknIE6A⛔
🔓 Ask your questions and a free tutorial from 50 subs on telegram !!!
->
📩https://t.me/Noremorse1011📩**


Bumps upperbound on postgresql-simple to allow new 0.5.* versions

The CI error is due to a lower bound on postgresql-simple itself, should pass with a stricter lowerbound - see lpsmith/postgresql-simple#164

Great, thanks.


Adding s3 bucket sink

Changes

as per title

/kind

Fixes #

Release Note

Docs

I used the archetype now as:
mvn archetype:generate \
 -DarchetypeGroupId=dev.knative.eventing \
 -DarchetypeArtifactId=kn-connector-archetype-sink \
 -DarchetypeVersion=1.0-SNAPSHOT \
 -DartifactId=aws-s3-sink \
 -Dkamelet-name=aws-s3 \
 -Dcomponent-name=aws2-s3

the pom.xml diff is manually - I just added the sink module.
I reverted the change from the archetype since it was adding new lines after each existing line. Was very verbose

I reverted the change from the archetype since it was adding new lines after each existing line. Was very verbose
yes, Maven archetype process goes wild on formatting the existing POM. Revert and adding the module manually is the best option for now. thanks


Updating a Group throgh SCIM2 gives a unmatching action log in the carbon console

Suggested Labels
Affected : 5.8.0- alpha2
Severity: Major
Priority: High
Component: SCIM2
Type-Bug, Type: QA-Testing,
Environment
IS 5.8.0-m27
2 node cluster against Mysql 5.7
Ubuntu 16.04
Steps to reproduce.

Enable JDBC userstore in usr-mgt.xml

Set Enable SCIM to true

Create  a group using SCIM2 providing the display name as manager
Sample Request
curl -v -k --user admin:admin --data '{"displayName":"manager"}' --header "Content-Type:application/json" https://is580.qa.com:443/scim2/Groups

Update the group to display name worker using a PUT request
Sample Request
curl -v -k --user admin:admin -X PUT -d '{"displayName":"worker"}' --header "Content-Type:application/json" https://is580.qa.com:443/scim2/Groups/6a6a3341-052b-45d2-8701-eb39b8c28816

Actual Behavior
In the carbon console following log will be displayed
TID: [-1234] [] [2019-03-21 09:59:13,031]  INFO {org.wso2.carbon.identity.scim2.common.impl.SCIMUserManager} -  Group: PRIMARY/worker is updated through SCIM.
But its not the worker role that got updated its the original role manager that got updated as worker. Therefore the log that gets printed in the carbon console does not match with the actual action happened.

@malithie
Verified this issue against a IS 5.8.0 alpha 5 fresh pack with LDAP default userstore and issue is still getting reproduced
[2019-04-09 14:15:16,084]  INFO {org.wso2.carbon.identity.scim2.common.impl.SCIMUserManager} -  Group: PRIMARY/manager is created through SCIM.
[2019-04-09 14:16:43,637]  INFO {org.wso2.carbon.identity.scim2.common.impl.SCIMUserManager} -  Group: PRIMARY/worker is updated through SCIM.

Changes were merged into scim2 inbound provisioning connector version 1.2.25  and change not included in IS 5.8.0 alpha 5 (scim2 inbound provisioning connector version 1.2.22).

Changed the milestone accordingly


Updates Brain decoding session 2022

This PR entails the first set of updates for the brain decoding session.
Specifically, this comprises:

updating the intro page
removing the encoding part as this will be its own tutorial
updating the Haxby tutorial dataset introduction

The other parts of the session, ie SVM, MLP, and GCN will be updated by the respective instructors and submitted correspondingly. Tagging @bthirion & @srastegarnia so they're up to date.

I like the capybara


[FEATURE]: Add textual content and Hero Component

Description
Making a Hero Component
Currently our website doesn't have a central Hero Component that renders content which is mentioned in the design folder, so we need to implement the changes as mentioned. This Issue is made to track the content according to New Design
TL;DR

[ ] Make a Typescript/JavaScript component for main page
[ ] Add the text as mentioned in the design

Expected Behaviour

Current Behaviour

Additional information
Link to the design

Hey, @AbhijithGanesh  can you assign me? I would like to work on it


Asset publishing before conversion breaks imports

https://github.com/yiisoft/yii2/blob/5406e5dad3eaa4e9d58f65bb565d37adc4307f3b/framework/web/AssetBundle.php#L180-L182
This executes:

If sourcePath is set and basePath is not, the asset is published
The published asset is converted

The problem

I want to keep the source files out of the webroot, and only publish the converted output asset. This is currently not possible, since the source files are first published and only then converted.
Yii displays unexpected behavior when both $sourcePath and $basePath are set: instead of converting from $sourcePath into $basePath, it completely ignores $basePath (which is not explicitly documented) and publishes to a hashed asset folder in the webroot.
Suppose I have an index.scss which imports base.scss and ../vendor/package/dep.scss. Because the first step is to copy index.scss to the webroot, the relative imports will break and conversion will subsequently fail.

Two possible solutions:

Since sass will accept both an input and output path, it makes sense to me to just call sass --style=compressed {sourcePath} {basePath}.
A (less clean) alternative would be to do the conversion first and then publish the resulting file(s).

What if you have images there references from stylesheets?

Then it could make sense to publish first, yes... but not in my current use case. Can you help me to solve issue 3 (and maybe 1)?

The source folder @app/scss:
scss
  includes
    _file1.scss
    _file2.scss
  lib
    _file3.scss
    _file4.scss
  _variables.scss
  index.scss
  utils.scss

In this case, after conversion, index.css and utils.css are imported/used by views and layouts. The source files index.scss and utils.scss import the other files such as _variables.scss and also a library located somewhere in vendor/.
Importing that library still fails because the source files are moved before conversion. I can solve it like this in the config:
// config/web.php

$appRoot = dirname(__DIR__);

/* ... */

$config['components']['assetManager']['converter'] => [
    'commands' => [
        'scss' => ['css', "sass --style=compressed --load-path=$appRoot/vendor {from} {to}"],
    ],
];

It works, but it feels like a bodge. It would be nice if Yii had a better way to prevent this problem.


junit, rspec: modules support for filtering, search and pagination

junit & rspec module changes for : #77

Codecov Report

Merging #79 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #79   +/-   ##
=========================================
  Coverage     71.22%   71.22%
  Complexity      188      188
=========================================
  Files            26       26
  Lines           636      636
  Branches         78       78
=========================================
  Hits            453      453
  Misses          150      150
  Partials         33       33

Continue to review full report at Codecov.

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


Balder/use vector over set

@havardpe PR
These 2 commits are best viewed individually.

All comments addressed in #14046


Field Not Found

Using an out of the box barebones MudBlazor setup and following the readme for ThemeManager.
MudBlazor, Version=<IP_ADDRESS>
Installed using dotnet add package
I get the following error:
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]       Unhandled exception rendering component: Field not found: .Material.Outlined Due to: Could not parse field signature 0a000069 due to: Could not resolve type with token 01000054 from typeref (expected class 'MudBlazor.Outlined' in assembly 'MudBlazor, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null') assembly:MudBlazor, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null type:MudBlazor.Outlined member:(null) System.MissingFieldException: Field not found: .Material.Outlined Due to: Could not parse field signature 0a000069 due to: Could not resolve type with token 01000054 from typeref (expected class 'MudBlazor.Outlined' in assembly 'MudBlazor, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null') assembly:MudBlazor, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null type:MudBlazor.Outlined member:(null)    at Microsoft.AspNetCore.Components.ComponentBase.<.ctor>b__6_0(RenderTreeBuilder builder)    at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException) window.Module.s.printErr @ blazor.webassembly.js:1 bootstrap.min.css:1          Failed to load resource: the server responded with a status of 404 ()

I have also experienced the same issue when trying to upgrade to 6.0.11. My temporary solution has change  <MudThemeManagerButton to <MudIconButton. This allows an upgrade to the latest 6.0.12 release.


Clean up configration files

Coverage remained the same at 92.183% when pulling 2981f1001ea86406c49478aae436582d82c65326 on cleanup-config into 84590f04cc775204a8a7c220582463ff5c8c3510 on master.

Coverage remained the same at 92.183% when pulling 2981f1001ea86406c49478aae436582d82c65326 on cleanup-config into 84590f04cc775204a8a7c220582463ff5c8c3510 on master.


Added in an if guard to regexreplaceplugin.

So we don't crash on a newline being entered. Should close #60 .

The version of regexreplacepreview should be bumped on the manifest file.

Just to reiterate what was said on Discord:
The issue is that raw_remove correctly removes the newline, so it removes a line from the file. Because the for is using the old line count, it goes over.
A simpler solution would be an early exit:
for i = (start_line or 1), (end_line or #doc.lines) do
  if i > #doc.lines then break end
  -- ...

but a better one would be getting the whole file in a buffer and applying the regex there, then replacing the file content with the result, which would also allow multi-line operations.
Getting the whole file in a buffer for "live" operations might be too heavy, so for big files this should probably only be done on the visible part.
Another solution could be ignoring the escapes and just string.formatting the input with %q.
Last time I tested this plugin I also found out it wasn't updating the undo buffer on apply.


gsoler_new_DHCP scopes_conceptual

#assign: @robinharwood, @Xelu86
@robinharwood @Xelu86
Can you review the proposed changes? After @gswashington has taken this out of draft mode?
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team


Add a vrCallback property to the options object that allows for more reliable SQ parsing.

Implements #32. I did find and fix a small bug while developing this, so I made its fix a separate commit; if you feel it's too much for this PR, I can pull it out into a separate PR.
Also not real happy about having the convertToByteArray function in a few places in the tests; I welcome any ideas how to make that into a utility function for testing.

awesome, should be able to integrate this over the weekend. Thanks!

Because of a test dependency, also added the fix for #34 in this PR. (See commit a512e23)


Discogs Database Scan Labels

:books:   :musical_note:   Export  from the Discogs  API database  the  list of "Genre:" as a text file
example : https://www.discogs.com/release/24539936-Rahaan-Under-The-Influence-Volume-Ten-A-Collection-Of-Rare-Funk-Disco
The idea is to create  an app based on Qr code colors and patterns to match the discogs data base , the goal is to replace electronic labels in store that is costful for small shop
Api : https://www.discogs.com/developers/

we have a name for this project or not yet ?
popoyoko-disc while waiting


Variant Prices in listing are displayed wrong

If you have a article with variants which have different prices, the lowest price does not get displayed in the product listing.
example a T-Shirt: M costs 10$  L costs 15$ and XXL costs 20$
If you chose L as default the price in the listing will be 15$
It should be starting at 10$

Additional the list prices are not displayed in the storefront (dev v6.2.2)

Hi @PhenomEY,
thanks for the hint, we fixed this bug with the following commit: https://github.com/shopware/platform/commit/298a9a02b4f4af670c0db504bfe48ceb436728b0


When duplicating an existing observation, don't include observation fields

From: https://forum.inaturalist.org/t/when-duplicating-an-observation-sometimes-the-observation-fields-get-copied-over-and-other-times-do-not/14748
Observation fields are often specific to the organism in question, so if an observation is duplicated and the fields are carried over to the new observation, the fields are likely inaccurate. So they shouldn't be included when an existing observation is duplicated.

I can take a look at this.


Is there something like a sleepThreshold property?

Hello,
using Rapier 0.11.2 I'm currently trying to understand why my Rigidbodies don't fall asleep (or rather: continuously wakeup)
From reading the changelogs I found that there's something like an activation force for e.g. linvel - this doesn't seem to exist in the javascript API tho.
Is there a way to explictly set a threshold for the rigidbody when to fall asleep?

furthermore setting the translation or rotation on a collider seems to wakeup rigidbodies that are in contact with the collider (even if the collider hasn't changed it's position). When I add an extra check to only call setTranslation if the position has actually changed the Rigidbody does also sleep. Is this expected? Is there a way to prevent having to manually doing this check?

I'm also looking for the ability to set a speed or time threshold for sleeping, sort of like the sleepTimeLimit and sleepTimeLimit options that the Cannon library provides. It doesn't look like Rapier has this but i could be wrong


Latest Dialect Changes

A Helpful Guide For Navigating Our Branches

If this is a hotfix, make your PR against master.
If your change can ship immediately, make your PR against dev-tdvt.
If your change is for a future release, make your PR against the appropriate holding branch (eg dev-2020.1)

Also:

Please update the changelog of the project you modified, either under vNext or under a point release if you bumped the version.
If you are merging into master, update the root README.md if the PR includes a release of the SDK, Connector Packager, or TDVT.

Thank you and feel free to delete this from your PR description!
actian_odbc.zip

Hi, We aren't going to accept this PR as it modifies a lot of our public repo.  If you are trying to share the connector and get feedback, the preferred method is to host your own repo and share it with us.

Please close, this is not intended for merging into the SDK. Apologies for the confusion.


Add version directory for manifest download (fixes #251)

This directory serves as a way to compartmentalize the downloaded files and enforces that different potential download schemes do not conflict.

Codecov Report

Merging #274 into master will increase coverage by 0.45%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #274      +/-   ##
==========================================
+ Coverage   82.92%   83.37%   +0.45%
==========================================
  Files          37       37
  Lines        1698     1702       +4
==========================================
+ Hits         1408     1419      +11
+ Misses        290      283       -7

Impacted Files
Coverage Δ

hca/dss/__init__.py
86.87% <100%> (+0.24%)
:arrow_up:

hca/util/__init__.py
87.14% <0%> (-0.29%)
:arrow_down:

hca/cli.py
67.82% <0%> (+6.95%)
:arrow_up:

Continue to review full report at Codecov.

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


How can I add include directory for an imported library with higher priority than vcpkg include directories

I installed a library with vcpkg
I also built a version with custom setting of this library somewhere else
What I needed is to override the library installed by vcpkg and test with my own version
It's easy to target a library with different path
The problem is the header files
I included the custom library with cmake setting
add_library(CustomLib UNKNOWN IMPORTED)
set_target_properties(CustomLib PROPERTIES IMPORTED_LOCATION ${CUSTOM_LIB})
set_target_properties(CustomLib PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${CUSTOM_INCLUDE_DIR})
The CUSTOM_INCLUDE_DIR pointed to the new location
But if I #include <lib.h> in my code, it always reference to the one installed by vcpkg
I check the generated build script, found that the include search path of vcpkg already added before CUSTOM_INCLUDE_DIR which bind with the CustomLib
I know I can use target_include_directories() with BEFORE keyword to move the include search path ahead
But this function won't support imported library, I'm stuck with set_target_properties which do not have a BEFORE keyword
Another workaround is to use target_include_directories() direct on the final target which depend on my CustomLib, I really want to avoid this method if possible
So is there any way to only add vcpkg search path at last place, or some way to move include directory of imported libray ahead

Hi @harokyang, When you integrate vcpkg into Visual Studio with the command .\vcpkg.exe integration install, vcpkg will adds VCPKG_PATH\installed\MATCHED_TRIPLET\include to the system include path.
However, using angle brackets(<>) to include port header files will find their path in the system include path, so although you add custom port header paths to your configuration, Visual Studio uses the vcpkg path to find them.
Of course, vcpkg does this to prevent user-custom-build ports from being used when installing ports, because their versions do not necessarily match.
So, please don't use angle brackets to include header files, just use double quotes("").

Counter questions:
a) which generator are you using. If you use VS generators than maybe the vcpkg integration is screwing with you
b) If you use only CMake: What other dependencies do you have? The vcpkg toolchain itself does not add <vcpkgtripletpath>/include  to the include directories. So another dependency might be doing that.
Note on include with  <> or "": If your costumLib is isolated/separated (like vcpkg ports) and you are just writing FindCostumLib or CoustomLib-config than usage of <> within your own code separated from costumLib is correct. If it is within the code of costumLib itself than usage of  "" is correct. If you allow CostumLib to be optional build with your code than you probably need a include wrapper switching between <> or "" just as ports like VTK do it with their third party dependencies

I use the latest cmake 3.15 with ninja back-end
My project is a shared library, which require some other libraries as dependency
I want to create some helper FindModule.cmake to find those dependency
The end-user can choose either install the dependency with vcpkg or another way
Those FindModule.cmake work if one of the situation met
But if both vcpkg installed and custom provided libraries existed, FindModule.cmake will pick the correct one(controlled by cmake variable)
Because of this issue, it is forced to choose the vcpkg version of both existed
The <> and "" method won't help, because the generated build script shows include directory of imported library also marked as system search path, it won't be picked before vcpkg by using ""
Additional, I can't control how the end-user coding their #include lines

Yes, if there is no built-in Find<PORT>.cmake, the vcpkg toolchain will preferentially use the generated ports in vcpkg. Because we need to ensure that the ports that are dependent on when building a port are always provided by vcpkg.
So, I think you need to add a Find<PORT>.cmake and use non-CONFIG mode to find dependencies.

We hope your question was answered to your satisfaction; if it wasn't, you can reopen with more info.


Autosizednodes

Which issue this PR addresses:
Fixes https://dev.azure.com/msazure/AzureRedHatOpenShift/_workitems/edit/9673960/
What this PR does / why we need it:
Introduce new feature flag to enable AutoSizedNodes. This enables the openshift feature to compute
resource allocation dynamically based on the node size. It does that by creating Kubeletconfig config with the feature turned on.
It also removes the aro-limits KubeletConfig that will be conflicting.
Test plan for issue:
Unit tests added.
Is there any documentation that needs to be updated for this PR?
inline

I removed test covering foreign config as we are not picking them up anymore thanks to predicate.

I have looked into the negative test cases, I can't simply implement them as the fake client I am using as part of the controller-runtime does not have the feature present. Once I figure it out, I will add them.

/azp run e2e

/hold

/azp run e2e


build.gradle compile with prefix couchbase-lite-

@andreibaranouski, It seems this change is already in master. I will close this.


Adding Node 4.3.1 and 5.7.0 to Travis config

Adding newer Node version to help validate code in updated versions of Node.

Lgtm. Thanks for contributing!
The fact that the tests pass on those newer node versions hint that something might be wrong with your usage of the tool.
Any additional help diagnosing on your end is appreciated

@robtarr Is there a reason you used 5.7 instead of 5.9?  Same for 4.3.1 vs 4.4.0?

I believe "node" will get the latest version and "4" the latest lts.

@vdeturckheim you are right for node, and looks like stable would get us the latest (from https://docs.travis-ci.com/user/languages/javascript-with-nodejs).
@robtarr can you amend your pull request with these, and once it works, I'll merge it in.  Thanks!


minor tweak to regex'es

isTagLikePattern and isClosingTagLikePattern are not used? end isOpeningTagLikePattern with '$' to force open tag at end of current input, (just to avoid acting twice on accidental input of ">")

Just a note, when I added this is created a regression #70. I added a bit more to the regex to fix it though. Thanks again for contributing!


Small adjustments for French translation

Made all links HTTPS (when possible)
Made all media use HTTPS (fixed mixed content)
Added sponsors
Change link to subscribe to email updates

Merci pour les améliorations, @maximejobin !


Sending github.token unnecessarily?

Hello,
When using setup-ko in an action I noticed it was doing this to figure out what version of ko to use:
curl -L -s -u username:*** https://api.github.com/repos/ko-build/ko/releases/latest

The *** value is a masked github.token as seen here: https://github.com/ko-build/setup-ko/blob/3aebd0597dc1e9d1a26bcfdb7cbeb19c131d3037/action.yml#L28
Reading https://docs.github.com/en/actions/security-guides/automatic-token-authentication it states
The token's permissions are limited to the repository that contains your workflow.

Given that this action is run in my repo, would this mean that we are actually sending a secret even if it is not improving anything (like increasing rate limits for requests)? I realize that the secret is ephemeral but it still feels a bit unnecessary in that case?

I can also add that there exists a functional problem with sending this secret. I ran into this when trying to use the setup-ko workflow on a custom forgejo instance via their version of actions (https://forgejo.org/docs/latest/admin/actions/).
It would fail like so:
++ jq -r .tag_name
++ curl -L -s -u username:*** https://api.github.com/repos/ko-build/ko/releases/latest
+ tag=null
+ os=Linux
+ [[ Linux == \m\a\c\O\S ]]
+ [[ ! -z null ]]
+ echo 'Installing ko @ null for Linux'
Installing ko @ null for Linux
+ sudo tar xzf - -C /usr/local/bin ko
+ curl -fsL https://github.com/ko-build/ko/releases/download/null/ko_ull_Linux_x86_64.tar.gz
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

The reason tag becomes null is because the github.token format created by forgejo seems particularly disliked by github, resulting in this response:
{
  "message": "Bad credentials",
  "documentation_url": "https://docs.github.com/rest",
  "status": "401"
}

Because of this there is no .tag_name for jq to parse out, so it returns null. Interestingly, if I set some random short string as the secret, e.g.: curl -L -s -u username:foobar https://api.github.com/repos/ko-build/ko/releases/latest I do get a response (with the 60 reqs/hour rate limit as is documented for unauthenticated requests).

Using the unauthenticated requests seems ok, I guess, but that will be based on the IP, I don't know how GitHub runners do the IP assignment to the runners. If we have a bunch of requests from the same IP runner that will fail :/
also, on the other hand, we are using the default GitHub.token that gets injected into the job and has the default permissions or the ones you set in your workflow; if nothing is set, it has the one we need to read the data.
cc @imjasonh

I believe we added the github.secret to get around rate limits when fetching the latest release.
The issue with forgejo seems to be an issue between GH and that service, and not something I think we can/should fix in this action. This action only expects to be run in GitHub Actions, and is only tested in that environment.

I got the impression from the docs that the token is only valid for use within the repo running the workflow, if it also gets more API calls towards other repos then I can see why it is used.

Yeah, sorry about the confusion. I threw together a small workflow in a repo of my own to validate this:
Run curl -i -L -s -u username:foobar https://api.github.com/repos/ko-build/ko/releases/latest
HTTP/2 200
[...]
x-ratelimit-limit: 60
x-ratelimit-remaining: 59

vs.
Run curl -i -L -s -u "username:***" https://api.github.com/repos/ko-build/ko/releases/latest
HTTP/2 200
[...]
x-ratelimit-limit: 5000
x-ratelimit-remaining: 4999

So you are correct, the token makes it count as authenticated even if interacting with the API of another repo. Still interesting that I can get away with the secret "foobar" and get an unauthenticated response while the token created by forgejo results in an error but that is another story. Given that using the token actually does help with the rate limit I am OK with closing this if you do not see the forgejo use case as relevant. Thanks for taking the time to respond!


User can access the background page features in Modal Screen

I have a dashboard page with a lot of draggable elements, when i use the modal screen user is still able to drag the elements in the background page.
This dragging also closes the modal screen and drags the background elements
The javascript should disable all user interactions in the background if possible

Did you change the backdrop argument to your modal? It sounds like the backdrop isnt getting displayed in your browser.

Try to set backdrop:"static" in the options of your modal.

yep set the backdrop to "static" - should work for you


az login fails with "Invalid IPv6 URL"

Describe the bug
The command 'az login' fails with exception 'Invalid IPv6 URL'
Related command
az login
Errors
The command failed with an unexpected error. Here is the traceback:
Unable to get authority configuration for https://login.microsoftonline.com/organizations. Authority would typically be in a format of https://login.microsoftonline.com/your_tenant Also please double check your tenant name or GUID is correct.
Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/authority.py", line 115, in init
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/authority.py", line 180, in tenant_discovery
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/individual_cache.py", line 269, in wrapper
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 602, in get
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 589, in request
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 703, in send
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/adapters.py", line 459, in send
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/adapters.py", line 390, in request_url
File "urllib\parse.py", line 392, in urlparse
File "urllib\parse.py", line 483, in urlsplit
ValueError: Invalid IPv6 URL
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 663, in execute
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 697, in _run_job
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 333, in call
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/profile/custom.py", line 139, in login
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_profile.py", line 154, in login
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/identity.py", line 153, in login_with_auth_code
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/identity.py", line 112, in _msal_app
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/application.py", line 1676, in init
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/application.py", line 533, in init
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/authority.py", line 119, in init
ValueError: Unable to get authority configuration for https://login.microsoftonline.com/organizations. Authority would typically be in a format of https://login.microsoftonline.com/your_tenant Also please double check your tenant name or GUID is correct.
Issue script & Debug output
az login --debug
Invalid IPv6 URL
cli.knack.cli: Command arguments: ['login', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
Enable VT mode.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x01DAB538>, <function OutputProducer.on_global_arguments at 0x01FAC778>, <function CLIQuery.on_global_arguments at 0x01FC73D0>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'login': ['azure.cli.command_modules.profile']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name                  Load Time    Groups  Commands
cli.azure.cli.core: profile                   0.005         2         9
cli.azure.cli.core: Total (1)                 0.005         2         9
cli.azure.cli.core: Loaded 2 groups, 9 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command  : login
cli.azure.cli.core: Command table: login
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x041BB5C8>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\sturzrehmg.azure\commands\2024-05-07.10-34-54.login.9452.log'.
az_command_data_logger: command args: login --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x0437F778>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x043E1FA0>, <function register_cache_arguments..add_cache_arguments at 0x043E0340>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x01FAC7C0>, <function CLIQuery.handle_query_parameter at 0x01FC7418>, <function register_ids_argument..parse_ids_arguments at 0x043E02F8>]
cli.azure.cli.core.auth.persistence: build_persistence: location='C:\Users\sturzrehmg\.azure\msal_token_cache.bin', encrypt=True
cli.azure.cli.core.auth.binary_cache: load: C:\Users\sturzrehmg.azure\msal_http_cache.bin
cli.azure.cli.core.auth.binary_cache: C:\Users\sturzrehmg.azure\msal_http_cache.bin not found. Using a fresh one.
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/authority.py", line 115, in init
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/authority.py", line 180, in tenant_discovery
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/individual_cache.py", line 269, in wrapper
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 602, in get
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 589, in request
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 703, in send
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/adapters.py", line 459, in send
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/adapters.py", line 390, in request_url
File "urllib\parse.py", line 392, in urlparse
File "urllib\parse.py", line 483, in urlsplit
ValueError: Invalid IPv6 URL
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 663, in execute
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 697, in _run_job
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 333, in call
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/profile/custom.py", line 139, in login
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_profile.py", line 154, in login
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/identity.py", line 153, in login_with_auth_code
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/identity.py", line 112, in _msal_app
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/application.py", line 1676, in init
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/application.py", line 533, in init
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/authority.py", line 119, in init
ValueError: Unable to get authority configuration for https://login.microsoftonline.com/organizations. Authority would typically be in a format of https://login.microsoftonline.com/your_tenant Also please double check your tenant name or GUID is correct.
cli.azure.cli.core.azclierror: The command failed with an unexpected error. Here is the traceback:
az_command_data_logger: The command failed with an unexpected error. Here is the traceback:
cli.azure.cli.core.azclierror: Unable to get authority configuration for https://login.microsoftonline.com/organizations. Authority would typically be in a format of https://login.microsoftonline.com/your_tenant Also please double check your tenant name or GUID is correct.
Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/authority.py", line 115, in init
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/authority.py", line 180, in tenant_discovery
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/individual_cache.py", line 269, in wrapper
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 602, in get
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 589, in request
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 703, in send
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/adapters.py", line 459, in send
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/adapters.py", line 390, in request_url
File "urllib\parse.py", line 392, in urlparse
File "urllib\parse.py", line 483, in urlsplit
ValueError: Invalid IPv6 URL
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 663, in execute
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 697, in _run_job
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 333, in call
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/profile/custom.py", line 139, in login
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_profile.py", line 154, in login
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/identity.py", line 153, in login_with_auth_code
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/identity.py", line 112, in _msal_app
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/application.py", line 1676, in init
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/application.py", line 533, in init
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/authority.py", line 119, in init
ValueError: Unable to get authority configuration for https://login.microsoftonline.com/organizations. Authority would typically be in a format of https://login.microsoftonline.com/your_tenant Also please double check your tenant name or GUID is correct.
az_command_data_logger: Unable to get authority configuration for https://login.microsoftonline.com/organizations. Authority would typically be in a format of https://login.microsoftonline.com/your_tenant Also please double check your tenant name or GUID is correct.
Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/authority.py", line 115, in init
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/authority.py", line 180, in tenant_discovery
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/individual_cache.py", line 269, in wrapper
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 602, in get
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 589, in request
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 703, in send
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/adapters.py", line 459, in send
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/adapters.py", line 390, in request_url
File "urllib\parse.py", line 392, in urlparse
File "urllib\parse.py", line 483, in urlsplit
ValueError: Invalid IPv6 URL
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 663, in execute
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 697, in _run_job
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 333, in call
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/profile/custom.py", line 139, in login
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_profile.py", line 154, in login
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/identity.py", line 153, in login_with_auth_code
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/identity.py", line 112, in _msal_app
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/application.py", line 1676, in init
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/application.py", line 533, in init
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/authority.py", line 119, in init
ValueError: Unable to get authority configuration for https://login.microsoftonline.com/organizations. Authority would typically be in a format of https://login.microsoftonline.com/your_tenant Also please double check your tenant name or GUID is correct.
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x041BB6E8>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 0.715 seconds (init: 0.509, invoke: 0.206)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 6801 in cache
telemetry.check: Negative: The C:\Users\sturzrehmg.azure\telemetry.txt was modified at 2024-05-07 10:29:17.418711, which in less than 600.000000 s
Expected behavior
browser should open to connect to azure account
Environment Summary
{
"azure-cli": "2.50.0",
"azure-cli-core": "2.50.0",
"azure-cli-telemetry": "1.0.8",
"extensions": {}
}
Additional context
No response

Thank you for opening this issue, we will look into it.


Firrtl Pass Repl (or equivalent thing)

Add some options to selectively run Firrtl passes. Very low priority.

Closing for now


[BACKLOG-29232] - removing usage of guava Maps because of conflict on…

… cdh514 spark clusters.

Build Completed
:fire: This pull request has some issues. It would be preferable to fix them in order for it to be just perfect. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
mvn -B -f 'pom.xml' -pl 'engine' -P '!assemblies' -Dsurefire.runOrder=alphabetical -Daudit -amd clean install

Cleanup Commands
mvn -B -f 'pom.xml' -pl 'engine' -P '!assemblies' -amd build-helper:remove-project-artifact

Changed files
  engine/src/main/java/org/pentaho/di/core/util/serialization/ConfigHelper.java

Unit Test Coverage
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.

:warning: Coverage Changes (click to expand)
org.pentaho.di.trans.steps.calculator.CalculatorMetaFunction

Branch Change: -8.7% :small_red_triangle_down:
Complexity Change: -3% :small_red_triangle_down:
Instruction Change: -0.7% :small_red_triangle_down:
Line Change: -0.9% :small_red_triangle_down:

org.pentaho.di.trans.steps.dbproc.DBProcMeta

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.dimensionlookup.DimensionLookupMeta

Method Change: -1% :small_red_triangle_down:

org.pentaho.di.trans.steps.replacestring.ReplaceStringMeta

Instruction Change: -0.1% :small_red_triangle_down:


Change the default image and region

Looks like the default image has changed for Ubuntu 14.04 x64. Also, DigitalOcean's site indicates their New York 1 region receives high demand. Would be worth changing the region to New York 3.

Seems like a quick win, thanks @JamshedVesuna!


LeBonCoinBridge.php is marked executable

The file bridges/LeBonCoinBridge.php is marked with all three executable bits. It should not be executable though just as all the other bridges are.

Thanks for reporting! I have prepared a fix and will merge soon™


[cxx-interop] Fix memory layout for structs with out-of-order base types

In C++, a primary base class that is placed in the beginning of the type's memory layout isn't always the type that is the first in the list of bases – the base types might be laid out in memory in a different order.
This makes sure that Swift handles base types of C++ foreign reference types in the correct order.
This fixes an assertion in asserts-enabled compilers, and an out-of-memory error in asserts-disabled compilers.
rdar://140848603

@swift-ci please test

@swift-ci please test


AC Origins bright textures bug

Assassin´s Creed Origins got a crazy bug on Wine 7.7 on macOS. Performance is okay but after 20-40sec every texture is white and bright. Will post pics later.

@MCChristor dis you mean to make a bug report at https://github.com/Gcenx/DXVK-macOS and not a PR here?

This clearly wasn't meant to be a PR and we do not support Mac OS.


java.io.EOFException on live game

I was trying to load an auto-replay on running game

create lobby with localhost server
loaded at tick clarity example

Exception in thread "main" skadistats.clarity.processor.runner.ControllableRunner$4: Runner thread was terminated by an exception
at skadistats.clarity.processor.runner.ControllableRunner.waitForTickReached(ControllableRunner.java:239)
at skadistats.clarity.processor.runner.ControllableRunner.tick(ControllableRunner.java:273)
at skadistats.clarity.examples.tick.Main.runControlled(Main.java:59)
at skadistats.clarity.examples.tick.Main.main(Main.java:68)
Caused by: java.io.EOFException
at skadistats.clarity.source.MappedFileSource.readBytes(MappedFileSource.java:50)
at skadistats.clarity.processor.reader.InputSourceProcessor.readPacket(InputSourceProcessor.java:94)
at skadistats.clarity.processor.reader.InputSourceProcessor.processSource(InputSourceProcessor.java:180)
at skadistats.clarity.event.AbstractInvocationPoint.invoke(AbstractInvocationPoint.java:86)
at skadistats.clarity.event.Event.raise(Event.java:25)
at skadistats.clarity.processor.runner.AbstractFileRunner.initAndRunWith(AbstractFileRunner.java:38)
at skadistats.clarity.processor.runner.ControllableRunner$3.run(ControllableRunner.java:197)
at java.lang.Thread.run(Thread.java:745)

What exactly are you trying to read? A replay file that is written as the game plays?

If so, you'd have to provide your custom implementation of the Source class, which would block until new content in the file is available. My guess is you cannot use a MappedFileSource since it cannot accomodate for bytes written to the file after it was opened.

Yeah that's was exactly what I did. Unfortunately, I have no luck or not good same as you. I think you should add some enhancement for this api for reading a file for a live game. This is good especially for private game because right now valve cant private api yet to grab match details live on private match/lobby.

Can you provide the source of what you've got?

I agree, @ect1 We would love to take this further if possible.

I know a place where code that does this already exists. If they agree I can add it, or at least have a look at how difficult it would be..

I tried to play in private game and record using console then I inspect the generated .dem file using Clarity analyser. I was able to see classes but the file won't able see it if I don't refresh the replay folder.
The .dem file stops feeding data after 15 or 30 mins while playing even refresh the folder over and over, but will complete file after the game is ended or leaving the game.

Clarity Analyzer uses the MappedFileSource, which I suppose is unable to detect changes to the file after initial mapping into memory. One could adapt it to use a source which can do this.
Another thing that one of my clients has is that the dota client indeed randomly stops updating the file after a while (most probably a bug). In this case the only way to fix this is restarting the client, which seems to be no real option when you're the one playing...

Hi, I also tested to use WatchService to watch replay folder and It won't sees any changes unless I clicked F5 or refresh the replay folder.

I managed to put some time into this, and came up with this gem.
It's pretty well tested already, and I made clarity-analyzer use it as well.
Please test!

win 7

Might be that the OS does not properly support the watch service.
Quick googling revealed this.
I have not yet had the opportunity to test this on Win 7.
Can you try to patch the LiveSource to do a outputFile.length() every second and see if that helps?

Started testing the test case you created.
Getting :
java.lang.NoClassDefFoundError: skadistats/clarity/wire/common/proto/Demo$CDemoStop
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
	at java.lang.Class.getDeclaredMethods(Unknown Source)
	at skadistats.clarity.processor.runner.ExecutionModel.findUsagePoints(ExecutionModel.java:155)
	at skadistats.clarity.processor.runner.ExecutionModel.requireProcessorClass(ExecutionModel.java:74)
	at skadistats.clarity.processor.runner.ExecutionModel.addProcessor(ExecutionModel.java:48)
	at skadistats.clarity.processor.runner.AbstractRunner.addProcessorsToModel(AbstractRunner.java:37)
	at skadistats.clarity.processor.runner.AbstractRunner.createExecutionModel(AbstractRunner.java:28)
	at skadistats.clarity.processor.runner.AbstractRunner.initWithProcessors(AbstractRunner.java:43)
	at skadistats.clarity.processor.runner.AbstractFileRunner.initAndRunWith(AbstractFileRunner.java:37)
	at skadistats.clarity.processor.runner.SimpleRunner.runWith(SimpleRunner.java:36)
	at Worker.demoLiveSource(Worker.java:35)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
	at org.testng.internal.Invoker.invokeMethod(Invoker.java:580)
	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:716)
	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:988)
	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
	at org.testng.TestRunner.privateRun(TestRunner.java:648)
	at org.testng.TestRunner.run(TestRunner.java:505)
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
	at org.testng.SuiteRunner.run(SuiteRunner.java:364)
	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
	at org.testng.TestNG.runSuites(TestNG.java:1049)
	at org.testng.TestNG.run(TestNG.java:1017)
	at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114)
	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
Caused by: java.lang.ClassNotFoundException: skadistats.clarity.wire.common.proto.Demo$CDemoStop
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 37 more

So I got it running.  I am also getting a Timeout on Windows 10.
skadistats.clarity.source.LiveSource$TimeoutException: timeout while waiting for data
	at skadistats.clarity.source.LiveSource.blockUntilDataAvailable(LiveSource.java:288)
	at skadistats.clarity.source.LiveSource.readBytes(LiveSource.java:99)
	at skadistats.clarity.processor.reader.InputSourceProcessor.readPacket(InputSourceProcessor.java:97)
	at skadistats.clarity.processor.reader.InputSourceProcessor.processSource(InputSourceProcessor.java:187)
	at skadistats.clarity.event.AbstractInvocationPoint.invoke(AbstractInvocationPoint.java:86)
	at skadistats.clarity.event.Event.raise(Event.java:25)
	at skadistats.clarity.processor.runner.AbstractFileRunner.initAndRunWith(AbstractFileRunner.java:38)
	at skadistats.clarity.processor.runner.SimpleRunner.runWith(SimpleRunner.java:36)
	at Worker.demoLiveSource(Worker.java:35)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
	at org.testng.internal.Invoker.invokeMethod(Invoker.java:580)
	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:716)
	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:988)
	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
	at org.testng.TestRunner.privateRun(TestRunner.java:648)
	at org.testng.TestRunner.run(TestRunner.java:505)
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
	at org.testng.SuiteRunner.run(SuiteRunner.java:364)
	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
	at org.testng.TestNG.runSuites(TestNG.java:1049)
	at org.testng.TestNG.run(TestNG.java:1017)
	at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114)
	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)

Damnit that sucks. I gotta test this on a windows machine soon :(

Hit me up on Steam when you get a minute.

Any update on Timeout on Windows machines?

No windows machine on hand, has to wait until early next week.

So there was indeed a problem with Windows machines not firing any modified events. I worked around this with this commit, and uploaded a new snapshot. Please test.

Looks like still not working. Windows 10 x 64.  If I stop the demo and run it, works fine.  If the demo is still recording, it breaks with a timeout.
Exception in thread "main" java.lang.reflect.InvocationTargetException         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)         at java.lang.reflect.Method.invoke(Unknown Source)         at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58) Caused by: skadistats.clarity.source.LiveSource$TimeoutException: timeout while waiting for data         at skadistats.clarity.source.LiveSource.blockUntilDataAvailable(LiveSource.java:305)         at skadistats.clarity.source.LiveSource.setPosition(LiveSource.java:99)         at skadistats.clarity.source.Source.skipBytes(Source.java:135)         at skadistats.clarity.model.engine.AbstractDotaEngineType$1.skip(AbstractDotaEngineType.java:91)         at skadistats.clarity.processor.reader.InputSourceProcessor.processSource(InputSourceProcessor.java:220)         at skadistats.clarity.event.AbstractInvocationPoint.invoke(AbstractInvocationPoint.java:86)         at skadistats.clarity.event.Event.raise(Event.java:25)         at skadistats.clarity.processor.runner.AbstractFileRunner.initAndRunWith(AbstractFileRunner.java:39)         at skadistats.clarity.processor.runner.SimpleRunner.runWith(SimpleRunner.java:36)         at Worker.main(Worker.java:36)         ... 5 more

Please try timeout 30+ secs, and report back.

Could you please explain how you "record" using console? Is it a Dota2 console? What command do you use?
@ect1 @spheenik

This solved the issue.
@spheenik Looks like as of 8/1/2018 (Update 7.19) getting some crash converting a string to int.
Exception in thread "main" java.lang.NumberFormatException: For input string: ""
	at java.lang.NumberFormatException.forInputString(Unknown Source)
	at java.lang.Integer.parseInt(Unknown Source)
	at java.lang.Integer.valueOf(Unknown Source)
	at skadistats.clarity.processor.entities.Entities.onBaselineEntry(Entities.java:94)
	at skadistats.clarity.event.AbstractInvocationPoint.invoke(AbstractInvocationPoint.java:86)
	at skadistats.clarity.event.Event.raise(Event.java:25)
	at skadistats.clarity.processor.stringtables.BaseStringTableEmitter.raise(BaseStringTableEmitter.java:77)
	at skadistats.clarity.processor.stringtables.BaseStringTableEmitter.setSingleEntry(BaseStringTableEmitter.java:73)
	at skadistats.clarity.processor.stringtables.S2StringTableEmitter.decodeEntries(S2StringTableEmitter.java:143)
	at skadistats.clarity.processor.stringtables.S2StringTableEmitter.onUpdateStringTable(S2StringTableEmitter.java:73)
	at skadistats.clarity.event.AbstractInvocationPoint.invoke(AbstractInvocationPoint.java:86)
	at skadistats.clarity.event.Event.raise(Event.java:25)
	at skadistats.clarity.processor.reader.InputSourceProcessor.processEmbedded(InputSourceProcessor.java:249)
	at skadistats.clarity.event.AbstractInvocationPoint.invoke(AbstractInvocationPoint.java:86)
	at skadistats.clarity.event.Event.raise(Event.java:25)
	at skadistats.clarity.processor.reader.InputSourceProcessor.processSource(InputSourceProcessor.java:178)
	at skadistats.clarity.event.AbstractInvocationPoint.invoke(AbstractInvocationPoint.java:86)
	at skadistats.clarity.event.Event.raise(Event.java:25)
	at skadistats.clarity.processor.runner.AbstractFileRunner.initAndRunWith(AbstractFileRunner.java:39)
	at skadistats.clarity.processor.runner.SimpleRunner.runWith(SimpleRunner.java:36)

Does not seem to effect anything other than streaming live games.

Exception in thread "main" java.lang.reflect.InvocationTargetException         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)         at java.lang.reflect.Method.invoke(Unknown Source)         at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58) Caused by: skadistats.clarity.ClarityException: entity at index 152 was not found for update.         at skadistats.clarity.processor.entities.Entities.onPacketEntities(Entities.java:178)         at skadistats.clarity.event.AbstractInvocationPoint.invoke(AbstractInvocationPoint.java:86)         at skadistats.clarity.event.Event.raise(Event.java:37)         at skadistats.clarity.processor.reader.InputSourceProcessor.processEmbedded(InputSourceProcessor.java:251)         at skadistats.clarity.event.AbstractInvocationPoint.invoke(AbstractInvocationPoint.java:86)         at skadistats.clarity.event.Event.raise(Event.java:37)         at skadistats.clarity.processor.reader.InputSourceProcessor.processSource(InputSourceProcessor.java:178)         at skadistats.clarity.event.AbstractInvocationPoint.invoke(AbstractInvocationPoint.java:86)         at skadistats.clarity.event.Event.raise(Event.java:37)         at skadistats.clarity.processor.runner.AbstractFileRunner.initAndRunWith(AbstractFileRunner.java:39)         at skadistats.clarity.processor.runner.SimpleRunner.runWith(SimpleRunner.java:36)         at Worker.main(Worker.java:34)

So, unsure how to explain this but something is still not 100% working on Windows 10 machine.  Friend who is RU is trying to run the same app as me but it is failing.  Tried for about 5 hours, but have given up.
We have debugged the following.

Start a recording, run the parser, get timeout error.  Increased timeout to 120seconds, still error.

Using the test file method, read the file, then output to another file, then read that file. Timeout error.

When the file is "reading" we notice that the size of the recording does not change in the Dota folder.  But if I stop reading it will then increase.  WriteLock from Dota 2?

Take a replay that has finished, and it reads just fine.

Works on my computer just fine, is there some type of debug we can do to help fix this?

That the filesize does not increase by it's own was exactly the problem I had on Windows. I could only get it to increase by adding the some code to get it's filesize repeatedly, which then would update it. This is working on all Win10 machines I have access to, so I cannot really help, but I suggest you add some debug log to see if the watcher detects the change.
What underlying filesystem is the replay written to?

...and also check if the LiveSource finds the file readable at all


Unable to set 'weight' parameter inside lparams

Hi,
I'm using Android Studio with Kotlin and Anko. Whenever I try to set the weight property inside lparams, I get an Unresolved reference: weight error.
Am I going wrong somewhere in my imports?
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'com.android.support:design:25.1.0'
testCompile 'junit:junit:4.12'
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"

compile 'org.jetbrains.anko:anko-sdk19:0.9'
compile 'org.jetbrains.anko:anko-support-v4:0.9'
compile 'org.jetbrains.anko:anko-appcompat-v7:0.9'
compile 'org.jetbrains.anko:anko-sqlite:0.9'
compile "org.jetbrains.anko:anko-design:0.9"

No, it's something wrong with your code. Post it.

frameLayout {

    horizontalPadding = 0
    verticalPadding = 0

    zoomListView {
        id = ViewID.ID_LIST
    }

    horizontalProgressBar {
        id = ViewID.ID_MV_PROGRESS_BAR
        isIndeterminate = true
        verticalPadding = 0
    }.lparams(width = matchParent, height = wrapContent, gravity = Gravity.BOTTOM) {
        weight = 1
    }
}

FrameLayout.LayoutParams doesn't have weight property.

See this answer.

Oh! I got it. horizontalProgressBar doesn't have weight property. Thanks @Adambl4 !


[MPG] readonly properties in UserAssignedIdentity are generated with setters

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

Fixed by tsp fix.


GitHub actions for creating docker images

@GJS2162 can you put a screenshot of the pipeline?

@GJS2162 Also can you reference the issue here?