text:
About Noise Settings

Dear authors,
Thanks for your open-source library. I would like to ask if the noise settings in the current code ensure that the noise labels remain consistent across different random seed selections. If not, would this affect the fairness of experimental comparisons?
Best regards.

Thank you very much for your response! So, the results in your paper primarily follow Scheme 2, correct? If I want to conduct some explorations, which scheme do you think would be more reasonable?

Yes, the paper adopts the second scheme. I would recommend trying out the first scheme if there is enough compute, though my guess is that the result won't be significantly different (but I might be wrong here). Looking forward to seeing the new results!

Thank you very much for your suggestions.

repo: qiaoruiyt/NoiseRobustDG


text:
安装包建议

作者大大门 ，安装包能不能出个选择安装路径的选项啊，我实在不想把应用放在C盘

单文件版和安装包本质都是压缩包，使用压缩软件打开解压即可，受限于打包工具我们目前没办法提供安装路径选择

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
verify type meets its variants' interfaces

VariantType.validate is currently stubbed and always returns True. It should verify that a type meets each of its variant's interfaces.

No longer relevant. The variant protocol dispatches appropriately now.

authors: ebolyen jairideout

license_source: bigquery


text:
CI is failing creating html from notebooks

Nightly CI has been failing for the past 3 days (the contents of the repo have not changed at all in that time).
/home/runner/work/qiskit-algorithms/qiskit-algorithms/docs/tutorials/02_vqe_advanced_options.ipynb:161: ERROR: Unexpected indentation.
/home/runner/work/qiskit-algorithms/qiskit-algorithms/docs/tutorials/02_vqe_advanced_options.ipynb:169: ERROR: Unexpected indentation.
/home/runner/work/qiskit-algorithms/qiskit-algorithms/docs/tutorials/02_vqe_advanced_options.ipynb:172: ERROR: Content block expected for the "raw" directive; none found.
/home/runner/work/qiskit-algorithms/qiskit-algorithms/docs/tutorials/02_vqe_advanced_options.ipynb:191: ERROR: Unexpected indentation.
/home/runner/work/qiskit-algorithms/qiskit-algorithms/docs/tutorials/02_vqe_advanced_options.ipynb:199: ERROR: Unexpected indentation.
/home/runner/work/qiskit-algorithms/qiskit-algorithms/docs/tutorials/02_vqe_advanced_options.ipynb:202: ERROR: Content block expected for the "raw" directive; none found.

One change that I do notice is that nbconvert is now 7.14.0, and has been failing since that version, where the last time it passed was when 7.13.1 was the latest. It appears to be similar to this issue raised on nbconvert jupyter/nbconvert#2092

I'll leave this open so the pinning, done by #119, can be addressed as needed in the future

repo: qiskit-community/qiskit-algorithms


text:
Bi-LTSM's implementation

Are you want to implement a bidirectional LSTM in the Model.py file between line 62 to 64? If the answer is YES. Here are a mistake of the Bi-LTSM's implementation.Did you forget to reverse the last_1b's output before input the add operation?

Yes, I saw this mistake too.

I do not really understand your comment.
Is it reverse because I used go_backwoards = True in lstm_1b?
If it is wrong, please let me know how to fix it.

'go_backwoards = True' in lstm_1b is only reverse the input of the lstm_1b,  If you not reverse the output of the lstm_1b, for example, now the output is (S'_i, S'_i-1, ... S'2, S'i) will be added to (S_1, S_2,...S_i-1,S_o)(the output of the lstm_1). Are your sure your code between line 62 to 64 is to implement a Bi-LSTM or other. If you want to implement a Bi-LSTM it should be:
lstm_1 = LSTM(256, return_sequences=True, name='lstm_1')(inner)
lstm_1b = LSTM(256, return_sequences=True, go_backwards=True, name='lstm_1b')(inner)
reversed_lstm_1b= Lambda(lambda inputTensor: K.reverse(inputTensor, axes=1)) (lstm_1b)
lstm1_merged = add([lstm_1, reversed_lstm_1b])

Now I understand.
I've been using it wrong so far.
I modified your 'model.py' code with your help.
Thank you.

Why not try Bidirectional
 layer = Bidirectional(LSTM(256, return_sequences=True, kernel_initializer='he_normal'),                                   merge_mode='concat')(layer)

Why not try Bidirectional
 layer = Bidirectional(LSTM(256, return_sequences=True, kernel_initializer='he_normal'), merge_mode='concat')(layer)

I also wonder why..  Is there any problem with this?


text:
Test Issue - yyldg

Test Body - rsivpddqgv

Test Comment - gqpfr

repo: qlikqaa/dummyrepo


text:
Test Issue - tmgsf

Test Body - ltreahtlgx

Test Comment - ckpdt


text:
Test Issue - pqibc

Test Body - cohdwyldbm

Test Comment - yqbsk


text:
Test Issue - xblka

Test Body - erqzynrmel

Test Comment - sdvkc


text:
Test Issue - zyyqm

Test Body - wkictcarog

Test Comment - iaxey


text:
Test Issue - slztx

Test Body - doxptbimfw

Test Comment - jkfip


text:
Test Issue - wtiht

Test Body - cyhogvzbue

Test Comment - ioyap


text:
Test Issue - fyilg

Test Body - lttjcjlsck

Test Comment - ukjhu


text:
Test Issue - gpble

Test Body - prrwcwvftp

Test Comment - ahbnn


text:
Test Issue - jygit

Test Body - sdufjgnpwy

Test Comment - kcpgn


text:
Test Issue - szpfn

Test Body - sbbzlfuxpr

Test Comment - glpcl


text:
Test Issue - izssv

Test Body - jnyohqrudk

Test Comment - kzwno


text:
Test Issue - weuxz

Test Body - gadeqopbob

Test Comment - qjxwf


text:
Test Issue - umpeg

Test Body - xozouvbwqb

Test Comment - ikcnf


text:
Test Issue - mulag

Test Body - yhcbkklrsh

Test Comment - zxccq


text:
Test Issue - jnfpe

Test Body - pmcutsbxmw

Test Comment - vdloa


text:
Test Issue - adery

Test Body - nahsycibul

Test Comment - mzfie


text:
Test Issue - byqan

Test Body - oqlpeosvrz

Test Comment - nxxpk


text:
Test Issue - bajzr

Test Body - htdbrtqyyk

Test Comment - eanrw


text:
Test Issue - khnze

Test Body - fshcsznneu

Test Comment - dbdte


text:
Test Issue - wfyij

Test Body - wdfstgvucr

Test Comment - nuzcx


text:
Test Issue - ijjwz

Test Body - thfyphsmxd

Test Comment - bcqho


text:
Test Issue - jxole

Test Body - lydgoojjqf

Test Comment - xvemh


text:
Test Issue - tzlnl

Test Body - ljvgkzhqho

Test Comment - qfcje


text:
Test Issue - unpye

Test Body - stddfwfksn

Test Comment - mkizq


text:
CDNで呼び出したが、JSON-APIが動作しない

【現状】
・CDN読み込み　<script src="https://unpkg.com/browse/@qni/elements@0.0.44/"></script>
・HTMLに直で<quantum-circuit id="quantum-circuit"></quantum-circuit>
・APIにPOST →document.getElementById("quantum-circuit").setAttribute("data-json", '{"cols":[["|0>","|0>"],["H",1],["•","X"],["Measure",1],[1,"Measure"]]}')});
をしたが、描画されない。

CDN のリンクは https://unpkg.com/@qni/elements@0.0.44/dist/index.js を使ってみてください。
unpkg.com/browse/... はブラウザで開く用のパスです。

@Watayo  たとえば次のような html を試してみてください。
注意点として @qni/elements を使うときは .js のほかに .css のロードが必要です。
<!doctype html>
<html>
  <head>
    <title>load @qni/elements</title>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link href="https://unpkg.com/@qni/elements@0.0.45/dist/qni.css" rel="stylesheet" />
    <script type="module" src="https://unpkg.com/@qni/elements@0.0.45/dist/index.js" defer></script>
  </head>
  <body>
    <quantum-circuit id="quantum-circuit"></quantum-circuit>

    <script>
     document.getElementById("quantum-circuit")
             .setAttribute("data-json", '{"cols":[["|0>","|0>"],["H",1],["•","X"],["Measure",1],[1,"Measure"]]}');
    </script>
  </body>
</html>

@Watayo このイシューは閉じても大丈夫でしょうか? (動いているっぽいのを湊さんのツイートで見ました 笑)

authors: Watayo yasuhito

repo: qniapp/qni


text:
Increase size of command in cron jobs

Hi, would be fine if you can increase the size of command input box in cron jobs as "Input to command" box.
See attach.
Thanks

Thanks for using my theme! Well, sure I could increase it but you could easily do it yourself by using custom styles. Simply add the following to custom style.css to get desired result:
input[name*="cmd"] {
	min-width:400px;
}

Yes but you made a great theme and i'm trying to use it on some VMs, so it's not convenient to make it on every webmin session :)

I see. It that the only place where you think that input's width should be increased?

Description field in same page
View log file field in System Logs
TCP Wrappers -> Edit Deny Rule -> Remote Hosts/Shell commands
Partitions -> Filesystem label
Disk and Network filesystem -> Edit Mount -> all fields in Swap file section

Should be enough for me :D

I will take a look closer to the next release and I will add it to the distro for you. Please keep searching for more and post it here.
Thanks for advising.

Thanks a lot, of course!

+1 for cron job increase hard to see what commands are been run.
Great job of the theme

Yes, yes I will add this for sure in the next release! :) Was releasing quickly a fix.

authors: Leen15 lukesUbuntu qooob

repo: qooob/authentic-theme


text:
能否兼容到go 1.7.1？

在1.7.1下单元测试 发现metadata包需要改为cloud.google.com/go/compute/metadata

Hi
能给多点具体信息吗？跑什么才会出现你说的问题？

执行单元测试go test -v ./...
首先出现编译错误，提示信息是需要把包改为cloud.google.com/go/compute/metadata

请问是在你自己的项目上执行go test -v ./...吗？qor-example本身没有单元测试。
qor-exmaple本身没有用metadata, 不过用到的oauth2用到了metadata.

这样跑会把vendor里面的都跑一边，你可以通过这个跑go test $(go list ./... | grep -v /vendor/ | grep  -v /db/)

确实在1.7+上面跑不过。
版本：go1.7.3 windows/amd64
运行报错：
# github.com/qor/admin
..\admin\meta.go:49: undefined: resource.MetaConfigInterface

authors: Gaubee binku87 leenux

repo: qor/qor-example

license: mit


text:
PHP 8.2 does not match composer.json dependencies

Hello,
I'm trying to upgrade our php version from 8.1 to 8.2. Unfortunately your package throw me an error when I do a composer install because of php version limited to 8.1.
I will open a PR to increase this version dependency 🙏🏻
Regards

Can you clarify what you mean? ^8.1 does not forbid to use the package with PHP 8.2. Which issues did you end up with?

this repository is now abandon.

authors: gennadigennadigennadi mcsky xabbuh

repo: qossmic/deptrac-shim


text:
No longer able to use "--" to terminate option flags

qpdf no longer allows standard GNU-style termination of option lists by using a -- indicating that anything after is NOT supposed to be an option flag. For example using the filename -in.pdf:
qpdf --compression-level=9 -- -in.pdf out.pdf

This results in an error:

qpdf: unrecognized argument --

For help:
  qpdf--help=usage       usage information
  qpdf--help=topic       help on a topic
  qpdf--help=--option    help on an option
  qpdf--help             general help and a topic list

