text:
群晖docker安装后，运行时报错。

你使用的 chinesesubfinder 是什么版本，什么环境？
chinesesubfinder 版本: v0.4.0
环境: docker 群晖
你遇到什么问题了？

描述一下你遇到的问题
容器启动后报错，web页面无法访问
你的问题弄重现嘛？
能够重新
你期望的结果
描述以下你期望的结果
可以提供遇到问题时候，电影、连续剧的信息吗？
如下填写
视频的目录: X:\连续剧\杀死伊芙 (2018)
视频的信息: 杀死伊芙 - S01E01 - 姣好面容.mp4
出错的日志信息可以复制一些出来吗？
日志在程序的 Logs 目录下，如果你用的是 docker ，那么需要你映射出来。

/volume1/docker/chinesesubfinder/logs:/app/Logs

附上配置文件截图

[INFO]: 2022-02-08 17:47:03 - ChineseSubFinder Version: v0.19.6
[INFO]: 2022-02-08 17:47:03 - UseProxy = false
[ERROR]: 2022-02-08 17:47:03 - MovieFolder not found -- /media/电影
[INFO]: 2022-02-08 17:47:04 - ChineseSubFinder Version: v0.19.6
[INFO]: 2022-02-08 17:47:04 - UseProxy = false
[ERROR]: 2022-02-08 17:47:04 - MovieFolder not found -- /media/电影
[INFO]: 2022-02-08 17:47:05 - ChineseSubFinder Version: v0.19.6
[INFO]: 2022-02-08 17:47:05 - UseProxy = false
[ERROR]: 2022-02-08 17:47:05 - MovieFolder not found -- /media/电影
[INFO]: 2022-02-08 17:47:06 - ChineseSubFinder Version: v0.19.6
[INFO]: 2022-02-08 17:47:06 - UseProxy = false
[ERROR]: 2022-02-08 17:47:06 - MovieFolder not found -- /media/电影
[INFO]: 2022-02-08 17:47:07 - ChineseSubFinder Version: v0.19.6
[INFO]: 2022-02-08 17:47:07 - UseProxy = false
[ERROR]: 2022-02-08 17:47:07 - MovieFolder not found -- /media/电影
[INFO]: 2022-02-08 17:47:08 - ChineseSubFinder Version: v0.19.6
[INFO]: 2022-02-08 17:47:08 - UseProxy = false
[ERROR]: 2022-02-08 17:47:08 - MovieFolder not found -- /media/电影
[INFO]: 2022-02-08 17:47:09 - ChineseSubFinder Version: v0.19.6
[INFO]: 2022-02-08 17:47:09 - UseProxy = false
[ERROR]: 2022-02-08 17:47:09 - MovieFolder not found -- /media/电影
[INFO]: 2022-02-08 17:47:10 - ChineseSubFinder Version: v0.19.6
[INFO]: 2022-02-08 17:47:10 - UseProxy = false
[ERROR]: 2022-02-08 17:47:10 - MovieFolder not found -- /media/电影
[INFO]: 2022-02-08 17:47:11 - ChineseSubFinder Version: v0.19.6
[INFO]: 2022-02-08 17:47:11 - UseProxy = false
[ERROR]: 2022-02-08 17:47:11 - MovieFolder not found -- /media/电影
[INFO]: 2022-02-08 17:47:12 - ChineseSubFinder Version: v0.19.6
[INFO]: 2022-02-08 17:47:12 - UseProxy = false
[ERROR]: 2022-02-08 17:47:12 - MovieFolder not found -- /media/电影
[INFO]: 2022-02-08 17:47:13 - ChineseSubFinder Version: v0.19.6
[INFO]: 2022-02-08 17:47:13 - UseProxy = false
[ERROR]: 2022-02-08 17:47:13 - MovieFolder not found -- /media/电影
[INFO]: 2022-02-08 17:47:14 - ChineseSubFinder Version: v0.19.6
[INFO]: 2022-02-08 17:47:14 - UseProxy = false
[ERROR]: 2022-02-08 17:47:14 - MovieFolder not found -- /media/电影
[INFO]: 2022-02-08 17:47:15 - ChineseSubFinder Version: v0.19.6
[INFO]: 2022-02-08 17:47:15 - UseProxy = false
[ERROR]: 2022-02-08 17:47:15 - MovieFolder not found -- /media/电影
[INFO]: 2022-02-08 17:47:16 - ChineseSubFinder Version: v0.19.6
[INFO]: 2022-02-08 17:47:16 - UseProxy = false
[ERROR]: 2022-02-08 17:47:16 - MovieFolder not found -- /media/电影
[INFO]: 2022-02-08 17:47:17 - ChineseSubFinder Version: v0.19.6
[INFO]: 2022-02-08 17:47:17 - UseProxy = false
[ERROR]: 2022-02-08 17:47:17 - MovieFolder not found -- /media/电影
[INFO]: 2022-02-08 17:47:18 - ChineseSubFinder Version: v0.19.6
[INFO]: 2022-02-08 17:47:18 - UseProxy = false
[ERROR]: 2022-02-08 17:47:18 - MovieFolder not found -- /media/电影
[INFO]: 2022-02-08 17:47:19 - ChineseSubFinder Version: v0.19.6
[INFO]: 2022-02-08 17:47:19 - UseProxy = false
[ERROR]: 2022-02-08 17:47:19 - MovieFolder not found -- /media/电影
[INFO]: 2022-02-08 17:47:20 - ChineseSubFinder Version: v0.19.6
[INFO]: 2022-02-08 17:47:20 - UseProxy = false
[ERROR]: 2022-02-08 17:47:20 - MovieFolder not found -- /media/电影
[INFO]: 2022-02-08 17:47:21 - ChineseSubFinder Version: v0.19.6
[INFO]: 2022-02-08 17:47:21 - UseProxy = false
[ERROR]: 2022-02-08 17:47:21 - MovieFolder not found -- /media/电影
[INFO]: 2022-02-08 17:47:22 - ChineseSubFinder Version: v0.19.6
[INFO]: 2022-02-08 17:47:22 - UseProxy = false
[ERROR]: 2022-02-08 17:47:22 - MovieFolder not found -- /media/电影
[INFO]: 2022-02-08 17:47:23 - ChineseSubFinder Version: v0.19.6
[INFO]: 2022-02-08 17:47:23 - UseProxy = false
[ERROR]: 2022-02-08 17:47:23 - MovieFolder not found -- /media/电影
[INFO]: 2022-02-08 17:47:24 - ChineseSubFinder Version: v0.19.6
[INFO]: 2022-02-08 17:47:24 - UseProxy = false
[ERROR]: 2022-02-08 17:47:24 - MovieFolder not found -- /media/电影
[INFO]: 2022-02-08 17:47:25 - ChineseSubFinder Version: v0.19.6
[INFO]: 2022-02-08 17:47:25 - UseProxy = false
[ERROR]: 2022-02-08 17:47:25 - MovieFolder not found -- /media/电影
附上log

看看最新的v0.20教程

看看最新的v0.20教程

大佬，我就是按照v0.20教程进行配置的啊

我也遇到了这个问题，最近群晖的docker套件使用latest的tag拉不下来本项目最新的镜像。可以把tag改成最新的版本号试试，我成功了。


text:
added environment vars for advanced usage

these were missing, and this step is not listed in the docs

now it agrees with the documentation, which says that only the example.env needs to be configured

tested locally: if these vars are not set, docker just throws some warnings:

or we add this additional configuration step to the docs :)

@besrym I'm not sure I understand - these warnings are usually reported by docker-compose when a variable is references but its value is not provided in environment - why were these mentioned to begin with?

@jkhenning yes, exactly but this is not the point here.
The documentation (advanced setup) states that these variables must be set in the examples.env file. But they also need to be placed in the docker-compose.yml and this took me a decent amount of time to figure that out.

Ah, got it now 🙂 👍

source: gharchive/pull-request

authors: besrym jkhenning

repo: allegroai/clearml-serving

license_type: permissive

license_source: github-api


text:
How to finetune with a new dataset?

Hi, I am trying to finetune PRIMERA from huggingface using trainer, with a new dataset. However, i keep getting rouge scores of 0. May I know which part of the code is wrong?
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
from transformers import Seq2SeqTrainer, Seq2SeqTrainingArguments
import nltk
import numpy as np
TOKENIZER = AutoTokenizer.from_pretrained("allenai/PRIMERA")
MODEL = AutoModelForSeq2SeqLM.from_pretrained("allenai/PRIMERA")
import torch
MODEL.gradient_checkpointing_enable()
PAD_TOKEN_ID = TOKENIZER.pad_token_id
DOCSEP_TOKEN_ID = TOKENIZER.convert_tokens_to_ids("<doc-sep>")
from huggingface_hub import notebook_login
notebook_login()
here i load my own reformatted version of the multi_news dataset from huggingface - format is a (src,tgt) pair, where src is the related documents, tgt is the summary. its almost the same as the original multi_news dataset, just that i added a few more words at the front along with |||||.
train = load_dataset('cammy/multi_news_formatted_small', split='train[:100]', use_auth_token=True, cache_dir="D:")
valid = load_dataset('cammy/multi_news_formatted_small', split='valid[:10]', use_auth_token=True, cache_dir="D:")
test = load_dataset('cammy/multi_news_formatted_small', split='test[:10]', use_auth_token=True, cache_dir="D:")
then i do the preprocessing of data

then lastly:
trainer.train()
but these are the results:

Hi,
I've never used trainer before. Based on the results, I would say there must be something wrong with either ground truth summary or generated summary, at least one of them is empty. I will suggest you check the outputs, and try to run a sanity check before fine-tuning.

Hi, I am trying to finetune PRIMERA from huggingface using trainer, with a new dataset. However, i keep getting rouge scores of 0. May I know which part of the code is wrong?
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM from transformers import Seq2SeqTrainer, Seq2SeqTrainingArguments import nltk import numpy as np TOKENIZER = AutoTokenizer.from_pretrained("allenai/PRIMERA") MODEL = AutoModelForSeq2SeqLM.from_pretrained("allenai/PRIMERA") import torch MODEL.gradient_checkpointing_enable() PAD_TOKEN_ID = TOKENIZER.pad_token_id DOCSEP_TOKEN_ID = TOKENIZER.convert_tokens_to_ids("<doc-sep>")
from huggingface_hub import notebook_login notebook_login()
here i load my own reformatted version of the multi_news dataset from huggingface - format is a (src,tgt) pair, where src is the related documents, tgt is the summary. its almost the same as the original multi_news dataset, just that i added a few more words at the front along with |||||.
train = load_dataset('cammy/multi_news_formatted_small', split='train[:100]', use_auth_token=True, cache_dir="D:") valid = load_dataset('cammy/multi_news_formatted_small', split='valid[:10]', use_auth_token=True, cache_dir="D:") test = load_dataset('cammy/multi_news_formatted_small', split='test[:10]', use_auth_token=True, cache_dir="D:")
then i do the preprocessing of data

then lastly: trainer.train()
but these are the results:

Hi friends, I'm also trying to fine-tune the model with my own dataset, is the trainer problem solved yet?

Can you please provide scripts for fine-tuning PRIMER on a new dataset? Details on that is scarce.

Follow-up question, why does your dataset always require a fine-tuned model as one of the arguments. From what I gather, the argument model path either expects a model fine-tuned on (multi news, arxiv, etc) or the default which longfomer_summ_multinews. If we are fine-tuning, shouldn't the primer pre-trained model suffice??

