Token:???

I’ve installed mi wifi products before, but there is no way I can get a token on this one.
Miio discover or miio discover —sync will show me the purifier 3H (european version) most of the time, but won’t show a token.
Just device id and ip.

I reset the device, connected directly to it:

miio discover
INFO  Discovering devices. Press Ctrl+C to stop.

Device ID: 29325xxxx
Model info: zhimi.airpurifier.mb3
Address: <IP_ADDRESS>
Token: ba7fa416a477fcbbf99cda0f839ac7ab via auto-token
Support: At least generic
then tried to configure it directly:

sudo miio configure 29325xxxx --ssid ssid --passwd pw
INFO  Attempting to configure 29325xxxx

ERROR  Encountered an error while updating wireless
Error was:
Failed updating wireless

I have the same error.  I want help

I've done the same steps as you @paqpaqpaq and I get the exact same errors!
Once I successfully get the token, then re-add the device in Mi Home app and the token is now wrong.
Could somebody help please?

I've done the same steps as you @paqpaqpaq and I get the exact same errors!
Once I successfully get the token, then re-add the device in Mi Home app and the token is now wrong.
Could somebody help please?

The only thing that works (for iOS) is to add the device to the mi home app, in a country where you can see it. So EU devices in an EU country, not mainland China.  Then create a back-up of the iphone or ipad, extract that, look up the connection link of the device in die Xiaomi table of your back-up, en decrypt it in order to get the correct token.
If you reset the device, you need to do this all over again.
You need tot google for the exact step by step tutorial.

Yes. I found a tutorial, it was a bit tricky but it worked!
https://github.com/Maxmudjon/com.xiaomi-miio/blob/master/docs/obtain_token.md#non-jailbroken-ios-users


Reliable steps to break Apps page in 2.5.4

What kind of request is this (question/bug/enhancement/feature request):
bug
Steps to reproduce (least amount of steps as possible):

Perform a new install of Rancher 2.5.4 on K3s 1.19.4+k3s2
Go to the Apps page and add the Kyverno repo: https://kyverno.github.io/kyverno
Go back to the Charts tab

Result:
It sits on a Loading page and never recovers
Other details that may be helpful:
Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): 2.5.4
Installation option (single install/HA): single
Kubernetes: 1.19.4+k3s2

Reproduced the issue on 2.5.4

Add a repository, for test I added charts of rancher. Branch: master
Navigate to charts. The page is stuck in loading.
Error in Console:

TypeError: Cannot read property 'catalog.cattle.io/os' of undefined
    at charts.vue:220
    at t.exports (_arrayFilter.js:18)
    at n.exports (filter.js:44)
    at f.getCompatibleVersions (charts.vue:219)
    at charts.vue:126
    at Array.filter (<anonymous>)
    at filteredCharts (charts.vue:120)
    at _n.get (vue.runtime.esm.js:4479)
    at _n.evaluate (vue.runtime.esm.js:4584)
    at f.filteredCharts (vue.runtime.esm.js:4836)

User is not able to navigate to apps after this.

Reproduced the issue on 2.5.4

Add a repository, for test I added charts of rancher. Branch: master
Navigate to charts. The page is stuck in loading.
Error in Console:

TypeError: Cannot read property 'catalog.cattle.io/os' of undefined
    at charts.vue:220
    at t.exports (_arrayFilter.js:18)
    at n.exports (filter.js:44)
    at f.getCompatibleVersions (charts.vue:219)
    at charts.vue:126
    at Array.filter (<anonymous>)
    at filteredCharts (charts.vue:120)
    at _n.get (vue.runtime.esm.js:4479)
    at _n.evaluate (vue.runtime.esm.js:4584)
    at f.filteredCharts (vue.runtime.esm.js:4836)

User is not able to navigate to apps after this.

The bug is reproduced on v2.5.4
Steps:

add the following repo

https://github.com/banzaicloud/banzai-charts
master

Results:

go to the charts page

The bug is reproduced on v2.5.4
Steps:

add the following repo

https://github.com/banzaicloud/banzai-charts
master

Results:

go to the charts page


Error when trying to replicate

Hello!
I am trying to replicate the code, and following all the steps up to  bash run_finetune_gpt2m.sh 0 entailment 2
Here is the error I am getting:
Traceback (most recent call last):
  File "finetune_lm.py", line 503, in <module>
    main()
  File "finetune_lm.py", line 462, in main
    global_step, tr_loss = train(args, train_dataset, model, tokenizer)
  File "finetune_lm.py", line 128, in train
    outputs = model(inputs, labels=labels)
  File "./envs/py36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
    result = self.forward(*input, **kwargs)
  File "./envs/py36/lib/python3.6/site-packages/transformers/modeling_gpt2.py", line 549, in forward
    inputs_embeds=inputs_embeds)
  File "./envs/py36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
    result = self.forward(*input, **kwargs)
  File "./envs/py36/lib/python3.6/site-packages/transformers/modeling_gpt2.py", line 439, in forward
    inputs_embeds = self.wte(input_ids)
  File "./envs/py36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
    result = self.forward(*input, **kwargs)
  File "./envs/py36/lib/python3.6/site-packages/torch/nn/modules/sparse.py", line 126, in forward
    self.norm_type, self.scale_grad_by_freq, self.sparse)
  File "./envs/py36/lib/python3.6/site-packages/torch/nn/functional.py", line 1814, in embedding
    return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse)
IndexError: index out of range in self

Any idea what I might be doing wrong?
Here is the command:
(py36) -bash-4.2$ bash run_finetune_gpt2m.sh 0 entailment 2
CUDA_VISIBLE_DEVICES=0 python finetune_lm.py --cache_dir ./cache --output_dir=./saved_lm/gpt2_m_entailment --per_gpu_train_batch_size 2 --per_gpu_eval_batch_size 2 --model_type=gpt2 --model_name_or_path=gpt2-medium --do_train --block_size 128 --save_steps 6866800 --num_train_epochs 3 --train_data_file=./dataset_snli/entailment/train.tsv --do_eval --eval_data_file=./dataset_snli/entailment/dev.tsv

Thanks!

check for the ignore_index(-1) or ignore_index(-100) issue in the loss part of the gpt2 model. New pytorch has this modification. I fixed my issue through this.

Thanks @vibhavagarwal5 , that does seem like the issue. @AnnaSou , the code was tested with transformers v2.3.0 where the ignore_index is set to -1. Can you confirm that you are using the same version? If not, you may need to change the ignore_index accordingly (cross_entropy_ignore_index in finetune_lm.py).

@vibhavagarwal5 @SawanKumar28  thank you all for replies! transformers version:
(py36) -bash-4.2$ pip freeze | grep transformers
transformers==2.3.0

I have installed everything from the requirements.
By default, it is cross_entropy_ignore_index=-1 and -100, both do not work.
What else I can check?
Thank you for the help!

Which pytorch version are you using?

@SawanKumar28 I think that it was installed from the requirements file.
(py37) -bash-4.2$ python -c "import torch; print(torch.__version__)"
1.6.0

I am not able to reproduce the issue.
When you make these changes, please delete cache files named cached_lm__ (in dataset_snli/entailment/ for this case).
Could you also share the log from the beginning?

