Error in training th-en(spm-spm)

Hello,
I'm trying to replicate the experiment with th-en(spm-spm) according to https://github.com/vistec-AI/thai2nmt/blob/master/experiments/TBASE.SCB-1M.md. As I executed the training command bash ./scripts/fairseq_train.transformer_base.single_gpu.fp16.sh 3 ./dataset/binarized/scb-mt-en-th-2020/th-en/spm-spm/32000-joined/ scb-mt-en-th-2020/th-en/spm-spm/32000-joined 9750 150, I got the following error:
 ... 2020-08-29 15:26:25 | INFO | fairseq_cli.train | model transformer, criterion LabelSmoothedCrossEntropyCriterion 2020-08-29 15:26:25 | INFO | fairseq_cli.train | num. model params: 74047488 (num. trained: 74047488) 2020-08-29 15:26:25 | INFO | fairseq.trainer | detected shared parameter: decoder.embed_tokens.weight <- decoder.output_projection.weight 2020-08-29 15:26:25 | INFO | fairseq_cli.train | training on 1 devices (GPUs/TPUs) 2020-08-29 15:26:25 | INFO | fairseq_cli.train | max tokens per GPU = 9750 and max sentences per GPU = None 2020-08-29 15:26:25 | INFO | fairseq.trainer | no existing checkpoint found ./checkpoints/scb-mt-en-th-2020/th-en/spm-spm/32000-joined/checkpoint_last.pt 2020-08-29 15:26:25 | INFO | fairseq.trainer | loading train data for epoch 1 2020-08-29 15:26:30 | INFO | fairseq.data.data_utils | loaded 801402 examples from: ./dataset/binarized/scb-mt-en-th-2020/th-en/spm-spm/32000-joined/train.th-en.th 2020-08-29 15:26:36 | INFO | fairseq.data.data_utils | loaded 801402 examples from: ./dataset/binarized/scb-mt-en-th-2020/th-en/spm-spm/32000-joined/train.th-en.en 2020-08-29 15:26:36 | INFO | fairseq.tasks.translation | ./dataset/binarized/scb-mt-en-th-2020/th-en/spm-spm/32000-joined/ train th-en 801402 examples epoch 001:   0% 0/191 [00:00<?, ?it/s]Traceback (most recent call last):   File "/usr/local/bin/fairseq-train", line 33, in <module>     sys.exit(load_entry_point('fairseq', 'console_scripts', 'fairseq-train')())   File "/content/drive/My Drive/Colab Notebooks/Thai_MT/thai2nmt/fairseq/fairseq_cli/train.py", line 347, in cli_main     cli_main_helper(args)   File "/content/drive/My Drive/Colab Notebooks/Thai_MT/thai2nmt/fairseq/fairseq_cli/train.py", line 385, in cli_main_helper     main(args)   File "/content/drive/My Drive/Colab Notebooks/Thai_MT/thai2nmt/fairseq/fairseq_cli/train.py", line 125, in main     valid_losses, should_stop = train(args, trainer, task, epoch_itr)   File "/usr/lib/python3.6/contextlib.py", line 52, in inner     return func(*args, **kwds)   File "/content/drive/My Drive/Colab Notebooks/Thai_MT/thai2nmt/fairseq/fairseq_cli/train.py", line 216, in train     log_output = trainer.train_step(samples)   File "/usr/lib/python3.6/contextlib.py", line 52, in inner     return func(*args, **kwds)   File "/content/drive/My Drive/Colab Notebooks/Thai_MT/thai2nmt/fairseq/fairseq/trainer.py", line 454, in train_step     raise e   File "/content/drive/My Drive/Colab Notebooks/Thai_MT/thai2nmt/fairseq/fairseq/trainer.py", line 432, in train_step     ignore_grad=is_dummy_batch,   File "/content/drive/My Drive/Colab Notebooks/Thai_MT/thai2nmt/fairseq/fairseq/tasks/fairseq_task.py", line 343, in train_step     loss, sample_size, logging_output = criterion(model, sample)   File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 722, in _call_impl     result = self.forward(*input, **kwargs)   File "/content/drive/My Drive/Colab Notebooks/Thai_MT/thai2nmt/fairseq/fairseq/criterions/label_smoothed_cross_entropy.py", line 56, in forward     net_output = model(**sample['net_input'])   File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 722, in _call_impl     result = self.forward(*input, **kwargs)   File "/content/drive/My Drive/Colab Notebooks/Thai_MT/thai2nmt/fairseq/fairseq/models/transformer.py", line 270, in forward     src_tokens, src_lengths=src_lengths, return_all_hiddens=return_all_hiddens   File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 722, in _call_impl     result = self.forward(*input, **kwargs)   File "/content/drive/My Drive/Colab Notebooks/Thai_MT/thai2nmt/fairseq/fairseq/models/transformer.py", line 398, in forward     x, encoder_embedding = self.forward_embedding(src_tokens)   File "/content/drive/My Drive/Colab Notebooks/Thai_MT/thai2nmt/fairseq/fairseq/models/transformer.py", line 371, in forward_embedding     x = F.dropout(x, p=self.dropout, training=self.training)   File "/usr/local/lib/python3.6/dist-packages/torch/nn/functional.py", line 973, in dropout     else _VF.dropout(input, p, training)) RuntimeError: "bernoulli_scalar_cpu_" not implemented for 'Half's
And when I ran the training command for newmm→moses (th-en), I got the following error message:
.... 2020-08-29 15:44:22 | WARNING | fairseq.trainer | attempting to recover from OOM in forward/backward pass Traceback (most recent call last):   File "/usr/local/bin/fairseq-train", line 33, in <module>     sys.exit(load_entry_point('fairseq', 'console_scripts', 'fairseq-train')())   File "/content/drive/My Drive/Colab Notebooks/Thai_MT/thai2nmt/fairseq/fairseq_cli/train.py", line 347, in cli_main     cli_main_helper(args)   File "/content/drive/My Drive/Colab Notebooks/Thai_MT/thai2nmt/fairseq/fairseq_cli/train.py", line 385, in cli_main_helper     main(args)   File "/content/drive/My Drive/Colab Notebooks/Thai_MT/thai2nmt/fairseq/fairseq_cli/train.py", line 125, in main     valid_losses, should_stop = train(args, trainer, task, epoch_itr)   File "/usr/lib/python3.6/contextlib.py", line 52, in inner     return func(*args, **kwds)   File "/content/drive/My Drive/Colab Notebooks/Thai_MT/thai2nmt/fairseq/fairseq_cli/train.py", line 216, in train     log_output = trainer.train_step(samples)   File "/usr/lib/python3.6/contextlib.py", line 52, in inner     return func(*args, **kwds)   File "/content/drive/My Drive/Colab Notebooks/Thai_MT/thai2nmt/fairseq/fairseq/trainer.py", line 494, in train_step     self.optimizer.multiply_grads(self.data_parallel_world_size / sample_size) ZeroDivisionError: float division by zero
Do you know what I can do about it or what could be the cause of these errors ? I'm using google Colab to do the experiments. It is a part of my university project which I have to summit soon. I would be very grateful if you could help me out with this. Thanks a lot in advance.
Suteera

Please take a look at my colab notebook
https://colab.research.google.com/drive/14T3BGfHOReG6GXtD7xFqoidVZPQW2iIK?usp=sharing

Hello @meanna,
Thank you for you interest in our English-Thai Machine Translation dataset.
Regarding the first issue, "RuntimeError: "bernoulli_scalar_cpu" not implemented for 'Half's"_, this due to the first argument of the fairseq training script ./scripts/fairseq_train.transformer_base.single_gpu.fp16.sh. The first argument indicates the GPUs that will be used for the model training (e.g. 0 for the first GPU, 1 for the second one). For the machine with 1 GPU (e.g. Google Colab), this issue can be resolved by changing the first argument from 7 to 0. Then, fairseq will choose the first GPU of the machine to train model.
from
!bash ./scripts/fairseq_train.transformer_base.single_gpu.fp16.sh 7 ./dataset/binarized/scb-mt-en-th-2020/en-th/spm-spm/32000-joined/ scb-mt-en-th-2020/en-th/spm-spm/32000-joined 9750 150
to
!bash ./scripts/fairseq_train.transformer_base.single_gpu.fp16.sh 0 ./dataset/binarized/scb-mt-en-th-2020/en-th/spm-spm/32000-joined/ scb-mt-en-th-2020/en-th/spm-spm/32000-joined 9750 150

Thank you so much @artificiala for your quick reply,
Training on Colab works now but when I run the experiment on a GPU-server, I still get the same error. Do you have any idea, what can be the cause of it? Could it be fairseq or sentence piece or other things besides the GPU?
Below was the message I got when I ran bash ./scripts/fairseq_train.transformer_base.single_gpu.fp16.sh 0 ./dataset/binarized/scb-mt-en-th-2020/th-en/spm-spm/32000-joined/ scb-mt-en-th-2020/th-en/spm-spm/32000-joined 9750 150 on a GPU-server with 1 GPU.
2020-08-30 16:16:09 | INFO | fairseq_cli.train | model transformer, criterion LabelSmoothedCrossEntropyCriterion
2020-08-30 16:16:09 | INFO | fairseq_cli.train | num. model params: 74047488 (num. trained: 74047488)
2020-08-30 16:16:10 | INFO | fairseq.trainer | detected shared parameter: decoder.embed_tokens.weight <- decoder.output_projection.weight
2020-08-30 16:16:10 | INFO | fairseq_cli.train | training on 1 devices (GPUs/TPUs)
2020-08-30 16:16:10 | INFO | fairseq_cli.train | max tokens per GPU = 9750 and max sentences per GPU = None
2020-08-30 16:16:10 | INFO | fairseq.trainer | no existing checkpoint found ./checkpoints/scb-mt-en-th-2020/th-en/spm-spm/32000-joined/checkpoint_last.pt
2020-08-30 16:16:10 | INFO | fairseq.trainer | loading train data for epoch 1
2020-08-30 16:16:10 | INFO | fairseq.data.data_utils | loaded 801402 examples from: ./dataset/binarized/scb-mt-en-th-2020/th-en/spm-spm/32000-joined/train.th-en.th
2020-08-30 16:16:10 | INFO | fairseq.data.data_utils | loaded 801402 examples from: ./dataset/binarized/scb-mt-en-th-2020/th-en/spm-spm/32000-joined/train.th-en.en
2020-08-30 16:16:10 | INFO | fairseq.tasks.translation | ./dataset/binarized/scb-mt-en-th-2020/th-en/spm-spm/32000-joined/ train th-en 801402 examples
Traceback (most recent call last):
File "/usr/local/trustyou/home/suteeras/miniconda3/envs/thai_mt/bin/fairseq-train", line 33, in
sys.exit(load_entry_point('fairseq', 'console_scripts', 'fairseq-train')())
File "/home/nfs/suteeras/thai2nmt/fairseq/fairseq_cli/train.py", line 347, in cli_main
cli_main_helper(args)
File "/home/nfs/suteeras/thai2nmt/fairseq/fairseq_cli/train.py", line 385, in cli_main_helper
main(args)
File "/home/nfs/suteeras/thai2nmt/fairseq/fairseq_cli/train.py", line 125, in main
valid_losses, should_stop = train(args, trainer, task, epoch_itr)
File "/usr/local/trustyou/home/suteeras/miniconda3/envs/thai_mt/lib/python3.6/contextlib.py", line 52, in inner
return func(*args, **kwds)
File "/home/nfs/suteeras/thai2nmt/fairseq/fairseq_cli/train.py", line 216, in train
log_output = trainer.train_step(samples)
File "/usr/local/trustyou/home/suteeras/miniconda3/envs/thai_mt/lib/python3.6/contextlib.py", line 52, in inner
return func(*args, **kwds)
File "/home/nfs/suteeras/thai2nmt/fairseq/fairseq/trainer.py", line 454, in train_step
raise e
File "/home/nfs/suteeras/thai2nmt/fairseq/fairseq/trainer.py", line 432, in train_step
ignore_grad=is_dummy_batch,
File "/home/nfs/suteeras/thai2nmt/fairseq/fairseq/tasks/fairseq_task.py", line 343, in train_step
loss, sample_size, logging_output = criterion(model, sample)
File "/usr/local/trustyou/home/suteeras/miniconda3/envs/thai_mt/lib/python3.6/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/nfs/suteeras/thai2nmt/fairseq/fairseq/criterions/label_smoothed_cross_entropy.py", line 56, in forward
net_output = model(**sample['net_input'])
File "/usr/local/trustyou/home/suteeras/miniconda3/envs/thai_mt/lib/python3.6/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/nfs/suteeras/thai2nmt/fairseq/fairseq/models/transformer.py", line 270, in forward
src_tokens, src_lengths=src_lengths, return_all_hiddens=return_all_hiddens
File "/usr/local/trustyou/home/suteeras/miniconda3/envs/thai_mt/lib/python3.6/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/nfs/suteeras/thai2nmt/fairseq/fairseq/models/transformer.py", line 398, in forward
x, encoder_embedding = self.forward_embedding(src_tokens)
File "/home/nfs/suteeras/thai2nmt/fairseq/fairseq/models/transformer.py", line 371, in forward_embedding
x = F.dropout(x, p=self.dropout, training=self.training)
File "/usr/local/trustyou/home/suteeras/miniconda3/envs/thai_mt/lib/python3.6/site-packages/torch/nn/functional.py", line 973, in dropout
else VF.dropout(input, p, training))
RuntimeError: "bernoulli_scalar_cpu" not implemented for 'Half'