This is expected to treat all arguments after the literal -- as filenames, like it did at the time of release 10.5.0.
Doing a bisect, I believe this was a regression introduced in ac0060ac38ecf4fa380f49fd1e40ebaabb479596.
The help message is also wonkily-formatted.

Treating all arguments after -- as non-options was never intended and was never implemented. What was in fact happening (which I didn't even realize) was that -- was simply ignored except when used to terminate subparsers (--pages, --encrypt, and a few others). Note that qpdf does not follow gnu argument conventions.
I'm not sure whether I should re-introduce the unintentional behavior of ignoring -- as it was never documented behavior. I didn't even know it did that, actually.

What seems wonky to you about the help? It looks as intended to me. Can you point out what specifically you see as wonky? Note that, as with CLI, there is no intention to conform to gnu conventions.

If it turns out that people were relying on this behavior, I will probably have to release 10.6.2 with an immediate fix.

What's wonky about the help message is that it tells you to run qpdf--help=usage which isn't a valid command. It should be qpdf --help=usage. There's a missing space.

I am fixing both issues and releasing it as 10.6.2 along with another fix that is needed for pikepdf, so you can expect this to be fixed in the next day or two. Thanks for reporting it. I honestly had no idea qpdf was ignoring a bare -- at the top level of arg parsing, and I guess I lost the functionality when I completely refactored argument parsing.

No problem-o. Thanks for responding so quickly. 🥇

repo: qpdf/qpdf


text:
Update Solidity compiler (Remix) link

Qtum Core v0.16.2
The "Solidity compiler" link on the Smart Contracts create page links to https://ethereum.github.io/browser-solidity/ and a popup on that site gives this error message:
"The Remix IDE has moved to http://remix.ethereum.org. This instance of Remix you are visiting WILL NOT BE UPDATED. Please make a backup of your contracts and start using http://remix.ethereum.org"
Suggest creartecontract.cpp line 112 should be updated to http://remix.ethereum.org, or maybe https://qmix.blockchainspaceman.com/

Create Contract page

Pop error message on old Remix

Fixed here: https://github.com/qtumproject/qtum/commit/f1a94aae8db7dd99ecb480f92c59620496bb5836

repo: qtumproject/qtum


text:
cropped picture

Some time text is cropped at the left edge

repo: quaddy-services/DynamicNightLight


text:
Enhancement: password on launcher

Is there an existing issue for this?

[x] I have searched the existing issues.

Please describe the feature you have in mind and explain what the current shortcomings are?
mdp launcher
How would you imagine the implementation of the feature?
mdp launcher
Are there any labels you wish to add?

[x] I have added the relevant labels to the enhancement request.

Describe alternatives you've considered:
No response
Additional context:
No response

I've made a (PR)[https://github.com/quadproduction/OpenPype/pull/562], can you try and tell me if it meets our expectations ?

"cancel" ouvre le launcher

Hello, I pushed a fix, can you try again please?

authors: ccaillot louparis

repo: quadproduction/OpenPype


text:
Error Importing DifferentiallyPrivateDistributedDataParallel

I ran your command provided in the readme. But got some error.
torchrun --standalone --nproc_per_node=gpu src/gpt2_ft.py \
    --train_data ./data/e2e/train.jsonl \
    --valid_data ./data/e2e/valid.jsonl \
    --train_batch_size 1 \
    --grad_acc 1 \
    --noise_multiplier 0.6 \
    --max_grad_norm 1.0>  \
    --valid_batch_size 4 \
    --seq_len 512 \
    --model_c> ard gpt2.md \
    --init_checkpoint ./pretrained_che> ckpoints/gpt2-pytorch_model.bin \
   >  --clip 0.0 \
    --lr 0.0004 \
    --weight_> decay 0.01 \
    --correct_bias \
    --adam_beta2 0.999 > \
    --scheduler constant \
    --warm> up_step 0 \
    --max_epoch 20 \
 >    --save_interval 1000 \
    --lora_dim 4 \
>     --lora_alpha 32 \
    --lora_dropout 0.0 \
    --label_smooth 0.> 1 \
    --work_dir ./trained_models/GPT2_M/e> 2e \
    --random_seed 110> > > > > > > > > > > > > >
Traceback (most recent call last):
  File "src/gpt2_ft.py", line 23, in <module>
    from opacus.layers import DifferentiallyPrivateDistributedDataParallel as DPDDP
ImportError: cannot import name 'DifferentiallyPrivateDistributedDataParallel' from 'opacus.layers' (/opt/conda/lib/python3.7/site-packages/opacus/layers/__init__.py)
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 1077) of binary: /opt/conda/bin/python
Traceback (most recent call last):
  File "/opt/conda/bin/torchrun", line 8, in <module>
    sys.exit(main())
  File "/opt/conda/lib/python3.7/site-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py", line 346, in wrapper
    return f(*args, **kwargs)
  File "/opt/conda/lib/python3.7/site-packages/torch/distributed/run.py", line 762, in main
    run(args)
  File "/opt/conda/lib/python3.7/site-packages/torch/distributed/run.py", line 756, in run
    )(*cmd_args)
  File "/opt/conda/lib/python3.7/site-packages/torch/distributed/launcher/api.py", line 132, in __call__
    return launch_agent(self._config, self._entrypoint, list(args))
  File "/opt/conda/lib/python3.7/site-packages/torch/distributed/launcher/api.py", line 248, in launch_agent
    failures=result.failures,
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
============================================================
src/gpt2_ft.py FAILED
------------------------------------------------------------
Failures:
  <NO_OTHER_FAILURES>
------------------------------------------------------------
Root Cause (first observed failure):
[0]:
  time      : 2023-07-03_11:31:53
  host      : f7e96c4001945011ee0917a0c7f822b9ff09-task1-0.f7e96c4001945011ee0917a0c7f822b9ff09.ed9ed5aa2938366557d3851691b38794.svc.cluster.local
  rank      : 0 (local_rank: 0)
  exitcode  : 1 (pid: 1077)
  error_file: <N/A>
  traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
============================================================

And here is the package I installed
# pip list
Package                  Version
------------------------ ----------
absl-py                  1.4.0
accelerate               0.20.3
aiohttp                  3.8.3
aiosignal                1.3.1
anyio                    3.6.2
argon2-cffi              21.3.0
argon2-cffi-bindings     21.2.0
async-timeout            4.0.2
asynctest                0.13.0
attrs                    21.4.0
Babel                    2.11.0
backcall                 0.2.0
beautifulsoup4           4.10.0
bleach                   5.0.0
blis                     0.7.9
brotlipy                 0.7.0
cachetools               5.3.1
catalogue                2.0.8
certifi                  2021.10.8
cffi                     1.14.6
chardet                  4.0.0
charset-normalizer       2.1.1
click                    8.1.3
conda                    4.10.3
conda-build              3.21.5
conda-package-handling   1.7.3
confection               0.1.0
cryptography             35.0.0
cymem                    2.0.7
datasets                 2.7.1
debugpy                  1.6.0
decorator                5.1.0
defusedxml               0.7.1
dill                     0.3.6
dnspython                2.1.0
elastic-transport        8.4.0
elasticsearch            8.5.3
entrypoints              0.4
evaluate                 0.4.0
faiss-gpu                1.7.2
fastjsonschema           2.15.3
filelock                 3.3.1
frozenlist               1.3.3
fsspec                   2022.11.0
glob2                    0.7
google-auth              2.21.0
google-auth-oauthlib     0.4.6
grpcio                   1.56.0
huggingface-hub          0.11.1
idna                     2.10
importlib-metadata       4.11.3
importlib-resources      5.7.1
ipykernel                6.13.0
ipython                  7.29.0
ipython-genutils         0.2.0
jedi                     0.18.0
jieba                    0.42.1
Jinja2                   3.1.1
json5                    0.9.6
jsonschema               4.4.0
jupyter-client           7.3.0
jupyter-core             4.10.0
jupyter-server           1.23.3
jupyterlab               3.0.0
jupyterlab-pygments      0.2.2
jupyterlab-server        2.16.5
langcodes                3.3.0
libarchive-c             2.9
loralib                  0.1.1
Markdown                 3.4.3
MarkupSafe               2.1.3
matplotlib-inline        0.1.2
mistune                  0.8.4
mkl-fft                  1.3.1
mkl-random               1.2.2
mkl-service              2.4.0
multidict                6.0.3
multiprocess             0.70.14
murmurhash               1.0.9
nbclassic                1.0.0
nbclient                 0.6.0
nbconvert                6.5.0
nbformat                 5.3.0
nest-asyncio             1.5.5
nlp                      0.4.0
notebook                 6.4.11
notebook-shim            0.2.3
numpy                    1.21.2
nvidia-cublas-cu11       11.10.3.66
nvidia-cuda-nvrtc-cu11   11.7.99
nvidia-cuda-runtime-cu11 11.7.99
nvidia-cudnn-cu11        8.5.0.96
oauthlib                 3.2.2
olefile                  0.46
opacus                   1.4.0
opt-einsum               3.3.0
packaging                21.3
pandas                   1.3.5
pandocfilters            1.5.0
parso                    0.8.2
pathy                    0.10.2
peft                     0.3.0
pexpect                  4.8.0
pickleshare              0.7.5
Pillow                   8.4.0
pip                      21.0.1
pkginfo                  1.7.1
preshed                  3.0.8
progress                 1.6
prometheus-client        0.14.1
prompt-toolkit           3.0.20
protobuf                 3.20.3
psutil                   5.8.0
ptyprocess               0.7.0
pyarrow                  10.0.1
pyasn1                   0.5.0
pyasn1-modules           0.3.0
pycosat                  0.6.3
pycparser                2.20
pydantic                 1.10.10
Pygments                 2.10.0
pyOpenSSL                20.0.1
pyparsing                3.0.8
pyrsistent               0.18.1
PySocks                  1.7.1
python-dateutil          2.8.2
python-etcd              0.4.5
pytz                     2021.3
PyYAML                   6.0
pyzmq                    22.3.0
regex                    2022.10.31
requests                 2.28.1
requests-oauthlib        1.3.1
responses                0.18.0
rsa                      4.9
ruamel-yaml-conda        0.15.100
scipy                    1.7.3
Send2Trash               1.8.0
sentencepiece            0.1.99
setuptools               58.0.4
six                      1.16.0
smart-open               6.3.0
sniffio                  1.3.0
soupsieve                2.2.1
spacy                    3.5.4
spacy-legacy             3.0.12
spacy-loggers            1.0.4
srsly                    2.4.6
tensorboard              2.11.2
tensorboard-data-server  0.6.1
tensorboard-plugin-wit   1.8.1
terminado                0.13.3
thinc                    8.1.10
tinycss2                 1.1.1
tokenizers               0.13.2
torch                    1.13.1
torchelastic             0.2.0
torchtext                0.11.0
torchvision              0.11.1
tornado                  6.1
tqdm                     4.64.1
traitlets                5.1.0
transformers             4.25.1
typer                    0.9.0
typing-extensions        4.4.0
urllib3                  1.26.6
wasabi                   1.1.2
wcwidth                  0.2.5
webencodings             0.5.1
websocket-client         1.4.2
Werkzeug                 2.2.3
wheel                    0.36.2
xxhash                   3.1.0
yarl                     1.8.2
zipp                     3.8.0

Its been moved into opacus.distributed, but don't worry the rest of the code (and the original library) is so broken that none of it runs anyway

