--error does not suppress new batch mode warning in 0.13.15

% sbt --error compile
[warn] Executing in batch mode.
[warn]   For better performance, hit [ENTER] to switch to interactive mode, or
[warn]   consider launching sbt without any commands, or explicitly passing 'shell'

this regresses on #840

also
% sbt --error
WARN: No sbt.version set in project/build.properties, base directory: /Users/tisue/tmp/unused

The primary reason this is happening is because I'm trying to do it as early as possible, when there is a clear distinction between sbt.xMain, and sbt.ScriptMain or sbt.ConsoleMain - ironically exactly for scripting reasons.
I think I can rework this to appease both use cases, but I wonder: @SethTisue what's the severity in your mind of this regression?

Is it possible to disable this warning @dwijnand?
For instance, I use sbt for scripting intensively. I think that this warning is good when the user types sbt, but I'd like to remove it when I'm programmatically controlling sbt.

By invoke sbt in non-interactive (aka batch) mode.
The easiest way is by appending < /dev/null, e.g:
sbt compile < /dev/null

Or in sbt-extras by passing -batch, e.g:
sbt -batch compile

I'm happy to revise the implementation to strike a better balance.

Thanks for the pointers.
It would be interesting to have something like --script in the official sbt. To the best of my understanding, it would have the same behaviour as -batch but I think the naming is clearer.

The concept of "script" already refers to http://www.scala-sbt.org/0.13/docs/Scripts.html (and its sbt.ScriptMain), which is not what you're after when you say "script".. :-/

It's a pity that sbt is using that definition of 'script' when the widely used notion of scripting is substantially different (for example, bash scripts).
In any case, --batch sounds good. Another alternative would be --one-shot.

The nomenclature looks consistent to me: a bash script is a script that bash interprets and an sbt script is a script that sbt interprets (using ScriptMain).
I'd be happy to port -batch to the sbt-launcher-package scripts. Note that --batch is complicated at the moment due to the history of and migration needed for --... https://github.com/sbt/sbt/pull/2741.

The nomenclature looks consistent to me: a bash script is a script that bash interprets and an sbt script is a script that sbt interprets (using ScriptMain).

You're right.

I'd be happy to port -batch to the sbt-launcher-package scripts. Note that --batch is complicated at the moment due to the history of and migration needed for --... #2741.

I would like to see this supported by default, so 👍 .

If we implement the project/build.properties warning as one of the commands, we might be able to place it after the early commands.

Indeed that was my idea. I'm just not sure what priority to give this regression - i.e if it should be worked on now.

We can schedule it for next 0.13.x release, but I don't think it's high priority enough to disrupt the current iteration.

sbt new also triggers the warning

This really shouldn't be a warning: it shows up even in things like sbt --quiet run. Can we please get a setting that we can put in build.properties and in our ~/.sbt to permanently disable this.
I personally think this was an ill-advised feature. You do this in the docs, not as nagware. I already have a mother, I don't need my build system to scold me—especially if its message is that I'm supposed to change my workflow and keep a JVM around permanently. Tools are supposed to make my life easier, not the other way around.

Agree 100% with @sarahgerweck.  This warning is just plain annoying and not very reliable.

Due to JIT, there's a significant difference in compiler performance if you keep the sbt shell around, so I think it warrants displaying a message to let people know that running batch mode is slower.
See https://twitter.com/eed3si9n/status/837585213563801600
Here are the some changes I suggest:

The message should be reduced to [info] level since it literally is an information, not something that could break correctness.
Respect the log level.
It should only be displayed on passing a single compile as argument.
Reduce the message to a single line, for example [info] Compiling in batch mode is slower than from interactive shell.
Provide a globally scoped setting to opt out.

i too find this new batch mode warning annoying. not so much the warning itself (i can live with the extra text) but the fact that by accident hitting [ENTER] puts me in interactive mode. this makes batch mode usage more difficult as others have mentioned before me.

@koertkuipers thanks for your feedback. I've opened https://github.com/sbt/sbt/pull/3153 to remove the [ENTER] feature, targeting sbt 0.13.16.


Unmanaged scalaInstance ends up on test framework's classpath when it shouldn't

When creating the test classloader in https://github.com/sbt/sbt/blob/54d54b9f4f03e2e3339373ed582f2b19359bea31/testing/src/main/scala/sbt/TestFramework.scala#L196-198, sbt puts the project's scalaInstance on the classpath if it is unmanaged.
For some reason the scalaInstance in our build (see https://github.com/scala/scala/pull/5190/commits/02d75b39a7141c02d789df1bcbd6a4c74313de1c) is seen as unmanaged by sbt despite being resolved through Ivy. It's not clear to me whether this is correct but the real issue is that sbt does not check the autoScalaLibrary setting, thus putting the scalaInstance's JARs on the classpath even if autoScalaLibrary is set to false.
The workaround in https://github.com/scala/scala/pull/5190/commits/02d75b39a7141c02d789df1bcbd6a4c74313de1c should make sbt see the scalaInstance as managed, thus keeping it off the classpath but I haven't verified it yet. It uses a deprecated ScalaInstance constructor, so it's not a viable long-term solution. We're currently using sbt 0.13.11.

/cc @retronym (who originally discovered the issue)


Fix flax.linen.stochastic.Dropout

What does this PR do?
Current flax.linen.stochastic.Dropout returns zeros_like(inputs) if drop rate is 1 even though deterministic argument is set True.
import flax.linen as nn
import jax
import jax.numpy as jnp

class Test(nn.Module):

    @nn.compact
    def __call__(self, x, deterministic: bool = False):
        x = nn.Dense(10)(x)
        x = nn.Dropout(rate=1.)(x, deterministic=deterministic)
        return x

test_model = Test()
rng = jax.random.PRNGKey(42)
outputs, params = test_model.init_with_output(rng, jnp.ones((10, 10)), deterministic=False)

print(jnp.sum(outputs))

rng, _ = jax.random.split(rng)

outputs_deterministic = test_model.apply(params, jnp.ones((10, 10)), deterministic=True, rngs={'dropout': rng})

print(jnp.sum(outputs_deterministic))
print(params)

0.0
0.0
FrozenDict({
    params: {
        Dense_0: {
            kernel: DeviceArray([[ 0.16847129, -0.1178944 ,  0.13583411,  0.16801184,
                          -0.24065216,  0.01868828,  0.4807749 , -0.30601937,
                           0.32568878, -0.08822519],
                         [ 0.36135912,  0.1638065 , -0.28575695, -0.031698  ,
                          -0.3977836 , -0.17761624,  0.1090662 ,  0.17428328,
                           0.12361519,  0.70224416],
                         [-0.4673121 , -0.19664605, -0.2457073 ,  0.03010363,
                           0.02082355, -0.3135972 ,  0.21568213,  0.23018655,
                          -0.00779009,  0.17412186],
                         [ 0.34069905,  0.00373967, -0.01591648,  0.15487881,
                           0.07604861, -0.25911337,  0.04083756, -0.08719958,
                           0.35543105, -0.11303028],
                         [ 0.35775012, -0.52226734, -0.45758778, -0.46874872,
                          -0.20843479,  0.378424  ,  0.27923864, -0.21878792,
                          -0.08861114, -0.21674518],
                         [ 0.5622318 , -0.18204133,  0.18515447, -0.03003849,
                          -0.24391893, -0.05861915, -0.71287733, -0.55168146,
                           0.28309464,  0.21501313],
                         [ 0.3712106 ,  0.5399647 , -0.21155106, -0.0811978 ,
                          -0.26425117, -0.09787431, -0.3940018 ,  0.27078357,
                          -0.18498448,  0.22094563],
                         [ 0.47136635, -0.27565262, -0.47951284,  0.11183885,
                           0.4013355 ,  0.11647745, -0.46050343, -0.20171496,
                           0.5458673 , -0.38525596],
                         [-0.696714  , -0.1420307 , -0.31419477, -0.37206405,
                          -0.07097312, -0.26630354,  0.40364647, -0.01666957,
                           0.19186951,  0.01891448],
                         [-0.15773533, -0.01117601,  0.0558053 ,  0.05353177,
                          -0.46538368,  0.3182615 , -0.38293365, -0.04739544,
                          -0.02096457,  0.31650487]], dtype=float32),
            bias: DeviceArray([0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], dtype=float32),
        },
    },
})

But I believe Dropout with rate 1. should return output calculated with initialized weights not zeros_like(outputs) when validate model.
So I reordered some condition operators.
same test code, but different result.
0.0
-20.697302

Below is test result with changed codes.
(flax_test) idongheon@idongheon-ui-MacBookAir flax % python ./tests/linen/linen_test.py
Running tests under Python 3.10.5: /Users/idongheon/miniforge3/envs/flax_test/bin/python
[ RUN      ] IdsTest.test_hashable
[       OK ] IdsTest.test_hashable
[ RUN      ] NormalizationTest.test_batch_norm
I1006 18:52:34.324705<PHONE_NUMBER> xla_bridge.py:169] Remote TPU is not linked into jax; skipping remote TPU.
I1006 18:52:34.325006<PHONE_NUMBER> xla_bridge.py:345] Unable to initialize backend 'tpu_driver': Could not initialize backend 'tpu_driver'
I1006 18:52:34.325146<PHONE_NUMBER> xla_bridge.py:345] Unable to initialize backend 'cuda': module 'jaxlib.xla_extension' has no attribute 'GpuAllocatorConfig'
I1006 18:52:34.325252<PHONE_NUMBER> xla_bridge.py:345] Unable to initialize backend 'rocm': module 'jaxlib.xla_extension' has no attribute 'GpuAllocatorConfig'
I1006 18:52:34.325681<PHONE_NUMBER> xla_bridge.py:345] Unable to initialize backend 'tpu': module 'jaxlib.xla_extension' has no attribute 'get_tpu_client'
[       OK ] NormalizationTest.test_batch_norm
[ RUN      ] NormalizationTest.test_batch_norm_complex
[       OK ] NormalizationTest.test_batch_norm_complex
[ RUN      ] NormalizationTest.test_batch_norm_multi_init
[       OK ] NormalizationTest.test_batch_norm_multi_init
[ RUN      ] NormalizationTest.test_group_norm
[       OK ] NormalizationTest.test_group_norm
[ RUN      ] NormalizationTest.test_group_norm_raises
[       OK ] NormalizationTest.test_group_norm_raises
[ RUN      ] NormalizationTest.test_layer_norm0 (reduction_axes=-1)
[       OK ] NormalizationTest.test_layer_norm0 (reduction_axes=-1)
[ RUN      ] NormalizationTest.test_layer_norm1 (reduction_axes=1)
[       OK ] NormalizationTest.test_layer_norm1 (reduction_axes=1)
[ RUN      ] NormalizationTest.test_layer_norm2 (reduction_axes=(1, 2))
[       OK ] NormalizationTest.test_layer_norm2 (reduction_axes=(1, 2))
[ RUN      ] PoolTest.test_avg_pool0 (count_include_pad=True)
[       OK ] PoolTest.test_avg_pool0 (count_include_pad=True)
[ RUN      ] PoolTest.test_avg_pool1 (count_include_pad=False)
[       OK ] PoolTest.test_avg_pool1 (count_include_pad=False)
[ RUN      ] PoolTest.test_avg_pool_no_batch0 (count_include_pad=True)
[       OK ] PoolTest.test_avg_pool_no_batch0 (count_include_pad=True)
[ RUN      ] PoolTest.test_avg_pool_no_batch1 (count_include_pad=False)
[       OK ] PoolTest.test_avg_pool_no_batch1 (count_include_pad=False)
[ RUN      ] PoolTest.test_avg_pool_padding_same0 (count_include_pad=True)
[       OK ] PoolTest.test_avg_pool_padding_same0 (count_include_pad=True)
[ RUN      ] PoolTest.test_avg_pool_padding_same1 (count_include_pad=False)
[       OK ] PoolTest.test_avg_pool_padding_same1 (count_include_pad=False)
[ RUN      ] PoolTest.test_max_pool
[       OK ] PoolTest.test_max_pool
[ RUN      ] PoolTest.test_pool_custom_reduce
[       OK ] PoolTest.test_pool_custom_reduce
[ RUN      ] RecurrentTest.test_complex_input_gru
[       OK ] RecurrentTest.test_complex_input_gru
[ RUN      ] RecurrentTest.test_convlstm
[       OK ] RecurrentTest.test_convlstm
[ RUN      ] RecurrentTest.test_gru
[       OK ] RecurrentTest.test_gru
[ RUN      ] RecurrentTest.test_lstm
[       OK ] RecurrentTest.test_lstm
[ RUN      ] RecurrentTest.test_optimized_lstm_cell_matches_regular
/Users/idongheon/miniforge3/envs/flax_test/lib/python3.10/site-packages/jax/test_util.py:44: FutureWarning: jax.test_util.check_eq is deprecated and will soon be removed.
  warnings.warn(f"jax.test_util.{attr} is deprecated and will soon be removed.", FutureWarning)
