Canary route leakage during consecutive canary operations

/kind bug
What steps did you take and what happened:
[A clear and concise description of what the bug is.]

Create service

cat <<EOF | kubectl apply -f -
apiVersion: serving.kubeflow.org/v1beta1
kind: "InferenceService"
metadata:
  name: "my-model"
spec:
  predictor:
    tensorflow:
      storageUri: "gs://kfserving-samples/models/tensorflow/flowers"
EOF

$ kubectl get isvc my-model -o jsonpath='{.status.components.predictor.traffic}'
[{"latestRevision":true,"percent":100,"revisionName":"my-model-predictor-default-00002"}]

Canary rollout

cat <<EOF | kubectl apply -f -
apiVersion: serving.kubeflow.org/v1beta1
kind: "InferenceService"
metadata:
  name: "my-model"
spec:
  predictor:
    canaryTrafficPercent: 20
    tensorflow:
      storageUri: "gs://kfserving-samples/models/tensorflow/flowers-2"
EOF

$ kubectl get isvc my-model -o jsonpath='{.status.components.predictor.traffic}'
[{"latestRevision":true,"percent":20,"revisionName":"my-model-predictor-default-00003"},
{"latestRevision":false,"percent":80,"revisionName":"my-model-predictor-default-00002","tag":"prev"}]

Canary rollback

cat <<EOF | kubectl apply -f -
apiVersion: serving.kubeflow.org/v1beta1
kind: "InferenceService"
metadata:
  name: "my-model"
spec:
  predictor:
    canaryTrafficPercent: 0
    tensorflow:
      storageUri: "gs://kfserving-samples/models/tensorflow/flowers-2"
EOF

$ kubectl get isvc my-model -o jsonpath='{.status.components.predictor.traffic}'
[{"latestRevision":true,"percent":0,"revisionName":"my-model-predictor-default-00003"},
{"latestRevision":false,"percent":100,"revisionName":"my-model-predictor-default-00002","tag":"prev"}]

Apply another canary (I'm using a dummy example here but imagine this could apply for any new canary test)

cat <<EOF | kubectl apply -f -
apiVersion: serving.kubeflow.org/v1beta1
kind: "InferenceService"
metadata:
  name: "my-model"
spec:
  predictor:
    canaryTrafficPercent: 30
    tensorflow:
      env:
      - name: dummy_env
        value: dummy_value
      storageUri: "gs://kfserving-samples/models/tensorflow/flowers-2"

$ kubectl get isvc my-model -o jsonpath='{.status.components.predictor.traffic}'
[{"latestRevision":true,"percent":30,"revisionName":"my-model-predictor-default-00004"},
{"latestRevision":false,"percent":70,"revisionName":"my-model-predictor-default-00003","tag":"prev"}]

As can be seen ideally in step 4 after rollout, we are expecting primary (prev) to be revision 00002 and canary to be revision 00004, however the primary switches to 00003 -- a canary revision is leaked out as primary.
What did you expect to happen:
Revision 00003 should not be leaked out as primary in step 4 above.
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Is this the expected way we should be using canary? Or as a customer should we enforce that no further canary is allowed if canaryTrafficPercent is already set (even it is set to 0)?
Does this happen to be fixed in a later kserve version?

Environment:

Istio Version:
Knative Version: 0.22.1
KFServing Version: 0.5.1
Kubeflow version:
Kfdef:[k8s_istio/istio_dex/gcp_basic_auth/gcp_iap/aws/aws_cognito/ibm]
Minikube version:
Kubernetes version: (use kubectl version):
OS (e.g. from /etc/os-release):

@Peilun-Li Do not believe this is an issue with the latest version, did you try 0.6.1 release if you are still on kfserving?

Good to know it's working in a later version! We retry for 0.6.1. and update here. Thanks for checking!

Tested in v0.6.1 and looks like it's getting fixed there! Closing this one.


add script for run cli in development mode #55

Now we have the unusual tsconfig.json.
Defined new configuration for when we used ts-node


ortools package doesn't work on Heroku's standard python buildpack

When trying to run a python app with ortools on Heroku, I get the following error:
File "or.py", line 2, in <module>
from ortools.constraint_solver import pywrapcp
ModuleNotFoundError: No module named 'ortools'

I am setting up ortools in the post compile script:
 python -m pip install -U --user ortools
Logs from the build:
-----> Running post-compile hook
Collecting ortools
  Downloading https://files.pythonhosted.org/packages/31/ea/7e085dc9add0875e235ac13723d4105977d1d5efaef6423454ef72c67b29/ortools-6.9.5824-cp36-cp36m-manylinux1_x86_64.whl (23.7MB)
Collecting six>=1.10 (from ortools)
  Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting protobuf>=3.6.1 (from ortools)
  Downloading https://files.pythonhosted.org/packages/c2/f9/28787754923612ca9bfdffc588daa05580ed70698add063a5629d1a4209d/protobuf-3.6.1-cp36-cp36m-manylinux1_x86_64.whl (1.1MB)
Collecting setuptools (from protobuf>=3.6.1->ortools)
  Downloading https://files.pythonhosted.org/packages/e7/16/da8cb8046149d50940c6110310983abb359bbb8cbc3539e6bef95c29428a/setuptools-40.6.2-py2.py3-none-any.whl (573kB)
Installing collected packages: six, setuptools, protobuf, ortools
Successfully installed ortools-6.9.5824 protobuf-3.6.1 setuptools-40.6.2 six-1.11.0

What else am I missing ?

--user will install ortools for one user not system wide. Are you sure the "post-compile hook" and you "or.py" are run by the same user id ?

and which platform?  Windows requires some visual studio redistributables
to be installed.
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00
Le mer. 28 nov. 2018 à 08:04, Mizux<EMAIL_ADDRESS>a écrit :

--user will install ortools for one user not system wide.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/949#issuecomment-442341760,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKj17ZzqD0YBNXiF6nV82NtEwTG3bTnIks5uzjVfgaJpZM4Y2Z9n
.

Answered too fast.
It could be a glibc mismatch. You can try setting PYTHONVERBOSE=1 in your
shell before running the example.
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00
Le mer. 28 nov. 2018 à 10:54, Laurent Perron<EMAIL_ADDRESS>a écrit :

and which platform?  Windows requires some visual studio redistributables
to be installed.
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68
53 00
Le mer. 28 nov. 2018 à 08:04, Mizux<EMAIL_ADDRESS>a écrit :

--user will install ortools for one user not system wide.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/949#issuecomment-442341760,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKj17ZzqD0YBNXiF6nV82NtEwTG3bTnIks5uzjVfgaJpZM4Y2Z9n
.

I did mount or-tools on heroku without any problem. If I recall correctly, it DIDN'T work on python 3.7 heroku runtime, but IT DID WORK on 3.6.6

Thanks @davidolmo @Mizux @lperron.
Adding ortools in requirements.txt didn't work, and that might be because I was running on python 3.7 heroku runtime. I went around it by running python -m pip show ortools in the post_compile script, which worked. Thanks!

I just tested heroku-18
docker run --rm -it heroku/heroku:18
root@900c723c94bd:/# python --version
Python 2.7.15rc1
root@900c723c94bd:/# python3 --version
Python 3.6.7
root@900c723c94bd:/# python3 -m pip
/usr/bin/python3: No module named pip

root@900c723c94bd:/# apt-get update
root@900c723c94bd:/# apt-get install python3-pip
root@900c723c94bd:/# python3 -m pip install ortools
...
Successfully installed ortools-6.10.6025 protobuf-3.6.1
root@900c723c94bd:/# python3 -c "from ortools.linear_solver import pywraplp"

So except that pip is not installed by default :-1: , python3 seems working IMHO


Calculate fliers correctly in Series.plot.box

Koalas:
from databricks import koalas as ks
from matplotlib import pyplot as plt
import pandas as pd
pdf = pd.DataFrame({"a": [1, 2, 3, 4, 5, 6, 7, 8, 9, 15, 50],}, index=[0, 1, 3, 5, 6, 8, 9, 9, 9, 10, 10])
ks.from_pandas(-pdf).a.plot.box()
plt.savefig('koalas_series_box.png')

pandas:
from matplotlib import pyplot as plt
import pandas as pd
pdf = pd.DataFrame({"a": [1, 2, 3, 4, 5, 6, 7, 8, 9, 15, 50],}, index=[0, 1, 3, 5, 6, 8, 9, 9, 9, 10, 10])
(-pdf).a.plot.box()
plt.savefig('pandas_series_box.png')

Before:

After:

Resolves #1827

Oh, Nice catch !

@ueshin, I think the problem there is because Spark picks the actual data as median 25%, 50% and 75% from approx_percentile  IIRC. It works out of the box when data is a lot.  FYI, using percentile  is very expensive in Apache Spark so I think approx_percentile was chosen.


Signed Google Gsi's?

Hi! Thank you for all of your hard work on this! I just noticed that google gsis have a vbmeta that also come with them. Is there any way we can implement those the same way the official dsu loader does so that we can use signed gsi's on locked bootloaders?
Thank you for all your work on this!

Thanks for your recognition!
In your case, check this:
https://source.android.com/docs/core/ota/dynamic-system-updates
"Verify boot" and "OEM-signed DSU" sections should cover what you need, you might be also interested in "DSU JSON descriptor" if you want to get some a more vanilla approach with DSU Loader, good luck!

@VegaBobo so we can't use this app to flash google signed GSIs on Pixel devices with locked bootloader, right?

I think you can, not tried, but if you install images signed by your OEM, it should work on locked bootloader.


Manual triggering of events doesn't provide an event object

Currently testing some of my keyboard navigation functions. When I want to simulate a keypress I use
Mousetrap.trigger('down');
The binded function to the keypress is as follows:
Mousetrap.bind('down', function(e) {
//do something
e.stopPropagation();
});
Without an event object passed in the function will error out.

Yeah this is mentioned in the documentation, but I suppose I can make it a little more clear
https://craig.is/killing/mice#api.trigger

I see, so how would I pass an event object to the mousetrap bound function then? The stopPropagation call is required due to mousetrap being bound to a specific element. I've tried triggering the key event using JQuery but mousetrap doesn't pick up on it:
                   //simulate down keypress
		var press = jQuery.Event("keypress");
		press.which = 40;
		el.trigger(press);

Hmmm, mousetrap should pick up on it.  By default it is listening on keyup, keydown, and keypress events bound to document.  I'm not sure how jquery triggers them tho.
You may have to try $(document).trigger(press) instead of el.trigger(press)

I'm having this problem too:
The trigger function looks like:
Mousetrap.prototype.trigger = function(keys, action) {
        var self = this;
        if (self._directMap[keys + ':' + action]) {
            self._directMap[keys + ':' + action]({}, keys);
        }
        return self;
    };

I think it should be
Mousetrap.prototype.trigger = function(keys, action, event) {
       event = (event) || {}
        var self = this;
        if (self._directMap[keys + ':' + action]) {
            self._directMap[keys + ':' + action](event, keys);
        }
        return self;
    };


Create a proc_macro for conveniently running individual days

Currently, running a day using a struct that implements more than one day requires Fully Qualified Syntax which is a bit on the verbose side and can be confusing:
<AdventOfCode2020 as Solution<Day1>>::run(&input);

I am considering creating a function style proc_macro that would turn the below into the the above when compiled:
run!(&input, Day1, AdventOfCode2020);

I'm open to suggestions on the exact syntax.
I think this should be included under a default feature (if possible)

Happily closing this, as it makes complete sense for this to be a macro_rules! macro.


update module header syntax in the tutorial

I made an attempt at updating the module headers in the tutorial to use the new syntax. I mostly just ran the old ones through the roc formatter and made sure that the accompanying text was updated to describe the changes.

@rtfeldman can you please merge this?


Cuda out of memory

When doing the training, I got this error
...
File "E:\Deep_learning_codes\ESRGAN\BasicSR-master\codes\models\modules\RRDBNet_arch.py", line 27, in forward
x5 = self.conv5(torch.cat((x, x1, x2, x3, x4), 1))
File "C:\Users\jeremy18\AppData\Local\Continuum\anaconda3\envs\Pytorch_Test\lib\site-packages\torch\nn\modules\module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "C:\Users\jeremy18\AppData\Local\Continuum\anaconda3\envs\Pytorch_Test\lib\site-packages\torch\nn\modules\conv.py", line 345, in forward
return self.conv2d_forward(input, self.weight)
File "C:\Users\jeremy18\AppData\Local\Continuum\anaconda3\envs\Pytorch_Test\lib\site-packages\torch\nn\modules\conv.py", line 342, in conv2d_forward
self.padding, self.dilation, self.groups)
RuntimeError: CUDA out of memory. Tried to allocate 26.00 MiB (GPU 0; 12.00 GiB total capacity; 9.11 GiB already allocated; 7.21 MiB free; 9.19 GiB reserved in total by PyTorch)
This is the training details:
general settings
name: 003_RRDB_ESRGANx4_DIV2K
use_tb_logger: true
model: srgan
distortion: sr
scale: 1
gpu_ids: [0]
datasets
datasets:
train:
name: DIV2K
mode: LQGT
dataroot_GT: E:\Deep_learning_codes\ESRGAN\BasicSR-master\datasets\B\train
dataroot_LQ: E:\Deep_learning_codes\ESRGAN\BasicSR-master\datasets\A\train
use_shuffle: true
n_workers: 1  # per GPU
batch_size: 1
GT_size: 320
use_flip: true
use_rot: true
color: GRAY