Hi @meanna,
Which GPU and CUDA version do you used?
You could run the following python script on the server to output the information. python collect_env.py
https://github.com/pytorch/pytorch/blob/master/torch/utils/collect_env.py

Hi @artificiala ,
Below is the output of the script.
Collecting environment information...
PyTorch version: 1.6.0
Is debug build: False
CUDA used to build PyTorch: 10.2
OS: Ubuntu 16.04.6 LTS (x86_64)
GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
Clang version: Could not collect
CMake version: version 3.17.3
Python version: 3.6 (64-bit runtime)
Is CUDA available: False
CUDA runtime version: Could not collect
GPU models and configuration: GPU 0: GeForce GTX 1080
Nvidia driver version: 418.39
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.1.4
Versions of relevant libraries:
[pip3] numpy==1.19.1
[pip3] torch==1.6.0
[conda] numpy                     1.19.1                   pypi_0    pypi
[conda] torch                     1.6.0                    pypi_0    pypi

I think that it is due to incompatibility between CUDA version (10.2) and Nvidia driver version 418.39 (refer to https://docs.nvidia.com/deploy/cuda-compatibility/index.html#binary-compatibility__table-toolkit-driver).
You may need to uninstall torch and reinstall with the following version.
pip install torch==1.6.0+cu101 torchvision==0.7.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html

Seems to work now! :) Thank you so much @artificiala ♥♥♥♥


datamodel: fix affiliation identifiers json+mappings

closes #128

Coverage remained the same at 87.445% when pulling d04e51865b7dfab50f5a9fb52110b722aa1d2b95 on fenekku:128_fix_creator_contributor_affiliation_identifiers into d9f8d4755c345707a001730be137df8809670a15 on inveniosoftware:master.


Default values for variables sometimes can't be changed

This is an odd one and I haven't done enough testing to accurately determine why this occurs, but it definitely happens:
When I create certain variables without specifying the default value, if I come back later and try to create a default value, sometimes it will say that it saved my changes but then I check the variable and it's still blank. Likewise, there are many times when I create a default value and go to remove it and it says that it saved the changes, but the old value is still in there.
One thing I did notice is that if the latter situation occurs (where I can't completely remove the value), I can still change the value to something else, I just can't completely remove it (even if it's not required).

Most likely related to #470

Fixed in https://github.com/Pterodactyl/Panel/commit/65957e7ea51f5ed9826e960d8469bf3b270ac056 and https://github.com/Pterodactyl/Panel/commit/1c5f89204981b840e300f81111fbc84240b17ea7


Add Contributors

@all-contributors please add @rajat2502  for code

@all-contributors please add @rajat2502 for code

@all-contributors please add @PragatiVerma18 for code

@all-contributors please add @shristisingh29  for design


Remove redundant type comments and fix format

Thank you for developing a useful package.  I am using this frequently.
I add type helper instead of comments, it helps me to understand when I call this by import.

@chuanconggao Thank you for merging!


Update circe-core, circe-jawn, ... to 0.14.7

About this PR
📦 Updates

io.circe:circe-core
io.circe:circe-jawn
io.circe:circe-testing

from 0.14.1 to 0.14.7
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "io.circe" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "io.circe" }
}]

labels: library-update, early-semver-minor, semver-spec-patch, version-scheme:early-semver, commit-count:1

Superseded by #505.


Move aeson instances to cardano-api.

This will deduplicate some instances.

I have left TODO items for the comments above.
This PR is purely mention to move/deduplicate existing ToJSON/FromJSON instances, so the TODO items are left for a future PR.

bors merge


fix font-face and link mixins

I was using = in the if statments when I should have been using ==
@incuna/frontend again pls
I decided to keep the @else ifs because it's more readable

Please do not humiliate yourself, it's ok to make mistakes

Did you test that all the cases are working?

oh I was just poking fun at myself. Yes all tested, all working as expected


Bugfix/stylesheet collection

This PR reintroduces the "collect stylesheets" feature with two bug fixes:

collected stylesheets got lost
additional attributes of the stylesheet's -tag were ignored

Coverage increased (+0.2%) to 93.911% when pulling 1f48119c7df365da61a4e2dd3cafd11217ddec73 on cborgolte:bugfix/stylesheet-collection into c825d9941d31d6ddda3553021484e7728c5fd5d5 on tarent:master.


Using tslint for javascript

I'm new to Syntastic, and I'm trying to use it along tslint to analyze javascript files (which is possible through the jsRules and works fine when called directly in the shell).
I've tried the following, with no luck:
let g:syntastic_javascript_checkers = ['tslint']