[       OK ] RecurrentTest.test_optimized_lstm_cell_matches_regular
[ RUN      ] StochasticTest.test_dropout
[       OK ] StochasticTest.test_dropout
[ RUN      ] StochasticTest.test_dropout_rate_limits
[       OK ] StochasticTest.test_dropout_rate_limits
[ RUN      ] StochasticTest.test_dropout_rate_stats
[       OK ] StochasticTest.test_dropout_rate_stats
----------------------------------------------------------------------
Ran 25 tests in 14.817s

OK

Thank you.
Fixes # (issue)
Checklist

[x] This PR fixes a minor issue (e.g.: typo or small bug) or improves the docs (you can dismiss the other
checks if that's the case).
[ ] This change is discussed in a Github issue/
discussion (please add a
link).
[x] The documentation and docstrings adhere to the
documentation guidelines.
[x] This change includes necessary high-coverage tests.
(No quality testing = no merge!)

Codecov Report

Merging #2510 (2d55e20) into main (61e47c2) will decrease coverage by 0.11%.
The diff coverage is 87.50%.

@@            Coverage Diff             @@
##             main    #2510      +/-   ##
==========================================
- Coverage   79.04%   78.93%   -0.12%
==========================================
  Files          49       49
  Lines        5183     5132      -51
==========================================
- Hits         4097     4051      -46
+ Misses       1086     1081       -5

Impacted Files
Coverage Δ

flax/linen/stochastic.py
96.29% <87.50%> (-0.26%)
:arrow_down:

flax/core/nn/linear.py
42.34% <0.00%> (-0.52%)
:arrow_down:

flax/struct.py
77.04% <0.00%> (-0.38%)
:arrow_down:

flax/core/scope.py
89.72% <0.00%> (-0.07%)
:arrow_down:

flax/core/lift.py
95.81% <0.00%> (-0.07%)
:arrow_down:

flax/linen/normalization.py
97.10% <0.00%> (-0.05%)
:arrow_down:

flax/core/frozen_dict.py
96.19% <0.00%> (-0.04%)
:arrow_down:

flax/traverse_util.py
98.52% <0.00%> (-0.01%)
:arrow_down:

flax/linen/summary.py
99.00% <0.00%> (-0.01%)
:arrow_down:

flax/linen/recurrent.py
100.00% <0.00%> (ø)

... and 5 more

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

@dslisleedh looks good! pre-commit is failing, can you run pre-commit and push again?
pip install pre-commit
pre-commit install
pre-commit run --all-files

@cgarciae Thank you for  your help :) Passed all checks


Search broken on 404 page

Provide a link to the page with an issue:
https://docs.pachyderm.com/en/latest/fundamentals/creating_services.html
Describe what is wrong:

Go to a page that doesn't exist and get the 404 page
Try entering a search term into the search box,
Wait for results, only "Type to start searching" is displayed

While it is annoying and must be fixed, I'm setting the priority of this issue to low.

This can no longer be reproduced.

This can no longer be reproduced.


Remove ruler_replica as no data is available anymore with this label

@metalmatze @squat @aditya-konarde

Please run ./build.sh


[Bug] FE start will report NPE after FE Node Crash

Search before asking

[X] I had searched in the issues and found no similar issues.

Version

= <IP_ADDRESS>

What's Wrong?

What You Expected?
FE restart normal
How to Reproduce?
No response
Anything Else?
No response
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Fixed PR：#33108


Transpiler return instructions with different parameter types.

Environment

Qiskit Terra version: 0.21.2
Python version: 3.10.4
Operating system: Linux

What is happening?
When using the transpile function, different gates get transpiled into Instructions with different parameter types. I am not sure if this is a bug or intended.
How can we reproduce the issue?
Some gates, such as Hadamard gate, transpile into an instruction with float as parameter.
circuit = qiskit.QuantumCircuit(1,1)
circuit.h(0)
transpiled_circuit = qiskit.transpile(circuit, basis_gates=['id', 'rx', 'ry'])
transpiled_circuit[1].operation.params  #[1.5707963267948966]

Others, for example the S gate, transpile into an instruction with ParameterExpression as parameter.
import qiskit
circuit = qiskit.QuantumCircuit(1,1)
circuit.s(0)
transpiled_circuit = qiskit.transpile(circuit, basis_gates=['id', 'rx', 'ry'])
transpiled_circuit[1].operation.params #[ParameterExpression(-1.5707963267949)]

What should happen?
Both Hadamard and S gates should transpile into instructions of same type, preferably float.
Any suggestions?
No response

In theory, ParameterExpression that contains only floats should behave purely as a float.  Unfortunately, we know that's not always the case (which is where the bug, if any here, lies).  The reason it sometimes appears is to do with how the basis translation is done - if the path through the graph defined by the EquivalenceLibrary only goes through non-parametrized gates until the end it will never involve ParameterExpression, but if it does, it will.
In this case, the path for h is directly "h -> [ry, rx]", which never uses ParameterExpression, but the path for s is "s -> u1 -> u3 -> [rz, sx] -> [...] -> [ry, rx]", and the conversion rules for u1 and u3 both use general ParameterExpressions.
In general, if you need things to be float, you can just call float on all the parameters and the ParameterExpression bit will disappear.  I thought we had an open issue about it, but #6812 is the closest I could quickly find, which isn't exactly the same.
(Also: hello from the other side!)

Hey @jakelishman! Thanks for your answer, I now have a better idea of what happens here. Our issues comes specifically from not being able to compare a ParameterExpression to a float. I could try to take a look and implement it if you think it makes sense.


bad export of box-less legend

Reported by Durga Lal Shrestha on Feb 9, 2015:
I have the legend at the Southoutside with horizontal orientation. When the box of the legend is set to 'off', a little bit bottom part of the legend is also cropped when exporting figure to eps and pdf (no problem with png). There is a no problem with box outline. The problem persists in MATLAB R2014b.
plot(1:10);
h=legend('line','location','Southoutside');
set(h,'Box','off');
export_fig test.eps;
winopen test.eps

Note: This problem appears in R2014a and earlier, but was apparently solved in R2014b.
I maintain this issue open for the time being, in the hope that a workaround for R2014a and earlier will be found.

Fixed along with issue #56 (Cropping for PDF crops out the Axes (crops too much))


Ignoring reasons and namespace not fully working?

Describe the bug
Ignoring patterns not working correctly
To Reproduce
I have this config:
    ignoreFailedGracefulShutdown: true
    ignoreContainerNames:
      - b24depot-container-cron
    ignorePodNames:
      - scan-vulnerabilityreport-.*
    alert:
      slack:
        webhook: https://hooks.slack.com/services/XXX
    app:
      clusterName: testowy
      disableStartupMessage: true
      logFormatter: json
    namespaces:
      - "!trivy-system"
    reasons:
      - "!Completed"

and still I have alert trigger from ignored namespace and with ignored reason.
Log with reason: Complited
{"level":"info","msg":"skip namespace trivy-system as in namespace forbid list","time":"2024-06-03T07:41:35Z"}
{"level":"info","msg":"skip namespace trivy-system as in namespace forbid list","time":"2024-06-03T07:41:36Z"}
{"level":"info","msg":"container only issue app-crawlers-project-0-c-0 app-crawlers-project-0-7b9cf895b4-8t666 app-crawlers-project-0-7b9cf895b4 Completed  0","time":"2024-06-03T07:41:38Z"}
{"level":"info","msg":"sending event: {PodName:app-crawlers-project-0-7b9cf895b4-8t666 ContainerName:app-crawlers-project-0-c-0 Namespace:parser Reason:Completed Events:[2024-06-03 07:41:37 +0000 UTC] Pulled Container image \"masked/image:version\" already present on machine\n[2024-06-03 07:41:37 +0000 UTC] Created Created container app-crawlers-project-0-c-0\n[2024-06-03 07:41:37 +0000 UTC] Started Started container app-crawlers-project-0-c-0 Logs: Labels:map[app:app-crawlers-project-0 app.kubernetes.io/app-instance:app app/network-policy.allowed-egress:true app/network-policy.allowed-egress-internal:true app/network-policy.allowed-egress-world:true pod-template-hash:7b9cf895b4]}","time":"2024-06-03T07:41:38Z"}
{"level":"info","msg":"skip namespace trivy-system as in namespace forbid list","time":"2024-06-03T07:41:50Z"}
{"level":"info","msg":"skip namespace trivy-system as in namespace forbid list","time":"2024-06-03T07:41:50Z"}