val:
name: val_set14_part
mode: LQGT
dataroot_GT: E:\Deep_learning_codes\ESRGAN\BasicSR-master\datasets\B\test
dataroot_LQ: E:\Deep_learning_codes\ESRGAN\BasicSR-master\datasets\A\test
network structures
network_G:
which_model_G: RRDBNet
in_nc: 1
out_nc: 1
nf: 64
nb: 23
network_D:
which_model_D: discriminator_vgg_128
in_nc: 1
nf: 64
path
path:
pretrain_model_G:
strict_load: true
resume_state: ~
training settings: learning rate scheme, loss
train:
lr_G: !!float 1e-4
weight_decay_G: 0
beta1_G: 0.9
beta2_G: 0.99
lr_D: !!float 1e-4
weight_decay_D: 0
beta1_D: 0.9
beta2_D: 0.99
lr_scheme: MultiStepLR
niter: 400000
warmup_iter: -1  # no warm up
lr_steps: [50000, 100000, 200000, 300000]
lr_gamma: 0.5
pixel_criterion: l1
pixel_weight: !!float 1e-2
feature_criterion: l1
feature_weight: 1
gan_type: ragan  # gan | ragan
gan_weight: !!float 5e-3
D_update_ratio: 1
D_init_iters: 0
manual_seed: 10
val_freq: !!float 5e3
logger
logger:
print_freq: 100
save_checkpoint_freq: !!float 5e3

Facing same issue, were you able to resolve this?

You need to use a smaller hr_size, I'm guessing you only have 4 gigs of vram? 1x scale models take up a lot more vram than 4x. Also I don't think 1x models even work with the new architecture


path normalization who?

fix checkstyle suppressions to work on windows as well.

https://github.com/checkstyle/checkstyle/issues/3744


Move HM_INTERFACE_EVENT_SCHEMA to central

Codecov Report

Merging #1191 (cc431e2) into devel (7de29a1) will not change coverage.
The diff coverage is 100.00%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@           Coverage Diff           @@
##            devel    #1191   +/-   ##
=======================================
  Coverage   84.98%   84.98%
=======================================
  Files          52       52
  Lines        6221     6221
=======================================
  Hits         5287     5287
  Misses        934      934

Files Changed
Coverage Δ

hahomematic/support.py
93.57% <ø> (-0.10%)
:arrow_down:

hahomematic/central/__init__.py
86.26% <100.00%> (+0.03%)
:arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Fix proposal ID not found error

Despite the proposal being successfully submitted, submitting a proposal results in the following error without redirecting the user to the group page to view the successfully submitted proposal:

Hey team! Please add your planning poker estimate with Zenhub @haveanicedavid @ryanchristo


Gives TypeError on Russian letters

Code:
var Filter = require("bad-words");
var badWordFilter = new Filter();
var badwordtest = "мило"
var teststring = badWordFilter.clean(badwordtest);
Error:
Uncaught TypeError TypeError: Cannot read properties of null (reading '0')
at clean (..node_modules\bad-words\lib\badwords.js:58:41)

Need to modify splitRegex prop. By default /\b/ defined as splitter.
To support russian language need to set "/\b/gu". But it still not working with a single world, like "Привет"


directional coloration for pathnodes,

as well as enlarges both the look and 'physical' handle size for ease of use.

Working ok here, i like it.


Required to call tlsuv_stream_set_protocol()?