Hi,
I also am attempting to explore the pretarined model and see if I can fine tune it for another dataset.
I ran into an error like this while trying to finetune PRIMERA on the sample wcep dataset.
  File "__/software/Miniconda/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "__/software/Miniconda/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "__/software/code-server/lib/vscode/extensions_omni/ms-python.python-2020.11.371526539/pythonFiles/lib/python/debugpy/__main__.py", line 45, in <module>
    cli.main()
  File "__/software/code-server/lib/vscode/extensions_omni/ms-python.python-2020.11.371526539/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 430, in main
    run()
  File "__/software/code-server/lib/vscode/extensions_omni/ms-python.python-2020.11.371526539/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 267, in run_file
    runpy.run_path(options.target, run_name=compat.force_str("__main__"))
  File "__/software/Miniconda/lib/python3.6/runpy.py", line 263, in run_path
    pkg_name=pkg_name, script_name=fname)
  File "__/software/Miniconda/lib/python3.6/runpy.py", line 96, in _run_module_code
    mod_name, mod_spec, pkg_name, script_name)
  File "__/software/Miniconda/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "__/work/instance1/jupyter/PRIMER_train/script/primer_main.py", line 792, in <module>
    train(args)
  File "__/work/instance1/jupyter/PRIMER_train/script/primer_main.py", line 528, in train
    trainer.fit(model, train_dataloader, valid_dataloader)
  File "__/software/Miniconda/lib/python3.6/site-packages/pytorch_lightning/trainer/trainer.py", line 460, in fit
    self._run(model)
  File "__/software/Miniconda/lib/python3.6/site-packages/pytorch_lightning/trainer/trainer.py", line 758, in _run
    self.dispatch()
  File "/opt/omniai/software/Miniconda/lib/python3.6/site-packages/pytorch_lightning/trainer/trainer.py", line 799, in dispatch
    self.accelerator.start_training(self)
  File "/opt/omniai/software/Miniconda/lib/python3.6/site-packages/pytorch_lightning/accelerators/accelerator.py", line 96, in start_training
    self.training_type_plugin.start_training(trainer)
  File "__/software/Miniconda/lib/python3.6/site-packages/pytorch_lightning/plugins/training_type/training_type_plugin.py", line 144, in start_training
    self._results = trainer.run_stage()
  File "__/software/Miniconda/lib/python3.6/site-packages/pytorch_lightning/trainer/trainer.py", line 809, in run_stage
    return self.run_train()
  File "__/software/Miniconda/lib/python3.6/site-packages/pytorch_lightning/trainer/trainer.py", line 844, in run_train
    self.run_sanity_check(self.lightning_module)
  File "__/software/Miniconda/lib/python3.6/site-packages/pytorch_lightning/trainer/trainer.py", line 1112, in run_sanity_check
    self.run_evaluation()
  File "__/software/Miniconda/lib/python3.6/site-packages/pytorch_lightning/trainer/trainer.py", line 967, in run_evaluation
    output = self.evaluation_loop.evaluation_step(batch, batch_idx, dataloader_idx)
  File "__/software/Miniconda/lib/python3.6/site-packages/pytorch_lightning/trainer/evaluation_loop.py", line 174, in evaluation_step
    output = self.trainer.accelerator.validation_step(args)
  File "__/software/Miniconda/lib/python3.6/site-packages/pytorch_lightning/accelerators/accelerator.py", line 226, in validation_step
    return self.training_type_plugin.validation_step(*args)
  File "__/software/Miniconda/lib/python3.6/site-packages/pytorch_lightning/plugins/training_type/training_type_plugin.py", line 161, in validation_step
    return self.lightning_module.validation_step(*args, **kwargs)
  File "__/work/instance1/jupyter/PRIMER_train/script/primer_main.py", line 261, in validation_step
    loss = self.shared_step(input_ids, output_ids)
  File "__/work/instance1/jupyter/PRIMER_train/script/primer_main.py", line 145, in shared_step
    lm_logits = self.forward(input_ids, output_ids)
  File "__/work/instance1/jupyter/PRIMER_train/script/primer_main.py", line 114, in forward
    use_cache=False,
  File "__/software/Miniconda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
    return forward_call(*input, **kwargs)
  File "__/software/Miniconda/lib/python3.6/site-packages/transformers/models/bart/modeling_bart.py", line 1295, in forward
    return_dict=return_dict,
  File "__/software/Miniconda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
    return forward_call(*input, **kwargs)
  File "__/software/Miniconda/lib/python3.6/site-packages/transformers/models/bart/modeling_bart.py", line 1157, in forward
    return_dict=return_dict,
  File "__/software/Miniconda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
    return forward_call(*input, **kwargs)
  File "__/software/Miniconda/lib/python3.6/site-packages/transformers/models/bart/modeling_bart.py", line 796, in forward
    output_attentions=output_attentions,
  File "__/software/Miniconda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
    return forward_call(*input, **kwargs)
  File "__/software/Miniconda/lib/python3.6/site-packages/transformers/models/bart/modeling_bart.py", line 309, in forward
    output_attentions=output_attentions,
  File "__/software/Miniconda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
    return forward_call(*input, **kwargs)
**TypeError: forward() got an unexpected keyword argument 'hidden_states'**

I am able to run the notebook (Evaluation_Example.ipynb) given in repo to give me a few extracted sentences for a few samples.
Library Versions used:
pytorch_lightning==1.3.8
torchmetrics==0.6.2
datasets==1.6.0
spacy==2.3.5
nltk==3.6.1
tqdm==4.49.0
rouge-score
torch==1.10.2
transformers==4.3.0

Did anyone else get this error? If so how did you solve it?
Or am I incorrect on library versioning here?
Thanks!

I may have figured out a way to solve my problem and be able to train PRIMERA on a dataset.
The issue arose as the code uses the longformer library that is slightly out of sync with the transformers version of the same.
So instead of using imports
from longformer import LongformerEncoderDecoderForConditionalGeneration, LongformerEncoderDecoderConfig
switch to
from transformers import LEDForConditionalGeneration, LEDConfig
and correspondingly in the code and can use to train the model.

Hi Jainesh, would you be okay with sharing the repository for the changed code?

Hi all,
If you want to fine-tune PRIMERA on new datasets, I would suggest you use the hugging face version of PRIMERA and check out the file 'script/primera_hf_main.py' (as the original Longformer package is out of sync).  To use PRIMERA-hf, you can install the latest version of huggingface transformer, and import the model as
from transformers import (
    AutoTokenizer,
    LEDConfig,
    LEDForConditionalGeneration,
)
tokenizer = AutoTokenizer.from_pretrained('allenai/PRIMERA')
config=LEDConfig.from_pretrained('allenai/PRIMERA')
model = LEDForConditionalGeneration.from_pretrained('allenai/PRIMERA')

I have not used Trainer in huggingface before, so I'm not sure what the problem would be. You may also consider using pytorch_lightning, which is used in  'script/primera_hf_main.py'. If you want to use Trainer, you can still refer to the training part in the script to see how to use the model to train. As for the evaluation, you can check the notebook Evaluation_Example.ipynb

is the max length input and output variable based on the target dataset, i.e. if training on a new dataset, do we assign these values ourselves from summary stats?

Hi! I modified the official run_summarization.py script from HuggingFace and was able to fine-tune PRIMERA models. Figured I would share that script if its useful to anyone else: https://gist.github.com/JohnGiorgi/8c7dcabd3ee8a362b9174c5d145029ab