Log from namespace trivy-system and also from ignored pod name:
{"level":"info","msg":"skip namespace trivy-system as in namespace forbid list","time":"2024-06-03T07:56:20Z"}
{"level":"info","msg":"skip namespace trivy-system as in namespace forbid list","time":"2024-06-03T07:56:21Z"}
{"level":"info","msg":"skip namespace trivy-system as in namespace forbid list","time":"2024-06-03T07:56:25Z"}
{"level":"info","msg":"skip namespace trivy-system as in namespace forbid list","time":"2024-06-03T07:56:25Z"}
{"level":"info","msg":"skip namespace trivy-system as in namespace forbid list","time":"2024-06-03T07:56:26Z"}
{"level":"info","msg":"container only issue pl--initial-loads--initial-loads-1-c-2 scan-vulnerabilityreport-b865bd4db-bbxpq scan-vulnerabilityreport-b865bd4db Error  2","time":"2024-06-03T07:56:26Z"}
{"level":"info","msg":"sending event: {PodName:scan-vulnerabilityreport-b865bd4db-bbxpq ContainerName:pl--initial-loads--initial-loads-1-c-2 Namespace:trivy-system Reason:Error Events:[2024-06-03 07:51:26 +0000 UTC] Pulled Container image \"ghcr.io/aquasecurity/trivy:0.49.1\" already present on machine\n[2024-06-03 07:51:26 +0000 UTC] Created Created container c6e328d8-a6ae-475b-9c27-febcd8147636\n[2024-06-03 07:51:26 +0000 UTC] Started Started container c6e328d8-a6ae-475b-9c27-febcd8147636\n[2024-06-03 07:51:27 +0000 UTC] Pulled Container image \"ghcr.io/aquasecurity/trivy:0.49.1\" already present on machine\n[2024-06-03 07:51:27 +0000 UTC] Created Created container e66b6981-92f5-41d0-b068-1dd71fc51cda\n[2024-06-03 07:51:27 +0000 UTC] Started Started container e66b6981-92f5-41d0-b068-1dd71fc51cda\n[2024-06-03 07:51:36 +0000 UTC] Pulled Container image \"masked/image:version\" already present on machine\n[2024-06-03 07:51:36 +0000 UTC] Created Created container pl--initial-loads--initial-loads-1-c-0\n[2024-06-03 07:51:36 +0000 UTC] Started Started container pl--initial-loads--initial-loads-1-c-0\n[2024-06-03 07:51:36 +0000 UTC] Pulled Container image \"masked/image:version\" already present on machine\n[2024-06-03 07:51:36 +0000 UTC] Created Created container pl--initial-loads--initial-loads-1-c-1\n[2024-06-03 07:51:36 +0000 UTC] Started Started container pl--initial-loads--initial-loads-1-c-1\n[2024-06-03 07:51:36 +0000 UTC] Pulled Container image \"masked/image:version\" already present on machine\n[2024-06-03 07:51:36 +0000 UTC] Created Created container pl--initial-loads--initial-loads-1-c-2\n[2024-06-03 07:51:37 +0000 UTC] Started Started container pl--initial-loads--initial-loads-1-c-2\n[2024-06-03 07:51:37 +0000 UTC] Pulled Container image \"masked/image:version\" already present on machine\n[2024-06-03 07:51:37 +0000 UTC] Created Created container pl--initial-loads--initial-loads-1-c-3\n[2024-06-03 07:51:37 +0000 UTC] Started Started container pl--initial-loads--initial-loads-1-c-3\n[2024-06-03 07:51:37 +0000 UTC] Pulled Container image \"masked/image:version\" already present on machine\n[2024-06-03 07:51:37 +0000 UTC] Created Created container pl--initial-loads--initial-loads-1-c-4\n[2024-06-03 07:51:37 +0000 UTC] Started Started container pl--initial-loads--initial-loads-1-c-4\n[2024-06-03 07:51:37 +0000 UTC] Pulled Container image \"masked/image:version\" already present on machine\n[2024-06-03 07:51:37 +0000 UTC] Created Created container pl--initial-loads--initial-loads-1-c-5\n[2024-06-03 07:51:37 +0000 UTC] Started Started container pl--initial-loads--initial-loads-1-c-5\n[2024-06-03 07:51:37 +0000 UTC] Pulled Container image \"masked/image:version\" already present on machine Logs: Labels:map[app.kubernetes.io/managed-by:trivy-operator batch.kubernetes.io/controller-uid:64a783a2-1249-4ee1-b36e-318f678e4e84 batch.kubernetes.io/job-name:scan-vulnerabilityreport-b865bd4db controller-uid:64a783a2-1249-4ee1-b36e-318f678e4e84 job-name:scan-vulnerabilityreport-b865bd4db resource-spec-hash:6cff5bff94 trivy-operator.resource.kind:ReplicaSet trivy-operator.resource.name:pl--initial-loads--initial-loads-1-6cc4486775 trivy-operator.resource.namespace:parser vulnerabilityReport.scanner:Trivy]}","time":"2024-06-03T07:56:26Z"}

Expected behavior
Not trigger alert, when event is from ignored namespace/reason or pod name
Actual behavior
As logs showed, sends an alert from an event with a few ignored fields
Version/Commit
0.9.2

@adamw-linadm Should be fixed in Release v0.9.3

@abahmed working well now, thanks :)


Added Jamie Taylor

Added Jamie Taylor, who produces The .NET Core Podcast.

I agree - This is an awesome podcast


Is it possible to have a shared index or change the frequency pylance scans the include list of dirs?

Pylance seems to be quite "intense" in IO operations while the indexing process runs, this is especially relevant when the folders in "python.analysis" contains a very big number of python packages (that are, for the most part, internally developed).
I'm not aware if there is a configuration where we can either limit this stress on the disks, or have a shared index that multiple instances of vscode can point at, or a way to limit at all the frequency used by pylance to rescan and rebuilds the index.
Thanks

are you seeing indexing after simple edits like adding a space?  the majority of indexing should only happen once at startup.
have you tried the latest pre-release of Pylance v2023.3.41?
currently to turn off indexing we only have
"python.analysis.indexing": false,

I can see that it's constantly looking at the folders listed in "python.analysis" (or my PYTHONPATH, they overlap up to a point).
The packages are "read only" once in those folders, but we release new versions very frequently and we switch between versions using symlinks.
The vast majority of the traffic seems to be related to the symlinks (we have lots of them).
Haven't tried the pre-release of Pylance yet, is there any improvement that may be relevant to this issue? Is there a changelog I could be looking at?
Thanks

Hi,
I've attached the log.
This is a truncated version of the log, 10Mb in size.
If left running, the log would go over 60Mb and it seems Pylance doesn't rotate more than 2 files with a fixed size of 30Mb each, which means I lose the beginning of the log.
Anyhow: I needed to hash the paths and some of the packages we use internally for confidentiality purposes. This shouldn't really affect the log, I think, as the path structure is maintained, and when relevant the python extensions are also maintained.
Let me know if this is of any help.
Thanks
hashed_vscode_pylance_log.zip

Indexing can be turned off or you can adjust it on a per directory basis.
"python.analysis.indexing": true,
  "python.analysis.packageIndexDepths": [
    {
      "name": "django",
      "depth": 4,
      "includeAllSymbols": true,
    },
    {
      "name" : "libcst",
      "depth": 4,
      "includeAllSymbols": true
    }
  ],

Indexing is not cached however, so you can't share it amongst machines.

@andrearastelli so I looked your log
For third party library (packages in site-package including one in virtual env), you can use
"python.analysis.packageIndexDepths": [
    {
      "name": "<package name>",
      "depth": 0,
    },
    ...
  ]

to exclude package name from the indexing.
For user files (files under workspace.root), we will index up to 2000 files per workspace when vscode is started. and then only files that are affected by the change.
that being said, I see your file io is very slow
[Info  - 6:01:14 PM] (28938) [BG(1)] Long operation: parsing: /4ea1/80d2d07ab/558/a8920649816a/11a4a6/a8920649816a/cc273dcf3e6063adb.py (26298ms)
[Info  - 6:01:14 PM] (28938) [BG(1)] Long operation: parsing: /4ea1/80d2d07ab/558/a8920649816a/11a4a6/a8920649816a/117426151.py (2583ms)
[Info  - 6:01:14 PM] (28938) [BG(1)] Long operation: parsing: /4ea1/80d2d07ab/558/a8920649816a/11a4a6/a8920649816a/198ef90e4ea.py (9728ms)
[Info  - 6:01:14 PM] (28938) [BG(2)] Long operation: parsing: /4ea1/80d2d07ab/11a4a6/4c99c877e/1e32/430c5cbcc00853.py (8165ms)

I see 700+ of them from the log.

If your file io is this slow, I think any workspace level features such as indexing, find all reference, global rename, workspace symbols and etc that requires parsing every files in your context would be un-usable in your setup. features that require your explicit request such as find all references or rename would be fine, but features that would run in BG such as indexing, I think it would be better to be turned off.
you can use the setting below to turn it off
  "python.analysis.indexing": false

We have thousands of individual Python packages and we add new ones every week, maintaining a list of depth limits for each individual package is not very practical.
And we do not think the volumes are slow.
With logging disabled we traced the IO operations done by pylance and we have recorded up to ten million operations per minute (average latency under one millisecond) issued for over six thousand different paths.
That number of operations per path combined with your suggestion of limiting the depth of the indexing per package is making us wonder if pylance has an issue with indirect cycling dependencies?
We know for a fact that we have indirect dependency cycles (package A depends on package B that depends on package C that depends on package D that depends on package A...).
Does pylance detect those indirect dependency cycles?
How are they handled?
Does it rely on a depth limit to break the cycles and avoid an infinite indexing loop?
What is the default depth limit?

For third party libraries, we only scan the top __init__ by default (depth of 1), so those cycle shouldn't matter. and yes, we do detect those cycle since we use normalized file path to index.
the attached log seems cut out in the middle so we can't be 100% sure, but at least, log has this entry
(28938) [IDX(10)] scan packages /4ea1/80d2d07ab/558/a8920649816a (22394ms)
[Info  - 6:02:10 PM] (28938) [IDX(10)] Long operation: scan packages /4ea1/80d2d07ab/558/a8920649816a (22394ms)
[Info  - 6:02:10 PM] (28938) scanned(10) 1427 files over 1 exec env

meaning at least one of them (among multiple roots), finished scanning.

we do not think the volumes are slow.

unfortunately, the log says otherwise (or at least, for things matter to us)
For example, the log shows that, scanning installed package for 1 root took 22 seconds. and log shows at least 9 more roots. if other roots are about the same shape, then it will take total about 180+ seconds. by the way, slowness might not be due to perf of each io, but due to number of files that add up to 180+ seconds.
also, I see over 700 files taking more than 2 seconds to parse.
either those 700 files are quite large or CPU is throttled or IO is slow.
[Info  - 6:01:14 PM] (28938) [BG(1)] Long operation: parsing: /4ea1/80d2d07ab/558/a8920649816a/11a4a6/a8920649816a/cc273dcf3e6063adb.py (26298ms)
[Info  - 6:01:14 PM] (28938) [BG(1)] Long operation: parsing: /4ea1/80d2d07ab/558/a8920649816a/11a4a6/a8920649816a/198ef90e4ea.py (9728ms)
[Info  - 6:01:14 PM] (28938) [BG(2)] Long operation: parsing: /4ea1/80d2d07ab/11a4a6/4c99c877e/1e32/430c5cbcc00853.py (8165ms)

For exmaple, this particular file /4ea1/80d2d07ab/558/a8920649816a/11a4a6/a8920649816a/cc273dcf3e6063adb.py (26298ms) took 26 second to parse.
...
unless we can have a hand on some kind of live repro, it would be hard for us to find out why things behave this way for you guys.

scans thousands of packages millions of times again and again

the log shows only 1 scan packages, so I can't confirm whether it scanned again and again. unless you worry about github file limit or bandwidth, it would be easier for us to dig in more detail if we get full log to verify that we scanned some packages again and again and if it did, why we did it.

As we mentioned before, we traced pylance doing millions of readlink operations per minute, again and again for the same packages, up to 200,000 IO operations per second

I think you are asking about disk walking we do. There are various different disk walking we do but ones we do in bulk are 2

scanning import roots (site-package and etc) per workspace to find all installed packages (indexing)
scanning workspace root per workspace to find all user files (files that meets include/exclude)

we also do disk walking when we resolve import statement but that happen lazily so it shouldn't happen in bulk.
now, you have 7 workspace roots and each workspace's import roots (site-packages and etc) might have overlapping folders but we cache them (unless we dump cache in the middle of walking due to heap limitation of vscode)
so, again, unless we can take a look at the full log, hard to know whether we are visiting same files or not.

The package that you report took 22 seconds to parse has 87 Python files, less than 5 MB in total.

hmmm. if you are talking about this

(28938) [IDX(10)] scan packages /4ea1/80d2d07ab/558/a8920649816a (22394ms)
[Info  - 6:02:10 PM] (28938) [IDX(10)] Long operation: scan packages /4ea1/80d2d07ab/558/a8920649816a (22394ms)
[Info  - 6:02:10 PM] (28938) scanned(10) 1427 files over 1 exec env