Hi, I don't maintain this code. Please contact the authors of the paper for support: https://github.com/huseyinatahaninan/Differentially-Private-Fine-tuning-of-Language-Models/tree/main/Language-Generation-GPT-2

authors: Aryan-Seth quan-possible xiehuanyi


text:
🛑 otakusan is down

In 435818d, otakusan (https://otakusan.net/LightNovel) was down:

HTTP code: 0
Response time: 0 ms

Resolved: otakusan is back up in 5ef30fc after 14 minutes.


text:
🛑 hako.re is down

In 20ff51e, hako.re (https://mangochan.site/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: hako.re is back up in 373acd9 after 1 hour, 56 minutes.


text:
🛑 anonystick - Tips Javascript is down

In af6807c, anonystick - Tips Javascript (https://anonystick.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: anonystick - Tips Javascript is back up in 762c14a.


text:
🛑 Xemphim club is down

In 84a6f32, Xemphim club (https://xemphim.club/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Xemphim club is back up in be9e056.


text:
🛑 otakusan is down

In 3ffcf8f, otakusan (https://otakusan.net/LightNovel) was down:

HTTP code: 0
Response time: 0 ms

Resolved: otakusan is back up in b71f90d.


text:
🛑 medium is down

In fab4609, medium (https://medium.com/) was down:

HTTP code: 429
Response time: 38 ms

Resolved: medium is back up in c8b8859.


text:
🛑 medium is down

In 4172f6c, medium (https://medium.com/) was down:

HTTP code: 429
Response time: 23 ms

Resolved: medium is back up in 1efc471.


text:
🛑 kokocon is down

In c9295e4, kokocon (http://kokocon.net/) was down:

HTTP code: 500
Response time: 249 ms

Resolved: kokocon is back up in 10a32e8 after 7 minutes.


text:
Adding a Zipline Binder?

I was just looking through some JupyterLab repos (among others) and was reminded of Binder. I think it'd be pretty cool to have a Binder in the README for people to play around with Zipline's beginner tutorial before they decide whether or not they'd like to install it.

Thoughts @richafrank @ssanderson @llllllllll?

closing because:

zipline is very data intensive and not a great fit for ephemeral notebooks
quantopian is free hosted zipline :)

repo: quantopian/zipline


text:
Should cirq.measure allow sets as inputs?

Is your design idea/issue related to a use case or problem? Please describe.
I was running some cirq Circuits and got confusingly unrepeatable results, until I realized that the problem was that I was doing something like
circuit = cirq.Circuit(input_circuit, cirq.measure(input_circuit.all_qubits()))

all_qubits produces a set, so constructing this kind of Circuit and sampling from it repeatedly can give inconsistent results since the order of the measured qubits may be different.
Describe your design idea/issue
Perhaps we should disallow passing Set or FrozenSet as the input to cirq.measure?

From cirq sync:
Doug: We should add a big red flag to the documentation to call out that all_qubits returns set which doesn't preserve insertion order.
Pavol: Maybe we can change the ordering of unordered sequences (like sets) in the implementation of cirq.measure. If the input argument is ordered, then we can keep it as it is.

On the core question of whether cirq.measure should not accept sets, I don't think we should do that. There's no way in general to detect whether a given iterable comes from an "ordered" or "unordered" collection, so at best we'd be adding special cases for types that people happened to have problems with.
On all_qubits, it does seem unfortunate that AbstractCircuit.all_qubits iterates over the qubits in deterministic order for a given circuit only to then throw away that ordering information when we wrap the result in frozenset. We might consider changing this method to return an ordered set instead. Internally, we have OrderedSet and OrderedFrozenSet classes that would be easy to externalize if we wanted to do this. The implementation is very simple using a dictionary with empty values, since dict keys in python are an ordered set (it's an odd choice that stdlib sets are not ordered while dicts are).

I think one other drawback of all_qubits is that it iterates over the entire space time volume of the circuit (all moments x all qubits in moments) to figure out the qubit set. This is usually expensive and can hurt users if they are not careful (eg: using circuit.all_qubits() inside a loop instead of caching it once outside the loop).
We can also consider maintaining an internal dictionary of qubit_counts: Dict[cirq.Qid, int] that tracks the number of operations on each qubit. The dictionary can be easily updated when inserting / deleting operations in the circuit and then all_qubits() would just return the keys of this dictionary, which would also preserve insertion ordering (assuming we change the return type form frozen set to an ordered set or a tuple).

Yes, the expensive computation is an issue. I worry that trying to track properties such as all qubits in a circuit as it's being mutated is going to be very error-prone, and there are many other properties we'd potentially like to track in addition to the qubits so it'd be hard to cover everything. I'd prefer if we could encourage using immutable circuits with more explicit "builder" patterns when constructing or mutating circuits, since properties like all qubits can easily be cached on immutable objects (we already do this for FrozenCircuit.all_qubits). But it's going to be hard to push things in the direction of immutability because the mutable cirq.Circuit is so heavily used everywhere (and it's name is easier to type than cirq.FrozenCircuit).

authors: maffoo tanujkhattar zchen088

repo: quantumlib/Cirq


text:
Add a method for finding flow generators of a circuit

Something like
def flow_generators(self, *, canonicalize: bool = False) -> list[stim.Flow]

This exists now

repo: quantumlib/Stim


text:
Logfile test

大事

後述するテストを実行すると"about:debugging"でデバッグをクリックしても何も起きなくなる謎現象が起きます。
この謎現象はFirefoxの再起動，キャッシュ・Cookie等の削除では治りません。

logfile_test.jsについて

savelogでデータを保存しgetlogでデータを取得しています
一度この状態でFirefoxに読み込ませてFirefoxを終了，savelogの部分(5~10,14行目)をコメントアウトしたのちFirefoxに読み込ませるという手順をしたのちデバッグを開くと保存されたことを確認できます。(非推奨)

manifest.json

id設定していないと再起動時にデータを読み込めなかったので追加しました
backgroundscriptsのところはとりあえずmain.jsのままです

Reviewersの取り扱いが人によって異なるのでそこを話しておいたほうが良いですね
今回のスタイルなら， レビュアー全員のチェック+PRオーサーによるマージ or レビュアー全員のチェック+レビュアーによるマージ かなと思います
検討しましょう

source: gharchive/pull-request


text:
Unable to scrape metrics using JMX exporter

Some commonly used metric scraper like JMX Exporter also rely on implementation of MBean to help gather metrics. Quartz already has support for the same.
However, they further rely on data structures like TabularData and CompositeData from the management package itself to scrape metrics. Some of the methods exposed in the QuartzMBean including the getPerformanceMetrics and getAllTriggers cannot be scraped since scraping a List or Map is not supported by JMX.

This project is abandoned. See #1134

This would be a feature enhancement, feel free to submit a PR if you wish.

authors: ganesh-arkalgud jhouserizer lprimak

repo: quartz-scheduler/quartz


text:
Handle exceptions thrown while retrieving the misfired triggers

This PR...
Fix #1152
Changes

handled exceptions thrown while retrieving the misfired triggers

try-catch and logs refer to quartznet/quartznet#1040 for consistency

Checklist

[x] tested locally
[ ] updated the docs
[ ] added appropriate test
[x] signed-off on the DCO referenced in the CONTRIBUTING link below via git commit -s on my commits, and submit this code under terms of the Apache 2.0 license and assign copyright to the Quartz project owners
(If you're not using command-line, you can use a browser extension )

In submitting this contribution, I agree to the terms of contributing as referred to here:
https://github.com/quartz-scheduler/contributing/blob/main/CONTRIBUTING.md

If you change your comment from Fixes issue #1152 to Fix #1152 it will link this PR to the ticket.

Can you also make another PR for the 2.4 branch of this fix?

Okay, I'll make a PR for the 2.4 branch too.

@ohksj77 this looks great!  do you mind checking this ticket and see if your fixes fix this issue: https://github.com/quartz-scheduler/quartz/issues/1245

@melloware My fix doesn't seem to affect the issue.
I tried running both the version I fixed and the previous version, following the reproduction steps, and found the same results in both cases.

Ok thanks for checking!


text:
test failure in quasar.TypesSpec

Seen on travis.
[error] x have order-independent equality for arbitrary types (147 ms)
[error]  Falsified after 68 passed tests.
[error]  > ARG_0: Coproduct(Const(NA),Const(Obj(Map($date -> Str(Jan 1)))))
[error]  > ARG_1: Const(Obj(Map($date -> Str(Jan 1))))
[error]  > constant value Obj(Map($date -> Str(Jan 1))) !== constant value NA, or constant value Obj(Map($date -> Str(Jan 1))) (QuasarSpecification.scala:51)

looks like a duplicate of #2194

Closing as it's a duplicate of #2194.

authors: alissapajer rintcius

repo: quasar-analytics/quasar


text:
Document response of data endpoint if file does not exist

Just wanted to document this somewhat surprising (IMHO) behavior and perhaps call attention to it if we want to change it.
Personally, I would go with a 404 NotFound response in that case but perhaps this was designed this way initially for a particular reason.
At the very least we should document it I think, but if enough people think we should change it to 404 NotFound, then I can go ahead and do that too

@jedesah @rintcius Yeah, it should be a 404. It was originally because a Read of a nonexistent file would error with PathNotFound but this semantic was changed due to not all connectors being able to differentiate between an empty file and a nonexistent one and so I think the 200 is a consequence of that change.
We'll have to explicitly check if the path exists rather than relying on the error response of read.

Fixed!

authors: jedesah wemrysi


text:
ldap: Remove validation check for users (PROJQUAY-2343)

The user count check fails whenever quay is loaded for the first time
and there are no users present. This PR removes the validation
Signed-off-by: harishsurf hgovinda@redhat.com

The failing test (unrelated to this change) will be fixed as part of PROJQUAY-3102

/cherrypick redhat-3.6

repo: quay/config-tool


text:
Weird Behavior for byte[] array in Hibernate Objects

Attempting to utilize a class that has a field mapping byte[] to Blob.  Getting the following error:
[B cannot be cast to [Ljava.lang.Object;
! java.lang.ClassCastException: [B cannot be cast to [Ljava.lang.Object;
! at com.querydsl.jpa.hibernate.HibernateUtil.setValue(HibernateUtil.java:71) ~[querydsl-jpa-4.0.2.jar:na]
! at com.querydsl.jpa.hibernate.HibernateUtil.setConstants(HibernateUtil.java:63) ~[querydsl-jpa-4.0.2.jar:na]
! at com.querydsl.jpa.hibernate.AbstractHibernateQuery.createQuery(AbstractHibernateQuery.java:105) ~[querydsl-jpa-4.0.2.jar:na]
! at com.querydsl.jpa.hibernate.AbstractHibernateQuery.createQuery(AbstractHibernateQuery.java:97) ~[querydsl-jpa-4.0.2.jar:na]
! at com.querydsl.jpa.hibernate.AbstractHibernateQuery.fetch(AbstractHibernateQuery.java:174) ~[querydsl-jpa-4.0.2.jar:na]

Looks like it's because a byte array is considered an array.
It's attempting to cast the array to an Object array, which you can't do with a byte array.
    private static void setValue(Query query, String key, Object val) {
        if (val instanceof Collection<?>) {
            query.setParameterList(key, (Collection<?>) val);
        } else if (val.getClass().isArray()) {
            query.setParameterList(key, (Object[]) val);
        } else if (TYPES.containsKey(val.getClass())) {
            query.setParameter(key, val, TYPES.get(val.getClass()));
        } else {
            query.setParameter(key, val);
        }
    }

Would this possibly fix it?  (Or something similar)
    private static void setValue(Query query, String key, Object val) {
        if (val instanceof Collection<?>) {
            query.setParameterList(key, (Collection<?>) val);
        } else if (val.getClass().equals(byte[].class)) {
            ...
        } else if (val.getClass().isArray()) {
            query.setParameterList(key, (Object[]) val);
        } else if (TYPES.containsKey(val.getClass())) {
            query.setParameter(key, val, TYPES.get(val.getClass()));
        } else {
            query.setParameter(key, val);
        }
    }

Sorry for not commenting earlier.
As for your PR, I think that it can be solved using the TYPES map (if we reorder the statements, there are HibernateTypes for byte arrays to blobs, so it can be handled by Hibernate).
I do need to ask whether it was @timowest's intention to make it customizable.

No worries, this is just a showstopper for me, and I wanted to do whatever I could to help it get resolved.

repo: querydsl/querydsl


text:
QueryDsl problem (group by, aggregation with projection)

1. This is what i want to do with SQL
SELECT mp.prog_sq AS prog_sq
,mp.prog_name AS prog_name
,STRING_AGG(mci.item_key,', ') AS item_key
,STRING_AGG(mci.item_name,', ') AS item_name
,mp.approver AS approver
FROM mx_prog mp
JOIN mx_clctr_item mci ON mci.prog_sq = mp.prog_sq
JOIN mx_user mu ON mp.approver = mu.user_sq
GROUP BY mp.prog_sq
WHERE 1=1
2. This is what i did with querydsl
JPQLQuery query = from(collectProgram, collectItem);
query.where(collectProgram.progSq.eq(collectItem.collectItemId.progSq));
query.groupBy(collectProgram.progSq);
	List<CollectProgramSearchListDto> collectProgramSearchList = query.select(Projections.constructor(CollectProgramSearchListDto.class,
	collectProgram.progName,
	collectItem.itemName,
	collectProgram.progDesc)).fetch();

3. This is what i am wondering
How i can get "string aggregation" with collectItem.itemName after groupBy.
Actually i can get count after groupby with collectItem.count();
but....is there any way get string aggregation after groupby??
4. If that is not possible
Could you give me some example of using "Group" instance after group by with mutiple result column.
I don't know how to handle this "com.querydsl.core.group.Group" data.
Map<Integer, Group> results = query.from(post, comment)
.where(comment.post.id.eq(post.id))
.transform(groupBy(post.id).as(post.name, set(comment.id)));
thanks in advance.

I'd like to know how to use STRING_AGG in querydsl as well

this is how you can use STRING_AGG:
stringTemplate("STRING_AGG({0}, ',')", mci.itemKey)

Or: SQLExpressions.groupconcat(mci.itemKey, ",").
However, either solutions only work for querydsl-sql and not querydsl-jpa because STRING_AGG or GROUP_CONCAT are not defined functions in JPQL.

Or: SQLExpressions.groupconcat(mci.itemKey, ",").
However, either solutions only work for querydsl-sql and not querydsl-jpa because STRING_AGG or GROUP_CONCAT are not defined functions in JPQL.

@jwgmeligmeyling How can it be done in QueryDSL-JPA ? I'm also trying to achieve the same. do I have to use .transform() or something similar?

authors: giovanni-nabil jess-park jwgmeligmeyling ravenblackdusk


text:
Compare BigInteger to BigDecimal

I am trying to implement an equal expression, with two colums. One is BigInteger, the other one is a BigDecimal.
Is there a proper way in querdsl to compare a BigInteger with a BigDecimal with an equal expression?
Something like does not work obviously:
queryFactory.select(qItemA)
	.from(qItemA)
	.where(qItemA.biginteger_column.eq(qItemB.bigdecimal_colum))

Yes, by casting the BigInteger to a BigDecimal or the other way around.
Or just use an untyped equality expression: Expressions.predicate(Ops.EQ, qItemA.biginteger_column, qItemB.bigdecimal_colum)

Yes, by casting the BigInteger to a BigDecimal or the other way around.
Or just use an untyped equality expression: Expressions.predicate(Ops.EQ, qItemA.biginteger_column, qItemB.bigdecimal_colum)

authors: TribuneX jwgmeligmeyling


text:
🛑 Notifications Service is down

In e6a3031, Notifications Service (https://quessttechnologies.com/notifications/healthcheck) was down:

HTTP code: 429
Response time: 3 ms

Resolved: Notifications Service is back up in 5c3496b after 1 hour, 56 minutes.


text:
Only "Recently Added" photos can be selected

I am using  Xcode6 ios swift and the simulator device is iphone 6 plus. I found that QBImagePickerController can only show "Recently Added" photos when selecting the images. The other albums were missing.

I think this problem has solved in 2.3.0.

authors: humbleProgram questbeat

repo: questbeat/QBImagePicker


text:
fixbug : inline style

What kind of change does this PR introduce? (check at least one)

[x] Bugfix
[ ] Feature
[ ] Code style update
[ ] Refactor
[ ] Build-related changes
[ ] Other, please describe:

Does this PR introduce a breaking change? (check one)

[ ] Yes
[ ] No

If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:

[ ] It's submitted to the dev branch for v2.x (or to a previous version branch), not the master branch
[ ] When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
[ ] All tests are passing: https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#development-setup
[ ] New/updated tests are included

If adding a new feature, the PR's description includes:

[ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:

fixbug inline style

repo: quickappcn/vue


text:
Stop using private SharedFileList API

Stop using private SharedFileList API.
https://github.com/quicksilver/Quicksilver/blob/master/Quicksilver/Code-QuickStepCore/QSObject_FileHandling.m
https://github.com/quicksilver/Quicksilver/blob/master/Quicksilver/Code-QuickStepFoundation/SFLListItem.h
Quicksilver is using private SharedFileList API by loading the recent app documents .sfl files. If the structure of these files changes in the future Quicksilver may crash. At minimum the NSKeyedUnarchiver that decodes these files should be wrapped in a @try @catch.

Makes sense, do you know of any public APIs available for this, or any other ways of getting recent documents into Quicksilver's catalog?
It would be great if you could make a pull request with either some improvements or the try/catch option you suggest. Thanks!

I’m sorry, but this made me laugh a little bit. Using a private API is a step up from “normal”. Most of the information Quicksilver makes available has no API at all. A lot of time is spent just figuring out how things are stored on disk and reverse engineering. Things break periodically as a result (recent documents, Safari history) but that’s the cost of having a useful app.
Having said that, reducing the chance of a crash with a try/except is a great idea.

authors: alex-carter pjrobertson skurfer

repo: quicksilver/Quicksilver


text:
Changes in the load chart do not show up after changing strategies

Only after refreshing the page...

I can reproduce this if I'm not signed in.

authors: ChaelKruip grdw

repo: quintel/etmoses


text:
[DSR] Finding Thordan faster in DSR Dragon's Rage

For trigger "DSR Dragon's Rage", it is looking for Thordan and calling out the location of Thordan, as in this phase of battle we need to find Thordan as fake north. However, "Ser Hermenost" will be casting "Conviction" right opposite Thordan about 2 seconds before Thordan appears. Finding Thordan fast will be really helpful in this phase.
The example network log line is
21|2022-05-05T22:16:03.6900000+08:00|40006AD4|Ser Hermenost|63DE|Conviction|40006AD4|Ser Hermenost|1B|63DE8000|0|0|0|0|0|0|0|0|0|0|0|0|0|0|6920000|6920000|10000|10000|||100.00|77.00|0.00|0.00|6920000|6920000|10000|10000|||100.00|77.00|0.00|0.00|000046BB|0|1|bdd6720fe25a938c
(I know this is not ACT log which is used to do the match, just for your reference)

There's also the two paladins that appear SE/SW (if Thordan is N).  I'm not sure if they show up before/after Ser Hermenost, but that's what I always use to find where Thordan will show up.

authors: quisquous rayline

repo: quisquous/cactbot


text:
raidemulator: Support for combatant memory lines

Since this is in a weird state where it requires both current main code and the changes in #5379, the PR will show a lot of extra commits that are part of those branches. As such, please only consider commit c78e682 for review.
I will rebase to main again once #5379 is merged.
Rebased to main.

@quisquous this is ready for review, in case the rebase/comment edit didn't ping you.


text:
DateTimeField does not work as a componentClass (react-bootstrap 0.29.0)

With the latest version of react-bootstrap, components are now initialised as a componentClass of the new FormControl component (see https://react-bootstrap.github.io/components.html#forms).  For example this datepicker would be:
<FormGroup controlId="formDate" validationState={myDate.error}>
    <ControlLabel>Date</ControlLabel>
    <FormControl componentClass={DateTimeField} mode={'date'} format={'DD/MM/YYYY'} inputFormat={'DD/MM/YYYY'} placeholder="Please select a date" {...myDate} />
    <FormControl.Feedback />
    <HelpBlock>This would be a date picker</HelpBlock>
  </FormGroup>

Currently it does not work.

react-bootstrap is not a dependency of this project, while they can work together, they are not interdependent.
What you can do is make you own wrapper around react-bootstrap-datetimepicker that would use the react-bootstrap API and render a DateTimePicker, I don't see anywhere that componentClass can take a ReactComponent though, it seems to be only string

@chollier If you look at https://github.com/react-bootstrap/react-bootstrap/blob/ae48d58afc2bcfcc36cabec136bba33929387513/src/FormControl.js for example acts like a higher order component where componentClass takes any react component, or a valid element string (since React will just render them, it's just JSX)
However I get your point they aren't interdependent so I'll try see if I can figure it out why it's just not returning the DateTimeField inside the wrapper (which provides validation state, etc)

authors: chollier tanepiper

repo: quri/react-bootstrap-datetimepicker


text:
Full cookie serialization

This PR moves the responsibility of serializing cookie data to the Cookie struct. This is a better separation of concerns in my eyes. The Cookies serialization is updated to use the new method on Cookie, which fixes an issue where the attributes of a cookie were never set.
There is still the issue where we're folding all of the cookie properties into a single Set-Cookie header, which doesn't seem to work in some browsers; that fix will come in a subsequent PR.

@ketzusaka Do you know which browsers don't work with that?

@tannernelson I tested specifically on Chrome. I don't believe it was working in safari either as things weren't operating as I expected there, but I'd have to double check on that.
Also, the format for the Expires attribute appears to require a format that would break multiple cookies in a single Set-Cookie header, and that is why it is recommended to use multiple header rows.

@ketzusaka @tannernelson I added a mini commit on here that will give us multi cookie support until we implement something more comprehensive.
This was tested on Chrome and Safari 👍

oh nice, surprised that works haha

authors: LoganWright ketzusaka tannernelson

repo: qutheory/vapor


text:
🛑 Adguard Home DoT is down

In 69cc0c8, Adguard Home DoT ($AG_DOT) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Adguard Home DoT is back up in 4f1a9b5.

repo: quyleanh/upptime


text:
🛑 Adguard Home DoT is down

In 29506af, Adguard Home DoT ($AG_DOT) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Adguard Home DoT is back up in 5661376 after 15 minutes.


text:
🛑 Adguard Home DoT is down

In a8c2990, Adguard Home DoT ($AG_DOT) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Adguard Home DoT is back up in 7798531 after 8 minutes.


text:
🛑 Adguard Home DoT is down

In 430e721, Adguard Home DoT ($AG_DOT) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Adguard Home DoT is back up in aed552b after 15 minutes.


text:
🛑 Adguard Home DoT is down

In 4f4d682, Adguard Home DoT ($AG_DOT) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Adguard Home DoT is back up in a95757b.


text:
🛑 Adguard Home DoT is down

In 89223d0, Adguard Home DoT ($AG_DOT) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Adguard Home DoT is back up in db11b8b after 30 minutes.


text:
🛑 NextCloud is down

In ea7fa37, NextCloud (https://cloud.qwq2333.top) was down:

HTTP code: 0
Response time: 0 ms

Resolved: NextCloud is back up in 20457dc.


text:
Figure out how to block or filter out sources of code of conduct violations

Using the GitHub API, it would be simple to check if the author of the PR is the same GitHub user name as the owner of the package source code repo. @shikokuchuo, what do you think?

Does that work if the repo is part of an organization such as ROpenSci?

It would flag all those for manual review, which could get heavy-handed.

An alternative would be to maintain a whitelist of approved contributors i.e. those which have contributed at least one package verified in this manner (or manually checked by a moderator).

I think it may be easier to track code of conduct violations (package and user names) in a confidential repo, then have the bot use the data for pull request reviews in https://github.com/r-multiverse/contributions.

A blacklist is also fine, but this can still be public. If it's transparent then mistakes can be easily corrected.

A blacklist is also fine, but this can still be public. If it's transparent then mistakes can be easily corrected.

I worry about defacement attacks: an adversary's username could contain hate speech, and I'm not sure I would feel comfortable maintaining a list of such usernames in a public-facing repo.

In that case, I'd prefer your original idea - and if that requires more manual review for orgs then so be it. Even if it's private, we'd still be storing such material, which doesn't strike me as a good thing.

Hmmm.... it seems like that would disrupt the contribution workflow and accumulate a large database on the off chance someone behaves maliciously. A banned list would be much shorter, and we would rarely have to update it.
Is your main objection the part about the private repo, i.e. archiving a secret store of user data? In that case, I think I would be willing to maintain a public banned list if the list entries were masked just enough to avoid offending or traumatizing casual observers. Maybe base64 encode the whole thing, formatting included, and add obvious documentation warnings to not decode it? Maybe even encode it twice so people get a second warning and an encoded string the first time they try.

Also, I really hope GitHub can help us, i.e. allowing us to report users as needed. Not sure what their policies and procedures are exactly.

Is your main objection the part about the private repo, i.e. archiving a secret store of user data?

My concern is not about storing the data per se, but the doing it in secret part. It seems to go against the transparency that all this open infrastructure allows. It also prevents verification that due process is being observed if such non-public lists are maintained.
I think I'm onboard with the approach of obfuscation using base64, or perhaps we can think of something better later on.

Using the GitHub API, it would be simple to check if the author of the PR is the same GitHub user name as the owner of the package source code repo.

Actually, maybe this could work if the GitHub API can tell the difference between orgs and users. For users, we could check if the user is the owner. For orgs, we could check if the user is a member of the org. If this approach works, it seems preferable because

It is stateless.
It decreases anonymity just a bit.

Using the GitHub API, it would be simple to check if the author of the PR is the same GitHub user name as the owner of the package source code repo.

Actually, maybe this could work if the GitHub API can tell the difference between orgs and users. For users, we could check if the user is the owner. For orgs, we could check if the user is a member of the org.

Seems possible - with the /orgs/{org}/repos and /orgs/{org}/members endpoints.
This is a nice approach, but do you think it would generate too many manual reviews for community contributed packages not from the maintainer e.g. Arrow.

This is a nice approach, but do you think it would generate too many manual reviews for community contributed packages not from the maintainer e.g. Arrow.

Maybe. But on the other hand, if a maintainer doesn't want their package in R-multiverse, then I think it's a good idea to make sure we respect their wishes.

Sure, that's fine. The example I had in mind was rather: I want to add x package to Multiverse for it to build the binaries I need (or so it's within the Production release) - and I am not the maintainer of said package. This would be flagged for review. I'm thinking this could generate too much noise.

That's a good point. Nowadays maintainers just talk to each other when this comes up for CRAN, and we may want to encourage that, but we might still get more manual reviews. Not sure what the right call is here.
Looming in the back of my mind are also general questions about security: how do we identify contributors and prepare to hold them accountable if packages have malicious code or illegal files? Discharging that risk will help me think about this.

I would simply like to add another example. I am effectively the maintainer of https://github.com/pola-rs/r-polars, but I am not a member of the organization https://github.com/pola-rs.

Yeah, I think at this point I'd be more in favor of a publicly-maintained base64-encoded "banned" list.

I just found out about GitHub's feature of organization-level moderators. We can add org moderators at https://github.com/organizations/r-multiverse/settings/moderators, and any moderator can go to https://github.com/organizations/r-multiverse/settings/blocked_users and block users.
Now that I know about this, I have a new proposal for handling malicious activity at https://github.com/r-multiverse/contributions/pulls:

Rely on https://github.com/organizations/r-multiverse/settings/blocked_users to block users if needed.
Flag for manual review any package listed in https://github.com/RConsortium/r-advisory-database/tree/main/vulns. (It should be an easy check if we don't bother to search the YAML files for version numbers.)

👍🏻 That would be much simpler than what we were thinking about before.

Awesome! Added https://github.com/orgs/r-multiverse/teams/administrators and https://github.com/orgs/r-multiverse/teams/moderators to https://github.com/organizations/r-multiverse/settings/moderators. That takes care of most of this issue. It only remains to scan https://github.com/RConsortium/r-advisory-database/tree/main/vulns.

I am wondering if https://github.com/RConsortium/r-advisory-database might be flexible enough to accept reports of copyright violations, etc.
c.f. https://github.com/RConsortium/r-advisory-database/issues/14

It occurs to me that we still need an R-multiverse-native way to disable automatic acceptance of packages that previously were removed. Otherwise, if we remove a package due to a policy violation, the bot could just add it back again without anyone knowing.
I think we can accomplish this in a simple way using the existing package listing system at https://github.com/r-multiverse/contributions/tree/main/packages. Instead of a URL or JSON, the text file of a problematic package could contain an informative note such as "removed for x policy violation on date y". Then of course a contributor could make a PR to add it again, but since that PR edits an existing file, the bot would flag it for manual review.
I added support for this mechanism in https://github.com/wlandau/multiverse.internals/commit/b1e7950ebd9cba20e63fc656feb3fbfe97ebebc1. If the forthcoming PR is merged, we should mention it documentation for reviewers.

I think we can accomplish this in a simple way using the existing package listing system

Implemented in https://github.com/r-multiverse/multiverse.internals/pull/39, pretty simple and unobtrusive

authors: eitsupi shikokuchuo wlandau

repo: r-multiverse/help


text:
What's your problem？

What is the use of this if?
if (ctx.request.method !== 'GET' || ctx.request.method !== 'POST')
Line 62

This prevents the cache middleware from being used with a PUT, PATCH, DELETE, etc... because those should not be cached.

Are you sure? @jakewmeyer
Let's try to run
const method = 'GET'
if (method !== 'GET' || method !== 'POST'){
  console.log(method)
}
//output GET

const method = 'POST'
if (method !== 'GET' || method !== 'POST'){
  console.log(method)
}
//output POST

const method = 'PUT'
if (method !== 'GET' || method !== 'POST'){
  console.log(method)
}
//output PUT

const method = 'PATCH'
if (method !== 'GET' || method !== 'POST'){
  console.log(method)
}
//output PATCH

Whoops, that's definitely wrong. Prior to V4 this condition returned early, but looks like I reversed the flow without updating the condition.
Thanks for reporting it! I'll get a fix in shortly 👍

authors: MalavitaC jakewmeyer

repo: r-spacex/SpaceX-API


text:
1.17 Console Spam

Hey, after I put in the new version of protcolib for 1.17 the plugin seemed to kinda loose it's mind, I didn't see an option to turn off protocolib integration. I am on Spigot 1.17.
[10:39:02] [Server thread/WARN]: [SimpleScore] Task #9847 for SimpleScore v3.7.2 generated an exception com.comphenix.protocol.reflect.FieldAccessException: No field with type net.minecraft.network.chat.IChatBaseComponent exists in class PacketPlayOutScoreboardTeam. 	at com.comphenix.protocol.reflect.StructureModifier.writeInternal(StructureModifier.java:365) ~[?:?] 	at com.comphenix.protocol.reflect.StructureModifier.write(StructureModifier.java:345) ~[?:?] 	at com.r4g3baby.simplescore.scoreboard.handlers.ProtocolScoreboard.updateScoreboard(ProtocolScoreboard.kt:107) ~[?:?] 	at com.r4g3baby.simplescore.scoreboard.ScoreboardManager.updateScoreboard(ScoreboardManager.kt:107) ~[?:?] 	at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask$run$4.run(ScoreboardTask.kt:84) ~[?:?] 	at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:81) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:400) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1252) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:436) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1200) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1027) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:307) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at java.lang.Thread.run(Thread.java:831) [?:?] [10:39:02] [Server thread/WARN]: [SimpleScore] Task #9848 for SimpleScore v3.7.2 generated an exception com.comphenix.protocol.reflect.FieldAccessException: No field with type net.minecraft.network.chat.IChatBaseComponent exists in class PacketPlayOutScoreboardTeam. 	at com.comphenix.protocol.reflect.StructureModifier.writeInternal(StructureModifier.java:365) ~[?:?] 	at com.comphenix.protocol.reflect.StructureModifier.write(StructureModifier.java:345) ~[?:?] 	at com.r4g3baby.simplescore.scoreboard.handlers.ProtocolScoreboard.updateScoreboard(ProtocolScoreboard.kt:107) ~[?:?] 	at com.r4g3baby.simplescore.scoreboard.ScoreboardManager.updateScoreboard(ScoreboardManager.kt:107) ~[?:?] 	at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask$run$4.run(ScoreboardTask.kt:84) ~[?:?] 	at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:81) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:400) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1252) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:436) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1200) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1027) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:307) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at java.lang.Thread.run(Thread.java:831) [?:?] [10:39:02] [Server thread/WARN]: [SimpleScore] Task #9849 for SimpleScore v3.7.2 generated an exception com.comphenix.protocol.reflect.FieldAccessException: No field with type net.minecraft.network.chat.IChatBaseComponent exists in class PacketPlayOutScoreboardTeam. 	at com.comphenix.protocol.reflect.StructureModifier.writeInternal(StructureModifier.java:365) ~[?:?] 	at com.comphenix.protocol.reflect.StructureModifier.write(StructureModifier.java:345) ~[?:?] 	at com.r4g3baby.simplescore.scoreboard.handlers.ProtocolScoreboard.updateScoreboard(ProtocolScoreboard.kt:107) ~[?:?] 	at com.r4g3baby.simplescore.scoreboard.ScoreboardManager.updateScoreboard(ScoreboardManager.kt:107) ~[?:?] 	at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask$run$4.run(ScoreboardTask.kt:84) ~[?:?] 	at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:81) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:400) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1252) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:436) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1200) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1027) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:307) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at java.lang.Thread.run(Thread.java:831) [?:?] [10:39:02] [Server thread/WARN]: [SimpleScore] Task #9850 for SimpleScore v3.7.2 generated an exception com.comphenix.protocol.reflect.FieldAccessException: No field with type net.minecraft.network.chat.IChatBaseComponent exists in class PacketPlayOutScoreboardTeam. 	at com.comphenix.protocol.reflect.StructureModifier.writeInternal(StructureModifier.java:365) ~[?:?] 	at com.comphenix.protocol.reflect.StructureModifier.write(StructureModifier.java:345) ~[?:?] 	at com.r4g3baby.simplescore.scoreboard.handlers.ProtocolScoreboard.updateScoreboard(ProtocolScoreboard.kt:107) ~[?:?] 	at com.r4g3baby.simplescore.scoreboard.ScoreboardManager.updateScoreboard(ScoreboardManager.kt:107) ~[?:?] 	at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask$run$4.run(ScoreboardTask.kt:84) ~[?:?] 	at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:81) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:400) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1252) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:436) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1200) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1027) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:307) ~[server.jar:3145-Spigot-9472b09-f992ce6] 	at java.lang.Thread.run(Thread.java:831) [?:?]

Hey, plugin hasn't been updated to 1.17 yet. I'll try and get to it over the next few days.

Caused by dmulloy2/ProtocolLib#1232. Plugin should work just fine as soon as ProtocolLib comes up with a fix, a workaround is to not use ProtocolLib or use ForceLegacy: true in the config.


text:
Definir uma licensa

http://opensource.org/licenses

+1 http://www.wtfpl.net/

@dpsxp +1 http://www.wtfpl.net/

:+1:

#13

authors: dpsxp guilhermehn guilhermepontes

license: WTFPL


text:
Need help running behind reverse proxy (traefik)

Hi there,
I run plenty of little apps behind a reverse proxy but I can't get this one working. I might be too dumb to follow your instructions to run easy-gate behind a configured nginx which I assume applies to running it behind a configured traefik too?
Here is where I'm stuck:
accessing easy-gate directly works fine: http://10.10.10.10:8080/ but as soon as I access it via my reverse proxy: https://my.domain.tld I get this error:
{
	"Message": "no app for hostname",
	"Host": "my.domain.tld",
	"Detail": "Check the outpost settings and make sure 'my.domain.tld' is included."
}

I searched the code on this site for the word outpost and later for the word hostname without any hits so I am at a loss as to where and how exactly to tell easy-gate that it may respond to my.domain.tld :-/
Any help is much appreaciated.

This does not seems to be related to easy-gate itself , just wait for the develop branch to be merged and running behind a reverse proxy will be easier.

:-( I must have had a blonde moment. I wasted 2 hours yesterday looking all over the code of easy-gate to figure it out all-the-while the problem was sitting in front of the keyboard: I had popped easy-gate behind authentik authentication. That was where the message came from as I had not finished the configuration.
Everything works perfectly now. Sorry for wasting your time.

Can you please share your docker file with me? I'm newbie and trying to set it up with traefik and docker

I don't have a Dockerfile but if you meant my docker-compose.yml file here it is:
version: '3.9'

# https://github.com/r7wx/easy-gate
# get more icons: https://fontawesome.com/icons

services:
  easy-gate:
    image: r7wx/easy-gate:latest
    container_name: easy-gate
    hostname: easy-gate
    volumes:
      - ./easy-gate.json:/etc/easy-gate/easy-gate.json
    restart: "no"
    environment:
      - TZ=Europe/Berlin
    networks:
      - traefik
    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=traefik"
      - "traefik.http.routers.gate.tls=true"
      - "traefik.http.routers.gate.entrypoints=https"
      - "traefik.http.routers.gate.rule=Host(`sub.domain.tld`)"
      - "traefik.http.routers.gate.middlewares=secHeaders@file"
      - "traefik.http.routers.gate.service=gate"
      - "traefik.http.services.gate.loadbalancer.server.port=80"

networks:
  traefik:
    external:
      name: traefik

secHeaders@file are headers I defined in a file, so I guess you can skip the whole line. Should work.

authors: dzonerzy fabwebdev ovizii


text:
Bottom Sheet navigation problem when onlyIfResumed = true

I'm having a problem when navigating to a Bottom Sheet destination
onlyIfResumed = false:
If i use navigator.navigate(BottomSheetDestination(), onlyIfResumed = false), i have the following result, what is espected:
navigation onlyIfResumed = false.webm
onlyIfResumed = true:
But when i use navigator.navigate(BottomSheetDestination(), onlyIfResumed = true) i have this problem:
The state stays STARTED.
navigation.onlyIfResumed.true.webm
If you want to see the code:
https://github.com/pen-drive/Bottom-Sheet-Navigation-Problem

onlyIfResumed will be deleted as an API due to the fact that we now have official ways to ignore calls if lifecycle is not resumed in the dropUnlessResumed API.

authors: pen-drive raamcosta

repo: raamcosta/compose-destinations


text:
cluster_formation.aws.aws_use_private_ip

The documentation lists "cluster_formation.aws.aws_use_private_ip", but the example displays "cluster_formation.aws.use_private_ip". The example shows the correct parameter.
Link: https://www.rabbitmq.com/cluster-formation.html#peer-discovery-aws-other-settings

Good catch, thank you.

authors: leynebe michaelklishin

repo: rabbitmq/rabbitmq-website


text:
Frost infrastructure wrap-up

In this PR I try to close infrastructure specific changes, so the later on we can mainly focus on plugin development

Please note this is still WIP

WIP was dropped. This is now ready for review.

I merged it in so you don't have to feel awkward while giving yourself a medal.
https://thecodinglove.com/when-i-merge-my-own-pull-request

:D

authors: lukasz-golebiewski rabbitonweb

repo: rabbitonweb/frost


text:
🛑 Pet Project is down

In f4d02c8, Pet Project ($RINFO_SITE) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Pet Project is back up in 0afd5da.


text:
Default Routes in 1.0.0-beta1

I've been playing with the beta and trying to find a way of reproducing the behaviour of <DefaultRoute />'s. Ryan mentioned briefly in the Reactiflux slack that <Route component={handler} indexComponent={defaultHandler} /> was what I needed...
But I can't seem to figure out how to use it, or know if it's even implemented yet.
In any case to be clear, the behaviour I'm looking for is as follows...
Given something like:
const App = React.createClass({
  render() {
    return (

        <SomeAppWideLayout /> {/* eg a banner or something */}
       {this.props.children}

    )
  }
});

React.render((
  <Router history={HashHistory}>
    <Route path="/" component={App} indexComponent={DefaultView}>
      <Route path='/eg1' component={View1} />
      <Route path='/eg2' component={View2} />
    </Route>
  </Router>
), document.body)

If the user navigates to / then I want the App to load <DefaultView /> into {this.props.children}.
If they navigate to any of the other routes (/eg1, or /eg2) then it should be replaced by <View1 />, or <View2 />.

Currently this behaves as expected in 0.13.3 with the <DefaultRoute /> sitting nested under /. Is this something you'll be carrying across?

default/index routes might actually completely disappear with our new matching algorithm, we realized (last night on the subway to the airport) that aren't necessary:
Paths have a lot more meaning now and matching is more predictable. If you omit a path, we search the children for a match, so DefaultRoute is no longer a concept, you simply omit the path from the parent wrapper and put it on the child, and now its a child just like all of its siblings. Not a different concept anymore, and super simple!
(Kind of unintuitive at first for people who have been using the router before though)
<Router>
  <Route component={App}>
    <Route path="/" component={DefaultView}/>
    <Route path="/eg1" component={View1}/>
    {/* ... */}
  </Route>
</Router>

Ah fantastic, thanks for all the hard work - can't wait for a release!

I am seeing an issue with the example above, related to links:

    <Link to="/">Home</Link>

    <Link to="/eg1">Example1</Link>

When I navigate to route /eg1 then both links are marked as 'active'.

authors: frankwallis haustraliaer ryanflorence

repo: rackt/react-router


text:
redux and immutable.js

I am working with redux and immutable.js. I have written the following combineReducers method to reduce the state into an immutable Map. I just wanted to get a sanity check on if this makes sense
export const combineReducers = (reducers) => {
  return (state = Immutable.Map(), action) => {
    return Object.keys(reducers).reduce((nextState, key) => {
      return nextState.set(key, reducers[key](state.get(key), action));
    }, state);
  };
};

Looks sensible although I'm not very well versed in Immutable API.
Check out https://github.com/dustinspecker/redux-immutable-combine-reducers too.
In the future please use StackOverflow for questions like this.

authors: gaearon viswaug

repo: rackt/redux


text:
Multiple inline partials broken in edge?

See this fiddle: http://jsfiddle.net/fsdy5na7/
In egde, the second partial is written to the template, and ractive.partials['partial2'] is an empty array.
Latest works as expected.
Edit: Traced it to commit 624f190787d50a7cd036db0ad758304936fa86ff

In src/parse/converters/readPartialDefinitionComment.js:
Looks like the var closed stayed true after the first partial. Moving the variable definition into function readPartialDefinitionComment seems to fix it.

@aphitiel that seems correct to me. Do you want to submit PR with test case and fix?

authors: aphitiel martypdx

repo: ractivejs/ractive


text:
bug in latest: change not propagated in component's observer

Hi,
one more bug. It worked once in latest, but not anymore, but still works in edge.
I'm a bit tired to post the details, but it can be seen fairly easily in this plugin:
http://dagnelies.github.io/ractive-codemirror/
(it's using edge right now)
If you download the "gh-pages" and switch to latest, you'll see it break. The observer doesn't get notified anymore.
When I get more time, I'll build a simpler example.

Are maintenance releases even happening for the 0.7.x branch?

dunno ...good question. I don't know exactly how it's meant to be.

I don't believe so. I think the next release is 0.8
I still use 0.7.3 it in some projects, but all new stuff 'is 0.8
you should make the switch  soon. it is better in so many ways

authors: dagnelies heavyk woodlandhunter


text:
"Sorry. Unable to access that page" after using Crudss generator to create jobs collection

Hi,
I'm following the tutorial video here:
3 Meteoris Crudss Generator
https://www.youtube.com/watch?v=mqmoJCMJzEg&index=3&list=PLkq0XDlLyPbA6y51gLeJSnK419PFFgS5M
After I generate the "jobs" collection with the one field named "title", I receive the "Success generating code!" message.  I then wait, and enter "http://localhost:3000/jobs" in the address bar of Chrome. I get the message "Sorry. Unable to access that page". I'm using chrome on Windows 8.1.
when I search through my project (I'm using webstorm), the only place where the string "jobs" is found is in a readme.md file and in folder tests\cucumber\features. It's as if  the code was never generated...?
Can you help?
Thanks,
Peter De Baets

When building the code, the statement
this.write(path, content);
... seems to be picking up the wrong default path. Here's the error from the server terminal:
I20150507-13:19:24.871(-7)? { [Error: ENOENT, open 'F:\Users\Peter\Documents\Apps Meteor\ledger.meteor\local\build\programs\server\undefined\client\routers\jobs.js']
I20150507-13:19:24.871(-7)?   errno: 34,
Can you help?

Looks like it is some kind of a windows issue. I think the
process.env.PWD
... statement in MugenServer.js does not return the correct path in Windows environments. When I replace the statement above with a hard-coded path, the code generation works.

yeah, we currently not supporting windows this time, and ofc You will find another problem if You are developing advance meteor using windows. We'll fixing it when developing in windows is stable enough.
Anyway, thanks for the report

What's the other problem that I will find if I am developing advanced meteor using windows?

the other problem is you can't developing mobile apps.

I see that you've closed this issue, but isn't it still a problem? Other windows users might come along and get stuck like I did.
Maybe I'm not used to the way that github works, but shouldn't you either save this issue for a future fix, or take some action like including the text "Windows not supported" in the readme file, or include a link to the hardcoded workaround above?

Good idea @pdebaets. I'll add "Windows not supported" in documentation and in command line, then close the issue.

I didn't see a "windows not supported" in the docs, and I'm having the same trouble (also added a comment with the errors I'm receiving on someone else's issue - but they are seeing it on Ubuntu, so it's not just Windows having the problem).
Would this be do-able if it was run in a bash shell?

authors: pdebaets radiegtya xyshift

repo: radiegtya/meteoris


text:
Separate cloud/non-cloud tests [do not review]

Description
Currently, all the functional tests run only with an approved "/ok-to-test" command. Only tests that deploy cloud resources or publish stuff really require an approval. This PR separates out the tests that do not need an approval to run as a part of the regular build workflow. The /ok-to-test command will now run only tests that deploy cloud resources
Type of change

This pull request adds or changes features of Radius and has an approved issue (issue link required).

Fixes: #6588
Auto-generated summary

🤖 Generated by Copilot at efaffae
Summary
🧪☁🛠

This pull request adds support for running functional tests that require cloud resources for the radius project. It modifies the GitHub workflows and the make targets to run different types of tests. It also moves the existing cloud-based tests to a new test/functional-cloud directory and adds new test files for the extender and Terraform recipe features.

To test radius with cloud resources
We added some make targets and processes
We use rad and bicep
And terraform to equip
Our workflow with functional successes

Walkthrough

Add a new step to the build workflow to run functional tests that do not require cloud resources (link)
Rename and modify the existing step to run functional tests that require cloud resources and append "-cloud" to the make command argument (link, link)
Add new make targets to run functional tests for shared, Datastores RP, and UCP components using the test-functional-cloud directory (link, link, link)
Add links to the documentation for writing and running functional tests in the test-functional-cloud/README.md file (link)
Add a new test file for testing the extender resource using a Bicep recipe that deploys an AWS S3 bucket (test/functional-cloud/shared/resources/extender_test.go, link)
Add a new test file for testing the Terraform recipe functionality using the extender resource (test/functional-cloud/shared/resources/recipe_terraform_test.go, link)
Rename several test files and directories from test/functional to test/functional-cloud to reflect the cloud resource requirement (link, link, link, link, link, link, link, link, link, link, link, link, link, link)

/ok-to-test

/ok-to-test

/ok-to-test

/ok-to-test

/ok-to-test

Looks like /ok-to-test still runs the old workflow and a PR merge would be needed for it to run only the cloud tests

/ok-to-test

Thanks for kicking this off!
As I mentioned in the design discussion, from this PR it looks like all the UCP tests only run on cloud resources, in which case we should add more tests for UCP that can run as a part of functional tests workflow. Can you please confirm this?

I checked it. There are other UCP tests for testing planes/RGs, etc. Since there is no change, they already exist in the same folder, they do not show up in the changes

repo: radius-project/radius


text:
🛑 GPS Receiver API is down

In 4f74cf2, GPS Receiver API (http://tracker.ace-energy.co.th/receiver/api/v1/health) was down:

HTTP code: 0
Response time: 0 ms

Resolved: GPS Receiver API is back up in f19deed.

repo: radiuszon/upptime


text:
Compile Error

I'm using React.js How to fix these compile errors

Hey, we'll need more info on your project setup. What framework are you using and what does your code look like?

authors: BimanGunarathne vladmoroz

repo: radix-ui/themes


text:
[IMPROVEMENT][2.0] In the table editor/structure tab add more space between the "Properties" label and the properties list

In the table editor/structure tab add more space between the "Properties" label and the properties list.

This should be implemented with commit: 4f5bc7522c07c2b771dd60784e6fb61ff9302523

repo: radubolovan/Godot-Database-Manager


text:
Reduce battery bank range

Is your feature request related to a problem? Please describe.
I live in a community with houses pretty close to each other.
Describe the solution you'd like
I'd like to reduce the range such that I'm only powering my appliances and not everything within 20 tiles.
Describe alternatives you've considered
Moving the bank in any direction still leaves me in range of others
Additional context

Is it possible to use the safehouse boundary instead of a radius?

not possible with Project Zomboid v.41.

authors: Cassock Poltergeistzx


text:
Close Notifications using the NotificationService

Is your feature request related to a problem? Please describe.
My issue is not related to a problem, however currently it is only possible to create and Notify a message without manually closing the notification programmatically. This can become a problem when you use the notification to permanently show a status for an async task (such as "Changing status..." or something) .It would be great to hide/close the notification programmatically.
Describe the solution you'd like
I would like to see something like NotificationService.Close(message); or message.Close();
Describe alternatives you've considered
I cannot think of any alternative as async (network) requests don't have a specific duration.
Additional context
I feel like adding a .Close(); method is a basic functionality that would definitely improve the Notification component

Hey @Stjin,
NotificationService.Messages is ObservableCollection and if you execute Clear() all messages will be removed:
https://github.com/radzenhq/radzen-blazor/blob/master/Radzen.Blazor/RadzenNotification.razor#L30

Hey @Stjin,
NotificationService.Messages is ObservableCollection and if you execute Clear() all messages will be removed:
https://github.com/radzenhq/radzen-blazor/blob/master/Radzen.Blazor/RadzenNotification.razor#L30

How did I miss that, thanks for your quick reply!

@enchev I noticed NotificationService.Messages.Remove(message); is not removing the passed notification. Is this expected behaviour?

authors: Stjin enchev

repo: radzenhq/radzen-blazor


text:
Create example using WebAssembly

Create a WebAssembly demo app using the web simulator of embedded_graphics library. It would be a great way to show the possibilities of lvgl-rs by compiling to WASM. The example can also be a quick start for many people.

Does anyone managed to run it on WebAssembly? When I try to build it I get the following error:
_core/../lv_font/../lv_misc/lv_area.h:17:10: fatal error: 'string.h' file not found
  cargo:warning=#include <string.h>

Hey @FloVanGH , I haven't tried yet. But I'd imagine that to compile to WebAssembly we would need to tweak our build.rs to handle cases like this one.

If you can adjust the build.rs I can contribute an example 🙂.

I want to add an lvgl example to my crate: https://codeberg.org/morph/canvas-display. I have also a working desktop example for an other crate https://codeberg.org/morph/raqote-display.

@FloVanGH I can work on updating the build.rs, but I'm pretty tight on free time right now so I cannot compromise when I can do it. I hope to get some time to work on lvgl-rs soon.

Awesome work, btw! :)

@FloVanGH I can work on updating the build.rs, but I'm pretty tight on free time right now so I cannot compromise when I can do it. I hope to get some time to work on lvgl-rs soon.

Ok I see. It's not urgent. But I hope you'll find some time. And I hope you can continue your work, it's really great 🙂.

Awesome work, btw! :)

Thank you 🙂

I've tried that this weekend and didn't work yet.  I will continue trying to compile for the wasm32-unknown-emscripten target, that one may work (https://github.com/rustwasm/team/issues/291).

Hey, ok thank you for your effort 🙂.

@FloVanGH after many hours of trial and error, it's possible to compile lvgl-rs to WASM after those changes https://github.com/rafaelcaricio/lvgl-rs/pull/31
I have an example here: https://github.com/rafaelcaricio/lvgl-rs-wasm

@rafaelcaricio that's awesome :-) . Thank you. I will create an example for canvas-display.

@FloVanGH No problem! Let me know if it works for you in the browser. As I said, even though I managed to make the example project compile successfully, it panics when running in the browser for some strange reason.

This is the error I get... :/

Ok thank you. I will check it.

@FloVanGH  I managed to make it work! 🥳  The example project is running here: https://rafaelcaricio.github.io/lvgl-rs-wasm/
Example code: https://github.com/rafaelcaricio/lvgl-rs-wasm

🎉

authors: FloVanGH rafaelcaricio

repo: rafaelcaricio/lvgl-rs


text:
Setup testing environment

Local Testing

PyTest

CI Testing

https://docs.github.com/actions/automating-builds-and-tests/building-and-testing-nodejs-or-python?langId=py
PyTest

Local testing has been setup with PyTest.
CI Testing will be setup later in a separate issue.

repo: rafaelheid-it/texpy


text:
adicionado arquivos da tarefa

index.html, styles.css, bem como o explicativo infos.txt e os favicon

lgtm


text:
$auth->getUser(); error

Hi,
when I try to use the following:
try{
    $data = $auth->getUser($bearerToken);
    print_r($data); // show all user data returned
  } catch(Exception $e){
    echo $auth->getError();
}

I receive back an error:
Client error: GET         https://*****.supabase.co/auth/v1/user resulted in a 401 Unauthorized response:
"Invalid JWT: unable to parse or verify signature, signature is invalid".
Do you probably know what the problem could be?

Hey @bobmolgui, do you remember what the solution was to this issue?

Hi @mblode
Check your credentials. Was the $bearerToken generated correctly?

For me, it was the packages. After I updated them, everything worked. What is your error or could you already fix it?

authors: bobmolgui mblode rafaelwendel

repo: rafaelwendel/phpsupabase


text:
fix(deps): support Rails 7 syntax

Thanks to @guilhermearaujo for his help with #21.
However, I felt that a bigger refactor was necessary. Particularly with the specs, as they didn't come close to cover all the possible scenarios.
There are still some edge cases missing, but this makes me much more confident to do such updates in the future.
Note: I've deprecated both the class and instance human_enum_value methods, as they seem to be redundant. I don't think they are used for anything, but please open a new issue if you're affected.
Fixes #20

Need to fix the flakiness with actions/upload-artifact@v4 before merging.


text:
No Output for bf4_multi_payments_same_node 2021-05-23

That is somewhat funky:
The log file /data/scenario-player/scenarios/bf4_multi_payments_same_node/scenario-player-run_bf4_multi_payments_same_node_2021-05-23T20:01:20.log.gz ends with
{
  "url": "http://127.0.0.1:33291/api/v1/payments/0x59105441977ecD9d805A4f5b060E34676F50F806/0x329d5aD0Ef26eF0e2C17eb24547CA7e661A72534",
  "method": "post",
  "json": {
    "amount": 1000000000000000,
    "identifier": 159274148591000200,
    "lock_timeout": 30
  },
  "event": "Requesting",
  "logger": "scenario_player.tasks.api_base",
  "level": "debug",
  "timestamp": "2021-05-23 20:16:43.934469"
}

Whereas the container's (20210523T200117_bf4_multi_payments_same_node) output proceeds from there:
2021-05-23 20:16:43.934469 [debug    ] Requesting                     [scenario_player.tasks.api_base] json={'amount': 1000000000000000, 'identifier': 159274148591000187, 'lock_timeout': 30} method=post url=http://127.0.0.1:33291/api/v1/payments/0x59105441977ecD9d805A4f5b060E34676F50F806/0x329d5aD0Ef26eF0e2C17eb24547CA7e661A72534
2021-05-23 20:16:45.324502 [debug    ] Received response              [scenario_player.tasks.api_base] json={'amount': '1000000000000000', 'target_address': '0x57EBda0c1baf0Da8864d9F5A0b35358498b1b254', 'identifier': '159274148591000084', 'initiator_address': '0xd8ec52dCCDE421df89469092f20184F88A286d7D', 'token_address': '0x59105441977ecD9d805A4f5b060E34676F50F806', 'secret_hash': '0x9db4fd09fe72ae4ecb867dbe3047e0ee1935ad65c7168dfa480b1d4103dd42cb', 'secret': '0x7c1b235908a9bc775628140f3ff52f40027a5d1f0df90ec6ae66528a9bc1debc'}
[…]
2021-05-23 20:18:29.388525 [info     ] Run finished                   [scenario_player.main] result=success
2021-05-23 20:18:29.389175 [info     ] Scenario player unwind complete [scenario_player.main]

all the way to the end.

Since this was a successful run, the urgency of this ticket can be considered low.

repo: raiden-network/scenario-player


text:
IQL results different with the paper

Hi,
The IQL results from this repo seem to differ from the original paper.
According to the README of the IQL example code here, IQL scores an average raw return of about 1500 on hopper-medium-expert with offline training:
https://github.com/rail-berkeley/rlkit/tree/master/examples/iql

However, the original paper notes that IQL scores 91.5 in normalized average return (which is about 2950 in raw return):
https://arxiv.org/pdf/2110.06169.pdf

Can you take a look at this and check what is causing the difference?
Thank you!

Sorry for the late response, but the IQL experiments in the paper were run in jax and should be reproducible with the other repo: https://github.com/ikostrikov/implicit_q_learning
This reimplementation is pytorch is for convenience and likely has minor initialization differences etc.

repo: rail-berkeley/rlkit


text:
What's the 2.0 strategy for including styles seen in engines?

The changes with Tailwind 3 mean that its server needs to know where all styles are to be found. How do we communicate that dynamically in the case of engine code?
Engine gems may be installed in multiple places, and in Ruby we can identify the filesystem location with MyEngine.root. In the prior release all we needed to do was not have them be purged which could be accomplished like this in production.rb:
  config.assets.css_compressor = Tailwindcss::Compressor.new(files_with_class_names:
    Rails.root.glob("app/views/**/*.*") +
    MyEngine::Engine.root.glob("app/views/**/*.*")
  )

Is there a supported strategy to communicate that in the tailwind.config.js file, which doesn't speak Ruby?
Or do we just need to generate that file with all locations added?

I'm building a component library built with Tailwind at the moment and have run into this.
Initially I tried inserting something like MyEngine::Engine.root.join("app/components/**/*.*") into tailwind.config.js as part of an install task. Given the engine root will differ between environments I'm not sure how well this approach could work in practice, though.
How about if your engine builds an engine.css file and you add that as a separate stylesheet_link_tag in the application? I haven't tried this approach yet, but I think it might work reasonably well for now. One problem with this approach is the duplication of styles, but I'm not sure how to avoid that right now.

I'm doing something similar with a rake task. I'm ignoring the config/tailwind.config.js file and generating it on relevant tasks with this (app is named "rice"):
namespace :rice do
  namespace :tailwind do
    desc "Generate a component-aware config/tailwind.config.js file"
    task :generate do
      components = [
        Foo::Engine,
        Bar::Engine,
      ]
      paths = components.map do |c|
        [
          "'#{c.root}/app/views/**/*'",
          "'#{c.root}/app/assets/javascripts/**/*'",
        ]
      end.flatten

      File.open(File.join(Rails.root, "config", "tailwind.config.js"), "w") do |f|
        f.write <<-JS
        const defaultTheme = require('tailwindcss/defaultTheme')

        module.exports = {
          content: [
            './app/helpers/**/*.rb',
            './app/javascript/**/*.js',
            #{paths.join(",\n            ")},
          ],
          theme: {
            extend: {
              fontFamily: {
                sans: ['Inter var', ...defaultTheme.fontFamily.sans],
              },
            },
          },
          plugins: [
            require('@tailwindcss/forms'),
            require('@tailwindcss/aspect-ratio'),
            require('@tailwindcss/typography'),
          ]
        }
        JS
      end
    end
  end
end

Rake::Task["tailwindcss:build"].enhance(["rice:tailwind:generate"])
Rake::Task["tailwindcss:watch"].enhance(["rice:tailwind:generate"])

So far so good, but we're in heavy development mode and don't have it in production yet.

I've come across this need as well. I found a Stackoverflow answer that used Bundler for providing the path. An example:
const execSync = require('child_process').execSync;
const gemPath = execSync('bundle show gem-name', { encoding: 'utf-8' });
module.exports = {
  content: [
    gemPath.trim() + '/app/assets/stylesheets/**/*.css',
    gemPath.trim() + '/app/views/**/*.{erb,haml,html,rb}',
    # ...
  ]
}

Would either of you have happened to ship CSS in that Rails Engine that was written with Tailwind CSS and meant to be included and precompiled with the Rails app that is using the engine? Is there a way to get Postcss imports to work with Rails Engine based stylesheets? I figure it's a similar path problem to this. Only way I've found around that is having to build an NPM package of stylesheets for the app to reference as part of its TailwindCSS build.

Hello!

Would either of you have happened to ship CSS in a Rails Engine that was written with Tailwind CSS but meant to be included and precompiled with the Rails app that is using the engine?

@javierjulio I'm facing a similar problem right now. In Avo we're building our own style-sheet and we add it with a stylesheet_link_tag. The host app can have it's own separate style-sheets and also import them with the stylesheet_link_tag through a hook into our application.html.erb. The problem here is that sometimes there are conflicts between stylesheets even on simple and equal styles.
I'm trying to figure out ways to compile both, the Avo's and host app styles and include them with only one stylesheet_link_tag. I've been trying several approaches one of them is this one with the Bundler:
const execSync = require('child_process').execSync;
const gemPath = execSync('bundle show gem-name', { encoding: 'utf-8' });
module.exports = {
  content: [
    gemPath.trim() + '/app/assets/stylesheets/**/*.css',
    gemPath.trim() + '/app/views/**/*.{erb,haml,html,rb}',
    // ...
  ]
}

Unfortunately I'm facing some issues with it since Avo's module.exports become complex and I need to include more than just the content (plugins etc...).
Did you solved it? Is there a documented way to build both, gem's and host's app tailwind together?! Or is there another better path to follow? We're open to suggestions.

I'm not sure if you can precompile Avo's styles in your app because they are already compiled and shipped with the gem itself so all your app is doing is loading a plain CSS file (no Tailwind compilation performed), if I understand right.

You understand that right @javierjulio. Actually I'm working on improving that process on Avo itself and allow the Tailwind compilation to perform on the host app. I implemented a POC following the Stackoverflow answer that used Bundler for providing the path but I wonder if there is another straight forward way of doing this integration between the gem and the app.

@Paul-Bob not that I know of, sorry. That's why I commented here to share what I found and see what others are doing or would suggest/comment with. If you do find another approach, please let us know. I'd like to know what other approach can be taken. It just doesn't seem that the new asset gems (e.g. jsbundling-rails) account for this when it comes to engines.

Let's consolidate this conversation into one place: https://github.com/rails/tailwindcss-rails/discussions/355

authors: Paul-Bob cpjmcquillan flavorjones ianterrell javierjulio

repo: rails/tailwindcss-rails


text:
[feature] allow users to always generate unminified CSS

Discussed in https://github.com/rails/tailwindcss-rails/discussions/243

Originally posted by the-pulli February  2, 2023
Are there any strategies how to use Tailwind with yui as a CSS compressor?
If I enable yui, the already minified tailwind.css from (app/assets/builds) gets again minified (and messed up) by yui and copied as an asset to public/assets.
Can I configure Rails to exclude the tailwind.css from being minified again?
Any help is appreciated, thanks 🙃
Actions
Because assets:precompile doesn't allow injection of the debug flag, this is currently hard for users to always do. Let's figure out how to enable users to always generate unminified tailwind assets.

See #253 which fixed the underlying issue (double-minification) in v2.0.24


text:
Bypassing Heroku's 30 Second processing rule.

I had the same problem with one of my apps on Heroku. I had a large process that took more than 30 seconds some times. Specifically it was compressing a catalog of images into a .zip file for customers. Small collections of 10 images were no problem. Once we hit 37 or more images the timeout invariably hit.
That's when I discovered Sidekiq and Jobs/Workers. I could offset the task to Sidekiq which would work on it until it was done.
But it wasn't until I also learned about ActionCable that was able to broadcast back details from the Sidekiq task into a Bootstrap progress bar then call a redirect on completion.

Thanks for your comment, @Okomikeruko! Yeah, something like ActionCable would be a possibility. Unfortunately I don't have any time to work on this at the moment, but if you want to take a shot at it, I'd be happy to review a PR. 😄

authors: Okomikeruko manuelmeurer

repo: railsbump/app


text:
[bug] redirected to https://rnbwappdotcom.app.link/SJOyoHO3Gob

Is there an existing issue for this?

[X] I have searched the existing issues

RainbowKit Version
latest
wagmi Version
latest
Current Behavior
I'm redirected to https://rnbwappdotcom.app.link/SJOyoHO3Gob instead of the correct deep link on Safari iOS.
Expected Behavior
I should be redirected to the Rainbow app.
Steps To Reproduce
Go to https://showtime.xyz on Safari iOS and try to sign in.
Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
https://github.com/showtime-xyz/showtime-frontend
Anything else?
No response

Is this a duplicate of https://github.com/rainbow-me/rainbowkit/issues/521? I'm seeing the same behaviour in the video posted there.

Going to close this since seems like a duplicate.

authors: axeldelafosse markdalgleish nickbytes

repo: rainbow-me/rainbowkit


text:
OrderCancel API - variety parameter

While debugging an issue with orderCancel API, i noticed that the "variety" parameter is having different check implemented in orderCancel API compared orderPlace/orderModify. Is this intentional ?

It wasn't intentional but a bug which I haven't noticed. Thanks for sending PR, have merged it.

authors: sivamgr vividvilla

repo: rainmattertech/kiteconnectjs


text:
🛑 RiotSkin4CN-Download is down

In ba835b7, RiotSkin4CN-Download (https://s-cd-4307-general.oss.dogecdn.com/riotskin4cn/live.json) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RiotSkin4CN-Download is back up in 1ac01db.


text:
🛑 RiotSkin4CN-Download is down

In a150f80, RiotSkin4CN-Download (https://s-cd-4307-general.oss.dogecdn.com/riotskin4cn/live.json) was down:

HTTP code: 0
Response time: 0 ms

Resolved: RiotSkin4CN-Download is back up in 1d22f0a.


text:
matchEmit doesn't work and check() errors

compile fails with check() error inside server publish method.
matchEmit always fails. Syntax is incorrect for minimongo match in Readme.
Should be:
ddpEvents.matchEmit('push', {
    $and: [
      { userId: ['fsDFf7fsfdfs'] },
      { appId: '2222' },
      { foo: 'bar' }
    ]
  }, 'Hello');

A push call to a simple selector does not work.
ddpEvents.matchEmit('push', {
      userId: 'fsDFf7fsfdfs'
  }, 'Hello');

Did you ever find a work around? I can see the userID in the log when the user connects but trying to matchEmit to it doesn't work.

No I didn't. I switched to the Streamy package.

repo: raix/Meteor-EventDDP


text:
🛑 Epic Mumbai Tours is down

In fe2745c, Epic Mumbai Tours (https://www.epicmumbaitours.com) was down:

HTTP code: 502
Response time: 742 ms

Resolved: Epic Mumbai Tours is back up in 755301c after 15 minutes.

repo: rajuprasad-dev/upptime-monitor


text:
When will the next version be released?

I want the feature introduced by my previous two pull-requests, #128 and #129.
Please release the version 0.9.8 if any blockers don't exist.

Once I have tried to use github version by specifying in Gemfile, but I couldn't to use it because this repository doesn't have rake-compiler.gemspec.

I've released 0.9.8!

Thanks!!

authors: kou mrkn

repo: rake-compiler/rake-compiler