ISTM that after the merge of ALPN support in #165 we must initialize by setting ALPN protocols, right?
I followed sample.c (https://github.com/openziti/tlsuv/blob/main/sample/sample.c) and ended up with a segfaulting program. It died trying to work with alpn_count & alpn_protocols field in a struct. I don't see those being initialized.
I added two lines to set alpn and it's now working.
    tlsuv_stream_t stream;
    tlsuv_stream_init(get_uv_loop(), &mbed, NULL);
    // Following two lines fixed segfaults and I got a working TLS connection
    const char *alpn[] = { "http/1.1" };
    tlsuv_stream_set_protocols(&mbed, 1, alpn);

I noticed https://github.com/openziti/tlsuv/commit/2e8dd315e80fa091c801390e816fe86027b2dfa3 that fixes the engine sample. Should sample.c also be updated or what is the API here?
I sort of expected tlsuv_stream_init to give me something that at least would not lead to segfault. Feels like ALPN count field should default to 0, i.e. not using ALPN, right?

this is certainly a bug. thank you for catching it


Add source code for DataLoader Animation

What does this PR do?
Adds source code for the new manim animation going live on 4/23/2024
Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[x] Did you read the contributor guideline,
Pull Request section?
[ ] Was this discussed/approved via a Github issue or the forum? Please add a link
to it if that's the case.
[ ] Did you make sure to update the documentation with your changes? Here are the
documentation guidelines, and
here are tips on formatting docstrings.
[ ] Did you write any new necessary tests?

Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.
@SunMarc

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


system-filepath and system-fileio are deprecated

See the hackage pages (http://hackage.haskell.org/package/system-filepath and http://hackage.haskell.org/package/system-fileio) for the deprecation anouncements.
As the anouncements state, filepath and directory are the replacements.

I would really welcome a patch to change this.

I'll get working on it then.


I clicked the "arrow function" link but get this error.

Request type

[x] Please close this issue, I accidentally submitted it without adding any details
[ ] New documentation
[ ] Correction or update

Details

Hi there, a couple of questions:

What page is the link you are clicking found on?
What error does it give you?


added hint about checking punctuation

"HintCheck your punctuation."
in Accessing Nested Arrays

Pre-Submission Checklist

[x] Your pull request targets the staging branch of freeCodeCamp.
[ ] Branch starts with either fix/, feature/, or translate/ (e.g. fix/signin-issue)
[x] You have only one commit (if not, squash them into one commit).
[ ] All new and existing tests pass the command npm test. Use git commit --amend to amend any fixes.

Type of Change

[x] Small bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds new functionality)
[ ] Breaking change (fix or feature that would change existing functionality)
[ ] Add new translation (feature adding new translations)

Checklist:

[ ] Tested changes locally.
[ ] Closes currently open issue (replace XXXX with an issue no): Closes #XXXX

Description

adding hint to challenge

@pleabargain Thanks for the pull request, but we will have to close this, please follow the Guidelines for Contributing and open from a valid branch, also this has build errors, so you need to test the changes locally.
All details and steps are mentioned in the guideline, reach out to Contributors Chat room, if your need any assistance.


Add a proper flow to set up the gdrive integration

Currently, the Google Drive integration requires a few extra steps not covered in the current repo:

Having a Google dev account
Enabling both Google Sheets and Google Drive API
Creating an Oauth client ID
Downloading a json credentials file and having it added to the docker image
Creating two pickle files (one for sheets, one for drive) through a manual authorization step through the browser when prompted by the application inside a docker container
Keeping the pickle files and adding them to the image to the root of the application/working directory

This isn't ideal and our steps aren't generically documented yet.

Should add gdrive_update.py into the repo to automate that step.

also dockerfile needs to be modified, e.g.:
COPY src/creds/gdrive_creds.json gdrive_creds.json
COPY drive_v3.pickle .
COPY sheets_v4.pickle .


Pangram refute tests aren't good

It seems that all the refute tests should really be assert tests. They seem to want to assert the negative.
For example
def test_missing_character_x
    phrase = 'a quick movement of the enemy will jeopardize five gunboats'
    refute Pangram.pangram?(phrase), "#{phrase.inspect} is NOT a pangram"
end

This test fails if what is returned IS the SAME as "#{phrase.inspect} is NOT a pangram", but it should pass.

The program does not need to return the string at all.  It should return true if the phrase is a pangram and false if it is not.  The test, however, will return the string on failure.

refute means assert NOT.
The method signature is: refute(test, msg = nil)
Where test is the thing to test and msg is the message to display when the test fails.
Documentation: http://docs.seattlerb.org/minitest/Minitest/Assertions.html
That said, it seems that the message needs to be rephrased so as to be more useful, as I suspect the message you were getting was:
'a quick movement of the enemy will jeopardize five gunboats' is NOT a pangram

Which doesn't show you what your output was or what the expected output is.


Merge from cadence at 8bcf4b12b24f00be2cedc7ab2bf2e1e945df6791

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 12 committers have signed the CLA.:white_check_mark: alexshtin:x: anish531213:x: wxing1292:x: yycptt:x: agungwk:x: Groxx:x: vancexu:x: venkat1109:x: meiliang86:x: seriousben:x: yux0:x: seveinYou have signed the CLA already but the status is still pending? Let us recheck it.


Add format_as for fmt v10 formatting

This commit adds format_as for fmt v10.
Because of ADL, every namespace that contains serializable types needs to include this function. Right now, this is done by adding using utl::format_as in the same header that defines these types. We may also write all namespaces in utl/Logger.h. Which do you think is better?

I prefer it this way to "We may also write all namespaces in utl/Logger.h" which would pull too much into utl.

It looks like this doesn't work with the older fmt:
#8 9.471 /OpenROAD/src/utl/include/utl/Logger.h: In function 'auto utl::format_as(T)':
#8 9.471 /OpenROAD/src/utl/include/utl/Logger.h:350:35: error: 'streamed' is not a member of 'fmt'
#8 9.471   350 | auto format_as(T t) { return fmt::streamed(t); }

I prefer it this way to "We may also write all namespaces in utl/Logger.h" which would pull too much into utl.

OK. Then should the asio part be moved to the involved source file, or stay at util/Logger.h?

It looks like this doesn't work with the older fmt:

I apparently made a typo regarding version check (10000 / 100000). That was corrected in the commit I just pushed.

Fixed clang-format errors reported by CI in 0d0991c12

Thanks for the contribution!


Allows extensions to control use spaces or tabs to indent

Currently, vscode fully controls whether the file uses tab or space to indent. However, as we know, using tabs in yaml files is a syntax error. When using Vue SFC, we expect using spaces to indent in yaml codeblocks, like this:
<custom lang="yaml">
foo:
  bar: true
</custom>

But we cannot control what should be used for indentation, which results in an embarrassing situation: we have to use spaces in yaml codeblocks, but when we press tab, it still prints a tab, not spaces.

I'm not 100% sure what you mean, but vscode has API which allows extensions to define the tabSize and insertSpaces options that drive how indentation is inserted.

@alexdima Hi, thanks for your reply.
Vue SFC is a html-like DSL, which includes three built-in block types: script, template and style. That is said, you can write three languages in a single file.
Vue also provides a way to register custom block: https://vue-loader.vuejs.org/guide/custom-blocks.html#example and we can use YAML as the block language. However, if vscode is configured to use tabs for indent, it will insert tabs in the whole SFC - no matter you are editing the script block, template block, or YAML block. And this will cause a syntax error: YAML disallows using tabs for indent, but vscode tries to use tabs to indent such custom YAML blocks.

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

:slightly_smiling_face: This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


Auto Generated Defaults

Description
When first creating a Dashboard, there is an annoying amount of clicking to do just to get a default Dashboard setup. It would be nice if, when dropping in a widget node, the relevant UI config nodes sort themselves out, and can be modified if required.
Particularly, this is relevant for Groups, Pages & underlying UI base nodes themselves, as well as the new ui-theme` nodes, where we could provide some nice default theme options to choose from, but provide the singular "Default" theme without needing to manually select that each time.
Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate

Was about to open an issue on this indeed, before i spotted this. Using the dashboard for the first time would benefit from defaults set.

Complexity in where we inject logic to check this. Ideally, it would be at the point a node is dropped onto the Cnavas, however, I can't seem to find any even that I can hop into here. The .js file operates at runtime (after a deployment), and the html file just seems to handle odedit... events that are related to the sidebar and onpaletteadd which is when a node is first added to the side paletter as an option.

Another option would be to provide a button or other artifact in the widget configuration to automatically create the group/page/base node is none are assigned. Just need to be cognizant of "node bloat" and orphaned nodes that were autocreated and later overridden.


create-plugin's example plugin is incorrectly set up

A newly created plugin (which I assume is the starting point for first time plugin authors) is inconsistent with the documentation and expectations, probably due to some incorrect configuration.
Expected Behavior
When you go through the suggested flow for creating a plugin, it's incorrectly set up - and I'd be able to develop in a sandbox under localhost:3000/<plugin-name>.
(I assume it's suggested since we have pre-created scripts for these in the create-app's templates, and the backstage-cli)
See the following example:
yarn create-plugin        # answer with the plugin name 'dingos'
cd plugins/dingos
yarn start                # running 'backstage-cli plugin:serve'

According to the readme docs, I'd expect to find my developed plugin under /dingos.
Current Behavior
Currently, plugins are served under /page-1 (which I guess is a default route path in lieu of a configured path.
Possible Solution
I'm yet to figure out the whole plugin/route config semantics of the backstage libraries, but I'd guess I should be able to somehow prescribe under what path I'd like to serve my plugin, if not, I'd expect that to be the root path / or the id of the plugin. Neither is true. I am guessing some configuration is not trickled down to the server's config.
Steps to Reproduce

Step: Set up new example plugin

yarn create-plugin        # answer with the plugin name 'dingos'
cd plugins/dingos
yarn start                # running 'backstage-cli plugin:serve'

Step: Wonder where you'll find your plugin displayed?

Context
As a beginner just starting out, it's already confusing enough that I'd have to live with a lot of things hidden into @backstage/core functions. It can get really difficult to find out what's the reality vs what's the suggested behaviour in the README.
Your Environment

NodeJS Version (v12): v12.22.1 (shouldn't matter)
Operating System and Version (e.g. Ubuntu 14.04): OSX Darwin
Browser Information: Chrome

Hey @delanni , when the docs talk about the ĺocalhost:3000/<plugin-name> is a reference for your main app running, not the plugin develop mode. If you run yarn start at the root folder you will see that behavior.
You can check then your packages/app/src/App.tsx file is updated to include the plugin config too.
Maybe we can update the docs to give more context about that, WDYT?
We can update the dev mode to provide the same behavior and avoid that type of confusion too

@delanni Could you take a look at #6120?
I believe we can resolve there :)

Hey!
I checked the PR, I think this is a good resolution. Looking at the code now, I see that this bit was the missing piece:
    path: '/{{ id }}'

Without the path parameter, the single development page for the plugin would go to a default sequential page like page-1 was. Now it is okay, at least devs can now understand that their plugin xyz would be hosted under /xyz - since this is explicit in the plugin's dev config. Thanks for the update!


System.TimeoutException was unhandled [MassTransit 3.1.2, RabbitMQ.Client 3.6.0]

Seeing an unhandled exception that is causing my windows service to crash with no error logged:
System.TimeoutException was unhandled
  HResult=-2146233083
  Message=The operation has timed out.
  Source=RabbitMQ.Client
  StackTrace:
       at RabbitMQ.Util.BlockingCell.GetValue(TimeSpan timeout)
       at RabbitMQ.Client.Impl.SimpleBlockingRpcContinuation.GetReply(TimeSpan timeout)
       at RabbitMQ.Client.Impl.ModelBase.BasicCancel(String consumerTag)
       at MassTransit.RabbitMqTransport.Contexts.RabbitMqModelContext.<>c__DisplayClass31_0.<BasicCancel>b__0()
       at System.Threading.Tasks.Task.InnerInvoke()
       at System.Threading.Tasks.Task.Execute()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at MassTransit.RabbitMqTransport.Contexts.RabbitMqModelContext.<BasicCancel>d__31.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at MassTransit.RabbitMqTransport.Pipeline.RabbitMqBasicConsumer.<SetupStopTask>d__14.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at    System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c__DisplayClass2.<ThrowAsync>b__5(Object state)
       at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch()
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
  InnerException:

This seemingly happens just after a consumer has successfully processed a message.

Can you share the environment that you are using? Which version of the RabbitMQ server are you using?
Also, does this happen once, or every time?

Windows 7 PC x64, RabbitMQ 3.6.0 (server and client), Erlang 18.1, MT 3.1.2; app is being built as .NET Framework 4.5 (Any CPU) and deployed as a windows service.
Seems to happen every time.

I've verified with 3.6.0 that I don't see the issue you're having. Are you properly awaiting any pending tasks, etc. as part of your consumer?

We have no build warnings for unawaited tasks. It is however only one consumer that causes this behaviour - and consistently, every time. Code was running fine under MT2.
Unless you have any other suggestions, I guess we will download the MT source code when we get a chance and see if debugging that throws up anything.
We are clearly unable to complete the migration until we can resolve this issue.

If you can post your consumer code I am sure we can figure it out. It looks like you're stopping the bus from inside your consumer. Probably a container related issue.

    {
        {
            // Autofac snippets
            builder.RegisterType<MongoUserRepository>()
                .WithParameter(new NamedParameter("config", new MongoAppSettingsConfig<IUserRepository>("Users_CollectionName")))
                .As<IUserRepository>()
                .SingleInstance();

            builder.RegisterType<ApproveAction>().Keyed<IWorkflowAction>(WorkflowActionType.Approve);
            builder.RegisterType<RejectAction>().Keyed<IWorkflowAction>(WorkflowActionType.Reject);
            builder.RegisterType<PublishAction>().Keyed<IWorkflowAction>(WorkflowActionType.Publish);
            builder.RegisterType<NotifyAction>().Keyed<IWorkflowAction>(WorkflowActionType.Notify);
            builder.RegisterType<RollbackAction>().Keyed<IWorkflowAction>(WorkflowActionType.Rollback);
            builder.RegisterType<RebalanceAction>().Keyed<IWorkflowAction>(WorkflowActionType.Rebalance);
            builder.Register<Func<WorkflowActionType, IWorkflowAction>>(c =>
            {
                var ctx = c.Resolve<IComponentContext>();
                return wat => ctx.ResolveKeyed<IWorkflowAction>(wat);
            });

            builder.Register(c => Bus.Factory.CreateUsingRabbitMq(sbc =>
            {
                IRabbitMqHost host = sbc.Host(new Uri(ReceiveUri), config =>
                {
                    config.Username(ReceiveUri.GetRabbitMqUsername());
                    config.Password(ReceiveUri.GetRabbitMqPassword());
                });

                sbc.UseLog4Net();
                sbc.UseRetry(Retry.Immediate(5));

                //this will find all of the consumers in the container and
                //register them with the bus.
                sbc.ReceiveEndpoint(host, ep => ep.LoadFrom(c.Resolve<ILifetimeScope>()));
            })).As<IBusControl>()
                .As<IPublishEndpoint>()
                .SingleInstance();

            builder.RegisterType<MessageBus>().As<IMessageBus>();
        }
    }

    public class ProductAdjustmentWorkflowCommandConsumer : IConsumer<IProductAdjustmentWorkflowCommand>
    {
        private static readonly ILog Log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);

        private readonly Func<WorkflowActionType, IWorkflowAction> _workflowActionFactory;
        private readonly IUserRepository _userRepository;

        public ProductAdjustmentWorkflowCommandConsumer(Func<WorkflowActionType, IWorkflowAction> workflowActionFactory, IUserRepository userRepository)
        {
            Contract.Requires(workflowActionFactory != null);
            Contract.Requires(userRepository != null);

            _workflowActionFactory = workflowActionFactory;
            _userRepository = userRepository;
        }

        public async Task Consume(ConsumeContext<IProductAdjustmentWorkflowCommand> ctx)
        {
            try
            {
                IProductAdjustmentWorkflowCommand command = ctx.Message;

                Log.InfoFormat("Received command: {0}", command.ToDebugString());

                var action = _workflowActionFactory(command.ActionType);
                var user = await _userRepository.GetUser(command.UserId);
                var response = await action.Execute(command, user);

                Log.InfoFormat("Returning command response: {0}", response);

                await ctx.RespondAsync(response);
            }
            catch (WorkflowException exception)
            {
                Warn(ctx, exception);
            }
            catch (Exception exception)
            {
                Error(ctx, exception);
            }
        }

        private static void Error(ConsumeContext<IProductAdjustmentWorkflowCommand> ctx, Exception exception)
        {
            Log.Error(string.Format("Error processing workflow command:{0}{1}", Environment.NewLine, ctx.Message.ToDebugString()), exception);
            ctx.Respond(new ProductAdjustmentWorkflowCommandResponse(ctx.Message.CorrelationId) {Error = exception.Message});
        }

        private static void Warn(ConsumeContext<IProductAdjustmentWorkflowCommand> ctx, Exception exception)
        {
            Log.Warn(exception.Message);
            Log.Debug(exception);
            ctx.Respond(new ProductAdjustmentWorkflowCommandResponse(ctx.Message.CorrelationId) {Error = exception.Message});
        }
    }

    public abstract class WorkflowAction : IWorkflowAction
    {

        protected abstract IEnumerable<UserPermission> RequiredPermissions { get; }

        public async Task<IProductAdjustmentWorkflowCommandResponse> Execute(IProductAdjustmentWorkflowCommand command, IUser user)
        {
            if (!RequiredPermissions.Any(user.HasPermission))
            {
                return new ProductAdjustmentWorkflowCommandResponse(command.CorrelationId)
                {
                    Error = string.Format("User {0} does not have permission to {1}", user.Id, command.ActionType)
                };
            }

            return await ExecuteImpl(command, user);
        }
    }

    public class ApproveAction : WorkflowAction
    {
        protected override IEnumerable<UserPermission> RequiredPermissions
        {
            get { return new[] {UserPermission.CanFirstApprove, UserPermission.CanSecondApprove}; }
        }

        protected override async Task<IProductAdjustmentWorkflowCommandResponse> ExecuteImpl(IProductAdjustmentWorkflowCommand command, IUser user)
        {
            List<ProductUpdateContainer> updates = (await CreateProductUpdates(command, user)).ToList();

            if (...)
            {
                await Approve(user, updates, ProductAdjustmentStatus.SpmoApproved);
            }
            else
            {
                throw new WorkflowException("You do not have permission to approve the selected adjustments in their current state");
            }

            return new ProductAdjustmentWorkflowCommandResponse(command.CorrelationId);
        }

        private async Task Approve(IUser user, IEnumerable<ProductUpdateContainer> updates, ProductAdjustmentStatus statusPost)
        {
            await StoreAuditRecords(CreateAuditRecords(updates, user.Id, statusPost));
        }
    }

So here is where I see some issues for concern:
IRabbitMqHost host = sbc.Host(new Uri(ReceiveUri), config =>

What is the ReceiveUri value? It should be something like "rabbitmq://server/virtual_host_name".
sbc.ReceiveEndpoint(host, ep => ep.LoadFrom(c.Resolve<ILifetimeScope>

This should be specifying the queue name: such as "workflow_queue" or something. The way you are registering it now you're getting a random queue name generated for the receive endpoint.

We were previously configuring username & password via the URI; I see this no longer works in MT3, so we have started extracting this from the URI and setting in code as per the sample above. Have left the URI unchanged however; we are using the default virtual host:
    <add key="ReceiveUri" value="rabbitmq://guest:guest@localhost" />

Previously, we specified the receiver queue as the end of ReceiveUri too, all the consumers shared the same queue and this worked well.
I have now added the receiver queue as a parameter:
    <add key="ReceiverQueue" value="FooService_receive" />

                sbc.ReceiveEndpoint(host, ReceiverQueue, ep => ep.LoadFrom(c.Resolve<ILifetimeScope>()));

Still crashing.
I would like to discover, if possible, why just this one consumer causes an unhandled exception in the RabbitMQ/MT code that crashes the service.

Ok, found the solution. We have a class that wraps the bus object - and it looks like this was disposing the bus. So the fix is:
            builder.RegisterType<MessageBus>()
                .As<IMessageBus>()
                .SingleInstance(); // <-- added

Please close the ticket. Thanks for your assistance!


feat: showing cycles and updating tests

Fixes #3
Made a couple of changes:

Added the option to print cycles using the -c flag.
Fixed getChains function for cases like these:

Updated tests.

Thanks for the review @alenkacz! I've made all the suggested edits let me know if we're good to merge :)


Ported to python 3.8

Hi, I'm interested in continuing your project.

Hi! I do not have plans right now to continue this project. I propose to archive this repo here and link to your fork if that is ok?

Hi! I do not have plans right now to continue this project. I propose to archive this repo here and link to your fork if that is ok?

Hi Fabio, sorry for the late reply.
I started a new project at https://github.com/tofu13/pyc64 .
I'd really appreciate a link to this project, which took inspiration from
your work (you're the first in the credits list).
Thank you again, bye!
Marco
Il giorno mer 17 feb 2021 alle ore 10:41 Fabio Anderegg <
<EMAIL_ADDRESS>ha scritto:

Hi! I do not have plans right now to continue this project. I propose to
archive this repo here and link to your fork if that is ok?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/fotcorn/Python-C64-Emulator/pull/3#issuecomment-780431575,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADZYYUMQB2IZVQPWUGTRRHTS7OFOLANCNFSM4XRQ2E7A
.

Done!
Thanks and good luck with your project!


Issue transpiling typesript

I am attempting to set up the project as instructed in this tutorial: https://heroiclabs.com/docs/nakama/tutorials/js/xoxo/
However, while running the command npx tsc I am running into this error:
match_handler.ts:275:41 - error TS2339: Property 'binaryToString' does not exist on type 'Nakama'.
275                     msg = JSON.parse(nk.binaryToString(message.data));
                                            ~~~~~~~~~~~~~~
Looking at the file match_handler.ts VS code shows that nkruntime.Nakama does not have the function binaryToString defined.
I'm not sure what I'm missing but would appreciate any help you can provide.

@growthdyn-luke It looks like the project template still uses the v1.20.0 version of the Nakama Type definitions. I'll update it but in the meantime you can upgrade the dependency in your package.json to use v1.21.0 release:
https://github.com/heroiclabs/nakama-project-template/blob/master/package.json#L23
Make sure to run npm upgrade afterwards IIRC.

@growthdyn-luke I updated the package JSON to use the latest Type definitions and re-ran npx tsc to execute the TypeScript compiler on the codebase and it all worked. Let me know if your problem persists but in the meantime I'll close this issue. Thanks for reporting it 🙏

Thank you for your quick reply! that worked beautifully.


fix: [M3-8409] - Community Like Notifications in Event Messages v2 Refactor

Description 📝
Improve Community Like Notifications in Event Messages v2 Refactor.
When an answer/question is "liked" on the Community Questions site, the person wrote that answer/question is sent a notification in Cloud Manager. However, the syntax for that notification doesn't really make sense in Event Messages v2:

[!NOTE]
Default 'Linode' is kept as it is because it was already defined as a fallback when the username is null in Event Messages v2.

Changes  🔄
In Event Messages v2:

Exclude usernames from community like events.
Add username getter utility that returns usernames from event or 'Linode' if username is null or excluded by action.
Update the notification message for community like events to ensure it is grammatically correct.

Target release date 🗓
5th August, 2024
Preview 📷

Before (v2)
After (v2)

How to test 🧪
Reproduction steps
With the Event Messages v2 flag ON locally:

Get a user who is not you to like one of your answers and the question on the Community Questions site. This generates the event notification.

Verification steps

Verify that the notification message for community like events for both question and answers are grammatically correct in Event Messages v2.
For both the 'Events Landing page' and 'Notification Menu':

Verify that Event Messages v1 will not display the username in notification message for actions added in ACTIONS_WITHOUT_USERNAMES or when username is null.
Verify Event Messages v2 will display 'Linode' as a fallback for actions added in ACTIONS_WITHOUT_USERNAMES or when username is null.

As an Author I have considered 🤔
Check all that apply

[x] 👀 Doing a self review
[x] ❔ Our contribution guidelines
[x] 🤏 Splitting feature into small PRs
[x] ➕ Adding a changeset
[ ] 🧪 Providing/Improving test coverage
[x] 🔐 Removing all sensitive information from the code and PR description
[ ] 🚩 Using a feature flag to protect the release
[x] 👣 Providing comprehensive reproduction steps
[x] 📑 Providing or updating our documentation
[ ] 🕛 Scheduling a pair reviewing session
[ ] 📱 Providing mobile support
[ ] ♿  Providing accessibility support

I'm tempted to say that we should add community_question_reply and community_mention events on the ACTIONS_WITHOUT_USERNAMES too, since those are events generated by people other than the user, and Linode is informing the user of them - not sure if @jaalah-akamai or others have thoughts on that.

@mjac0bs As discussed with Jaalah before, we wanted to exclude only community_like events, as likes (from payload) could come from multiple people for the same question or answer within the 3-min cron job window.
What are your thoughts on this @jaalah-akamai? Should the username be excluded from community_mention and community_question_reply events as well?

Yea I agree with @mjac0bs

Yea I agree with @mjac0bs

Okay. Excluded usernames from community_mention and community_question_reply events as well.


Inconsistency in throws doc

In doc below, first example show a : after throws
In last example, : vanished.
I don't know which one is correct.
Throwing functions
To indicate that a function can throw an error you can use the throws keyword.
functionName() => String, throws: TypeError|DOMException

For the generic Error type, you can optionally omit the throw type:
functionName() => String, throws

Is equivalent to:
functionName() => String, throws Error

51f555c0837b8068b95235843a8edbf5ffbe0bec

Thanks! :+1:


Validating webhook installation regression

We introduced per-revision validating webhook configurations in https://github.com/istio/istio/pull/33044/files. As part of this, we had to keep the old validating webhook around to keep from purging it on revisioned upgrade with Helm. However, having a lame-duck validating webhook configuration around, even if it never moves to FailClose, has a cost:

Produces error logs about missing CA bundle on each resource application
Webhook still gets called on each resource application

In addition, with Helm-based install, we never install the revisioned webhook that is meant to actually handle validation since global: configValidation is not set in the istio-discovery chart.

Fixed in https://github.com/istio/istio/pull/34446


Support millisecond and microsecond functions

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
arrow-rs supports functions second, second_dyn, nanosecond, nanosecond_dyn, but does not microsecond, microsecond_dyn, millisecond and millisecond_dyn.
I think these features will be useful for the users who want to know specific microsecond and millisecond.

Describe the solution you'd like

Describe alternatives you've considered

Additional context

https://arrow.apache.org/docs/cpp/compute.html

label_issue.py automatically added labels {'arrow'} from #4375


Can I modify the metadata of other pages from the current page?

Hello, All
There are two pages, the first page is myPage.md and contains metadata
And the second page, which is test.md, contains the JavaScript code
Is it possible through the test.md page to modify the metadata content of the second-page mypage.md?
As shown in the pictures

@blacksmithgu

Not currently, no - the data you get from dataview is a read-only copy of whatever data was extracted from the page. Updating the page is possible, but requires some mechanics (mainly tracking where metadata is and safely updating it physically in the page) which have not been implemented.

If you have some resources to implement this, I would like to see them, please.
Or can you explain how to do this?
Can you set it as a feature required for future work?


Error: Invalid protocol: null

Hi @chill117 ,
I try to fetch some proxy but it seems it return Error: Invalid protocol: null error for many of proxy sources. Is it a bug or I use package in wrong way?

Are you seeing that error when using the proxies or when getting the proxies via this module?

I see this when try get proxy by getProxies() function.

I'll have a look at it in the next few days.

@chill117 Thanks man. :wink:

I have run the tests a few times at different days/times, but I have not been able to reproduce your issue. It could just be an issue with your ISP or your IP address being blocked by one or more of the proxy sources. Or, if you are using a proxy via the node proxy environment variable, the proxy/ies you are using to get more proxies could be not working properly?

Hi @chill117 , First thanks for your attention.
Yes I used node proxy environment based on this issue but I think that's not problem because I checked with many proxy with different quality.
@chill117 I used your package as dependency in a Meteor application. If you familiar with Meteor I can create simple test application for more simpler issue reproduce. Tell me if you know Meteor man. :wink:

And what about when you don't use any proxy and you use a VPN instead?
I am familiar with Meteor, but haven't used it for any projects yet. I am not sure if it would cause any problems with this module. You could eliminate Meteor as a suspect if you try using this module outside of Meteor and the problem continues.

Hi @chill117,
I create a simple demo app for using proxy-list in Meteor.js see this man:
https://github.com/MeteorDemoApps/proxy-lists-demo
and specially:
https://github.com/MeteorDemoApps/proxy-lists-demo/blob/master/server/main.js
I used freegate as proxy and http://<IP_ADDRESS>:8580 in line 13 & 14 is freegate proxy url.
It's my output now:
=> Started proxy.
=> Started MongoDB.
I20160608-13:47:27.815(4.5)? Proxy Received: 24
I20160608-13:47:29.402(4.5)? Proxy Received: 37
W20160608-13:47:29.418(4.5)? (STDERR) Error Occurred: Error: Invalid protocol: null
W20160608-13:47:29.419(4.5)? (STDERR) Error Occurred: Error: Invalid protocol: null
W20160608-13:47:29.419(4.5)? (STDERR) Error Occurred: Error: Invalid protocol: null
W20160608-13:47:29.420(4.5)? (STDERR) Error Occurred: Error: Invalid protocol: null
W20160608-13:47:29.420(4.5)? (STDERR) Error Occurred: Error: Invalid protocol: null
W20160608-13:47:29.421(4.5)? (STDERR) Error Occurred: Error: Invalid protocol: null
W20160608-13:47:29.421(4.5)? (STDERR) Error Occurred: Error: Invalid protocol: null
W20160608-13:47:29.421(4.5)? (STDERR) Error Occurred: Error: Invalid protocol: null
W20160608-13:47:29.422(4.5)? (STDERR) Error Occurred: Error: Invalid protocol: null
W20160608-13:47:29.422(4.5)? (STDERR) Error Occurred: Error: Invalid protocol: null
W20160608-13:47:29.422(4.5)? (STDERR) Error Occurred: Error: Invalid protocol: null
W20160608-13:47:29.423(4.5)? (STDERR) Error Occurred: Error: Invalid protocol: null
W20160608-13:47:29.425(4.5)? (STDERR) Error Occurred: Error: Invalid protocol: null
W20160608-13:47:37.240(4.5)? (STDERR) Error Occurred: Error: Invalid protocol: null
W20160608-13:47:40.156(4.5)? (STDERR) Error Occurred: Error: Invalid protocol: null
I20160608-13:47:43.194(4.5)? Proxy Received: 100
W20160608-13:47:45.319(4.5)? (STDERR) Error Occurred: Error: Invalid protocol: null
I20160608-13:47:45.876(4.5)? proxiesCount: 161
=> Started your app.

=> App running at: http://localhost:3000/

You must comment out these lines. Then it will work. You could move them to within the 'end' event callback function and it will work as well.

@chill117 Ohhhh man. It is a silly mistake :see_no_evil:
I fix that and now my output is: (Just one Error: ETIMEDOUT and other source fetched successfully)
I20160608-14:34:44.923(4.5)? Proxy Fetched: 45
I20160608-14:34:45.066(4.5)? Proxy Fetched: 28
I20160608-14:34:49.844(4.5)? Proxy Fetched: 100
I20160608-14:34:51.160(4.5)? Proxy Fetched: 257
I20160608-14:34:52.950(4.5)? Proxy Fetched: 275
W20160608-14:34:54.598(4.5)? (STDERR) Error Occurred: Error: ETIMEDOUT
I20160608-14:34:57.729(4.5)? Proxy Fetched: 254
I20160608-14:34:58.169(4.5)? Proxy Fetched: 265
I20160608-14:34:59.228(4.5)? Proxy Fetched: 274
I20160608-14:35:00.007(4.5)? Proxy Fetched: 276
I20160608-14:35:00.452(4.5)? Proxy Fetched: 273
I20160608-14:35:04.968(4.5)? Proxy Fetched: 278
I20160608-14:35:06.570(4.5)? Proxy Fetched: 274
I20160608-14:35:07.021(4.5)? Proxy Fetched: 273
I20160608-14:35:10.011(4.5)? Proxy Fetched: 0
I20160608-14:35:10.878(4.5)? Proxy Fetched: 268
I20160608-14:35:11.315(4.5)? Proxy Fetched: 269
I20160608-14:35:13.322(4.5)? Proxy Fetched: 0
I20160608-14:35:17.880(4.5)? Proxy Fetched: 281
I20160608-14:35:22.531(4.5)? Total proxy count: 3690

@chill117 is it right way to unset node proxy environment variable?
process.env.HTTP_PROXY = null;
process.env.HTTPS_PROXY = null;

is it right way to unset node proxy environment variable?

Yes, that is the preferred method of un-setting keys on objects in JavaScript. But from seeing the previous error you were getting (Invalid protocol: null), I think the request module is treating a null value as if it is set and is trying to use it as a proxy. So you might have to set those environment variables to undefined (which is a bad practice) or use delete process.env.HTTP_PROXY.

@chill117 really thanks for your attention. :heart:
I also done some clean up on code and fix issues (also add delete process.env.HTTP_PROXY) and add some readme. You can use it repo url on proxy-list readme if you think it's useful for meteor users :wink:

@chill117 I close this issue man. Again thanks :wink:


Myne 1.4.0 Crashes immediately - 2 different fones

Myne 1.4.0 Crashes almost immediately
Activity swirl for a second or 3 .. then crash
Tried tapping on different bottom buttons Home ___ Library ___,
no  difference.
2 different fones:
Sams s5 andriod 6.0.1
MotoEdge2022 andriod 12

Please update to latest version 1.7.0 and share logcat if problem persists.

F-droid only offers v 1.4.0
I am not interested in fetching from gPlayStore
(where it appears to cost $2.49 =non- FOSS)
Thanks, anyway.
The UI did look attractive.

where it appears to cost $2.49 =non- FOSS

Gplay version is exactly same as any other version, costing some amount doesn't makss it non-foss, the F in FOSS means "free as in freedom, not free as in price" besides you can always grab latest version from GitHub release it won't cost you anything, the play store version is for people who would like to support the development by contributing some amount (i.e. by buying from gplay) and in return will also get something like easy automatic updates directly from Google Play without downloading and installing apk by themselves, but you ofcourse don't need to pay/buy anything if you don't wish to.

Sams s5 andriod 6.0.1
Btw app is not compatible with Android 6.0, it's clearly written in the Readme that it's only compatible with Android 7.0 and later.

DATE 2023-03-25, Saturday
F-droid [today] offers v 1.4.0, dated = Mar.11
which was encouraging, a few days back, when I first installed.
BUT..
PlayStore [today] offers the app DATE DIFFERENT = Mar.24 (version unclear)
I help people who rely on adaptive aids.
I only recommend/specify FOSS for them which is practical to install, as I support them "over-the-phone".
SO ..
I may come back in a week or so, to see if F-droid's version is 1.7.x
Thank you for your work.
I am unlikely to get back into programming, but you have sparked an interest in Kotlin, here.
smiles from Canada :--)

Sure no problem, closing the issue for now, feel free to re-open if you're still having problems in future.


Sonoff DualR3 becomes unavailable within Homeassistant

Since a few days my Sonoff DualR3 is unavailable within Home assistant. It was before. Firmware of dual R3 is 1.4.0.
It worked before, all other Sonoff devices are working within Home assistant. Within Ewelink all devices are working. Who can help?

Same with my Dual R3

Maybe you have errors in Hass log? Also you can enable debug mode.

I found 2 interesting messages in the log, perhaps someone can advise:
2022-04-10 21:54:22 DEBUG (MainThread) [custom_components.hacs] <Integration AlexxIT/SonoffLAN> Running checks against v2.4.3
2022-04-10 21:54:23 DEBUG (MainThread) [custom_components.hacs] 'states' is undefined
2022-04-10 21:54:28 DEBUG (MainThread) [custom_components.hacs] 'trigger' is undefined

No logs at all. The old cover entity got unavailable and changed to two separate switches.

No logs at all. The old cover entity got unavailable and changed to two separate switches.

I noticed the same, I also have 2 separate switches. Any suggestion how to solve?

Hi,
I too have a dualR3 sonoff and in home assist I only ever see 2 separate switches, but I don't see the power measurements in WATT, is there any configuration to do to make the 2 new entities appear?
Thanks

I installed the latest version of Sonoff and now it works again! Thanks!

I have the latest sonoff lan 2.4.7 version made by you.
device sw version 1.4.0
latest ewelink version on the smartphone 4.20.0 (android)
but in Home assistant i only see the 2 switches, i don't see the power ampere and voltage.

I installed the latest version of Sonoff and now it works again! Thanks!

What's the version you are using for your Dual R3?

Problems only with DualR3 in cover mode? Please show debug logs

The Dual R3 shows as a cover after the 2.4.7 update. For me personally, everything is fixed.

I'm on 2.4.7 Sonoff Lan too and I have a DualR3 in measurement mode with 1.4.0 firmware, having the same problem. All sensors unknown or unavailable.

Check new beta-version:
https://github.com/AlexxIT/SonoffLAN/releases/tag/v3.0rc1

Problems keeps the same...

And now I have some new ones, other sensors wich usually works fine now has problems too:

And my switches are unresponsive:

I fully removed the Integration (removed the configuration, removed all entities, removed Hacs files and folders and removed the integration from Hacs) and then reinstalled again doing the configuration from zero. Keeps the same issue.
Also I have this error on HA log:
`Logger: homeassistant
Source: custom_components/sonoff/init.py:191
Integration: Sonoff (documentation, issues)
First occurred: 11:45:44 (1 occurrences)
Last logged: 11:45:44
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/config/custom_components/sonoff/init.py", line 212, in internal_cache_setup
registry.setup_devices(devices)
File "/config/custom_components/sonoff/core/ewelink/init.py", line 52, in setup_devices
entities = [cls(self, device) for cls in spec]
File "/config/custom_components/sonoff/core/ewelink/init.py", line 52, in
entities = [cls(self, device) for cls in spec]
File "/config/custom_components/sonoff/switch.py", line 36, in init
XEntity.init(self, ewelink, device)
File "/config/custom_components/sonoff/core/entity.py", line 96, in init
self.internal_update(params)
File "/config/custom_components/sonoff/core/entity.py", line 112, in internal_update
self.set_state(params)
File "/config/custom_components/sonoff/switch.py", line 47, in set_state
params = next(
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/sonoff/init.py", line 191, in internal_normal_setup
await internal_cache_setup(hass, entry, devices)
RuntimeError: coroutine raised StopIteration`

Fixed in v3.0rc2

Check new beta-version: https://github.com/AlexxIT/SonoffLAN/releases/tag/v3.0rc1

hello, i have just updated to BETA version v3.0rc1 all the sonoff entities are not detected anymore (only some zigbee temometers), there is a problem i don't see anything anymore, if i install 2.4.7 again everything works fine as before.

Fixed in v3.0rc2

now work all sonoff
and i read the power from DUALR3
TOP !!!!

I had the same and unfortunately never invested further but chose to go the tasmota route which is stable…. Had I been able to get the power metrics within HA rather than in the EWeLink frame I would not have done the Tasmota flashing.
On 06 Apr 2022, at 12:51, NotHappy @.***> wrote:

Same with my Dual R3
—
Reply to this email directly, view it on GitHubhttps://github.com/AlexxIT/SonoffLAN/issues/736#issuecomment-1090129566, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATBEK5Q6IS4NMRWGTHWLVOLVDVUCHANCNFSM5SJRHNMA.
You are receiving this because you are subscribed to this thread.Message ID: @.***>


Waypoint: Modify Array Data With Indexes

Challenge http://www.freecodecamp.com/challenges/waypoint-modify-array-data-with-indexes has an issue. Please describe how to reproduce it, and include links to screenshots if possible.
Task says: Now modify the data stored at index 0 of myArray to the value of 3.
var ourArray = [1,2,3];
ourArray[1] = 3;
// ourArray[1] now equals [1,3,3].
var myArray = [1,2,3];
// Only change code below this line.
myArray[0] = 3;

// Only change code above this line.
// We use this function to show you the value of your variable in your output box.
// You'll learn about functions soon.
if(typeof(myArray) !== "undefined"){(function(){return(myArray);})();}

returns an error.

This has just been fixed!


[DOC] Cannot connect to NFS service

What's the document you plan to update? Why? Please describe
I'm not sure whether this is a bug, feature request or a documentation improvement.
I'm not quite understanding how to achieve what I want to do.
In short: I want 2 pods from different namespaces to access the same data on the same volume.
I installed longhorn and was able to provision a volume by adding a persistent volume claim to my helm installation on namespace A.
I can see that there's a pvc-2e028e26-6d57-48b9-96d4-67d6e4947f2f service under the longhorn-system namespace.
So what I tried to do is to connect to such service from namespace B. It looks like this

PersistentVolume
kind: PersistentVolume
apiVersion: v1
metadata:
  name: dispenser-audio-2
  namespace: "blender"
  labels:
    app.kubernetes.io/instance: blender
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: blender
    helm.sh/chart: blender-0.1.0
    app.kubernetes.io/component: any
spec:
  capacity:
    storage: "3Gi"
  accessModes:
    - "ReadWriteMany"
  persistentVolumeReclaimPolicy: "Retain"
  storageClassName: "longhorn-ext4-retain-nfs"
  nfs:
    path: "/"
    server: "pvc-2e028e26-6d57-48b9-96d4-67d6e4947f2f.longhorn-system.svc.cluster.local"

After scheduling the pod from namespace B I get the following error
MountVolume.SetUp failed for volume "dispenser-audio-2" : mount failed: exit status 32 Mounting command: mount Mounting arguments: -t nfs pvc-2e028e26-6d57-48b9-96d4-67d6e4947f2f.longhorn-system.svc.cluster.local:/ /var/lib/kubelet/pods/6d620974-3291-4670-8a72-3b0383c0b3c1/volumes/kubernetes.io~nfs/dispenser-audio-2 Output: mount.nfs: Resource temporarily unavailable

I tried mounting manually from inside the pod or to ping the endpoint but they are unreachable.
I read anything I could find online, read the documentation multiple times and searched through issues but I couldn't help myself with this issue.
If anyone could help me solve this I would be very willing to offer a donation for a couple of coffees 😅
Thank you for your time
Additional context
none

By manually mounting I'm getting the following message
root@blender-795f8df5bd-m44ds:/app# mount -t nfs <IP_ADDRESS>:/mnt/audio /mnt/nfs/test
mount: /mnt/nfs/test: cannot mount <IP_ADDRESS>:/mnt/audio read-only.
       dmesg(1) may have more information after failed mount system call

Why is that read-only if I created the Volume as ReadWriteMany?

So... for some reason when changing my server configuration in the NFS section to use the IP the system starts correctly working.
    nfs:
      path: /
      server: <IP_ADDRESS>

Isn't the service name a supported value type?

Actually in Longhorn documentation we don't have such a description, neither in PersistentVolumeClaim example nor in ReadWriteMany section.
Maybe could we add such an information?
cc @derekbit

Any updates here? :) I would just like to know if using FQDN (fully qualified domain name) is allowed

cc @james-munson

I would just like to know if using FQDN (fully qualified domain name) is allowed

I don't think this issue is related to Longhorn, as you are using the nfs field (not the Longhorn CSI driver). it's likely just mounting to a specified server in the host namespace, outside of the Kubernetes network. This means it won't be aware of the Kubernetes DNS resolver and won't be able to resolve Kubernetes service FQDNs.


How to integrate Google Ads in the Flet App

How to integrate Google Ads in the Flet App
Hello Flet Team,
I am getting many concerns from the users regarding the integration of Google Ads in the Flet App, so on their behalf I am raising this case, please provide your assistance on this.
Thanks,
Anurag

Duplicate of https://github.com/flet-dev/flet/issues/286

Hello @ndonkoHenri -
Thanks for your quick response!
I am good to close this case.
Regards,
Anurag


Closes #3558

ruby-head seems to be more strict about how instance variables are referenced, at the moment.

I believe this is actually caused by https://github.com/rubygems/rubygems/commit/620910aa75c7446e8f8d5af1df5f981e4da86197.

@digitalextremist this PR doesn't seem to fix things, please take a look at the test failures?

@segiddins seeing the test failures, but at first glance it seems like it's failing on tests not anticipating @tenderlove's changes to rubygems. Looking further.

@segiddins the give-away that this is more about how an instance variable is referenced versus whether caching is being done, for me, is that this is ruby-head isolated so far.

well, does adding an attr_accessor :spec fix things?

On Apr 10, 2015, at 9:58 PM, digitalextremist<EMAIL_ADDRESS>wrote:
@segiddins https://github.com/segiddins the give-away that this is more about how an instance variable is referenced versus whether caching is being done, for me, is that this is ruby-head isolated so far.
—
Reply to this email directly or view it on GitHub https://github.com/bundler/bundler/pull/3559#issuecomment-91761257.

I pulled my comment from @tenderlove's commit since it was out of the context of that commit, and I'm looking through rubygems right now to attempt putting @spec within scope of its own instances which reference it as spec .. purely for science, because you asked. As far as I can see, what you're talking about is another similar issue.

I have basically no idea what is even going on here. What is broken, and under what circumstances? What is this patch supposed to fix, and why does the change make the tests fail?

This is fixed by f4481a7e3dbaf7f563e32afbe2cbbb84e3091f16.


Union type of string literals

With TypeScript 1.8, this code fails:
type SomeString = ('string1' | 'string2') & ('string3' | 'string4');
const x: SomeString = 'string1';

With the following error: Type 'string' is not assignable to type '("string1" | "string2") & ("string3" | "string4")'. Type 'string' is not assignable to type '"string1" | "string2"'. Type 'string' is not assignable to type '"string2"'.
Is this by design? Should it not be possible to use unions for string literal types?

The following does work:
type SomeString = 'string1' | 'string2' | 'string3' | 'string4';
const x: SomeString = 'string1';

So it is possible to use unions for string literal types. Your example is an intersection, which 'string1' cannot possibly satisfy, because it must simultaneously satisfy 'string3'|'string4', which it clearly can't.
The error message you are getting from tsc is not very helpful in this case.

Ah, completely mixed up union and intersection types, sorry!
Closing this because brain fart.


Undo Command executes when TextEditor is read only.

I have a an undo button (along with other buttons) on a tool bar that works with the TextEditor.  I've noticed that when the TextEditor.IsReadOnly is set to "true", the the Undo Command will execute on the TextEditor's text.  BTW - Very cool control.  Great job!!
        <Button Command="Undo">
            <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
                <Image Source="/Resources/undo20.png" Height="20" Width="20" ToolTip="Undo"/>
                <Label Content="Undo"/>
            </StackPanel>
        </Button>

I second this.

I'm just curious why you don't disable the undo command in this case (for example, bind it to ICommand and check the editor state in CanExecute()).


Podcast Feature

ITS-Pro time category:
Podcasts:

https://shows.acast.com/triton-tools-tidbits/episodes

@woznaut

@a6wu is this screenshot from a prototype or a webcard that was added? is this how we want the podcast feature to be?

I think at a minimum we'd like to be able to style the content from the feed to be more in brand if that's an option

@kevdesilva01  @woznaut  This is something I threw up quickly. Completely open to making this more flexible. There are a handful of podcasts from UCSD.

https://podcast.ucsd.edu/
https://ksdt.ucsd.edu/
(video) https://www.ucsd.tv/

@a6wu are all of these links things that should be made available through this feature?

@kevdesilva01 not necessarily. Sharing a list of various media content for design/implementation ideas.

@a6wu okay thank you. Would it necessarily be a bad thing if the feature included a way to access all of these resources? Or is the main focus https://shows.acast.com/triton-tools-tidbits/episodes ?

@a6wu @woznaut here is a prototype w/ lock screen (only Triton Tools and Tidbits): https://xd.adobe.com/view/3ea50eab-e2ce-4057-a2c4-1c7a898eedd7-6bf6/


[21.05] php73: 7.3.28 -> 7.3.29, php74: 7.4.20 -> 7.4.21, php80: 8.0.7 -> 8.0.8

Motivation for this change
Manual backport of #128881, since patches needed changing and nothing applied automatically.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Relase notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

nixpkgs-review on macos 10.15 & nixos x86_64 doesn't reveal any new failures.
(though php73Extensions.apcu and php73Extensions.apcu_bc at least proved to be a bit flakey on macos)

@ofborg eval
(Sorry, ofborg's certs recently had an issue, meaning that it was unable to
react to PRs. This has been fixed, but all PRs filed in this period will need
ofborg to be manually kicked off.)


Use the new plugins

DO NOT MERGE BY ACCIDENT - must be coordinated with changes to Java Flex Quickstart

@tswast PTAL

LGTM. Merge whenever you're ready.

Travis passed two back, I don't think we will have a problem, so I'm merging.


Test failure: ClientDisconnectCallbackStress

This issue was made automatically. If there is a problem contact ryanbrandenburg.
This test failed with the following error:
System.InvalidOperationException : Didn't get response that satisfies predicate after 10 retries
   at Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests.Helpers.RetryRequestAsync(HttpClient client, String uri, Func`2 predicate) in /_/test/Common.FunctionalTests/Utilities/Helpers.cs:line 126
   at Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests.ClientDisconnectTests.ClientDisconnectCallbackStress() in /_/test/Common.FunctionalTests/Inprocess/ClientDisconnectTests.cs:line 76
--- End of stack trace from previous location where exception was thrown ---
------- Stdout: -------
| [0.001s] TestLifetime Information: Starting test ClientDisconnectCallbackStress at 2018-10-24T00:19:08
| [0.002s] FIXTURE:HttpTestSite Debug: Method: GET, RequestUri: 'http://localhost:63296/HelloWorld', Version: 2.0, Content: <null>, Headers:
|                                      {
|                                      }
| [0.003s] FIXTURE:HttpTestSite Debug: StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.HttpConnection+HttpConnectionResponseContent, Headers:
|                                      {
|                                        Server: Microsoft-IIS/8.5
|                                        Date: Wed, 24 Oct 2018 00:19:08 GMT
|                                        Content-Length: 11
|                                      }
| [0.005s] FIXTURE:HttpTestSite Debug: Hello World
| [0.007s] FIXTURE:HttpTestSite Debug: Method: GET, RequestUri: 'http://localhost:63296/WaitingRequestCount', Version: 2.0, Content: <null>, Headers:
|                                      {
|                                      }
| [0.008s] FIXTURE:HttpTestSite Debug: Method: GET, RequestUri: 'http://localhost:63296/WaitingRequestCount', Version: 2.0, Content: <null>, Headers:
|                                      {
|                                      }
| [0.008s] FIXTURE:HttpTestSite Debug: Method: GET, RequestUri: 'http://localhost:63296/WaitingRequestCount', Version: 2.0, Content: <null>, Headers:
|                                      {
|                                      }
| [0.008s] FIXTURE:HttpTestSite Debug: Method: GET, RequestUri: 'http://localhost:63296/WaitingRequestCount', Version: 2.0, Content: <null>, Headers:
|                                      {
|                                      }
| [0.008s] FIXTURE:HttpTestSite Debug: Method: GET, RequestUri: 'http://localhost:63296/WaitingRequestCount', Version: 2.0, Content: <null>, Headers:
|                                      {
|                                      }
| [0.008s] FIXTURE:HttpTestSite Debug: StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.HttpConnection+HttpConnectionResponseContent, Headers:
|                                      {
|                                        Server: Microsoft-IIS/8.5
|                                        Date: Wed, 24 Oct 2018 00:19:08 GMT
|                                        Content-Length: 1
|                                      }
| [0.009s] FIXTURE:HttpTestSite Debug: 0
| [0.009s] FIXTURE:HttpTestSite Debug: StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.HttpConnection+HttpConnectionResponseContent, Headers:
|                                      {
|                                        Transfer-Encoding: chunked
|                                        Server: Microsoft-IIS/8.5
|                                        Date: Wed, 24 Oct 2018 00:19:08 GMT
|                                      }
| [0.010s] FIXTURE:HttpTestSite Debug: 5
| [0.010s] FIXTURE:HttpTestSite Debug: StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.HttpConnection+HttpConnectionResponseContent, Headers:
|                                      {
|                                        Server: Microsoft-IIS/8.5
|                                        Date: Wed, 24 Oct 2018 00:19:08 GMT
|                                        Content-Length: 1
|                                      }
| [0.010s] FIXTURE:HttpTestSite Debug: StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.HttpConnection+HttpConnectionResponseContent, Headers:
|                                      {
|                                        Server: Microsoft-IIS/8.5
|                                        Date: Wed, 24 Oct 2018 00:19:08 GMT
|                                        Content-Length: 1
|                                      }
| [0.010s] FIXTURE:HttpTestSite Debug: 5
| [0.010s] FIXTURE:HttpTestSite Debug: StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.HttpConnection+HttpConnectionResponseContent, Headers:
|                                      {
|                                        Server: Microsoft-IIS/8.5
|                                        Date: Wed, 24 Oct 2018 00:19:08 GMT
|                                        Content-Length: 1
|                                      }
| [0.010s] FIXTURE:HttpTestSite Debug: 5
| [0.010s] FIXTURE:HttpTestSite Debug: 5
| [0.010s] FIXTURE:HttpTestSite Debug: Method: GET, RequestUri: 'http://localhost:63296/WaitingRequestCount', Version: 2.0, Content: <null>, Headers:
|                                      {
|                                      }
| [0.011s] FIXTURE:HttpTestSite Debug: StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.HttpConnection+HttpConnectionResponseContent, Headers:
|                                      {
|                                        Transfer-Encoding: chunked
|                                        Server: Microsoft-IIS/8.5
|                                        Date: Wed, 24 Oct 2018 00:19:08 GMT
|                                      }
| [0.011s] FIXTURE:HttpTestSite Debug: 5
| [0.123s] FIXTURE:HttpTestSite Debug: Method: GET, RequestUri: 'http://localhost:63296/WaitingRequestCo
...

Other tests within that build may have failed with a similar message, but they are not listed here. Check the link above for more info.
This test failed on 2.2.
CC Eilon

This comment was made automatically. If there is a problem contact ryanbrandenburg.
Please use this workflow to address this flaky test issue, including checking applicable checkboxes and filling in the applicable "TODO" entries:

Is this actually a flaky test?

No, this is a regular test failure, fix the test/product (TODO: Link to commit/PR)
Yes, proceed below...

Is this test failure caused by product code flakiness? (Either this product, or another product this test depends on.)

[ ] File a bug against the product (TODO: Link to other bug)
Is it possible to change the test to avoid the flakiness?

Yes? Go to the "Change the test!" section.
No?

[ ] Disable the test (TODO: Link to PR/commit)
[ ] Wait for other bug to be resolved
[ ] Wait for us to get build that has the fix
[ ] Re-enable our test (TODO: Link to PR/commit)
[ ] Close this bug

Is it that the test itself is flaky? This includes external transient problems (e.g. remote server problems, file system race condition, etc.)

Is there is a way to change our test to avoid this flakiness?

Yes? Change the test!

[ ] Change the test to avoid the flakiness, for example by using a different test strategy, or by adding retries w/ timeouts (TODO: Link to PR/commit)
[ ] Run the test 100 times locally as a sanity check.
[ ] Close this bug

No?

Is there any logging or extra information that we could add to make this more diagnosable when it happens again?

Yes?

[ ] Add the logging (TODO: Link to PR/commit)

No?

[ ] Delete the test because flaky tests are not useful (TODO: Link to PR/commit)

This comment was made automatically. If there is a problem contact ryanbrandenburg.
There were 1 failures with about the same error on master at 5:51:58 PM:

ClientDisconnectCallbackStress

Universe changes haven't been propagated. Will keep open until a successful run.

http://aspnetci/viewLog.html?buildId=582911&tab=buildResultsDiv&buildTypeId=Releases_22xPublic_Win2012


bump uvicorn version to resolve websockets security vulnerability

Related Issue(s): #342
Description:
Bumped uvicorn version to 0.17 (from >=0.12, <=0.14) to resolve security vulnerability related to websockets dependency version
PR Checklist:

[ ] Code is formatted and linted (run pre-commit run --all-files)
[x] Tests pass (run make test)
[x] Documentation has been updated to reflect changes, if applicable, and docs build successfully (run make docs)
[x] Changes are added to the CHANGELOG.

tyvm @jclark-indigoag 🙏


Update CharacterController.ts

Hi,
Several small changes for the detection of keyboard keys.
No need for keyCode and fromCharCode
Directly use e.key which allows you to obtain the SPACE, SHIFT and TAB keys and the others (without capital letters). Simpler for users / players.
I put everything in a switch (e.key) because faster.
All that is set function public set***Code(code: number) becomes useless.
In addition it seems to me that keyCode and fromCharCode become obsolete or the sound already.
I test is everything works.

@dad72
Thanks for this.
I didn't realize keyCode and charCode was obsolete
Code is much cleaner now :)
Did this solve you "Z" problem?