Hi @JohnGiorgi, did you encounter the problem where all the predictions becomes "" after a few hundreds steps of fine-tuning? I met this problem with both allenai/led-large-16384 and allenai/PRIMERA. (My issue was exactly the same with this: https://github.com/huggingface/transformers/issues/18190)

I did have the issue quite a while ago, and it has disappeared for me. IIRC there was a bug a while back where the generate function was not taking into account the global_attention_mask. Might be worth updating transformers to the latest version (if you haven't already) and trying again.

Hi @jaineshdoshi, but I am still having this problem of running your provided script (https://gist.github.com/JohnGiorgi/8c7dcabd3ee8a362b9174c5d145029ab) with the newest version of transformers==4.21.0.dev0. I used the following command to run:
python run_summarization.py \
    --model_name_or_path allenai/PRIMERA \
    --do_train \
    --do_eval \
    --dataset_name multi_news \
    --dataset_config "3.0.0" \
    --source_prefix "summarize: " \
    --output_dir ./outputs \
    --per_device_train_batch_size=4 \
    --per_device_eval_batch_size=4 \
    --overwrite_output_dir \
    --predict_with_generate

The evaluation results are:
***** eval metrics *****
  epoch                   =        3.0
  eval_gen_len            =      128.0
  eval_loss               =     2.0331
  eval_rouge1             =        0.0
  eval_rouge2             =        0.0
  eval_rougeL             =        0.0
  eval_rougeLsum          =        0.0
  eval_runtime            = 0:11:05.88
  eval_samples            =       5621
  eval_samples_per_second =      8.441
  eval_steps_per_second   =      0.264

Not sure what causes this but there must still be something wrong with the generation method in huggingface implementations. But anyway, thanks much for your script and it is really helpful.

Hi, I find that your evaluation loss is always a little high and ROUGE scores are 0 when fine-tuning PRIMERA with Huggingface. I think this is because there are no assignments for model configs for the auto-regressive generation. However, the default beam size is 1 and the max length of the generated text is 20 which are shown in the API. This is not enough to get the expected results. Using local datasets, I fine-tuned PRIMERA with Lightning Trainer and also Huggingface Trainer. You can find the code here, and I hope it is helpful.

source: gharchive/issue

authors: JohnGiorgi Wendy-Xiao cammy-mun jaineshdoshi mdabedr oaimli theQuert zhangzx-uiuc

repo: allenai/PRIMER


text:
Question: When did you stop training on your pre-trained model?

Hi,
when did you stop training on your pre-trained model?
Did you stop when perplexity on validation set did increase again or before that?
Thanks
Philip

I trained for 10 epochs then stopped.  Billion word benchmark is sufficiently large that I didn't worry about overfitting, although for smaller datasets you probably want to monitor validation perplexity.  FWIW, training the ELMo model for longer reduces heldout perplexity and further improves downstream task performance.

Ok. Thanks.

authors: PhilipMay matt-peters

repo: allenai/bilm-tf


text:
Automatic geolocation lookup when no center attribute is given

Currently when a map is initialized without a center attribute the directive performs a geolocation lookup of the user and then centers the map based on that geolocation. So this example would automatically perform a geolocation lookup:
      <map zoom=10 street-view-control="false"></map>

whereas this will not:
      <map zoom=10 street-view-control="false" center="[10,10]"></map>

Now the problem is that if the center attribute of the map is set anytime between the initialization of the map and the finishing of the geolocation lookup the map recenters unexpectedly when the geolocation lookup is finished. This is not expected behavior given that ng-map sells itself as "Expose all original Google Maps V3 api to the user. No hiding, no wraping, or whatsoever" - the original google maps API does not perform a geolocation lookup if the center tag is missing and neither should an Angular wrapper that claims to be just stock Google maps V3 API.
I think the proper way to include this feature would be to mask it with an attribute, eg. center-to-geolocation, such that his would not prompt a geolocation lookup:
      <map zoom=10 street-view-control="false"></map>

whereas this would:
       <map zoom=10 street-view-control="false" center-to-geolocation="true"></map>

Is there an event for when center="current-location" is resolved?

authors: kirstilynn rguldener

repo: allenhwkim/angularjs-google-maps

license: mit

license_source: bigquery


text:
Loading RGD JSON for human genes.

Closes #140.

note: we will still be getting some human data from rat after 0.3.  Disease associations, for example.

authors: christabone srengel

repo: alliance-genome/agr


text:
daemon update interval?

Hi there, I have the live html page connected to the wss daemon (gear icon has the green dot), but it doesn't actually seem to update.  Compared to rt.goaccess.io, the last updated timestamp in the upper right never changes, and it doesn't say "GoAccess Real-Time HTML Report" below the timestamp.  What am I doing wrong?  Thanks!
My configuration:
$ cat goaccess.conf | egrep -v '^[[:space:]]*(#|//|$)'
time-format %H:%M:%S
date-format %d/%b/%Y
log-format %h %^[%d:%t %^] "%r" %s %b "%R" "%u"
config-dialog false
hl-header true
json-pretty-print false
no-color false
no-column-names false
no-csv-summary false
no-progress false
no-tab-scroll false
with-mouse false
daemonize true
real-time-html true
ssl-cert /etc/letsencrypt/live/example.com/fullchain.pem
ssl-key /etc/letsencrypt/live/example.com/privkey.pem
ws-url wss://example.com
log-file /var/log/apache2/www.example.com.log
log-file /var/log/apache2/www.example.com.log.1
debug-file /tmp/goaccessdebug.log
agent-list false
with-output-resolver false
http-method yes
http-protocol yes
output-format /var/www/www.example.com/scripts/goaccess.html
no-query-string false
no-term-resolver false
444-as-404 false
4xx-to-unique-count false
all-static-files false
double-decode false
ignore-crawlers false
crawlers-only false
ignore-panel REFERRERS
ignore-panel KEYPHRASES
real-os true
static-file .css
static-file .js
static-file .jpg
static-file .png
static-file .gif
static-file .ico
static-file .jpeg
static-file .pdf
static-file .txt
static-file .csv
static-file .zip
static-file .mp3
static-file .mp4
static-file .mpeg
static-file .mpg
static-file .exe
static-file .swf
static-file .woff
static-file .woff2
static-file .xls
static-file .xlsx
static-file .doc
static-file .docx
static-file .ppt
static-file .pptx
static-file .iso
static-file .gz
static-file .rar
static-file .svg
static-file .bmp
static-file .tar
static-file .tgz
static-file .tiff
static-file .tif
static-file .ttf
static-file .flv
keep-db-files true
load-from-disk true
db-path /var/lib/goaccess/```

I don't see anything wrong with your config file, especially since you are seeing the green icon.
Can you please try running goaccess with daemonize off and see if that spits out some sort of error? Also, do you see any errors on the browser's console? Thanks.

I'll try daemonize off in a bit, but I did notice some errors.  In my regular Chrome configuration I get:

In incognito mode I still get some:

Might be a UTF issue which should be fixed upstream. Can I ask you to please build from development and try again?

Haven't built from development yet, but I tried with daemonize false.  No errors are emitted.
When I turned daemonize back on, it doesn't seem to start:
$ goaccess
Daemonized GoAccess: 31690
$ ps aux | grep -i goac
curby    31726  0.0  0.0  12788   972 pts/4    S+   18:00   0:00 grep --color=auto -i goac

I got this before when I had a typo in my ssl-cert and ssl-key configuration directives, but I checked them just now and the files exist, plus my user can read them.  Should I move this to a separate issue?

Please make sure all of your paths are absolute and valid. It uses chdir ("/") so it will quit if it can't find it.

Yup, paths are absolute and are valid.  Some more verbose output/logging options might make this easier to troubleshoot.

I agree, I need to make it more verbose. Please give the upstream build a shot and let me know if that addresses the issue. Otherwise, we can look further at this. Thanks.

Closing this. Feel free to reopen it if needed.

authors: allinurl curby

repo: allinurl/goaccess


text:
动态添加Job

大神，现在所有的job都是放在一个spark app里面，所以所有的job的执行时间间隔都是一样的，能有办法实现不同的job的时间间隔不同？ 另外如果我job很多的情况下，都放在一个app里面会有问题？

在一个spark app 实例里，没有办法实现不同Job 时间间隔不一致。
Q: 所以所有的job的执行时间间隔都是一样的，能有办法实现不同的job的时间间隔不同
A:  job 都放在同一个配置文件，然后启动时加上 streaming.jobs 参数指定需要启动的job 。这样配置文件统一了，根据时间分组，启动不同app 实例
Q: 另外如果我job很多的情况下，都放在一个app里面会有问题？
默认是顺序执行的。如果处理时间过程，可以通过spark 参数 spark.streaming.concurrentJobs 设置并行度。默认是1。 如果你单个Streaming实例资源有限，那么建议还是分开成多个实例执行比较好。
个人推荐：
最好是一个job 一个Streaming实例。资源科适当调小。这样你说的问题就都解决了。

谢谢大神。有时间的话，写篇介绍streamingpro的模块之间关系的文章拜，看了2天，还没完全看懂啊。:)

首先我已经做了很多示例了，参看这些gist:
https://gist.github.com/allwefantasy
其次，批处理任务的所有Compositor 都是在：
streaming.core.compositor.spark.source
流式处理的都在
streaming.core.compositor.spark.source.streaming
下。 只要注意这个 差别就好。

authors: allwefantasy yinchuanwang

repo: allwefantasy/streamingpro


text:
Please add new term: ProteomicsTools

ProteomicsTools
https://github.com/shengqh/RCPA.Tools/wiki
ProteomicsTools software suite contains a bunch of tools used in proteomics research, from identification result parsing to quantification, modification, et. al.
GNU General Public License v3.0

Thanks for all the additions. I plan to do a bulk add this evening, as I am building the final version of the release files tonight. You've just managed to get these into the current release!
For these and other requests, all I'll have time for is to build the class and associated annotation properties, but what each of these will need next is axiomatisation. Would you be interested in helping out with this, and contributing directly to SWO? As we are volunteer run, this may get you the additional axiomisation faster than might happen otherwise. If so, I'll get back in touch with you after I've finished this release and I can go through everything with you. Prior experience in ontologies is not required :)
Thanks very much!

I saved up a load of suggestions, so I could submit something in bulk. I thought gene expression was bad, but proteomics... wow! The MS ontology covers some bases. I am happy to help 'officially'. I'm no ontologist, but do seem to spend lots of my time in this world at the moment. Cheers!

That sounds good. I'll get these in tonight, and then in the coming days we can talk about how you could edit things directly :)
Thanks!

cool beans

Assigned SWO:1100134

authors: allysonlister drmarkreuter

repo: allysonlister/swo


text:
treeview-menu nested

Issue type:

[x] Feature request
[ ] Bug report
[x] Documentation

Environment:

AdminLTE Version:  AdminLTE 3 Alpha-2

Description:
what happen with the class treeview-menu , the tree nested menus are not allowed anymore?
This is not going to be support in future versions?
there is any documentation about it ?

I want the Multilevel menu too.

I just made a multilevel menu using a treeview inside another

@nunomazer How? Can you write an example?

Sorry, I wasn't with the example last night.
This is the piece of code I used to build a multilevel menu. I thinking in change a little the css to nested .has-treeview class to be rendered with a minor font size:

Manutenção

                        Cadastros

                                Help Desk

Status de Tickets

Regras de Bloqueios padrões

Tipos de Ação de Contato

Log Viewer

Please see #1908
Thanks!

                Nivel 0

                        Nivel 1

                                Nivel 2

                    Nivel 0

                            Nivel 1

                                    Nivel 2

authors: almasaeed2010 dcy nelsonlucas nunomazer pabloyokese


text:
[BUG] Заявки на календарные фьючерсы с отрицательной ценой

Опишите баг
Не выставляются заявки на календарные фьючерсы с отрицательной ценой.
Кнопки Купить / Продать неактивны
Воспроизведение

Выбрать инструмент. Например SI-6.23-9.23
Попробовать выставить из стакана, ЛКМ по цене

Среда.

ОС Windows 10
Google Chrome
Mozilla Firefox

Ожидаемое поведение
Ручной ввод отрицательной цены не работает.
Скриншоты

Дополнительная информация
No response
Правила

[X] Я согласен следовать правилам

Эх, все таки надо делать отрицательную цену. Календарные спреды мы даем всем клиентам

authors: PilgrimViis zlobinm

repo: alor-broker/Astras-Trading-UI


text:
Use update_column for backfilling auth_bypass_id values

This migration was written to use update.  This changes the updated_at field during the migration (making it look like all step by steps have been modified by a content designer).  Changing to update_column so this time is not changed.
This migration has not yet been deployed to production.
Trello card: https://trello.com/c/jKRvjyAe

Woa good catch!

authors: brucebolt kevindew

repo: alphagov/collections-publisher


text:
Remove deleted content items

Adds a migration to delete a number of content items. The items are HtmlAttachments that have been published from Whitehall but are in fact deleted and should not be in the content store. They all currently 404 so these items need to be removed before we switch the rendering of HtmlAttachment content to content-store -> government-frontend.

:+1: Merge when you're ready

authors: gpeng steventux

repo: alphagov/content-store


text:
Add content ID to taxon index page

Makes this view a useful reference table.

👍
Useful table is useful

authors: mobaig rubenarakelyan

repo: alphagov/content-tagger

license: MIT


text:
Upgrade version of graphql-core to >3.0.0 without breaking github_security audit events ^

Dependabot alert to bump the version of graphql-core broke the github audit events.
We reverted back to <3.0.0 but we should look into upgrading to resolve the following issues -:
https://github.com/alphagov/cyber-security-security-advisory-dashboard/pull/572
https://github.com/graphql-python/graphql-core/issues/125
https://github.com/graphql-python/graphql-core/issues/126

Unfortunately we can't implement this at present. The gql library calls a function of graphql-core which has been removed in later versions. There is an equivalent function in 3.* releases but there's not yet a newer release of gql implementing the change.
There is an alpha of gql:3 which addresses this: https://github.com/graphql-python/gql/issues/62 - In alpha in Sep 2020

authors: danjoneslf gds-ahine


text:
[#117922093] Hide boolean list question section if there are no questions

Hides the 'nice to have requirements' question header if there are not questions defined in the brief.

Looks like it should work :+1:

authors: TheDoubleK allait


text:
Reduce B group percentage of search A/B test

Reduce B percentage of SearchMatchLength test from 30% to 5% before the test starts because the test should be run with just a small group of users initially.

🚀

authors: brenetic suzannehamilton

repo: alphagov/fastly-configure


text:
Release GOV.UK Prototype Kit v11.1.0

Release GOV.UK Prototype Kit v11.1.0, following our release process.
Done when:

[ ] Release done, following the release process
[ ] Release communicated on Slack?
[ ] Sprint board updated

I don't think theres much user need to announce this release on Slack, they are fairly internal fixes/changes

authors: domoscargin joelanman

repo: alphagov/govuk-prototype-kit


text:
Bump version of puppet-harden

Bump the version of the puppet-harden module to mitigate CVE-2016-0777.
I'm not using a proper release of puppet-harden in the interests of
expediency. The diff compared to the previous version is very small:
https://github.com/alphagov/puppet-harden/compare/v0.1.2...fa2c51e994b87e71e7b424b6c0048b70c2df36b0

Looks fine to me.

authors: deanwilson mattbostock

repo: alphagov/govuk-puppet


text:
Allow aws ips in nrpe

This updates the nrpe.cfg to be reflect the version of nagios_nrpe_plugin that is installed.
This also adds the CIDR blocks that we will use in AWS to the allowed_hosts

Can we move the file to be a template and split the sources in to the two hiera structures, current in the current one and the AWS ips in the newer AWS hiera structure please?

authors: SamLR deanwilson


text:
[#121133283] Fix Postgres user permission handling

What
Update rds-broker to include fixes for permission handling
How to review
Review as part of the paas-cf PR - https://github.com/alphagov/paas-cf/pull/323
Before merging

[ ] Merge the rds-broker PR
[ ] Update the submodule in commit "WIP: Update broker submodule to point at branch" to point to the updated master

Who can review
Anyone but myself.

This needs rebasing on master. Some properties (e.g. broker_name) are not present in this release and broker won't run without them.

authors: alext mtekel

repo: alphagov/paas-aws-broker-boshrelease


text:
[#167971884] Cleanup after pass secrets

What
This removes scripts added to deploy #2061. These scripts are no longer needed
How to review
Code review.
Who can review
Not @46bit

This needs a rebase and to wait until people run #2061 down their pipeline. I'll take care of this

repo: alphagov/paas-cf


text:
[#131355143] Rename datadog agent stub files and flags to increase readbility

#131355143 Add metron metrics to datadog
What
As part of the story we will install the datadog nozzle, but the nozzle installation can be toggled.
We want to reuse the same variable for both datadog-agent and the datadog-nozzle. We also want to make the code more easy to understand.
We raise this PR independenly first as it is a refactor and improvement of the code, not a feature.

Rename datadog.yml stubs to datadog-agent.yml
We are going to add datadog nozzle as an optional component in our CF installation. But the current naming of the stub files can be misleading and difficult to understand.
We rename the stubs related to datadog-agent from datadog-agent.yml to make
it more clear.

Rename DEPLOY_DATADOG_AGENT to ENABLE_DATADOG
We want to use the same variable to enable/disable the isntallation of the  datadog agent and the datadog nozzle.
There is no use case for enabling one and disabling the other, so we  decided to rename the variable and use it for both cases.

How to test
The tests should pass.
You can test only the job cf-generate-config and bosh-generate-config and confirm that enable/disable the setting changes the right parts of the manifest:
export DEPLOY_ENV=...
make dev pipelines ENABLE_DATADOG=false BRANCH=$(git rev-parse --abbrev-ref HEAD)
make dev run_job JOB=generate-cf-config
# Wait for the job to run
aws s3 cp s3://hector-state/cf-manifest.yml /tmp/cf-manifest-a.yml

make dev pipelines ENABLE_DATADOG=true BRANCH=$(git rev-parse --abbrev-ref HEAD)
make dev run_job JOB=generate-cf-config
# Wait for the job to run
aws s3 cp s3://hector-state/cf-manifest.yml /tmp/cf-manifest-b.yml

# compare
diff -Nur /tmp/cf-manifest-{a,b}.yml

Or if you have plenty of time, deploy the environment with ENABLE_DATADOG=false. It should not install agents or the nozzle. Enable it, it should install it.
Who?
Anyone but @richardc or @keymon

Can you please rebase?

I compared generated manifest with the one from master branch and they are identical. Merging...

authors: combor keymon


text:
Remove description from link expansion

I can't see that it gets used anywhere on the frontend and it's often the thing about an organisation that changes (which then causes many many documents to be represented) so hopefully this change should keep the low queue length down.

This sounds OK, but this is affecting all document types using the default fields right? I guess this would be a little less risky just changing the organisation fields.

@cbaines I agree it's more risky, but I'm reasonably confident this isn't being used anywhere.
Right now it's currently deployed to integration and a lot of the content has been republished. I currently can't find any errors in Sentry or high 5xx rates for our apps. I also tested this yesterday and waited for all the content to be republished and didn't find anything.

@cbaines I agree it's more risky, but I'm reasonably confident this isn't being used anywhere.

OK, that's fine then.

authors: cbaines thomasleese

repo: alphagov/publishing-api


text:
Revert HMCTS form import

The HMCTS forms have been imported, so the rake task is no longer
needed.
This reverts these commits from PRs #3792 and #3847:

224860eb2e6b09fcab46703c3525c71d2bbfe986
310918619dbcea78ae5405d6106278b353d33639
bd689f87d6831d3e086874be21c8ce697789cb0c
1adeab5551084f9f64f1ef731f038b0c7e76a671
6eb2a06d0e4e1a78a8ce7908ad7623ddeb4a148f
071c64bb4f98bdfee5908af83a1422fc653a7db2
98319ae8c7c159f8945e05d05b5e70682084c1d2
584b4692779905c4b06fb2160ea85bcfd6a2c2e4
2de9646e06aff9442333f2c05c245709d3931a9b
21ffc0dc63739ca28a11a3cc528a8baf2f07dd64
e32d99e7933deb0c2979b20a41005e9fc3b3992f
55779dd3c55ea1f58ee55a4406c3ea3b8b2861f3
4d7e6df17d092026b0243851481607204aed4c84
3af69543b8664f66ae5a1e5d868ad23d78dd750b

https://trello.com/c/edrMeMOO/119-hmcts-step-3c-help-hmcts-publish-the-documents
Marked as "do not merge" until all the forms have been published.

Everything's been published, so I've removed the "do not merge" label.

repo: alphagov/whitehall


text:
Remove old migrations

It seems unlikely that we'd need to re-run migrations older than 2023, so this PR removes the database and data migrations older than that date.
The advantage of doing this is it makes things like grepping the code and fixing linting errors when rules change easier.
There is precedence for doing this in, for example 5b873a6bd6.
⚠ This repo is Continuously Deployed: make sure you follow the guidance ⚠
Follow these steps if you are doing a Rails upgrade.

Great, thanks @ollietreend and @kevindew. I feel like the costs outweigh the benefits (given that it's fairly easy to pull deleted things out of the git history), so happy to merge.


text:
开发者工具生成的条码可以扫出来，但是手机上生成的就扫不出来

代码示例：
import wxbarcode from 'wxbarcode'
wxbarcode.barcode('barcode', '259311249238', 580, 200)
已经试过很多次了，开发者工具上生成的可以扫出来，手机上生成的很大概率就扫不出东西来，但是如果把手机界面截图有能扫出来

好吧，经过不断调试，差不多已经解决了
生成条形码的宽高比有问题，580:200，680:200生成的条形码都可能会有问题，调整到700:200左右才可以

repo: alsey/wxbarcode


text:
Some changes and refactoring

Description

Cosmetic changes
Created interfaces for all classes
Moved constants to interfaces
Used interfaces instead of direct classes
Namespace refactoring

Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)

Checklist:

[x] My code follows the style guidelines of this project
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings

@all-contributors add @Emulator000 for code

repo: alsoknownasdrew/remote-ok-php


text:
Create Featuretools Entityset to EvalML Walkthrough

We should create a page in the documentation that walks guide of using Featuretools with EvalML. It will show users how EvalML fits into the ML space/pipeline.
This should be jupyter notebook and go in the docs.
The notebook should have no output, and be rendered when the docs are built

We have examples at https://www.featuretools.com/demos/. Will file new issues for specific things,

authors: dsherry gsheni

repo: alteryx/evalml


text:
Add missing AdsRequest.setContinuousPlayback method

see https://developers.google.com/interactive-media-ads/docs/sdks/html5/v3/reference/js/google.ima.AdsRequest#setContinuousPlayback

@niklaskorz thanks for merging. Could you also deploy this change to NPM? https://www.npmjs.com/package/@alugha/ima

Yes, I'll do so in an instant, thanks for the reminder

authors: klipstein niklaskorz

repo: alugha/typed-ima-sdk


text:
update

What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Release note:

update

repo: aluomaidi/kubernetes


text:
Release to forge

It would be great to release and upload a new version to Forge. Otherwise, we're forced to use git source in librarian which has some problems.

Support this. Please release and publish a new version.

repo: alup/puppet-rbenv


text:
Various refactoring

Rename alvr_client_core::poll_event() to alvr_client_core::get_event() and corresponding C function from alvr_poll_event() to alvr_get_event(). This function doesn't do any polling and just pops the event from the queue.
Use thread::yield_now() instead of sleep in render loop. 1ms sleep introduces additional 1ms client compositor latency for little benefit, while with yield we give time to other threads (and we have plenty).
Use thread::yield_now() in decoder thread. Same as above, this should help to avoid additional latency and give time for other threads.
Remove "Video frame queue underflow!" when attempting to dequeue a frame and place "Timed out when waiting for frame!" warning when the frame dequeue function timed out. Queue polling triggers this warning lots of times under almost any condition and creates a huge log spam.
Refactor VSync thread to start up with proper frame interval from the beginning.

For verification, CPU/GPU load with sleep():

CPU/GPU load with yield_now():

I'm not sure there is any semantic difference between poll_event and get_event. That is, for me they are interchangeable. I think "poll" is valid used here and clearly opposed to the pattern of event subscription (ie callback).

@deiteris Your change for the vsync thread undoes the fix I did for #1388. We should start generating vsync before the client fps negotiation.

I'm not sure there is any semantic difference between poll_event and get_event. That is, for me they are interchangeable. I think "poll" is valid used here and clearly opposed to the pattern of event subscription (ie callback). OpenXR also uses poll_event with similar semantic and inner workings.

You can check OpenXR's .poll_event() method and see that it actually loops until the event is obtained (i.e., it pools), while our method just gets the result (it doesn't poll itself).

@deiteris Your change for the vsync thread undoes the fix I did for #1388. We should start generating vsync before the client fps negotiation.

But .recv() blocks until the message is received. VSync will not be generated before that, and with the logic, it will generate a VSync with 20ms interval.

You can check OpenXR's .poll_event() method and see that it actually loops until the event of required result is obtained (i.e., it polls for the event), while our method just gets the result (it doesn't poll itself but gives out instant result).

Nope, OpenXR does not work like that. Events are generated and queued internally. A hint for this is the EventsLost event when the internal buffer is full (instead we don't limit the internal buffer).

But .recv() blocks until the message is received. VSync will not be generated before that, and with the logic, it will generate a VSync with 20ms interval.

Exactly, we don't want this behavior. We want to generate vsyncs as soon as the ALVR driver is alive, way before a client is discovered and connected.

Exactly, we don't want this behavior. We want to generate vsyncs as soon as the ALVR driver is alive, way before a client is discovered and connected.

Huh, okay, dropping this one.

Nope, OpenXR does not work like that. Events are generated and queued internally. A hint for this is the EventsLost event when the internal buffer is full (instead we don't limit the internal buffer).

Then it sounds like this method doesn't actually do any polling and I don't understand why it would require a loop to get an event (and return regardless of whether an event was available). But our method is a simple getter either way.

I think this can be merged do you want me to test this first or the ffr pr(option 2)

@Vixea you can test both. FFR pull request will have only cosmetic change a bit later.

authors: Vixea deiteris zarik5

repo: alvr-org/ALVR


text:
Controller poses out of focus, pico hand tracking bug fixes

Fixed the issue when hands would rotate incorrectly whenever you unfocus from alvr
WIP: Figuring out the best way to deal with potential pico hand tracking bug with active/inactive

@zarik5 i left some comments in-code about issues i've found, can you check them out and comment in the issue? is this just pico runtime bug that needs to be solved on their end?


text:
List available transactions given the state of the state machine

1 New Class:

TransitionMeta which is added to the transition methods .__fsm attribute

2 New StateMachine methods:

all_transitions, returns list of all Transitions
available_transitions, returns list of all available Transitions based on state of the StateMachine

At first, I thought this would be way simpler. Let me know if this is not the solution you were looking for!
It looks like pytest still passes, however this is only my second PR - so I would love some feedback!

Codecov Report

Merging #22 into master will decrease coverage by 13.75%.
The diff coverage is 49.12%.

@@             Coverage Diff             @@
##           master      #22       +/-   ##
===========================================
- Coverage   96.10%   82.35%   -13.76%
===========================================
  Files           7        7
  Lines         154      204       +50
===========================================
+ Hits          148      168       +20
- Misses          6       36       +30

Impacted Files
Coverage Δ

finite_state_machine/exceptions.py
78.57% <40.00%> (-21.43%)
:arrow_down:

finite_state_machine/state_machine.py
75.23% <43.47%> (-24.77%)
:arrow_down:

finite_state_machine/draw_state_diagram.py
81.08% <100.00%> (-0.74%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bb96cf3...b522af6. Read the comment docs.

authors: codecov-io sammydowds

repo: alysivji/finite-state-machine


text:
🛑 gjj.itove.com is down

In 64cf091, gjj.itove.com (https://gjj.itove.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: gjj.itove.com is back up in 3a921a2 after 3 minutes.

repo: alzee/up


authors: amannn quannv

repo: amannn/next-intl


text:
Is it possible to speed it up without printing a certain line

Thank so much for your code, its helping me in my project.
But I am facing a small issue not sure if we can fix it or not:
I am embedding (using XLNET) 3 inputs each input has 5400 sentences and each sentence has 20 words
so the total is 3 * 5400 * 20
2 hours has passed till now and it still didn't finish embedding the first input (5400 *20)
I think I will run out of memory in Google Colab as well before finishing the embedding part [ofcourse this happened 🙈 it didn't even finish embedding the 1st input]
I notice that with each embedding its printing
"Converting texts to features: 100%|██████████| 20/20 [00:00<00:00, 17637.95it/s]INFO:tensorflow:memory input None
INFO:tensorflow:Use float type <dtype: 'float32'>"

is it possible to avoid printing that line with each embedding to speed up the process ?

Printing that progressbar is not delaying your code.


text:
add lifcl (lattice crosslink-nx) eval board definition file

tested on crosslink-nx board, blinking all 14 LEDs

I... think you unintentionally deleted the repository with the PR?

authors: slagernate whitequark

repo: amaranth-lang/amaranth-boards


text:
Ellipsis character in PR title breaks deploy

Describe the bug
An ellipsis character (…) in the title of a PR breaks deploy with this error:
+++ oc --insecure-skip-tls-verify -n sonova-d8-pr-819 get configmap lagoon-env -o yaml
+++ shyaml get-value data
+++ sha256sum
+++ awk '{print $1}'
error: error converting JSON to YAML: %!(EXTRA *errors.errorString=yaml: control characters are not allowed)
Error: invalid path 'data', can't query subvalue 'data' of a leaf (leaf value is None).

Taking a look at the configmap I see that the only field with weird characters is LAGOON_PR_TITLE.
Here's an edited snippet - there are unprintable characters in the field which don't show up here:
{
    "apiVersion": "v1",
    "data": {
        "LAGOON_PR_TITLE": "<snip> enable automÃÂ¢ÃÂÃÂ¦",

Running the raw value through FTFY, you can see the problem:
s = 'enable automÃ\x83Â\x83Ã\x82Â\x83Ã\x83Â\x82Ã\x82Â¢Ã\x83Â\x83Ã\x82Â\x82Ã\x83Â\x82Ã\x82Â\x80Ã\x83Â\x83Ã\x82Â\x82Ã\x83Â\x82Ã\x82Â¦'
s = s.encode('latin-1')
s = s.decode('utf-8')
s = s.encode('latin-1')
s = s.decode('utf-8')
s = s.encode('latin-1')
s = s.decode('utf-8')
s = s.encode('latin-1')
s = s.decode('utf-8')
s = s.encode('latin-1')
s = s.decode('utf-8')
print(s)

> enable autom…

This string has been erroneously encoded/decoded between utf-8 and latin-1 a bunch of times resulting in mojibake.
To Reproduce
Steps to reproduce the behavior:

Create a PR on a Lagoon project with PR environments enabled. Put a … in the PR title.
Deploy the environment.
See error

Expected behavior
Deploy should succeed no matter what is in the PR title.
Screenshots
n/a
Additional context
Lagoon should be fully utf-8 clean to avoid these kinds of encoding problems. #1681 might be related.

A workaround appears to be to edit the PR title in Github. This will send a webhook to Lagoon which will update the title in the Lagoon API.

repo: amazeeio/lagoon


text:
test: Use HTTPS instead of GIT protocol

Mainly so that people outside Ambiata can build/run the tests.
! @jystic

@erikd mind pushing this to the ambiata/mafia repo so the tests run

@jystic Sure, will do that as @erikd-ambiata when I'm back in the office on Thursday.

cool, sounds good

What do you think of the idea of setting up travis for external PRs?

Moved to https://github.com/ambiata/mafia/pull/147

authors: erikd erikd-ambiata jystic

repo: ambiata/mafia


text:
great addon but

i would love if you could add a toggle to completely disable the overlay

I put an option to turn the overlay off in v1.1.

authors: Squimbert ambiren

repo: ambiren/FishingMode


text:
运行 tg-signer run 提示如下  请问是我操作的问题吗还是哪里没配置对 还请大佬指点

root@VMHKBVOUEJUH:~# tg-signer run
Traceback (most recent call last):
File "/usr/local/bin/tg-signer", line 8, in
sys.exit(cli())
File "/usr/local/lib/python3.8/dist-packages/tg_signer/main.py", line 2, in cli
from .signer import app, main
File "/usr/local/lib/python3.8/dist-packages/tg_signer/signer.py", line 90, in
class SignConfig:
File "/usr/local/lib/python3.8/dist-packages/tg_signer/signer.py", line 91, in SignConfig
chats: list[SignChat]
TypeError: 'type' object is not subscriptable

使用Python3.9及以上，下次升级会支持Python3.8。

0.2.0支持Python3.8了

repo: amchii/tg-signer


text:
bug: "Back" button links to homepage, not previous page

The Back button doesn't actually link users to the previous page they accessed in the current tab, but to the homepage instead. I want to rename the button so it more accurately reflects its destination.

Done! Updated appearance of freesound-player after selecting a sound visible in this repository's screenshots folder.
The same screenshot is below for convenience.

Done! The updated appearance of freesound-player after selecting a sound is now visible in this repository's screenshots folder.
The same screenshot is below for convenience.

repo: amilajack/freesound-player


text:
Jar包这种sdk层面的转换是否有什么方案呢

像dex apk这种主要还是针对于编译后的加固，如果是开发过程中的针对组件形式的保护可能我觉得碰到的场景会更多一点

我觉得可以像dcc的demo一样,弄两个工程.用Java工程编译出apk或者把jar先转成dex,然后用dcc处理,将生成的c代码导入到c工程,从c工程成最终的jar.

我觉得可以像dcc的demo一样，弄两个工程。用Java工程编译出apk或者把罐先转成dex，然后用dcc处理，将生成的c代码导入到c工程，从c工程成最终的jar 。

很抱歉，借楼主楼层一用。
关于#4那个问题，因为被关闭了issue，我无法回复。
No such file or directory: '/tmp/dcc-project-6vv47sj6/libs/x86_64/libnc.so，这种错误是因为我的apk本身有多个平台的so，而我却指定APP_ABI := armeabi-v7a这样编译单一的so。DCC默认编译apk内自带的所有架构的so，所以才会出现这种报错。

dcc默认只编译armeabi-v7a,apk支持其他abi的话,需要自己加上.

其实我觉得将jar使用d8或者dx转成dex后使用dcc进行处理，处理时标记出所有已经处理的方法或类，然后使用asm对原jar进行修改

其实我觉得将jar使用d8或者dx转成dex后使用dcc进行处理，处理时标记出所有已经处理的方法或类，然后使用asm对原jar进行修改

这个方案更友好,比较好自动化.

其实我觉得针对dex的这种也可以加入自动化，反编译后插入一个smali用于控制loadLibray so，用全局变量控制so是否已被加载，然后在每个已处理的类中加入static{}来加载这个方法

其实我觉得针对dex的这种也可以加入自动化，反编译后插入一个smali用于控制loadLibray so，用全局变量控制so是否已被加载，然后在每个已处理的类中加入static{}来加载这个方法

这是的通用的方案.大佬兴趣的话可以pr一波.
不过如果先用androguard解析下AndroidManifest.xml,看app有没有指定appComponentFactory,或者是Application,有的话只需要在他们的static代码块插入so加载代码就可以了;都没有的话再用这个方案.这样看起来更干净些.

@Virenz 用dx把jar转dex是没有问题的，毕竟这是官方生成dex的方式，或者用r8，但如果直接把修改后的dex再使用dex2jar转回jar包，简单逻辑一般没问题，复杂逻辑转换过程中就会出错了

@Virenz 用dx把jar转dex是没有问题的，毕竟这是官方生成dex的方式，或者用r8，但如果直接把修改后的dex再使用dex2jar转回jar包，简单逻辑一般没问题，复杂逻辑转换过程中就会出错了

jar转dex修改后在转会jar，测试了一些会导致jar无法使用，复杂的jar转dex虽然不会错，但是会有警告

@Virenz 参考Android Studio怎么编译jar到dex的就行了 这个阶段没毛病，主要的是怎么针对sdk层面的去处理jar

@Virenz 参考Android Studio怎么编译jar到dex的就行了 这个阶段没毛病，主要的是怎么针对sdk层面的去处理jar

sdk层修改jar这块，这几天也在找了几个修改jar包内容的框架也包括asm，想请大佬指点下，刚弄这块很迷糊

可以参考下市面上的一些加固产商对sdk做加固的做法，比如易盾、360等

@Virenz 参考Android Studio怎么编译jar到dex的就行了 这个阶段没毛病，主要的是怎么针对sdk层面的去处理jar

老哥解决dcc加固jar/aar了吗

@Virenz 参考Android Studio怎么编译jar到dex的就行了 这个阶段没毛病，主要的是怎么针对sdk层面的去处理jar

老哥解决dcc加固jar/aar了吗

同问

repo: amimo/dcc


text:
How to use GPU for encoding faster?

How to use GPU for encoding faster?

See #51 and #27

authors: HiddenPirates aminyazdanpanah


text:
Fix for issue 31

Summary
This resolves issue 31 by going depth-first rather than breadth-first in walking the tree of dictionaries
Bug Fixes/New Features

Resolves issue 31

How to Verify
Utilize input data of the format:
{ "somedict/anotherdict/0/0": "firstvalue",
  "somedict/anotherdict/0/1": "secondvalue",
  "somedict/anotherdict/1/0": "thirdvalue",
  "somedict/anotherdict/1/1": "fourthvalue" }

This should result in the below output after using unflatten_list()
{ "somedict": {
        "anotherdict": [
         [   "firstvalue",
            "secondvalue" ],
         [  "thirdvalue",
            "fourthvalue" ] ]
  }
}

Side Effects
No known side effects
Resolves
Fixes issue #31
Tests
No changed tests, does resolve failure testing with above values.
Code Reviewer(s)
No code reviewers

@arutledge-xactly thanks for the PR. Do you mind adding the case you mentioned as a test?

Absolutely, I'll see what I can do about that.  Will append to the PR once
I get something in test_flatten.py.
Thank you!
-Andrea Rutledge
On Tue, May 8, 2018 at 12:04 PM, Amir Ziai notifications@github.com wrote:

@arutledge-xactly https://github.com/arutledge-xactly thanks for the
PR. Do you mind adding the case you mentioned as a test?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/amirziai/flatten/pull/32#issuecomment-387490704, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AlKDDI8UMDGaA_H-CPF3oAUfl0s-BpVoks5twd4hgaJpZM4T3FVG
.

--
http://www.xactlycorp.com/email-click/
https://www.instagram.com/xactlycorp/
https://www.linkedin.com/company/xactly-corporation
https://twitter.com/Xactly   https://www.facebook.com/XactlyCorp
http://www.youtube.com/xactlycorporation

Hello @arutledge-xactly! Thanks for updating the PR.

In the file test_flatten.py, following are the PEP8 issues :

Line 226:29: W291 trailing whitespace
Line 228:25: E201 whitespace after '['
Line 229:39: E202 whitespace before ']'
Line 230:25: E201 whitespace after '['
Line 231:39: E202 whitespace before ']'

authors: amirziai arutledge-xactly pep8speaks

repo: amirziai/flatten


text:
lets make sure we can focus on the filter search input

I have overwritten template and removed filter search input field. Then I got javascript error where it cannot .focus() on the input as it doesnt exist.
Here is a quick check if it exists as a fix.
Any comments/amends please let me know

Cool, thanks!


text:
[Needs Review] b07902079 張庭禎

A Pull Request (PR) should explain why we need this PR and how you implement it, so others could understand it quickly.
Since this is just a homework, you do not need to explain why and how.
Do NOT change the status to NeedsReview if you do not want to be graded yet.
Please fill in the following questions as feedback. It is totally optional and would not be graded.
What is the most challenging part in this homework?
Is this homework helpful for you?
Is there any suggestion?

PR readiness check list

[  ] Did it pass the Flake8 check?
[  ] Did you test this PR?
[  ] Did you change the title of this PR to the correct format ([status] student_ID)?

@amjltc295 I have deleted unnecessary file changes in "remove unnecessary file".


text:
Trigger useMMKVStorage change when removeItem is called

Calling removeItem does not trigger useMMKVStorage to update the current value as the updateValue function does not do anything if the key no longer exists.
This diff fixes this issue by calling setValue(null) if the key does not exist in storage.

Thanks for the fix!

authors: ammarahm-ed frw

repo: ammarahm-ed/react-native-mmkv-storage


text:
Customer Meeting on June 3, 2022

User story

As a PO
I want / need to conduct the meeting with our customer
So that we can demo our current progress and ask specific questions

Agenda for the meeting

Demo of the current status of the app by one SD (who?)
POs discuss their internal prioritization of features with customer´s prioritization
If time left: open discussion with customer regarding technical questions

Who will attend?
Please check if you attend the meeting.

[ ] @cynthiachen28
[x] @Meisterlu
[x] @codingwithelijah
[ ] @domi1504
[x] @Chippelius
[ ] @Interperle
[ ] @Wandinad
[ ] @jannikbmc
[ ] @NicoStellwag

As always i cannot attend it, because i am working that day.

@SDs: If you have any questions, that could be also interesting to clarify from a business perspective, just post them here. Then I will add them in the discussion with the customer. :)

Things to discuss:
#105 --> see comment from @Chippelius

authors: codingwithelijah jannikbmc


text:
Access symfony container in Task

Hi,
I'm new to amphp, trying to get the glimpse of it by reading documentation and different issues on github/stackoverflow but didn't find a solution for what I'm struggling with.
I have managed to make an async loop :
 $env = new BasicEnvironment();
            $env->set('container', $this->getContainer());
            Loop::run(function () use (&$results, &$pages, &$env) {

                $pool = new DefaultPool;
                $coroutines = [];
                foreach ($pages as $index => $page) {
                    $coroutines[] = \Amp\call(function () use ($pool, $index, $page, $env) {
                        $task = new autoPostTask($page, $env);
                        $result = yield $pool->enqueue($task);
                        var_dump($index.' '.$result);
                        return $result;
                    });

                    if(count($coroutines) == 25){
                        $results[] = yield \Amp\Promise\all($coroutines);
                        $coroutines = [];
                    }
                }

                return yield $pool->shutdown();
            });

But my problem lies with Symfony container, I need it in my Task, so I tried injecting it using the environment but it's not working. The run process of the Task won't run when I'm doing this :
class autoPostTask implements Task  {

    private $page;

    private $autoPostService;

    private $env;

    public function __construct($page, $env) {
        $this->page = $page;
        $this->env = $env;
        $container = $env->get('container');
        $this->autoPostService = $container->get('auto_post.service');
    }

    public function run(Environment $environment) {

        return $this->checkPage($this->page);
    }

    protected function checkPage(Page $page){

        var_dump($page->getId());

Any idea what is wrong ? How can I achieve what I'm trying to do ?
Thanks in advance for your help,
Julien

Container can't be serialized so you can't just send it to the child process like that. You need to create it from scratch inside of that process. When solving this myself I wrote and abstract BaseTask which does the logic for me:
<?php declare(strict_types = 1);

namespace App\Library\Parallel;

use Amp\Parallel\Worker\Environment;
use Amp\Parallel\Worker\Task;
use App\Kernel;
use Psr\Container\ContainerInterface;
use Symfony\Component\ErrorHandler\Debug;
use Symfony\Component\ErrorHandler\DebugClassLoader;

abstract class BaseTask implements Task
{
	/**
	 * @var array<string, string>
	 */
	private array $env;

	public function __construct()
	{
		$this->env = $_ENV;
	}

	protected function get(Environment $environment, string $service): object
	{
		if (! $environment->exists('container')) {
			$environment->set('container', $this->createContainer());
		}

		$container = $environment->get('container');
		assert($container instanceof ContainerInterface);

		return $container->get($service);
	}

	private function createContainer(): ContainerInterface
	{
		if ($this->env['APP_DEBUG'] === '1') {
			umask(0000);

			Debug::enable();
			DebugClassLoader::disable();
		}

		$_ENV = $this->env;

		$kernel = new Kernel($this->env['APP_ENV'], (bool) $this->env['APP_DEBUG']);
		$kernel->boot();

		return $kernel->getContainer();
	}
}

then in the real task I can do this:
	public function run(Environment $environment): Promise
	{
		return call(
			function () use ($environment): Generator {
				$myService = $this->get($environment, MyService::class);
				$myService->...
			}
		);
	}

Thanks @enumag !

Other question, you may have noticed that I’m doing a dirty hack to limit the run the loop every 25 coroutine because otherwise I’m getting an error. Do you know if there is a limitation ?

What error are you getting otherwise?

PHP Warning:  include(/Users/pessey/Documents/MASHUP/addict_api/vendor/symfony/symfony/src/Symfony/Component/Debug/Exception/ContextErrorException.php): failed to open stream: Too many open files in /Users/pessey/Documents/MASHUP/addict_api/vendor/symfony/symfony/src/Symfony/Component/Debug/DebugClassLoader.php on line 155

That's an OS level limit. See https://stackoverflow.com/questions/14748499/fatal-error-too-many-open-files

Thanks again ! :)

authors: enumag pesseyjulien

repo: amphp/parallel


text:
error while running CifarApp

When I am running the CifarApp on SparkCluster, the following error comesup:
16/06/08 12:50:04 INFO DAGScheduler: ResultStage 14 (foreach at CifarApp.scala:105) failed in 0.040 s 16/06/08 12:50:04 INFO DAGScheduler: Job 8 failed: foreach at CifarApp.scala:105, took 0.049292 s Exception in thread "main" org.apache.spark.SparkException: Job aborted due to stage failure: Task 1 in stage 14.0 failed 1 times, most recent failure: Lost task 1.0 in stage 14.0 (TID 43, localhost): java.lang.ArrayIndexOutOfBoundsException

Looks like that is the line
 workers.foreach(_ => workerStore.get[CaffeSolver]("solver").trainNet.setWeights(broadcastWeights.value))

It's possible that the lookup workerStore.get[CaffeSolver] is failing. So perhaps try just
 workers.foreach(_ => workerStore.get[CaffeSolver]("solver"))

and see if that succeeds or fails.
If that is failing, it may be that some worker does not have a net on it. How many nodes are you using? And what are you passing into CifarApp for the number of workers?

@robertnishihara  Did that but the following errors raised.
F1009 04:25:49.868021  8028 split_layer.cpp:21] Check failed: count_ == top[i]->count() (100 vs. 1000000)
*** Check failure stack trace: ***
F1009 04:25:49.868021  8027 split_layer.cpp:21] Check failed: count_ == top[i]->count() (100 vs. 1000000) F1009 04:25:49.868021  8029 blob.cpp:21] Check failed: count_ == other.count() (1000000 vs. 100)
*** Check failure stack trace: ***
Aborted

authors: auszone prakhar21 robertnishihara

repo: amplab/SparkNet


text:
[TACHYON-1628-cn]Add the Chinese version of documentation page 'Architecture'

Add the Chinese version of documentation page 'Architecture'. See https://tachyon.atlassian.net/browse/TACHYON-1628

Can one of the admins verify this patch?

LGTM

ok to test

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

Click http://www.tachyon-project.org/documentation/master/en/Architecture.html and choose Chinese version.

LGTM

authors: AmplabJenkins ifcharming summerDG yupeng9

repo: amplab/tachyon


text:
Add context-keyword notify feature

Context: https://github.com/ampproject/amphtml/pull/28203
When an extension adds prerenderAllowed to a JS file, it then requires approval by Runtime team. It'd be nice if we could add a context-keyword setting to the notify settings, so that this is done automatically.

While I can see how this would definitely be a useful feature, it doesn't seem to have a close tie-in with most of the owners bot functionality. Are there many other cases like this where particular tokens require team approval, or is it more typically a set of runtime-related keywords? I ask because my hunch is that this may be better solved with a dedicated app to scan each PR and block where relevant.

authors: jridgewell rcebulko

repo: ampproject/amp-github-apps


text:
Return string to object

Hi, I have Dropdown component with filtering.
I'm getting data for the component from ...
clubs = dataClubs.map((item) => {
return ({
value: item.id,
label: <Translate text="..." >
});
});
Displaying a component is OK, but if I start filtering over the data, an error message will be displayed:
TypeError: option.label.toLowerCase is not a function
I tried to use "getTranslated" and work, but I must put in params language and translation.
Is it possible to add something like <Translator>, where the parameter will be just text?
That you very much for help.
Ales

Can I ask if you are continuing to develop a react-translated project or have finished and will no longer develop or modify the code. It seems to me that this project is very ideal for regular translation. I chose from many projects and it was the best.

repo: amsul/react-translated


text:
Integrate axe into build process

At a minimum, for the front end, and probably for the backend too.

Svelte gave us some of this linting for free.

repo: amyjko/bookish


text:
Deserialize User information from the Context

Hello,
We've implemented the HouseholdListEventListener interface in our application and are receiving events when users create, update and delete lists.
We'd like to convert the list ID's we receive to their corresponding value, and therefore need access to the consent token. The issue is that the session is null for these events, therefore we can't access it via envelope.getSession().getUser().getPermissions().getConsentToken(). According to the docs, this token is also present on the Context object in the request, however ContextDeserializer does not parse the User information from the Context.
Please could you consider adding it, or suggest a workaround?
Thanks,
James

Not to worry, found via context.getState(SystemInterface.class, SystemState.class).
Thanks,
James

repo: amzn/alexa-skills-kit-java


text:
Only sync published releases.

The current code for syncing releases breaks if there are repositories that contain unpublished/ draft releases. This introduces a change to ignore those releases.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Thank you!

authors: MaineC hyandell

repo: amzn/oss-dashboard


text:
Prototype

Create a short program. We should see that mouse is available

Done


text:
PointerSpeedometer Question

Hi,
Is possible to add text above the pointer like in the attached image ?

Additionally are the values sv_lowSpeedColor, sv_mediumSpeedColor & sv_highSpeedColor working in PointerSpeedometer?
Thanks.

No you can't, if you need it you should build custom speedometer, but take a look at Notes maybe you can add unlimited note to do something like you want!

No, these colors are not available in PointerSpeedometer, but sections are available .

authors: anastr vasilenastastitanium

repo: anastr/SpeedView


text:
Parsing by parts sometimes returns not whole strings

to fix this
stringBuilder.append(data, startStringPos, pos - startStringPos);
need to be added after line JsonParser:439 to save state.
Please take a look.

and after JsonParser:561 too stringBuilder.append(data, startStringPos, pos - startStringPos);

pr attached
https://github.com/anatolygudkov/green-jelly/pull/2

Thank you very much for your report. The issue with partially processed strings seems to be fixed on our side by now. We really needed JsonParser:561 too stringBuilder.append(data, startStringPos, pos - startStringPos); as you commented on Aug 7. And we also have a change which equals to your JsonParser:439 but in another place. We have updated tests and now they are OK. So, I'm closing the issue as fixed.

authors: allmycode anatolygudkov

repo: anatolygudkov/green-jelly


text:
add zstd-compressed layers support

go-containerregistry supports zstd-compressed layers since v0.13.0, this enables it.

note: I force pushed to rebase the branch

authors: wagoodman xdavidwu

repo: anchore/stereoscope


text:
No dependency graph relationships reported in CycloneDX output

What happened:
I am scanning against a Python repo using Poetry (poetry.lock). Using cyclonedx-json output (also tried other output including json) and I do not get the dependency graph.
What you expected to happen:
I want the CycloneDX dependencies section to be filled
How to reproduce it (as minimally and precisely as possible):
syft packages dir:. -o cyclonedx-json
Anything else we need to know?:
Environment:

Output of syft version: 0.56
OS (e.g: cat /etc/os-release or similar): macos

Hmmm I see that it's not implemented https://github.com/anchore/syft/blob/main/syft/pkg/cataloger/python/parse_poetry_lock.go#L18-L31 :(

Indeed, this could be a nice enhancement -- PRs are welcome! :)

authors: fproulx-boostsecurity kzantow

repo: anchore/syft


text:
Syft looks for the config file in $PWD, not in the target directory. Intentional?

What happened:
When a processing a directory, e.g. syft ~/repos/syft, Syft does not read the .syft.yaml config file in the target directory. It reads the one in the current directory instead.
What you expected to happen:
Expected Syft to read <target directory>/.syft.yaml rather than $PWD/.syft.yaml
Steps to reproduce the issue:
In the root of this repository:
cat << EOF > .syft.yaml
exclude:
- "**/test-fixtures"
- "./.github"
EOF

function count_packages_by_purl_type() {
  local dir=$1
  syft "$dir" -o cyclonedx-json |
    jq '.components[].purl | try match("pkg:[^/]*").string catch "<no purl>"' |
    sort | uniq -c | sort -h
}

count_packages_by_purl_type . 2>/dev/null
#   1675 "pkg:golang"

cd ..

count_packages_by_purl_type ./syft 2>/dev/null
#      1 "pkg:rpm"
#      2 "pkg:ebuild"
#      2 "pkg:nix"
#      4 "pkg:composer"
#     10 "pkg:swift"
#     13 "pkg:cargo"
#     13 "pkg:pub"
#     18 "pkg:apk"
#     18 "pkg:conan"
#     28 "pkg:nuget"
#     30 "<no purl>"
#     39 "pkg:github"
#     39 "pkg:pypi"
#     44 "pkg:hex"
#     46 "pkg:cocoapods"
#     47 "pkg:generic"
#     55 "pkg:hackage"
#     57 "pkg:npm"
#     59 "pkg:maven"
#    109 "pkg:gem"
#   1690 "pkg:golang"

Environment:

Output of syft version:

Application: syft
Version:    0.99.0-SNAPSHOT-0e5fb8e0
BuildDate:  2024-01-03T13:16:47Z
GitCommit:  0e5fb8e01fd0b4f48b69b5cedefd876e756f6d61
GitDescription: v0.99.0-8-g0e5fb8e0
Platform:   linux/amd64
GoVersion:  go1.21.5
Compiler:   gc

(built with make build from 0e5fb8e01fd0b4f48b69b5cedefd876e756f6d61)

OS (e.g: cat /etc/os-release or similar): Fedora Linux 39 (Workstation Edition)

Hi @chmeliik, thanks for the report. I think our intention here is indeed to find the syft configuration file in the current working directory, and not in the target directory. However, if you'd like to include a config file in the directory to be scanned, you can specify a particular config file using --config or -c on the syft command line. Would that suit your needs? I can definitely understand the need for custom configurations per directory being scanned.

Given that some of the configuration options feel like they're scoped to the thing I'm scanning (e.g. exclude), it seemed strange that Syft should read the configuration in the current directory rather than the one it is scanning.
But if that's intended that's OK, using --config or making sure I'm in the right directory will work for me :+1:

Sure, I understand your reasoning here, but I think we will preserve existing behavior. Glad the --config method will work for you. I'll close this issue out but please let us know if you need anything else. For reference, here's the section of the README docs describing the config parsing: https://github.com/anchore/syft#configuration

authors: chmeliik tgerla


text:
Hass Pathways logo is unreadable in light mode

This should be an easy fix, likely will involve just inverting the colors of the logo and switching the logo image depending on dark/light mode

Alternatively, make the navbar color the primary (red) color so the logo stands out, this would also make the light mode navbar less boring

Added two different logos that get displayed depending on the current mode. See frontend/src/assets/dark-mode-logo.png and frontend/src/assets/light-mode-logo.png.

authors: Bowserinator CryptidGrrrl dimitri-lopez


text:
JQ for MQTT

Keine Ahnung, warum die "JQ for Script" Änderungen in meinem Master waren und daher auch in den "JQ for MQTT" Branch reingelaufen sind. Daher der letzte "revert unrelated changes" Commit.
Ich hasse git.

Beim Start kommt einmalig der Fehler
[site  ] ERROR 2021/04/22 17:47:03 updating grid meter: jq: query failed: expected an object but got: number (-2148)

danach tut aber alles wie gewünscht. Kann mir den Fehler leider nicht erklären.

Andere Hälfte von #883

Ich muss das in Ruhe lokal anschauen. Bei Gh schwer zu lesen. Die Commits sind egal, wird am Ende eh „gesquasht“.

Erstmal danke, Feedback folgt!

authors: Alestrix andig

repo: andig/evcc


text:
Help!The version of torch used in the paper！

Running validation for epoch 1/300
Traceback (most recent call last):
File "main.py", line 147, in
main()
File "main.py", line 143, in main
train(model, device, hidden_config, train_options, this_run_folder, tb_logger)
File "/content/HiDDeN/train.py", line 85, in train
utils.save_images(image.cpu()[:images_to_save, :, :, :],
File "/content/HiDDeN/utils.py", line 57, in save_images
torchvision.utils.save_image(stacked_images, filename, original_images.shape[0], normalize=False)
File "/usr/local/lib/python3.8/dist-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
return func(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/torchvision/utils.py", line 728, in save_image
im.save(fp, format=str(format))
File "/usr/local/lib/python3.8/dist-packages/PIL/Image.py", line 2123, in save
save_handler = SAVE[format.upper()]
KeyError: '8'
When we reproduce the experiment, we found a lot of errors caused by our difference from your Torch version.we  want to know which version of Torch you used in paper, Appreciate it.

I am not the author of the paper, there is a link to the paper and their repo which was in Lua+Torch, NOT PyTorch.
This repo was tested with PyTorch 1.0.

repo: ando-khachatryan/HiDDeN


text:
Question: Resources about how CEML computes counterfactuals?

Just wondering how CEML goes about computing the actual counterfactuals for the models.

Hi,
you can find more information in my papers - e.g. https://arxiv.org/pdf/1911.07749.pdf
Best wishes,
André

I added a short list of references to the documentation.

repo: andreArtelt/ceml


text:
🛑 INTK is down

In b785b6d, INTK (https://www.intk.com/en) was down:

HTTP code: 0
Response time: 0 ms

Resolved: INTK is back up in a20fb59 after 24 minutes.

repo: andreesg/intk-upptime


text:
Add distance parameter to weaviate similarity_search

Is that error due to vectorizer: "none" below?
  # Create default schema
    def create_default_schema
      client.schema.create(
        class_name: index_name,
        vectorizer: "none",
        properties: [
          # TODO: Allow passing in your own IDs
          {
            dataType: ["text"],
            name: "content"
          }
        ]
      )
    end

Looks like Weaviate wants you to use their 'modules' to do nearText.  I see the following available in their docs:

@andreibondarev I think we would need to enable 'modules' for the different llms in your weaviate-ruby gem, if I'm reading this correctly (see https://weaviate.io/developers/weaviate/configuration/modules).  There's an environment variable ENABLE_MODULES to set and some code to add in that gem to determine the vectorization method to use depending on the llm passed into Weaviate::Client.new.
If that's true, we should work on the weaviate-ruby gem before finishing this PR.  Correct?

@andreibondarev I'm getting an authenication error.  Can you look at this if possible?
New usage, which can hopefully be simplifed:
 weaviate = Langchain::Vectorsearch::Weaviate.new(
  url: ENV["WEAVIATE_URL"],
  api_key: ENV["WEAVIATE_API_KEY"],
  index_name: "Recipes",
  llm: Langchain::LLM::GooglePalm.new(api_key: ENV["GOOGLE_PALM_API_KEY"]),
  model_service: :google_palm,
  model_api_key: ENV["GOOGLE_PALM_API_KEY"],
  project_id: "websiteone-153210" ). # Project ID in google cloud under which api key was created

  weaviate.create_default_schema_palm

  weaviate.add_texts ...

  weaviate.simularity_search ...

Error:
/Users/mattlindsey/.rvm/gems/ruby-3.2.1/gems/weaviate-ruby-0.8.3/lib/weaviate/query.rb:41:in `rescue in get': {"Recipes"=>["explorer: get class: vectorize params: vectorize params: vectorize params: vectorize keywords: remote client vectorize: connection to Google PaLM failed with status: 401 error: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project."]} (Weaviate::Error)
  from /Users/mattlindsey/.rvm/gems/ruby-3.2.1/gems/weaviate-ruby-0.8.3/lib/weaviate/query.rb:5:in `get'
  from /Users/mattlindsey/github/langchainrb/lib/langchain/vectorsearch/weaviate.rb:135:in `similarity_search'

@mattlindsey The way Langchain.rb handles Weaviate is that it's not using any of it's modules because, for example, with vectorization we do the vectorization ourselves with any LLM passed in and send the ready vectors.

@andreibondarev I guess that's fine, but it looks like you can't do many types of queries easily without the modules and there are features like batching for performance.  In that case, I'll look into other ways to limit a query by distance.

@mattlindsey Sorry, I'll review this PR in a bit. But do you need to enable modules to pass the distance param?

@andreibondarev No problem and no hurry.  I don't actually have a use for it at the moment, but all of the ways to limit a query (https://weaviate.io/developers/weaviate/search/similarity#limit-the-results) seem to require nearText.  I'm guessing it's hard or inefficient to do with just the vectors.   We can leave this for later if you want...

This can actually be done pretty easily without modules, so I'll close this PR and submit another:
    def similarity_search_by_vector(embedding:, k: 4, distance: 2.0)
      near_vector = "{ vector: #{embedding} distance: #{distance} }"

authors: andreibondarev mattlindsey

repo: andreibondarev/langchainrb


text:
Keys can be inspected now and much more

See updated after.png

keys of Map and OrderedMap can be inspected now
All supported collections have size information aside a type name e.g. OrderedSet[5]
altered Record values are previewed aside Record type e.g. MyRecord {value: MyRecord}
keys of altered Record values are bolder
added index.html with simple demo
heavy refactoring

Great stuff! Thanks very much.
I've published this to NPM.

Thank you :-)

This looks great! :+1:

authors: andrewdavey colbyr langpavel

repo: andrewdavey/immutable-devtools


text:
🛑 nhcam is down

In fc44869, nhcam ($NHIPCAM) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nhcam is back up in d04b750.

repo: andrewdavies-net/upptime


text:
🛑 nhcam is down

In 1300681, nhcam ($NHIPCAM) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nhcam is back up in a611a38.


text:
discrepancy with AWS S3 for non-utf8 key names

S3Proxy returns 404 when I try to HEAD a key that's not valid utf8, whereas aws returns 400. For ListObject, both return 403.
AWS S3:
2017/03/14 00:06:58 DEBUG: Request s3/HeadObject Details:
---[ REQUEST POST-SIGN ]-----------------------------
HEAD http://s3-us-west-2.amazonaws.com/zwryrjs2vjnu5su7/%AE%8A- HTTP/1.1
Host: s3-us-west-2.amazonaws.com
User-Agent: aws-sdk-go/1.0.0 (go1.7.5; linux; amd64)
Authorization: AWS4-HMAC-SHA256 Credential=AKIAJZP3GQRDDHSDPVOA/20170314/us-west-2/s3/aws4_request, SignedHeaders=host;x-amz-date, Signature=c2e525178f22ff31477cd2f39aa56b00e6ccbbd6e6c77512232db8ef2eb32884
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Date: 20170314T070658Z
-----------------------------------------------------
2017/03/14 00:06:58 DEBUG: Response s3/HeadObject Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 400 Bad Request
Connection: close
Transfer-Encoding: chunked
Content-Type: application/xml
Date: Tue, 14 Mar 2017 07:06:58 GMT
Server: AmazonS3
X-Amz-Id-2: uTuLEkOBaQu+7qlioztYjl1AimGyhrK3E0g0LZCp0S9LgRLvy2CTOmVF3Dmv4BJ/YtvQWPr2q18=
X-Amz-Request-Id: CE60C5D3261F9937

Upstream issues: CODEC-228 and ceph/s3-tests#156.

authors: andrewgaul kahing


text:
Support for front-end UI frameworks

Any thought about add a custom theming feature so one could slip in UI frameworks like Material-UI or even (god forbid) Bootstrap.
I would mark this as a question, not issue, but I don't know how to do so

Hey @abigtoe.
Winterfell is built with the idea in mind that is flexible for your needs. You can add custom classes to types of elements around the instance of Winterfell, defined in the schema.
You can find information regarding settings classes in the README. Fun fact, the Winterfell demo site uses Boostrap!
Thanks.

authors: abigtoe andrewhathaway

repo: andrewhathaway/Winterfell


text:
Simplify internal API

As mentioned by @SeanFarrow on Twitter:

I wonder whether we have missed a trick with the pwned password validator client, we currently return a boolean and the number of instances the password was pwned, should we not just return the number of instances and 0 if the password was not found?

It's an internal API, so doesn't really matter, but I agree!

This looks good, however I wonder whether int is large enough, should we use either ULong- (we know the value is positive) or something larger?

Int is large enough currently by a factor of 100, but it's a fair point, so just using a long might be the easiest? I'm not personally a fan of using unsigned vals generally, though prob would be fine here as we're doing any arithmetic with it.

Exactly, we know the number is going to be positive, so unsigned makes sense—I don’t like them either btw, but why use a long when we can get more precision using ulong, then we’re future proof!
I’ll let you update and merge.
From: Andrew Lock notifications@github.com
Sent: 16 September 2018 10:16
To: andrewlock/PwnedPasswords PwnedPasswords@noreply.github.com
Cc: Sean Farrow sean.farrow@seanfarrow.co.uk; Mention mention@noreply.github.com
Subject: Re: [andrewlock/PwnedPasswords] Simplify internal API (#7)
Int is large enough currently by a factor of 100, but it's a fair point, so just using a long might be the easiest? I'm not personally a fan of using unsigned vals generally, though prob would be fine here as we're doing any arithmetic with it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/andrewlock/PwnedPasswords/pull/7#issuecomment-421729548, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABY1fp6TODw13jMb5SRXFrJ-KDBj-4jtks5ubhbGgaJpZM4WqgJX.

Haha, I'm actually suggesting we stick with long!  I don't think ulong is worth it for the extra precision - long gives every person on the planet a billion pwned passwords - we don't need to make that 2 billion 😉

Ok, I forget what the total number currently in the system is, but that should suffice!
From: Andrew Lock notifications@github.com
Sent: 16 September 2018 14:33
To: andrewlock/PwnedPasswords PwnedPasswords@noreply.github.com
Cc: Sean Farrow sean.farrow@seanfarrow.co.uk; Mention mention@noreply.github.com
Subject: Re: [andrewlock/PwnedPasswords] Simplify internal API (#7)
Haha, I'm actually suggesting we stick with long! I don't think ulong is worth it for the extra precision - long gives every person on the planet a billion pwned passwords - we don't need to make that 2 billion 😉
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/andrewlock/PwnedPasswords/pull/7#issuecomment-421766154, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABY1fmBb5mYloJB57FP_9IajiPzjrm7eks5ublMSgaJpZM4WqgJX.

authors: SeanFarrow andrewlock

repo: andrewlock/PwnedPasswords


text:
How can I change background image in python wrap.

Hi, @andrewssobral . Thanks for the great job!
I use python to run the code, and it's cool,  but I wonder to know that when I want to change the background(such as when the background environment getting darker and darker, I have to change the background), how can I do ?

Hi @Wisgon ,
I'm not sure to understand your question, but why you want to change the background?
Do you want to manually update the background image?
Usually, for most bgs algorithms, the background image is updated automatically...as I understood, you want to fix the background image when it's created (e.g. stopping the update)?
Thanks

Yes, I want to fix the background image, because the light of the environment is changing, when I use opencv's algorithms, I can manually update background image, so I want to know how to update background image, or it's updated automatically?

Yes, usually the background model is updated automatically, but for some algorithms, you can stop the update by setting the learning rate to zero, for example:
AdaptiveBackgroundLearning, DPWrenGA, KDE - parameter alpha
AdaptiveSelectiveBackgroundLearning - parameter alphaLearn
LBAdaptiveSOM, LBFuzzyAdaptiveSOM, LBFuzzyGaussian - parameter learningRate
...
which bgs method are you using?
Thanks

I use python wrapper, as I know, python wrapper only implement two method "apply" and "getBackgroundModel", so I figure it out with re-init the object like "bgs = libbgs.SuBSENSE()" to get a new "bgs" that have different background.

Hi @andrewssobral
I just wondering does other bgs algorithms have learning rate that I can change?
Thank you!

authors: AOOOOOA Wisgon andrewssobral

repo: andrewssobral/bgslibrary


text:
Dynamic forms (multiple items)

Hello,
I want to create a survey with multiple items (Informations about my children for example).
If I choose '3' in the dropdownlist, I want to have 3 subforms (first name, last name, birth date...) in the survey.
If I choose '5', I would like that dynamically it displays 5 forms 'child'.
Here a visual example :
https://s24.postimg.org/45mfjupv7/Capture_Children.png
How I can do that ? (If it's possible).
Thank you

@copazze Are you looking for something like this: http://surveyjs.org/examples/jquery/condition-kids.html ?

Yes something like that, but how I can do that, if I have "1/2/3/4/.../10/20/etc..." chooses in my dropdownlist ?
Can we do a FOR loop ? Or I have to write each sub question with "visibleIf: '{items} >= 20'"
Thank you

You may use onValueChanged event, here is the example: http://surveyjs.org/examples/jquery/survey-data.html
You may change the visibility of required questions on this event.
Thank you,
Andrew

I there a way to manage this without preparing a fixed amount of hidden form?
Any function to add row to a MutlipleText question would be great.
I tried to manage this via DOM cloning an initial question into additional one, but then their IDs get duplicated and i cannot get data once the form is submitted.
`function addFields(name, n) {
		item = survey.getQuestionByName(name.toLowerCase()).items[0];
		if (survey.getQuestionByName(name.toLowerCase()).items) {
			survey.getQuestionByName(name.toLowerCase()).items = [];
			survey.getQuestionByName(name.toLowerCase()).items[0] = item;
		}

		for (var i = 0; i < n; i++) {
			item.name = name.toLowerCase() + "_ip" + i
			item.title = name + " IP " + (i + 1)
			survey.getQuestionByName(name.toLowerCase()).items[i] = jQuery
					.extend(true, {}, item);
		}
	}`

Any way to manage this via survey apis ?

@aroundthecode Sure, here is the example:
<!DOCTYPE html>

    <button onclick="addNewMultipleItem()">Add Item</button>

Thank you,
Andrew

Hi Andrew, thanks for the fast reply, suggested code works perfectly in generating the interface.
Sadly each field seems to get reset every time it lost focus, clearing the input area.
Am I doing something wrong?
Here is my code, I've a fist page where I declare the number of field (the 'nfronend' question), and I'm using the page change (second page named 'details') event to populate the form of 'frontend' question with the number of needed input field:
function doOnCurrentPageChanged(survey) {
			if (survey.currentPage.name == "details") {
				console.log(survey.getQuestionByName('nfrontend').value)
                                addFields('Frontend', survey.getQuestionByName('nfrontend').value)
				survey.render();
			}
		}

function addFields(name, n) {
			var question = survey.getQuestionByName(name.toLowerCase());
			survey.getQuestionByName(name.toLowerCase()).items = [];
			for (var i = 0; i < n; i++) {
				question.addItem(name.toLowerCase() + "_ip" + i, name + " IP " + (i + 1) );
			}
		}

function sendDataToServer(survey) {
			var resultAsString = JSON.stringify(survey.data);
			console.log(survey.data);
			alert(resultAsString); //send Ajax request to your web server.
		}

@aroundthecode I have to modify the library, so the addItem will add the required item without full survey re-rendering.
Could you describe your scenario, probably there is a better solution?
For example, maybe you can use MatrixDanymic quesiton with one column: http://surveyjs.org/examples/jquery/questiontype-matrixdynamic.html
Thank you,
Andrew

What I'm trying to achieve is:

the users choose from the fist page an architecture template (single-choice-radio)
depending on the choice 3 hidden text questions are automatically filled with needed server number
moving to details page 3 multitext question should be rendered with a textarea for each corresponding number of server so that the user can fill in with

the code I posted above describe just step 3 with a single question instead of 3.
Using multitext is probably just a "layout" preference but it's not a constraint if I can achieve dynamic rendering with standard single-text input (i.e. adding questions instead of items inside a multi-question)
thanks in advance for your support

@aroundthecode In this case, you may remove the survey.render() code and you will be done.
As soon as you will get the result from the server, add the needed multiple text items and when an end-user goes to the third page, the model will be changed at this moment and survey will render the question correctly, according to the latest changes.
Please let us know if it works. We will look for another solution in case it doesn't help.
Thank you,
Andrew

Hi Andrew,
I'm afraid I didn't explained the scenario properly since there is no server interaction at all.
I've recreated the relevant part of my survey into a JSFiddle so that you can check both code and json data: https://jsfiddle.net/55py0gvq/
No need for any backend API at the moment, I'm just console-logging the final result to check form data.
Depending on the first page choice, the number of input text on the second page will change.
If you select the "custom" bullet, then the "number-of-server" hiddend field become visible so that you can insert the number manually instead of using any preset.
As per the original ticket I could pre-allocate a number of text area and simply hide them instead of cleaning/generating them on-the-fly, but I would keep this as a workaround.
As you can see in the second page all form get reset as soon as they lost focus.

@aroundthecode I am using onValueChanged event:
https://jsfiddle.net/zadu36j7/
Is it correct now?

@andrewtelnov can't find any difference in your jsfiddle from the original one, which is che change to be applied? the onValueChanged was already present and the form cleanup issue is still present

@aroundthecode Sorry, my bad, I forgot to click update: https://jsfiddle.net/zadu36j7/1/

ok, I can see changes now.
If i understand correctly you moved the update direcly upon template selection instead of doing it upon page change.
Sadly, I still see text areas being cleaned up on lost of focus. Is it working to you ?

Sadly, I still see text areas being cleaned up on lost of focus. Is it working to you ?

To be honest I do not understand the issue you are talking about. Are you talking about clearing the data?
Anyway, I do not think it is have to do with the model changing. The data, question values are stored in the survey and you may remove all old questions and add new once, the data will not change.
There are many "setdata" triggers. Could they be a reason?

The issue is that when i write anything in the first text area, then move on the second one, the first one is cleared up.
steps to reproduce (both mine or your fiddle):

select "Two chain, two server each" (or whatever else)
hit "next" and go page 2
write anything into "portal IP 1" textarea
click anywhere outside the textarea or hit tab key
"portal IP 1" textarea get cleared up and data is not submit upon form complete

@aroundthecode I found the issue. Here is the working code: https://jsfiddle.net/zadu36j7/2/
function updateFields(name, n) {
	var question = survey.getQuestionByName(name.toLowerCase());
        //question.items = []; it will to the bug
        question.items.splice(0,question.items.length);
	for (var i = 0; i < n; i++) {
	   question.addItem(name.toLowerCase() + "_ip" + i, name + " IP " + (i + 1) );
	}
}

The items push method is overridden.  When we set it to [], the items use a standard push method.
I am consider this as a bug, since, on setting the items, push/splice methods should be set correctly again.
Anyway, the current workaround works.
Thank you,
Andrew

@andrewtelnov , it works perfectly!
Now forms is correctly persited in both web interface and in final serialization.
thanks a lot for your support, I'm really impressed by how you guys managed this so fast!
:+1: :+1: :+1:

@aroundthecode Great!
spread good news about the project :-)
Thank you,
Andrew

The bug is fixed: https://github.com/surveyjs/surveyjs/issues/315

authors: andrewtelnov aroundthecode copazze

repo: andrewtelnov/surveyjs


text:
As a Facility Supervisor I want to be able to add the amenities that my facility has to offer

Facility supervisors may identify additional places that I want to market and program. This might be inside or outside. If it is outside, I may need to draw on a map what I am intending to market/program. I may need to reference my current list or map of amenities.

From a rec leader:

repo: andrewviren/PPRstat

license: isc