@SawanKumar28  Thank you for the help. Here is the complete log:
`bash run_finetune_gpt2m.sh 0 entailment 2
CUDA_VISIBLE_DEVICES=0 python finetune_lm.py --cache_dir ./cache --output_dir=./saved_lm/gpt2_m_entailment --per_gpu_train_batch_size 2 --per_gpu_eval_batch_size 2 --model_type=gpt2 --model_name_or_path=gpt2-medium --do_train --block_size 128 --save_steps 6866800 --num_train_epochs 3 --train_data_file=./dataset_snli/entailment/train.tsv --do_eval --eval_data_file=./dataset_snli/entailment/dev.tsv
To use data.metrics please install scikit-learn. See https://scikit-learn.org/stable/index.html
10/26/2020 22:42:47 - WARNING - main -   Process rank: -1, device: cpu, n_gpu: 0, distributed training: False, 16-bits training: False
10/26/2020 22:42:47 - INFO - transformers.file_utils -   https://s3.amazonaws.com/models.huggingface.co/bert/gpt2-medium-config.json not found in cache or force_download set to True, downloading to /tmp/tmp5u9jqs7m
10/26/2020 22:42:47 - INFO - transformers.file_utils -   copying /tmp/tmp5u9jqs7m to cache at ./cache/98aa65385e18b0efd17acd8bf64dcdf21406bb0c99c801c2d3c9f6bfd1f48f29.250d6dc755ccb17d19c7c1a7677636683aa35f0f6cb5461b3c0587bc091551a0
10/26/2020 22:42:47 - INFO - transformers.file_utils -   creating metadata file for ./cache/98aa65385e18b0efd17acd8bf64dcdf21406bb0c99c801c2d3c9f6bfd1f48f29.250d6dc755ccb17d19c7c1a7677636683aa35f0f6cb5461b3c0587bc091551a0
10/26/2020 22:42:47 - INFO - transformers.file_utils -   removing temp file /tmp/tmp5u9jqs7m
10/26/2020 22:42:47 - INFO - transformers.configuration_utils -   loading configuration file https://s3.amazonaws.com/models.huggingface.co/bert/gpt2-medium-config.json from cache at ./cache/98aa65385e18b0efd17acd8bf64dcdf21406bb0c99c801c2d3c9f6bfd1f48f29.250d6dc755ccb17d19c7c1a7677636683aa35f0f6cb5461b3c0587bc091551a0
10/26/2020 22:42:47 - INFO - transformers.configuration_utils -   Model config {
"activation_function": "gelu_new",
"architectures": [
"GPT2LMHeadModel"
],
"attn_pdrop": 0.1,
"bos_token_id": 50256,
"embd_pdrop": 0.1,
"eos_token_id": 50256,
"finetuning_task": null,
"id2label": {
"0": "LABEL_0",
"1": "LABEL_1"
},
"initializer_range": 0.02,
"is_decoder": false,
"label2id": {
"LABEL_0": 0,
"LABEL_1": 1
},
"layer_norm_epsilon": 1e-05,
"model_type": "gpt2",
"n_ctx": 1024,
"n_embd": 1024,
"n_head": 16,
"n_layer": 24,
"n_positions": 1024,
"n_special": 0,
"num_labels": 2,
"output_attentions": false,
"output_hidden_states": false,
"output_past": true,
"predict_special_tokens": true,
"pruned_heads": {},
"resid_pdrop": 0.1,
"summary_activation": null,
"summary_first_dropout": 0.1,
"summary_proj_to_labels": true,
"summary_type": "cls_index",
"summary_use_proj": true,
"task_specific_params": {
"text-generation": {
"do_sample": true,
"max_length": 50
}
},
"torchscript": false,
"use_bfloat16": false,
"vocab_size": 50257
}
10/26/2020 22:42:47 - INFO - transformers.file_utils -   https://s3.amazonaws.com/models.huggingface.co/bert/gpt2-medium-vocab.json not found in cache or force_download set to True, downloading to /tmp/tmpnczzt7ar
10/26/2020 22:42:48 - INFO - transformers.file_utils -   copying /tmp/tmpnczzt7ar to cache at ./cache/f20f05d3ae37c4e3cd56764d48e566ea5adeba153dcee6eb82a18822c9c731ec.1512018be4ba4e8726e41b9145129dc30651ea4fec86aa61f4b9f40bf94eac71
10/26/2020 22:42:48 - INFO - transformers.file_utils -   creating metadata file for ./cache/f20f05d3ae37c4e3cd56764d48e566ea5adeba153dcee6eb82a18822c9c731ec.1512018be4ba4e8726e41b9145129dc30651ea4fec86aa61f4b9f40bf94eac71
10/26/2020 22:42:48 - INFO - transformers.file_utils -   removing temp file /tmp/tmpnczzt7ar
10/26/2020 22:42:48 - INFO - transformers.file_utils -   https://s3.amazonaws.com/models.huggingface.co/bert/gpt2-medium-merges.txt not found in cache or force_download set to True, downloading to /tmp/tmp4z9_f_2s
10/26/2020 22:42:48 - INFO - transformers.file_utils -   copying /tmp/tmp4z9_f_2s to cache at ./cache/6d882670c55563617571fe0c97df88626fb5033927b40fc18a8acf98dafd4946.70bec105b4158ed9a1747fea67a43f5dee97855c64d62b6ec3742f4cfdb5feda
10/26/2020 22:42:48 - INFO - transformers.file_utils -   creating metadata file for ./cache/6d882670c55563617571fe0c97df88626fb5033927b40fc18a8acf98dafd4946.70bec105b4158ed9a1747fea67a43f5dee97855c64d62b6ec3742f4cfdb5feda
10/26/2020 22:42:48 - INFO - transformers.file_utils -   removing temp file /tmp/tmp4z9_f_2s
10/26/2020 22:42:48 - INFO - transformers.tokenization_utils -   loading file https://s3.amazonaws.com/models.huggingface.co/bert/gpt2-medium-vocab.json from cache at ./cache/f20f05d3ae37c4e3cd56764d48e566ea5adeba153dcee6eb82a18822c9c731ec.1512018be4ba4e8726e41b9145129dc30651ea4fec86aa61f4b9f40bf94eac71
10/26/2020 22:42:48 - INFO - transformers.tokenization_utils -   loading file https://s3.amazonaws.com/models.huggingface.co/bert/gpt2-medium-merges.txt from cache at ./cache/6d882670c55563617571fe0c97df88626fb5033927b40fc18a8acf98dafd4946.70bec105b4158ed9a1747fea67a43f5dee97855c64d62b6ec3742f4cfdb5feda
#tokens 50257
10/26/2020 22:42:48 - INFO - transformers.tokenization_utils -   Adding [EXP] to the vocabulary
10/26/2020 22:42:48 - INFO - transformers.tokenization_utils -   Adding [EOS] to the vocabulary
#extended tokens 50259
10/26/2020 22:42:48 - INFO - transformers.file_utils -   https://s3.amazonaws.com/models.huggingface.co/bert/gpt2-medium-pytorch_model.bin not found in cache or force_download set to True, downloading to /tmp/tmp4k3y65g0
10/26/2020 22:43:52 - INFO - transformers.file_utils -   copying /tmp/tmp4k3y65g0 to cache at ./cache/4b337a4f3b7d3e1518f799e238af607498c02938a3390152aaec7d4dabca5a02.8769029be4f66a5ae1055eefdd1d11621b901d510654266b8681719fff492d6e
10/26/2020 22:43:58 - INFO - transformers.file_utils -   creating metadata file for ./cache/4b337a4f3b7d3e1518f799e238af607498c02938a3390152aaec7d4dabca5a02.8769029be4f66a5ae1055eefdd1d11621b901d510654266b8681719fff492d6e
10/26/2020 22:43:58 - INFO - transformers.file_utils -   removing temp file /tmp/tmp4k3y65g0
10/26/2020 22:43:59 - INFO - transformers.modeling_utils -   loading weights file https://s3.amazonaws.com/models.huggingface.co/bert/gpt2-medium-pytorch_model.bin from cache at ./cache/4b337a4f3b7d3e1518f799e238af607498c02938a3390152aaec7d4dabca5a02.8769029be4f66a5ae1055eefdd1d11621b901d510654266b8681719fff492d6e
10/26/2020 22:49:44 - INFO - main -   Training/evaluation parameters Namespace(adam_epsilon=1e-08, block_size=128, cache_dir='./cache', config_name='', data_type='tsv', device=device(type='cpu'), do_eval=True, do_generate=False, do_lower_case=False, do_train=True, eval_all_checkpoints=False, eval_data_file='./dataset_snli/entailment/dev.tsv', evaluate_during_training=False, fp16=False, fp16_opt_level='O1', gradient_accumulation_steps=1, learning_rate=5e-05, length=100, local_rank=-1, logging_steps=50, max_grad_norm=1.0, max_steps=-1, model_name_or_path='gpt2-medium', model_type='gpt2', n_gpu=0, no_cuda=False, num_train_epochs=3.0, output_dir='./saved_lm/gpt2_m_entailment', overwrite_cache=False, overwrite_output_dir=False, per_gpu_eval_batch_size=2, per_gpu_train_batch_size=2, save_steps=6866800, seed=42, server_ip='', server_port='', tokenizer_name='', train_data_file='./dataset_snli/entailment/train.tsv', warmup_steps=0, weight_decay=0.0)
input                                             target
pairID
3416050480.jpg#4r1e  Premise: A person on a horse jumps over a brok...                 a broken down airplane is outdoors
2267923837.jpg#2r1e  Premise: Children smiling and waving at camera...  The children must be present to see them smili...
3691670743.jpg#0r1e  Premise: A boy is jumping on skateboard in the...  jumping on skateboard is the same as doing tri...
4705552913.jpg#4r1e  Premise: Two blond women are hugging one anoth...  Hugging one another is the same as showing aff...
4804607632.jpg#2r1e  Premise: A few people in a restaurant setting,...  A few pepople in a restaurant setting is simil...
...                                                                ...                                                ...
2267923837.jpg#0r1e  Premise: A group of four kids stand in front o...    The kid doing tricks on a skateboard must be s...
539750844.jpg#3r1e   Premise: A dog with a blue collar plays ball o...   H...  The children are dirty and barefooted so they ...
7979219683.jpg#2r1e  Premise: A man is surfing in a bodysuit in bea...  The man is in a bodysuit and he is surfing on ...
[174944 rows x 2 columns]
Saving features from  ./dataset_snli/entailment/train.tsv  into  ./dataset_snli/entailment/cached_lm_128_train.tsv_annotated
example:  Premise: A person on a horse jumps over a broken down airplane. Hypothesis: A person is outdoors, on a horse. [EXP] a broken down airplane is outdoors
example:  Premise: Children smiling and waving at camera Hypothesis: There are children present [EXP] The children must be present to see them smiling and waving.
example:  Premise: A boy is jumping on skateboard in the middle of a red bridge. Hypothesis: The boy does a skateboarding trick. [EXP] jumping on skateboard is the same as doing trick on skateboard.
example:  Premise: Two blond women are hugging one another. Hypothesis: There are women showing affection. [EXP] Hugging one another is the same as showing affection.
example:  Premise: A few people in a restaurant setting, one of them is drinking orange juice. Hypothesis: The diners are at a restaurant. [EXP] A few pepople in a restaurant setting is similar to saying diners in a restaurant.
Saving  174944  examples
10/26/2020 22:51:35 - INFO - main -   ***** Running training *****
10/26/2020 22:51:35 - INFO - main -     Num examples = 174944
10/26/2020 22:51:35 - INFO - main -     Num Epochs = 3
10/26/2020 22:51:35 - INFO - main -     Instantaneous batch size per GPU = 2
10/26/2020 22:51:35 - INFO - main -     Total train batch size (w. parallel, distributed & accumulation) = 2
10/26/2020 22:51:35 - INFO - main -     Gradient Accumulation steps = 1
10/26/2020 22:51:35 - INFO - main -     Total optimization steps = 262416
Iteration:   0%|                                              | 0/87472 [00:00<?, ?it/s]
Epoch:   0%|                                                      | 0/3 [00:00<?, ?it/s]
Traceback (most recent call last):
File "finetune_lm.py", line 503, in
main()
File "finetune_lm.py", line 462, in main
global_step, tr_loss = train(args, train_dataset, model, tokenizer)
File "finetune_lm.py", line 128, in train
outputs = model(inputs, labels=labels)
File "/fs/clip-scratch/annasout/transformers/nile/py36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/fs/clip-scratch/annasout/transformers/nile/py36/lib/python3.6/site-packages/transformers/modeling_gpt2.py", line 549, in forward
inputs_embeds=inputs_embeds)
File "/fs/clip-scratch/annasout/transformers/nile/py36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/fs/clip-scratch/annasout/transformers/nile/py36/lib/python3.6/site-packages/transformers/modeling_gpt2.py", line 439, in forward
inputs_embeds = self.wte(input_ids)
File "/fs/clip-scratch/annasout/transformers/nile/py36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/fs/clip-scratch/annasout/transformers/nile/py36/lib/python3.6/site-packages/torch/nn/modules/sparse.py", line 126, in forward
self.norm_type, self.scale_grad_by_freq, self.sparse)
File "/fs/clip-scratch/annasout/transformers/nile/py36/lib/python3.6/site-packages/torch/nn/functional.py", line 1814, in embedding
return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse)
IndexError: index out of range in self
`