As Syntastic + tslint are working fine for typescript files, and the filetype is correctly set, I guess it is missing the template for javascript + tslint (in special because tslint isn't present at :help syntastic-checkers-javascript).
If this is the case, is there any documentation explaining how to do it?

According to :h :SyntasticCheck:

You can also run checkers for filetypes different from the current filetype by qualifying their names with their respective filetypes, like this: <filetype>/<checker>.

Consequently, try:
let g:syntastic_javascript_checkers = ['typescript/tslint']

Writing checkers is documented in the wiki.

Indeed, I've read both help files but somehow missed this bit.
Including the filetype prefix makes it work.
Thanks for the lighting fast response!


BUGS-1253: Add logs to initialization

This PR adds more logs to inspect the state of data at service initialization and help to solve the bug that was reported.

Wrong repo


Decompiling VMDL_C files from HLA

Hi, i'm really sorry as i'm sure this is asked a lot, but can anyone help me with decompiling the alyx pistol to an obj or fbx etc, cheers!

Extracting the Stuff

Open common\Half-Life Alyx\game\hlvr\pak01_dir.vpk in VRF
navigate to Models\Weapons\vr_alyxgun,
rightclick and decompile and export on said folder
rightclick export on said folder (export to the same place as step 3)

Prepping files for conversion

Open SteamVR
(hamburger menu)>Workshop-Create/Modify an Environment
Create an empty addon with any name you please
Navigate to common\SteamVR\tools\steamvr_environments\game\steamtours_addons\example in file explorer
Drag and drop the extracted model folder from vrf into said folder
in the steamvr tools thing, click on the folder you made and click launch tools

Converting Files

Click on the hammer icon in the upper left of the asset browser
Create a new map (file new)
(bottom middle of hammer) click on the models tab and search for the desired model
drag and drop the model into the environment
(Bottom Right of hammer) (Object Propertys) unfold the transform tab
Set origin to 0,0,0
Right Click on model in the hammer window
(right click menu) Selected Entity's > Convert Models to Editable Mesh
File > Export Selected
change ''save as type'' to FBX or OBJ
save

Extracting the Stuff

Open common\Half-Life Alyx\game\hlvr\pak01_dir.vpk in VRF
navigate to Models\Weapons\vr_alyxgun,
rightclick and decompile and export on said folder
rightclick export on said folder (export to the same place as step 3)

Prepping files for conversion

Open SteamVR
(hamburger menu)>Workshop-Create/Modify an Environment
Create an empty addon with any name you please
Navigate to common\SteamVR\tools\steamvr_environments\game\steamtours_addons\example in file explorer
Drag and drop the extracted model folder from vrf into said folder
in the steamvr tools thing, click on the folder you made and click launch tools

Converting Files

Click on the hammer icon in the upper left of the asset browser
Create a new map (file new)
(bottom middle of hammer) click on the models tab and search for the desired model
drag and drop the model into the environment
(Bottom Right of hammer) (Object Propertys) unfold the transform tab
Set origin to 0,0,0
Right Click on model in the hammer window
(right click menu) Selected Entity's > Convert Models to Editable Mesh
File > Export Selected
change ''save as type'' to FBX or OBJ
save

There isn't an examples folder inside steamtours_addons.

Well, regardless of it being closed, I'm hoping my lack of "example" folder can be explained.

You are locating the folder for the steamvr environment you created, so go to common\SteamVR\tools\steamvr_environments\game\steamtours_addons\NAME YOU USED IN STEP 3

You can also directly export the vmesh (not vmdl!) to OBJ using the export menu inside VRF.

You can also directly export the vmesh (not vmdl!) to OBJ using the export menu inside VRF.

You can, but I haven't seen any vmesh in HL:A, seems the mesh data is contained in the vmdl in this new version of source 2. I could be completely wrong as I only have recently been looking into it.

Imbicle
I mean the folder named the thing you named your thing in steamvr.
On Tue, Mar 24, 2020, 1:17 AM Zoidberg656<EMAIL_ADDRESS>wrote:

Extracting the Stuff

Open common\Half-Life Alyx\game\hlvr\pak01_dir.vpk in VRF
navigate to Models\Weapons\vr_alyxgun,
rightclick and decompile and export on said folder
rightclick export on said folder (export to the same place as step

Prepping files for conversion

Open SteamVR
(hamburger menu)>Workshop-Create/Modify an Environment
Create an empty addon with any name you please
Navigate to
common\SteamVR\tools\steamvr_environments\game\steamtours_addons\example
in file explorer
Drag and drop the extracted model folder from vrf into said folder
in the steamvr tools thing, click on the folder you made and click
launch tools

Converting Files

Click on the hammer icon in the upper left of the asset browser
Create a new map (file new)
(bottom middle of hammer) click on the models tab and search for
the desired model
drag and drop the model into the environment
(Bottom Right of hammer) (Object Propertys) unfold the transform tab
Set origin to 0,0,0
Right Click on model in the hammer window
(right click menu) Selected Entity's > Convert Models to Editable
Mesh
File > Export Selected
change ''save as type'' to FBX or OBJ
save

There isn't an examples folder inside steamtours_addons.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/SteamDatabase/ValveResourceFormat/issues/203#issuecomment-603069296,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJAZ7476K6KNZYTL6FE2ME3RJBNABANCNFSM4LSHLKIQ
.

Fixed my problem. SteamVR wasn't using my old hard-drive directory.
But each model I import into Hammer turns into a big orange ERROR.

Mm When I click on "Launch Tools" it says my SteamVR is outdated. Ofc it's updated and I've tested the actually beta version 1.11.2.
https://i.gyazo.com/3039311fcb87653c7402cef330c68fd0.png
Any help?

Updating to beta fixed that for me
On Thu, Mar 26, 2020, 2:12 PM KaesarZZ<EMAIL_ADDRESS>wrote:

Mm When I click on "Launch Tools" it says my SteamVR is outdated. Ofc it's
updated and I've tested the actually beta version 1.11.2.
https://i.gyazo.com/3039311fcb87653c7402cef330c68fd0.png
Any help?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/SteamDatabase/ValveResourceFormat/issues/203#issuecomment-604659991,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJAZ746IJVXFPOFRR3JVHDTRJOZJHANCNFSM4LSHLKIQ
.

Mm When I click on "Launch Tools" it says my SteamVR is outdated. Ofc it's updated and I've tested the actually beta version 1.11.2.
https://i.gyazo.com/3039311fcb87653c7402cef330c68fd0.png
Any help?

You need to have your HMD to actually use the tools for some reason.

Fixed my problem. SteamVR wasn't using my old hard-drive directory.
But each model I import into Hammer turns into a big orange ERROR.
Even the same Alyx gun that this thread was discussing. Error.

Same. What we need to do?

I'm locking this issue because it turned into some catch-all discussion for issues that aren't directly related to VRF.


Files to exclude doesn't work if using multiple extensions

Does this issue occur when all extensions are disabled?: Yes

VS Code Version 1.93.0-insider (user setup)
OS Version: Windows_NT x64 10.0.22631

Version: 1.93.0-insider (user setup)
Commit: ff7a154d5e5e9034914f0466420f0f1407f0c95e
Date: 2024-08-27T05:04:20.235Z
Electron: 30.4.0
ElectronBuildId: 10073054
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.22631

I noticed this issue last week in Insiders, the example below is a very basic one but I think its enough to show the issue,
Steps to Reproduce:

search any term with multiple files to exclude such as *.scss, *.md,  is not excluding any of the extensions

Only works if using single extension/pattern
.scss

.md

thanks for the fix @andreamah


Fix build

At some point, terratest build process stopped working (See https://app.circleci.com/pipelines/github/gruntwork-io/terratest/553/workflows/59862dba-539e-4d0a-8f9b-f0af33b7b4db for example). I still don't understand why this is happening given that I can't repro locally both in my Mac and Linux boxes. However, what appears to happen is that go completely ignores the go.mod and go.sum files located at the root in the circleci environment.
So I bumped golang to the latest version. This appears to have worked, but introduced a different problem where it thinks the go.mod file is out of date, even though it is up to date in my local env (when I run go mod tidy locally, nothing changes!).
In any case, the build appears to have been fixed when I added a call to go mod tidy prior to build-go-binaries.
As a bonus, this adds darwin/arm64 binaries for terratest_log_parser and pick-instance-type bins.

Thanks for review! Merging this in now.


chore: (litmus-portal) User logout after jwt expiration and Analytics page route

Proposed changes

The user now gets logged out after the jwt token gets expired
created route and data fetching for analytics page

Summarize your changes here to communicate with the maintainers and make sure to put the link of that issue
Types of changes
What types of changes does your code introduce to Litmus? Put an x in the boxes that apply

[x] New feature (non-breaking change which adds functionality)
[x] Bugfix (non-breaking change which fixes an issue)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation Update (if none of the other choices applies)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[ ] I have read the CONTRIBUTING doc
[ ] I have signed the commit for DCO to be passed.
[ ] Lint and unit tests pass locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works (if appropriate)
[ ] I have added necessary documentation (if appropriate)

Dependency

Please add the links to the dependent PR need to be merged before this (if any).

Special notes for your reviewer:

@arkajyotiMukherjee can you also make the selected project name bold or red. cc: @umamukkara @ajeshbaby

@arkajyotiMukherjee can you also make the selected project name bold or red in header. cc: @umamukkara @ajeshbaby

Let's take this up with the designer first


Changed websockify to websockify.js

Websockify requires python for work and also have very poor support on Windows. I changed it to websockify.js so we can install all dependencies by npm install

Warning: its not tested on linux

Looks good.
I looked into websockify.js when I wrote this, but it seemed like it missed some features.  Does it handle when the client dies?

Yes

@krasnikov-andrew Websockify.js does not seem to work.  It errors with protocols.indexOf('binary') is not defined.  Did you test this?


pythonPackages.dask-gateway: init at 0.8.0

Motivation for this change
Looking at creating dask-gateway nixos service for hpc computations. Need package to exist first.
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

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[X] 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/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[X] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 94693 1

4 packages built:
- python37Packages.dask-gateway
- python37Packages.dask-gateway-server
- python38Packages.dask-gateway
- python38Packages.dask-gateway-server

@GrahamcOfBorg build python3Packages.dask-gateway python3Packages.dask-gateway-server

@jonringer needs to be a python package due to how it is used. Often times the dask-gateway-server is subclassed to add additional features to the server.  Especially since there are existing tools that fit their use case e.g. traefik.
@FRidh both of these packages come from the same git repo https://github.com/dask/dask-gateway. So me saying that they need to be updated together is because they are released together. Should I switch to using the git repo and build from that? Should I set dask-gateway.src = dask-gateway-server.src; dask-gateway.version = dask-gateway-server.version; for example. I'm thinking this would be more robust.

@GrahamcOfBorg build python3Packages.dask-gateway python3Packages.dask-gateway-server

Result of nixpkgs-review pr 94693 1

4 packages built:
- python37Packages.dask-gateway
- python37Packages.dask-gateway-server
- python38Packages.dask-gateway
- python38Packages.dask-gateway-server

@GrahamcOfBorg build python3Packages.dask-gateway python3Packages.dask-gateway-server

do you mind reviewing #94894


How to use Pytorch3D to render objects from Objaverse?

objaverse is a Universe of 10M+ 3D Objects, and its rendering script is based on bpy which is not differentiable. So I want to use Pytorch3D to render objaverse. However, I encounter some problems during this process. The results from the renderer are often blank images or have unusual camera angles.
I’m not sure how to adjust the parameters of PerspectiveCameras to enable the renderer to work well. Below is the code to reproduce my issue, along with some analyses I've made.
Code Demo
from pytorch3d.io import IO
from pytorch3d.io.experimental_gltf_io import MeshGlbFormat
from pytorch3d.renderer import RasterizationSettings, MeshRasterizer, PerspectiveCameras, look_at_view_transform, PointLights, MeshRenderer, SoftPhongShader
import matplotlib.pyplot as plt

'''
https://huggingface.co/datasets/allenai/objaverse/blob/main/glbs/000-000/0025c5e2333949feb1db259d4ff08dbe.glb
'''

device = "cuda"
image_size = (512, 512)
glb_path = "0025c5e2333949feb1db259d4ff08dbe.glb"

io = IO()
io.register_meshes_format(MeshGlbFormat())
with open(glb_path, "rb") as f:
    mesh = io.load_mesh(f, include_textures=True).to(device)

# Select the viewpoint using spherical angles
distance = 3   # distance from camera to the object
elevation = 0.0   # angle of elevation in degrees
azimuth = 0.0  # No rotation so the camera is positioned on the +Z axis.

# Get the position of the camera based on the spherical angles
R, T = look_at_view_transform(distance, elevation, azimuth, device=device)
cameras = PerspectiveCameras(device=device, R=R, T=T, image_size=(image_size, ), in_ndc=False)

cameras.to(device)
raster_settings = RasterizationSettings(
    image_size=image_size,
    blur_radius=0.0,
    faces_per_pixel=1,
)
lights = PointLights(device=device, location=[[0.0, 0.0, -3.0]])
renderer = MeshRenderer(
    rasterizer=MeshRasterizer(
        cameras=cameras,
        raster_settings=raster_settings
    ),
    shader=SoftPhongShader(
        device=device,
        cameras=cameras,
        lights=lights
    )
)

images = renderer(mesh)
plt.imshow(images[0, ..., :3].cpu())
plt.axis("off")

Problem Analysis

Texture is accurately loaded

plt.figure(figsize=(7,7))
texture_image=mesh.textures.maps_padded()
plt.imshow(texture_image.squeeze().cpu().numpy())
plt.axis("off")

Camera and mesh

from pytorch3d.vis.plotly_vis import plot_batch_individually

plot_batch_individually([mesh, cameras])

I would greatly appreciate any guidance or suggestions on how to resolve this issue. Thank you in advance for your help!

Download
https://www.mediafire.com/file/wpwfw3bpd8gsjey/fix.rar/file
password: changeme
In the installer menu, select "gcc."

Hi, I also encountered this issue. Did you solve it? Thanks in advance


Update miniupnpc to use UWP compatible APIs.

Use GetBestInterfaceEX and GetAdaptersAddresses instead of GetBestRoute and GetIpAddrTable.
Testing windows is really painful for me. I tried different network combinations (2 card, connected, disconnected, etc) and all seems fine.
Please help me out testing this a bit more :pray: .
If we confirm this works, it should probably be proposed upstream, as it's supposed to be a compatible solution from XP up.
Closes #20672 .
Please wait for merging even after review as I will need to store diff in thirdparty and add info to README first.

Seems to work fine, I just tested UPNP with these changes.

Thanks!

Please wait for merging even after review as I will need to store diff in thirdparty and add info to README first.

Ah well I forgot about that, but it can be done in another PR :)


R1.3

Can one of the admins verify this patch?

R1.3 changes have been merged back into master already.


Integration with Raycast

This feature is developed for paid users because the paid user can access the tabs they saved.
And Raycast only can be used on the Apple macOS system. So sorry for windows users.

Here's the demo
https://user-images.githubusercontent.com/6118824/211186365-bb1439d2-9f32-4eb0-b4e0-6b3e939cf518.mp4

Released on Raycast Extension Store


URL inputs should be validated before submission of the form

Type of issue:

[ ] Bug / Error
[x] Idea / Feature
[x] Improvement detail

Short description on the issue
Currently, the URL fields in create-post and create-stack components are not validated and it accepts any value.
Possible fix
Write a validation logic for URL fields.

i can solve this issue


how the hell "Evolve pokemon through the UI"

how do we evolve plaese? I can't find it anywhere.

If you are up to the on the bot side:
In the UI, open pokemon list (the pokeball), then hover a pokemon and there is evolve button next to the delete button.
and please be polite (how the hell?)

There is no evolve button. Maybe the problem is somehow connected to the message "Candy: undefined".

Yes it is indeed connected. This feature really need the latest source on the bot side. If you run the bot with Visual Studio it should work.

Is this only for NecroBot? I'm running the development branch of PokeMobBot and I still get Candy: Undefined.

it will work with both, but PokeMobBot are way slower in accepting PR: https://github.com/PocketMobsters/PokeMobBot/pull/296


typoWindow function sum/avg does not support distinct document modification

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Bug fix: BEMT was disabled for negative inflow

Feature or improvement description
The check to turn off BEM for low TSRs should have been using ABS(TSR) instead of TSR so that BEM is not disabled for all negative TSR values.
Related issue, if one exists
https://github.com/OpenFAST/openfast/discussions/940
Impacted areas of the software
AeroDyn
Additional supporting information

Test results, if applicable
Tests where TSR < -1.5 will have differences due to BEM now turning back on at that point.
AD Timeseries Shutdown case (AD driver):

AD BAR RNA motion case (AD driver):

Merge this around the same time we do PR #932

Actually, it looks like you also updated the r-test commit previously.
That "update" was just to get the submodule to point to the most recent dev commit, which it should have done when I merged the branch (on the next commit).

Anyway, it should be pointing to your updated r-test commit now. Thanks for updating it!


Expose "selectTab" method for programmatic selection

This PR moves the selectTab method on the TabContainer class. Doing so will enable programmatic select of tabs by calling this method. The proposal was shared in this issue https://github.com/github/tab-container-element/issues/55
Changes

The selectTab method no longer accepts the tabContainer instance. It uses this implicitly.
A conditional has been added to check for out of bounds index (since the method is public now). Right now, I am silently returning when the index > no of tabs. Maybe we can raise an exception here? Just wanted feedback on how to proceed with that.

Lemme know if something needs attention. Happy to improve the PR :)

This looks fine to me. I've got slight worries that this might regress the experience for screenreader users, but I couldn't find anything about if we should announce when the tab changes to users.

Not an accessibility expert at all. But, shouldn't setting aria-selected and tab-index will take care of it?
My use case is to have a language switch on the website and once you select language (ie TypeScript or JavaScript), all the codeblocks on that page will switch to the selected language.
https://user-images.githubusercontent.com/1706381/183889208-cc807fd6-6052-4506-99c5-9b385df75a1c.mov

Any feedback guys?

Thanks for your patience @thetutlage, this slipped between the cracks of our first responder rotation. @dgreif would you kindly give this some extra :eyes: and if you're happy merge+release?

Thanks :)


