text:
orb_advertise_multi: failed to set queue size

Hi,
I found that there is a error when booting.
[uorb] orb_advertise_multi: failed to set queue size

However, I don't understand what's the meaning.
Could you tell me the meaning?
Thanks

Thanks... @bkueng
I understand it!!


text:
param : fix shell handler usage string

Fixes #4715
@kd0aij FYI.

Thanks!

source: gharchive/pull-request

authors: LorenzMeier mhkabir

license_type: permissive

license_source: github-api


text:
sensors: use interpolation to set param from RC input

This PR changes the set_params_from_rc() function to use linear interpolation between the user-defined min, center, and max values based on the RC Input value. Since rc_val is essentially a percentage, and constrained from -1.0 to +1.0, all that's required to implement this is a small change to the "param_val" calculation as such:

if rc_val is positive (or 0.0): param_val = [center value] + rc_val * ([max value] - [center value])
if rc_val is negative: param_val = [center value] + rc_val * ([center value] - [min value])

Of course, this will be a change of philosophy in parameter tuning via RC input. In my personal case, while gain tuning a new airframe I set some values for MC_PITCHRATE_D assuming the parameter would interpolate between min, center, and max values. Since I left the "Scale" value to 1.0 and the derivative gains are so small, any small change in the RC Input away from the center input would immediately change the parameter from center to min or center to max. So the derivative gain didn't do anything as I increased the transmitter knob from min to its center, then just past half-way on the knob, the derivative gain immediately went from my min to my max value, causing some pretty wild behavior.
All that said, in my opinion, the presented change is a simpler approach to parameter tuning via RC input such that the end user doesn't need to figure out a "Scale" value for appropriate interpolation, rather the end user only needs to set min, center, and max values and the software will set the parameter accordingly.

Jenkins test this please.

This makes it non-linear. I'm not sure if that's more intuitive for others.

@LorenzMeier Yes, technically it's piece-wise linear, so linear from minimum-to-center, then linear from center-to-maximum values. The advantage is that the interpolation is taken care of by the software; no need to set a scale value (essentially a slope). I would argue that this is more intuitive than requiring an end-user to calculate their own scale value, especially if they're gain tuning in the field and there's no clear indication of what the scale value does (specifically from the ground station).
Below is an illustration wherein I set a range of values to tweak MC_PITCHRATE_D. Without knowing that "Scale" needs to be adjusted - QGC says "Scale (keep default)" - the only possible param values from the transmitter knob are essentially the min, center, and max values. Full disclosure, in this particular case, you do have some in-between values here, but as soon as rc_val >= +/-0.02, the param is at min/max.

Of course, this isn't quite as bad if you're tuning with some larger numbers (e.g. MC_PITCHRATE_P -
see below), but even so, the change in this PR gives a more intuitive range of values between min, center, and max.

Indeed, you may have quite different scales on either side of the center (zero) value. However, this makes plenty of sense if you want to start tuning from the middle and perhaps you want to severely limit your tuning in one direction and leave a large range in the opposite direction.

I have nothing against the change, but it will require changing the UI, in particular this is how QGC displays it:

This patch removes the scale.
What we could do is adjust the min/max values of the UI to center -/+ scale when the user changes the scale. Or displaying a graph as the one you show would make it clear as well.

authors: LorenzMeier bkueng davidaroyer


text:
Running FALCON and FALCON_UNZIP on different clusters