In comparison to the default vocabulary of gpt2-medium model, the only additional indices used here correspond to [EXP] token, [EOS] token and the ignore index. Regarding ignore_index, for debugging, you could try setting cross_entropy_ignore_index to 0. Don't use that for actual train/test though.

@SawanKumar28 I have not changed anything in the code, and just run as it is. So, do you think that the problem with indices?

Yes, it seems to be. I am not able to reproduce the issue though. Perhaps, you can share the entire output of pip freeze.
I'll check if I can reproduce it with that.

@SawanKumar28  thank you for the help:
(py36) -bash-4.2$ pip freeze
boto3==1.16.6
botocore==1.19.6
certifi==2020.6.20
chardet==3.0.4
click==7.1.2
dataclasses==0.7
future==0.18.2
idna==2.10
jmespath==0.10.0
joblib==0.17.0
numpy==1.19.2
pandas==1.1.3
protobuf==3.13.0
python-dateutil==2.8.1
pytz==2020.1
regex==2020.10.23
requests==2.24.0
s3transfer==0.3.3
sacremoses==0.0.43
sentencepiece==0.1.94
six==1.15.0
tensorboardX==2.1
torch==1.7.0
tqdm==4.51.0
transformers==2.3.0
typing-extensions==<IP_ADDRESS>
urllib3==1.25.11

Looks like there is a bug when running on CPU. In your log, 10/26/2020 22:42:47 - WARNING - __main__ -   Process rank: -1, device: cpu, n_gpu: 0, distributed training: False, 16-bits training: False indicates it's running on CPU.
Can you try running on a GPU?

I have added a fix for a bug which was overwriting the input tensor when running on CPU. So, it should work on CPUs also now.

Looks like it helped, and I could run it on GPU as well. Thanks for the help!


[RFC] Stop uploading wheels for pre-releases to PyPI

Currently, we are distributing CuPy binary packages (cupy-cudaXXX wheels) via PyPI, however due to the limit on PyPI storage we are removing it periodically (#5667, #4360).
I'm now thinking it is rather better not to upload pre-release wheels to PyPI from the beginning. Instead we can provide an index to download pre-release wheels (which is a collection of links to wheels on GitHub Releases page like https://download.pytorch.org/whl/torch/), so that users can install pre-release wheels like:
# URL is tentative
pip install --pre cupy-cudaXXX -f https://pip.cupy.dev/pre

I guess asking users who want to try pre-releases to specify -f https://pip.cupy.dev/pre option is affordable (comments welcomed!).

I've made a proof-of-concept:
https://pip.cupy.dev/pre/
https://github.com/cupy/pip.cupy.dev


Slightly speed up find

Don't special case when empty: initially point to a static empty bucket instead. Make sure we never accidentally free or write to that memory.

Tried it in the branch 2022-07-faster-find-experiment. Less instructions, but overall slower for some reason.


Card links are broken on main page

Hello,
The links of cards under a list in a board's main page are broken as they do not include the port settings. Portless card links redirect to "url not found" error page of the server. This is as opposed to other links in a board's main page such as in 'add card', 'add list', 'list settings' links as they include the port and work as intended.
Picture below is related.

For port 80
http://localhost
sudo snap set wekan root-url='http://localhost'
sudo snap set wekan port='80'

For port 5000
http://localhost:5000
sudo snap set wekan root-url='http://localhost:5000'
sudo snap set wekan port='5000'

Not recommended, port 5000 sub-url
http://localhost:5000/wekan
sudo snap set wekan root-url='http://localhost:5000/wekan'
sudo snap set wekan port='5000'

More info
https://github.com/wekan/wekan/wiki/Settings


🌐 Add Spanish translation of Deployment - Deta

Hello 👋!,
This Pull Request includes the Spanish translation of deployment/deta.md
This pull request continues with the Spanish translation of #1218

The changes were merged in the PR. Thank you @jovicon for the review.

Thank you @pedabraham and everyone for the reviews! 🍰
As this page was removed from the English version, this is no longer necessary. So I'll close this one now. But thanks for the effort! ☕


Move navbar under player controls

Hi there!
Could someone say how I could move navbar under player controls?
I'm writing Xamarin Android video app and trying implement video player step by step. I am coping every line of code and trying understand what that line means. And what I can't get it is how navbar position on video player view is controlled?
In your example all fine, but in mine the seekbar is hidden by navbar. Please see attached picture for detail, it is self explanatory screenshot.
exoplayer controls
Here is XML code of player view:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
                 xmlns:tools="http://schemas.android.com/tools"
                 android:id="@+id/root"
                 android:focusable="true"
                 android:layout_width="match_parent"
                 android:layout_height="match_parent"
                 android:keepScreenOn="true">

      <com.google.android.exoplayer.AspectRatioFrameLayout android:id="@+id/video_frame"
                                                           android:layout_width="match_parent"
                                                           android:layout_height="match_parent"
                                                           android:layout_gravity="center">

        <SurfaceView android:id="@+id/video_surface_view"
                     android:layout_width="match_parent"
                     android:layout_height="match_parent"
                     android:layout_gravity="center" />

        <View android:id="@+id/shutter"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:background="@android:color/black" />

        <com.google.android.exoplayer.text.SubtitleLayout android:id="@+id/subtitles"
                                                          android:layout_width="match_parent"
                                                          android:layout_height="match_parent" />

      </com.google.android.exoplayer.AspectRatioFrameLayout>

    </FrameLayout>

Maybe there is some property in style that control it?

Please ask questions on StackOverflow.


Asynchronous non-blocking replay

Replay (asyncReplayMessages and asyncReadHighestSequenceNr) now completely non blocking and asynchronous.
asyncReplayMessages uses the asynchronous producer and fetcher as a stream (esentially events by persistence id query).
Partially solves https://github.com/krasserm/akka-persistence-cassandra/issues/137. Remaining blocking calls moved to CassandraJournal. The write side of the journal will be addressed in a separate review.

@patriknw please review

I need to figure out what the issue with test automation is. The tests pass fine on my machine.

great, much needed improvement

I wonder how this will behave when starting many persistent actors at the same time?
The old blocking implementation would limit the number of concurrent calls to Cassandra by the akka.persistence.dispatchers.default-replay-dispatcher, which by default is rather small.
Is there a risk that we send too many  to Cassandra?
We might need to tune the pooling options
Note those limitations: http://datastax.github.io/java-driver/features/async/#known-limitations
We don't want such blocking to happen on the default-dispatcher, so we might have to use a dedicated dispatcher anyway.
I compared the old with this new implementation with 10000 PersistentActors and the recovery time for the last actors are around 60 ms for the old impl, and with this it is around 1500 ms.
Measured in the persistent actors from constructor until RecoverCompleted is received.

Thanks for the performance tests and the inisghts. The first results are not too encouraging. I will have a look into that, there is a couple of areas I can think of that may be causing the performance decrease, connection to Cassandra being one of them.

Updated quite significantly since the last review. The main changes include

Query actor publisher now does not create a separate fetcher actor for queries, but simply acts as an async iterator, managing ResultSet directly and making sure there are no blocking calls.
Cassandra connection pooling settings can now be updated via config

This seems to have major impact on performance compared to previous version in my tests. Recovery time for each actor is significantly lower and the total time to recover all actors (which might be an important metric) is also lower.
I will have a look at some more potential optimisations.

I will review more tomorrow

Thanks Patrik. I will have a look at the rest of your comments and update the code tomorrow too. It would also be very welcome if you could run and share your performance tests suite and compare with my results.

The results of my test that recovers 10000 actors still doesn't look good. It's probably easiest if you try it yourself and add measurements to see where the time is spent.
Here it is: https://github.com/patriknw/activator-akka-cluster-sharding-scala/tree/wip-many-actors-patriknw
You see the changes compared to the standard activator template in this commit: https://github.com/patriknw/activator-akka-cluster-sharding-scala/commit/106d3cd2f55c80dc0694d43ebe38af35c3eda08a
You run it by:

In terminal 1: sbt "runMain sample.blog.BlogApp 2551"
In terminal 2: sbt "runMain sample.blog.BlogApp 0"
That will create 10000 persistent actors with remember enties, i.e. they will be loaded when you start the app again.
ctrl-c in both terminals (to stop the app)
In terminal 1: sbt "runMain sample.blog.BlogApp 2551"
This can will load the 10000 actors.

You can see the log messages of the recovery times, e.g. "recovery completed in 1656 ms, count 6939"

Thanks. I was actually using a very similar test, but for your run the config was accidentally reverted. If you try now you should get much better results.
Out of 5 runs the best ones I achieved were:

For the old code
All recovered in 15757 ms, count 10000
Max 1574 ms
Min 6 ms
Avg 273 ms

For the new code
All recovered in 13689 ms
Max 1426 ms
Min 3 ms
Avg 309 ms

Generally it seems the new code is less reliable with larger variance (most runs are around 500-600ms average), larger average, lower total recovery time for all actors.
You were right - it seems the connection pooling settings are very important for performance. With the current settings the variance of recovery times is still quite large. Many actors recover within 10-30ms, but there are plenty that take 1000-2000ms to recover during high load.
I will investigate other scenarios (more events etc.) and settings that could improve the performance. If you have any ideas what could help please let me know.

Thanks, Martin. I will try again when i get closer to a computer.

@zapletal-martin I have re-run my test and it looks better. Still a lot of variations between test runs, but I think this is a good start. I'm sceptical to some of the connection pool default values.
Do you have any more work planned here, or can we fix the final things, squash and merge? I can move it  to akka after merge.

If I am not mistaken the concept is correct - the code never blocks, it does not make any unnecessary database calls or checks.
There is certainly some more work planned. That includes 1) more monitoring, profiling of both the code and cassandra. I have tried a lot of things including various settings, using vars instead of immutable state etc. It seems that the total recovery time already improved (I assume due to more parallelism) and the performance overall is reasonable. But I still think it can be improved. 2) more unit tests and potentially refactoring.
But we can merge the code now to be able to start building on top of it and split the remaining work into multiple smaller reviews.