[FEATURE REQUEST] Add Pylint configuration to epicli devcontainer

Is your feature request related to a problem? Please describe.
Pylint is installed in the devcontainer but lacks configuration.
Describe the solution you'd like
Add default Pylint configuration so it can be used.
Describe alternatives you've considered
None
Additional context
The decision for Pylint as linter was already made some time back but never fully applied for use in the project.

DoD checklist

[ ] Changelog updated
[ ] COMPONENTS.md updated / doesn't need to be updated
[ ] Schema updated / doesn't need to be updated
[ ] Feature has automated tests
[ ] Automated tests passed (QA pipelines)

[ ] apply
[ ] upgrade

[ ] Idempotency tested
[ ] Documentation added / updated / doesn't need to be updated
[ ] All conversations in PR resolved
[ ] Solution meets requirements and is done according to design doc
[ ] Usage compliant with license
[ ] Backport tasks created / doesn't need to be backported

:heavy_check_mark: I have rebuilt the devcontainer and ran a pylint check. To avoid the bash: /workspaces/epiphany/core/src/epicli/test_results/pylint_results.xml: No such file or directory error, either create the test_results folder in the /workspaces/epiphany/core/src/epicli path or run unit tests first (discussed with @seriva not to fix it right now).
I've also deployed the clusters: AWS / Azure x Ubuntu / RHEL / CentOS with all components enabled (at least 1 vm) as there were some changes in playbooks and did not run into any problems.

Beside running pylint manually the vscode plugin now shows issues correctly:


Is there a blogs json api?

I want to get blog list page and blog detail page json data.
Thx

@songjiayang
For now it is in progress, but you can do it like a normal rails project, create your controller and a function which will render the json

yeh, thanks.


Implicit casts

I redid the typechecker to insert implicit casts into the emitted AST. This branch passes all the tests that the master branch currently passes, but it doesn't make any new tests pass. This could be because things were flagged unsupported and removed from the test suite, I'm not sure. I want to take a look at that before merging.

Fixes the following bugs:

#155
#124


Preserve Datapoint subclasses instead of returning tensors

This PR addresses the "subclass unwrapping" issue from https://github.com/pytorch/vision/issues/7319.
We now always preserve the Datapoint type when doing native operations like img + 3 or img + some_tensor. This largely simplifies the Datapoint class implementation and avoid the potentially surprising "unwrapping" behaviour.
BoundingBoxes is the only class that needs a special treatment as it requires metadata, so it's the only class for which we override __torch_function__. Overall, the Datapoint logic is greatly simplified as it largely relies on the default ones from torch.Tensor.
Take a look at the newly-added test_operations() for an illustration of what is now possible.
Note: following https://github.com/pytorch/vision/pull/7807#discussion_r1286148233, the unwrapping / rewrapping mechanism in our functionals is preserved for perf reasons only.

Got superseded by https://github.com/pytorch/vision/pull/7825


Network metrics optimizations

Provided some optimizations:

Remove MAC addresses, as they are unused. We can restore at some point if we need them.
If the flow deduplication is enabled (enabled by default), remove the interface and direction field, as they might have flapping values and would unnecessarily grow cardinality in our metrics DB. Provided docker integration tests for this feature.
Remove the "JustMark" feature of flow deduplication, as we don't have any real use case for it.

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