what it means is we found 1427 files we would consider to index from third party roots (site-packages and etc)
I think what you meant by "87 Python files, less than 5 MB in total" is that workspace has 87 user files under the workspace root?
...
here are other info I can see from log
For the workspace in the log, it has 26 different import roots our scanner need to dig into.
[Info  - 5:57:30 PM] (28938) Search paths for /4ea1/80d2d07ab/558/a8920649816a/11a4a6
[Info  - 5:57:30 PM] (28938)   /7cada/90b/4ea1/80d2d07ab/27bf025/20ef7739e8/0b8c2eb00f58285e586beb4ddf054a133f/bcae/04659b664da38b759/6c6838
[Info  - 5:57:30 PM] (28938)   /4ea1/80d2d07ab/558/a8920649816a/11a4a6
[Info  - 5:57:30 PM] (28938)   /4ea1/80d2d07ab/558/a8920649816a/${userHome}/python
[Info  - 5:57:30 PM] (28938)   /4ea1/80d2d07ab/558/a8920649816a/${userHome}/python/_Qt
[Info  - 5:57:30 PM] (28938)   /c1a/241/f6840/b986ae2d5/
[Info  - 5:57:30 PM] (28938)   /c1a/f79d/f6840/b986ae2d5/
[Info  - 5:57:30 PM] (28938)   /c1a/f9d35/f6840/b986ae2d5
[Info  - 5:57:30 PM] (28938)   /4ea1/80d2d07ab/558/a8920649816a/11a4a6
[Info  - 5:57:30 PM] (28938)   /c1a/f9d35/a95983534f7562083/8285abe475feafe640a2e7f3
[Info  - 5:57:30 PM] (28938)   /4ea1/80d2d07ab/a5d2f2/76b/b986ae2d5/14cb5cd8791d7
[Info  - 5:57:30 PM] (28938)   /4ea1/80d2d07ab/11a4a6
[Info  - 5:57:30 PM] (28938)   /4ea1/80d2d07ab/558/a8920649816a/8187df0
[Info  - 5:57:30 PM] (28938)   /7cada/90b/4ea1/80d2d07ab/27bf025/20ef7739e8/0b8c2eb00f58285e586beb4ddf054a133f/bcae/04659b664da38b759/1b101/ab5
[Info  - 5:57:30 PM] (28938)   /7cada/90b/4ea1/80d2d07ab/27bf025/20ef7739e8/0b8c2eb00f58285e586beb4ddf054a133f/bcae/4c4164b/1b101
[Info  - 5:57:30 PM] (28938)   /7cada/90b/4ea1/80d2d07ab/27bf025/20ef7739e8/0b8c2eb00f58285e586beb4ddf054a133f/bcae
[Info  - 5:57:30 PM] (28938)   /7cada/90b/4ea1/80d2d07ab/a5d2f2/76b/b986ae2d5/14cb5cd8791d7
[Info  - 5:57:30 PM] (28938)   /7cada/90b/4ea1/80d2d07ab/11a4a6
[Info  - 5:57:30 PM] (28938)   /7cada/90b/c1a/a7e04/e73c/45066dd/f6840/b986ae2d5
[Info  - 5:57:30 PM] (28938)   /usr/lib64/python3.7
[Info  - 5:57:30 PM] (28938)   /usr/lib64/python3.7/lib-dynload
[Info  - 5:57:30 PM] (28938)   /7cada/90b/c1a/a7e04/241/f6840/b986ae2d5
[Info  - 5:57:30 PM] (28938)   /7cada/90b/c1a/a7e04/241/f6840/b986ae2d5/4612828a/90b#72.0
[Info  - 5:57:30 PM] (28938)   /7cada/90b/c1a/a7e04/f79d/f6840/b986ae2d5
[Info  - 5:57:30 PM] (28938)   /7cada/90b/c1a/a7e04/f9d35/f6840/b986ae2d5
[Info  - 5:57:30 PM] (28938)   /usr/lib64/python3.7/site-packages
[Info  - 5:57:30 PM] (28938)   /usr/lib/python3.7/site-packages

and the workspace has 216,486 user files
[Info  - 5:57:30 PM] (28938) Searching for source files
[Error - 5:57:40 PM] (28938) Enumeration of workspace source files is taking longer than 10 seconds.
This may be because:
* You have opened your home directory or entire hard drive as a workspace
* Your workspace contains a very large number of directories and files
* Your workspace contains a symlink to a directory with many files
* Your workspace is remote, and file enumeration is slow
To reduce this time, open a workspace directory with fewer files or add a pyrightconfig.json configuration file with an "exclude" section to exclude subdirectories from your workspace. For more details, refer to https://github.com/microsoft/pyright/blob/main/docs/configuration.md.
[Info  - 5:58:22 PM] (28938) Found 216486 source files

among which, we will parse 2,000 files.
and assuming you have 8 more of these workspace with similar shape, we would dig in about 240 folders to find third party packages and discover 1.8M files and parse 18K files up front.
...
anyway, did you try to turn off indexing and see whether it improves parse time such as this? /4ea1/80d2d07ab/558/a8920649816a/11a4a6/a8920649816a/cc273dcf3e6063adb.py (26298ms)
even after turning off indexing, we would spend time to discover 1.8M files though.

you said 87 Python files, less than 5 MB in total but log says Found 216486 source files so I wonder whether our default include/exclude doesn't work for your environment. try to set include/exclude explicitly in your workspace settings file, pyrightconfig.json or pyproject.toml. so we don't dig into folders that won't contain any user files.

While looking at the logs we've found this particular message hundreds of times:
FATAL ERROR: NewSpace::Rebalance Allocation failed - JavaScript heap out of memory
[Info  - 11:12:16 AM] Connection to server got closed. Server will restart.

and we were wondering if this could be Pylance running out of memory and restarting again again.
I'll be running more tests with pyrightconfig.json configured, but we've noticed that the logs behave in a strange way:

they seems to be rotating with size up to 30Mb
the rotation keeps only 2 logs at any given time: #-Python Language Server.log and #-Python Language Server.1.log

This means, like in our case, that if the log generated grows above 60Mb, we're not gonna get the beginning of the log.
Also, if pylance restarts again and again because goes out of memory, would that mean the log will grow indefinitely?