Hi,
Due to some reasons I have run the falcon assembler on one cluster and got the results but I am not able to run the unzip on it on the same cluster. I want to know if I want to run the unzip on the assembled genome using another cluster, what folders and files I need on the destination machine to make it happen?
I know unzip uses a lot of pre-computed files etc. from falcon assembly step (https://github.com/PacificBiosciences/FALCON_unzip/issues/100), but since the files and directories generated are huge, and transferring them will take a long time and sometimes even not possible, I want to make sure what the essential files are and skip the others if possible.
Thanks for any guidance,

You need a lot of the .las files, which account of most of the disk-space, so basically you are best off just copying the entire tree to the other cluster.

source: gharchive/issue

authors: bostanict pb-cdunn


text:
Restore newlines

Most of this is whitespace changes to undo bad clang-formatting from before, but along the way I discovered that we were not format-checking the include/ dir, so I fix that here as well.

A helpful thing (because github lacks whitespace suppression):
git diff -w

And post the resulting diff here (in triple-backticks, or via a GitHub "gist": https://help.github.com/articles/about-gists/ )

+1

Whoa! You can append `?w=1

https://github.com/blog/967-github-secrets
https://github.com/PacificBiosciences/unanimity/pull/36

Looks like there are still a lot of changes to opening braces, but still less than the full diff.

Sorry for all the edits. Here is the link:

https://github.com/PacificBiosciences/unanimity/pull/36/files?w=1

I have a question: Is this the result of running clang-format with the latest config? I hope so, rather than manual edits. A good clang-format.cfg could be helpful in all our C++ code. I think Vlad would love it.

@pb-cdunn a lot of it is, but unfortunately maintenance of vertical whitespace isn't something that clang-format handles exactly.

I remember the same problem with the google-style-guide reformatter.
Despite the annoyance, I think a canonical reformatter is worth the pain of a less-them-perfectly-pleasing choice of whitespace.

authors: dalexander nlhepler pb-cdunn

repo: PacificBiosciences/unanimity


text:
Problem with carla_env.py

Congratulation for this work !
I'm just beginner in the field of reinforcement learning and I have some basic questions.
I'm trying to implement the "a2c_gym.py" function in the Carla environment on windows.
I had a problem when calling carla_env.py due to "os.setsid" and "os.getpsid" specific commands to Linux.
I would like to know how can I replace them for windows? What is exactly their role in the process?
Another request please, how is the model of RL recorded after training? For example, in a CNN case, the output is a .h5 file containing resulting weights. We can use it therefore for further training or test. In the case of RL implemented, how do we get the model for further use?

Hi @YasminaJaafra ,
In the code, to handle multiple instances of the CARLA environment os.getpgid is used and os.setsid is used to create a new session (for demonizing) when launching a new CARLA server process.
These are available in Unix and most likely not in Windows. Although there are ways for you to get it to work on Windows, there might be incompatibility with other components (for example PyTorch / CARLA simulator themselves may have issues running well on windows etc) as well. If you are planning to spend time working on machine learning projects like these, it may be a good idea to use Ubuntu/OS X. If you want to get it working on windows, you can replace the os.getpgid with os.getpid calls which is available on Windows as well and you can get away without using os.setsid for the preexec_fn when using Popen.
Regarding your other question, for the RL agent algorithms in this repository, the model weights are stored to disk as PyTorch models, which also contain some meta-data (like the mean episode reward, best reward, number of steps trained etc) in addition to the model weights. You can find some pre-trained RL model weights in the "trained_models" directory for some chapters. For example: this directory has trained A3C / A2C models for the CARLA environment and a few other environments.
Hope that helps.

Thank you @praveen-palanisamy for your promt answer.
I replaced os.getpgid with os.getpid and it seems working OK.
Regarding the stored model weights, while operating the RL training, I noted that under the path ch8/trained_models, there are two files (A2C_Carla-v0.ptm and A2C_Carla-v0.ptm.agent_params) which update date and size (13 mo and 1 ko) never change. Is the RL saving its new weights only when it produces better rewards?

Yes. You could change the environment settings (number of vehicles/pedestrians etc) for every new episode if you want by creating a new environment instance directly using the CarlaEnv class. This will be useful for curriculum learning like setups.
For example, you can create new environment instances using: env = CarlaEnv(env_config) where env_config is a dictionary similar to the ENV_CONFIG dictionary.
You can change the complexity of the environment by changing the scenarios parameter. This wiki page explains how to create custom scenarios in CARLA gym which can be used to change the number of vehicles, pedestrians etc to increase/change the complexity of the driving environment.
Once you have created the driving scenarios you want (using this wiki ), you can choose to pick the complexity/scenarios at random after every n episodes. To pick the driving scenario/ environment at random, you can pass a list of Scenarios to the "scenarios" field in the config dictionary that you pass to CarlaEnv(config).
For example, if you want to randomly choose between Lane Keeping, Turning along Curves, Dynamic obstacles etc, you can use something like the following code:
...
env_config = {
    "discrete_actions": True,
    "use_image_only_observations": True,  # Exclude high-level planner inputs & goal info from the observations
    "server_map": "/Game/Maps/" + city,
    "scenarios": [scenario_config["Lane_Keep_Town2"], scenario_config["Curve1_Town2"],
                scenario_config["Nav_Town2"]],
    "framestack": 2,  # note: only [1, 2] currently supported
    "enable_planner": True,
    "use_depth_camera": False,
    "early_terminate_on_collision": True,
    "verbose": False,
    "render" : True,  # Render to display if true
    "render_x_res": 800,
    "render_y_res": 600,
    "x_res": 80,
    "y_res": 80,
    "seed": 1
}
env = CarlaEnv(env_config)
...

authors: YasminaJaafra praveen-palanisamy

license: MIT


text:
Text Input: Basic text input

Carry on from issue #18.

TASK COMPLETE!
The first section called "Text field types", it is come in two types:

Filled text fields
Outlined text fields

The second section called "Inputs types", it is come in three types:

with Single-line
with Multi-line
with Text Area

⤷ Here's the currently file in Figma.

repo: Padax/w-components


text:
terminate called after throwing an instance of 'util::CompressedException'

通过docker配置的环境，执行到sh run_infer.sh 报错，模型下载路径已经修改了
English LM
LibriSpeech Model
root@6c5480fbb525:/DeepSpeech/examples/tiny# sh run_infer.sh
Download language model ...
download_lm_en.sh: 8: [: 099a601759d467cd0a8523ff939819c5: unexpected operator
--2019-05-08 10:25:03--  https://deepspeech.bj.bcebos.com/en_lm/common_crawl_00.prune01111.trie.klm
Resolving deepspeech.bj.bcebos.com (deepspeech.bj.bcebos.com)... 180.149.142.214, 220.181.33.43
Connecting to deepspeech.bj.bcebos.com (deepspeech.bj.bcebos.com)|180.149.142.214|:443... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable
The file is already fully retrieved; nothing to do.

download_lm_en.sh: 20: [: 099a601759d467cd0a8523ff939819c5: unexpected operator
-----------  Configuration Arguments -----------
alpha: 2.5
beam_size: 500
beta: 0.3
cutoff_prob: 1.0
cutoff_top_n: 40
decoding_method: ctc_beam_search
error_rate_type: wer
infer_manifest: data/tiny/manifest.tiny
lang_model_path: models/lm/common_crawl_00.prune01111.trie.klm
mean_std_path: data/tiny/mean_std.npz
model_path: checkpoints/tiny/params.pass-19.tar.gz
num_conv_layers: 2
num_proc_bsearch: 8
num_rnn_layers: 3
num_samples: 10
rnn_layer_size: 2048
share_rnn_weights: 1
specgram_type: linear
trainer_count: 1
use_gpu: 1
use_gru: 0
vocab_path: data/tiny/vocab.txt
I0508 10:25:22.147784    89 Util.cpp:166] commandline:  --use_gpu=1 --rnn_use_batch=True --trainer_count=1
[INFO 2019-05-08 10:25:26,183 layers.py:2606] output for conv_0: c = 32, h = 81, w = 54, size = 139968
[INFO 2019-05-08 10:25:26,184 layers.py:3133] output for batch_norm_0: c = 32, h = 81, w = 54, size = 139968
[INFO 2019-05-08 10:25:26,185 layers.py:7224] output for scale_sub_region_0: c = 32, h = 81, w = 54, size = 139968
[INFO 2019-05-08 10:25:26,186 layers.py:2606] output for conv_1: c = 32, h = 41, w = 54, size = 70848
[INFO 2019-05-08 10:25:26,187 layers.py:3133] output for batch_norm_1: c = 32, h = 41, w = 54, size = 70848
[INFO 2019-05-08 10:25:26,187 layers.py:7224] output for scale_sub_region_1: c = 32, h = 41, w = 54, size = 70848
[INFO 2019-05-08 10:25:30,907 model.py:243] begin to initialize the external scorer for decoding
Loading the LM will be faster if you build a binary file.
Reading models/lm/common_crawl_00.prune01111.trie.klm
----5---10---15---20---25---30---35---40---45---50---55---60---65---70---75---80---85---90---95--100
terminate called after throwing an instance of 'util::CompressedException'
what():  kenlm/util/read_compressed.cc:376 in util::ReadBase* util::{anonymous}::ReadFactory(int, uint64_t&, const void*, std::size_t, bool) threw CompressedException.
This looks like a gzip file but gzip support was not compiled in. in file models/lm/common_crawl_00.prune01111.trie.klm
*** Aborted at 1557311130 (unix time) try "date -d @1557311130" if you are using GNU date ***
PC: @                0x0 (unknown)
*** SIGABRT (@0x59) received by PID 89 (TID 0x7fc83aaa1700) from PID 89; stack trace: ***
@     0x7fc83a67d390 (unknown)
@     0x7fc83a2d7428 gsignal
@     0x7fc83a2d902a abort
@     0x7fc8227d084d __gnu_cxx::__verbose_terminate_handler()
@     0x7fc8227ce6b6 (unknown)
@     0x7fc8227ce701 std::terminate()
@     0x7fc8227ce969 __cxa_rethrow
@     0x7fc817195c24 util::FilePiece::TransitionToRead()
@     0x7fc8171966f9 util::FilePiece::FilePiece()
@     0x7fc8171a9ee1 lm::ngram::detail::GenericModel<>::InitializeFromARPA()
@     0x7fc8171ac13b lm::ngram::detail::GenericModel<>::GenericModel()
@     0x7fc8171a33db lm::ngram::LoadVirtual()
@     0x7fc8172d4a5f Scorer::load_lm()
@     0x7fc8172d8041 Scorer::setup()
@     0x7fc8172d813d Scorer::Scorer()
@     0x7fc817292f48 _wrap_new_Scorer
@           0x4c468a PyEval_EvalFrameEx
@           0x4c2765 PyEval_EvalCodeEx
@           0x4de6fe (unknown)
@           0x4b0cb3 PyObject_Call
@           0x4f492e (unknown)
@           0x4b0cb3 PyObject_Call
@           0x4c9faf PyEval_EvalFrameEx
@           0x4c2765 PyEval_EvalCodeEx
@           0x4de6fe (unknown)
@           0x4b0cb3 PyObject_Call
@           0x4f492e (unknown)
@           0x4b0cb3 PyObject_Call
@           0x4f46a7 (unknown)
@           0x4b670c (unknown)
@           0x4b0cb3 PyObject_Call
@           0x4c9faf PyEval_EvalFrameEx
Aborted (core dumped)
Failed in inference!

把models/lm/common_crawl_00.prune01111.trie.klm 删除了，再运行一遍就好了。。。好神奇的bug。

repo: PaddlePaddle/DeepSpeech


text:
KITTI数据和自己采集的数据处理相关问题

有两个问题想请教一下：
1.在训练3D点云目标检测模型时，如KITTI数据集中的样本按照难易程度分为了三类：easy、moderate和hard。这种分类会影响模型训练时损失计算和参数调整吗？
2.在自己采集的点云数据中，由于没有采集图像，直接标注的3D信息，这种情况下如何计算目标的截断占比？（看到源码中数据的难易值和截断信息、遮挡状态等有关）

@cxy86121

这几个类别只是最终计算指标时区分了不同的样本计算mAP，不会影响loss
建议上KITTI官网查看下说明

该issue较长时间无反馈，先关闭，如有问题请重新打开或者建立新的issue


text:
使用 python/predict_cls.py 预测时报错：给定的新形状和原始的张量大小不匹配

PaddleClas版本以及PaddlePaddle版本：PaddleClas release/2.4和paddlepaddle-gpu 2.4.1.post112
涉及的其他产品使用的版本号：无
训练环境信息：
a. 具体操作系统：Linux
b. Python版本号：Python3.9
c. CUDA/cuDNN版本： CUDA10.2
完整的代码(相比于repo中代码，有改动的地方)、详细的错误信息及相关log

/home/aistudio/work/PaddleClas-2.4.0/deploy
2023-03-12 10:29:39 INFO:
===========================================================
==        PaddleClas is powered by PaddlePaddle !        ==
===========================================================
==                                                       ==
==   For more info please go to the following website.   ==
==                                                       ==
==       https://github.com/PaddlePaddle/PaddleClas      ==
===========================================================

2023-03-12 10:29:39 INFO: Global :
2023-03-12 10:29:39 INFO:     batch_size : 16
2023-03-12 10:29:39 INFO:     cpu_num_threads : 10
2023-03-12 10:29:39 INFO:     enable_benchmark : True
2023-03-12 10:29:39 INFO:     enable_mkldnn : True
2023-03-12 10:29:39 INFO:     enable_profile : False
2023-03-12 10:29:39 INFO:     gpu_mem : 8000
2023-03-12 10:29:39 INFO:     infer_imgs : /home/aistudio/work/data/test
2023-03-12 10:29:39 INFO:     inference_model_dir : models/SwinTransformer_infer
2023-03-12 10:29:39 INFO:     ir_optim : True
2023-03-12 10:29:39 INFO:     use_fp16 : False
2023-03-12 10:29:39 INFO:     use_gpu : True
2023-03-12 10:29:39 INFO:     use_tensorrt : False
2023-03-12 10:29:39 INFO: PostProcess :
2023-03-12 10:29:39 INFO:     SavePreLabel :
2023-03-12 10:29:39 INFO:         save_dir : ./pre_label/
2023-03-12 10:29:39 INFO:     Topk :
2023-03-12 10:29:39 INFO:         class_id_map_file : /home/aistudio/work/data/data/labels.txt
2023-03-12 10:29:39 INFO:         topk : 5
2023-03-12 10:29:39 INFO:     main_indicator : Topk
2023-03-12 10:29:39 INFO: PreProcess :
2023-03-12 10:29:39 INFO:     transform_ops :
2023-03-12 10:29:39 INFO:         ResizeImage :
2023-03-12 10:29:39 INFO:             resize_short : 256
2023-03-12 10:29:39 INFO:         CropImage :
2023-03-12 10:29:39 INFO:             size : 224
2023-03-12 10:29:39 INFO:         NormalizeImage :
2023-03-12 10:29:39 INFO:             channel_num : 3
2023-03-12 10:29:39 INFO:             mean : [0.485, 0.456, 0.406]
2023-03-12 10:29:39 INFO:             order :
2023-03-12 10:29:39 INFO:             scale : 0.00392157
2023-03-12 10:29:39 INFO:             std : [0.229, 0.224, 0.225]
2023-03-12 10:29:39 INFO:         ToCHWImage : None
Traceback (most recent call last):
  File "python/predict_cls.py", line 165, in <module>
    main(config)
  File "python/predict_cls.py", line 139, in main
    batch_results = cls_predictor.predict(batch_imgs)
  File "python/predict_cls.py", line 99, in predict
    self.predictor.run()
ValueError: In user code:

    File "tools/export_model.py", line 36, in <module>
      engine.export()
    File "/home/aistudio/work/PaddleClas-2.4.0/ppcls/engine/engine.py", line 487, in export
      paddle.jit.save(model, save_path)
    File "<decorator-gen-123>", line 2, in save

    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/wrapped_decorator.py", line 26, in __impl__
      return wrapped_func(*args, **kwargs)
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/jit.py", line 649, in wrapper
      func(layer, path, input_spec, **configs)
    File "<decorator-gen-122>", line 2, in save

    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/wrapped_decorator.py", line 26, in __impl__
      return wrapped_func(*args, **kwargs)
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/base.py", line 67, in __impl__
      return func(*args, **kwargs)
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/jit.py", line 928, in save
      inner_input_spec, with_hook=with_hook)
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/dygraph_to_static/program_translator.py", line 580, in concrete_program_specify_input_spec
      is_train=self._is_train_mode())
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/dygraph_to_static/program_translator.py", line 485, in get_concrete_program
      concrete_program, partial_program_layer = self._program_cache[cache_key]
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/dygraph_to_static/program_translator.py", line 955, in __getitem__
      self._caches[item_id] = self._build_once(item)
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/dygraph_to_static/program_translator.py", line 944, in _build_once
      **cache_key.kwargs)
    File "<decorator-gen-119>", line 2, in from_func_spec

    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/wrapped_decorator.py", line 26, in __impl__
      return wrapped_func(*args, **kwargs)
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/base.py", line 67, in __impl__
      return func(*args, **kwargs)
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/dygraph_to_static/program_translator.py", line 888, in from_func_spec
      outputs = static_func(*inputs)
    File "/home/aistudio/work/PaddleClas-2.4.0/ppcls/engine/engine.py", line 526, in forward
      x = self.base_model(x)
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/layers.py", line 950, in __call__
      return self._dygraph_call_func(*inputs, **kwargs)
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/layers.py", line 935, in _dygraph_call_func
      outputs = self.forward(*inputs, **kwargs)
    File "/home/aistudio/work/PaddleClas-2.4.0/ppcls/arch/backbone/legendary_models/swin_transformer.py", line 747, in forward
      x = self.forward_features(x)
    File "/home/aistudio/work/PaddleClas-2.4.0/ppcls/arch/backbone/legendary_models/swin_transformer.py", line 738, in forward_features
      for layer in self.layers:
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/dygraph_to_static/convert_operators.py", line 106, in convert_while_loop
      _run_py_while(cond, body, getter, setter)
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/dygraph_to_static/convert_operators.py", line 165, in _run_py_while
      body()
    File "/home/aistudio/work/PaddleClas-2.4.0/ppcls/arch/backbone/legendary_models/swin_transformer.py", line 739, in forward_features
      x = layer(x)
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/layers.py", line 950, in __call__
      return self._dygraph_call_func(*inputs, **kwargs)
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/layers.py", line 935, in _dygraph_call_func
      outputs = self.forward(*inputs, **kwargs)
    File "/home/aistudio/work/PaddleClas-2.4.0/ppcls/arch/backbone/legendary_models/swin_transformer.py", line 536, in forward
      for blk in self.blocks:
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/dygraph_to_static/convert_operators.py", line 106, in convert_while_loop
      _run_py_while(cond, body, getter, setter)
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/dygraph_to_static/convert_operators.py", line 165, in _run_py_while
      body()
    File "/home/aistudio/work/PaddleClas-2.4.0/ppcls/arch/backbone/legendary_models/swin_transformer.py", line 537, in forward
      x = blk(x)
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/layers.py", line 950, in __call__
      return self._dygraph_call_func(*inputs, **kwargs)
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/layers.py", line 935, in _dygraph_call_func
      outputs = self.forward(*inputs, **kwargs)
    File "/home/aistudio/work/PaddleClas-2.4.0/ppcls/arch/backbone/legendary_models/swin_transformer.py", line 355, in forward
      x = x.reshape([B, H, W, C])
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/tensor/manipulation.py", line 3662, in reshape
      outputs={"Out": out, "XShape": x_shape},
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/layer_helper.py", line 45, in append_op
      return self.main_program.current_block().append_op(*args, **kwargs)
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/framework.py", line 4023, in append_op
      attrs=kwargs.get("attrs", None),
    File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/framework.py", line 2858, in __init__
      for frame in traceback.extract_stack():

    InvalidArgumentError: The 'shape' in ReshapeOp is invalid. The input tensor X'size must be equal to the capacity of 'shape'. But received X's shape = [16, 3136, 128], X's size = 6422528, 'shape' is [16, 96, 96, 128], the capacity of 'shape' is 18874368.
      [Hint: Expected capacity == in_size, but received capacity:18874368 != in_size:6422528.] (at /paddle/paddle/phi/infermeta/unary.cc:1435)
      [operator < reshape2 > error]

使用的是哪个大小的SwinTransformer呢

使用的是哪个大小的SwinTransformer呢

使用的是SwinTransformer_base_patch4_window12_384.yaml

我如果用 tools/infer.py 进行预测是没有问题的，但使用 deploy/python/predict_cls.py 进行预测就会报错，半年之前也出现过这种问题但当时没有提issue

这个需要改一下图片的大小，从224改成384

repo: PaddlePaddle/PaddleClas


text:
请提出你的问题
1、使用lora微调参数之后，在训练的时候，看官方给出的应该是流程应该是pretrained的部分与lora部分（A和B）计算求和，但是只训练A和B部分。但是，我看paddle中实现，只是将LoRAMergedLinear 把 (query_key_value): Linear 进行了替换，然后进行训练。没有2部分求和？请问是什么原因呀

LoRA不一定需要求和。训练的时候可以两个branch都走，但是只训练A或者B. 我们也有求和的逻辑，见.eval()和.train()

大佬，在看构建lora的时候，有一个参数enable_lora_list，设置的参数是[[True, False, True]]，为什么这么设定？如果设置 [[True, True,False]] 这种，有什么区别，我看构建的之后参数量都一样

[[True, False, True]]，为什么这么设定？如果设置 [[True, True,False]] 这种，有什么区别，我看构建的之后参数量都一样

[[True, False, True]]的意思是打开q和v的lora, 关闭k的lora. 原因是qkv_projection被融合在了一起，所有有一个单独的开关控制

[[True, False, True]]，为什么这么设定？如果设置 [[True, True,False]] 这种，有什么区别，我看构建的之后参数量都一样

[[True, False, True]]的意思是打开q和v的lora, 关闭k的lora. 原因是qkv_projection被融合在了一起，所有有一个单独的开关控制

大佬，使用lora微调之后，是不是只需要把lora层替换qkv层就行了吧，然后参数进行model.set_state_dict就可以了吧？
我用自己的数据微调之后遇到一个问题，效果很差，不如全量训练的效果。但是，微调的loss 要比全量调的loss要小。（微调用的glm2b，全量的是glm-large） 这种情况是什么原因？可以怎么提升效果呢

大佬，使用lora微调之后，是不是只需要把lora层替换qkv层就行了吧，然后参数进行model.set_state_dict就可以了吧？ 我用自己的数据微调之后遇到一个问题，效果很差，不如全量训练的效果。但是，微调的loss 要比全量调的loss要小。（微调用的glm2b，全量的是glm-large） 这种情况是什么原因？可以怎么提升效果呢

lora使用请直接参考https://github.com/PaddlePaddle/PaddleNLP/blob/develop/examples/language_model/glm/finetune_generation.py#L113，API已经完全封装好了，不需要你手动替换。效果差也许可能是使用的方式的问题，我们用lora结果都不错，先使用正确的api先吧

https://github.com/PaddlePaddle/PaddleNLP/blob/develop/examples/language_model/glm/finetune_generation.py#L113

这个我看到了，finetune_generation 是封装好了，但是predict_generation 里面不支持lora 加载

这个我看到了，finetune_generation 是封装好了，但是predict_generation 里面不支持lora 加载
后续会加入

这个我看到了，finetune_generation 是封装好了，但是predict_generation 里面不支持lora 加载

后续会加入
大佬，我现在需要用lora的进行predict_generation。只需要按照finetune_generation里面方式构建loramodel，然后将训练好的lora_model_state.pdparams参数，把lora_a和lora_b进行替换，其他的参数都不用变动。然后就可以推理了？

这个我看到了，finetune_generation 是封装好了，但是predict_generation 里面不支持lora 加载

后续会加入

在采用lora分布式训练的时候，训练结束存储lora参数的时候有bug，没有对参数进行merge。

在采用lora分布式训练的时候，训练结束存储lora参数的时候有bug，没有对参数进行merge。

如果没有merge weights, 那么推理的时候需要再LoRAModel from_pretrained一次。

authors: liuzhipengchd sijunhe

repo: PaddlePaddle/PaddleNLP


text:
[Bug]: model export failed with error: "ValueError: The feeded_var_names[0]: 'input_ids' doesn't exist in pruned inference program. Please check whether 'input_ids' is a valid feed_var name, or remove it from feeded_var_names if 'input_ids' is not involved in the target_vars calculation."

软件环境
- paddlepaddle:
- paddlepaddle-gpu: 0.0.0
- paddlenlp: 2.6

重复问题

[X] I have searched the existing issues

错误描述
# Export.
    if training_args.do_export:
        input_spec = [
            InputSpec(shape=[None, None], dtype="int64", name="input_ids"),
            InputSpec(shape=[None, None], dtype="int64", name="token_type_ids"),
            InputSpec(shape=[None, None], dtype="int64", name="position_ids"),
            InputSpec(shape=[None, None, None, None], dtype="float32", name="attention_mask"),
            InputSpec(shape=[None, None], dtype="int64", name="omask_positions"),
            InputSpec(shape=[None], dtype="int64", name="cls_positions"),
        ]
        export_model(trainer.pretrained_model, input_spec, model_args.export_model_dir, model_args.export_type)

稳定复现步骤 & 代码
Traceback (most recent call last):
File "PaddleNLP/applications/zero_shot_text_classification/run_train.py", line 154, in
main()
File "PaddleNLP/applications/zero_shot_text_classification/run_train.py", line 150, in main
export_model(trainer.pretrained_model, input_spec, model_args.export_model_dir, model_args.export_type)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlenlp/transformers/export.py", line 59, in export_model
paddle.jit.save(model, save_path)
File "", line 2, in save
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/wrapped_decorator.py", line 25, in impl
return wrapped_func(*args, **kwargs)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/jit/api.py", line 752, in wrapper
func(layer, path, input_spec, **configs)
File "", line 2, in save
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/wrapped_decorator.py", line 25, in impl
return wrapped_func(*args, **kwargs)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/base.py", line 75, in impl
return func(*args, **kwargs)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/jit/api.py", line 1208, in save
clip_extra=configs.clip_extra,
File "", line 2, in save_inference_model
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/wrapped_decorator.py", line 25, in impl
return wrapped_func(*args, **kwargs)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/framework.py", line 473, in impl
return func(*args, **kwargs)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/io.py", line 315, in save_inference_model
prepend_feed_ops(main_program, feeded_var_names)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/io.py", line 92, in prepend_feed_ops
i=i, name=name
ValueError: The feeded_var_names[0]: 'input_ids' doesn't exist in pruned inference program. Please check whether 'input_ids' is a valid feed_var name, or remove it from feeded_var_names if 'input_ids' is not involved in the target_vars calculation.

done

paddlepaddle-gpu安装了dev版导致错误，安装正式版本就可以了


text:
[chatglm] add unittest

PR types

Others
PR changes

Others
Description

Add unittest for ChatGLM tokenizer and model.

TODO：Tokenizer 实现与 PaddleNLP 规范一致。


text:
使用Serving預測，顯存異常增長

各位先進跟大佬好
我照着官方教程並使用docker部署模型，遇到一個問題，就是啓動服務放一天預測，發現顯存會異常增長
操作過程

我用docker-compose建立image並run一個可以使用轉換過的模型進行預測的container
FROM registry.baidubce.com/paddlepaddle/paddle:2.2.2-gpu-cuda10.2-cudnn7

RUN git clone https://github.com/PaddlePaddle/Serving
RUN bash Serving/tools/paddle_env_install.sh
RUN cd Serving && pip3 install -r python/requirements.txt

RUN pip3 install paddle-serving-client==0.8.2
RUN pip3 install paddle-serving-app==0.8.2
RUN pip3 install paddle-serving-server-gpu==0.8.2.post102

version: "3.2"
services:
  ernie_service:
    container_name: "ernie_service"
    runtime: "nvidia"
    build:
      context: .
      dockerfile: Dockerfile
    restart: always
    volumes:
        - /etc/localtime:/etc/localtime:ro
        - ./serving_server:/serving_server
    ports:
      - 9292:9292
    command: bash -c "python -m paddle_serving_server.serve --model /serving_server --port 9292 --gpu_id 0 --thread 10"

./serving_server資料夾內放的是可服務化的ERNIE-1.0情感分類模型（就是用官方教程導出的東西）

經過一段時間預測發現顯存使用量從原本的1~2 GB異常增長到7.6 GB
client.py的片段代碼如下
TOKENIZER = ErnieTokenizer.from_pretrained("checkpoints/model_100")
CLIEN_CONFIG_FILE = "./serving_client/serving_client_conf.prototxt"
PREDICT_SERVERS = ["127.0.0.1:9292"]
MAX_SEQ_LENGTH = 128

CLIENT = Client()
CLIENT.load_client_config(CLIEN_CONFIG_FILE)
CLIENT.connect(PREDICT_SERVERS)

input_ids, token_type_ids = batchify_fn(batch)
fetch_map = CLIENT.predict(
  feed={"input_ids": input_ids, "token_type_ids": token_type_ids},
  fetch=["save_infer_model/scale_0.tmp_1"],
  batch=True
)

Service端的就沒有代碼了，因爲是直接使用paddle_serving_server.serve啓動的

想請問是我姿勢不正確還是遇到什麼問題？
非常感謝！

Client端不会使用显存，显存是在Server端使用。推理过程框架会根据输入参数的batch和数据长度会额外分配一些显存用于计算和cache。建议开启 --ir_optim 会将多个OP合成Pass，或者通过编译源码设置更大的初始化显存数量

感謝解說
那麼，如果打開--ir_optim 的話，是針對單一batch還是多個來源的輸入？

authors: NatLee TeslaZhao

repo: PaddlePaddle/Serving


text:
配置信息问题

请问一下配置文件~/.paddle/config中的username、password、endpoint都是需要通过向管理员申请吗？如何申请？我按照教程中的步骤试了一下，报了如下错误：
AT8864:.paddle shelter$ paddlecloud submit -jobname fit-a-line -cpu 1 -gpu 1 -parallelism 1 -entry "python train.py" fit_a_line/
previous token not found, fetching a new one...
E1227 15:33:57.148716   63616 restclient.go:71] HTTPClient do error Post http://cloud.paddlepaddle.org/api-token-auth/: dial tcp: lookup cloud.paddlepaddle.org: no such host
error submiting job: get token error:Post http://cloud.paddlepaddle.org/api-token-auth/: dial tcp: lookup cloud.paddlepaddle.org: no such host

是因为没有权限吗？

是需要申请的。请问是需要申请国家工程实验室 集群资源还是百度内部集群资源？

感谢回复。需要申请国家工程实验室的集群资源，谢谢！

国家工程实验室资源申请表：http://wenjuan.baidu.com/?code=yxaune
请先提交申请信息，审核通过后会收到帐号开通信息。

@llxxxll 您好，这个网站我打不开，试了一下午了 = =

authors: huxiaoman7 llxxxll typhoonzero

repo: PaddlePaddle/cloud

license_source: bigquery


text:
Is the 0.5.0 build going to be pushed somewhere?

The current 0.3.1 on Docker hub is missing -default-provider and -default-email.

Same problem

+1

@luna-duclos any word on getting the 0.5.0/1.5.0 stuff out?

There are no plans to push a release at this point. It's recommended that you build your own image if you need the newer changes.

We are currently working on integrating some major changes, see #46, #50 and #33, once those are stabilized and working well, a release will be made under the correct new namespace.

Closing this until then.

authors: MalteJ dominikh luna-duclos mlaccetti sfrique

repo: PalmStoneGames/kube-cert-manager


text:
feat!: Mark selected outputs as sensitive, allow tf-0.15, require azurerm-2.46+

Description
feat: Mark selected outputs as sensitive
Pass the sensitive status marked by providers onto the outputs. This
will be a hard requirement from Terraform version 0.15 onwards.
The sensitive outputs are best viewed with -json flag.
For docs, remove the $  prompts because of the linting rule:
"MD014/commands-show-output: Dollar signs used before commands without
showing output"
feat: Allow terraform 0.15.x for all modules and examples
This is the recommended version, so allowing it is a major use case.
feat(loadbalancer)!: Require azurerm provider version 2.46+
When using provider older than 2.46, it visibly warns:
"resource_group_name": [DEPRECATED] in resource "azurerm_lb_backend_address_pool"
Since the examples cannot stay on 2.42 now, pinning them
to the latest version, which is 2.58 (as of now).
It's debatable whether this change is actually Breaking. But for now, I stay on the safe side here.
How Has This Been Tested?
Apply all the examples.
Types of changes

Breaking change (fix or feature that would cause existing functionality to change)

Checklist

[x] I have marked all the changes that users need to see in the Changelog.
[x] I have not marked the Changelog-unworthy commits as feat, fix, or !.
[x] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes if appropriate.
[x] All new and existing tests passed.

@jabielecki apologies for the comments style, I couldn't select the line below source  = "hashicorp/azurerm" to mark my intent of getting your attention on the azurerm provider version... Scusi.

@jabielecki apologies for the comments style, I couldn't select the line below source = "hashicorp/azurerm" to mark my intent of getting your attention on the azurerm provider version... Scusi.

Yeah I understand which line you mean, simply Github wants you to only comment on the lines that are very close to the pull-request under discussion. (Which totally makes sense.)
I don't think we should or could pin the version for these places. These modules are used within bigger setups, so if they are compatible with a range of versions, we allow these versions. Some other piece of the same deployment (say, some Azure module or customer's own module) might require 2.47 for example and we allow that.

authors: damianfedeczko jabielecki


text:
(bug)sticky组件没有加吸顶判断

在设置stickyTop属性的时候，组件并没有判断是否吸顶，默认就设置了stickyTop数值，导致未吸顶的情况出现位置偏移，建议加上吸顶判断修复该bug：
<template>

      <slot>

sticky

      </slot>

</template>

欢迎pr。

https://github.com/PanJiaChen/vue-element-admin/pull/1732

repo: PanJiaChen/vue-element-admin


text:
🛑 SavEnergy Instagram is down

In 455cadc, SavEnergy Instagram (https://www.instagram.com/savenergy.spa/) was down:

HTTP code: 429
Response time: 168 ms

Resolved: SavEnergy Instagram is back up in 8c79942.

repo: PanchoSavEnergy/MonitoreoPaginasWeb


text:
🛑 SavEnergy Instagram is down

In dbe9e0a, SavEnergy Instagram (https://www.instagram.com/savenergy.spa/) was down:

HTTP code: 429
Response time: 131 ms

Resolved: SavEnergy Instagram is back up in e47f479.


text:
[BUG] Turn off the break glass option to still break the glass

Version: [mw3.0-0.5.0.0]
Describe the bug
Turn off the break glass option in ModernWarfare.cfg, and you can still break the glass, which is not the case in version 0.6
To Reproduce
Steps to reproduce the behavior:

Turn off the destroyGlassBlocks option
Shooting at the glass will still damage the glass

Expected behavior
Will not damage the glass
Screenshots / Videos
N/A
Additional context
N/A

In general my thought is that the entire config system needs a redo and needs to be improved heavily.

authors: Koud-Wind Paneedah

repo: Paneedah/paneedah-modern-warfare


text:
Add mention about configs

I want to add an example how to create and manage config files on velocity. It's not finished yet!

Thanks for your interest in contributing! I am going to close this PR as it is a year old now. Should you decide you want to continue - please open a new PR 😄

repo: PaperMC/docs


text:
Importing large databases is broken

Importing large databases seems to be broken. Only the first few tables are imported and no error is printed using CLI.
Tested using a Magento 2.3.4 database.
Might also be a bug in the error handling and displaying of errors of riptide-cli.

Issue was, that riptide-engine-docker wasn't waiting for the import to be finished. It was actually still running in the background.

Fixed via Parakoopa/riptide-engine-docker@d154519a95fdbb869ca1c087bdedf48bff2d3270

repo: Parakoopa/riptide-db-mysql


text:
Script to restrict adding, creating and cloning VMs on an end-user hosts

There is a PDB customer who deploys Parallels Desktop app via MDM and pushes the VMs to end users via Configuration profile. Deploying VMs via MDM and deployment pkg isn't an option for them. They want to have a script to restrict Parallels Desktop on end users' hosts. Pushing one will be done via Jamf Pro.
sudo prlsrvctl set --require-pwd add-vm:on
sudo prlcrvctl set –require-pwd create-vm:on
sudo prlcrvctl set –require-pwd clone-vm:on

@ushakovmd this should now be in there as restrict-operations-add-create-clone.xml

authors: cjlapao ushakovmd

repo: Parallels/prlctl-scripts


text:
added munch slash command

The munch command is meant to be used during a conversation to indicate a short break from the call to eat with intention to return. The user invokes the command, which plays an "eating" sound byte and displays the user that went to eat in a message in the channel. This command also deafens the user until they invoke munch again, signalling the end of their meal.
This pull request is replacing my previous pull request, which was operating with an outdated Paris-Developers fork.

lgtm

authors: CPhantasm coolmarty

repo: Paris-Developers/Mirror-TS


text:
dd "upernet_r50_512x1024_40k_cityscapes to algolib":

功能抽象: 添加upernet_r50_512x1024_40k_cityscapes
类别: 其他
背景: 0.23 版本预研 基于MLU290硬件，完成10个模型预研
测试:

测试: NA

[ ] 已有单元测试
[ ] 新增单元测试
[ ] 修改单元测试
[ ] 每日构建
[ ] 每周构建

报错优化建议: 无

模板中冗余信息已删除

repo: ParrotsDL/mmsegmentation


text:
Dashboard - Cant create a new app

Why does the source code not include the option to create a new app through the dashboard? It seems that I have to create new apps via command prompts. Did I miss something?

Creating a new app is more involved than can be done with the dashboard. You can follow some discussion about how we might add that feature here: https://github.com/ParsePlatform/parse-dashboard/issues/188

authors: bigdoghung drew-gross

repo: ParsePlatform/parse-server


text:
AppFuture supports resources property that describes app's resource consumption

Is your feature request related to a problem? Please describe.
I'd like to manage resources of apps at the application level in terms of cores, memory, disk, and GPU usage. I'm aware that I can turn on resource monitoring for apps, but this forces me to analyze the sqlite database of apps' resource consumption, which is a bit inconvenient.
Describe the solution you'd like
AppFuture supporting the property resources that holds information about its average and maximum resource consumption would be nice. This way I can easily access information about apps' resource usage simply by app.resources.max_cores or something like that.
Describe alternatives you've considered
I'm building a database analyzer to get the resource information of apps out.
Additional context
n/a

I see. Thanks for your detailed reply. Let me think about this problem some more and see what I can/should do.

repo: Parsl/parsl


text:
Update to ChainLink v0.8 and Solidity 0.8

Hello, thanks for this repository, I'm currently learning by it but I found out the project uses a bit old versions of ChainLink and Solidity. I'm writing my own project rn with the latest Solidity compiler and have some issues so would be cool if this repo got updated to latest ChainLink / Solidity / OpenZeppelin

Thanks! Labelled as an enhancement.

authors: PatrickAlphaC talentlessguy

repo: PatrickAlphaC/nft-mix


text:
fatal: couldn't find remote ref refs/heads/master

omf doesn't update:
╭─ ari at ari-arch in ~
╰> omf update
Oh My Fish is up to date.
You are now using Oh My Fish version 7.
Updating https://github.com/oh-my-fish/packages-main master... Done!
archlinux is already up-to-date.
fatal: couldn't find remote ref refs/heads/master
Could not update colored_man_pages.fish.
default is already up-to-date.

tried both
$ omf install https://github.com/patrickf1/colored_man_pages.fish
$ omf install colored-man-pages

at least for now i just git cloned it and put functions/* in my fish functions

TBH, I don't use OMF anymore so I'm not sure why. It's possible it's b/c https://github.com/oh-my-fish/packages-main/blob/master/packages/colored-man-pages is pointing to this repo before it was renamed AND I changed my username.  I'd try to update it but as you can see, the OMF team has merged a single PR to the packages repo since this time last year.
Can you try asking OMF for help?

I should probably just remove OMF from support since I haven't kept up-to-date with them and don't know how it works anymore, sorry :(

TBH, I don't use OMF anymore so I'm not sure why. It's possible it's b/c https://github.com/oh-my-fish/packages-main/blob/master/packages/colored-man-pages is pointing to this repo before it was renamed AND I changed my username. I'd try to update it but as you can see, the OMF team has merged a single PR to the packages repo since this time last year.
Can you try asking OMF for help?

i can try

I should probably just remove OMF from support since I haven't kept up-to-date with them and don't know how it works anymore, sorry :(

oh alright:), i'll just keep it as simple git-clone

Thank you! I'm sincerely sorry I couldn't be of more help. Please let me know how you resolve this when you do.

i made a PR in the package repo
https://github.com/oh-my-fish/packages-main/pull/144/
they might except it, might not, i don't know any other way to resolve it besides git cloning it,
thanks for the help:)

Thank you!
On Fri, May 28, 2021 at 10:45 AM TruncatedDinosour @.***>
wrote:

Closed #6 https://github.com/PatrickF1/colored_man_pages.fish/issues/6.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/PatrickF1/colored_man_pages.fish/issues/6#event-4813953992,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAPAJEHSY7KN7AI7EXXFUGDTP7JCLANCNFSM45XDMNVQ
.


text:
ng-as

Angular pipe and directive for type casting template variables.

Thanks for PR. I think the only other library of yours missing is ng-condition, which I'll add.

authors: jdegand nigrosimone

repo: PatrickJS/awesome-angular


text:
Merging $_GET and $_POST

https://github.com/PatrickLouys/http/blob/master/src/HttpRequest.php#L19
As you may as well know, you merged the $_GET and $_POST. I think you shouldn't merge them. Why? Imagine this scenario:
Lets say you have a $_GET parameter of key "foo", and at the same time, you submit a form with POST with the same key "foo", and once you merge them, don't you think either one of them will be lost? Therefore, I'd recommend you to split them.
Credits: @samayo for finding out and submitting this argument. I posted this on behalf of him because he is busy.

I am aware of that. It was a design choice made on purpose at the time. Mixing GET and POST is not a good idea anyway, especially with the same parameter name. In the end it's just a bunch of parameters that you send to the application.
I'll close this for now. If you have other arguments for a split of the parameters let me know :)

authors: HassanAlthaf PatrickLouys

repo: PatrickLouys/http

license: mit


text:
Angles problems?

I convert the web pack app part into a vite/react-ts project then try to play a bit with the code and found an interesting thing.

PS: I changed to fov angle to PI/2 but that's not the point.
I try to render the fov because your 'arcs' seems a bit off and here's what I saw.
It comes from this part

I don't know why you added Math.PI / 2.0 here ? probably because otherwise we see the fov on the side and not in front of them, but IT REALLY is on the side, you can look with your drawn arcs and this is why birds are constantly turning.

And I would like to add that if I follow your rules for the -sin +cos thing we have a nice render but we can clearly see that the food perception is not based on these calculations:

Oh, that's a nice find - I'll take a look later and try to remind what's going on; I swear angles are a hill I'm going to die on 😅

Yeah adding this fov representation helped me a lot to catch this. I first saw that your arc shapes are not faced to food then I dig with these things. You can try on my repo, I added a mouse hover on birds to debug too.
But yeah if we remove these Math.PI / 2 the representation of the vision appears to be good but then I asked myself if these birds are not flying from the side like crabs 😂 , I'm with you with these angles!

I look back your tuto again.

pi / 2 is not faced to the right if I understand well so this the eye implementation and all tests that are not correct ?

Note that fov_angle corresponds to how wide the eye sees - and so fov_angle of 2PI = the bird sees everything around it, while fov_angle = PI / 2 = the bird sees 90° in front of it; it's not related to the direction 👀

Yes sorry I didn't express myself correctly. The thing I wanna said is that for this test rot: 0 and for a fov angle of PI/2, this is not this result because you said rot 0 is faced to the upward direction no ?
    /// ------------
    /// |        /.|
    /// |      /...|
    /// |    @>...%|
    /// |      \...|
    /// |        \.|
    /// ------------
    ```

Oh no mb you said it was counter clockwise ! I really don't know then..

Okie, so eyes themselves seem to be correct - it's rest of the code that uses funky angles, and applying this:
diff --git a/libs/simulation/src/animal.rs b/libs/simulation/src/animal.rs
index a7e65dd..436949e 100644
--- a/libs/simulation/src/animal.rs
+++ b/libs/simulation/src/animal.rs
@@ -56,7 +56,7 @@ impl Animal {
     }

     pub(crate) fn process_movement(&mut self) {
-        self.position += self.rotation * na::Vector2::new(0.0, self.speed);
+        self.position += self.rotation * na::Vector2::new(self.speed, 0.0);
         self.position.x = na::wrap(self.position.x, 0.0, 1.0);
         self.position.y = na::wrap(self.position.y, 0.0, 1.0);
     }
diff --git a/www/index.js b/www/index.js
index 9b8c02b..354fca6 100644
--- a/www/index.js
+++ b/www/index.js
@@ -261,7 +261,7 @@ function redraw() {
             animal.x,
             animal.y,
             config.food_size,
-            animal.rotation,
+            animal.rotation - Math.PI / 2.0,
             'rgb(255, 255, 255)',
         );

@@ -271,8 +271,7 @@ function redraw() {
             const angleFrom =
                   animal.rotation
                   - config.eye_fov_angle / 2.0
-                  + cellId * anglePerCell
-                  + Math.PI / 2.0;
+                  + cellId * anglePerCell;

             const angleTo = angleFrom + anglePerCell;
             const energy = animal.vision[cellId];

... fixes all of the issues.
Still, I have to investigate what I don't understand about my calculations, then 😄

Okie, got the offender - it seems that eye.rs should have:
let angle = na::Rotation2::rotation_between(&na::Vector2::y(), &vec).angle();

(instead of na::Vector2::x())
It's probably a remnant of me fixing https://github.com/Patryk27/website/issues/11 😅

OH YES perfect ! But all eye.rs tests are failing now x)

Yeah, I'll try to prepare the updated version today :smile:

oh nice man ! but look

if -90 degrees is on the right, then yeah rot 0 is to the top ?

Oh, that's interesting - I guess there's no food in front of that birdie that it could see, right? (i.e. it accidentally sees the food on the left here)

No sorry it's normal for the food but I speak about the -90 degrees rotation here, is pointing to the right good ?  I thought it will be 0 on the right

I see - yes, rotation seems alright here: rotation of zero = fly downward, and then it goes clockwise, so:

rot = 0 => down,
rot = PI/2 => left,
rot = PI => up,
rot = 3/2 PI (or, depending how you look at it, rot = -PI/2) => right.

Ok perfect !


text:
🛑 Frontend Foundry is down

In 2eb35d7, Frontend Foundry (Https://frontend-foundry.patryknamyslak.pl) was down:

HTTP code: 521
Response time: 172 ms

Resolved: Frontend Foundry is back up in fbf07ea after 17 minutes.

repo: PatrykNamyslak/status-check


text:
Add className to general observer div

Add a better way to target the wrapping div with CSS.
I'm currently using the data-testid to target the wrapping div, but that's cumbersome to target with CSS and that really only should be used for testing.

Hey @NerdCowboy Thanks, Happy to merge this in. However, we're not planning to release any package updates until after all our tests have been completed as part of Hactoberfest.
I'd hope a stable release of v1.0.0.0 will be out at the start of Nov. Hope its cool to wait for a little while longer for this change.

authors: NerdCowboy PaulieScanlon

repo: PaulieScanlon/mdx-embed


text:
Update mastercard validation to cater for new 2-series BIN

As of January 2017 mastercard has started issuing 2-series BIN
https://www.mastercard.us/en-us/issuers/get-support/2-series-bin-expansion.html.

never mind, looks like the new range is already included!


text:
Integration with the WooCommerce Subscriptions

Hi! It looks like you support the recurring payments (https://developers.payu.com/en/recurring.html). Is there any chance this plugin will be compatible with the WooCommerce Subscriptions (https://woocommerce.com/document/subscriptions/) anywhere shortly?

It's been a year since filing this suggestion; do you have any plans for supporting this?

authors: blacksaildivision hkosacki

repo: PayU-EMEA/woo-payu-payment-gateway


text:
Minor update to makefiles.

This has absolutely no effect on a standard build since the build.h file in
src/obj always lists the date and time of the last tag qt generates a build.h
file in build/ with the correct (modified) version which is used when creating
the version displayed in the binary but it is only generated by the QT (meaning
the daemon is modifying the date/time a different way).
But as it stands we're removing a not existent file on make clean, so let's
remove the correct file.

Looks good.

repo: PaycoinFoundation/paycoin


text:
Chat completely broken

The new 1.1.0.639 version has completely broken my chat. I could not see my own or other peoples messages and I have no idea what part of the program is causing it.

Can you please provide us with your debug report? You will likely also receive faster support in the discord since more people are active there.

debug_report.zip
This is the debug report, hope it helps's. The bug also seems to only happen in casual. Everything seemed to be normal in community servers.

Do you have a premium account?

I do have a premium account. I also thought for a while that I might still be free to play, but in Steam it says I have the "premium dlc".

In TF2 Steam properties under the language tab is it set to your preferred language?

Well I just went on the discord and downloaded 1.1.0.674 and it fixed the issue. I'm sorry for wasting your time.

That's my bad. Didn't even comprehend that 639 < 674. I can recommend the installed version with auto updating btw. I'm glad it's working for you now

authors: ClusterConsultant MrDrProfMan


text:
Installing a Pebble.js app results in error 16777216

 Issue by Kauzig
Saturday Oct 11, 2014 at 20:32 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT
Originally opened as https://github.com/pebble/cloudpebble/issues/108

When I try to install a Pebble.js app on my phone I get an error message every time (see attachment). The message on the phone only states: "There was an error trying to install the provided app.". C SDK and Simply.js apps are working fine. Pebble app version is 2.4.3 and watch version is 2.6. The phone is an iPhone 5 with iOS 8.0.2. Can be reproduced with apps from the Pebble.js tutorial (to rule out wrong code).

 Comment by vmacavero
Wednesday Oct 15, 2014 at 16:08 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT

me too

 Comment by ghost
Friday Oct 17, 2014 at 15:39 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT

I am getting this error too, on the phone no useful information other than "There was a error trying to install "
I have running IOS 8.0.2

 Comment by ghost
Sunday Oct 19, 2014 at 15:03 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT

upgrading to v2.7 solved the issue

 Comment by vmacavero
Sunday Oct 19, 2014 at 18:10 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT

not for me. Issue stays the same on 2.7

repo: Pebble-Backup/cloudpebble


text:
MultiScaleDeformableAttention

Hello，thanks a lot for sharing the codes !!!
When running the codes, it rasied an error which is ''No module named MultiScaleDeformableAttention''.
The MultiScaleDeformableAttention is used in models/ops/functions/ms_deform_attn_func.py
Is there something that I missed ？ Thanks for replying.

Hi!
@EddieEduardo
Did you solve this problem? Can you tell me the solution? Thanks

repo: PeizeSun/TransTrack


text:
packagegroup-bistro-utils: remove tools preset at tools-testapps

Removed tools that are already part of tools-testapps which is included
in PELUX -dev images.
Also removed openssh-sftp-server as it is also part of the -dev images.
Signed-off-by: Oleksandr Kravchuk oleksandr.kravchuk@pelagicore.com

So you don't look for too long:

https://github.com/Pelagicore/meta-pelux/blob/master/recipes-core/images/core-image-pelux-minimal-dev.bb#L10
http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-core/packagegroups/packagegroup-core-tools-debug.bb?h=thud

Hum, in https://github.com/Pelagicore/meta-pelux/pull/329 you remove tools-testapps?

Hum, in Pelagicore/meta-pelux#329 you remove tools-testapps?

I've meant tools-debug :)

I do not know the history here, so a bit unsure. Does it perhaps make sense to keep openssh-sftp-server in packagegroup-bistro-utils and not add it manually in -dev images in meta-pelux?

Does it perhaps make sense to keep openssh-sftp-server in packagegroup-bistro-utils and not add it manually in -dev images in meta-pelux?

openssh-sftp-server is used by Qt Creator to deploy apps on the image, so they can be quickly tested by Qt/QML developers, so it's is needed by default in -dev image. Tools from the package group will only be needed sometimes by some developers.

Although.. it is probably better to keep it.
Yes, after your description above it sounds like it is best to have it in both places.

authors: martin-ejdestig sashko

repo: Pelagicore/meta-bistro


text:
TLV encoding?

Release notes say:
"Fixed handling of content type format for PUT requests on resource level. Client only accepts text/plain and opaque content-types."
Does it no longer support TLV?

Hi @Alex-EEE,
This is for M2mResource single instance for which client always supported plain and opaque data types only.
Earlier, the handling was imcomplete and it didnt quite check the content type of incoming PUT request properly.
Now the check is in place, so anything other than plain text or opaque will return error as NOT_SUPPORTED format.
Regards,
Yogesh

OMA spec 8.2.5 says " An Object Instance or Resource is written to by sending either a CoAP PUT request to the corresponding path. The request
includes the value to be written in the corresponding Plain Text, Opaque, TLV or JSON format according to the ContentFormat option which MUST be specified [CoAP]. "
So why is TLV not supported for Single Resource?

ARM Internal Ref: IOTCLT-3399

Hi @Alex-EEE,
We can add the support for TLV in future releases, for now its a new feature request for us. We will take that into our backlog.
Regards,
Yogesh

I thought TLV was deprecated?

@loverdeg-ep Sure that's the direction LwM2M is heading, but mbed doesn't have a CBOR serializer yet ( CBOR is what is replacing TLV ).  I actually enabled TLV for resource level in client-lite by only commenting out one line of code, so I figured it would be just as easy here too.  The TLV serializer can definitely serialize a single resource.

I think this discussion can be resolved.

Hello,
I think this is a valid request. Modifying
https://github.com/ARMmbed/mbed-cloud-client/blob/4fc8a9c027623f2f7722ea0b2d475e7772352f6d/mbed-client/source/m2mresourcebase.cpp#L722-L725
to
            if(COAP_CONTENT_OMA_OPAQUE_TYPE != coap_content_type &&
               COAP_CONTENT_OMA_PLAIN_TEXT_TYPE != coap_content_type &&
               COAP_CONTENT_OMA_TLV_TYPE != coap_content_type &&
               COAP_CONTENT_OMA_TLV_TYPE_OLD != coap_content_type) {
                msg_code = COAP_MSG_CODE_RESPONSE_UNSUPPORTED_CONTENT_FORMAT;
            } else {

does resolve the issue for me.
Regards,
Sebastian

Thanks @ghseb !  Did you happen to do a few PUTs and see if the client records the correct value?

Having Each TLV entry starts with a Type byte that indicates if the TLV contains an Object Instance, a Resource, multiple Resources, or a Resource Instance. Object Instance and Resource with Resource Instance TLVs contains other TLVs in their value. in the Lwm2m Specification, i think only the a Resource case was tested by writing binary data to a resource. But this worked out well.
Regards,
Sebastian

Status of cbor serializer?

Any updates for TLV support per spec?

Hi, we have fixed this for upcoming 4.9.0 release.

I'll close this as fixed. Please reopen if issues persist.

authors: Alex-EEE ciarmcom ghseb jbuckAI loverdeg loverdeg-ep teetak01 yogpan01

repo: PelionIoT/mbed-cloud-client


text:
PDM thinks Penny Dreadful Saturdays 6.02 had 9 people in the top 8.

For some reason in Penny Dreadful Saturdays pdm thinks metalatog also made top 8 and is one of the 3/4 position people which makes 9 people. [Here](http://gatherling.com/eventreport.php?event=Penny Dreadful Saturdays 6.02) is the actual order/placing in gatherling for reference.

Three people dropped with records that would get them in to top 8 to cause this fun and games. Updated manually but if we ever re-scrape from Gatherling this will return. Doesn't seem worth making special code for as it should be rare!

authors: BackAlleyG bakert

repo: PennyDreadfulMTG/Penny-Dreadful-Tools


text:
[draft][Frontend] Add frontend for ZNE

Before submitting
Please complete the following checklist when submitting a PR:

[ ] All new functions and code must be clearly commented and documented.

[ ] Ensure that code is properly formatted by running make format.
The latest version of black and clang-format-14 are used in CI/CD to check formatting.

[ ] All new features must include a unit test.
Integration and frontend tests should be added to frontend/test,
Quantum dialect and MLIR tests should be added to mlir/test, and
Runtime tests should be added to runtime/tests.

When all the above are checked, delete everything above the dashed
line and fill in the pull request template.

Context:
Description of the Change:
Benefits:
Possible Drawbacks:
Related GitHub Issues:

[sc-52676]

repo: PennyLaneAI/catalyst


text:
Update LightningBaseFallBack to raise an error instead of falling back to default.qubit

Before submitting
Please complete the following checklist when submitting a PR:

[ ] All new features must include a unit test.
If you've fixed a bug or added code that should be tested, add a test to the
tests directory!

[ ] All new functions and code must be clearly commented and documented.
If you do make documentation changes, make sure that the docs build and
render correctly by running make docs.

[ ] Ensure that the test suite passes, by running make test.

[x] Add a new entry to the .github/CHANGELOG.md file, summarizing the
change, and including a link back to the PR.

[x] Ensure that code is properly formatted by running make format.

When all the above are checked, delete everything above the dashed
line and fill in the pull request template.

Context:
All old-API lightning devices currently fall back to default.qubit in the case of failing to load the Lightning libraries, with some user warning. We want to change this behaviour to raise a runtime error instead.
Description of the Change:
Benefits:
Possible Drawbacks:
Related GitHub Issues:

[sc-58643]

Thanks @vincentmr! What's the motivation for this?

Thanks @vincentmr! What's the motivation for this?

This is syncing the behaviour of L-GPU/Kokkos with that of L-Qubit [sc-58643]

authors: trbromley vincentmr

repo: PennyLaneAI/pennylane-lightning


text:
Update demo checker path

Updates the path being used in the GitHub actions script for the demo output checker added in #356.
This update is required after a commit in the linked PR that has changed the location of the output file. The reason for the location change was a failure when running the check:
refusing to allow a GitHub App to create or update workflow `.github/workflows/demo_output_results/demo_diffs.md` without `workflows` permission

The checks ran well on the latest major commit https://github.com/PennyLaneAI/qml/pull/363/commits/778d8d54ca49c40da9e8b0231ab652dc21f62c00.
The generated file resides on the demo_output_comparison branch here.

@Jaybsoni thanks! It runs both build-dev and build-master anew, so it's expected to run so long. An alternative solution would be to gather the latest artifacts of those two CI checks, but gathering those files would require another push (and the use of GitHub API).

repo: PennyLaneAI/qml


text:
Sync shared mount songs

When a mod that changes the song of a shared mount is used the other person does not listen the modified song
example of such mod: https://www.xivmodarchive.com/modid/49685

nothing I can or plan to do about that, Penumbra thing

authors: Dinokin rootdarkarchon

repo: Penumbra-Sync/client


text:
Automated release

This is an automated pull request to update from branch feat/new-release-20240531111221

@TorinAsakura Код глянул:
Отсутствие упоминания rees в коде - код чистый, всё ок
Корректность изменений - Все изменения в порядке

repo: PersonaClick/ios-sdk


text:
Cairo.Path is leaking, programmer is missing a call to Dispose

The message is shown in application output when running on Linux/Gtk in MonoDevelop.

We need to work what to do here. Problem is that controls are never Disposed of, but Shape has a reference to a cairo path. Maybe it should be disposed when removed from visual tree? Would this fix the message?

I do not use the Shape for rendering geometry and text.
I'm overriding the Render method for Control class:
https://github.com/Core2D/Core2D/blob/master/Core2D.UI.Perspex.Windows/Controls/Drawable.cs#L370
and doing rendering using DrawingContext:
https://github.com/Core2D/Core2D/blob/master/Core2D.UI.Perspex.Windows/Renderer/PerspexRenderer.cs
I can use caching for Pen's and Brushes' but from time to time (when style has changed in my program on new project was loaded) I need to dispose them.

I think this also is important for other platforms, so the pattern of acquiring and disposing drawing resources is consistent.

authors: grokys wieslawsoltes

repo: Perspex/Perspex


text:
Unable to write collections

v.0.9.24 - windows ui
With Steam (Steam Client Service) stopped / shut down, I'm unable to write collections

I'm finding it hard what other information I can provide to help figure out what could be the underlying issue

In your screenshot you show that the Steam SERVICE is stopped, but have you checked in Task manager that the Steam client isn't running?

Yes, its not running there either :)

I can confirm that this is still an issue in v.1.0.3

I have heard from other sources that they also has this problem, so it is not just you. I just can't reproduce it myself currently.

Same here with my steam deck, I'll restart and try again

Can confirm this myself. No Collections created here too. In both Native and Flatpak

i have the same issue, my steam is installed in a different drive and folder, and it seems is ignoring the steam path from the settings and using instead hardcode path like $HOME (*linux) and "Program Files (x86)", it should use the path from the config.toml
https://github.com/PhilipK/BoilR/blob/main/src/steam/collections.rs#L173-L210

Alright, this seems to be fixed in the newest version https://github.com/PhilipK/BoilR/releases/tag/v.1.4.3
I have testet on a windows, linux and steamdeck setup, it works on all of them for me now.
Can someone confirm that it works for them as well?
The problem seems to have been the rusty-leveldb package/crate that was used to write to steams leveldb, after i updated the package to the newest version things started working.
If someone can confirm it works for them I will close this issue.

Yesterday I used version 1.4.1, there it didn't (always) work, it did some times.
But I can confirm that it worked just now when I tried on 1.4.3.
I haven't battletested it multiple times, but on my first try, it seems to work :)

Alright I am going to close this then.
If anyone experiences that it still does not work post comment here and I will reopen the issue

@PhilipK it works fine :) thanks.

Hi! It seems I'm having this issue right now. But the field where I should have the steam folder is empty, maybe it's related? The new shortcuts are created though just not put in the existing collections... Steamdeck here btw.

@ZoidbergForPresident does everything else work? Just the collections missing?

@PhilipK It would seem so, I redid everything after deleting the collections and I had to readd each game to their new collections.

@ZoidbergForPresident I will have to play around with it to see if I can reproduce it.

authors: GodZilly NightHammer1000 PhilipK Squazz ZoidbergForPresident cherokee93 hgouveia lublak

repo: PhilipK/BoilR


text:
支持配置命名空间，避免生成的Enum代码段报错

若配置表里使用的枚举类似与生成的命名空间不一致会出现报错，所以，需要提供一种方案解决这个问题。
目前提供以下两种方案处理：
1、在生成代码文件时配置需要Using的命名空间，在生成代码文件时统一加上这些Using的命名空间；
2、在Enum里支持填写完整的命名空间，如Enum<XXX.EnumType>；

已经实现，v0.7.0

repo: PhonixGame/DataTables


text:
implement position_controllers/ScaledJointTrajectoryController

FZI

Scaled JTC finished and already merged

authors: MGBla nbbrooks


text:
Upgrade org.apache.maven.plugins:maven-dependency-plugin 3.1.2 -> 3.2.0

This PR contains the following updates:

Package
Update
Change

org.apache.maven.plugins:maven-dependency-plugin
minor
3.1.2 -> 3.2.0

[ ] If you want to rebase/retry this PR, check this box.

Suggested commit message:
Upgrade maven-dependency-plugin 3.1.2 -> 3.2.0

See https://github.com/apache/maven-dependency-plugin/compare/maven-dependency-plugin-3.1.2...maven-dependency-plugin-3.2.0

repo: PicnicSupermarket/oss-parent


text:
Getting thumbnail without cueing video

Hi there!
First of all, I absolutely love your library, I am currently using it in my wip mobile app.
My app allows users to browse a library of movies /tv shows/ people associated with cinema. When I open a movie, I cue the YouTube player and then let the user click to start it.
Problem is, when I browse through multiple entries, I end up eating quite a lot of ram, and i suspect the culprit is continuous cueing of movies.
Is there a way to download the movies' thumbnail without cueing the video? Would you consider implementing it in one of your future releases?
XOXO

Hi! It looks like the YouTube IFrame API doesn't offer this functionality, it is easily achievable using the YouTube Data API though.
I don't think it is a good idea to integrate it into the library, it would require the library to handle a lot of cases that are outside the scope of playing videos from YouTube.
My suggestion is to do it yourself outside the player. You could use the YouTube Data API to download the thumbnail of your videos then display the downloaded thumbnails over each player, with a play icon. You could then remove the thumbnail when the play button is pressed, to reveal the underlying player and start playing the video.
Hope this helps!

You could even define this behavior in a custom UI for the player.

Ok, good luck!
let me know if you need any help. It may be interesting to add this as an example in the sample app!
Also, consider leaving a star on github if you find the library useful :)

Hi i've found a solution for this based on this stackoverflow question
So if i need a thumbnail you can use Picasso or Glide
So if you want get the thumbnail you can make this:
`
String video_id = "ALZHF5UqnU4"; //You can get the video also in OnVideoId() listener
String fullsize_path_img = "https://img.youtube.com/vi/"+video_id+"/0.jpg";
String firstThumb_path_img = "https://img.youtube.com/vi/"+video_id+"/1.jpg";
String secondThumb_path_img = "https://img.youtube.com/vi/"+video_id+"/2.jpg";
String thirdThumb_path_img = "https://img.youtube.com/vi/"+video_id+"/3.jpg";
/*
You can use any method for get the image and this is the fastest and simple way of doing
*/
Picasso.get().load(fullsize_path_img).into(my_imageView);
Hope to help!
`

thanks!


text:
The yellow color is overly mustardy

Thoughts @dpoeschl @Pilchie ?

As per last week's Planet Money, we should have a large number of people guess the hex code for a good yellow "skipped" indicator and just take their average.

I think it looks a bit too purple for my taste

Is this a real issue?

authors: DustinCampbell dpoeschl jaredpar rchande


text:
[FEAT]: Added contributors.jsx to display contributors in real time

Fixes: #14
Added contributors.jsx and contributors.css file for getting real time data from GitHub API.
This is how it looks 🔥

Hi @mohiwalla, it looks good, but I hadn't assigned this to you. Please ask before creating a PR. I am closing this PR and assigning this issue to you again. Please create another PR with the same changes.

@mohiwalla, could you please comment on the issue so that I can assign this issue to you?

Done 👍✅


text:
tidb-test: ghpr_integration_mysql_test should checkout pd and tikv in checkout stage.

https://do.pingcap.net/jenkins/blue/organizations/jenkins/pingcap%2Ftidb-test%2Frelease-6.2%2Fghpr_integration_mysql_test/detail/ghpr_integration_mysql_test/24/pipeline/80
same support with ci params in title as tidb.

repo: PingCAP-QE/ci


text:
fix: change executableName to fix incorrect execute command

Description

Hello, I am currently using your package in backend development using dart_frog and I noticed a very strange thing: the name of the command to execute in verbose does not match the command to execute, so I created a PR to fix it, it will help developers avoid confusion in using the execution command.

Before

After

Type of Change

[ ] ✨ New feature (non-breaking change which adds functionality)
[x] 🛠 Bug fix (non-breaking change which fixes an issue)
[ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
[ ] 🧹 Code refactor
[ ] ✅ Build configuration change
[ ] 📝 Documentation
[ ] 🗑 Chore

Thanks @PiotrFLEURY

@dungngminh your changes are now available on pub.dev 🎉
Thanks again for the first open source contribution on nenuphar 🐸

LGTM 🎉

authors: PiotrFLEURY dungngminh


text:
Device Tracker

Describe the feature
It would be nice if there was a entity that could take the in the distance and the bearing so this could be plotted onto a map:
so you could see excatly where the heading and the distance would be.
Home Assistant version
No response
Integration version
No response
Acknowledgements

[X] I have searched this repository and API Repository to see if the feature has already been requested.
[X] This featre request is sepecific to the HA Integration.
[X] I have written an informative title.

This is a really clever idea.  I know it can be in bad form to do this, but I really like this and would like to see this at some point.
One thing to consider is capping the number to the nearest 10 storms.  Or something like that.  But I would be happy with anything here.
That said I wonder if there's a way to implement this using templates in HA Core.

Looks like this one got missed as well. Just to be clear you're looking to plot the distance/bearing on a graph to visualise which way a storm is heading?
I'm not totally sure what is 100% possible in HA so will defer to @alexander0042 to see if this would be possible

I assume that's what the OP is saying.
I think it would be one of those things where you'd use the device_tracker and map functionality.  You can give a device_tracker entity GPS coordinate
It could look something like this:

Spot on, this is exactly what is required.

Sorry for never replying to this, was focused on getting some critical historic data stuff working. The good news is that I got this working using the excellent virtual devices add on! I wrote it up as I was doing it, so let me track that down

Depending on how many locations you're trying call for at once, the default 15 minute call should fall well within the free tier, so hopefully that's ok!
The way I got it working was to create a virtual_tracker.yaml file, which when loaded with that integration provides a virtual device that can move around to show the nearest storm on a map. The file is pretty basic, with these contents:
version: 1
devices:
  Test Device_Tracker:
   - platform: device_tracker

Then, I made a new automation using this yaml:
alias: Storm Device Move
description: ""
mode: single
triggers:
  - entity_id:
      - sensor.pirateweatherc_nearest_storm_distance
    trigger: state
  - entity_id:
      - sensor.pirateweatherc_nearest_storm_bearing
    trigger: state
conditions: []
actions:
  - variables:
      current_lat: "{{ state_attr('zone.home', 'latitude') | float * (pi / 180) }}"
      current_lon: "{{ state_attr('zone.home', 'longitude') | float * (pi / 180) }}"
      distance_km: "{{ states.sensor.pirateweatherc_nearest_storm_distance.state }}"
      direction_deg: "{{ states.sensor.pirateweatherc_nearest_storm_bearing.state }}"
      earth_radius_km: 6371
      direction_rad: "{{ direction_deg | float * (pi / 180) }}"
      new_lat: >-
        {{ (asin(sin(current_lat | float) * cos(distance_km/earth_radius_km) +
        cos(current_lat | float) * sin(distance_km/earth_radius_km) *
        cos(direction_rad))) * (180 / pi) }}
      new_lon: >-
        {{ (current_lon | float + atan2(sin(direction_rad) *
        sin(distance_km/earth_radius_km) * cos(current_lat | float),
        cos(distance_km/earth_radius_km) - sin(current_lat | float) *
        sin(new_lat))) * (180 / pi)  }}
  - target:
      entity_id: device_tracker.test_device_tracker
    data:
      gps:
        latitude: "{{ new_lat }}"
        longitude: "{{ new_lon }}"
    action: virtual.move

It assumes

Your Pirate Weather integration is named "pirateweatherc".
The units for the integration are in si
Your device tracker is called "test_device_tracker"

The automation is triggered every time the nearest storm distance or bearing changes, and calls a service to update the location of the device tracker, giving me a map that looks like this:

I'm very open to adding this directly into the integration somehow; however, it would be a little bit of work. The data is definitely there, but because device trackers look reasonably complex, it's not a trivial thing.

nice work!
I'll be traveling for work this week so i'll have some downtime in the hotel to take a look this week hopefully.

repo: Pirate-Weather/pirate-weather-ha


text:
WPRDC data: Code violations

Just like the 311 and city police data, the WPRDC offers a dataset for code violations for establishments, available here: https://data.wprdc.org/dataset/pittsburgh-pli-violations-report/resource/4e5374be-1a88-47f7-afee-6a79317019b4. Like the city police and 311 data, we just want the results from the past month.

@brandonp728 , do you want to take a crack at this one now? You did that other one so quickly

@vonbearshark yeah, I'd like to!


text:
Hover effect to footer section

Footer section can be made more attractive by adding some great hovering effects ,
please assigned this issue to me under GSSOC'23 .

Yeah, we can add some good hover effects,
assigning this issue to you

Please assign me this task under GSSOC 23

We are closing this issue because it has been inactive for a long time.

authors: Ajay4486 PiyushKalyanpy Visbhavesh

repo: PiyushKalyanpy/GyanaGuru


text:
Repositories pull button doesn't work after failure

when you click the pull button it changes the repository commit hash to HEAD

the commit HEAD what is stored in the DB and is meant to trigger the pull

if the pull fails for any reason then it is left as HEAD so clicking the pull button doesn't change the DB

hence no further actions are taken

changing another field like description triggers the pull to succeed, as the database change is detected and the commit is still set to HEAD

we should probably have a time stamp field update so a change is always detected, this would require a change to models adding a field like (last_pulled) which the controller can update when Pull is clicked regardless of the state of the commit field
@caspiano I would value your thoughts on this as I might have simplified things here

Closed by #28

authors: caspiano stakach

repo: PlaceOS/frontends


text:
运行inference时报错

我下载了模型文件和配置文件并且都改名放在了同一目录下，确定没有中文和空格，但还是报错

您好，感谢反馈！可以把你的finetune_speaker.json和G_latest.pth上传一下吗？我在本地测试一下

好的，我是在b站看到的一个模型，他没有传配置文件所以我又去要了一份配置文件，这个应该没有什么所有权问题吧，作者也是直接发在简介的，上传的后缀改json，模型文件667MB超过限制了
finetune_speaker.zip

他的配置文件有问题，他把symbols都删了，所以本地应用读不出来

好的，感谢解答，我去问问作者
------------------ 原始邮件 ------------------
发件人:                                                                                "Plachtaa/VITS-fast-fine-tuning"                                                                                @.>;
发送时间: 2023年2月23日(星期四) 晚上10:51
@.>;
@.@.>;
主题: Re: [Plachtaa/VITS-fast-fine-tuning] 运行inference时报错 (Issue #17)
他的配置文件有问题，他把symbols都删了，所以本地应用读不出来
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

authors: Plachtaa windbroker

repo: Plachtaa/VITS-fast-fine-tuning


text:
UDMF File format support

So - I have been talking with @andrewmcwatters about UDMF file support in the discord.
I am opening this issue as a feature request so that we have a dedicated 3D level editor for IGF.
The 1.0 spec of UDMF can be found here

A few notes -
Level editors that support the UDMF file format are as followed.
GZDoombuilder - GZDoombuilder is windows only.
SLADE - Slade is Cross platform

@HeadClot I've been interested in including some sort of bsp loader as well. I wonder if these could be included as addons since they'll be much larger in scope? I wish assimp loaded them.

authors: HeadClot andrewmcwatters

repo: Planimeter/lgameframework


text:
Feature/applics 898 welsh cookie banner

Describe your changes
Added Welsh translations to the Cookie banner and the accepted and rejected messages.
https://pins-ds.atlassian.net/browse/APPLICS-898
Useful information to review or test
Test instructions have been added to the Jira ticket
Type of change 🧩

[ ] 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)
[ ] Documentation update
[ ] Other (please explain in the description section above)

Checklist before requesting a review

[X] I have performed a self-review of my own code
[X] I have double checked this work does not include any hardcoded secrets or passwords
[X] I have made corresponding changes to the documentation
[X] I have provided details on how I have tested my code
[X] I have referenced the ticket number above
[X] I have provided a description of the ticket
[X] I have included unit tests to cover any testable code changes

:tada: This PR is included in version 2.30.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.36.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.15.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

authors: AnthonyJWalsh johnmoscrip


text:
🛑 RSSHub is down

In 85fd751, RSSHub (https://rsshub.flyago.cn) was down:

HTTP code: 502
Response time: 3982 ms

Resolved: RSSHub is back up in 91b7733 after 15 minutes.

repo: Plyer/upptime


text:
point out of view in middle of map in ipmag.plot_pole()

What command was run:
    >>> plon = 200
    >>> plat = 70
    >>> A95 = 6
    >>> map_axis = ipmag.make_orthographic_map(central_longitude=200,central_latitude=30)
    >>> ipmag.plot_pole(map_axis, plon, plat, A95 ,color='red',markersize=40, zorder=20)

What happened:
If the point is not in the frame of view, it appears in the middle of the orthographic projection. We think that this is an issue with using transform=ccrs.PlateCarree() in a ccrs.Orthographic projection. We did not have this issue when we were able to use ccrs.Orthographic()
What I expected to happen:
The plot is fine as long as the point is in the view of the projection:

The problem arises when the point is outside of the map area:

PmagPy version:

This issue is gone with cartopy cartopy-0.21.1

repo: PmagPy/PmagPy


text:
[SHIPIT-123] Fix explore homepage lineup

Goal
The Web client isn't getting enough recommendations. It needs at least 20. We accomplish this in two ways:

Limit curated nonsyndicated to 5, to prevent too many duplicates from being removed from the second slate.
Remove the top15 experiment from 'All Curated New Tab', so it can reliably return at least 15 recommendations.

Reference
Slack thread:

https://pocket.slack.com/archives/CR6T8BNCT/p1617924164014300

Implementation Decisions
We created a slate 48e766be-5e96-46fb-acbf-55fee3ae8a28 based on 2e3ddc90-8def-46d7-b85f-da7525c66fb1 because Ian said the latter is used elsewhere, where we don't want to limit to 5 recommendations.

Successfully QA'ed in Pocket-Dev:

repo: Pocket/recommendation-api


text:
Revamped Pokemon list view

New

Cleaner Pokemon details view.
Shows IV percentage instead of decimals.
Now you know exactly which moves each pokemon has.

Preview Before / After:

Good looking!

authors: Outpox kdemoya

repo: PokemonGoF/PokemonGo-Bot-Desktop


text:
"catch_randomize_reticle_factor" seems not working

Expected Behavior
Do "nice" and "great" throws occasionally.
Actual Behavior
Barely do "nice" throws, never do "great" throws.
Steps to Reproduce
"catch_randomize_reticle_factor" : 1,
"catch_randomize_spin_factor"    : 0.3,

Other Information
OS: Windows 7
Git Commit: 2f277fd7d08ff9a7ad45cf46e102a00db7ba9fdf

Or maybe the "+110 exp" was from curve balls, the nice/great/excellent throws were not working at all.

any sort of documentation on "catch_randomize_reticle_factor" and "catch_randomize_spin_factor", would be really welcome.. and i have the same issue!!

Some explaination in the code:
long_flag="--catch_randomize_reticle_factor",
help="Randomize factor for pokeball throwing accuracy (DEFAULT 1.0 means no randomize: always 'Excellent' throw. 0.0 randomizes between normal and 'Excellent' throw)",
...
long_flag="--catch_randomize_spin_factor",
help="Randomize factor for pokeball curve throwing (DEFAULT 1.0 means no randomize: always perfect 'Super Spin' curve ball. 0.0 randomizes between normal and 'Super Spin' curve ball)",

However I doubt it really does what it says.

I found this in code... currently testing it..
API:
# Humanized `normalized_reticle_size` parameter for `catch_pokemon` API.
# 1.0 => normal, 1.950 => excellent
def normalized_reticle_size(factor):
    minimum = 1.0
    maximum = 1.950
    return uniform( minimum + (maximum - minimum) * factor, maximum)

Our code:
   if config.catch_randomize_reticle_factor < 0 or 1 < config.catch_randomize_reticle_factor:         parser.error("--catch_randomize_reticle_factor is out of range! (should be 0 <= catch_randomize_reticle_factor <= 1)")         return None
No sure what to make of it... currently testing withe max api values, but 1.950 doesnt seem to catch anything.. whereas 1 just does a normal throw!

I looked into the code but it seems 1.0 should make excellent throws only ... I don't know why it does not.
Maybe pokemongo recent update change it ?

@vicch @antoineneff @douglascamata  It only do curve ball, no nice/great/excellent throw
This behaviour hugely affects the capture rates :(

#2095 states this is problem in pgoapi.

Actually, the (too simple) problem was in our code. Fixed with #2130.

With #2130 throws are only 210xp ? I have
"catch_randomize_reticle_factor": 1.0,  "catch_randomize_spin_factor": 1.0,

Happy to see it fixed in latest dev, closed.

authors: DayBr3ak Likael antoineneff chauhan-rahul douglascamata vicch xc-mezcal

repo: PokemonGoF/PokemonGo-Bot


text:
Breaks css SVG mask property

Hi - I'm not sure whether it's related to that issue https://github.com/Polymer/vulcanize/issues/53, but grunt-vulcanize breaks the css below where #mask is the id of an inline SVG:
  .mydiv {
    mask: url(#mask);
  }

and replaces it with:
.mydiv {
mask: url(my-polymer/#mask)
}

Yeah, I have vulcanize version locked.
Fixed with 0.6.2 (1d6a33a97d720a743bbc1c130ba47ee54f8df900)

Thanks!

authors: azakus dbismut

repo: Polymer/grunt-vulcanize


text:
Different behavior of render depending on the order of the bindings

Description
This was first noticed while using render with a Polymer 3 component. I couldn't quickly reproduce the same behavior with a LitElement, but it may still occur.
When a TemplateInstance has bindings that are somehow connected, it may end up with different results depending on the order on which they are declared.
For instance, say you have a P3 element with a property which uses the notify feature. If you declare the property and the event associated with its change, the result will differ if the property declaration comes first or last. That seems to be that, because notify makes the call to event listeners synchronously to the property change, if the property binding comes first, then the listener will be called before it's updated.
Steps to Reproduce

Write this code

import { render, html } from "lit-html";

import "./my-element.js";

// Define a template function
const myTemplate = name =>
  html`
    <my-element
      .name=${name}
      @name-changed=${e => console.log("event after name", name)}
    ></simple-greeting>

    <my-element
      @name-changed=${e => console.log("event before name", name)}
      .name=${name}
    ></simple-greeting>
  `;

const container = document.getElementById("container");
const buttons = document.getElementById("buttons");

// Render the template with some data
render(myTemplate("initial state"), container);

render(
  html`
    <button @click=${() => render(myTemplate("foo"), container)}>
      Name: foo
    </button>
    <button @click=${() => render(myTemplate("bar"), container)}>
      Name: bar
    </button>
  `,
  buttons
);

// my-element.js
import { PolymerElement, html } from "@polymer/polymer";

// Define an element class
class MyElement extends PolymerElement {
  // Define public API properties
  static get properties() {
    return {
      name: {
        type: Boolean,
        notify: true
      }
    };
  }

  // Define the element's template
  static get template() {
    return html`

Name is {{name}}

    `;
  }
}

// Register the element with the browser
customElements.define("my-element", MyElement);

Open the console to see the results

Live Reproduction Link
https://stackblitz.com/edit/lit-html-frxdw2?file=src%2Findex.js
Expected Results
Output should be the same regardless of the order on which the bindings are declared
event after foo
event before foo

Actual Results
The old listener is called before it's updated, leading to unexpected results.
event after initial state
event before foo

Browsers Affected

[x] Chrome (only tested on Chrome but it should apply to all browers)
[ ] Firefox
[ ] Edge
[ ] Safari 11
[ ] Safari 10
[ ] IE 11

The ordering of lit-html binding execution matching the source ordering by design and fundamental to the way that execution is ordered in JavaScript. Template expressions are evaluated in JS in source order, and we can't change that. So we process template parts in their source order too. It's simpler and less code than some kind of re-ordering based on part type, plus we try to match the semantics of what the equivalent code would be when possible.
Note that Polymer's two-way data-binding protocol is the thing that's order sensitive here, because it fires events synchronously, and it would be sensitive in imperative code as well. ie:
const myEl = document.createElement('my-element');
myEl.name = 'foo';
myEl.addEventListener('name-changed', (e) => console.log(myEl.name));

So in the Polymer-interop case it's important that property-change event handlers come first in the element, if you need to synchronize with data outside the element and you're replacing the event handler every render - as you have in your example with a closure that closes over the name parameter to the template function.
If you read the name off the element instead, then the difference in order is not observable:
// Define a template function
const myTemplate = name =>
  html`
    <my-element
      .name=${name}
      @name-changed=${e => console.log("event after name", e.target.name)}
    ></simple-greeting>

    <my-element
      @name-changed=${e => console.log("event before name", e.target.name)}
      .name=${name}
    ></simple-greeting>
  `;

The subtle difference is that in your example the "event after name" listener that fires is actually the listener from the previous render, which closed over the previous name parameter.
You can see that if you add a counter:
// Define a template function
let i = 0;
const myTemplate = name => {
  const j = i++;
  return html`
    <my-element
      .name=${name}
      @name-changed=${e => console.log("event after name", j, name)}
    ></simple-greeting>

    <my-element
      @name-changed=${e => console.log("event before name", j, name)}
      .name=${name}
    ></simple-greeting>
  `;
};

But to sum up, we're very sparing with adding more code to core, especially when it would change behavior from what seems apparent in the source. It's pretty explainable that bindings execute in source order, and harder to explain otherwise.

Thanks for the answer.
I was aware that the previous listener was being called instead of the new one which holds the previous value of name. I wanted to check whether that was expected or not, but it's clear to me now.
Later, I tried to use the original component where I found this "issue" by creating and assigning the properties/listeners imperatively and I came across the same issue if I changed the property before assigning the new listener (the same case you provided as an example). On my case, the event detail doesn't hold the value I needed, so that's why I needed to access the object directly from the listener.

Closing based on discussion. Please feel free to re-open the issue with additional context if more explanation is necessary.

authors: DiegoCardoso justinfagnani sorvell

repo: Polymer/lit-html


text:
Minor typo: Items attribute value omitted within the template demonstrating how to use dom-repeat's  observer and filter properties in HTML (Data Binding Helper Elements Section of Docs)

There seems to be a minor error in the docs regarding using dom-repeat's observe & filter attributes together to ensure nodes repeated are correctly being up-to-date to be correctly filtered using the type extension custom element.
<template is="dom-repeat" items=""
    filter="isEngineer" observe="type manager.type">

items seemingly should have {{employees}} within it:
<template is="dom-repeat" items="{{employees}}"
    filter="isEngineer" observe="type manager.type">

Fixed in previous docs push:
https://www.polymer-project.org/1.0/docs/devguide/templates.html#filtering-and-sorting-lists

authors: arthurevans lozandier

repo: Polymer/polymer


text:
Form generator. Dynamically added elements don't get data-binded.

Unable to write the generators form. I can not anticipate all the possible controls in the template.
Please return the data binding for dynamically created elements.

I'm facing a similar problem (From what I understand of the OP =/ ).
What would be the 1.0 equivalent of the processed described here, eg the old .bind() method?

@kevinpschaaf, @sorvell thoughts on adding back this functionality?

Dupe of #1303

authors: 4dinterface azakus hickscorp


text:
JSON object/array serialization in polymer 2

Description
I want to pass some data from python to an element
data = {"name": "Master's or sth else"}
data_json = json.dumps(data)

and in html ($ sign is because of mako syntax... anyway doesn't matter)
<my-element options='${data_json}'></my-element>

But data_json doesn't pass correctly to my-element. The problem is single quotation inside data_json.
Expected Results
Passing data (with single quote!) to my-element
Actual Results
Single quote inside data_json breaks attr value
In chrome:

In firefox:

Browsers Affected

[x] Chrome
[x] Firefox
[ ] Edge
[ ] Safari 9
[ ] Safari 8
[ ] IE 11

Versions

Polymer: 2.0.0-rc.5
webcomponentsjs: 1.0.0-rc.5

The issue is that you are not escaping special values (single quotes) in your attribute value correctly, and so the browser's native HTML parser is not parsing it as you intend.  Since Polymer leverages the native parser, this is not a Polymer-specific issue, since Polymer never sees the value you intend.
It looks like you are using server templating to inject the JSON into the HTML attribute; if so, you need to run it through an HTML escaper to ensure the characters are valid in the HTML attribute.  Specifically, the single quote in the string you are serializing needs to be encoded using ' to ensure it doesn't close the attribute value.
See https://dev.w3.org/html5/html-author/charref for a full list of escaped HTML entities.  If you're using Python, this may help: https://wiki.python.org/moin/EscapingHtml

authors: kevinpschaaf siavashkavousi


text:
Fails with parse error when using

I'm embedding some data into my page with script tags, like below:
<script type="text/csv" id="fx-events-mapping">
... data...
</script>

Since updating vulcanize to the latest version, the build no longer works. It seems it is trying to parse the script, even though the type is marked as "text/csv".
Error: Error parsing script in /components/events-table/events-table.html at 219:298
Unexpected identifier
  at Analyzer._processScript (c:\Workspace\hv\ui\node_modules\grunt-vulcanize\node_modules\vulcanize\node_modules\hydrolysis\lib\analyzer.js:319:13)
  at Analyzer.<anonymous> (c:\Workspace\hv\ui\node_modules\grunt-vulcanize\node_modules\vulcanize\node_modules\hydrolysis\lib\analyzer.js:294:30)
  at Array.forEach (native)
  at Analyzer._processScripts (c:\Workspace\hv\ui\node_modules\grunt-vulcanize\node_modules\vulcanize\node_modules\hydrolysis\lib\analyzer.js:293:11)
  at Analyzer._parseHTML (c:\Workspace\hv\ui\node_modules\grunt-vulcanize\node_modules\vulcanize\node_modules\hydrolysis\lib\analyzer.js:240:27)
  at Analyzer.<anonymous> (c:\Workspace\hv\ui\node_modules\grunt-vulcanize\node_modules\vulcanize\node_modules\hydrolysis\lib\analyzer.js:210:22)
  at processImmediate [as _immediateCallback] (timers.js:345:15)

This is actually a bug in hydrolysis w.r.t trying to parse any script tag as javascript.

This issue was moved to Polymer/hydrolysis#152

authors: azakus tehsenaus

repo: Polymer/vulcanize


text:
getting singular matrix

LinAlgError                               Traceback (most recent call last)
 in <cell line: 3>()
1 import scipy.linalg as la
2 dic_job = dic.DICAnalysis(inputs)
----> 3 results = dic_job.run()
6 frames
/usr/local/lib/python3.10/dist-packages/numpy/linalg/linalg.py in _raise_linalgerror_singular(err, flag)
87
88 def _raise_linalgerror_singular(err, flag):
---> 89     raise LinAlgError("Singular matrix")
90
91 def _raise_linalgerror_nonposdef(err, flag):
LinAlgError: Singular matrix

Same here

authors: Hasnainbold LolloCappo

repo: PolymerGuy/muDIC