Let me know what you think and I can squash the commits.

good, fix the poolTimeoutMillis and squash, please

@patriknw if I'm not mistaken your 10000 actors test only replay one message each, which might not be representative of a 'common' workload (if that exists).
For instance in our own case we recover several thousands cluster sharding entries with approximately 200 to 400 events each producing a high load (it takes several minutes to reload all from scratch, with tons of persistence failure in between).

@masterzen I have done performance testing of such scenarios too. I have tried e.g. 10000 actors with 1 event each, 10000 actors with 1000 events each etc. The results are actually quite promising and the load is being handled reasonably. I will post some results compared to the blocking implementation if that is of interest.

@zapletal-martin I'm greatly interested in your benchmarks and findings!
I have never been fond of the current implementation which lacks control over concurrency (in our case, it looks like read request queueing happens in cassandra which ultimately times out and the retry only happens because the Persistence layer restarts the actor).

@zapletal-martin please squash


Handle dynamic JSON keys

The GameStatsFantasy endpoint returns dynamic JSON keys  mixed with static JSON keys for teams and players.
Create elegant way to parse these values.

Added alongside recent bugfixes -
https://github.com/rithms/lolesports-kit/commit/767e4d62cb175d789fe0c14a544e42780b2dbfcb


Introduce certificate pool structure and remove multiple encode/decode process

This PR introduce certificate pool structure which is mainly used to hold Certificates.
I want to decouple PEM operations from Certificates pool ones.
Deduplication option for certificate pool was also introduced - deduplication process can be optionally disabled.
It is related to #305

/ok-to-test

Let me fix typos!

@arsenalzp I have a big refactoring incoming: https://github.com/cert-manager/trust-manager/pull/378. It would be nice to get this PR merged soon. 😉

@arsenalzp I have a big refactoring incoming: #378. It would be nice to get this PR merged soon. 😉

Hello,
Can it wait until this evening?

Hello, Can it wait until this evening?

Sure, there is no urgency. I just have some extra time for open source work this week.

Hello, Can it wait until this evening?

Sure, there is no urgency. I just have some extra time for open source work this week.

Done

OK, I will re-write it with receivers.

@arsenalzp Do you have the energy to rebase and resolve the current conflicts? Sorry, but we had to get the serious issue merged and released. 😸

@erikgb @arsenalzp I rebased the PR and applied the code suggestions.

/approve


Add DistributedComplianceLedger

Added file with DCL intro and FAQ

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@jcps07 can you move the md file into a new folder under content called Guides

@Vyrastas Could you do an editorial review on this guide please, the preview is at https://d1teub3jrrfss6.cloudfront.net/pr-24/guides/distributedcomplianceledger/

approved


Analyzer: Inferred type of variable should be taken from initializing expression

Consider the following program:
typedef F<X> = void Function<Y extends X>();
F<X> toF<X>(X x) => null;
class A<X extends num> {}

A sourceTop;
var fsourceTop = toF(sourceTop);

main() => print(sourceTop);

Storing the above in n030.dart, dartanalyzer version 2.1.0-dev.5.0 gives the following response:
  error • A value of type '<Y extends A<num>>() → void' can't be assigned to a variable of type '<Y extends dynamic>() → void' at n030.dart:6:18 • invalid_assignment

The message reveals that we are attempting to assign a value whose static type is a function type (so it can't be the actual argument being assigned to the formal parameter of toF, it can only be the value of toF(sourceTop) being assigned to fsourceTop), and that fails.
But this means that toF receives the inferred actual type argument A<num> (as it should), and hence the static type of toF(sourceTop) is void Function<Y extends A<num>>(), but, somehow, the variable fsourceTop has been given the inferred type annotation void Function<Y extends dynamic>().
For an instance variable we could infer the type annotation from declarations in superinterfaces, but this is a library variable and hence there is no such information available.
So I would expect the inferred type of such a var variable to be the same as the static type of the initializing expression. If that is the case then we would never get an error because of a type mismatch.
I've labeled this as a bug because I assume that we would never want to infer the type annotation for a library variable as any other type than the static type of the initializing expression.

I'm looking into this now.

Whoops, it looks like github erroneously auto-closed this issue.  Still working on it.

Unassigning myself because I’m not actively working on this issue right now.

When I make the above program null-safe (and hopefully do not change the nature of the program...), neither the CFE nor the analyzer find any problems:
typedef F<X> = void Function<Y extends X>();
F<X> toF<X>(X x) => <Y extends X>() {};
class A<X extends num> {}

A sourceTop = A();
var fsourceTop = toF(sourceTop);

main() => print(sourceTop);


Addition of DiGCN and DiGCN_Conv

Hello. As talked in #1847 . I've added digcn_conv.py(message passing) and digcn.py(model) respectively. Have a look and tell if the structure is fine, documentation needs to be done. I thought I'll show you a look onto the structure first.
Need for a Model
The reason for having an encoder style model is that the major parts of the paper are:

Addition of proximity matrices
Fusing the hidden states in each proximity,(refer nn\model\digcn.py)
Major parts of the code is taken from DiGCN Github .
If the structure works for PyG, I'll add documentation and sanitize the arguments. Thanks.

Looks good to me :)

Good then, I'll add documentation and will update. Thanks.


AttributeDict centralization

There are (behaviorally) different versions of AttributeDict in looper.models and here in pypiper. Since they're meant to accomplish the same things and be used in similar ways, it would be great to share a single implementation. Maybe this will be simplified with the migration of some of the core looper classes to a more general repository.

Yeah, this has been on my radar for awhile.
for now let's just leave them duplicated since it's working and I don't want to open this box quite yet.
long term I think the answer is that AttributeDict will reside in models, and both looper and pypiper will import it from models. So this will happen at the models/looper division.

@vreuter what do you think of making AttributeDIct a separate project and putting it on pypi?
Actually, looks there someone else has already done something similar... https://pypi.org/project/attributedict/
And here's a more popular, older project that does the same thing: https://pypi.org/project/attrdict/
any chance to we can use those...?

related to #68

Definitely in favor of centralizing. I think the implementation used in this project may have slightly different default behavior regarding things like the "identity" return for missing attributes (since, e.g., requesting samtools and returning "samtools" is more likely to make sense in the pipeline context than in the project context.) That's just something that we should be aware/careful of when this is done.
Also fine with moving to an external implementation like you suggest. There are some custom behaviors like the identity thing just mentioned, and probably some others like path expansions that are automatic for us that we'd need to make accommodating changes for, or extend the functionality offered by an external project's data types.

Closed in favor of #122


modernise bus route fields

not sure if any of these are new tags that need to be taken upstream but, i see no option to put contactless as an option? or wifi (and by extension the ssid), air conditioning or charging capabilities (USB, mains, that sort of thing). these are all features my local buses have that i imagine people would find useful and by extension should thus be valid fields for bus routes.

Some of these are probably existing tags, but a good thing to do would be reach out to the tagging mailing list to ask.
Also, you can can use any tags that you like in the all tag section of iD - you aren't limited by the ones that appear as sidebar fields, which are really only for the most commonly used tags.


JAVA example

I am new to SimpleElastix and I was wondering if there is a simple JAVA example that uses SimpleElastix. Thanks

There is a small example here. Is there anything you're after in particular?

Hi Alex, was the example useful? FYI, in case you are working on a Mac, there is an issue with the SimpleITK Java build as mentioned in #25 which will be fixed in the next release. A workaround is referenced in that issue.

@kaspermarstal Thanks for the great information! I have not been able to install it to my project (Cmake issues). I have a couple of question since I am kind of new:

In the JAVA example how can I get the registration transformation back? I want to apply the transformation on a mask.
What registration methods can I use with SimpleElastix?

Thanks!
By the way I am running Windows so I should not have issues.

Np!
You can warp a mask with the transformix class. Bear in mind I have not run the following code but it looks something like this:
org.itk.simple.ImageFileReader reader = new org.itk.simple.ImageFileReader();
reader.setFileName("movingMask.nii");

org.itk.simple.SimpleTransformix transformix = new org.itk.simple.SimpleTransformix();
transformix.setInputImage(reader.execute());
transformix.setTransformParameterMap(elastix.getTransformParameterMap());

org.itk.simple.Image resultMask = transformix.execute()

As for the kinds of registration methods supported, many of the most common intensity-based registration methods are included. For metrics you have mean squares, normalized correlation, several versions of mutual information, variance over last dimension and a couple of regularization terms such as shape bending energy penalty, rigidity, mass-preserving penalty. These can be combined so you run multiple metrics in the same registration (e.g. mutual information and bending energy penalty). For transforms you have translation, rigid, affine, bspline and thin plate spline and for optimizers you have several quasi-newton methods and several gradient descent methods. However, most people (myself included) generally use the adaptive stochastich gradient descent optimization method. There are also several strategies for interpolation, sampling and multi-resolution schemes. The methods are explained in more detail in the SimpleElastix documentation and in the elastix manual. There are no diffeomorphic log-demons or SyN methods etc.
If it all seems a bit daunting, you can use the preconfigured registration method that uses conservative parameters that work well in many cases. To use this method, simply omit passing a parameter map. You can use this as a starting point for configuring the registration procedure for your application. You can see the preconfigured parameters like this:
org.itk.simple.SimpleElastix elastix = org.itk.simple.SimpleElastix();
org.itk.simple.PrettyPrint(elastix.GetParameterMap());

Hope this helps.

