User events are unsafe (Segfault in safe code)

Event has this method, which can be used to clone any type:
fn as_user_event_type<T: Any>(&self) -> Option<T>

This makes an unsafe clone of a Vec<u8>, leading to a use after free when one is dropped:
let event = sdl.event().unwrap();
event.register_custom_event::<Vec<u8>>().unwrap();
event.push_custom_event(vec![1u8, 2u8]).unwrap();

let mut pump = sdl.event_pump().unwrap();
let event = pump.poll_event().unwrap();
let v1 = event.as_user_event_type::<Vec<u8>>().unwrap();
let v2 = event.as_user_event_type::<Vec<u8>>().unwrap();

for a in v1 { println!("{}", a); } // consumes v1 and drops the backing storage
for a in v2 { println!("{}", a); } // use-after-free on the backing storage

as_user_event_type should probably return a Option<&T> instead.

That fix isn't good: It fixes the unsafety, but when the custom Event is dropped, it doesn't drop the vector, leading to a memory leak.

There's multiple places where events can get copied, so the best fix would probably be to restrict this to Copy types for now.

This library, although needing to be close to the source, needs to be as safe as possible - people who want closer-to-the-metal access can import the low-level library we provide.
I'm leaning towards the third option - we shouldn't be exposing unsafe interfaces here.

This library, although needing to be close to the source, needs to be as safe as possible - people who want closer-to-the-metal access can import the low-level library we provide.
I'm leaning towards the third option - we shouldn't be exposing unsafe interfaces here.

I ran into this issue recently as well. On my system it ultimately showed up as a double free of the custom event (I was accidentally processing the same custom event twice in my code)...
Just adding this for reference (in case someone else searches for this):
$ cargo run
 ...
free(): double free detected in tcache 2
zsh: abort (core dumped)  cargo run

On my system, the example provided by jonas-schievink behaves similarly (the program is terminated on double free).