In fact as I explained in the comments, the jump happens when I release SHIFT.
I have to face Z + SHIFT + SPACE and release SHIFT and skip this product.
Otherwise I use TAB which locks "run", then only Z and space to jump (it works.)


Gtk3 19 regressions

2 commits to fix some of the broken things in sugar.  Please see the commit log for details.
Neither have been tested against older gtk versions.  Any tests are appreciated.  There should be no visual change after applying the patch.
I have not created a bug to represent the issues that I'm seeing on fedora rawhide, although many appear to be due to Gtk+ issues that also effect gnome.  I'll keep a list here for the time being:

[ ] No padding in the toolbars.  This also happens in other places, eg. GNOME's text selection touch popover (which sugar should add css for, but that's another discussion)
[x] Toolbar colours broken
[ ] Scales are inivisble
[ ] Progressbars are also invisible
[ ] All palettes (very recently) lost their borders
[ ] Lots of random things got borders.  Eg. every spacer in the toolbar.  However, that is also in GNOME (eg. menus)
[x] The home view selector has radio buttons tiled as the background

NOTE:  this was tested against gtk3-3.19.5-2.fc24.x86_64 only/

Gtk3.19/20 is a way bigger cycle that I though.  They have migrated from using GtkXYZ and .xyz selectors to mainly css nodes ("xyz" selectors).  This is going to give future standardisation, but it means a huge change now.
See https://blogs.gnome.org/mclasen/2015/11/20/a-gtk-update/  and for some cool new features to migrate to:  https://blogs.gnome.org/mclasen/2015/12/22/css-boxes-in-gtk/
Anyway, I will have to use a different approach.