@kaspermarstal Great help and explanation! I am also probably troubling you with building errors I get on windows and mac. Unfortunately I haven't been able to build the java wrapper to start working with SimpleElastix.

This is a known problem with the SimpleITK Java build. I have submitted a patch to SimpleITK which is included in the next SimpleITK release, after which it will be merged back into SimpleElastix.

Patch has now been merged into SimpleElastix.

Is there an easy way to extract the displacement field (i.e. same dimensions as the images but for multiple directions) out of the registration results? Say out of a B-Spline-based non-rigid registration?


Allow product with one letter prefix

Signed-off-by: Oleksandr Slynko<EMAIL_ADDRESS>

Yep that makes sense. Thanks Alex!


Add tracing for channel pooling/authentication

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/1980/
Test PASSed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/1981/
Test PASSed.

@ggezer can we also improve this error message so that we can see which worker the client is trying to authenticate with?
alluxio.exception.status.UnavailableException: Waited 30000 milliseconds (plus 161765 nanoseconds delay) for alluxio.core.client.runtime.com.google.common.util.concurrent.SettableFuture@d4602a[status=PENDING]
at alluxio.security.authentication.SaslStreamClientDriver.start(SaslStreamClientDriver.java:126)
at alluxio.security.authentication.ChannelAuthenticator.authenticate(ChannelAuthenticator.java:140)
at alluxio.grpc.GrpcChannelBuilder.build(GrpcChannelBuilder.java:212)

@aaudiber Stream driver doesn't know the target host. However it should be easy to deduce that with current tracing. SaslStreamClientDriver::start traces the channel ID, and ChannelAuthenticator::authenticate() traces both channel ID and target.

@ggezer If this error occurs in production, it will be important to know which worker we're having an issue with. Can we catch the exception in a place that does know the target host, and add the information there?

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/1985/
Test PASSed.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/1986/
Test FAILed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/1987/
Test PASSed.

@ggezer please cherry-pick to branch-2.0-preview

@aaudiber CPed to RC1 branch.


Pull Requests

Incomplete.
Checklist:
:heavy_check_mark: Registration form
:heavy_check_mark: Project Euler Baby Steps
:x: GitHub Pages with Project Euler username
:heavy_check_mark: 50 :star: GitHub repository contribution
:heavy_check_mark: bahasa Indonesia Wikipedia user page
:heavy_check_mark: bahasa Indonesia Wikipedia content edit
:heavy_check_mark: StackOverflow account with at least one badge
:x: Besut Kode markdown Pull Request

You haven't mentioned Project Euler and your PE username on your GitHub Pages.
Your markdown edit isn't correct (see https://github.com/BesutKode/BesutKode.github.io/pull/159/files?short_path=4d5704e#diff-4d5704e09728aec131774db2621ee63b). Please edit it to follow the correct format.

Please submit a new pull request once more, after re-reading http://wikimedia-id.github.io/besutkode/university-modules-id.html and completing the tasks.
If you need help, ask on the Telegram chat group "Besut Kode Universitas".


Remove "Defined in ..." from LSP hover

Closes https://github.com/godotengine/godot-proposals/issues/5381
Godot's LSP already provide functionality for jumping to a variable's definition, so it's redundant to put the definition location in hover stuff(/provider??)
3.x: Soon:tm:

Crap, I accidentally deleted the branch. Do I need to make a new PR, or can I create a new branch with the same name?

Accidentally deleted the branch while cleaning up my fork. Sorry.

CC @adamscott

I don't think the linked proposal gives a good reason to remove it. I don't see any harm in providing this info through hovering as well and depending on the workflow of some people it might be helpful.
The clangd server for example also provides this info:

I think we could learn some things from them when it comes to presentation, e.g. making it appear a bit smaller and using a separator to put it apart from the documentation, maybe remove the link to make it less standout. But removing it altogether, not sure about that.

I think we could learn some things from them when it comes to presentation, e.g. making it appear a bit smaller and using a separator to put it apart from the documentation, maybe removing the link to make it standout less. But removing it altogether, not sure about that.

Good point. Considering that this PR is from two years ago, I'm not even sure it was a great idea now that I've had some more experience around this stuff.


[Bug]: Type errors in startDate and endDate

There is a problem with startDate and endDate coming from MapComponent. This discrepancy came about after the DatePickers.tsx implementation because the date pickers can be set null.
To reproduce

Go to MapComponent
Scroll to <Controls>
Check it's props setStartDate and setEndDate
See the type error

Expected behavior
This shouldn't cause any problems when the types are set correctly or handling the case when the value is null.
Additional context
Probably a good and simpler suggestion is to use React's Dispatch-object like: Dispatch<SetStateAction<Dayjs>> or Dispatch<SetStateAction<Dayjs | null>> rather than setEndDate: (v: Dayjs | null) => void; in the type definition.

This is now fixed using Dispatch as the setter function's type and Dayjs | null as the value's type everywhere in the code where this state is used.


Added iter function to Song.py

Added an iterator function to Song.py to enable
easy iteration through song attributes.
Signed-off-by: Mathew Bramson<EMAIL_ADDRESS>

Excellent!!

Feel free to update the readme if want your name listed in the contributors section.

Cool. I'm using pyItunes to port my iTunes data into a pandas dataframe. Probably outside the scope of pyitunes to have a dataframe function, but having a to dictionary function for the song item makes porting into pandas extremely easy. I've got an elegant one written, do you agree that soemthing like that fits the scope of the project? I'll post to my github fork tonight what I mean.

Very neat - the dictionary function will certainly be useful for others!


Question: suppress msg coming from a mapping done in other mode on leader key

I've made a binding to Space key in insert mode that also acts like my leader key. Because of this it gives me a message:

I'm not entirely sure how to solve this. I tried putting custom insert mode mapping in which key config, that didn't worked. And which_key_ignore didn't worked for me either.
My current minimal which-key config:
local wk = require("which-key")

wk.setup {
	triggers = {"<leader>"},
}

wk.register({
	-- mappings
}, {prefix = "<leader>"})

That conflicting mapping which I've defined exists before which-key's setup call.

^ This will also happen if someone will use lexima.vim as it also keybinds on space.
I believe this issue is related to https://github.com/folke/which-key.nvim/issues/73. If that's the case we can close this one.

It's definitely related to #73, but in this case, the warning should not show.
I updated the code to only show that warning in NORMAL mode.
Let me know if you have any more issues!

Yep, that commit fixes it, thanks!


feat: add ndarray/base/assert/is-boolean-data-type

Resolves: Subtask of #2547
Description

What is the purpose of this pull request?

This pull request:

This PR will add ndarray/base/assert/is-boolean-data-type assert package.

Related Issues

Does this pull request have any related issues?

This pull request:
Questions

Any questions for reviewers of this pull request?

No.
Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.
Checklist

Please ensure the following tasks are completed before submitting this pull request.

[x] Read, understood, and followed the contributing guidelines.

@stdlib-js/reviewers

Once #2550 gets merged. CI will be green.


[Feature] Upload all files in a folder directly to s3 server using filepicker

folder upload
upload the entire folder in s3 server.

Hi @namrata-soni 👋 Thanks for the feature request. We'll have a look and get back to you on this.


Include impact label family, handle archived repo

Two changes:

For https://github.com/giantswarm/giantswarm/issues/20734 we add the impact/* label family.
The script now handles archived customer repositories gracefully.

Thank you @marians!


Is there a way for not validating a struct in another struct

Package version eg. v8, v9:
v9
Issue, Question or Enhancement:
Hello, I have a struct named employee. Employee contains a struct named User. When I try to add Employee, I get an error because it looks at the tags in the validate User to see that there are no places marked as required. I can't use omitempty tag because this struct being used with another pages and this columns cannot be null.
But in my case, user, user, username, password and roleid parts should not be sent with employee.
Is there a way to accept another struct in a struct without validating it?
Code sample, to showcase or reproduce:
type Employee struct {
	gorm.Model   `structs:",flatten"`
	CompanyID    uint
	Name         string `gorm:"not null" validate:"required"`
	Surname      string `gorm:"not null" validate:"required"`
	Phone1       string `gorm:"not null;size:13" validate:"required,phone,len=13"`
	Phone2       string `gorm:"not null;size:13" validate:"phone,len=13"`
	Email        string `gorm:"unique_index;not null;size:50" validate:"required,email,min=6,max=50"`
	User         *user.User
}

type User struct {
	gorm.Model `structs:",flatten"`
	Username   string `sql:"index" gorm:"unique_index;not null;size:50" validate:"required,email,min=6,max=50"`
	Password   string `gorm:"size:64;not null;" validate:"required,len=64"`
	IsActive   bool
	FailCount  int
	LastLogin  *time.Time
	RoleID     uint `gorm:"not null" validate:"required"`
	CompanyID  uint
}

// BeforeSave validates User model
func (u *User) BeforeSave() (err error) {
	err = validator.Validate.Struct(u)
	return
}

Yep, multiple ways in the Doc you can use:

https://godoc.org/gopkg.in/go-playground/validator.v9#hdr-Skip_Field
https://godoc.org/gopkg.in/go-playground/validator.v9#Validate.StructExcept
https://godoc.org/gopkg.in/go-playground/validator.v9#Validate.StructFiltered
https://godoc.org/gopkg.in/go-playground/validator.v9#Validate.StructPartial

I think the first is what you're looking for given your scenario; let me know if that helps :)


Minor bug: Unable to change Builder mode without Space card loaded

Put a space card in a builder, change the mode (for example, to Collect).
Swap out the space card for a quarry card.
The mode remains on Collect and cannot be changed unless the space card is put back in.
It's a minor issue obviously but I think it would be preferable if the mode was auto-set to Move on the insertion of a quarry card.

Well the mode is not used with a quarry card so this is not really an issue I think?

I made a second builder, infused it and was planning to set it up as a collector (thus had set the mode to Collect). I then decided to use the infused one for my main quarry. I swapped out the builders and stuck the quarry card in the infused builder but it wasn't digging. Took me a little while to figure out that it was still set to Collect mode.
You're right. It's a reasonably uncommon set of circumstances that leads to this issue being encountered. Perhaps I should've labelled this ticket as "Very Minor bug" :-) Thanks for the quick reply!