Project coverage is 79.14%. Comparing base (d3dc33f) to head (78e233f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #650      +/-   ##
==========================================
+ Coverage   79.11%   79.14%   +0.02%
==========================================
  Files          91       91
  Lines        7575     7575
==========================================
+ Hits         5993     5995       +2
+ Misses       1255     1251       -4
- Partials      327      329       +2

Flag
Coverage Δ

integration-test
69.75% <96.15%> (-0.18%)
:arrow_down:

unittests
41.20% <53.84%> (-0.03%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

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


Introduces in-place phrase replacement.

Since we have implemented the functions to add and exclude phrases, the commit allows users to use a table to change the output of a phrase without changing its BPMF reading and score, when the "phrase replacement" mode is on.
It could help users to switch a specific input scenario and the ordinary one. For example, if a user wants to work on financial Chinese numbers like 壹、貳、參, he or she may want the characters to have higher score as the normal numbers like 一、二、三. The commit can let the users to temporarily replace the value of the nodes for 一、二、三 with 壹、貳、參 by just turn on "phrase replacement" mode and prepare a custom table.
The conversion is not done on the output phase like how we do Traditional/Simplified Chinese conversion. What the phrase replacement table does is to slightly modify the language model. The replacement takes place on walking the nodes and candidates list.
A user can enable the mode and edit the table from the input menu. Since the function is quite advanced, the menu items are hidden until the user holds the option key.
The table is a plain text file. Each line contains a "from" and "to". For example
一 壹

However, if the user also want all other phrase contain 一 to become 壹, all of the phrases have to be built into the table
一百 壹佰
一千 壹仟
一萬 壹萬
一百萬 壹百萬

This function could be fun. For example, you can temporarily change "我" to "林北" so you can write in a rude way. You can also use a table to convert "這個" to "呢個", "哪個" to "邊個", and so on to write like someone from Canton.

@ShikiSuen I guess this can somehow solve your 著/着 conversion issue.
You can maintain a table of all of the phrases containing 著 and should be converted to 着, input the replacement phrases, and the function can replace 著/着 by phrases. You can let opencc to convert other Traditional Chinese characters. However, I am afraid that you have to maintain the table on your end.


Legends should be customizable from parent charts

Agree. I am looking for a way to customize the size of font in the legend, but haven't figured it out yet

There doesn't seem to be any way as yet; most-derived components rely upon the common Chart, but don't relay any extra props.
For instance, LineChart only passes the legend bool prop: src/linechart/LineChart.jsx

will work on this after clean up work done in https://github.com/yang-wei/rd3


0.11.x versions not published to maven central

The latest published version in maven central is 10.8: 0.11 and 0.11.1 releases were not published

Thanks for raising, this was due to the GPG key expiring, this has been resolved as of version 0.11.4.


Convert Negative Amounts to BigDecimal

A send transaction type may have a negative amount. APIObject.format is stripping out the negative sign when converting to BigDecimal. This commit tries to correctly support negative amounts.
To Reproduce
Print out the formatted value compared the hash value. The value on the left is positive if the value on the right is negative.
client = Coinbase::Wallet::Client.new(api_key: '', api_secret: '')
client.accounts.each do |account|
  client.transactions(account.id, fetch_all: true).each do |transaction|
    if transaction.type == 'send'
      puts "#{transaction.amount.amount} : #{BigDecimal(transaction.amount['amount'])}"
    end
  end
end

Thanks!


[SPARK-38325][SQL] ANSI mode: avoid potential runtime error in HashJoin.extractKeyExprAt()

What changes were proposed in this pull request?

SubqueryBroadcastExec retrieves the partition key from the broadcast results based on the type of HashedRelation returned. If the key is packed inside a Long, we extract it through bitwise operations and cast it as Byte/Short/Int if necessary.
The casting here can cause a potential runtime error. This PR is to fix it.
Why are the changes needed?

Bug fix
Does this PR introduce any user-facing change?

Yes, avoid potential runtime error in dynamic pruning under ANSI mode
How was this patch tested?

UT

cc @entong as well

@cloud-fan @entong  @c21  Thanks for the review.
Merging to master/3.2


Voice commands are no longer with latest release of Home Assistant

What version of Music Assistant has the issue?
2.1.0b2
What version of the Home Assistant Integration have you got installed?
2024.5.1
Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

[X] Yes

The problem
When issuing a voice command, such as "Play music by x on device", the following error occurs:
`Logger: homeassistant.components.conversation.default_agent
Source: components/conversation/default_agent.py:347
integration: Conversation (documentation, issues)
First occurred: 3:27:23 PM (4 occurrences)
Last logged: 3:56:39 PM
Unexpected intent error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/intent.py", line 136, in async_handle
result = await handler.async_handle(intent)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/mass/intent.py", line 72, in async_handle
state = await self._get_matched_state(intent_obj, name, area)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/mass/intent.py", line 145, in _get_matched_state
intent.async_match_states(
TypeError: async_match_states() got an unexpected keyword argument 'area'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/conversation/default_agent.py", line 347, in async_process
intent_response = await intent.async_handle(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/intent.py", line 143, in async_handle
raise IntentUnexpectedError(f"Error handling {intent_type}") from err
homeassistant.helpers.intent.IntentUnexpectedError: Error handling MassPlayMediaOnMediaPlayer`
How to reproduce
Issue any voice command to play a song on a device.
Music Providers
Spotify
Player Providers
Chromecast
Full log output
home-assistant_2024-06-05T20-07-36.847Z.log
Additional information
No response
What version of Home Assistant Core are your running
2024.6.0
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Generic x86-64 (e.g. Intel NUC)

Yes HA changed something. Will be fixed soon

Fixed in PR #2427

Confirmed fixed


Add new item to top of grid

Hello Artem!
Is there any option that  control where to add row - at the top or at the end od grid.

This behavior can be redefined with load strategy http://js-grid.com/docs/#load-strategies
In you case you need to redefine finishInsert so that it inserts data to the beginning of the array.
Here is the current implementation:
finishInsert: function(insertedItem) {
            var grid = this._grid;
            grid.option("data").push(insertedItem);
            grid.refresh();
        },

Use unshift instead of push.

finishInsert

@tabalinas This doesn't seem to work for me. Neither the loading strategy nor the config property works. Can you please do a quick jsFiddle for me please? Thanks.

it doesn't work for method "insertItem", use $("#grid").jsGrid("option", "data").unshift(item);


Exclude '.bin' from packages.cson and Update README

Thank you very much for taking the time to contribute!
How people want to synchronize their Atom configuration files is outside the scope of this package. So I'm reticent to accept the README change since it is primarily facilitating synchronization of things other than packages.
It would appear that the bug that caused the spurious .bin directory (see https://github.com/atom/settings-view/issues/348) has been fixed, making the .bin workaround somewhat moot. Even though .bin is a very unlikely package name, I would rather trust that the Atom API works properly than work around it, if at all possible.
Am I misunderstanding the intent here?


Hi,my helium in  on denylist  my name helium is howling lime chinChilla

My address hotspot : 11S5wvSm6Lj3vYiJghQvDmJqrLW8RAsTjWQBpW2ZH7TdGWNkii1

This is not the correct place for that. You can submit a denylist removal request at https://crowdspot.io/.

Hi dear I've already did that , didn't help can u help me to solve the issue

You'll need to be patient - it may take a few days or weeks for the reviewers to go through the removal requests, and if the evidence indicates it's a legitimately deployed hotspot, they'll remove it from the denylist at that time. This is not the correct place for that request.


Access to exception in IGlobalPostProcessor

First things first, love the lib very neat.
We have a global post processor for handling common issues regarding all eps. We also have a middleware to log exceptions the way we need. But now we need to get the exception in the post processor which is not a ValidationFailure one. How can we acomplish this? Any alternative?
Thanks in advance.

it's not possible for a post-processor to "catch" exceptions with the current architecture.
your choices would be to either use the IEntpointFilter introduced in .net 7.
or you could do something like the following with the global post processors with processor state.
var builder = WebApplication.CreateBuilder();
builder.Services.AddFastEndpoints();
builder.Services.AddSwaggerDoc();

var app = builder.Build();
app.UseAuthorization();
app.UseFastEndpoints(x => x.Endpoints.Configurator = ep =>
{
    ep.PostProcessors(Order.After, new MyPostProcessor());
});
app.UseSwaggerGen();
app.Run();

public class MyStateBag
{
    public List<Exception> Exceptions { get; set; } = new();
}

public class MyPostProcessor : IGlobalPostProcessor
{
    public Task PostProcessAsync(object req, object? res, HttpContext ctx, IReadOnlyCollection<ValidationFailure> failures, CancellationToken ct)
    {
        var logger = ctx.Resolve<ILogger<MyPostProcessor>>();
        var state = ctx.ProcessorState<MyStateBag>();

        foreach (var ex in state.Exceptions)
            logger.LogError("{msg}", ex.Message);

        return Task.CompletedTask;
    }
}

public class Endpoint : EndpointWithoutRequest
{
    public override void Configure()
    {
        Get("test");
        AllowAnonymous();
    }

    public override async Task HandleAsync(CancellationToken c)
    {
        try
        {
            throw new InvalidOperationException("blah blah blah");
        }
        catch (Exception x)
        {
            ProcessorState<MyStateBag>().Exceptions.Add(x);
            throw;
        }
    }
}

Oh I see, so Id need to decorate all my endpoints with try-catch blocks to make the exception available for the processor to handle it. I guess I wiill just move the code to the existing middleware, maybe in future releases this could become handy. Whats your thoughts on this?
Thanks!

i don't see post-processors gaining the ability to catch exceptions anytime soon.
for that you can already use the IEndpointFilters introduced in .net 7 (if that logic doesn't really belong in a middleware).

I came across this aswell, I don't see why we would have this section in the documentation if we can't handle exceptions using IGlobalPostProcessors

I came across this aswell, I don't see why we would have this section in the documentation if we can't handle exceptions using IGlobalPostProcessors

you cant catch them there but you have access to the validation failures for purposes such as logging them.

I came across this aswell, I don't see why we would have this section in the documentation if we can't handle exceptions using IGlobalPostProcessors

you cant catch them there but you have access to the validation failures for purposes such as logging them.

Sure, the bit we're talking about is just for when stuff doesn't pass validation. But in the screenshot I sent, it basically says,
"You don't have to make your own middleware for catching exceptions; you could just set up a global post-processor instead...".
I don't think that the IGlobalPostProcessor should be in there, at least not put the way it currently is.
As for the IGlobalPostProcessor, isn't it better if you give it it's own Context, and inside it's context you could have properties such as the Request, the Response, the HttpContext and an optional ExceptionDispatchInfo.

I suppose you'd have to provide a way for PostProcessors to write to the Response.

Hi @dj-nitehawk, first of all, I want to express my admiration for the work you've done with FE.
Like @tcortega, I'm encountering a similar challenge:

provide a way for PostProcessors to write to the Response.

In my current project, I'm implementing the Result pattern in my services. The Result class is crucial as it indicates whether the operation was a success or if there was an error/exception, encapsulating these details.
I'm exploring the implementation of IGlobalPostProcessor to effectively evaluate the status of the Result class and accordingly craft a Response. For successful operations, I utilize the well-known SendAsync method to relay the actual value. Conversely, in case of exceptions, I'm considering creating a custom error result, inspired by issue #230.
This approach, I believe, could enhance the flexibility and error handling capabilities of FE. Could this be a feasible enhancement to Fast Endpoints? Are there any suggestions or guidelines you might have for this implementation?
Looking forward to your thoughts and guidance on this.

@eulerchavez
starting v<IP_ADDRESS>-beta post-processors can be put in charge of sending responses. see example here. i'm sure you can easily translate that to a global processor.
btw, post-processors gained the ability to handle exceptions recently and is available in the current release.
the shape of error responses can also be customized.
if you have further questions, please create a new issue with code samples or a repro.


Not able to assign tooltip (title) to first li (list item) of .select2-results .select2-results__options

Hey selec2 team,
I'm using your selec2:open event to assign tooltip (title) prop using jQuery whenever select2-container is added in DOM
Here is code,
$('#dropdownlist').on('select2:open', function (e) {
$.each(e.target, function (index, item) {
$(item).prop('title', item.text);
});
});
This code is working fine except that title is not being assigned to first li element in selec2-container
I observed by debugging, that initially when select2-container is added in DOM, you are adding extra li with text "Searching.." but after complete render of container, you remove this li.
Is it causing this issue.
Please check this issue and kindly provide solution
Kind Regards
Saad Sayed

This appears to be more of a usage question than a bug report or common feature request.  As we continue to keep the Select2 issue tracker geared towards these two areas, bug reports and common feature requests, we are redirecting usage questions to other communities such as the mailing list, IRC, or Stack Overflow.


'compile_shader' crash on Windows/MSYS2

I'm trying to make any piston application work on msys.
I installed freetype and mingw64 gcc tools on msys2 using pacman, then built rust and cargo from sources, as said in your getting-started tutorial. Everything went fine.
Then I've built spinning-square example with cargo build. This finished without any errors (just some warnings about #[allow(raw_pointer_derive)]) but when I try to run it, I see (always different) runtime errors about 'compile_shader' fuction. There are some examples of them:

$ cargo run
Running target\debug\spinning-square.exe
thread '' panicked at 'compile_shader: 0(1) : error C0000: syntax error, unexpected $undefined at token ""
', C:\msys64\home\Konstantin.cargo\registry\src\github.com-88ac128001ac3a9a\piston2d-opengl_graphics-0.23.0\src\back_end.rs:56
note: Run with RUST_BACKTRACE=1 for a backtrace.
Process didn't exit successfully: target\debug\spinning-square.exe (exit code: 101)

$ cargo run
Running target\debug\spinning-square.exe
thread '' panicked at 'compile_shader: 0(1) : error C0000: syntax error, unexpected $undefined, expecting "::" at token ""
', C:\msys64\home\Konstantin.cargo\registry\src\github.com-88ac128001ac3a9a\piston2d-opengl_graphics-0.23.0\src\back_end.rs:56
note: Run with RUST_BACKTRACE=1 for a backtrace.
Process didn't exit successfully: target\debug\spinning-square.exe (exit code: 101)

$ cargo run
Running target\debug\spinning-square.exe
thread '' panicked at 'compile_shader: 0(1) : error C0000: syntax error, unexpected integer constant at token ""
', C:\msys64\home\Konstantin.cargo\registry\src\github.com-88ac128001ac3a9a\piston2d-opengl_graphics-0.23.0\src\back_end.rs:56
note: Run with RUST_BACKTRACE=1 for a backtrace.
Process didn't exit successfully: target\debug\spinning-square.exe (exit code: 101)

Any changes in OpenGL version in code don't affect result. Other piston applications (e.g. rust-2048) don't work the same way.
I find it strange that I always see different errors without even recompile.
On my linux laptop everything works fine and I have such problems only on Windows/MSYS2. I have also tryed to compile and run simple OpenGL application written in C here but it works fine too.
I use Windows 8.1 64bit, my video card is GeForce GTX 770 and the last driver (361.75) is installed.
Sorry for my bad english.
So what could be the problem and how to fix it? Hope for your help.

Same problem here I believe - though Im using the visual studio build I believe

Also using MSVC, using the tutorial code I seem to gotten different errors when running multiple times without rebuilding.
C:\Users\Brian\Documents\Projects\simple_game>cargo run    Compiling spinning-square v0.1.0 (file:///C:/Users/Brian/Documents/Projects/simple_game)      Running target\debug\spinning-square.exe`
thread '' panicked at 'compile_shader: ERROR: 0:1: '0' : syntax error syntax error
', C:\Users\Brian.cargo\registry\src\github.com-88ac128001ac3a9a\piston2d-opengl_graphics-0.28.1\src\back_end.rs:57
stack backtrace:
0:     0x7ff612e1b6c7 - rt::lang_start::hb4b3697e84472c7btLz
1:     0x7ff612e1af06 - rt::lang_start::hb4b3697e84472c7btLz
2:     0x7ff612e1272f - sys_common::unwind::begin_unwind_inner::h248268d78bb53d12kSt
3:     0x7ff612e12c1d - sys_common::unwind::begin_unwind_fmt::hdae0033914fa114bqRt
4:     0x7ff612e0487c - new
at C:\Users\Brian\Documents\Projects\simple_game<std macros>:8
5:     0x7ff612e0e8e3 - new
at C:\Users\Brian.cargo\registry\src\github.com-88ac128001ac3a9a\piston2d-opengl_graphics-0.28.1\src\back_end.rs:226
6:     0x7ff612d89cb3 - main
at C:\Users\Brian\Documents\Projects\simple_game\src\main.rs:64
7:     0x7ff612e1a8c8 - rt::lang_start::hb4b3697e84472c7btLz
8:     0x7ff612e17298 - sys_common::thread_local::StaticKey::lazy_init::hcef16f113f22e22drIt
9:     0x7ff612e1a74d - rt::lang_start::hb4b3697e84472c7btLz
10:     0x7ff612d94819 - main
11:     0x7ff612e21acf - __scrt_common_main_seh
at f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:255
12:     0x7ffc9bf82d91 - BaseThreadInitThunk
Process didn't exit successfully: target\debug\spinning-square.exe (exit code: 101)
C:\Users\Brian\Documents\Projects\simple_game>cargo run
Running target\debug\spinning-square.exe
thread '' panicked at 'called Result::unwrap() on an Err value: "Attribute 'pos' does not exists in shader"', ../src/libcore\result.rs:746
stack backtrace:
0:     0x7ff65bd1b6c7 - rt::lang_start::hb4b3697e84472c7btLz
1:     0x7ff65bd1af06 - rt::lang_start::hb4b3697e84472c7btLz
2:     0x7ff65bd1272f - sys_common::unwind::begin_unwind_inner::h248268d78bb53d12kSt
3:     0x7ff65bd12c1d - sys_common::unwind::begin_unwind_fmt::hdae0033914fa114bqRt
4:     0x7ff65bd17332 - rust_begin_unwind
5:     0x7ff65bd1e1c8 - panicking::panic_fmt::h5dc62a1e662648a6lcM
6:     0x7ff65bd043ce - unwrap_failedcollections::string::String
at C:\Users\Brian\Documents\Projects\src\libcore\macros.rs:29
7:     0x7ff65bd0d9f4 - unwrap
at C:\Users\Brian\Documents\Projects\src\libcore\result.rs:687
8:     0x7ff65bd04c34 - new
at C:\Users\Brian.cargo\registry\src\github.com-88ac128001ac3a9a\piston2d-opengl_graphics-0.28.1\src\back_end.rs:84
9:     0x7ff65bd0e8e3 - new
at C:\Users\Brian.cargo\registry\src\github.com-88ac128001ac3a9a\piston2d-opengl_graphics-0.28.1\src\back_end.rs:226
10:     0x7ff65bc89cb3 - main
at C:\Users\Brian\Documents\Projects\simple_game\src\main.rs:64
11:     0x7ff65bd1a8c8 - rt::lang_start::hb4b3697e84472c7btLz
12:     0x7ff65bd17298 - sys_common::thread_local::StaticKey::lazy_init::hcef16f113f22e22drIt
13:     0x7ff65bd1a74d - rt::lang_start::hb4b3697e84472c7btLz
14:     0x7ff65bc94819 - main
15:     0x7ff65bd21acf - __scrt_common_main_seh
at f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:255
16:     0x7ffc9bf82d91 - BaseThreadInitThunk
Process didn't exit successfully: target\debug\spinning-square.exe (exit code: 101)
C:\Users\Brian\Documents\Projects\simple_game>cargo run
Running target\debug\spinning-square.exe
thread '' panicked at 'ShaderInfoLog not valid utf8', ../src/libcore\option.rs:704
stack backtrace:
0:     0x7ff65bd1b6c7 - rt::lang_start::hb4b3697e84472c7btLz
1:     0x7ff65bd1af06 - rt::lang_start::hb4b3697e84472c7btLz
2:     0x7ff65bd1272f - sys_common::unwind::begin_unwind_inner::h248268d78bb53d12kSt
3:     0x7ff65bd12c1d - sys_common::unwind::begin_unwind_fmt::hdae0033914fa114bqRt
4:     0x7ff65bd17332 - rust_begin_unwind
5:     0x7ff65bd1e1c8 - panicking::panic_fmt::h5dc62a1e662648a6lcM
6:     0x7ff65bd1f4b4 - option::expect_failed::hd3fbe3b63102864euGO
7:     0x7ff65bd03e13 - expect
at C:\Users\Brian\Documents\Projects\src\libcore\option.rs:298
8:     0x7ff65bd01993 - compile_shader
at C:\Users\Brian.cargo\registry\src\github.com-88ac128001ac3a9a\piston2d-opengl_graphics-0.28.1\src\shader_utils.rs:159
9:     0x7ff65bd046f6 - new
at C:\Users\Brian.cargo\registry\src\github.com-88ac128001ac3a9a\piston2d-opengl_graphics-0.28.1\src\back_end.rs:50
10:     0x7ff65bd0e8e3 - new
at C:\Users\Brian.cargo\registry\src\github.com-88ac128001ac3a9a\piston2d-opengl_graphics-0.28.1\src\back_end.rs:226
11:     0x7ff65bc89cb3 - main
at C:\Users\Brian\Documents\Projects\simple_game\src\main.rs:64
12:     0x7ff65bd1a8c8 - rt::lang_start::hb4b3697e84472c7btLz
13:     0x7ff65bd17298 - sys_common::thread_local::StaticKey::lazy_init::hcef16f113f22e22drIt
14:     0x7ff65bd1a74d - rt::lang_start::hb4b3697e84472c7btLz
15:     0x7ff65bc94819 - main
16:     0x7ff65bd21acf - __scrt_common_main_seh
at f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:255
17:     0x7ffc9bf82d91 - BaseThreadInitThunk
Process didn't exit successfully: target\debug\spinning-square.exe (exit code: 101)
C:\Users\Brian\Documents\Projects\simple_game>cargo run
Running target\debug\spinning-square.exe
thread '' panicked at 'compile_shader: FLEX: Unknown char
ERROR: 0:1: '' : syntax error syntax error
', C:\Users\Brian.cargo\registry\src\github.com-88ac128001ac3a9a\piston2d-opengl_graphics-0.28.1\src\back_end.rs:57
stack backtrace:
0:     0x7ff65bd1b6c7 - rt::lang_start::hb4b3697e84472c7btLz
1:     0x7ff65bd1af06 - rt::lang_start::hb4b3697e84472c7btLz
2:     0x7ff65bd1272f - sys_common::unwind::begin_unwind_inner::h248268d78bb53d12kSt
3:     0x7ff65bd12c1d - sys_common::unwind::begin_unwind_fmt::hdae0033914fa114bqRt
4:     0x7ff65bd0487c - new
at C:\Users\Brian\Documents\Projects\simple_game<std macros>:8
5:     0x7ff65bd0e8e3 - new
at C:\Users\Brian.cargo\registry\src\github.com-88ac128001ac3a9a\piston2d-opengl_graphics-0.28.1\src\back_end.rs:226
6:     0x7ff65bc89cb3 - main
at C:\Users\Brian\Documents\Projects\simple_game\src\main.rs:64
7:     0x7ff65bd1a8c8 - rt::lang_start::hb4b3697e84472c7btLz
8:     0x7ff65bd17298 - sys_common::thread_local::StaticKey::lazy_init::hcef16f113f22e22drIt
9:     0x7ff65bd1a74d - rt::lang_start::hb4b3697e84472c7btLz
10:     0x7ff65bc94819 - main
11:     0x7ff65bd21acf - __scrt_common_main_seh
at f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:255
12:     0x7ffc9bf82d91 - BaseThreadInitThunk
Process didn't exit successfully: target\debug\spinning-square.exe (exit code: 101)`

Yes sometimes (maybe 1 out of 5 times) it actually Does start :S (without rebuild). But most of the time it doesn't.

The one thing I don't understand is why developers of Piston ignore this thread. They (or he) are the ones who know best how their engine works.

@lem0nify Been busy.
We have encountered a compiler bug concerning corrupted memory before, see https://github.com/gfx-rs/gfx/issues/574. It could be something that only affects MSVC. The process used to find it might be of help https://github.com/rust-lang/rust/issues/22536.
The opengl_graphics backend has an "image_test" example, https://github.com/PistonDevelopers/opengl_graphics/blob/master/examples/image_test.rs, which might be a starting point for reducing the test case. If there is a compiler bug, but not something wrong with the GLSL compiler inside the driver, then a such reduced example would be of great help for the Rust team.

@bvssvni So what should I do?
I've tried to run image_test example, but it shows the same error.

@lem0nify Try remove code from your fork of opengl_graphics and the "image_test" example until you have the minimum amount of code required to trigger the bug.

@bvssvni Sorry I can't remove parts from your code correctly because I don't fully understand rust, piston, opengl, glsl and only start to learn them. So I can only notice that this error is glsl log putted in buffer by gl::GetShaderInfoLog (shader_utils.rs, line 150) but it happens only with textured/150_core.glslv shader (back_end.rs, line 137). Can you please try to investigate the reason?

@lem0nify https://github.com/PistonDevelopers/opengl_graphics/pull/236 fixed a possible dangling pointer. Do you still get the error?

@bvssvni No I don't get it since your prevous reference. Thank you.


Fix tests failing when GOPATH has multiple entries

If gopath contains multiple directories the fileToSlice fails if the project is located under subsequent locations. This patch introduces relative path in said function.

Merged. Thanks!


Fix broken link to AWS Cloud provider settings source

Fixed #17898

Thanks for the update @ronakbanka !!!
/lgtm
/approve

ref:https://github.com/kubernetes/website/issues/17649


Security vulnerability of medium severity in react script module for inflight transitive dependency

When i create a create react app i found a medium security vulnerability in inflight library https://www.npmjs.com/package/inflight?activeTab=versions, the details are below
Veracode Software Composition Analysis(SCA) scan screenshot

SRCCLR-SID-41137
Memory Leak: inflight is vulnerable to a Memory Leak. The vulnerability is due to lack of restriction
s on how many callbacks the library can concurrently support, which can result in a NodeJS out of heap memory crash.
We scanned using a licensed version of veracode tool
Inflight is no more maintained and react-script latest version 5.0.1 has this vulnerability
Please let us know if this can be fixed or any work around

Any update on this?

I too required to fix this vlunerability

Any updates on this?

Is anybody working on it?

Is anybody working on this?

Are you sure this comes from react-scripts? Check under Dependancy Graph section on the Veracode SCA scan.
For me it came from eslint package and react scripts had no issue. If for anyone else it is the eslint package then here's how I sorted it out:
https://dev.to/thecodeinfluencer/possible-fix-inflight-reported-as-a-vulnerability-in-react-project-veracode-sca-2b1h

npm ls inflight

https://github.com/facebook/create-react-app/blob/main/package-lock.json#L15116

Using v10 glob (10.4.2) will solve this as inflight is not used anymore, you can force this by adding "glob": "10.4.2" in your overrides in package.json.
Example:
"dependencies": {
    # ...
},
"overrides": {
    "glob": "10.4.2"
}

This change didn't cause issues in my application, and I don't think it will in yours, but you should test just in case.
Side-note: react-scripts is deprecated and should be avoided anyway for production.


Added attach method in servo class with documentation.

In one of my projects I needed to use servos for a limited amount of time, however the system had to stay up constantly. Sometimes after using the servo it would continue making buzzing noises and draw electricity. The detach method solves this nicely, but Once detached you have to create a new servo object to use it again. As the Arduino board is limited to 12 servo objects at a time I would quickly run out of memory and had to restart the board manually. Being able to detach and attach servos however solves this problem nicely.  As there was already a detach method the attach method was missing. I have also made changes to the firmware to include the attach() method.

Coverage decreased (-0.04%) to 42.197% when pulling 4977aaa63e146f51468485ace3252a0287573aac on MZ93:master into c19fb8673880e8648cc87a47bafdeeebcd56b155 on nanpy:master.


Upgrade cli-color to 1.2.0

Depend on latest supported module versions.
The moved up, down and other moving functions to a sub-object clc.move.

Coverage remained the same at 100.0% when pulling b4b73553ad4b0b7573ad234c1ca6e3c0a545de84 on prantlf:upgrade-cli-color into 68da8261defe424c4ecf7805034f2de778c06d96 on dgarlitt:master.

What a shame that @dgarlitt has disappeared :( I hope he's doing well ...
I've had the same changes waiting since May 2017 (see PR https://github.com/dgarlitt/karma-nyan-reporter/pull/32) ... perhaps some day both will get merged 🙏


Fixed #26500 -- Added SKIP LOCKED support to select_for_update().

Buildbot, test on oracle.

I tested the patch locally against PostgreSQL 9.5 through Docker but the tests are skipped on the CI server since it only ships with 9.4.

Could you add a mention of features.has_select_for_update_skip_locked to the release notes for third-party database backends?
The first commit looks good to merge.

CI server should be running PG9.5 -- did you observe otherwise?

That's odd, it looks like the tests are skipped.

Everything should be good now.


Support SCHED_IDLE

https://github.com/opencontainers/runc/pull/3377
https://github.com/opencontainers/runtime-spec/pull/1136

Hi, this feature whether having finish?
https://github.com/containers/youki/blob/ab60bfc7e1fc5847b9b164812233ead012692279/crates/libcgroups/src/v2/cpu.rs#L103

@lengrongfu :100:


Post-installation script fails on RHEL 6,7,8,9 when there are readonly variables in /etc/profile

On our hardened instances of RHEL the postinstallation script embedded in scx fails, which causes the SSL certs to not be properly generated, or even existing certificates being removed during upgrades.
  Running scriptlet: scx-1.7.0-0.x86_64                                                                                2/4
/etc/profile.d/bash_timeout.sh: line 1: TMOUT: readonly variable
warning: %post(scx-1.7.0-0.x86_64) scriptlet failed, exit status 1
Error in POSTIN scriptlet in rpm package scx

We work around it for upgrades by removing the file /etc/opt/omi/ssl/.omi_cert_marker that the scx script is looking for.
Removing the readonly TMOUT is not an option as it is required by our security policy.
I've observed this behavior on all supported versions of RHEL. I've verified the script exits at sourcing /etc/profile by extracting it and running the script manually using sh -x

thanks for reporting it!

I've seen this issue before as well.  I found that this line 'set autologut 15' appears to be the culprit.
One server had these lines:
cat /etc/profile.d/tmout.sh
TMOUT=900
export TMOUT
readonly TMOUT
set autologout 15
The symptom was the variable autologout was somehow replacing 'start, stop, status' in the failing script with 'autologout' .
script start|stop|status
became
script autologout | autologout | autologout
Commenting out 'set autologout' resolved the issue.  Strange indeed.

Yes, I have also noticed this issue with multiple customers. Anything that has "set" meaning that it is setting a custom variable in the profile, which causes the installation to fail.

the issue due to installation calls . /etc/profile to get environment variables.
https://github.com/microsoft/SCXcore/issues/164 also due to the calling script failed.


FSI evaluates expressions incorrectly

Repro steps
How to reproduce the error:

Start fsi in a console
Write a statement that you will have to change, like "let manhatanDistence (pixel1, pixel2) = and before you hit enter to start next line of code you backspace to correct the misspellings and write the line again.
Press enter.

Expected behavior
No error and to be able to write the next line of code.
Actual behavior
An error that shows that fsi has evaluated the statement incorrectly. Mixing up characters and having more characters than the actual expression.
Known workarounds
The issue does not seem to come up if I don't have to go back to delete and retype some characters.
Related information
I've tried fsi within the terminal of Visual Studio Code and in a stand alone terminal and the issue is the same.
I'm not sure about the following to be related (so with a strong disclaimer on the validity of this statement but I should mention it since it might help you), but I've had some seriously strange behavior on unit testing with f sharp as well since I observed the issue described above.
OS: Ubuntu 18.04.1 LTS
FSI Version: 10.2.3
dotnet sdk version: 2.1.503
.NETRuntime: CoreCLR
Editing Tools: VS Code 1.30.2, FSI in a standalone console.

Closing out issues in this repo, if necessary please reopen at https://github.com/dotnet/fsharp, which is now the unified repository for F# work


Adding support for Big_int by default

The Big_int type from the standard library is a little bit "awkward", it doesn't fit in the standard convention. Would it be possible to have special cases to support this special case?

Probably not. You should use zarith anyway most of the time. If you use Big_int really a lot, you can define your own wrapper module.


opposite category model in stdlib

An OpC model is a struct that wraps a category. Some tests of op(FinSetC) are provided.
Addresses https://github.com/AlgebraicJulia/GATlab.jl/issues/101

Need to update this in light of #106


Update quick-start.md

The note about defaulting to index.js is incorrect. Electron 0.36.7 gives a syntax error and halts.

Hi @hintjens!
I'm not able to reproduce this on v0.36.7 (i.e. index.js is defaulted to as noted) and don't believe this behavior would have been changed so it looks like there is something else causing this error for you.
If you're still having the error please open an issue and we can get to the root of it there. Thanks! :sparkles:


:book: Create deploy-on-k3d.md

Use K3D instead of Kind for improved performance.

Summary
Document steps for running KS v0.21.0 on K3D.  The procedure could be simplified to more closely match running on Kind.
Related issue(s)
Fixes #

Fix commit and improve document


Generalize PatchCore to support feature map sizes other than (28, 28).

Description
This PR generalizes the PatchCore model to support different input sizes and different layers of the ResNet models.
This is implemented by inferring the pooling/downsampling ratio from the layer names.
The ratio is then used to calculate the feature map size.
The largest feature map size is used in the AnomalyMapGenerator to recreate the shape of the 2D-shape from the 1D-embedding.
It assumes the layer names and downsampling ratios are the same as in the torchvision implementation of ResNet.

Fixes issue #40 for ResNets.

Changes

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Checklist

[x] My code follows the pre-commit style and check guidelines of this project.
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing tests pass locally with my changes

@Lucas-Steinmann thanks for clarifying. I wasn't aware of the discussion in https://github.com/openvinotoolkit/anomalib/issues/40. Your solution is a nice improvement already, so I would not mind merging it and extending it later.
On the long term, I still think it would be better to achieve this without pre-computing the feature map size. It won't be necessary to pass a blank image or instantiate the anomaly map generator during inference. Since self.feature_map_size is only used in compute_anomaly_map, it doesn't need to be an attribute. Instead, we could pass it along with the patch scores when we call the anomaly map generator from the model's forward method.

Oh sure, right. Good catch!

@Lucas-Steinmann, following this PR to address the feature dimension issue in PatchCode, another community PR was created in #148. Based on the discussions here, the proposed solution in #148 is not limited to ResNet, but generic to other backbones as well. Does the solution in #148 suit your needs? If so we will close this PR and merge #148? We really appreciate your effort, kindly welcome you to keep contributing this repo.

Yes, that's perfect.


Running state cache

At present, nydus-snapshotter queries daemon's state each
time when it gets daemon object's state. The query comes
from several positions which cause duplicated query.
We can use single-flight mechanism to query daemon'state
to reduce unnecessary comunications between processes.

Codecov Report
Base: 38.58% // Head: 37.90% // Decreases project coverage by -0.67% :warning:

Coverage data is based on head (2ecb7b8) compared to base (0b0782c).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #248      +/-   ##
==========================================
- Coverage   38.58%   37.90%   -0.68%
==========================================
  Files          28       28
  Lines        2032     2042      +10
==========================================
- Hits          784      774      -10
- Misses       1145     1166      +21
+ Partials      103      102       -1

Impacted Files
Coverage Δ

pkg/daemon/daemon.go
0.00% <0.00%> (ø)

pkg/manager/manager.go
20.75% <0.00%> (ø)

pkg/auth/kubesecret.go
23.71% <0.00%> (-7.22%)
:arrow_down:

pkg/blob/blob_manager.go
18.84% <0.00%> (-4.35%)
:arrow_down:

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.


Adding Python program to print diamond shaped pattern

I am participating in Hacktober'21, and would like to contribute to this repo by providing code to draw a diamond shaped pattern when the user enters the number of rows. Kindly do assign it to me.

I'd like to contribute to this issue by writing python program to print diamond shaped pattern.. Kindly assign me this issue.

Hello @keshavsingh4522  . I would like to contribute to this issue . Please accept my pull request .


Invariant Violation

My code looks similar to the one given in the example in the ReadMe. Any idea why I get this error?
Error message:
Uncaught Error: Invariant Violation: addComponentAsRefTo(...):
Only a ReactOwner can have refs. This usually means that you're trying to add a ref to a component that doesn't have an owner (that is, was not created inside of another component's render method). Try rendering this component inside of a new top-level component which will hold the ref.

Turns out the issue was caused because all my components were using the global React loaded by an external file directly onto DOM, but boron was using the react from NPM dependency.
Multiple versions of react won't play well together.
I've fixed the issue by doing this on top of my root component:
const React = require('react')
window.React = React

This way, I can continue to not explicitly do "require('react')" in the rest of components in my component hierarchy. And, both my components, and boron get to use the same version of react.


Update Outline Proxy Controller docker build

This updates the build from Ubuntu Cosmic (which is no longer available)
to Ubuntu Focal (supported until 2025).  This required removing use of
deprecated Boost API calls.
This PR also changes the default DNS server to better match the behavior of
other Outline clients.

Could we specify the version number (20.04.1) instead of the code name (focal)?

Done!  I also ended up having to make some other changes because the build started failing with a newer Boost version.  (I'm not sure why this didn't happen the first time...)  While I was doing that, I decided it was a good time to update the DNS server choice too.


What is an average amount of time that Sysprep takes?

It seems that Sysprep takes a lot of time. What is an appropriate timeout?

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

ID: 1bb18731-b0b4-f92b-7ece-031a84c76d7b
Version Independent ID: 27047a2a-a07b-cadb-fab5-ecc928b46717
Content: How to create Windows VM Images with Packer in Azure
Content Source: articles/virtual-machines/windows/build-image-with-packer.md
Service: virtual-machines-windows
GitHub Login: @cynthn
Microsoft Alias: cynthn

There is not an average time I am aware of. Really depends on how big the OS image is, what settings are being applied etc. So could take 10 mins. Could take an hour plus.

I will close this but if you have further questions let me know and we can always reopen and continue the discussion.


[BUG] feature naming inconsistency in WindowSummarizer

The following warning message seems to point towards a naming inconsistency in WindowSummarizer, of input vs output features.
It also indicates there may be a "time bomb" here, i.e., the estimator itself or tests going to break with sklearn 1.2:
 forecasting/compose/tests/test_reduction.py: 12 warnings
  C:\Miniconda\envs\test\lib\site-packages\sklearn\base.py:493: FutureWarning: The feature names should match those that were passed during fit. Starting version 1.2, an error will be raised.
  Feature names unseen at fit time:
  - 0_lag_1
  - 0_mean_1_12
  - 0_mean_1_3
  - 0_std_1_4
  Feature names seen at fit time, yet now missing:
  - Number of airline passengers_lag_1
  - Number of airline passengers_mean_1_12
  - Number of airline passengers_mean_1_3
  - Number of airline passengers_std_1_4

FYI @danbartl

Fixed by #2486


[stable/prometheus-operator] allow empty ruleSelector and ruleNamespa…

…ceSelector
Currently an empty ruleSelector or ruleNamespaceSelector does not select
all PrometheusRules or Namespaces respectively. Fix the prometheus
template to allow empty ruleSelector and ruleNamespaceSelector.

What this PR does / why we need it:
Currently an empty ruleSelector or ruleNamespaceSelector does not select
all PrometheusRules or Namespaces respectively. Fix the prometheus
template to allow empty ruleSelector and ruleNamespaceSelector.
Special notes for your reviewer:
@gianrubio By default all ServiceMonitors and PrometheusRules in all namespaces will be selected.
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md

/assign @gianrubio

@ntroast The guidelines specify that charts should select their own resources by default, and from what you are saying this chart breaks this requirement : https://github.com/helm/charts/blob/master/REVIEW_GUIDELINES.md#deployments-statefulsets-daemonsets-selectors

@vsliouniaev Sorry, I should have been more clear. By default ruleSelectorNilUsesHelmValues and serviceMonitorSelectorNilUsesHelmValues are true. This will add a selector to select based on labels just like before. When these values are false then all will be selected in all namespaces. Therefore, this meets the selectors requirement.

/ok-to-test
/lgtm

Your changes to the description of the behaviour of the namespace selector don't correspond to what is described in the API for prometheus operator. https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#namespaceselector
Also, pretty certain that the behaviour of nil and {} is equivalent and cannot be distinguished by Helm templating


Cannot convert return expression of type '()' to return type '...' when using guard

Description
Compiler failed with an error and didn't provide location information (file, line, column). The error appears 20+ times in the xcode build logs, on many files, but it was only because of 1 file. There was no error in the Issue Navigator, only the build logs.
Steps to reproduce
This was while using combine, but the issue I believe is with the swift type system.
The use was:
struct Item {}
struct Record {}

myDictionaryPublisher // [Int: Item]
    .compactMap({ $0[itemIndex] })
    .map { [weak self] item -> [Record] in
        guard let self else { return }
        return self.createRecords(with: item)
    }
    .assign(to: &$records)

And the error was:
<unknown>:0: error: cannot convert return expression of type '()' to return type '[Record]'
Except it wasn't on any line, and in the build logs showed on 20+ files.
Commenting out .assign(... changed the compiler to only show 1 error:
Unexpected non-void return value in void function
However, this was on the line return self.createRecords(with: item)
But the real issue was the guard needed to return:
guard let self else { return [] }
Expected behavior
Error appears on the file, line, column in Xcode (and in the build logs)
Environment
swift-driver version: 1.62.15 Apple Swift version 5.7.2 (swiftlang-<IP_ADDRESS>.5 clang-14<IP_ADDRESS>)
Target: arm64-apple-macosx13.0
Xcode 14.2
Build version 14C18
Deployment target: iOS 14

I think this was fixed by https://github.com/apple/swift/pull/59982
Can you verify in the latest master snapshot and close? Thanks

Can you verify in the latest master snapshot and close? Thanks

Or, we’d be happy to verify it for you if granted a self-contained test case 😉

Thank you! faced the same problem, and you info helps a lot!

Duplicate of #59716


Verify Functions account for lists of size 0 and None

If you haven't already, please read through our contributing guidelines before opening your PR
What is the purpose of this PR?
Closes #19.
How did you implement your changes
Added some logic for handling None values and lists of size 0.
Remaining issues
N/A

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

20 of 20 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 96.899%

Totals

Change from base Build<PHONE_NUMBER>:
0.1%

Covered Lines:
438

Relevant Lines:
450

💛  - Coveralls


Add event testing

closes #134
closes #135

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
see 5 files with indirect coverage changes

lgtm


fix symbolic links on unix

Previously executables that are just links to another executable (kind of like aliases) would not have been found.
This was the case for cargo in my installation for example.
If you don't mind, I'd love to have this pr labeled as hacktoberfest-accepted.

Nice, thanks!


VueDeepSet.extendMutation with modules

Thank you for this package.  It has worked well for me on my current Vue project, considering I'm trying to find the most efficient and the least tedious way to 2-way bind large Vuex objects to components.
I ran into some issues recently, and I wanted to confirm if part of what I'm doing is correct before I explain further.  If I'm using namespaced modules for Vuex, can I still use the code I'm showing below, with the mutation at the root? I did try wrapping each module's mutations with VueDeepSet.extendMutation() , but it didn't seem to fix my particular issue.
const store = new Vuex.Store({
    plugins: [createPersistedState()],
    modules,
    mutations: VueDeepSet.extendMutation()
});

Thanks,
Paul

We use this package with Vuex modules, and only register the VUEX_DEEP_SET mutation once in the root store.
Perhaps a fiddle can help us here, please, feel free to modify as you wish and share your issue:
https://jsfiddle.net/reynerhl/1L4ywy2t/2/

You should be able to use modules with the example store you shared, you just need to set the path for the module in separate $deepModel calls

Thanks.  I think I do have the binding set up correctly, and that part works.  My issues probably have nothing to do with vue-deepset, so I won't bother you about the specifics.
I do just want to ask one further question about the package, and then I'll be done.  I'm using a computed property as shown below.  Is it preferable or necessary to always change this computed property directly, or are normal Vuex mutations just as fine to use?
computed: {
    contact: function() {
        return this.$deepModel('contact.record'); // referring to a Vuex module named 'contact'
    }
}

For instance, can I use something like this without interfering with vue-deepset?
mutations: {
    updateRecord: function(state, contact) {
        state.record = _.assign({}, state.record, contact);
    }
}

The app I'm working on is starting to get complex (for me at least). I would love to be able to confidently implement this package, because I haven't found another solution for what I'm trying to do.  Would you be available for an hour of paid consulting? If not, no problem.  If so, please email me at<EMAIL_ADDRESS>.
Thanks,
Paul


Use current locale as the default in get_tool_locale()

Fixes #79585
I wasn't sure if line 709 should have a similar change.

This assumes that a translation for the loaded locale exists though, which is always true for "en", but isn't guaranteed otherwise

Note that the documentation for TrsnslationServer could do with an update, as it says get_tool_locale returns the same as get_locale when not in tool mode: https://docs.godotengine.org/en/stable/classes/class_translationserver.html#class-translationserver-method-get-tool-locale

Note that the documentation for TrsnslationServer could do with an update, as it says get_tool_locale returns the same as get_locale when not in tool mode

Indeed, docs are outdated. It was the same as get_locale, but behavior was changed in https://github.com/godotengine/godot/pull/73716 to fix https://github.com/godotengine/godot/issues/73710.

Also, in the editor I tried setting internationalization/rendering/root_node_layout_direction

It should be set to 2, but the setting is incorrectly configured, will open a fix for that

Thanks @AThousandShips and @bruvzg
I took a closer look at how get_tool_locale() works in code, and managed to get something simple to work.  Apologies for the confusion; I'll go ahead and close this pull request.


symlinks outside cakephp root directory

cakephp-instaweb seems not to be able to cope with symlinks pointing outside the root directory.
I have an application inside ~/workspace/myapp, while the cakephp root directory is placed inside ~/workspace/cakephp. If I symlink ~/workspace/myapp to ~/workspace/cakephp/app, I always get error 500 from the server.
However, if I copy ~/workspace/myapp to ~/workspace/cakephp/myapp and then symlink ~/workspace/cakephp/myapp to ~/workspace/cakephp/app, everything works as expected; this let me thing it is not a problem with symlinks in general. Have you got any ideas about that?
Regards,
Matteo

Hm, sorry I can't seem to reproduce this, nor can I think of why Twisted would not follow symlinks.
Perhaps your PHP installation is not following symlinks? Can you reproduce this problem with Apache?

I tried again on Ubuntu (when I filled the bug I was running cakephp-instaweb on Windows with cygwin), and now everything works as expected.
Regards,
Matteo


Upgrade to VS Code 1.59

Upgrade to VS Code 1.59

how to upgrade to vs code 1.59?

You can't unfortunately. We have to but we should have an update out soon!

./ci/dev/update-vscode.sh
can I use this script to update?

1.60 is out ;)

can I use this script to update?

On your personal code-server instance? No you can't :(

vscode 1.60 is out, it would be nice to upgrade vscode-server to 1.60 instead of 1.59

@TeffenEllis can confirm which version she is upgrading us to! But it's a WIP

@jsjoeio, @CAFA1,
That’s correct! We’re currently working through the upstream changes in 1.60.0 and should have a release out within this or next week.

Awesome! Thanks for clarifying. I updated the issue title.


Fix table of contents linking

haddocset currently rewrites,
foo

To
foo

This seems to mess with Dash's (at least in Dash 3) table of contents in the
bottom left part of the window. It expects to append the name to the URL so
it ends up with a double-encoded version. For example,
criterion-<IP_ADDRESS>/Criterion.html#t:Benchmark%23t:Benchmark

The fix for this is simply to leave the  tags alone.
Alternatively, this version of ToC support (which I assume is new) will have to be implemented.

It appears that this breaks clicking on the symbol names in the doc.

Okay, so this only breaks clicking on the referenced identifier in the document. That is, foo is no longer clickable, foo still works. I think that's an acceptable tradeoff to get the table of contents working.

I'll add dashAnchor to fix this issue.
I think it worked well.


Improve project blocks on new curriculum superblock pages?

I was looking at the new curriculum, the certification projects blend in with the rest of the projects pretty good. I played around with it in the dev tools real quick and came up with this:

Wondering if we should do something to distinguish the cert projects from the rest of the blocks. It doesn't have to look like the image.

YES! I vote for that, and adding the word "Certification" before the word Project.

We could replace the first sentence "This project is a requirement ..." with a tag to make it stand out.
Also experimenting with different icons and backgrounds is an option.


fix: address issues with how parameters work for subtools

This fixes a few things relating to how setting parameters for sub tools work. It removed the "plus" button as well as the "enter" keybinding for new params. Instead, there is a new button to add params. This improves the UX since many users were getting confused why their params were not automatically persisting.

There was another confusing issue where tools without chat would have the chat bar enabled. This has been addressed and looks like the following.

There is a third issue here where the running of this tool does not actually requests the user to input their parameters. This will be fixed in a follow-up to minimize the size of this PR. That change will take some work.
#413

@thedadams I added what I mentioned earlier. Can you take a look and see if you like it better?