Heapster should aggregate custom metrics of core cluster components

The api server and the kubelet now expose custom metrics. These are useful for introspection and performance analysis of the system. Heapster needs to aggregate them and push to monitoring backends.

@vishh so would you add /metrics scraping similar to Prometheus?

Yes. I was planning on having heapster scrape metrics from all the core
system components to begin with.
On Fri, May 1, 2015 at 1:38 PM, Timothy St. Clair<EMAIL_ADDRESS>wrote:

@vishh https://github.com/vishh so would you add /metrics scraping
similar to Prometheus?
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/issues/5637#issuecomment-98230229
.

@vishh Currently heapsters instructions show it to be run as an introspective service inside of k8's but then it will not have access to the scheduler & kcm /metrics endpoints.  Is there a plan to handle this or is the intention to live outside of k8's?
/cc @jayunit100

There is an open issue for that #6428. I plan to address that first and that should make it easy to handle master components.

@vishh @a-robinson Can this be closed?

@bgrant0607 We do not have a mechanism to collect metrics from kube components in a portable manner. So I'd say this issue still needs some attention.

@vishh Why can't Prometheus just be used for that?

Ref #6981

We can. But that would mean that existing users of heapster based pipeline have to run prometheus as well. Given that kube already support collecting metrics exposed in prometheus compatible format, it should be straightforward to plumb those metrics via heapster.