That's weird. Are you sure it is because of that because the quarry shouldn't look at that. But I'll check it out in any case

I admit that I'm new to the builder so it's very possible that operator error is to blame. However I'm pretty sure that all settings remained the same between having the mode set to Collect vs Move. Once in Move, I heard the telltale sound of blocks being broken.

Well I don't see how this is possible. The mode isn't even used when a quarry card is inserted. I double checked the code and no idea what the problem could be. So perhaps you forgot to set redstone mode at some point or something? No idea otherwise...

OK. I'll assume it was operator error. Thanks for the quick responses!


Capability to differentiate value from displayed text

Your library is cool but maybe due to the habit of <select><option> couple for sending identifier, I would like to use a value that differs from the text when event 'awesomplete-selectcomplete' is fired.
Another reason could be the fact, that I want to avoid encoding issue. With accents (I'm French), I don't want to bother about encoding client/server when sending info (although nowadays, everyone use UTF-8, in my dreams...) so an identifier is better IMO.
I don't know if it's a design choice but I didn't see any ways to achieve it.
To try to bypass the lib behaviour cleanly, I created the following example below
<input id="myinput" list="mylist" />
<datalist id="mylist">
	<option value="a">Ada</option>
	<option value="b">Java</option>
	<option value="c">JavaScript</option>
	<option value="d">Brainfuck</option>
	<option value="e">LOLCODE</option>
	<option value="f">Node.js</option>
	<option value="g">Ruby on Rails</option>
</datalist>

<script>
document.querySelector('#myinput').addEventListener('awesomplete-selectcomplete', function(evt){
  console.log(this.value);
})
</script>

Unfortunately, it echoed Python but never a when choosing the first option.
I could always do the below really dirty solution but I would prefer to avoid it.
What is the way to go for my requirements if any?
Thanks for your input.
document.querySelector('#myinput').addEventListener('awesomplete-selectcomplete', function(evt) {
  var lib = this.value;
  var val = Array.prototype.slice.call(document.querySelectorAll('#mylist option')).filter(function(option) {
    if (option.text == lib) {
      return true;
    };
    return false;
  })[0].value;
  console.log(lib, val);
});

:+1:
I had the same problem when trying to implement the select box functionality... I resolved using your "dirty" solution, but I wonder if there could be a better way.
Can we save option values inside list array?

Yes, there definitely should there be a better way. At the very list, we should utilize the label property in option, when the list is specified via a <datalist>.

:+1: I would really like to be able to do this too.

For label advice, it seems support with both label and value is inconsistent between browsers e.g this demo with result between browsers like below http://www.alsacreations.com/xmedia/doc/full/datalist-rendu.png
Although above link to screenshot was done with older browsers, differences remain (tried with FF, Chrome and Opera).

So, when the user selects the autocomplete suggestion, does the displayed text get filled in or the value?
If it’s the latter, it’s super easy to implement. If it’s the former, I have no idea how to implement this with inputs…

Hi there,
:+1:  for this one, I'm having the same problem. I have a URL in a 'data-link' attribute (ie http://img.saika.li/a3EG) and needs to catch this attribute when an  is selected.
Unfortunately, the event only returns the input with :
	console.log(e);
});```

I really hope that'll be implemented one day !

Anyway, big thanks for the plugin :)

@psaikali I have no idea what you just said. I don’t understand, are you answering my question above? If so, what's the answer? And what do you mean with the event? What should be implemented one day?
Lather, rinse, repeat please.

Sorry @LeaVerou. I was just saying "+1" to support the need for this feature ;)
Just used the same trick as +ThomasG77 above.
	var $searchform = $('#header .searchform .s');
	var $searchdatalist = $('#header .searchform datalist option');

	$searchform.on('awesomplete-selectcomplete', function(e){
		var input_value = $(this).val();

		var selected_el = $searchdatalist.filter(function(){
			return $(this).text() == input_value;
		});

		var selected_val = selected_el.length ? selected_el.val() : false;

		if (selected_val) location.href = selected_val;
	});

Maybe something like:
if (list && list.children) {
				this._list = slice.apply(list.children).map(function (el){
					return el.innerHTML.trim();
				});
				this._values = slice.apply(list.children).map(function(el){
					return el.value;
				});
			}

So reference to the alternative values is not lost while setting up the list. Although it would duplicate the list when alternative values are not used, not to mention the extra traversal of the original list.
And access to said alternative values would be something like:
this._values[this._list.indexOf(text)]

Same here: out of habits of writing selectelements, i created my datalist populating option with value attributes. It would be nice to be able to send the option attribute "value" instead of the option node text.
A possible line of action could be using a hidden input field that would be appended to the form?
I'm in a tight deadline right now so I won't do it, I've switched to a select box for now.

A change suggestion that solves this, while making the library more well rounded:
I took a different approach, but it got to a dead end which I think can be easily relieved with a change to the library. My approach does not imply using on hidden attributes or such. I override item, filter, and sort like follows below, thus essentially handling a data object argument rather than text.
That works for all mentioned hook functions.
  var inputBar = document.getElementById('inputBar')
  new Awesomplete(inputBar, {
    minChars: 1,
    maxItems: 100,
    list: nodes,
    item: function (node, input) {
            let suggestedElem = document.createElement('li')
            suggestedElem.appendChild(document.createTextNode(node.data.kind + ' ' + node.data.name + ' ' + '(' + node.id + ')'))
            return suggestedElem
          },
    filter: function (node, input) {
              return node.data.name.toLowerCase().indexOf(input.toLowerCase()) > -1
            },
    sort: function compare(a, b) {
            if (a.data.name < b.data.name) return -1
            if (a.data.name > b.data.name) return 1
            return 0
          },
    replace: function(node) {
      fireGraphDisplay(node.id) // fails.... because node is the text here, unlike with the other hook functions
      this.input.value = node.data.name // same....
    }
  })

But it only fails with replace which operates "too low" in passing around the display text rather than the data object. I think this can be changed to passing an object to replace rather than the result of item, which may seem to be how it works now (admittedly, haven't examined the source code). If that change is made, then one would be able to work with the component with greater abstraction, while also allowing to do what the initial poster described, in a clean manner.
Is this an api change? I think (?!!) all existing code that assumes the argument to be a string, should still work.
Forgot to mention, I second this is a great library.

I came up with a similar solution:
my-file.js
    // sample data
    var targetCountryInput = document.getElementById('target-country-input');
    var countryNames = [{iso: "AFG",name: "Afghanistan"},{iso: "AGO", name: "Angola"}];
    new Awesomplete(targetCountryInput, {
        list: countryNames,
        autoFirst: true,
        filter : function(text, input) {
            return Awesomplete.FILTER_CONTAINS(text.name, input);
        },
        item: function (text, input) {
            return Awesomplete.$.create("li", {
                innerHTML: text.name.replace(RegExp(Awesomplete.$.regExpEscape(input.trim()), "gi"), "<mark>$&</mark>"),
                "data-iso": text.iso, // encode my custom field into the generated LI
                "aria-selected": "false"
            });
        }
    });

Two things happened here:
Override filter to return the name field of your data
filter : function(text, input) {
            return Awesomplete.FILTER_CONTAINS(text.name, input);
        }

In item override, encode the desired field you want into the generated LI as a "data-*" attribute.  In this case, I did:
"data-iso": text.iso, // encode my custom field into the generated LI

This gets you to where @matanster got in the post above.
At this point, you do have to modify Awesomplete's select method, like so:
awesomplete.js
select: function (selected) {
		selected = selected || this.ul.children[this.index];

		if (selected) {
			var prevented;

			$.fire(this.input, "awesomplete-select", {
				text: selected.textContent,
				preventDefault: function () {
					prevented = true;
				}
			});

			if (!prevented) {
				this.replace(selected.textContent);
				this.close();
				$.fire(this.input, "awesomplete-selectcomplete", selected.dataset);  // add new selected.dataset parameter
			}
		}
	},

The update happens on line 208:
$.fire(this.input, "awesomplete-selectcomplete", selected.dataset);  // add new selected.dataset parameter

This simply passes the dataset object along to the awesomplete-selectcomplete event.  Since it's an addition to the code (and using what's already supported by $.fire no less), it would not break anything else.
Then back in my-file.js, do this:
targetCountryInput.addEventListener('awesomplete-selectcomplete',function(e) {
    var selectedCountryName = e.target.value;
    var iso = e['iso']; // got my iso back.
});

Thanks, will take this into consideration next time around.

it would be nice if it just worked with things correctly.
Awesomeplete currently uses the content of the option element, instead of its value, the w3c spec only actually specifies the value. Nothing about the text content of the option element/tag.
https://www.w3.org/wiki/HTML/Elements/datalist
If everything worked "correctly", the content of the value would be submitted by my forms, but it instead of the value attribute, Awesomeplete sends the text content of the option tag.
If my data list looks like
<datalist id="list__employer">
<option value="1">Effertz, Roberts and Feest</option>
<option value="2">Rath and Sons</option>
<option value="3">Altenwerth-Nikolaus</option>
<option value="4">Wiegand-Tromp</option>
<option value="5">Wunsch-Aufderhar</option>
<option value="6">Conn PLC</option>
<option value="7">Mante-Schinner</option><option value="8">Altenwerth, Stroman and Kessler</option><option value="9">Batz, Baumbach and Konopelski</option><option value="10">Kassulke-Casper</option></datalist>

Agree that if the user provides a select menu or datalist with different values and labels, awesomplete should take advantage of that.

Tell me please, when you planing the commit?

@nixprosoft There is an opened PR and ongoing discussion with @LeaVerou on it. Once this PR is merged, there will be support for having value different from displayed text.
After that I plan adding support for initialization from <datalist>.

To everyone interested in differentiating value from displayed text, aka key/value feature, aka array of objects feature.
The code is ready and it's almost 100% backward compatible. To ensure everything working fine for you we need your help with testing it in the wild before it's released. See this PR: Separate label/value for each suggestion in list

Separate label/value is landed #16866
It is also possible to initialize list with separate label/value via <datalist> or <ul>.
Read about different label and value at the end of Basic usage section and about new data method at the end of Extend section.


K8s: WebRTC over TCP

描述(Description)
WebRTC over TCP protocol provides more stable stream. Maybe consider add optional change udp to tcp?
https://github.com/AirenSoft/OvenMediaEngine supports WebRTC over TCP and it's working too much reliably

SRS版本(Version): SRS/4.0.177(Leo) - Docker build

期望行为(Expect)
Better stability in mobile enviroment.

Why not use HLS over TCP, or HTTP-FLV over TCP, or HTTP-TS over TCP？

It provides too much latency

Dup to #2852


Update Model Registry videos

    The video included in this page (https://www.youtube.com/watch?v=szzv4ZXmYAs) must be updated, because path to dvc.yaml is missing in the video and the outdated artifacts.yaml is mentioned. @aguschin are there any other changes needed in the video?

    Also, stages now are split into multiple columns -- models table look different.

Originally posted by @tapadipti in https://github.com/iterative/dvc.org/pull/4638#discussion_r1241909995
    The video included in this page (https://youtu.be/Vrp1O5lkWBo) must be updated, because the Use --force … checkbox is missing in the video. @aguschin are there any other changes needed in the video?

    models table and MDP have changed a lot, so it will be easier to re-record it completely I guess.

https://github.com/iterative/dvc.org/pull/4638#discussion_r1241917005

Can we close this when we upload the new video?

@dberenbaum There are a few different MR videos in the docs - an overall one, as well as multiple short ones for specific model actions. The overall video can be replaced by the new one. And I think we can take short clips from the new video to replace the model action videos, or remove those videos altogether and just refer to the single overall video. Let me take a look once the new video is up. Then, we can close this issue.


ToCode Solution: תרגול תחביר

Thanks for your first submission!
Please not the "All checks have failed" and the link to "Details" under it. That leads to results of the system that checks your submission automatically against the spec. This indicates there were two exercises that failed.
You can run the spec on your computer by typing in
python spec.py
and you can run it for the individual files using
python spec.py TestEx1
python spec.py TestEx2
...

I've run all the files and they all passed the tested..
Can you explain me why they fail in your tests ?

I don't know what could cause the same test to pass on your computer and fail on both the Travis-CI server and my machine. Could you please verify that the version you have on your computer that passed all the tests is the same that you have submitted?

I've tested them manually..
On Nov 25, 2016 12:01 PM, "Gabor Szabo"<EMAIL_ADDRESS>wrote:

I don't know what could cause the same test to pass on your computer and
fail on both the Travis-CI server and my machine. Could you please verify
that the version you have on your computer that passed all the tests is the
same that you have submitted?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tocodeil/python-course-examples/pull/4#issuecomment-262921441,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AWmW4lGAMwEqDX7djKYod1yTvg5w29tyks5rBrIRgaJpZM4K7aKk
.

That's strange. Could you upload a screenshot of your command line with the command you ran and the output you saw?

Sure,
here are 03 04 05 for examples

Thanks. In these cases you are running your own code and visually checking if it returns what you expect. That's important but we also have automated tests that will check if your code returns what we expect. In order to run those tests you need to cd into the directory where your Python files are cd \Users\itelbaz\PycharmProhects\untitled and then run the tests:
python spec.py TestEx1

Then please past the results here or if you encounter any problems.
BTW You can watch this video: https://www.tocode.co.il/bundles/python/lessons/syntax-lab it explains how to do this.

Ok.. tried the spec and got 2 failures - in 01 & 03..
still don't understand why the rest failed in your tests..
Thank you for your time,
Itay

OK, then fix those two, and upload them again. Do the same with other series of tests (06_modules_lab) that also had some failures. Let's see if once everything passes on your computer how do the tests behave on the central test server.

Fixed both

Nice. All tests are passing now. I'll check the coding later today.

Please keep the original comments in the files.
In 03 Instead of iterating over the indexes in

for i in range(len(rand_num)):
    sum_num = sum_num + int(rand_num[i])

it is much cleaner to iterate over the actual characters:
for c in rand_num:
    sum_num = sum_num + int(c)

04: Could you change the code here to avoid the duplicate call to raw_input ?
Also I don't think the use of 'else' is really proper here. You'd want that code to execute no matter what.

Similar to 04, could you eliminate the duplicate call to randint ?

06: You don't have to go over every number. You could go over the multipliers of num_a saving a lot of time.
07: here too it would be better to avoid the duplicate call to raw_input.

nice improvements!
06: Instead of building up a list of values and then taking the first element I'd use break to leave the loop at the first hit which is the smallest number anyway.


Remove ExecuteTrajectory method

As discussed, execution of raw trajectories is dangerous so it should not be a public API.
cc @kanbouchou

Thanks @felixvd looks good to me.
@rdiankov can you just double check? I'm fine with deleting executetrajectory for my projects.

thanks


Integrate peatio-core Peatio::Auth::JWTAuthenticator to APIv2 (closes…

… #1555)

Issue with $LOAD_PATH caused by rspec
from spec/spec_helper.rb. It is also conventional to require that file from
the spec files using require 'spec_helper'. This works because RSpec
implicitly adds the spec directory to the LOAD_PATH. It also adds lib, so
your implementation files will be on the LOAD_PATH as well```