What about an approach where the storage is done on the rust side, and just an "object id" gets passed through the low level SDL_UserEvent?
I don't really like the ergonomics of this a lot, but I think it's safe.
Example prototype: https://github.com/Rust-SDL2/rust-sdl2/compare/master...n1000:safe_user_event
(I'm a new  rust programmer, so anyone reading this issue thread should probably not use this code, it is just to facilitate discussion on the approach. Also, the function names were not thought through at this point and are not very good.)
Any existing application code that was passing the top level Event around and calling "as_user_event_type()" multiple times would need to be refactored to use as_user_event_type_peek() as the object is peeked at, and call as_user_event_type() when done with the event to avoid leaks. (I think code that was calling as_user_event_type() multiple times was already unsafe, since every call to as_user_event_type() was calling Box::from_raw() on the same raw pointer).
Similar to the old code, if as_user_event_type() is not called on a custom event, it will stay allocated. In the original code, I think it was a true "leak". In this prototype, the unused event will just sit in the CustomEventStorage HashMap forever. An assert was added to check whether all the custom events were drained by the time the program terminates in the CustomEventStorage Drop implementation. A HashMap was used in the prototype for the object store, but something else may have lower overhead...


Why does the AP  converge to zero after training

IoU metric: bbox
Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.000
Average Precision  (AP) @[ IoU=0.50      | area=   all | maxDets=100 ] = 0.001
Average Precision  (AP) @[ IoU=0.75      | area=   all | maxDets=100 ] = 0.000
Average Precision  (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.000
Average Precision  (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.000
Average Precision  (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.001
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=  1 ] = 0.009
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets= 10 ] = 0.012
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.013
Average Recall     (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.000
Average Recall     (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.001
Average Recall     (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.022
My training environment as following:
CUDA version = 10.2
GeForce GTX 1080 Ti ×2
My training parameters as following:
batch_size = 1
epochs = 50
training on single node and 2 GPUs
training command：GPUS_PER_NODE=2 ./tools/run_dist_launch.sh 2 ./configs/r50_deformable_detr.sh

Hi @XmuHjx  - This is GENERIC advise . Am not familiar with this repo code base . as you dont provide enough info about your dataset and the classes etc . My guess is you share the Images Ground Truth Labels / BBOX Annotations information , also what  classes you have - information . AP as i can see here is the COCO EVAL AP . COCO Eval AP is calculated based upon the  Ground Truth Labels / BBOX Annotations and then the Predicted Labels and their BBOX

Hi @XmuHjx - This is GENERIC advise . Am not familiar with this repo code base . as you dont provide enough info about your dataset and the classes etc . My guess is you share the Images Ground Truth Labels / BBOX Annotations information , also what classes you have - information . AP as i can see here is the COCO EVAL AP . COCO Eval AP is calculated based upon the Ground Truth Labels / BBOX Annotations and then the Predicted Labels and their BBOX

Thanks for your answer，My dataset is COCO2017：
annotations file：
instances_train2017 and instances_val2017
Structure：
{
"info": info,
"licenses": [license],
"images": [image],
"annotations": [annotation],
"categories": [category]
}
in which：
info{
"info": info,
"licenses": [license],
"images": [image],
"annotations": [annotation]
}
license{
"id": int,
"name": str,
"url": str,
}
image{
"id": int,
"width": int,
"height": int,
"file_name": str,
"license": int,
"flickr_url": str,
"coco_url": str,
"date_captured": datetime,
}
annotation{
"id": int,
"image_id": int,
"category_id": int,
"segmentation": RLE or [polygon],
"area": float,
"bbox": [x,y,width,height],
"iscrowd": 0 or 1,
}
category{
"id": int,
"name": str,
"supercategory": str,
}
I still can't understand it and look forward to your reply

hi, bro! I met the same issue as you, did you find the reason? I trained in one node with sigle GPU 3080 and cuda version is 11.6.

嗨，兄弟！我遇到了和你一样的问题，你找到原因了吗？我在一个节点上用单 GPU 3080 进行训练，cuda 版本是 11.6。

Hello, did you solve it?

我后来解决了，环境什么的都没有改就是没有加载预训练权重文件，train from scratch了，然后除了跟我数据集有关的超参改了，剩下的都没动。模型就跑通了，后面重复过几次，我是一旦发现它不收敛就重新跑，同时会重新装一下环境里的deformable operator（名字不记得了就是它自创的那个模块）
---- Replied Message ----
| From | @.> |
| Date | 07/29/2023 11:50 |
| To | fundamentalvision/Deformable-DETR @.> |
| Cc | lilyzhangzz @.>,
Manual @.> |
| Subject | Re: [fundamentalvision/Deformable-DETR] Why does the AP converge to zero after training (Issue #173) |
嗨，兄弟！我遇到了和你一样的问题，你找到原因了吗？我在一个节点上用单 GPU 3080 进行训练，cuda 版本是 11.6。
Hello, did you solve it?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

好的 非常感谢 也就是不用预训练权重直接训练 我试一下。然后你说的那个模块是mmdetection里面的还是pytorch里面的？我没有找到诶
发自我的iPhone
------------------ Original ------------------
From: lilyzhangzz @.>
Date: Tue,Aug 1,2023 10:39 AM
To: fundamentalvision/Deformable-DETR @.>
Cc: cbn3 @.>, Comment @.>
Subject: Re: [fundamentalvision/Deformable-DETR] Why does the AP  converge tozero after training (Issue #173)

你当时没有预训练跑了多少个epoch 我这用比较小的数据集跑了几个epoch还是没效果还是0
发自我的iPhone
------------------ Original ------------------
From: lilyzhangzz @.>
Date: Tue,Aug 1,2023 10:39 AM
To: fundamentalvision/Deformable-DETR @.>
Cc: cbn3 @.>, Comment @.>
Subject: Re: [fundamentalvision/Deformable-DETR] Why does the AP  converge tozero after training (Issue #173)

那个模块就是它的multiScaleDeformableAttention模块，它的model/ops里面有一个写好的脚本make.sh我每次不收敛了，都重装一下
我的数据集7000多张图片5个类别，大概得50轮会有0.86左右准确率
---- Replied Message ----
| From | @.> |
| Date | 08/01/2023 11:55 |
| To | fundamentalvision/Deformable-DETR @.> |
| Cc | lilyzhangzz @.>,
Manual @.> |
| Subject | Re: [fundamentalvision/Deformable-DETR] Why does the AP converge to zero after training (Issue #173) |
你当时没有预训练跑了多少个epoch 我这用比较小的数据集跑了几个epoch还是没效果还是0
发自我的iPhone
------------------ Original ------------------
From: lilyzhangzz @.>
Date: Tue,Aug 1,2023 10:39 AM
To: fundamentalvision/Deformable-DETR @.>
Cc: cbn3 @.>, Comment @.>
Subject: Re: [fundamentalvision/Deformable-DETR] Why does the AP converge tozero after training (Issue #173)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

你可以看下你的log，模型跑的时候终端输出只取前几位但有可能实际上map50不是0，我的第一轮是0.00036这样
---- Replied Message ----
| From | @.> |
| Date | 08/01/2023 11:55 |
| To | fundamentalvision/Deformable-DETR @.> |
| Cc | lilyzhangzz @.>,
Manual @.> |
| Subject | Re: [fundamentalvision/Deformable-DETR] Why does the AP converge to zero after training (Issue #173) |
你当时没有预训练跑了多少个epoch 我这用比较小的数据集跑了几个epoch还是没效果还是0
发自我的iPhone
------------------ Original ------------------
From: lilyzhangzz @.>
Date: Tue,Aug 1,2023 10:39 AM
To: fundamentalvision/Deformable-DETR @.>
Cc: cbn3 @.>, Comment @.>
Subject: Re: [fundamentalvision/Deformable-DETR] Why does the AP converge tozero after training (Issue #173)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

我记错了，刚看了一下log从第150轮开始收敛的
---- Replied Message ----
| From | @.> |
| Date | 08/01/2023 11:55 |
| To | fundamentalvision/Deformable-DETR @.> |
| Cc | lilyzhangzz @.>,
Manual @.> |
| Subject | Re: [fundamentalvision/Deformable-DETR] Why does the AP converge to zero after training (Issue #173) |
你当时没有预训练跑了多少个epoch 我这用比较小的数据集跑了几个epoch还是没效果还是0
发自我的iPhone
------------------ Original ------------------
From: lilyzhangzz @.>
Date: Tue,Aug 1,2023 10:39 AM
To: fundamentalvision/Deformable-DETR @.>
Cc: cbn3 @.>, Comment @.>
Subject: Re: [fundamentalvision/Deformable-DETR] Why does the AP converge tozero after training (Issue #173)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

150轮开始收敛 总共跑了多少轮呢
发自我的iPhone
------------------ Original ------------------
From: lilyzhangzz @.>
Date: Tue,Aug 1,2023 0:09 PM
To: fundamentalvision/Deformable-DETR @.>
Cc: cbn3 @.>, Comment @.>
Subject: Re: [fundamentalvision/Deformable-DETR] Why does the AP  converge tozero after training (Issue #173)
我记错了，刚看了一下log从第150轮开始收敛的
---- Replied Message ----
| From | @.> |
| Date | 08/01/2023 11:55 |
| To | fundamentalvision/Deformable-DETR @.> |
| Cc | lilyzhangzz @.>,
Manual @.> |
| Subject | Re: [fundamentalvision/Deformable-DETR] Why does the AP converge to zero after training (Issue #173) |
你当时没有预训练跑了多少个epoch 我这用比较小的数据集跑了几个epoch还是没效果还是0
发自我的iPhone
------------------ Original ------------------
From: lilyzhangzz @.>
Date: Tue,Aug 1,2023 10:39 AM
To: fundamentalvision/Deformable-DETR @.>
Cc: cbn3 @.>, Comment @.>
Subject: Re: [fundamentalvision/Deformable-DETR] Why does the AP converge tozero after training (Issue #173)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.>

200轮
---- Replied Message ----
| From | @.> |
| Date | 08/01/2023 12:11 |
| To | fundamentalvision/Deformable-DETR @.> |
| Cc | lilyzhangzz @.>,
Manual @.> |
| Subject | Re: [fundamentalvision/Deformable-DETR] Why does the AP converge to zero after training (Issue #173) |
150轮开始收敛 总共跑了多少轮呢
发自我的iPhone
------------------ Original ------------------
From: lilyzhangzz @.>
Date: Tue,Aug 1,2023 0:09 PM
To: fundamentalvision/Deformable-DETR @.>
Cc: cbn3 @.>, Comment @.>
Subject: Re: [fundamentalvision/Deformable-DETR] Why does the AP converge tozero after training (Issue #173)
我记错了，刚看了一下log从第150轮开始收敛的
---- Replied Message ----
| From | @.> |
| Date | 08/01/2023 11:55 |
| To | fundamentalvision/Deformable-DETR @.> |
| Cc | lilyzhangzz @.>,
Manual @.> |
| Subject | Re: [fundamentalvision/Deformable-DETR] Why does the AP converge to zero after training (Issue #173) |
你当时没有预训练跑了多少个epoch 我这用比较小的数据集跑了几个epoch还是没效果还是0
发自我的iPhone
------------------ Original ------------------
From: lilyzhangzz @.>
Date: Tue,Aug 1,2023 10:39 AM
To: fundamentalvision/Deformable-DETR @.>
Cc: cbn3 @.>, Comment @.>
Subject: Re: [fundamentalvision/Deformable-DETR] Why does the AP converge tozero after training (Issue #173)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

---- Replied Message ----
| From | @.> |
| Date | 08/01/2023 12:11 |
| To | fundamentalvision/Deformable-DETR @.> |
| Cc | lilyzhangzz @.>,
Manual @.> |
| Subject | Re: [fundamentalvision/Deformable-DETR] Why does the AP converge to zero after training (Issue #173) |
150轮开始收敛 总共跑了多少轮呢
发自我的iPhone
------------------ Original ------------------
From: lilyzhangzz @.>
Date: Tue,Aug 1,2023 0:09 PM
To: fundamentalvision/Deformable-DETR @.>
Cc: cbn3 @.>, Comment @.>
Subject: Re: [fundamentalvision/Deformable-DETR] Why does the AP converge tozero after training (Issue #173)
我记错了，刚看了一下log从第150轮开始收敛的
---- Replied Message ----
| From | @.> |
| Date | 08/01/2023 11:55 |
| To | fundamentalvision/Deformable-DETR @.> |
| Cc | lilyzhangzz @.>,
Manual @.> |
| Subject | Re: [fundamentalvision/Deformable-DETR] Why does the AP converge to zero after training (Issue #173) |
你当时没有预训练跑了多少个epoch 我这用比较小的数据集跑了几个epoch还是没效果还是0
发自我的iPhone
------------------ Original ------------------
From: lilyzhangzz @.>
Date: Tue,Aug 1,2023 10:39 AM
To: fundamentalvision/Deformable-DETR @.>
Cc: cbn3 @.>, Comment @.>
Subject: Re: [fundamentalvision/Deformable-DETR] Why does the AP converge tozero after training (Issue #173)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

你的为ap0的轮数有多少呢
我这边现在练了25个epoch了
ap还是几乎是零但是就是0.001左右在动
发自我的iPhone
------------------ Original ------------------
From: lilyzhangzz @.>
Date: Tue,Aug 1,2023 0:14 PM
To: fundamentalvision/Deformable-DETR @.>
Cc: cbn3 @.>, Comment @.>
Subject: Re: [fundamentalvision/Deformable-DETR] Why does the AP  converge tozero after training (Issue #173)
200轮
---- Replied Message ----
| From | @.> |
| Date | 08/01/2023 12:11 |
| To | fundamentalvision/Deformable-DETR @.> |
| Cc | lilyzhangzz @.>,
Manual @.> |
| Subject | Re: [fundamentalvision/Deformable-DETR] Why does the AP converge to zero after training (Issue #173) |
150轮开始收敛 总共跑了多少轮呢
发自我的iPhone
------------------ Original ------------------
From: lilyzhangzz @.>
Date: Tue,Aug 1,2023 0:09 PM
To: fundamentalvision/Deformable-DETR @.>
Cc: cbn3 @.>, Comment @.>
Subject: Re: [fundamentalvision/Deformable-DETR] Why does the AP converge tozero after training (Issue #173)
我记错了，刚看了一下log从第150轮开始收敛的
---- Replied Message ----
| From | @.> |
| Date | 08/01/2023 11:55 |
| To | fundamentalvision/Deformable-DETR @.> |
| Cc | lilyzhangzz @.>,
Manual @.> |
| Subject | Re: [fundamentalvision/Deformable-DETR] Why does the AP converge to zero after training (Issue #173) |
你当时没有预训练跑了多少个epoch 我这用比较小的数据集跑了几个epoch还是没效果还是0
发自我的iPhone
------------------ Original ------------------
From: lilyzhangzz @.&gt;
Date: Tue,Aug 1,2023 10:39 AM
To: fundamentalvision/Deformable-DETR @.&gt;
Cc: cbn3 @.&gt;, Comment @.&gt;
Subject: Re: [fundamentalvision/Deformable-DETR] Why does the AP converge tozero after training (Issue #173)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.>

你可以看到我发你的图片吗？基本上150轮之前都是map50为0会有那么5-6次波动，波动应该不到0.1

---- Replied Message ----
| From | @.> |
| Date | 08/01/2023 12:17 |
| To | fundamentalvision/Deformable-DETR @.> |
| Cc | lilyzhangzz @.>,
Manual @.> |
| Subject | Re: [fundamentalvision/Deformable-DETR] Why does the AP converge to zero after training (Issue #173) |
你的为ap0的轮数有多少呢
我这边现在练了25个epoch了
ap还是几乎是零但是就是0.001左右在动
发自我的iPhone
------------------ Original ------------------
From: lilyzhangzz @.>
Date: Tue,Aug 1,2023 0:14 PM
To: fundamentalvision/Deformable-DETR @.>
Cc: cbn3 @.>, Comment @.>
Subject: Re: [fundamentalvision/Deformable-DETR] Why does the AP converge tozero after training (Issue #173)
200轮
---- Replied Message ----
| From | @.> |
| Date | 08/01/2023 12:11 |
| To | fundamentalvision/Deformable-DETR @.> |
| Cc | lilyzhangzz @.>,
Manual @.> |
| Subject | Re: [fundamentalvision/Deformable-DETR] Why does the AP converge to zero after training (Issue #173) |
150轮开始收敛 总共跑了多少轮呢
发自我的iPhone
------------------ Original ------------------
From: lilyzhangzz @.>
Date: Tue,Aug 1,2023 0:09 PM
To: fundamentalvision/Deformable-DETR @.>
Cc: cbn3 @.>, Comment @.>
Subject: Re: [fundamentalvision/Deformable-DETR] Why does the AP converge tozero after training (Issue #173)
我记错了，刚看了一下log从第150轮开始收敛的
---- Replied Message ----
| From | @.> |
| Date | 08/01/2023 11:55 |
| To | fundamentalvision/Deformable-DETR @.> |
| Cc | lilyzhangzz @.>,
Manual @.> |
| Subject | Re: [fundamentalvision/Deformable-DETR] Why does the AP converge to zero after training (Issue #173) |
你当时没有预训练跑了多少个epoch 我这用比较小的数据集跑了几个epoch还是没效果还是0
发自我的iPhone
------------------ Original ------------------
From: lilyzhangzz @.&gt;
Date: Tue,Aug 1,2023 10:39 AM
To: fundamentalvision/Deformable-DETR @.&gt;
Cc: cbn3 @.&gt;, Comment @.&gt;
Subject: Re: [fundamentalvision/Deformable-DETR] Why does the AP converge tozero after training (Issue #173)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

看不到诶 可以加你个联系方式吗 qq或者微信 太谢谢了 这个问题卡我好几天了
发自我的iPhone
------------------ Original ------------------
From: lilyzhangzz @.>
Date: Tue,Aug 1,2023 0:20 PM
To: fundamentalvision/Deformable-DETR @.>
Cc: cbn3 @.>, Comment @.>
Subject: Re: [fundamentalvision/Deformable-DETR] Why does the AP  converge tozero after training (Issue #173)
你可以看到我发你的图片吗？基本上150轮之前都是map50为0会有那么5-6次波动，波动应该不到0.1

---- Replied Message ----
| From | @.> |
| Date | 08/01/2023 12:17 |
| To | fundamentalvision/Deformable-DETR @.> |
| Cc | lilyzhangzz @.>,
Manual @.> |
| Subject | Re: [fundamentalvision/Deformable-DETR] Why does the AP converge to zero after training (Issue #173) |
你的为ap0的轮数有多少呢
我这边现在练了25个epoch了
ap还是几乎是零但是就是0.001左右在动
发自我的iPhone
------------------ Original ------------------
From: lilyzhangzz @.>
Date: Tue,Aug 1,2023 0:14 PM
To: fundamentalvision/Deformable-DETR @.>
Cc: cbn3 @.>, Comment @.>
Subject: Re: [fundamentalvision/Deformable-DETR] Why does the AP converge tozero after training (Issue #173)
200轮
---- Replied Message ----
| From | @.> |
| Date | 08/01/2023 12:11 |
| To | fundamentalvision/Deformable-DETR @.> |
| Cc | lilyzhangzz @.>,
Manual @.> |
| Subject | Re: [fundamentalvision/Deformable-DETR] Why does the AP converge to zero after training (Issue #173) |
150轮开始收敛 总共跑了多少轮呢
发自我的iPhone
------------------ Original ------------------
From: lilyzhangzz @.&gt;
Date: Tue,Aug 1,2023 0:09 PM
To: fundamentalvision/Deformable-DETR @.&gt;
Cc: cbn3 @.&gt;, Comment @.&gt;
Subject: Re: [fundamentalvision/Deformable-DETR] Why does the AP converge tozero after training (Issue #173)
我记错了，刚看了一下log从第150轮开始收敛的
---- Replied Message ----
| From | @.&gt; |
| Date | 08/01/2023 11:55 |
| To | fundamentalvision/Deformable-DETR @.&gt; |
| Cc | lilyzhangzz @.&gt;,
Manual @.&gt; |
| Subject | Re: [fundamentalvision/Deformable-DETR] Why does the AP converge to zero after training (Issue #173) |
你当时没有预训练跑了多少个epoch 我这用比较小的数据集跑了几个epoch还是没效果还是0
发自我的iPhone
------------------ Original ------------------
From: lilyzhangzz @.&amp;gt;
Date: Tue,Aug 1,2023 10:39 AM
To: fundamentalvision/Deformable-DETR @.&amp;gt;
Cc: cbn3 @.&amp;gt;, Comment @.&amp;gt;
Subject: Re: [fundamentalvision/Deformable-DETR] Why does the AP converge tozero after training (Issue #173)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.&gt;
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.&gt;
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.>

你加我微信吧15652847652
---- Replied Message ----
| From | @.> |
| Date | 08/01/2023 12:22 |
| To | @.> |
| Cc | lilyzhangzz @.>,
Manual @.> |
| Subject | Re: [fundamentalvision/Deformable-DETR] Why does the AP converge to zero after training (Issue #173) |
看不到诶 可以加你个联系方式吗 qq或者微信 太谢谢了 这个问题卡我好几天了
发自我的iPhone
------------------ Original ------------------
From: lilyzhangzz @.>
Date: Tue,Aug 1,2023 0:20 PM
To: fundamentalvision/Deformable-DETR @.>
Cc: cbn3 @.>, Comment @.>
Subject: Re: [fundamentalvision/Deformable-DETR] Why does the AP converge tozero after training (Issue #173)
你可以看到我发你的图片吗？基本上150轮之前都是map50为0会有那么5-6次波动，波动应该不到0.1
---- Replied Message ----
| From | @.> |
| Date | 08/01/2023 12:17 |
| To | fundamentalvision/Deformable-DETR @.> |
| Cc | lilyzhangzz @.>,
Manual @.> |
| Subject | Re: [fundamentalvision/Deformable-DETR] Why does the AP converge to zero after training (Issue #173) |
你的为ap0的轮数有多少呢
我这边现在练了25个epoch了
ap还是几乎是零但是就是0.001左右在动
发自我的iPhone
------------------ Original ------------------
From: lilyzhangzz @.>
Date: Tue,Aug 1,2023 0:14 PM
To: fundamentalvision/Deformable-DETR @.>
Cc: cbn3 @.>, Comment @.>
Subject: Re: [fundamentalvision/Deformable-DETR] Why does the AP converge tozero after training (Issue #173)
200轮
---- Replied Message ----
| From | @.> |
| Date | 08/01/2023 12:11 |
| To | fundamentalvision/Deformable-DETR @.> |
| Cc | lilyzhangzz @.>,
Manual @.> |
| Subject | Re: [fundamentalvision/Deformable-DETR] Why does the AP converge to zero after training (Issue #173) |
150轮开始收敛 总共跑了多少轮呢
发自我的iPhone
------------------ Original ------------------
From: lilyzhangzz @.&gt;
Date: Tue,Aug 1,2023 0:09 PM
To: fundamentalvision/Deformable-DETR @.&gt;
Cc: cbn3 @.&gt;, Comment @.&gt;
Subject: Re: [fundamentalvision/Deformable-DETR] Why does the AP converge tozero after training (Issue #173)
我记错了，刚看了一下log从第150轮开始收敛的
---- Replied Message ----
| From | @.&gt; |
| Date | 08/01/2023 11:55 |
| To | fundamentalvision/Deformable-DETR @.&gt; |
| Cc | lilyzhangzz @.&gt;,
Manual @.&gt; |
| Subject | Re: [fundamentalvision/Deformable-DETR] Why does the AP converge to zero after training (Issue #173) |
你当时没有预训练跑了多少个epoch 我这用比较小的数据集跑了几个epoch还是没效果还是0
发自我的iPhone
------------------ Original ------------------
From: lilyzhangzz @.&amp;gt;
Date: Tue,Aug 1,2023 10:39 AM
To: fundamentalvision/Deformable-DETR @.&amp;gt;
Cc: cbn3 @.&amp;gt;, Comment @.&amp;gt;
Subject: Re: [fundamentalvision/Deformable-DETR] Why does the AP converge tozero after training (Issue #173)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.&gt;
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.&gt;
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

hi, bro! I met the same issue as you, did you find the reason? I trained in one node with sigle GPU 3080 and cuda version is 11.6.

Multiply lr by 0.1 because of your batch size is too small

hi, bro! I met the same issue as you, did you find the reason? I trained in one node with sigle GPU 3080 and cuda version is 11.6.

Multiply lr by 0.1 because of your batch size is too small

That'right. I ran the experiment with batch size 1 and batch size 2  respectively,and  the one with  batch size 1 got AP 0,but the other one is normal.


StatefulSet Data node: PVC and PV matching queries

For data nodes using StatefulSet. e.g.
I have 3 PVs, pv0, pv1 and pv2, each have a volume with 50GB, then create data nodes with the volumeClaimTemplates requesting 50GB.
The first time, 3 PVC has been created, named e.g. pvc0, pvc1 and pvc2,
pvc0 was bound to pv0,
pvc1 was bound to pv1,
pvc2 was bound to pv2,
Then, I delete all of the resources created before, including PV and PVC, and create them again,
This time,
pvc0 was bound to pv1,
pvc1 was bound to pv0,
pvc2 was bound to pv2,
Then my question is, any impact with this? Will data be lost? And will cluster info be changed? Thanks for the help!

@wfhartford is this expected behavior?

I'm really not sure. I only have experience with the google container engine, where the PVs and PVCs are automatically created. The behaviour described does sound reasonable though. When the volume claims are created, they get associated with any available volume matching the criteria of the claim.
Typically, you should not be deleting all these resources and recreating them. Even if you need to delete your stateful set, you should leave the PVs and PVCs in place so that the correct volume can be associated with the appropriate pod in the stateful set.

Should I close this?


Threshold Event Types Notebook after Refactor.

This PR supersedes #59 as it integrates the threshold event types notebook into refactored codebase.

 Outstanding Threshold work


fail to load webp_transform plugin

compile the trafficserver in debian 10 x64 environment ( gcc 8.3.0),
build the webp_transform plugin successfully but fail to load...
following is the error log
[Jan  8 08:20:46.975] {0x7f882dee0740} FATAL: unable to load '/usr/local/trafficserver-8.0.5-d10/libexec/trafficserver/webp_transform.so': /usr/local/trafficserver-8.0.5-d10/libexec/trafficserver/webp_transform.so: undefined symbol: _ZTIN9atscppapi20TransformationPluginE

some warnings when i build the plugins, but it comes out anyway ...

_ZTIN9atscppapi20TransformationPluginE == typeinfo for atscppapi::TransformationPlugin  ( demangler.com )

A potential work around is to use:
LD_PRELOAD=/your/path/libtscppapi.so traffic_server ...

without luck, same error message emit

Can you post the output of nm -A -D /usr/local/trafficserver/lib/libts*.so | grep Transformation ?

Is /usr/local/trafficserver a symlink to /usr/local/trafficserver-8.0.5-d10 ? (Or vice versa?)

@randall   /usr/local/trafficserver is a symlink to /usr/local/trafficserver-8.0.5-d10

The -C option on nm will demangle the C++ names.

@esmq2092 I think you need to use:
export LD_PRELOAD=/your/path/libtscppapi.so
traffic_server ...

if you assign the shell variable on a separate line.  Generally people assign it at the beginning of the line so it's only set just for that command.

I've seen this sort of problem a few times before.  It was because the shared lib was linked without specifying all the shared libraries it itself depended on.  The shared lib may still load because core TS directly loads all the libs it depends on first, or because core TS loads other plugins first that load the depended-on libs.  But this can break, by changes to core TS make files, or changes in plugin.config or remap.config.

learn from above tips, i found that it is all about my broken testing environment,
after reinstall OS, then all works fine.
sorry for disturb you.

I suggest running the ldd utility on your plugin.  If it does not give a full path for all the shared libraries it needs, that means it's depending on the core or other plugins to load them properly, or the LD_LIBRARY_PATH environment variable.


Why are mongodb crates installed when you're not using mongo?

I think it is a bit of an oversight, but there are lots of crates being downloaded that are specific to MongoDB. Maybe a feature on the crate which downloads crates only needed for that specific database to prevent this?

This is being tracked here: https://github.com/Brendonovich/prisma-client-rust/issues/41
As for why it hasn't been done yet, the Prisma engines aren't feature gated well enough to make separating the database packages easy. I'm not happy with it and hope to at least implement sql and mongodb features at some point, but it requires a fair bit of modification of the engines that makes updating them more difficult.


Prototype token 'Vision Radius' gets reset after every DDBImporter update

When using D&D Beyond Importer to update any character, the Prototype Token>Vision>Vision Radius setting always get reset to Dim:0, Bright:0.
All other settings in the 'Vision' tab do not get reset.

This will be because the character does not have darkvision, and therefore does not have vision on a scene.

When characters do have darkvision, it does not change still.
I was more just reporting that if I manually enter someone's dim/bright vision at 60ft for darkvision, then go to update their items from DnD Beyond, the vision value gets reset back to 0, when intuitively, I would expect only the things I have checked to be changed.

I have changed the issue name to represent a feature request, to exclude token vision during import.


Document size

I want to fetch a page specifying that I need exactly compressed version (compress: true). But then I don't know how to get the size of the page, and I need exactly the size of the compressed version.
Right now I can do
res.buffer().then(d => console.log(d.length))
but it shows me the uncompressed size already.
and dealing with the response body stream is also showing me the uncompressed version
res.body.on('data', (d) => console.log(d.length))
Is it feasible to achieve?

You do need compress: false and decompress it yourself, this is a limit of Fetch API: we can only expose one stream, it can either be decompressed or raw...

@bitinn
I got it, thanks.
here is the way how I've solved it.
I specify header which tells a server to send the compressed response and set compres: false to do not do any decompression on the client side.
fetch(url, {
  headers: { 'Accept-Encoding': 'gzip' },
  compress: false
}).then(res => {
    let result = 0;
    res.body.on('data', (d) => result += d.length)
    .on('end', () => console.log('File size is: ' + result));
})


How to install coin using libboost_system 1.65.1

How to install coin using libboost_system 1.65.1

And "sudo" makes no difference.

libboost_system.so.1.54.0 is needed


Replace platform tip with host tip

Platform tips are misleading and not fair.
Either open collective is a free open source platform and you'd be then totally entitled to ask people for a platform tip, either it's a software platform that hosts have to pay to use (like a zoom account). Right now, it's both.  It's a non issue for the hosts that you are directly managing (since in that case it doesn't make any difference). But it's a real issue for 3rd party hosts.

The marginal cost for any new donation is 0 for the platform. But it's non zero for the host that will have to manually process expenses submitted to access that money donated.
Imagine a coffee shop where the tip box would be for the coffee machine, not for the person using the machine to make your coffee.
That's why people think that they are tipping the host, because that's the primary human connection they have.

To be clear, this is not about reducing the overall income for Open Collective (such change wouldn't make any difference for the largest hosts directly managed by you), it's about not misleading users and independent hosts. If needed, increase the cut for those hosts and/or set a monthly subscription fee.
To put things in perspective, Open Collective is making €1455/month out of the allforclimate community, a community of volunteers working on climate justice, without contributing to the salary of anyone managing that host.

I feel like a fairer deal would be to consider those platform tips as tips for the host and include that in your calculation of your fees of 15% (or whatever new percentage you'd need to make the math work for you). Right now, in this latest bill, Open Collective is effectively eating 53% of all the fees and tips.

Seems like the problems and solutions in https://github.com/opencollective/opencollective/issues/6377 might be related?

If you can't cover host operating costs with current host fees, you need to increase your host fee. You should set it at a level actually sustainable for the work the host must do, or seek outside funding to makeup the gap. Open Collective has to get income from hosts somehow, and that is even more important for the ones who charge low or no fees, since the platform fee take is very low in those cases, so we make up for it in optional tips.

Oh right - so self-hosted collectives can set their own host fees?
Ideally, they'd also be able to set defaults (#6252 is related) or hide the platform tip (for a fee). Isn't at least the latter what's being proposed in #6377?

Self-hosted / Independent Collectives have no Host Fees. No they cannot hide or opt out of tips, as that's the only way Open Collective have revenue from them.

Ok - guess I misunderstood https://github.com/opencollective/opencollective/issues/6398#issuecomment-1429068694
With regards to hiding tips (for a platform fee), isn't that what @Betree and some customers were proposing in https://github.com/opencollective/opencollective/issues/6377?

@alanna this issue is not about how much the host is getting (and how much they should charge), the issue is about the interface misleading the end user. When you give a tip, you expect it to go to the operator of the machine, not to the vendor of the machine.
So tips should go to the host, then you can charge whatever you want to the host to make the math work for you. But there is a clear billing relationship between the host and you, and between the users and their host.
The thing is that in practice, those tips do go directly to the host when the end user makes a wire transfer (adding to the confusion where they think the tip is for the host).
If you want to offer a free tier to 3rd party hosts at the condition that 100% of the host tip goes to you, that's fine.
If you charge a monthly fee to the host, then arguably the commission should be lower (see for example shopify's pricing).
Another way to look at it: offer hosts –as a paid option– the ability to remove "platform tips".
(thanks @gusaus for making all those links with other issues / comments)

this issue is not about how much the host is getting (and how much they should charge)

It's slightly about it because it seems you want Host Tips as extra revenue to sustain the host operations.

Another way to look at it: offer hosts –as a paid option– the ability to remove "platform tips".

For Fiscal Hosts that don't like Platform Tips, it's always on the table. We just to have to find a model that give Open Collective (OC) enough revenue to justify having the Fiscal Host on the platform and keep supporting them.
For All For Climate (A4C), OC made in 2022 around $9K in platform tip, and ~$3K in revenue share (15% of host fees). It's respectively 1.11% and 0.42% of total money raised on A4C collectives. In the meantime A4C made around ~$20K in net host fees, 2.47% of total money raised.
To be honest, I think 1.5% of total money raised is already on the low side as income for the platform. But as a math exercise, we could start from here and ask the question: looking at A4C numbers, how could we keep $12K or 1.5% in annual revenue for OC without relying on Platform Tips?

Tips were designed to be a compromise that allowed flexibility for hosts that charge low or no fees to still have a way to support the platform without putting financial pressure on hosts without a huge budget to spend. The alternative would be something like enforcing a minimum 10% host fee or something so the math works when OC takes a % of that as platform fees (and no tips). But we have hosts who don't want to charge higher fees to Collectives and we want to give them flexibility.

The problem is the platform simply doesn't work for several of your customers (the collectives). Different pricing and functionality depending on the host (for example OSC https://github.com/opencollective/opencollective/issues/6252#issuecomment-1381622473) only compounds that.
For example, most of the Drupal collectives having any type of success are Drupal Camps/events (largely due to previous support). Currently, they are using a mix of self-hosted, OSC, and OCF, but more and more are leaning towards OSC because a tip on event tickets and sponsorships is confusing (even though OCF may provide more benefits as a fiscal host).
With more modules/addons using Open Collective is essentially a payment gateway, the problem is solved via integration (for use cases where the tip makes no sense) but not for those discovering and purchasing through the platform (for certain hosts).
Curious why there hasn't been further progress/discussion on providing the ability to hide tips (on the collective admin/tier level) for a fee https://github.com/opencollective/opencollective/issues/6377#issuecomment-1414484659. Seems like what @xdamman is proposing could be a compliment to that?
FWIW after additional discussion in some of the largest open source communities on open collective, I'll reiterate that 'not' providing the tip option for OSC collectives is odd (and a missed opportunity). Supporters of open source projects are the ones that get Open Collective is open source and would gladly tip. They're also interested/able to support and contribute to the platform directly (if encouraged and enabled).
Pretty sure there will be more revenue (via existing/new collectives and direct support/contributions) if the pricing and functionality were constant across all hosts.

I completely agree that pricing is currently messy and confusing, and we would all be served by a clearer model. It's just really hard to make sorting it out the priority when such a small percentage of revenue comes from hosts other than partner hosts (OSC/OCF/OCE, which have a 50% revenue share with OC inc), or from tips. It's not perfect but it's working well enough. Right now OC's strategy is to focus on the needs of these large hosts and we have to keep focused on that strategy. We can't take everything on at once and there are approximately eighty zillion other important problems to solve. Fixing pricing will be a fairly complex and hairy process crossing strategy, business, finance, and tech, and we likely won't be able to properly work on it until the strategy phase after this current one, which I very much hope and believe will be focused on making OC work for all the other hosts besides those three run by OC, and scaling up the network majorly. But it's not quite time yet. That's still my dream for OC, a big network of diverse hosts, most of which we don't run, and a platform and pricing model that supports that. That's the scalable dream. But we're not quite there.

I appreciate that and understand changes in pricing would be complicated. The only reason I'm mentioning is my assumption has been that OSC wouldn't 'include' the ability to tip without making their pricing consistent with OCF/OCE (which are similar, right?). But now reading back through some of the earlier/related discussions https://github.com/opencollective/opencollective/issues/6252#issuecomment-1381622473, it seemed like something @BenJam was open to future exploration.

The philosophy applied here is that we don't accept tips on transactions that Open Collective Inc. already benefits from. We may experiment with switching to platform tips in the future but, for the moment at least, we're happy supporting Open Collective Inc. as we are.

Wondering if OSC could potentially enable platform tips while keeping the pricing the same.
The issue isn't the pricing as much as consistancy in terms of platform behaviour and control. Again, it looked like https://github.com/opencollective/opencollective/issues/6377 would be big step in terms of solving the problem. Is there a tecnical issue that would prevent that from being implimented?

FWIW after additional discussion in some of the largest open source communities on open collective, I'll reiterate that 'not' providing the tip option for OSC collectives is odd (and a missed opportunity). Supporters of open source projects are the ones that get Open Collective is open source and would gladly tip.

Oh wow, I had no idea this was going on. Indeed, of all communities, this is the one that would understand the platform tip to fund the open source software that open collective is developing under MIT license. Also since the host has been created and is still managed by OC, there is no confusion here on where the tip is going to.
@znarf thank you for computing those numbers. They are quite misleading though as they include all the donations made manually ("add funds"), for which the platform doesn't automate anything. For those, the platform behaves like a regular accounting software, whose license model is never based on a percentage of the amount of money under management. Could you re-run those numbers with only credit card donations?
I think it could be interesting to offer a license model, e.g. €5/collective/month. A4C has about 200 collectives, that would be €1000 a month or €12k a year (maybe make it a tiered model, e.g. up to 100 collectives, up to 2 or 300, up to 500, up to 1000, etc.).
Again this is not about how much money OC or the host is getting, it's about avoiding misleading the end user and therefore creating confusion and frustration. I'm sure we can all agree that is not the goal. I'm just reporting feedback from the ground, from the climate justice community of allforclimate (it's only one perspective, I'm sure other communities, especially the open source community, and the US community used to tipping, might have a very different point of view).

this is not about how much money OC or the host is getting, it's about avoiding misleading the end user and therefore creating confusion and frustration.

Obviously, it's all intertwined. More money flowing through collectives is good for everybody and right now several customers (your collectives) are having a hard time sustaining due to what should be 'solvable' limitations with the platform...especially considering the platform is open source.
While our OCF collectives have technical capacity to solve customer-facing problems through integration and third-party platforms (now that our url parameter workaround https://github.com/opencollective/opencollective/issues/6252#issuecomment-1379493216 was taken away), we're short on time and funds to do the extra work. But without the ability to opt-out of platform tips in some cases (for a fee), we still run the risk of misleading supporters finding us through https://discover.opencollective.com/
It's been almost two months since @CaptainStack posted https://github.com/opencollective/opencollective/issues/6252. Pointing out here as it spurred on many of the same discussions about problems and solutions. One of which I'd like to revisit, update, and move forward https://github.com/opencollective/opencollective/issues/6252#issuecomment-1385812818.
Considering our community contributor group has grown in that time, the only barrier to solving these problems together are funds. That too should be a solvable problem if we're proactive about raising funds for https://opencollective.com/opencollective (assuming that's the collective associated with the open source https://github.com/opencollective/opencollective).

I think it could be interesting to offer a license model, e.g. €5/collective/month. A4C has about 200 collectives, that would be €1000 a month or €12k a year (maybe make it a tiered model, e.g. up to 100 collectives, up to 2 or 300, up to 500, up to 1000, etc.)

@xdamman If A4C wants to pay €5/collective/month on a monthly bill, then I think Open Collective could deactivate platform tips for the host, make sense for me. Should we try to move forward with that proposal?

Open Collective could deactivate platform tips for the host

So would all self-hosted collectives have this option? What about OCF hosted collectives?
Again, all the affected collectives I'm aware of 'want' the tip as an option. They just need the ability to hide on specific tiers/use cases where the default tip could be perceived as expensive, confusing, and/or misleading.
What @Betree was proposing in #6377 would resolve the problems for your customers. The fixed platform fee (for hiding on specific tiers) + additional/increased tips and contributions (especially if OSC enables tips) should generate more (not less) revenue for the platform and team.

For the (2) solution, we could imagine something like that in the settings:
☑ Enable platform tips
As a Collective admin, you can decide whether you prefer to be charged a fixed 5% platform fee or if you'd rather let your contributors add an optional tip on top of their contributions.
(note: the 5% part needs to be reviewed and discussed)

Pricing stuff is complex and difficult to continually keep changing - I don't believe we should go changing it around without due consideration. It must be fair across all users, easy to understand, and properly thought through. So while good points are being brought up here, we need to slow down and let OC take this on as a proper project before making changes.

I totally agree and understand. That's why I'm trying to steer this to a solution proposed by OC and where someone @xdamman might know has also weighed in  https://github.com/opencollective/opencollective/issues/6377#issuecomment-1441898808

Cross referencing what could be a more flexible solution for collectives using their website and/or third party platforms for fundraising https://github.com/opencollective/opencollective/issues/6377#issuecomment-1445476463
Considering the solution is already available for users of the open source platform powering over 40% of the internet, this should make Open Collective a very attractive option to a quite large ecosystem/economy as a fiscal sponsorship service, payment gateway, and financial management tool.
While comparatively smaller than WordPress, Drupal and its nonprofit Drupal Association as an early adopter and supporter will finally translate into widespread adoption and more funds flowing to sustain the OC platform and team. Especially with Open Collective/drupal.org integration finally moving forward.
As long as the fee structure remains inconsistent (i.e. most 'off the OC platform' use cases will 'not' include a tip), a funding and discovery tool like https://discover.opencollective.com/ will be underutilized by those unable to use for most use cases.
Reading back through these related issues, it seems like several key members of the OC platform team are open to the idea of hiding the platform tip (for a fee). Considering the uptick in revenue that 'will' be flowing from integrations and outside platforms, why not direct some resources (funds and community contributors) into removing the barriers to making the platform a goto fundraising tool?

Are #6799 and #6377 related attempts to solve some of the problems identified in #6252 and here?


[RFC]: add math/base/special/atanf

Description
Description
This RFC proposes adding math/base/special/atanf, which would be a single precision implementation for math/base/special/atan.
float stdlib_base_atanf( const float x )

Related Issues
None.
Questions
No.
Other
No.
Checklist

[X] I have read and understood the Code of Conduct.
[X] Searched for existing issues and pull requests.
[X] The issue name begins with RFC:.

I would like to work on this.

For this, we will need constants/float32/pi. I will be making a separate PR for that.

#2042 must be merged for this.

#2046 must also be merged for this.


KEVM sum-to-n proof takes long time to finish

https://github.com/kframework/evm-semantics/blob/master/tests/specs/examples/sum-to-n-spec.k takes around 20 mins to finish

I tried to modify the semantics and removed stackoverflow/underflow check.
index 9bd20a5..94ac014 100644
--- a/evm.md
+++ b/evm.md
@@ -308,22 +308,13 @@ The `#next [_]` operator initiates execution by:
          </k>
          <wordStack> WS </wordStack>
          <static> STATIC:Bool </static>
-      requires notBool ( #stackUnderflow(WS, OP) orBool #stackOverflow(WS, OP) )
-       andBool notBool ( STATIC andBool #changesState(OP, WS) )
+      requires notBool ( STATIC andBool #changesState(OP, WS) )

-    rule <k> #next [ OP ] => #end EVMC_STACK_UNDERFLOW ... </k>
-         <wordStack> WS </wordStack>
-      requires #stackUnderflow(WS, OP)
-
-    rule <k> #next [ OP ] => #end EVMC_STACK_OVERFLOW ... </k>
-         <wordStack> WS </wordStack>
-      requires #stackOverflow(WS, OP)

     rule <k> #next [ OP ] => #end EVMC_STATIC_MODE_VIOLATION ... </k>
          <wordStack> WS </wordStack>
          <static> STATIC:Bool </static>
-      requires notBool ( #stackUnderflow(WS, OP) orBool #stackOverflow(WS, OP) )
-       andBool STATIC andBool #changesState(OP, WS)
+      requires STATIC andBool #changesState(OP, WS)

By doing this the total run time reduces to ~5 mins. I think this is the best result we can get.
I'm still get confused why overflow/underflow check made such huge difference.
For the sum-to-n proof, there at most 10 elements on the stack and there are 17 opcodes in total.

Answer by @ttuegel :
You hit #sizeWordStack() four times (at least) per op code, times the number of branches. Then you hit #sizeWordStack(, _) up to the depth of the stack, so that's at least 10 * 4 * number of branches.

I made some simple modification to EVM-semantics to store the result of #sizeWordStack... see https://github.com/kframework/evm-semantics/commit/71de70f5a5dcac99d9a653fbec0f6205e4964cc5.
however, this doesn't improve the performance at all...(even takes longer time)

however, this doesn't improve the performance at all...(even takes longer time)

Are you comparing to kframework/evm-semantics#508? I would expect that you can only beat performance there if the semantics is changed to never calculate the length of a WordStack. Recall also that function evaluation has no operational semantics; there is absolutely no guarantee that #sizeWordStack will be evaluated before entering #checkStack, in which case it may be evaluated multiple times.


Fix license headers - part 2

Fix (again) license headers
This PR is created automatically by Matks PrestaShop Repositories Bulk Editor

🆙  @eternoendless


livekit is not support CentOS 7?

I want to start livekit-agents
I used livekit-cloud.
But I meet this error.
OSError: /home/shared/apps/tutor-livekit-speech/.venv/lib/python3.12/site-packages/livekit/rtc/resources/liblivekit_ffi.so: cannot open shared object file: No such file or directory
system:
Linux version 4.19.104-300.el7.x86_64<EMAIL_ADDRESS>(gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)) livekit/livekit#1 SMP Mon Feb 17 15:34:16 UTC 2020
CentOS Linux release 7.6.1810 (Core)
version:
livekit: 0.11.1
livekit-agents:0.6.0
language:
python3.12

@MichaelYang1995 please avoid filing duplicate issues. it's not a good use of my time to review the same issues and having to close them.


Add Full Support For TypeScript

🚀 Feature
The ability to run docusaurus in a TypeScript environment
Have you read the Contributing Guidelines on issues?
Yes
Motivation
I would personally like to see this because myself and likely others prefer TypeScript to writing pure Node.js, and I believe it is a relatively small change.
Pitch
There are already 7 upvotes on the TypeScript suggestion by Zihua Wu on the Docusaurus 2 feedback website.

It would require no new dependencies
I am willing to work on a PR
Modify how docusaurus loads files for rendering the website:

require() files without providing a specific extension
Support processing .ts and .tsx file extensions

Can you be more specific ? I think you didnt mean the node.js file, but rather the "web" js file as in website/pages/index.tsx instead of website/pages/index.js right ?

Correct, the actual React JSX templates.
On Sun, Dec 15, 2019 at 1:53 AM Endi<EMAIL_ADDRESS>wrote:

Can you be more specific ? I think you didnt mean the node.js file, but
rather the "web" js file as in website/pages/index.tsx instead of
website/pages/index.js right ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/docusaurus/issues/2120?email_source=notifications&email_token=AACXCFSA7ALKXOE5QLD6RTDQYX5BDA5CNFSM4J2HGQWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG4VJKA#issuecomment-565793960,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACXCFSMCBYBQDHWR7UJ6X3QYX5BDANCNFSM4J2HGQWA
.

I would additionally like to have the capability to support loading a siteConfig.ts file. It would allow for the possibility to have both a type-checked siteConfig export, and look something like this:
const siteConfig: Docusuarus.Config = { /* ... */ };
export default siteConfig;

I'm going to start working on an example pull request.

Is there any documentation about how to set up a Docusaurus 2.x project? It is hard to test my changes when it is loading docusaurus instead of @docusaurus/core.

https://v2.docusaurus.io/docs/migrating-from-v1-to-v2
I'd love this too BTW!

Can you be more specific ? I think you didnt mean the node.js file, but rather the "web" js file as in website/pages/index.tsx instead of website/pages/index.js right ?

@endiliey it would be even better to be able to import typescript/flow-type from mdx files. Is such a feature acceptable?

I managed to get it work with TSX. Here is the example from my project:
https://github.com/sarunast/german-grammar/blob/master/webpackConfigPlugin/index.js
After that, you load it as a plugin. I guess it would be best if someone could create an actual plugin package.


TypeScript Version:  2.1.4 TS6133 ''attr' is declared but ever used.

TypeScript Version:  2.1.4 TS6133 ''attr' is declared but ever used.
Code:
public link: ng.IDirectiveLinkFn = (scope: any, element: ng.IAugmentedJQuery, attr: ng.IAttributes, ctrl: Array<any>) => {
            let ngModel: IEditorModel = ctrl[0];
            let isTextarea: boolean = element[0].tagName.toLowerCase() === 'textarea';

            if (!isTextarea) {
                return;
            }

            let ckInstance: CKEDITOR.editor = CKEDITOR.replace(<HTMLTextAreaElement> element[0]);
            CKEDITOR.config.customConfig = scope.customConfig;
            CKEDITOR.config.startupFocus = scope.hasStartupFocus;
            CKEDITOR.config.height = scope.desktopHeight;

            element.bind('$destroy', () => {
                ckInstance.destroy(false);
            });

            ckInstance.on('instanceReady', (instanceObj: CKEDITOR.eventInfo) => {
                scope.$apply(() => {
                    ngModel.$setViewValue(ckInstance.getData());
                });
                instanceObj.editor.removeMenuItem('editdiv');
                instanceObj.editor.removeMenuItem('removediv');
            });

            ngModel.$render = () => {
                if (ngModel.$viewValue === undefined) {
                    ngModel.$setViewValue('');
                    ngModel.$viewValue = null;
                } else {
                    if (ngModel.$viewValue) {
                        let viewValue: string = ngModel.$viewValue;
                        ckInstance.setData(viewValue);
                    }
                }
            };

            let updateModel: any = () => {
                this.$timeout(() => {
                    ngModel.$setViewValue(ckInstance.getData());
                });
            };

            ckInstance.on('change', updateModel);
            ckInstance.on('key', updateModel);
            ckInstance.on('blur', updateModel);
            ckInstance.on('dataReady', updateModel);
        }

        public static factory(): any {
            let directive: Function = ($timeout: ng.ITimeoutService): CkEditor => {
                return new CkEditor($timeout);
            };
            directive.$inject = ['$timeout'];
            return directive;
        };
    }

**Expected behavior: **
We have created a directive in typescript and have declared the link function as described above.
We would expect that the signature for the link method be recognized and not throw an error
of TS6133 for unused argument 'attr'
Actual behavior:
src\app\webmail\directives\webmail.ckEditor.ts(21,87): error TS6133:
'attr' is declared but never used.**

I don't understand what the complaint is? The error is correct; the attr parameter is not used in the function. This is an error about declaring a parameter without using it, not a type system error.
You may omit the parameter (it will still be assignable to the IDirectiveLinkFn type), or name it with a leading underscore (_attr).

Omitting the parameter gives us:
[ts]
Type '(scope: any, element: IAugmentedJQuery, ctrl: any[]) => void' is not assignable to type 'IDirectiveLinkFn'.
Types of parameters 'ctrl' and 'instanceAttributes' are incompatible.
Type 'IAttributes' is not assignable to type 'any[]'.
Property 'length' is missing in type 'IAttributes'.
What does the leading underscore do?? I am not familiar.
Adding _attr does work.
Thank you for your quick response.

Unused parameter errors aren't issued for names starting with _ (specifically for this case).

Awesome thank you again!

Ryan,
Is this documented anywhere by chance? I must have missed it, if so.

Unused parameter errors aren't issued for names starting with _ (specifically for this case).

Thank you.

Is this documented anywhere by chance?

http://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-0.html#flag-unused-declarations-with---nounusedparameters-and---nounusedlocals

That's perfect! Thank you very much. I truly missed it. =)
Could the compiler warning perhaps suggest that if a parameter must be accepted due to a function's signature, that an underscore could be used to prevent TS6133, please?


Updates of markdown files and default values in schema

Small updates to markdown and prettied files.
Local linting works with only a few warnings, but actions fail with odd errors of mismatches of images with the template.
PR checklist

[ ] This comment contains a description of changes (with reason).
[ ] Make sure your code lints (nf-core lint).
[ ] Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
[ ] Check for unexpected warnings in debug mode (nextflow run . -profile debug,test,docker --outdir <OUTDIR>).
[ ] Usage Documentation in docs/usage.md is updated.
[ ] Output Documentation in docs/output.md is updated.
[ ] CHANGELOG.md is updated.
[ ] README.md is updated (including new tool citations and authors/contributors).

@nf-core-bot fix linting

@nf-core-bot fix linting


jags: 4.1.0 -> 4.3.0

Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done:

built on NixOS
Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.)
found 4.3.0 with grep in /nix/store/l1501z3mvnsj2jnrzr1ynz5ga4awkvs3-JAGS-4.3.0
directory tree listing: https://gist.github.com/06c48137ea8a1cd06672815a39559795

cc @kosmikus for review

Success on x86_64-linux (full log)
Attempted: jags
Partial log (click to expand)
/nix/store/l1501z3mvnsj2jnrzr1ynz5ga4awkvs3-JAGS-4.3.0

Success on x86_64-darwin (full log)
Attempted: jags
Partial log (click to expand)
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/private/tmp/nix-build-JAGS-4.3.0.drv-0/JAGS-4.3.0'
make[1]: Leaving directory '/private/tmp/nix-build-JAGS-4.3.0.drv-0/JAGS-4.3.0'
post-installation fixup
gzipping man pages under /nix/store/aw897502z5bcn6dw6rp7jca90flfrjab-JAGS-4.3.0/share/man/
strip is /nix/store/vb6mgjqgd9h11nbv60fvrp1ls9nxck2y-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/aw897502z5bcn6dw6rp7jca90flfrjab-JAGS-4.3.0/lib  /nix/store/aw897502z5bcn6dw6rp7jca90flfrjab-JAGS-4.3.0/libexec  /nix/store/aw897502z5bcn6dw6rp7jca90flfrjab-JAGS-4.3.0/bin
patching script interpreter paths in /nix/store/aw897502z5bcn6dw6rp7jca90flfrjab-JAGS-4.3.0
/nix/store/aw897502z5bcn6dw6rp7jca90flfrjab-JAGS-4.3.0/bin/jags: interpreter directive changed from "/bin/sh" to "/nix/store/8hdxjv3m14jgdnawi5l0mz2h59qkk2g9-bash-4.4-p19/bin/sh"

Success on aarch64-linux (full log)
Attempted: jags
Partial log (click to expand)
shrinking /nix/store/1isri3wprsz2ix385xva7cdx8972lfms-JAGS-4.3.0/lib/JAGS/modules-4/basemod.so
shrinking /nix/store/1isri3wprsz2ix385xva7cdx8972lfms-JAGS-4.3.0/lib/libjrmath.so.0.0.0
shrinking /nix/store/1isri3wprsz2ix385xva7cdx8972lfms-JAGS-4.3.0/lib/libjags.so.4.0.3
gzipping man pages under /nix/store/1isri3wprsz2ix385xva7cdx8972lfms-JAGS-4.3.0/share/man/
strip is /nix/store/3zq400fri5dv7d30lpxlqm2v9y1iis6j-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/1isri3wprsz2ix385xva7cdx8972lfms-JAGS-4.3.0/lib  /nix/store/1isri3wprsz2ix385xva7cdx8972lfms-JAGS-4.3.0/libexec  /nix/store/1isri3wprsz2ix385xva7cdx8972lfms-JAGS-4.3.0/bin
patching script interpreter paths in /nix/store/1isri3wprsz2ix385xva7cdx8972lfms-JAGS-4.3.0
/nix/store/1isri3wprsz2ix385xva7cdx8972lfms-JAGS-4.3.0/bin/jags: interpreter directive changed from "/bin/sh" to "/nix/store/3gg2p6n4kv2f0lsxd41f5iz1ivkbzyzr-bash-4.4-p19/bin/sh"
checking for references to /build in /nix/store/1isri3wprsz2ix385xva7cdx8972lfms-JAGS-4.3.0...
/nix/store/1isri3wprsz2ix385xva7cdx8972lfms-JAGS-4.3.0


keras.models.load_model() gives error when attempting to load from keras.callbacks.ModelCheckpoint

[X] Check that you are up-to-date with the master branch of Keras. You can update with:
pip install git+git://github.com/fchollet/keras.git --upgrade --no-deps
[X] If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:
pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps
[X] Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).

Here is a short script that you can cut-and-paste which demonstrates the error in short order.
import keras
import keras.applications
import numpy as np

input = keras.layers.Input(shape=(1, 400,400))

x = keras.layers.ZeroPadding2D(padding=(56,56))(input)
x = keras.layers.AveragePooling2D(pool_size=(2,2))(x)
x = keras.layers.Flatten()(x)
x = keras.layers.RepeatVector(3)(x)
x = keras.layers.Reshape((3, 256, 256))(x)

y = keras.layers.ZeroPadding2D(padding=(56,56))(input)
y = keras.layers.AveragePooling2D(pool_size=(4,4))(y)
y = keras.layers.Flatten()(y)
y = keras.layers.RepeatVector(3)(y)
y = keras.layers.Reshape((3, 128, 128))(y)

vgg1 = keras.applications.vgg16.VGG16(include_top=False)
vgg1.trainable = False
vgg2 = keras.applications.vgg16.VGG16(include_top=False)
vgg2.trainable = False

x = vgg1(x)
y = vgg2(y)
y  = keras.layers.UpSampling2D((2,2))(y)

m = keras.layers.merge([x,y], mode='sum')
m = keras.layers.Convolution2D(64,3,3, border_mode='same', activation='relu')(m)
m = keras.layers.SpatialDropout2D(0.5)(m)
m = keras.layers.Flatten()(m)
m = keras.layers.MaxoutDense(8)(m)
m = keras.layers.Dropout(0.5)(m)
m = keras.layers.MaxoutDense(4)(m)
m = keras.layers.Dropout(0.5)(m)
m = keras.layers.Dense(2, activation='softmax')(m)

model = keras.models.Model(input, m)

model.compile(loss='categorical_crossentropy', optimizer='adadelta',metrics=['accuracy'])

checkpointer = keras.callbacks.ModelCheckpoint(filepath='model_and_weights.h5', verbose=1, save_weights_only = False, save_best_only=True)

X = np.random.random((32,1,400,400))
Y = np.zeros((32,2))
model.fit(X, Y, callbacks=[checkpointer], verbose = 2, validation_split= 0.5, nb_epoch=1)
model = None
model = keras.models.load_model('model_and_weights.h5') # Error here.

print('done')

The error I get is: builtins.Exception: Optimizer weight shape (64, 3, 3, 3) not compatible with provided weight shape (64, 512, 3, 3)

#4079 similar problem as i believe the underlying save backend is the same?

This is the same of https://github.com/fchollet/keras/issues/4044 .
weights.sort() bug of Keras 1.1

#5014 similar


[Update Request]: Process Explorer v17.06

What type of update are you requesting?
A new version of an existing package
Current Package Identifier
Microsoft.Sysinternals.ProcessExplorer
Package Version
17.06
Please describe the changes you would like to see
There is a new release (17.06) available. Download Page Url: https://learn.microsoft.com/en-us/sysinternals/downloads/process-explorer#download

I am gonna do it


New line leaves a trailing whitespace

Environment data

Language Server version: v2023.5.20
OS and version: Ubuntu 22.04.2 LTS
Python version (& distribution if applicable, e.g. Anaconda): 3.11.0

Code Snippet
class Foo:
    def bar(self):
        return "bar"

Repro Steps

Put cursor at the end of the return statement.
Press enter couple of times.

Expected behavior
Each new line should not leave a trailing whitespace. This is how it was on version v2023.4.30.

Actual behavior
First new line leaves a trailing whitespace.

Logs
Logs when hitting enter at the end of the return statement.
2023-05-12 12:02:11.380 [info] (875) [FG] parsing: /home/antontkv/temp/python_tests/pylance_bug.py (1ms)
2023-05-12 12:02:11.380 [info] (875) [FG] binding: /home/antontkv/temp/python_tests/pylance_bug.py (0ms)
2023-05-12 12:02:11.382 [info] (875) Background analysis message: setFileOpened
2023-05-12 12:02:11.382 [info] (875) Background analysis message: markFilesDirty
2023-05-12 12:02:11.427 [info] (875) Background analysis message: setFileOpened
2023-05-12 12:02:11.427 [info] (875) Background analysis message: markFilesDirty
2023-05-12 12:02:11.594 [info] (875) [FG] parsing: /home/antontkv/temp/python_tests/pylance_bug.py (0ms)
2023-05-12 12:02:11.595 [info] (875) [FG] binding: /home/antontkv/temp/python_tests/pylance_bug.py (0ms)
2023-05-12 12:02:11.676 [info] (875) Background analysis message: analyze
2023-05-12 12:02:11.677 [info] (875) [BG(1)] analyzing: /home/antontkv/temp/python_tests/pylance_bug.py ...
2023-05-12 12:02:11.677 [info] (875) [BG(1)]   parsing: /home/antontkv/temp/python_tests/pylance_bug.py (1ms)
2023-05-12 12:02:11.678 [info] (875) [BG(1)]   binding: /home/antontkv/temp/python_tests/pylance_bug.py (0ms)
2023-05-12 12:02:11.697 [info] (875) [BG(1)]   checking: /home/antontkv/temp/python_tests/pylance_bug.py (19ms)
2023-05-12 12:02:11.697 [info] (875) [BG(1)] analyzing: /home/antontkv/temp/python_tests/pylance_bug.py (20ms)
2023-05-12 12:02:11.698 [info] (875) Background analysis message: getSemanticTokens delta
2023-05-12 12:02:11.699 [info] (875) [BG(1)] getSemanticTokens delta previousResultId:1683874926862 at /home/antontkv/temp/python_tests/pylance_bug.py (1ms)
2023-05-12 12:02:11.699 [info] (875) Background analysis message: resumeAnalysis
2023-05-12 12:02:11.699 [info] (875) [BG(1)] indexing: /home/antontkv/temp/python_tests/pylance_bug.py [found 1] (0ms)
2023-05-12 12:02:11.699 [info] (875) Indexing Done: /home/antontkv/temp/python_tests/pylance_bug.py

format on type is leaving trailing whitespace.
@antontkv can you turn off  format on type until we fix the issue?
just put this in your settings.json file.
"[python]": {
        "editor.formatOnType": false
    }


Pow can't start an app, ruby process at 100% CPU

Hi,
Yesterday, out of nowhere, one of my many working rails apps, could not be started any more with Pow.
The browser was waiting for ever. I've noticed that a ruby process was started, eating all my CPU many hundreds of MB of RAM.
The exact same app can  be started with rails console, with Passenger Standalone, running ruby config/environment.rb was working, a bundle check confirmed that all the dependencies were satisfied, …
There is nothing in Pow's logs other than a GET on my app's URL., and nothing in the app's logs.
My other Rails apps are working fine with Pow.
A full system restart didn't change anything.
Any idea?
What other details can I give to help find out?
Thanks.

I've tried Pow 0.3.2 and 0.4.0-pre : same.
I've upgraded RVM to the latest, nuked my gemset and rebuild it with Bundler : same.

After more diagnosis, it doesn't seem related to Pow. Sorry for the noise.


Conflict with Keyboard AZERTY layout

Microsoft PowerToys version
0.64.1
Installation method
PowerToys auto-update
Running as admin
No
Area(s) with issue?
Keyboard Manager
Steps to reproduce
Windows 10 22H2.
Keyboard AZERTY (living in Belgium).
All alt gr keys are disable
PowerToysReport_2022-11-17-13-28-46.zip
and not functional.
This means, no @ sign , no }, no {, no brackets, no tilde sign and no # signs.
Reboot does not solve the issue.  I've copied your Settings and tried replicating, without success (not an AZERTY keyboard, though)
Does this go away if you disable Keyboard Manager in Settings? Trying to figure out if that's actually the source of it.
/needinfo

Hey Microsoft/Powertoys team,
When I disable the Keyboard Manager, all is fine ;-)
TIA,
Pierre Bodart
GSM : +32499852867
Email : @.***
On Tue, Nov 22, 2022 at 3:08 PM Jaime Bernardo @.***>
wrote:

Interestingly, you seem to have no mappings set up. I've copied your
Settings and tried replicating, without success (not an AZERTY keyboard,
though)
Does this go away if you disable Keyboard Manager in Settings? Trying to
figure out if that's actually the source of it.
/needinfo
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/PowerToys/issues/22140#issuecomment-1323734187,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASCXCCGZ4PSRNVWZKVI266DWJTHWZANCNFSM6AAAAAASDKQYFE
.
You are receiving this because you authored the thread.Message ID:
@.***>

What's your current input method when this happens? Going to try to see if that makes a difference:

/needinfo

Hey Jaime,
HEre is the info :
Windows 10 22H2
[image: image.png]
Pierre Bodart
GSM : +32499852867
Email : @.***
On Tue, Nov 22, 2022 at 7:59 PM Jaime Bernardo @.***>
wrote:

What's your current input method when this happens? Going to try to see if
that makes a difference:
[image: image]
https://user-images.githubusercontent.com/26118718/203398612-6c37647e-af73-4020-b339-683cd249934d.png
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/PowerToys/issues/22140#issuecomment-1324118008,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASCXCCEEFZYFDMSVL2ZG2ITWJUJZHANCNFSM6AAAAAASDKQYFE
.
You are receiving this because you authored the thread.Message ID:
@.***>

Hi @PierreBodart , images and attachements sent by e-mail aren't visible on GitHub. Can you please comment directly on GitHub? /needinfo

Et voilà... ;-)

@PierreBodart: I've tried to reproduce the problem with 0.81 but I'm unable to do so. The screenshot below shows me entering symbols via AltGr + Key with:

Windows Language : English (Belgium)
Keyboard Layout: Belgian (Period)
OS: Windows 10
PowerToys running as admin
PowerToys Keyboard Manager On

Could you please check if the problem still occurs for you with 0.81?

/needinfo

Hello,
Thanks for the follow up.
Running V 0.82.1
I've no more issues , all's running smoothly and fine.
You can close the issue.
Thanks for your dedication.
Pierre Bodart
Email : @.***
On Mon, Jul 22, 2024 at 3:54 PM Jaime Bernardo @.***>
wrote:

/needinfo
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/PowerToys/issues/22140#issuecomment-2243024291,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASCXCCHH2BHMRX5DBV7Q723ZNUFKLAVCNFSM6AAAAAASDKQYFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBTGAZDIMRZGE
.
You are receiving this because you were mentioned.Message ID:
@.***>


[Question]:

I created a sample for the device_info_plus package with the help of the example code snippet provided on pub.dev. However, I am encountering the following exception when running the sample on the Android platform. For your reference, I have attached a sample to replicate the issue on your end. It can be downloaded from the attachment.
Exception Details:

Flutter Doctor log:

Package Version
device_info_plus: ^9.0.2
device_info_plus.zip
Checklist before submitting a question

[ ] I Google'd a solution and I couldn't find it
[ ] I searched on StackOverflow for a solution and I couldn't find it
[ ] I read the README.md file of the plugin
[X] I am using the latest version of the plugin
[X] All dependencies are up to date with flutter pub upgrade
[X] I did a flutter clean
[X] I tried running the example project

Your project has minSDK for Android set to 16. device_info_plus requires at least 19 and aligns with min Android SDK supported by Flutter.

what should ios minSdk  ?


Update noUiSlider

Currently version ^10.1.0 is required, but the latest version is in the 14.x range.
As far as I can tell from my tests, with the adapter works fine with 14.0.2 as well.

Updated via the https://github.com/surveyjs/widgets/commit/a4c2a578a55f3724ae67eed54b0f36724feeb06b commit


fix: make cidr optional attribute

Description
cidr attribute is never used in the root module. Also when we use the data block to fetch vpc details the data.ibm_is_vpc.vpc_by_id.subnets  it doesn't contain cidr blocks of the subnets, so it would fail with cidr attribute being mandatory.
Release required?

[ ] No release
[x] Patch release (x.x.X)
[ ] Minor release (x.X.x)
[ ] Major release (X.x.x)

Release notes content

Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
/run pipeline

Checklist for reviewers

[ ] If relevant, a test for the change is included or updated with this PR.
[ ] If relevant, documentation for the change is included or updated with this PR.

Merge actions for mergers

When merging, use a relevant conventional commit message that is based on the PR contents and any release notes provided by the PR author. The commit message determines whether a new version of the module is needed, and if so, which semver increment to use (major, minor, or patch).
Merge by using "Squash and merge".

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


Remove slow review label after processing commands to avoid race

Right now, when we process a command, if that command changes the label set we have the potential to overwrite earlier label changes. This is generally not a problem, but when we've already removed the slow-review label it can add it back. This can lead to cases like https://github.com/apache/beam/pull/23984#issuecomment-1362984438 where we assign new reviewers by mistake.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

R: @AnandInguva


[Event Request] Codeunit 99000774 "Calculate Routing Line" – New Event “OnBeforeCalcRoutingLineBack”

Hi
Could we please have a new publisher “OnBeforeCalcRoutingLineBack” in Function “CalcRoutingLineBack” in Codeunit 99000774 "Calculate Routing Line”, including a IsHandled pattern?
local procedure CalcRoutingLineBack(CalculateEndDate: Boolean)
var
    ProdOrderRoutingLine2: Record "Prod. Order Routing Line";
    ProdOrderRoutingLine3: Record "Prod. Order Routing Line";
    ConstrainedCapacity: Record "Capacity Constrained Resource";
    ParentWorkCenter: Record "Capacity Constrained Resource";
    TmpProdOrderRtngLine: Record "Prod. Order Routing Line" temporary;
    SendAheadLotSize: Decimal;
    ParentIsConstrained: Boolean;
    ResourceIsConstrained: Boolean;
    // Start new Code
    IsHandled: Boolean;
    // End new Code
begin
    // Start new Code
    IsHandled := false;
    OnBeforeCalcRoutingLineBack(ProdOrderRoutingLine, CalculateEndDate, IsHandled);
    if IsHandled then
        exit;
    // End new Code

    CalendarEntry.SetRange(Date, 0D, ProdOrderRoutingLine."Ending Date");

    ProdEndingTime := ProdOrderRoutingLine."Ending Time";
    ProdEndingDate := ProdOrderRoutingLine."Ending Date";
    ProdStartingTime := ProdOrderRoutingLine."Ending Time";
    ProdStartingDate := ProdOrderRoutingLine."Ending Date";

    FirstEntry := true;
    ...

// Start new Code
[IntegrationEvent(false, false)]
local procedure OnBeforeCalcRoutingLineBack(var ProdOrderRoutingLine: Record "Prod. Order Routing Line"; CalculateEndDate: Boolean; var IsHandled: Boolean)
begin
end;
// End new Code

Thanks, Anders

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Show incorrect transferable balance of the Origin Account in case change token

Description the bug
Show incorrect transferable balance of the Origin Account in case change token
To reproduce the bug
Steps:

Go to the XCM transfer screen
Input Origin Chain = Substrate Chain, Destination Chain = EVM Chain (Ex: Acala --> Moonbeam)
Input Origin Account and Destination Account
Change token from ACA (Transferable > 0) to aUSD then change from aUSD to ACA
Observe the transferable of the origin account displayed

Actual:  Show incorrect transferable balance of the Origin Account

Expected: Show correct information

Resolved this issue in v1.0.3


  Status code 503 not in range range(Range(0..<500)) ===
2024-10-26T09:19:50+0200 debug xcodeinstall : [xcodeinstall] URLResponse : <NSHTTPURLResponse: 0x600000c62260> { URL: https://idmsa.apple.com/appleauth/auth/signin } { Status Code: 503, Headers {
    Connection =     (
        "keep-alive"
    );
    "Content-Length" =     (
        190
    );
    "Content-Type" =     (
        "text/html"
    );
    Date =     (
        "Sat, 26 Oct 2024 07:19:50 GMT"
    );
    Server =     (
        Apple
    );
} }
🛑 Unexpected Error : Error Domain=NSURLErrorDomain Code=-1011 "(null)"

Others CLI tools are impacted as well
fastlane : https://github.com/fastlane/fastlane/pull/26415
xcodes : https://github.com/XcodesOrg/xcodes/issues/388

https://blog.uniauth.com/what-is-secure-remote-password
https://github.com/fastlane/fastlane/pull/26415

https://blog.uniauth.com/what-is-secure-remote-password
fastlane/fastlane#26415
https://github.com/adam-fowler/swift-srp

@sebsto  so do we need to merge https://github.com/fastlane/fastlane/pull/26415 to this repo? auth is broken for me as well I get exact same error as OP

@ugenlik Fastlane is written in Ruby. Their code can not be reused here.
I found the solution. I still need to cleanup a bit my code, do more tests and I will be able to release a fix this week

Fixed.
You can brew update to fetch v0.9
Huge thanks to @adam-fowler for having written Swift-SRP lib (and patching it https://github.com/adam-fowler/swift-srp/pull/14 to work with Apple's SRP)

Amazing, it works, thank you @sebsto  for quick resolution


It's not obvious when you click "Add to Favs" that it's actually added

the button doesn't go away....so the user isn't sure if the action took place.
Could that button simply be a Star?  I guess then you would have to have a state for it by cross referencing the list with the favs...

Ah. You are right. Not sure how to really handle that. Just close the box?

Yeah...if the box went away, ti would be good enough.  What do yo think about the "star" idea?

Its better. And doable
About 1.5 hours I think

I would think that would be a better experience...can get a star icon for cheap, I'm sure.

There is one here: Font-awesome. http://fortawesome.github.io/Font-Awesome/icons/

If you did that, I guess you would have to have the ability to Unstar anywhere the contact shows up....unstarring in the Favs list would make it go away from the favs list

Yeah. I included that in my 1.5 hours. Its a pretty standard feature. Ill tackle that next. The add to favs popup is ugly.

That way when we add google stored favs, it will be the same interface


full: add git to image

Signed-off-by: Rubens Figueiredo<EMAIL_ADDRESS>

Build tested, and cloned bisdn/basebox into a switch.


Handling missing data-hash

Clear and concise description of the problem
When there are only some slides with a data-hash, getting to one without it will put a #null in the URL.  The effect on user interaction is harmless, but for people who'd pay attention to the URL it looks like a bug, and it's also a likely bug on the slideshow author's side.
(This is indirectly related to #6789 -- sorry about the noise there, I somehow messed things up with running into a problem that was probably solved in 69acab4.)
Suggested solution
It would be better if such slides would just drop the #null from the URL, which IIUC, would make the overall interaction the same.
Alternative
Alternatively, it could assign an ordered integer to these slides, or a hash based on the slide contents.  This would have the added benefit of making hashNavigation: true work immediately without adding the data attributes to slides.
(It's easy to just add document.querySelectorAll("div.swiper-slide").forEach((d, n) => d.dataset.hash = n + 1);, but why not make it possible to do so automatically...?)
Additional context
No response
Validations

[X] Follow our Code of Conduct
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Would you like to open a PR for this feature?

[X] I'm willing to open a PR

Why do we need to support when it missing, data-hash is a requirement for it work. You can add data hashes on your side with JS


Reweigh food

Modify the weight of all foods to more realistic values, balanced such that carrying several days worth of food is a committed investment of inventory space, in order to drive the player more towards on-site acquisition, hunting, fishing, buying, stealing, etc.

Reweighing of vanilla food complete, still analyzing balance in spreadsheet. Can't see the full picture yet of how weight reduces / expands after cooking components and how the hunger reduction efficiency changes (efficiency = points per pound).

Reweigh Venison / Venison Chop to 3.0

Reweigh Sliced Goat Cheese to 10.0


Any specific reason to start and stop the server on each test

This is more of general question I have in mind when using supertest. I am just curious to know why close the server after each test?
The only reason I can think of is
To keep the supertest flexible enough that each test can use different HTTP server by passing it to supertest(server) method.
Thanks 😄

Closing since there is no activity

Interested to hear this. I see some tests calling server.close() in afterEach() {..} block and some don't. Wondering what's the correct way.


Optional callbacks - provide dummy Inputs

From @ConorMesser:

Getting a weird error when trying to run PhylogicReviewer:
In the callback for output(s):
  APP-cluster_annotation-TextAnnotationDisplay-input-state.value@d41d8cd98f00b204e9800998ecf8427e
  APP-To-Do-TextAnnotationDisplay-input-state.value@d41d8cd98f00b204e9800998ecf8427e
  APP-Urgency-RadioitemAnnotationDisplay-input-state.value@d41d8cd98f00b204e9800998ecf8427e
  APP-selected_tree_idx-NumberAnnotationDisplay-input-state.value@d41d8cd98f00b204e9800998ecf8427e
  APP-selected_tree-TextAnnotationDisplay-input-state.value@d41d8cd98f00b204e9800998ecf8427e
  APP-notes-TextAreaAnnotationDisplay-input-state.value@d41d8cd98f00b204e9800998ecf8427e
there are no `Input` elements.
Without `Input` elements, it will never get called.

Subscribing to `Input` components will cause the
callback to be called whenever their values change.

This is how I am setting up my Reviewer:
reviewer = PhylogicReviewer()

reviewer.set_review_data(
    # Enter the file path where you would like your pkl file of your review data to be stored
    # data_pkl_fn='/Users/cmesser/Documents/Projects/ibm-gbm/results/2023-01-30_phylogic-review/phylogic_review_general.pkl',
    data_pkl_fn='./phylogic_review_general_TEST.pkl',
    # Breifly describe the source of your data and its purpose
    description='Phylogic review, specifically of highly mutated participants',
    # Enter the file path to your data to be reviewed
    participant_df=participant_df,
    sample_df=sample_df,
)

reviewer.set_review_app(drivers_fn='/Users/cmesser/Documents/Projects/ibm-gbm/data/2022-01-18_driver-genes/gbm_drivers_sigPortal_and_bryanICB.txt')

reviewer.set_default_review_data_annotations_configuration()
reviewer.set_default_autofill()

Newest version of AnnoMate was refactored to take advantage of dash-2-9-2 new option to have multiple callbacks target the same output (announcement here).
Some reviewers do not have any default autofill buttons, so there is no Input() to the callback.
https://github.com/getzlab/AnnoMate/blob/aecb584c4c42cf2975062b645ce13f34f2e4bf56/AnnoMate/ReviewDataApp.py#L509-L522
One option is to provide an invisible dummy input if there are no autofill_buttons.

Commit: 3904fb5037db46a56ab2d0bad910d31d3cce49b2


Tooltip not working on the reference gallery (Area Chart)

I see that tooltip has missing values in the reference example for area chart.
example:
https://hvplot.holoviz.org/reference/tabular/area.html

Thanks for the report. It's an upstream issue so I'll be closing this. https://github.com/holoviz/holoviews/issues/5375


Error when handling **kwargs parameters

Describe the bug
I get the following error when I document **kwargs parameter in my docstring with the two **.
line 216, in read_parameters_section
    signature_param = self.signature.parameters[name]
KeyError: '**kwargs'

To Reproduce
def function(a, **kwargs):
    """
    Args:
        a: a parameter.
        **kwargs: kwarg parameters
    """
    return None

Information (please complete the following information):

OS: Debian
mkdocstrings version: [0.7.0]

Additional context
This seems to come from the inspect module as inspect.signature(function).parameters would return:
mappingproxy({'a': <Parameter "a">, 'kwargs': <Parameter "**kwargs">})

and the **kwargs key is not present but kwargs is.

Can I help with something?
The signature_param = self.signature.parameters[name] to signature_param = self.signature.parameters[name.lstrip("*")] fix the bug.

Of course, you can open a PR with this fix if you want!

Fixed in #21


FR GetCustomModel implementation

It also includes changes for #11238 and #11230

FYI @kristapratico in case you want to change your docstrings too, I was using the ones from Python and Anne suggested various changes to them


Component model support

I guess we can go ahead and close this, or is there something you meant by this and that we're still missing, @itowlson?

This is not a me issue I was just the one who transferred it from the Spin 2 project board.
You are a better judge than me of whether this is complete.  I have a boatload of questions but I am guessing they are documentation/understanding rather than any lack of "support."

Ah, that makes sense, thank you! And yeah, we certainly have a lot of things to work through, but we should track those in a more specific way, so I'll go ahead and close this.


remap not work

map https://europe.123.com/ http://<IP_ADDRESS>:80/
map https://europe.123.com/ http://<IP_ADDRESS>:80/
This configuration of multiple origin stations does not work,How to configure multiple back-to-source servers？

Apache Traffic Server - 10.0.0

The newer strategies.yaml
https://docs.trafficserver.apache.org/en/latest/admin-guide/files/strategies.yaml.en.html
and older parent.config
https://docs.trafficserver.apache.org/en/latest/admin-guide/files/parent.config.en.html
are ATS' mechanism for load balancing

hosts:

&p1
host: europe.123.com
protocol:

scheme: http
port: 80
health_check_url: http://<IP_ADDRESS>:80:80
scheme: http
port: 80
health_check_url: http://<IP_ADDRESS>:80:80
strategies.yaml  configured like this？
parent.config No health check

Can you give me a simple example with strategies.yaml?

I don't understand   hosts match the domain name

There are examples for strategies.yaml in the ATS documentation:  https://docs.trafficserver.apache.org/admin-guide/files/strategies.yaml.en.html .
There are Au tests for strategies:  https://github.com/apache/trafficserver/tree/master/tests/gold_tests/next_hop

Yes, the problem is still there, we haven't solved it yet

How far did you get looking at the documentation and the Au tests?

@taojishou can we close this, are you still having problems?

I'm going to close this, please reopen if you're still having the problem.


[WM-1984] Allow import method for either raw or original github WDL links

how does storing the original github link vs raw make it easier to detect version control changes as described in WM-1981?

That's a good question -- I didn't even realize that detecting version control changes was a motivating factor for this feature. Let's bring it to tech talk.

will this change make it so that the original (non-raw) link is always sent in place of a raw link, or does it only mean that the link that the user enters gets sent regardless of whether it is raw/original?

It only means that the link that the user enters will be sent regardless of the format


Redo in in custom editor inserts cells in the reverse order

Add 4 cells with numbers 1,2,3,4 respectively.
Execute cells (not sure this is required)
Go to last cell and undo
Yay it works (only one cell left)
Redo and now we have cells in the reverse order 4,3,2,1

On a positive note, the output is preserved when using redo.


More indexes in code 1, 40 and 290

I have a dxf in which I have::

1 index  code 1 more
1 index code 40 more
2 indexes code 290 more

I am sending you the DXF file in private because I cannot publish it here.
Regards,
Davide

The problem isn't in 0.8.3; I found it with the latest sources updates I downloaded ...

Short Version
I've found the issue and will start working on it now.
Extra Code 290
Thank you for pointing this out.  Turns out the spec has different layouts under subclass marker AcDbRenderSettings as specified in code 90.  The spec for MENTALRAYRENDERSETTINGS (which is the object type specified in your sample file) explicitly lists class version 1 (row 7 in that table), but the file you sent me specifies class version 2 (line 347630, if you open it in a text editor), and the order of the codes just happens to match the AcDbRenderSettings listed in object RAPIDRTRENDERSETTINGS.  I'll work on fixing the reader for AcDbRenderSettings to handle the different class version numbers.
Extra Code 1
This problem appears to come from the code 290 issue above; version 2 of AcDbRenderSettings has an extra code 1 value which messes up the subsequent count.  This should be fixed when I fix the code 290/class version 2 problem.
Extra Code 40
The object in the file you sent me has 2 code pairs at the very end that the spec doesn't account for: 290, and 40.  I'll adjust the reader to allow these unknown fields to exist so the file can be read.

Fixed in main.


Deptry not analyzing [tool.poetry.group.dev.dependencies] deps

First off thanks for this really great and useful tool, it's been easy to use and valuable.
I'm not sure this is a bug, however reading through the documentation leads me to believe it may be.
Basically, what I'm seeing is that deptry doesn't seem to care what is specified under [tool.poetry.group.dev.dependencies] in pyproject.toml. This is the pyroject.toml I am using (with some truncation):
[tool.poetry]
...

[[tool.poetry.source]]
...

[[tool.poetry.source]]
...

[tool.poetry.dependencies]
python = "~3.10"
boto3 = "^1.26.76"
delta-spark = "2.4.0"
pyspark = "3.4.1"
nbformat = ">=5.0"
jupyter = "^1.0.0"
nbconvert = "^7.8.0"
bokeh = "^2.0.0"
databricks-sdk = "^0.10.0"
scikit-learn = "^1.3.2"
catboost = "^1.2.2"
lightgbm = "^4.1.0"
pyyaml = "^6.0.1"
s3fs = "^2023.12.1"
datasketches = "^4.1.0"
pytz = "2024.1"
numpy = "^1.26.4"
pandas = "^1.5.3"
statsmodels = "^0.14"
ipython = "^8.21.0"
scipy = "^1.13.0"
matplotlib = "^3.8.4"
botocore = "^1.34.69"

[tool.poetry.group.dev.dependencies]
black = "23.1.0"
cruft = "^2.10.2"
deptry = "^0.16.1"
flake8 = "6.1.0"
mypy = "^1.1.1"
pre-commit = "^3.1.1"
pytest = "^7.2.2"
pytest-cov = "^4.0.0"
pytest-sugar = "^0.9.6"
pyspark-test = "^0.2.0"
pytest-xdist = "^3.2.1"
pytest-mock = "3.8.2"
pytest-profiling = "^1.7.0"
freezegun = "^1.5.0"
types-six = "^<IP_ADDRESS>"
types-python-dateutil = "^<IP_ADDRESS>"
types-pyyaml = "^<IP_ADDRESS>"
types-pytz = "^2<IP_ADDRESS>40417"

[tool.poetry-dynamic-versioning]
enable = true
style = 'pep440'

[build-system]
requires = ["poetry-core>=1.1.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"

[tool.black]
line-length = 140
skip-string-normalization = true
target_version = ['py39']

[tool.mypy]
files = 'pyspark_data_science_jobs'
python_version = '3.10'
check_untyped_defs = false
warn_incomplete_stub = true
follow_imports = 'silent'
ignore_missing_imports = true
mypy_path = 'stubs'
implicit_optional = true
exclude = [
    '.*/closed_loop/doc/.*'
]

[tool.pytest.ini_options]
minversion = "7.0"
log_cli = false
log_cli_level = "ERROR"
console_output_style = "progress"
addopts = "--cov --maxfail=2 -n 4 --durations=10"
testpaths = ["tests"]

[tool.cruft]
skip = [".git"]

[tool.deptry.per_rule_ignores]
DEP002 = ["delta-spark", "jupyter"]

When running poetry run deptry .  the dependencies under [tool.poetry.group.dev.dependencies] aren't analyzed, even though some deps are unused.
Expected behavior
Is this expected? I feel like the tool should be flagging unused deps in this case.
System [please complete the following information]:

OS: MacOS 14.4.1 (Ventura) and Ubuntu 20.04
Language Version: Python 3.10
Poetry version: 1.5.1

Hi, this is the expected behaviour. In most situations, developement dependencies are not meant to be used in "production" code, but instead could be used during testing (for instance pytest), or invoked as CLIs (for instance mypy). As noted in https://deptry.com/usage/#excluding-files-and-directories, deptry will try its best to exclude non-production files by default (e.g. test files). So it would not be reliable for deptry to guess if a development dependency is indeed used or not, especially for the ones invoked as CLIs.
Reading the documentation for DEP002 though, we don't explicitly mention that development dependencies are not considered for this check, so maybe we can add a small note about that.

@mkniewallner thanks for the explanation here, that does make sense. I do think a brief mention of this in the docs could be helpful, even if this is probably obvious to some devs.