It could be either heapster or prometheus, but neither has been done.


when I run the gui -J:\Python_Projects\stylegan2\stylegan2_pytorch-master\interactive

I get errors related to hard coded paths..
'J:\Python_Projects\stylegan2\stylegan2_pytorch-master\interactive'
where does this file slope.pkl get generated?
UPDATE - did some digging and found zip to download files.
https://www.kaggle.com/greenlime/interactive-star

fixes - https://github.com/GreenLimeSia/GenEdi/pull/2


modbus: support async modbus serial

Support the use of async api in modbus_serial.c. Reason for this extension are crc mismatches happening due to rx data loss when using the interrupt driven api (default modbus implementation) at higher speeds and/or high cpu load. It is recommended to use the async api (implemented in this MR) along with hardware byte counting requiring a timer instance and one PPI channel to achieve a robust communication at high baudrates. A new Kconfig CONFIG_MODBUS_SERIAL_ASYNC_API to enable/disable this feature has been added.
Fixes #71767
Signed-off-by: Anouar Raddaoui<EMAIL_ADDRESS>

@jfischer-no please take a look

@jfischer-no can you please help review when you have time? Thanks!


Test issue non-org member

duplicate of 1

duplicate of #155

duplicate of #377

Duplicate of #376


make step fails on macOS if run from directory that has parent directory with spaces in name