https://relishapp.com/rspec/rspec-core/v/2-6/docs/command-line


Merge to live!

Docs Build status updates of commit 499f141:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/outlook/contextual-outlook-add-ins.md
:white_check_mark:Succeeded

docs/reference/manifest/desktopsettings.md
:white_check_mark:Succeeded

docs/reference/manifest/extensionpoint.md
:white_check_mark:Succeeded

docs/reference/manifest/form.md
:white_check_mark:Succeeded

docs/reference/manifest/phonesettings.md
:white_check_mark:Succeeded

docs/reference/manifest/requestedheight.md
:white_check_mark:Succeeded

docs/reference/manifest/requestedwidth.md
:white_check_mark:Succeeded

docs/reference/manifest/tabletsettings.md
:white_check_mark:Succeeded

docs/testing/create-a-network-shared-folder-catalog-for-task-pane-and-content-add-ins.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


feat(sailor-bridge): bump Sailor to ^0.20

Codecov Report
Base: 94.01% // Head: 94.01% // No change to project coverage :thumbsup:

Coverage data is based on head (5eb39f0) compared to base (c0bd3b8).
 Consider uploading reports for the commit a02e6d9 to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #157   +/-   ##
=========================================
  Coverage     94.01%   94.01%
  Complexity      477      477
=========================================
  Files           109      109
  Lines          1638     1638
=========================================
  Hits           1540     1540
  Misses           98       98

Flag
Coverage Δ

phpunit
94.01% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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


remove xarray 0.12 restriction; update index gathering without inplace

following https://stackoverflow.com/a/64489847/2225200. It's not too pretty because we create an un-indexed DataArray first to deal with different constructor calls, but it does the job.

superseded by #12


Cannot find issue please help

Challenge Use an ID Attribute to Style an Element has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

CatPhotoApp

Click here for cat photos.

Things cats love:

cat nip

laser pointers

lasagna

Top 3 things cats hate:

flea treatment

thunder

other cats

<form
      action="/submit-cat-photo" id="cat-photo-form">
  <input type="radio" name="indoor-outdoor" checked> Indoor
  <input type="radio" name="indoor-outdoor"> Outdoor
  <input type="checkbox" name="personality" checked> Loving
  <input type="checkbox" name="personality"> Lazy
  <input type="checkbox" name="personality"> Energetic
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
</form>

@Tydude Thank you for reporting this issue. Your opening form tag should be on one line. Right now it is on two separate lines.
@freeCodeCamp/moderators the regex for the test doesn't detect new line characters so that is why the test fails. I don't know if we should change the test because it is an edge case. Thoughts?

@erictleung I think it's worth changing to handle the edge case

@erictleung we would probably have to also add this to a lot of the other regex tests throughout the curriculum. Would you be interested in creating an issue to go through and improve these tests? What are some other edge cases we might want to tackle regarding these tests?


[UX] Indicating skipped files for upload and deploy

With the upcoming support for checksums, we need a way to indicate if an asset is skipped when running the deploy or download commands in verbose mode.
This means instead of:
[development] Updated templates/cart.liquid
we might say:
[development] Skipped templates/cart.liquid
We'll need to decide on both text and colour.
(Another possible approach might be skip the line entirely, and then just give a count afterwards, e.g.:
13 files were skipped because they are already up to date.)
@Nupur-Mukherjee, @attaboy, @tanema

[development] Skipped templates/cart.liquid

This doesn't say the most important part of skipping this file: why
I'd just write:
[development] Identical templates/cart.liquid
(to keep the [env] [status] [file] order)
Here, I'd maybe add a comma-separated list of files, just so user (me) can go back to terminal and find these files being skipped for a reason:
13 files were skipped because they are already up to date.
Just my $0.02. Thanks!

The newest version has been shipped with the output of how many files were skipped


schema_migrations table name conflicts with ecto table

The schema_migrations table name introduced in v0.10.0 conflicts with the ecto table schema_migrations, yet it has different columns.
This means you are unable to use the same database for eventstore and your phoenix app.
Is there some way we could change the table name to not conflict, or make it configurable?
Thanks

See: https://github.com/elixir-ecto/ecto/blob/master/lib/ecto/migration/schema_migration.ex

Yes, it's worth making the table name configurable to allow the same database to be used for both events and read model projections.
As a temporary workaround Ecto allows you to rename its migrate table in config:
config :app, App.Repo, migration_source: "my_migrations"

Seems like this is already on the radar, and the workaround provided is fairly reasonable, but since I'm here about 8 months down the line, figured I'd mention I've also run into this issue. May be worth mentioning in the documentation somewhere?