ya, it sounds like your case is above our max threshold. and it looks like your environment is above what vscode can handle (more specifically, what electron can handle - electron has a physical heap max limit of 4GB in 64bit OS - https://www.electronjs.org/blog/v8-memory-cage)
so, does your environment really need 1.8M user files? I am asking since a lot of these kinds of cases, user had symlinks to some random folders outside of workspace root under some random folders under workspace root that contained bunch of random py files laying around in the drive and due to naive default include/exclude (which says include every py and pyi files under workspace root), it discovered them all.
most of cases, user could cut out unnecessary files, that are usually almost all of them, reducing number files to bring into memory dramatically.
if you really need those 1.8M files, only way I can think of right now is using a trick to use regular nodejs that has no pointer compression turned on so you can use full 64bit memory space. but that being said, I am not sure how much it will be useful except it won't OOM.
the trick is using remote vscode with this option export NODE_OPTIONS="--max-old-space-size=<memory in MB>" as described here (https://github.com/microsoft/pylance-release/issues/4121#issuecomment-1479713013). that will make vscode to use regular nodejs with max heap limit of memory in MB
another way is rather than opening folders, just open a file without it so it doesn't bring in files for workspace side features such as indexing, rename and etc
but that being said, I think better way is just removing unnecessary files using include/exclude options.


triangle: tests for the dig deeper section

Hey, while I was doing the Triangle exercise, I did a few tests for the dig deeper section that checks for degenerate triangles. Do you think it is worth adding some tests for this functionality?

Hello @gris, I'm so sorry that nobody responded to your suggestion five years ago.
If you do want to propose some extra tests I would recommend that you open an issue in the https://github.com/exercism/problem-specifications repository describing the test cases that you added, and discuss this with maintainers who manage the shared repository of test cases.
You can see the current list of test cases here: https://github.com/exercism/problem-specifications/blob/main/exercises/triangle/canonical-data.json


Missing class in Create Widget

Hi guys!
There is a missing class in the Create Widget. What class is supposed to be created there? Can I get a fix for it?

Nope. I still have the same error. And WBP_Wallet is broken too. I see that the C++ functions are exposed to BP, so it seems that the project was compiled successfully.
I have followed all the installation steps and I even compiled the project from VS before running Unreal Editor.

@nyanilo I've been able to reproduce the issue, thank you for reporting this.
It should be fixed here 7929d9582ac60dbd3d00606749de4c8bca455ab6


when button get focus, press SPACE key, _unhandled_key_input called

Godot version:
3.2.4 beta4
OS/device including version:
win10/rx5700
Issue description:
when button get focus, press SPACE key, _unhandled_key_input called, but LineEdit get focus everything is ok, SPACE key will not call _unhandled_key_input.
Steps to reproduce:

focus on LineEdit everything is ok:

focus on Button,  press SPACE keyboard, the CHAR jumped!

@denghe Please upload a minimal reproduction project to make this easier to troubleshoot.

godot_frog.zip

As far as I can tell, this works as expected. By default, buttons do not set the status of key-events as handled. If you want, that the event doesn't get propagated further, you need to listen to the respective signal (button_down) and act accordingly. Here is a small example of how to achieve this in Godot v4:
func _on_button_down():
	get_viewport().set_input_as_handled()

As far as I can tell, this works as expected. By default, buttons do not set the status of key-events as handled. If you want, that the event doesn't get propagated further, you need to listen to the respective signal (button_down) and act accordingly. Here is a small example of how to achieve this in Godot v4:
func _on_button_down():
get_viewport().set_input_as_handled()

This solved my problem, from #100630, which turned out to be a duplicate of this issue, I'll note however that this behaviour is not documented in the Button or BaseButton classes documentation. It should be mentioned in the documentation for the button_down() and button_up() signals.


Non-tutorial quests not as functional/useful as on the website

The summary is that non-tutorial quests could probably benefit from having filters and/or being able to view more puzzles than the default number shown (assuming the player's goal is to progress through quests and level up badges). This is probably easiest for me to explain with some concrete examples:

For the Eterna100 quest, I am shown 20 puzzles on the mobile app (seemingly the 20 most-solved ones). One issue is that I have already solved all of these puzzles. I know that the Eterna100 collection is more than just these 20 puzzles, but without being able to view more puzzles or filter out ones I've already solved, I'm unable to (easily) progres further on this quest just through the app (I would need to somehow find the puzzles myself).

For the Just for Fun quest, I am also only shown 20 puzzles (a mix of solved and unsolved ones). Visually, it looks like these might be listed in a chronological order rather than being sorted by "most solved" like for the Eterna100 quest. Regardless, I know that this quest/badge involves more than just these 20 puzzles, but you wouldn't be able to infer that through the current app.

I thought I had set these up so that they didn't have a limit of how many they pulled back - need to fix that. Most of these have few enough puzzles that I'm not super concerned about filters, though maybe at least an uncleared option would be good...


ECMP routing

We need to implement equal-cost multipath routing.

This is probably a dumb question, but would this be done in Snabb/Lua?

We shouldn't have to implement much here. We need a BGP daemon like quagga to healthcheck the spike and make the ECMP announcement to the top-of-rack router, which does the ECMP implementation.
If we want to implement BGP ourselves, then we have a bit more cut out for us.

I guess i'm confused about the context of the ECMP code. Where would this thing live?

The router. We don't have to write it, routers already can do ECMP.


Indian elephant

Topic: The Indian elephant is one of three extant recognized subspecies of the Asian elephant, native to mainland Asia. The species is smaller than the African elephant species.
Folder Location: taxonomy/knowledge/animals/indian_elephant
Downloads:

qna.yaml: indian_elephants.txt
attribution.txt

Wiki link: https://en.wikipedia.org/wiki/Indian_elephant

Hey @kelbrown20 , Can you please describe more about the issue?

Got a lot of great contributions for this one. Closing for scannability, proceeding with the contributions


Fix/show contents when item is already shared or succeeded

For now simple copy paste / reuse of the logic from the ReadAttributeAcceptResponseItemRenderer rendering the already shared Attribute for the AttributeAlreadySharedAcceptResponseItemDVO and the successor for the AttributeSuccessionAcceptResponseItemDVO.

@britsta & @Milena-Czierlinski maybe you also want to look at this once it is merged.


Examples not working (Uncaught TypeError: undefined is not a function )

I tried to open lineChart.html.
Error : Uncaught TypeError: undefined is not a function
playground/angularjs-nvd3-directives/dist/angularjs-nvd3-directives.js:773

Has there been any progress on this issue.  I am receiving the same issue with the nvd3-multi-bar-chart directive.  Thank you

Hey everyone I found this problem in my development as well. I suspect it's a race condition on when the delay function is bound to the d3 chart. I added a small amendment you can see in the pull request.
If you're still using the non-delayed comment, you can assume it will late bind then you can have a small delay prior to the re-render, which makes for a better experience.

I got the same error by using the bar graph example exactly.
Uncaught TypeError: undefined is not a function(index):1459 (anonymous function)nv.d3.min.js:2 (anonymous function)

I resolved it by removing the .transitionDuration(350) from the example & now it works fine.

I got the same error by using multiBarChart.
d3 v3.5.5
nvd3 v1.8.1
angularjs-nvd3-directives v0.0.7

I was having the same issue when running example code for stacked area chart.
 var chart = nv.models.stackedAreaChart()
                  .margin({right: 100})
                  .x(function(d) { return d[0] })   //We can modify the data accessor functions...
                  .y(function(d) { return d[1] })   //...in case your data is formatted differently.
                  .useInteractiveGuideline(true)    //Tooltips which show all data points. Very nice!
                  .rightAlignYAxis(true)      //Let's move the y-axis to the right side.
                //  .transitionDuration(500)
                  .showControls(true)       //Allow user to choose 'Stacked', 'Stream', 'Expanded' mode.
                  .clipEdge(true);

Not sure of the exact issue but It is working for me after commenting out transitionDuration() cal (see above code sample).
Hope this helps.

I hit this issue too. After noodling this https://github.com/novus/nvd3/issues/1219 I experimenting changing versions of d3/nvd3 to no avail - then tried this comment https://github.com/novus/nvd3/issues/1219#issuecomment-143899421 making sure I loaded nvd3 much later than d3 and that fixed it for me!

I hit this issue with the pie chart. If I comment out the part with the description
                .description( attrs.description === undefined ? function ( d ) {
                    return d.description;
                  } : scope.description() )

it works fine.
I tried the various workarounds listed here:

I tried to specify an ID for the graph - didn't help
I tried both specifying and removing the description from the directive - it didn't make any difference
I tried debugging with a breakpoint and confirmed that attrs and scope both have a description field
I tried changing the default function to return d[2], to be consistent with the default functions for the x and y directives - didn't help

at this point, I am not quite sure what is undefined. I'm probably going to work around this by editing the javascript code to comment out the description until this is resolved

The part that is so bizarre is only the description is a problem. My directive looks like this,
                <nvd3-pie-chart
                    class="col"
                    id="move_wait_stop_summary"
                    data="data.currDaySummary.breakdown"
                    margin="{left:0,top:0,bottom:0,right:0}"
                    width="200"
                    height="150"
                    showlabels="true">
                    <!-- <svg height="300"></svg> -->
                </nvd3-pie-chart>

so I clearly have most possible fields NOT defined. In particular, I don't have the x and y attributes defined. The code for the x and y attributes appears to be identical to the description (after my last workaround above), but they don't cause any errors and it does.
                  .y( attrs.y === undefined ? function ( d ) {
                    return d[ 1 ];
                  } : scope.y() )

                .description( attrs.description === undefined ? function ( d ) {
                    return d[ 2 ];
                  } : scope.description() )

Since this is a giant chained statement, I wonder if something else in the middle is messed up and is causing the difference.

Final update before I give up and move on. My earlier errors were from a mobile webview in a hybrid app. I've noticed in the past that desktop and mobile browsers have slightly different behavior, so I tried loading my page using a desktop browser.
I now get the following error on both chrome and firefox:

nv.models.pieChart(...).x(...).y(...).width(...).height(...).margin(...).tooltips(...).noData(...).showLabels(...).labelThreshold(...).labelType(...).pieLabelsOutside(...).valueFormat(...).showLegend(...).description is not a function

and the error migrates to whereever the description is. If I move it right after the y, the error moves there
                  } : scope.y() ).description( attrs.description === undefined ? function ( d ) {
                    return d.description;
                  } : scope.description() ).width( scope.width ).height( scope.height ).

TypeError: nv.models.pieChart(...).x(...).y(...).description is not a function

and if I move it to the very end, I get this:
donut( attrs.donut === undefined ? false : attrs.donut === 'true' ).description( attrs.description === undefined ? function ( d ) {
                    return d.description;
                  } : scope.description() ).donutRatio

nv.models.pieChart(...).x(...).y(...).width(...).height(...).margin(...).tooltips(...).noData(...).showLabels(...).labelThreshold(...).labelType(...).pieLabelsOutside(...).valueFormat(...).showLegend(...).color(...).donutLabelsOutside(...).donut(...).description is not a function

There's something screwy about the definition of the description, but I can't see what it is - it seems to be identical to the x and y attributes. I've also confirmed through the debugger + console that the ternary clause in fact does return a function.
>>> attrs.description === undefined ? function ( d ) {
                    return d.description;
                  } : scope.description()
<- function (d)

At this point, I am unsure what to do for further debugging so I'm going to move on. Maybe somebody with more javascript-fu than me will be able to figure out wtf is going on.

Ok, so I figured it out. There is no description variable for the chart, which is why when we try to call the description function on the chart, we get the "function not found" error.
If we look at pieChart.js and pie.js, we can see variables for almost all the other configuration, including the x and y attributes:
https://github.com/novus/nvd3/blob/master/src/models/pie.js#L375
but not for description.
In fact, there is no description attribute in any model in the entire nvd3 repository.
https://github.com/novus/nvd3/search?utf8=✓&q=description
I am happy to submit a pull request to remove the description entry from the directive, although I still don't understand how something so basic has been broken for so long.

I looked at the source code for the samples here:
https://cmaurer.github.io/angularjs-nvd3-directives/pie.chart.html
and it turned out that they load nvd3 from a local copy and from not from the CDN.
Does the local copy have the description variable defined? Because otherwise, I don't understand how the samples even work?!

who's this?
On Mon, Jan 4, 2016 at 1:00 PM, shankari<EMAIL_ADDRESS>wrote:

I looked at the source code for the samples here:
https://cmaurer.github.io/angularjs-nvd3-directives/pie.chart.html
and it turned out that they load nvd3 from a local copy and from not from
the CDN.
Does the local copy have the description variable defined? Because
otherwise, I don't understand how the samples even work?!
—
Reply to this email directly or view it on GitHub
https://github.com/angularjs-nvd3-directives/angularjs-nvd3-directives/issues/210#issuecomment-168602749
.

actually i found the solution for this.
On Mon, Jan 4, 2016 at 2:51 PM, Tech Learn<EMAIL_ADDRESS>wrote:

who's this?
On Mon, Jan 4, 2016 at 1:00 PM, shankari<EMAIL_ADDRESS>wrote:

I looked at the source code for the samples here:
https://cmaurer.github.io/angularjs-nvd3-directives/pie.chart.html
and it turned out that they load nvd3 from a local copy and from not from
the CDN.
Does the local copy have the description variable defined? Because
otherwise, I don't understand how the samples even work?!
—
Reply to this email directly or view it on GitHub
https://github.com/angularjs-nvd3-directives/angularjs-nvd3-directives/issues/210#issuecomment-168602749
.

who's this?
A user who ran into a bug and spent some time tracking down the problem.

actually i found the solution for this
Great! I look forward to hearing/seeing it.

cool...
like the way you answer.
i've passed in question answer test 😁
On Mon, Jan 4, 2016 at 3:20 PM, shankari<EMAIL_ADDRESS>wrote:

who's this?
A user who ran into a bug and spent some time tracking down the problem.
actually i found the solution for this
Great! I look forward to hearing/seeing it.
—
Reply to this email directly or view it on GitHub
https://github.com/angularjs-nvd3-directives/angularjs-nvd3-directives/issues/210#issuecomment-168626728
.

what is your solution? Is it consistent with my comments above?

More than two years passed since issue was started, and still no solution provided. Nice.
Switching to other lib.

...

FWIW
I was getting the above error until i realised that the element i passed to the d3.select was not an svg
d3.select(element).append('svg').datum(data).call(chart);

Where data was in the format
{
    "key": "My Key",
    "values": [{"x": 1,"y": 0.5}, {"x": 2,"y": 5}, {"x": 3,"y": -1}],
    "color": "#ff7f0e"
}

This looks similar to this issue: https://github.com/angularjs-nvd3-directives/angularjs-nvd3-directives/issues/338#issuecomment-230157950


Dataset Viewer issue for bridgeconn/snow-mountain

Link
https://huggingface.co/datasets/bridgeconn/snow-mountain
Description
The dataset viewer is not working for dataset bridgeconn/snow-mountain.
Error details:
Error code:   JobRunnerCrashedError

Hi @anjalyjayakrishnan,
I think this is not a specific issue with the dataset viewer but with your loading script: the machine crashes because in your method _split_generators you try to load into the RAM memory all the audio data for each language. For example for "hindi" language, you try to load into memory the entire data from all the .tar.gz files contained in the directory https://huggingface.co/datasets/bridgeconn/snow-mountain/tree/main/data/cleaned/hindi:
        audio_data = {}
        for book in BOOKS_DIC[self.config.name]:
            archive_url = f"data/cleaned/{self.config.name}/{book}.tar.gz"
            archive_path = dl_manager.download(archive_url)
            for path, file in dl_manager.iter_archive(archive_path):
                audio_ = path.split('/')[-1]
                if audio_ not in audio_data:
                    content = file.read()
                    audio_data[audio_] = content

I guess your machine crashes as well when you kload the dataset locally without streaming mode, unless you have huge amount of RAM.
Instead, you should pass the dl_manager.iter_archive to the method _generate examples and yield each audio data after having read the corresponding wav file.
As an example, you can have a look at the "librispeech_asr" dataset (no need to implement the local_extracted_archive in your case): https://huggingface.co/datasets/librispeech_asr/blob/main/librispeech_asr.py
I am closing this issue. If you need further help or assistance, please feel free to use the Community tab in your dataset: https://huggingface.co/datasets/bridgeconn/snow-mountain/discussions


allow automation to create k8s 1.27 versions

What this PR does / why we need it:
This allows us to add k8s 1.27.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

Steps to reproduce

Does this PR introduce a user-facing change?

Does this PR require documentation?

The updated automation was run and produced https://github.com/replicatedhq/kURL/pull/4371

@emosbaugh yeah can do - should I leave in the minimal-127 test though?


Add function to sanitize path

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (ecf0a0d) to head (1f0931f).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #595   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           70        71    +1
  Lines         1845      1853    +8
  Branches       217       218    +1
=========================================
+ Hits          1845      1853    +8

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Add sprite animation body component

Hi!
I wrote SpriteAnimationBodyComponent to allow developers create body component with animation out of the box.
Also added doc for component and example.

Nice work! Will review it a bit later today. Can you add a line to the changelog describing your change?

Nice work! Will review it a bit later today. Can you add a line to the changelog describing your change?

Should I add this to current [next] section or create other one?

Should I add this to current [next] section or create other one?

Should I add this to current [next] section or create other one?

The current one

Should I add this to current [next] section or create other one?

The current one

Instead of re-implementing the methods that are on the SpriteAnimationComponent, can you follow the same pattern as on SpriteBodyComponent where it simply is a normal flame component on top of the BodyComponent? It will be a lot easier to maintain.
Or maybe, another better idea might be to make this solution even more general, with a BodyComponent that can have any type of PositionComponent on top of it, what do you think?

Instead of re-implementing the methods that are on the SpriteAnimationComponent, can you follow the same pattern as on SpriteBodyComponent where it simply is a normal flame component on top of the BodyComponent? It will be a lot easier to maintain.
Or maybe, another better idea might be to make this solution even more general, with a BodyComponent that can have any type of PositionComponent on top of it, what do you think?

The idea of this component is to allow users to display static sprite or animated one. So I've combine SpriteAnimatedComponent with SpriteComponent in one BodyComponent

The idea of this component is to allow users to display static sprite or animated one. So I've combine SpriteAnimatedComponent with SpriteComponent in one BodyComponent

Other idea: rename this component to SpriteCombinedAnimatedBodyComponent and create its own SpriteAnimationBodyComponent without abstraction

Other idea: rename this component to SpriteCombinedAnimatedBodyComponent and create its own SpriteAnimationBodyComponent without abstraction

The idea of this component is to allow users to display static sprite or animated one. So I've combine SpriteAnimatedComponent with SpriteComponent in one BodyComponent

It is a good idea, but I think it should be done in the main flame repository, and then that component can be shown on top of a body.

The idea of this component is to allow users to display static sprite or animated one. So I've combine SpriteAnimatedComponent with SpriteComponent in one BodyComponent

It is a good idea, but I think it should be done in the main flame repository, and then that component can be shown on top of a body.

Any update on this?

@drachim-dev yes, we have decided that this will be closed in favor of putting an arbitrary PositionComponent on top of a BodyComponent instead, the graphical part of things belong more in Flame than Forge2D.
I'll hopefully get some time this weekend to write up a PR for that.

But thanks for your contribution anyways @Alex-A4, it sparked some design discussions for sure!


Update docker oneliner and fix clone task

@jaentwistle why the confusion?

Just once conflict to resolve, then LGTM.


Consider cross site scripting protection

The beta content site uses helmet to add protection.
We need to consider when to add this or similar.

Since we use autoescape in nunjucks and do not maintain a session XSS should not be an issue for us at present.

Helmet is used within the repo. Closing.


APLOT results in the deletion of areas and area components.

🤓 Before submitting the issue

[X] I have visited the Troubleshooting section.
[X] I have searched among the existing issues.
[X] I am using a Python virtual environment.
[X] I am using the latest version of PyMAPDL and its dependencies (fully updated virtual environment). You can update them using pip install --upgrade --upgrade-strategy eager ansys-mapdl-core in your activated virtual environment.

🔍 Description of the bug
An area component exists.  APLOT command is issued.  The area component then no longer exists.  The area list changes from 1 and 2 when created to 3 and 4 after plotting.  Something is copying areas and accidentally deleting the original areas.  PyMAPDL version 0.68.4
🕵 Steps To Reproduce
from ansys.mapdl.core import launch_mapdl
mapdl = launch_mapdl(loglevel="WARNING", print_com=True)
mapdl.clear()
mapdl.prep7()
mapdl.rectng(0, 1, 0, 1)
mapdl.cm('area1', 'area')
mapdl.cmsel('u', 'area1')
mapdl.rectng(2, 4, -1, 1)
mapdl.cm('area2', 'area')
mapdl.allsel()
mapdl.cmsel('all')
print(mapdl.cmlist('all'))
print(mapdl.alist())
mapdl.aplot()
mapdl.cmsel('all')
mapdl.allsel()
print(mapdl.alist())
print(mapdl.cmlist('all'))
mapdl.exit()

💻 Which Operating System are you using?
Windows
🐍 Which Python version are you using?
3.10
💾 Which MAPDL version are you using?
2024R1
📝 PyMAPDL Report
Show the Report!

# PASTE HERE THE OUTPUT OF `python -c "from ansys.mapdl import core as pymapdl; print(pymapdl.Report())"` here

📝 Installed packages
Show the installed packages!

# PASTE HERE THE OUTPUT OF `python -m pip freeze` here

📝 Logger output file
Show the logger output file.

# PASTE HERE THE CONTENT OF THE LOGGER OUTPUT FILE.

Hi all!!
I get quite the same issue, but using mapdl.geometry.get_areas() instead of mapdl.aplot().   In my case the component is not deleted, but the defined areas are increasing.
Here is my piece of code:
from ansys.mapdl.core import launch_mapdl

mapdl = launch_mapdl(loglevel="WARNING", print_com=True)

mapdl.prep7()

# Create block
mapdl.block(0, 1, 0, 1, 0, 1)
print(mapdl.alist())

# Associate one block area to a component "test1"
mapdl.asel(type_="R", vmin=2, vmax=2)
mapdl.cm("test1", "AREA")
print(mapdl.alist())

# Get associated area to be plotted
poly_cm = mapdl.geometry.get_areas()
print(mapdl.alist())

# Select all areas to continue
mapdl.allsel()
print(mapdl.alist())

# Get all areas to be plotted
poly_all = mapdl.geometry.get_areas()
print(mapdl.alist())

# Select all areas to continue
mapdl.allsel()
print(mapdl.alist())

mapdl.exit()

@germa89, It seems like for some reason the code doesn't reach the delete temporary meshes block when components are defined.

Assumption: if line where component names are stored corresponds to the new components created internally by pymapdl to generate the new meshed areas and get the PolyData, then a filtering could solve the issue...  In my simple example I use
            self.selection_sets_comps.append(
                tuple(
                    i
                    for i in self._parent().components.names
                    if i.startswith("_") and i.endswith("_")
                )
            )

And for the two examples above it works fine, but it is important to ensure that the assumption is correct.

@mikerife can you verify it runs well on your end?

@germa89 I can verify that yes it does.  Thank you!


continuously send status messages im short intervals

Is it normal behavior for a ZigBee router to continuously send status messages at very short intervals (every second)?
I observed that on the router this version was flashed: CC2530_CC2591_router_2020_09_29
13: 24: 11.104 RSL: tele / tasmota_D7F444 / SENSOR = {"ZbReceived": {"0x95A4": {"Device": "0x95A4", "Name": "CC2530CC2591Router_0x95A4", "BinaryDescription": "32814 /
13: 24: 13.726 RSL: tele / tasmota_D7F444 / SENSOR = {"ZbReceived": {"0x95A4": {"Device": "0x95A4", "Name": "CC2530CC2591Router_0x95A4", "Power": 1, "BinaryDescriptio
13: 24: 15.722 RSL: tele / tasmota_D7F444 / SENSOR = {"ZbReceived": {"0x95A4": {"Device": "0x95A4", "Name": "CC2530CC2591Router_0x95A4", "Power": 1, "BinaryDescriptio
13: 24: 16.106 RSL: tele / tasmota_D7F444 / SENSOR = {"ZbReceived": {"0x95A4": {"Device": "0x95A4", "Name": "CC2530CC2591Router_0x95A4", "BinaryDescription": "32814 /
13: 24: 18.726 RSL: tele / tasmota_D7F444 / SENSOR = {"ZbReceived": {"0x95A4": {"Device": "0x95A4", "Name": "CC2530CC2591Router_0x95A4", "Power": 1, "BinaryDescriptio
13: 24: 20.722 RSL: tele / tasmota_D7F444 / SENSOR = {"ZbReceived": {"0x95A4": {"Device": "0x95A4", "Name": "CC2530CC2591Router_0x95A4", "Power": 1, "BinaryDescriptio

AFAIK this only happens with the -diag firmware, so try the -std firmware.

AFAIK this only happens with the -diag firmware, so try the -std firmware.

I'm not 100% sure, was a few days ago and the FW has now been replaced with another. But I think I used the _std.

I'm not 100% sure, was a few days ago and the FW has now been replaced with another. But I think I used the _std.

@ralf-e Only the "diag" firmware outputs data from your first message.

@ralf-e Only the "diag" firmware outputs data from your first message.

When the problem occurs, steps:

Flash E18-MS1PA1-PCB (CC2530+CC2592) with router-cc2530-cc2592-std.bin (latest). In my case I tested 2 routers - based on E18-MS1PA1-PCB (router-cc2530-cc2592-std.bin) and E18-MS1PA2-PCB (router-cc2530-cc2590-std.bin) - both show the same behavior.
Join flashed router Zigbee2mqtt network. In my case it is based on CC2538+CC2592 coordinator.
Joining Zigbee2mqtt network was needed to confirm that everything works fine - router sends its state every 60 seconds.
Unpair router from Zigbee2mqtt network.
Join router zigbee network based on D1 mini (Tasmota 9.2.0 core <IP_ADDRESS>) + E18-MS1PA1-PCB (CC2530+CC2592, Coordinator Z-Stack_Home_1.2 Default).
After joining Tasmota network router starts sending its state every second.
Unpair router from Tasmota network.
Join router Zigbee2mqtt network again.
Router starts sending its state every second.

It seems that Tasmota reconfigures router from 60 to 1 second. And configuration stays in router flash.
After reflashing E18-MS1PA1-PCB with the same router-cc2530-cc2592-std.bin and joining Zigbee2mqtt again it sends state every 60 seconds as expected.

When the problem occurs, steps:

Flash E18-MS1PA1-PCB (CC2530+CC2592) with router-cc2530-cc2592-std.bin (latest). In my case I tested 2 routers - based on E18-MS1PA1-PCB (router-cc2530-cc2592-std.bin) and E18-MS1PA2-PCB (router-cc2530-cc2590-std.bin) - both show the same behavior.
Join flashed router Zigbee2mqtt network. In my case it is based on CC2538+CC2592 coordinator.
Joining Zigbee2mqtt network was needed to confirm that everything works fine - router sends its state every 60 seconds.
Unpair router from Zigbee2mqtt network.
Join router zigbee network based on D1 mini (Tasmota 9.2.0 core <IP_ADDRESS>) + E18-MS1PA1-PCB (CC2530+CC2592, Coordinator Z-Stack_Home_1.2 Default).
After joining Tasmota network router starts sending its state every second.
Unpair router from Tasmota network.
Join router Zigbee2mqtt network again.
Router starts sending its state every second.

It seems that Tasmota reconfigures router from 60 to 1 second. And configuration stays in router flash.
After reflashing E18-MS1PA1-PCB with the same router-cc2530-cc2592-std.bin and joining Zigbee2mqtt again it sends state every 60 seconds as expected.

@sunfos2019
Confirm that on CC2530_CC2592_router_2020_09_29. Sends its state every second.
CC2530_router_2020_09_29 sends its state every 60 seconds.

CC2530 was not inside Tasmota network so it works as expected.

@sunfos2019
Confirm that on CC2530_CC2592_router_2020_09_29. Sends its state every second.
CC2530_router_2020_09_29 sends its state every 60 seconds.

CC2530 was not inside Tasmota network so it works as expected.

My Tasmota log when sending state every second:
13:03:43 MQT: tele/D1_mini_03/6DAA/SENSOR = {"0x6DAA":{"Device":"0x6DAA","Name":"ZigBee_Router_02","Power":1,"Endpoint":8,"LinkQuality":26}} (retained)
13:03:44 MQT: tele/D1_mini_03/6DAA/SENSOR = {"0x6DAA":{"Device":"0x6DAA","Name":"ZigBee_Router_02","Power":1,"Endpoint":8,"LinkQuality":26}} (retained)
13:03:45 MQT: tele/D1_mini_03/6DAA/SENSOR = {"0x6DAA":{"Device":"0x6DAA","Name":"ZigBee_Router_02","Power":1,"Endpoint":8,"LinkQuality":26}} (retained)
13:03:46 MQT: tele/D1_mini_03/6DAA/SENSOR = {"0x6DAA":{"Device":"0x6DAA","Name":"ZigBee_Router_02","Power":1,"Endpoint":8,"LinkQuality":26}} (retained)

My Tasmota log when sending state every second:
13:03:43 MQT: tele/D1_mini_03/6DAA/SENSOR = {"0x6DAA":{"Device":"0x6DAA","Name":"ZigBee_Router_02","Power":1,"Endpoint":8,"LinkQuality":26}} (retained)
13:03:44 MQT: tele/D1_mini_03/6DAA/SENSOR = {"0x6DAA":{"Device":"0x6DAA","Name":"ZigBee_Router_02","Power":1,"Endpoint":8,"LinkQuality":26}} (retained)
13:03:45 MQT: tele/D1_mini_03/6DAA/SENSOR = {"0x6DAA":{"Device":"0x6DAA","Name":"ZigBee_Router_02","Power":1,"Endpoint":8,"LinkQuality":26}} (retained)
13:03:46 MQT: tele/D1_mini_03/6DAA/SENSOR = {"0x6DAA":{"Device":"0x6DAA","Name":"ZigBee_Router_02","Power":1,"Endpoint":8,"LinkQuality":26}} (retained)

I'm observing the same behaviour.
I flashed the CC2530 + CC2591 with CC2530_CC2591_router_2020_09_29.zip
After joining the tasmotized sonoff bridge, it reports status every second eventually killing the coordinator.

@ralf-e
@sunfos2019
I was able to fix the reporting issue using below  firmware configurator produced by @ptvoinfo and shared below:
https://github.com/Koenkk/Z-Stack-firmware/issues/222
Some guidance on how to configure in this related thread:
https://github.com/ptvoinfo/zigbee-configurable-firmware/issues/8

For further reference.
To solve this issue you need to give this in the tasmota console:
ZbSend {"Device":"0xXXXX","Config":{"Power":{"MinInterval":60,"MaxInterval":3600}}}
Bye :)


Exported vars should not be assumed constant

If I write the following code I get an error complaining that "XX == null" is always true. If I export XX then it is possible someone outside of the compile is setting it to not null right?
/** @export */
var XX = null;

function hello() {
  if (XX == null) {
    console.log("whats up!");
  }
}

Specifically, the error I am seeing is:
WARNING - condition always evaluates to true
left : null
right: null
  if (XX == null) {
      ^^^^^^^^^^

0 error(s), 1 warning(s), 100.0% typed

I believe it's being assumed constant because the coding convention assumes upper case variables are constants. In any case, exported variables cannot be changed by external code.
var foo = 'foo'

// the export is an alias
window.bar = foo;

// Change in external code
window.bar = 'bar';

console.log(foo); //logs 'foo'

This particular check has been a source of false positives in OTI. AFAIK NTI doesn't have this check.

It isn't the check that is the problem in the OTI but the inferred type is sometimes too tight, not accounting for the assignments in local scopes.  Declaring the type always fixes the problem is I recall correctly.

I think Chad is right here.  I was thinking about exports kind of like externs but they are quite different. External code can't actually assign 'XX' anymore as code internal to the compile may have renamed it and just aliased like it this:
XX = <some compiled name>
Seems like it is a bad idea to ever export a value that can change.  Should exporting be restricted to consts, classes, and class methods? Seems like if you are just giving an alias to a certain value, then that internal value may change over time and you will never see the update. For example:
var foo = 'foo'
// the export is an alias
window.bar = foo;
// value changes internally
window.setTimeout(1000, function() {foo = 'asdf'});

// Read export in external code
console.log(window.bar); // always logs 'foo'!

Also, @ChadKillingsworth the upper case does not affect the outcome of this:
https://closure-compiler-debugger.appspot.com/#input0%3D%252F**%2520%2540export%2520*%252F%250Avar%2520cc%2520%253D%2520null%253B%250A%250Afunction%2520hello()%2520%257B%250A%2520%2520if%2520(cc%2520%253D%253D%2520null)%2520%257B%250A%2520%2520%2520%2520console.log(%2522whats%2520up!%2522)%253B%250A%2520%2520%257D%250A%257D%26input1%26conformanceConfig%26externs%3Dvar%2520goog%253B%26refasterjs-template%26includeDefaultExterns%3D1%26CHECK_SYMBOLS%3D1%26CHECK_TYPES%3D1%26CLOSURE_PASS%3D1%26COLLAPSE_PROPERTIES%3D1%26DEVIRTUALIZE_PROTOTYPE_METHODS%3D1%26DISAMBIGUATE_PROPERTIES%3D1%26GENERATE_EXPORTS%3D1%26MISSING_PROPERTIES%3D1%26PRESERVE_TYPE_ANNOTATIONS%3D1%26PRETTY_PRINT%3D1%26TRANSPILE%3D1%26VARIABLE_RENAMING%3D1


Add Docker Compose Limitation To Correct Section

This should be added to the regional VNET integration section as well as the troubleshooting section (where it already exists); as this is where most people will read it from 👍

@jtracey93 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@jtracey93 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

++ this is needed

++ this is needed

@ktoliver : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@ccompy Could you review the proposed update or indicate how to handle the pull request? Thanks.

#sign-off

@ktoliver : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Add lint-lerna-manifest command

As of PR creation, there is a bug: some packages found via glob-walk are being considered relevant despite not being relevant semantically. We need a more bulletproof way of differentiating between "packages relevant to lerna linting" and "packages that just happen to be there".
Ticket: BG-46488

Closing due to staleness


Adding Argument Operation

Hi Mike,
There is a problem about input-output text formatting. I want to add "-E" option on the arguments. Because I have faced an encoding problem. ( https://github.com/exiftool/exiftool/issues/127 )
Can you help me ?
Thanks.

Hi @bagsergen ,
I am a bit behind in some other work, but will try to look at this over the weekend.
Thanks,
Mike

I've just published 0.11.0 which adds EscapeTagValues to ExifToolOptions and when true, it will add a -E when calling exiftool.
I used your test value from the ticket you reference above.  Note that it looks like exiftool also does some of it's own encoding and changes some hex codes to well known entity codes, but looks like the end result is the same.

OK, I understood, thanks for your support. 🦸♂ 🌟


Switch to esbuild for building the library

This PR drops webpack and switches to esbuild to build and bundle the library.
Here are a couple of reasons for that:

esbuild is much, much faster than webpack.
esbuild feels simpler to configure (at least to me), and allows for a cleaner, more maintainable configuration. It took me a day to configure webpack+babel, and I was not certain I understood what was happening. Esbuild took me 30 minutes, and I do understand what's going on.
we already rely on esbuild to support typescript in k6, and aligning things to gain experience and confidence around it made sense.

Apart from switching to build, the most notable change in this PR is that we configured it to use the ES modules format instead of CommonJS. The recent introduction of native ES Modules support in Sobek shouldn't pose any problem, but you never know.

Apologies for the noise, switching to draft as I caught issues in CI after the fact 👍🏻

I'm so confused, but TIL that if you delete a branch it automatically deletes the PR...


add FUNDING document

Coverage remained the same at 100.0% when pulling c574f7be8ed215507b5ea98805a646acef6c3dec on l0gicgate:4.x-AddSponsorButton into 0594fb8b2c00fbf59b80097c761c16aefb72edf2 on slimphp:4.x.


PillarNet different pillar sizes

Hi, thanks for making this wonderful work publicly available. I am trying to train Pillarnet with different pillar sizes as explained in their paper. It is not clear to me how to detach a subset of the backbone convolutions when increasing the pillar size. The number of output channels needs to be changed I guess. Could anyone please provide the configuration files for pillar sizes 0.15, 0.3, and 0.6 and what needs to be updated in the code?

Try to find in the code the specific area where the pillar size is calculated or set. You can follow this rule: changes in .yaml file should be verified in the code.


Add string (address) shortening utility function

The point of this PR was to resolve #23.
However, I think that it makes more sense to have a generic function for shortening strings, rather than one address-specific, as it may be used for strings other than addresses.

I don't see this being used outside the context of addresses. Let's avoid adding anything that is not strictly necessary. We don't want to create lodash here.
See https://github.com/kleros/openiico/blob/develop/src/components/chain-hash/index.js to see how we display addresses.


White Screen Overlay

Description
Any time I try running Exiled Exchange, switching to PoE2 makes my entire screen white, except for the mouse, which is the PoE2 cursor.
If the game is behind another window, I can see it just fine. I can see the live game image in alt+tab. The moment I switch focus to the game, the entire screen goes white.
Reproduction steps
Either run EE2, then run PoE2 --- at which point I won't even be able to log in
or
Run PoE2, login, etc... run EE2 and alt+tab back to PoE2.
Screenshot

Having now reviewed it, they do seem related. Apologies, it didn't match any of my searches.
Here's what I've got:
OS Name	Microsoft Windows 11 Home
Version<PHONE_NUMBER>4444444444444444444444444444444444444410.0.22621 Build 22621
System Model	X570 Taichi
System Type	        x64-based PC
Processor	        AMD Ryzen 7 5800X3D 8-Core Processor, 3401 Mhz, 8 Core(s), 16 Logical Processor(s)
GPU                        ASUS ROG Strix GeForce RTX 4090 OC Edition
BIOS Version/Date	American Megatrends Inc. P4.80, 2/16/2022
SMBIOS Version	3.2
Embedded Controller Version	255.255
BIOS Mode	UEFI
BaseBoard Manufacturer	ASRock
BaseBoard Product	X570 Taichi
Hardware Abstraction Layer	Version = "10.0.22621.2506"
Installed Physical Memory (RAM)	32.0 GB
Page File Space	2.00 GB
Kernel DMA Protection	Off
Virtualization-based security	Not enabled
Windows Defender Application Control policy	Enforced
Windows Defender Application Control user mode policy	Off
Device Encryption Support	Elevation Required to View
Hyper-V - VM Monitor Mode Extensions	Yes
Hyper-V - Second Level Address Translation Extensions	Yes
Hyper-V - Virtualization Enabled in Firmware	Yes
Hyper-V - Data Execution Protection	Yes
In Game

Hope that helps!

Hmm, I'm not that sure. If you are saying it isn't mica, then I would say the easiest solution that would work right now, would be to run with the no overlay cli flag


[WiP] Support for xmldoc comments for Struct, Enum and Constant

[WORK IN PROGRESS]
Support for xmldoc comments:
namespace example.some

/// foobar
enum FooBar
{
    /// foo
    /// two lines
    Foo = 1,

    /// bar
    Bar = 2,

    // not included
    Baz = 3
}

/// This is my struct
/// 2nd line
struct SomeStruct
{
    /// some field
    /// someField = 42
    // this is ignored
    /// last line
    0: int32 someField = 123;
    // this is ignored

    /// not ignored
    1: int32 otherField = 234;

    2: int32 notDocumented = 345;
}

Gets converted to C# where the xmldoc comments are moved over.

@chwarr any chance you or someone else can comment on this effort?

Thanks for exploring this. However, this is not a feature that we're currently interested in merging into Microsoft's Bond repository.


Select field doesn't work with id = 0

You can't set id: 0 in select type field values.
{
  label: 'WCF Binding',
  type: 'select',
  model: 'WCFBinding',
  values: [
    { id: 0, name: 'NetTcp' },
    { id: 1, name: 'BasicHttp' },
    { id: 2, name: 'WSHttp' }
  ],
  default: 0,
}

The check here fails when item.id = 0 and instead of id property alone, returns the whole object, so we end up with [Object object] in value HTML field...
It was already mentioned in #186, without reaction, so perhaps it's intended. If that's the case, please provide information on how to achieve the expected result (value = 0).

Please make a fiddle with the issue.

Here: https://jsfiddle.net/0mg1v81e/514/

Thanks. Fixed

Released in v2.1.1


[Feature] add query top n process instance order by running duration

add query top n process instance (only SUCCESS) order by running duration which started in a specified time range

add query top n process instance (only SUCCESS) order by running duration which started in a specified time range

Good feature.
Will this feature be displayed on the front end?

add query top n process instance (only SUCCESS) order by running duration which started in a specified time range

Good feature.
Will this feature be displayed on the front end?

I consulted my mentor and he said that's not my task
actually I am participating open summer 2020,I am trying to accomplish project 2002415
and I believe this feature will be used somehow ,but probably someone else will write the code

add query top n process instance (only SUCCESS) order by running duration which started in a specified time range

Good feature.
Will this feature be displayed on the front end?

I consulted my mentor and he said that's not my task
actually I am participating open summer 2020,I am trying to accomplish project 2002415
and I believe this feature will be used somehow ,but probably someone else will write the code

Hi,
I got your point, thx a lot for your contribution.

does this feature have any detail description or document?

does this feature have any detail description or document?

https://cwiki.apache.org/confluence/display/DOLPHINSCHEDULER/Open+Source+Promotion+Plan+-+Summer+2020+Tasks

PR #3315 implemented this feature


Error while adding spot node to the AKS cluster

[Enter feedback here]
In the section 'Add a spot node pool to an AKS cluster', the presence of the parameter --node-count is needed. Else we get the error 'node-count is not in the range of min-count and max-count'.
So the az-cli command should be as follows:
az aks nodepool add
--resource-group myResourceGroup
--cluster-name myAKSCluster
--name spotnodepool
--priority Spot
--eviction-policy Delete
--spot-max-price -1
--enable-cluster-autoscaler
--min-count 1
--max-count 3
--node-count 1
--no-wait

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 5fc40e8e-558d-171c-2fd9-82b67f89d221
Version Independent ID: 9a757f12-cf86-2095-0f6a-37397024e3a5
Content: Preview - Add a spot node pool to an Azure Kubernetes Service (AKS) cluster - Azure Kubernetes Service
Content Source: articles/aks/spot-node-pool.md
Service: container-service
GitHub Login: @zr-msft
Microsoft Alias: zarhoads

@saurabhvartak1982 Thanks for the Feedback. The doc is updated and changes will go live once the PR is approved.

@saurabhvartak1982 I just tried reproducing the issue and I am not getting any error as you mentioned on the issue. I followed the tutorial without passing --node-count 1 parameter and I don't see any errors.
I tried the tutorial in Azure Cloud Shell. Below are commands for reference. Can you please try once and check if you are still seeing the issue.
az group create --name mytestrg --location eastus

az aks create --resource-group mytestrg --name mytestaksspot --vm-set-type VirtualMachineScaleSets --node-count 2 --generate-ssh-keys --kubernetes-version 1.15.10 --load-balancer-sku standard

az aks nodepool add --resource-group mytestrg --cluster-name mytestaksspot --name spotnodepool --priority Spot --eviction-policy Delete --spot-max-price -1 --enable-cluster-autoscaler --min-count 1 --max-count 3 --no-wait

@saurabhvartak1982 This does not need a doc update as I am not able to reproduce the issue.

@saurabhvartak1982 Please let me know if you are still seeing issue.
Hope the provided information is helpful.
We will now close this issue. If there are further questions regarding this, please tag me in a comment. I will reopen it and we will continue the discussion.

Probably because i made my own thing and its just collecting info but
doesnt want to pay me microsoft
On Fri, Jun 5, 2020, 1:48 AM VikasPullagura-MSFT<EMAIL_ADDRESS>wrote:

Closed #56294 https://github.com/MicrosoftDocs/azure-docs/issues/56294.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/azure-docs/issues/56294#event-3409775495,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APKSOEMA7YO35QMIUJMNIR3RVCBMTANCNFSM4NRYRZAA
.

So im the bug huh thats messed up considering im doing alot of work

I have another erro with this command above:
Operation failed with status: 'Bad Request'. Details: Provisioning of resource(s) for Agent Pool spotnodepool failed. Error: {
  "code": "InvalidTemplateDeployment",
  "message": "The template deployment failed with error: 'The resource with id: '/subscriptions/fca6d626-ac46-496f-b44d-8b1e036f2d71/resourceGroups/MC_ClusterProduction_sicoveproduction_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-b6920815-3c40-43c8-a110-fcc3b92782c7-14684126-vmss' failed validation with message: 'The requested size for resource '/subscriptions/fca6d626-ac46-496f-b44d-8b1e036f2d71/resourceGroups/MC_ClusterProduction_sicoveproduction_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-b6920815-3c40-43c8-a110-fcc3b92782c7-14684126-vmss' is currently not available in location 'eastus' zones '' for subscription 'fca6d626-ac46-496f-b44d-8b1e036f2d71'. Please try another size or deploy to a different location or zones. See https://aka.ms/azureskunotavailable for details.'.'."
 }

Whats is wrong?

I have another erro with this command above:
Operation failed with status: 'Bad Request'. Details: Provisioning of resource(s) for Agent Pool spotnodepool failed. Error: {
  "code": "InvalidTemplateDeployment",
  "message": "The template deployment failed with error: 'The resource with id: '/subscriptions/aaa6dccc-ac46-496f-b44d-8b1e036f2d71/resourceGroups/MC_ClusterProduction_myclusterproduction_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-aaaa0815-3c40-43c8-a110-aaaaaa82c7-14684126-vmss' failed validation with message: 'The requested size for resource '/subscriptions/fca6aaaaa-ac46-aaa-b44d-8b1e036f2d71/resourceGroups/MC_ClusterProduction_myclusterproduction_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-aaaaa-43c8-a110-fcc3b92782c7-14684126-vmss' is currently not available in location 'eastus' zones '' for subscription 'fca6d626-aaaaaa-b44d-8b1e036f2d71'. Please try another size or deploy to a different location or zones. See https://aka.ms/azureskunotavailable for details.'.'."
 }

Whats is wrong?

@alexsandro-xpt When deploying a spot node pool, Azure will allocate the spot nodes if there's capacity available. At any time when Azure needs the capacity back, the Azure infrastructure will evict spot nodes.
As per the error currently spot instance is currently not available in that particular region where you are trying to deploy instance in.
Below cmdlet returns all the possible SKUs available for the location disregarding limitations of your subscription. So, try and see the option suitable for your account and create the spot instance available at the location you selected:
Get-AzureRMVMSize -Location 'locationname'
If you need the details of the location name, you can check it using the following cmdlet
Get-AzureRmLocation |Format-Table
Moreover you can check this article as well to check limitations based upon the subscription you have in place.
Hope it helps.
Thanks.

I just saw the same issue as the original reporter: when running az aks nodepool add I get the error node-count is not in the range of min-count and max-count if --node-count is not provided. Interestingly I saw this error intermittently - I was creating multiple nodepools and the error appeared on one but not the other.

I got this today... It had been working fine.


fix size of splits not loading properly

Pull request checklist:

[x] CHANGELOG.md was updated, if applicable

Description
Temporarily disables layouting while splits are being loaded. Also brings loading splits from O(N²) to O(N) I guess.

From my testing this is equally effective as my PR without losing any safeties. 👍

Looks to me like the Y-flexing stays stable with this PR, but the X-flexing changes for each time I run the application
No restart

One restart

Two restarts

Three restarts

$ diff 1.json 2.json # diff between original size and one restart
39c39
<         "flexh": 0.5241809672386895,
---
>         "flexh": 0.6878198567041964,
$ diff 1.json 3.json # diff between original size and two restarts
39c39
<         "flexh": 0.5241809672386895,
---
>         "flexh": 0.8150394178289873,
$ diff 1.json 4.json # diff between original size and three restarts
39c39
<         "flexh": 0.5241809672386895,
---
>         "flexh": 0.8980955562980287,
$ diff 1.json 5.json # diff between original size and four restarts
39c39
<         "flexh": 0.5241809672386895,
---
>         "flexh": 0.9463122689667313,

# 1.json
{
  "highlightsEnabled": true,
  "selected": true,
  "splits2": {
    "items": [
      {
        "items": [
          {
            "data": {
              "name": "pajlada",
              "type": "twitch"
            },
            "filters": [],
            "flexh": 1,
            "flexv": 0.6297117516629712,
            "moderationMode": false,
            "type": "split"
          },
          {
            "data": {
              "name": "forsen",
              "type": "twitch"
            },
            "filters": [],
            "flexh": 1,
            "flexv": 1.3702882483370287,
            "moderationMode": false,
            "type": "split"
          }
        ],
        "type": "vertical"
      },
      {
        "data": {
          "name": "forsen",
          "type": "twitch"
        },
        "filters": [],
        "flexh": 0.5241809672386895,
        "flexv": 1,
        "moderationMode": false,
        "type": "split"
      }
    ],
    "type": "horizontal"
  }
}

# 5.json
{
  "highlightsEnabled": true,
  "selected": true,
  "splits2": {
    "items": [
      {
        "items": [
          {
            "data": {
              "name": "pajlada",
              "type": "twitch"
            },
            "filters": [],
            "flexh": 1,
            "flexv": 0.6297117516629712,
            "moderationMode": false,
            "type": "split"
          },
          {
            "data": {
              "name": "forsen",
              "type": "twitch"
            },
            "filters": [],
            "flexh": 1,
            "flexv": 1.3702882483370287,
            "moderationMode": false,
            "type": "split"
          }
        ],
        "type": "vertical"
      },
      {
        "data": {
          "name": "forsen",
          "type": "twitch"
        },
        "filters": [],
        "flexh": 0.9463122689667313,
        "flexv": 1,
        "moderationMode": false,
        "type": "split"
      }
    ],
    "type": "horizontal"
  }
}


LANG-1119: Add StringUtils.rotate(String, int)

Implementation of a String rotation method

Coverage decreased (-0.01%) to 93.83% when pulling 1f64a693fc86b62572c87082b9a3ad0928cd433f on rikles:fix-LANG-1119 into 4bf7ca0a56b5868ca6dc151404d15a7f7ce24e26 on apache:trunk.

Coverage decreased (-0.01%) to 93.83% when pulling 1f64a693fc86b62572c87082b9a3ad0928cd433f on rikles:fix-LANG-1119 into 4bf7ca0a56b5868ca6dc151404d15a7f7ce24e26 on apache:trunk.

@rikles Commons Lang has been migrated from svn to git. Because of this the main branch has been renamed to 'master'. Can you please rebase your work against the master branch? Thank you!

Closed due to rebase on master


Updated broken links to Jeremy Wagner blogs

Happened to be converting images to WebP via Terminal, and noticed these needed updating!

@googlebot I signed it!

I notice there is one more Jeremy link that needs updating, this section:

Jeremy Wagner, author of Web Performance in Action has had some success using it with this configuration.

...points to this tweet (https://twitter.com/malchata/status/884836650563579904) which is gone now. Unfortunately I'm not sure what a good replacement link would be here.


debugging

Hello, I really like this project, and now I have a confusion about the windbg debugging issue. In another not very well-refined codebase, I can set breakpoints in the Vm-Exit process, but that code doesn't handle many bugs. Therefore, I have been studying your project. Could you please help me understand why, after enabling virtualization, interruptions by windbg in this code lead to a crash?

The reason is because the host has its own interrupt descriptor table. Other hypervisors simply share the guest IDT, which is not a good idea.

I really like this project，I also want to know how to debug the exit host。I hope you can help me. Thank you very much


Toggle DNS lookups

Added logic to disable DNS lookups - we don't want people running ESDB locally to expose themselves to known bad actors - https://github.com/MrLuit/EtherScamDB/issues/1184
Redesigned the domain view - having the security tips in a green div causes confusion if the domain is bad IMHO.

Maybe find a better way to handle the logs for the offline-mode? ~4800+ log entries for each cache.json run is a bit much. We talked about this in slack 🗡


Type Error: list indices must be integers, not str

When creating a mirror for a GitHub https:// based repo, I get the following error:
/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py:793: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
  InsecureRequestWarning)
Creating new project r-plugin
Traceback (most recent call last):
  File "lib/manage_gitlab_project.py", line 105, in <module>
    found_project=createproject(project_name)
  File "lib/manage_gitlab_project.py", line 78, in createproject
    git.add_project(pname,description=description,**project_options)
  File "/usr/local/lib/python2.7/dist-packages/gitlab3/__init__.py", line 185, in fn
    ret = api(parent, data)
  File "/usr/local/lib/python2.7/dist-packages/gitlab3/__init__.py", line 312, in __init__
    setattr(self, '_id', json_data[self._key_name])
TypeError: list indices must be integers, not str
There was an unknown issue with manage_gitlab_project.py

Any idea on how I can fix it?  Thanks!

see #88

I'm not sure this is the same problem.  For one, the error message on the next to last line (above) is different.   My error is "TypeError: list indices",  #88 error is gitlab3.exceptions.MissingRequiredAttribute
Also, I have set in gitlab-mirrors/config.sh,    ssl-verify=false
For my gitlab server, I am using a server certificate that was signed by a local CA, The local CA is installed in /etc/ssl/certs and appears in /etc/ssl/certs/ca-certificates.crt
Would you have any other suggestions?

Sorry for wasting your time.    The problem was in my git-mirror configuration.   When I changed the gitlab server over from http:// to https://, I failed to change the url in the git-mirrors/config.yml.
Again, very sorry.  Love your product.  Thanks for sharing.

Glad you figured it out.