I discovered that if I attempt to follow the build guide (https://meta-toolkit.org/setup-guide.html) from a directory that has a parent directory with spaces in the path, it fails at the final make step.
pwd
/Users/username/OneDrive - My Organization/Documents/KDD_2017/meta_Tutorial

If I then run the following:
git clone https://github.com/meta-toolkit/meta.git
cd meta/
git submodule update --init --recursive
mkdir build
cd build
cp ../config.toml .
CXX=clang++ cmake ../ -DCMAKE_BUILD_TYPE=Release -DICU_ROOT=/usr/local/opt/icu4c
make

I get this output with errors:
-- [download 100% complete]
-- verifying file...
       file='/Users/username/OneDrive - My Organization/Documents/KDD_2017/meta_Tutorial/meta/deps/icu-58.2/icu4c-58_2-src.tgz'
-- Downloading... done
-- extracting...
     src='/Users/username/OneDrive - My Organization/Documents/KDD_2017/meta_Tutorial/meta/deps/icu-58.2/icu4c-58_2-src.tgz'
     dst='/Users/username/OneDrive - My Organization/Documents/KDD_2017/meta_Tutorial/meta/build/deps/icu-58.2/src/ExternalICU'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[  1%] No patch step for 'ExternalICU'
[  1%] No update step for 'ExternalICU'
[  1%] Performing configure step for 'ExternalICU'
checking for ICU version numbers... sed: -: No such file or directory
sed: My: No such file or directory
sed: Organization/Documents/KDD_2017/meta_Tutorial/meta/build/deps/icu-58.2/src/ExternalICU/source/common/unicode/uvernum.h: No such file or directory
configure: error: Cannot determine ICU version number from uvernum.h header file
make[2]: *** [deps/icu-58.2/src/ExternalICU-stamp/ExternalICU-configure] Error 1
make[1]: *** [CMakeFiles/ExternalICU.dir/all] Error 2
make: *** [all] Error 2

Oh fun, this looks like it's actually a bug in ICU! I'll have to test later to see if this is fixed in ICU 59.1 and, if not, we can submit a bug report upstream.


Add NH DES API App

Description
Adding an app to display select data from the public New Hampshire Department of Environmental Services API (namely, water temperature for Lake Winnipesaukee to start).
Copilot

🤖 Generated by Copilot at 44338a3
Summary
📄🌡🛠

This pull request adds a new applet called nh-des-data, which shows the water temperature data from the NH DES API for a user-selected station. It includes the manifest.yaml and nh_des_data.star files that define the applet's metadata, configuration, logic, and rendering.

nh-des-data applet
Shows water temperature
With station code, time

Walkthrough

Create and configure a new applet for displaying water temperature data from the NH DES API (link, link)

Add a manifest file manifest.yaml with the applet metadata and configuration (link)
Add a code file nh_des_data.star with the applet logic and rendering (link)

I have read the CLA Document and I hereby sign the CLA


alwaysShowStatus: false - not working, ⚠ eslint always shows in status bar

The "eslint.alwaysShowStatus": false, setting is not working.
Even when set to false, ⚠ eslint always shows in the status bar at all times for all file types.

This works for me:

Can you provide me with a GitHub repository I can clone that demos what you see.

hi Dirk,
I am getting this error in console log,
it may be related to the reason why the ESLint indicator stays open:
console.ts:134 [Extension Host] Error: command failed with error code 2: error parsing glob '**/.eslintrc*, **/package.json': invalid use of **; must be one path component

    at Object.t.deserializeSearchError (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3815:49)
    at Promise.all.then.t (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4472:372)
    at process._tickCallback (internal/process/next_tick.js:68:7) (at S.<anonymous> (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:685:893))

@dbaeumer I realized the indicator is staying open when I don't have ${workspaceRoot}/package.json
I have a multi-root workspace, with nested packages, local_modules

Looks indeed suspicious. Can you please provide me with a GitHub repository I can clone which demos this. I don't see that exception in my test cases.

It's a large workspace with many nested projects and packages with different eslint scopes, nested inheritance level of plugins being resolved implicitly, a bunch of eslint/lib/api.js's detected
The issue was resolved in part by making an eslintrc at the root level that is compatible with everything. Also by making explicit some plugin scoping.
Without that eslintrc in the root, I get the glob errors. I do not know the meaning of the glob error. But the cause of the error was:
"Having a bunch of nested projects with different eslint setups, but not having a root level eslintrc that resolves all issues"

It's a large workspace with many nested projects and packages with different eslint scopes, nested scope levels of eslint plugins being resolved implicitly, a bunch of eslint/lib/api.js's detected
The issue was resolved in part by making an eslintrc at the root level that is compatible with everything. Also by making explicit some plugin scoping.
Without that eslintrc in the root, I get the glob errors. I do not know the meaning of the glob error. But the cause of the error was:
"Having a bunch of nested projects with different eslint setups, but not having a root level eslintrc that resolves all issues"