Yes, adding it to the documentation would be awesome. I ran into this issue this morning, and it took me some time to realise that there was a conflict with ecto. Thanks!

As it has not been mentioned yet, but there is a recent commit 6b2bbfe which introduces support for ecto schemas. It is also fairly documented in master. So it is an easy way to prevent before mentioned issue.


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 2604 ms

Resolved: Bofrost.at performance has improved in 78011c7 after 6 minutes.


Fix google query string

Fix the google search so that it actually shows results.
Resolves:  https://www.pivotaltracker.com/story/show/137410985

Coverage decreased (-0.03%) to 87.965% when pulling ea1f479bfce5aa5c8df99ae33e00f2ebb819522a on raysuelzer:b-ray_master into c46626fb8af69da05db2fe40ff3c0a814760c83b on MushroomObserver:master.

Unfortunately, running the tests using a windows host produces tons of errors, so I missed this one.  Will update test.

Coverage remained the same at 87.992% when pulling f41c8908a2a372cc0215b3112765e74d4acdfc27 on raysuelzer:b-ray_master into c46626fb8af69da05db2fe40ff3c0a814760c83b on MushroomObserver:master.


Failure to install on Mac OS X Mojave via Homebrew

The command "brew install ibazel" is failing with "Config value release is not defined in any .rc file"
Full output from running "brew install ibazel":
==> Installing ibazel from bazelbuild/tap
==> Downloading https://github.com/bazelbuild/bazel-watcher/archive/v0.6.0.tar.gz
Already downloaded: /Users/michaelsafyan/Library/Caches/Homebrew/downloads/172a0a8d892a26b59c6388fbd67e294206002c2205fd4c4f9997fdab82ad99c8--bazel-watcher-0.6.0.tar.gz
==> bazel build --config=release --experimental_platforms=@io_bazel_rules_go//go/toolchain:darwin_amd64 //
Last 15 lines from /Users/michaelsafyan/Library/Logs/Homebrew/ibazel/01.bazel:
2018-11-11 04:17:19 -0500

bazel
build
--config=release
--experimental_platforms=@io_bazel_rules_go//go/toolchain:darwin_amd64
//ibazel:ibazel

WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:
/private/tmp/ibazel-20181111-8392-1r3w6co/bazel-watcher-0.6.0/tools/bazel.rc
WARNING: ignoring _JAVA_OPTIONS in environment.
Starting local Bazel server and connecting to it...
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=0 --terminal_columns=80
ERROR: Config value release is not defined in any .rc file

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/bazelbuild/homebrew-tap/issues

When you run bazel version what do you get?

Seeing the same.  bazel version:
Build label: 0.19.0
Build target: bazel-out/darwin-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Mon Oct 29 14:34:41 2018<PHONE_NUMBER>)
Build timestamp:<PHONE_NUMBER>
Build timestamp as int:<PHONE_NUMBER>

Probably just needs cutting new release here and bumping the tap repo to resolve.  Seems the rc location was fixed when #154 landed.
Worked around by building from source.

Cool. I'll just tag another release then. There are a few changes that would be nice to get out anyway.

This should be fixed when https://github.com/bazelbuild/homebrew-tap/pull/19 is merged. Thanks for following up on the bug!


python310Packages.pyswitchbot: 0.37.1 -> 0.37.3

Diff: https://github.com/Danielhiversen/pySwitchbot/compare/refs/tags/0.37.1...0.37.3
Changelog: https://github.com/Danielhiversen/pySwitchbot/releases/tag/0.37.3
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release 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

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 217371 run on x86_64-linux 1

5 packages built:

home-assistant-component-tests.bluetooth
home-assistant-component-tests.shelly
home-assistant-component-tests.switchbot
python310Packages.pyswitchbot
python311Packages.pyswitchbot


White background upon opening Autocomplete

Opening autocomplete causes an overlay over the entire app.
https://github.com/equinor/design-system/assets/328539/76e03cef-ac44-4343-ba61-cf0b6bbf0382
Expected behavior
Expected the overlay not to appear. Expect same behaviors as in 0.37.0.
Specifications

Version: 0.38.0
Browser: Chrome Version 124.0.6367.209 (Official Build) (64-bit)
OS: Windows 11

Additional context
Issue introduced in upgrade from 0.37.0 to 0.38.0.

If possible, could you inspect the dropdown in chrome devtools (you may have to click inspect twice after it closes the first time) and click on ::backdrop and see if there isn't anything overwiting the default useragent style here which should be transparent

If possible, could you inspect the dropdown in chrome devtools (you may have to click inspect twice after it closes the first time) and click on ::backdrop and see if there isn't anything overwiting the default useragent style here which should be transparent

I'm seeing the followin in chrome devtools (with the ::backdrop element selected):

Manually disabling the marked ::backdrop background-color style fixes the issue:

Ah yes it inherits the style applied to ::backdrop on dialog. I have pushed a fix (add explicit backdrop color on the autocomplete) We will release a new version of core-react soon (early next week at the latest) 👍

Did this problem go away with the new release of eds-core-react?

yes, it's resolved 👍

Great! Closing as resolved


Zurb Template Issue - Settings File outdated

How to reproduce this bug:
Use the CLI...
What should happen:
Ideally the settings file and app.scss file should compile correctly by either copying the settings file from node packages or created from scratch using octophant.
What happened instead:
he map $offcanvas-sizes instead
Backtrace:
	node_modules/foundation-sites/scss/components/_off-canvas.scss:78, in mixin `off-canvas-basics`
	node_modules/foundation-sites/scss/components/_off-canvas.scss:439, in mixin `foundation-off-canvas`
	src/assets/scss/app.scss:32

WARNING: $offcanvas-vertical-size is deprecated and not used anymore! Please update your settings and use the map $offcanvas-vertical-sizes instead
Backtrace:
	node_modules/foundation-sites/scss/components/_off-canvas.scss:82, in mixin `off-canvas-basics`
	node_modules/foundation-sites/scss/components/_off-canvas.scss:439, in mixin `foundation-off-canvas`
	src/assets/scss/app.scss:32

Browser(s) and Device(s) tested on:
N/A
Foundation Version(s) you are using:
"foundation-sites": "~6.4.1"

This has been fixed in https://github.com/zurb/foundation-zurb-template/pull/69


Demoscript

  [
    {
      claimant: {
        fact: "I offered the respondend my appartment in Bahnhofstraße",
        time: null, // 4th November
        proof: "Rental Agreement",
        legalOpinion: "This is a lease contract"
      },
      disputed: false,
      defendant: null
    },
    {
      claimant: {
        fact: "We agreed upon a rent of 10.000 € a month",
        time: null, // 4th November
        proof: "Rental Agreement",
        legalOpinion: "The respondant is obliged to pay the rent"
      },
      disputed: false,
      defendant: null
    },
    {
      claimant: null,
      disputed: false,
      defendant: {
        fact: "The heating did not work",
        time: null, // 1. - 31. Dezember
        proof: "My boyfriend",
        legalOpinion: ""
      }
    },
    {
      claimant: {
        fact: "The claimant was still living in the apartment, the hotel bill is fake.",
        time: null, // 7. bis 31. Dezember
        proof: "Mrs. Miller",
        legalOpinion: "You lived there, you can only set off 50 %"
      },
      disputed: true,
      defendant: {
        fact: "It was so cold, I had to move into a hotel and paid 10.000 € for it.",
        time: null, // 7. bis 31. Dezember
        proof: "Hotel bill",
        legalOpinion: "I can set off the lease"
      }
    }
  ]

Claimant (C):

Offered appartment, agreed rent 1.000 Euro
Time: ...
Proof: rental agreement
Upload doc: +
Legal opinion: -

R didn't pay last month.
[SUBMIT]
Defendant (D)
3.

and 2.: agreed

Fact: heating didn't work
Time: ...
Proof: 'My boyfriend'
LO: /

Fact: Had to move to hotel, paid 1.000 Euro
Time
Proof: Hotel bill
LO: Set off with the lease
C:
6.
Agree with 5

disagree with 6
Fact: R still lived there, hotel bill fake
Time: /
Proof: 'Neighbour'


Support for MS SQL Server Token Authentication.

I would like to be able to access an Azure SQL Server using the token based authentication method.
Using pyodbc this would look like this:
def get_conn():
    connection_string = 'Driver={ODBC Driver 18 for SQL Server};Server=tcp:<SERVER_ADDRESS>,1433;Database=<DATABASE_NAME>;Encrypt=yes;TrustServerCertificate=no;Connection Timeout=30'
    credential = DefaultAzureCredential(exclude_interactive_browser_credential=False)
    token_bytes = credential.get_token("https://database.windows.net/.default").token.encode("UTF-16-LE")
    token_struct = struct.pack(f'<I{len(token_bytes)}s', len(token_bytes), token_bytes)
    SQL_COPT_SS_ACCESS_TOKEN = 1256  # This connection option is defined by microsoft in msodbcsql.h
    conn = pyodbc.connect(connection_string, attrs_before={SQL_COPT_SS_ACCESS_TOKEN: token_struct})
    return conn

which used SQL_COPT_SS_ACCESS_TOKEN further described here in the attrs_before parameter - described as "attrs_before: Set low-level connection attributes before a connection is attempted."
I wonder if this is possible today using connectorX or if this could be added at a later date? (I'm no Rust dev but I see that tiberius does support AADToken auth - perhaps this can be leveraged to enable this feature in connectorX?)
Thanks!

@MuhammadPathan  - I have not yet found a solution to this.

@akelloway thanks for response was trying to do the same thing. in the end went with pyodbc  and loaded data into a pandas df then converted to polars afterwards.


Default banner

We need to set a default banner and also users should probably default to it being off especially if it isn't set.

This has been implemented in my marathon last night.


[metis][suitesparse] add metisConfig.cmake

Related to #8336 , fix build failure on
vcpkg install suitesparse[metis]:x64-windows
vcpkg install ceres[suitesparse]:x64-windows

make metis to install metisConfig.cmake
make suitesparse to use find_package(metis)

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: janholt sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.