DINO evaluation on custom dataset crushes

When fine-tuning with following config:
import datetime
from detrex.config import get_config
from .models.dino_swin_large_384 import model

# number of classes
model.num_classes = 1

# get default config
dataloader = get_config("common/data/coco_detr_graffiti.py").dataloader
optimizer = get_config("common/optim.py").AdamW
lr_multiplier = get_config("common/coco_schedule.py").lr_multiplier_12ep
train = get_config("common/train.py").train

# modify training config
train.init_checkpoint = "./projects/dino/dino_swin_large_4scale_12ep.pth"
train.output_dir = "./output/graffiti_dino/satellit" + datetime.datetime.now().strftime("%d%m_%H%M")

# max training iterations
train.max_iter = 50000

# run evaluation every n iters
train.eval_period = 100000  # FYI evaluatilon crashes! TODO fix

# log training infomation every 20 iters
train.log_period = 20

# save checkpoint every n iters
train.checkpointer.period = 9999

# gradient clipping for training
train.clip_grad.enabled = True
train.clip_grad.params.max_norm = 0.1
train.clip_grad.params.norm_type = 2

# set training devices
train.device = "cuda" # or "cuda:1" or "cpu"
model.device = train.device

# modify optimizer config
optimizer.lr = 1e-4
optimizer.betas = (0.9, 0.999)
optimizer.weight_decay = 1e-4
optimizer.params.lr_factor_func = lambda module_name: 0.1 if "backbone" in module_name else 1

# modify dataloader config
dataloader.train.num_workers = 2
dataloader.train.dataset.filter_empty = False

# please notice that this is total batch size
# surpose you're using 4 gpus for training and the batch size for
# each gpu is 16/4 = 4
dataloader.train.total_batch_size = 2

# data
dataloader.train.dataset.names = 'graffiti_train'
dataloader.test.dataset.names = 'graffiti_test'
dataloader.evaluator.dataset_name = 'graffiti_val'

# dump the testing results into output_dir for visualization
dataloader.evaluator.output_dir = train.output_dir

I'm getting an exception:
[32m[12/11 10:28:13 d2.utils.events]:  eta: 20:01:48  iter: 79  total_loss: 11.8  loss_class: 0.3539  loss_bbox: 0.1169  loss_giou: 0.3934  loss_class_0: 0.5056  loss_bbox_0: 0.1242  loss_giou_0: 0.4234  loss_class_1: 0.5262  loss_bbox_1: 0.09443  loss_giou_1: 0.3764  loss_class_2: 0.409  loss_bbox_2: 0.111  loss_giou_2: 0.3898  loss_class_3: 0.3466  loss_bbox_3: 0.1062  loss_giou_3: 0.3604  loss_class_4: 0.3582  loss_bbox_4: 0.1168  loss_giou_4: 0.3903  loss_class_enc: 0.6693  loss_bbox_enc: 0.147  loss_giou_enc: 0.5353  loss_class_dn: 0.01112  loss_bbox_dn: 0.1165  loss_giou_dn: 0.4171  loss_class_dn_0: 0.1569  loss_bbox_dn_0: 0.219  loss_giou_dn_0: 0.6382  loss_class_dn_1: 0.03851  loss_bbox_dn_1: 0.1345  loss_giou_dn_1: 0.4488  loss_class_dn_2: 0.02079  loss_bbox_dn_2: 0.1128  loss_giou_dn_2: 0.407  loss_class_dn_3: 0.01118  loss_bbox_dn_3: 0.1179  loss_giou_dn_3: 0.4205  loss_class_dn_4: 0.008087  loss_bbox_dn_4: 0.1166  loss_giou_dn_4: 0.4164  time: 1.3978  data_time: 0.0050  lr: 0.0001  max_mem: 35711M
[12/11 10:28:40 d2.data.datasets.coco]: Loaded 37 images in COCO format from /home/jovyan/data/kamila/data/satellit/splitted/test/annotations/instances_default.json
[12/11 10:28:40 d2.data.build]: Distribution of instances among all 1 categories:
|  category  | #instances   |
|:----------:|:-------------|
|  graffiti  | 91           |
|            |              |
[12/11 10:28:40 d2.data.common]: Serializing 37 elements to byte tensors and concatenating them all ...
[12/11 10:28:40 d2.data.common]: Serialized dataset takes 0.09 MiB
[12/11 10:28:40 d2.evaluation.evaluator]: Start inference on 37 batches
[12/11 10:28:43 d2.evaluation.evaluator]: Inference done 11/37. Dataloading: 0.0010 s/iter. Inference: 0.2747 s/iter. Eval: 0.0006 s/iter. Total: 0.2763 s/iter. ETA=0:00:07
[12/11 10:28:49 d2.evaluation.evaluator]: Inference done 30/37. Dataloading: 0.0013 s/iter. Inference: 0.2739 s/iter. Eval: 0.0005 s/iter. Total: 0.2757 s/iter. ETA=0:00:01
[12/11 10:28:51 d2.evaluation.evaluator]: Total inference time: 0:00:08.947697 (0.279616 s / iter per device, on 1 devices)
[12/11 10:28:51 d2.evaluation.evaluator]: Total inference pure compute time: 0:00:08 (0.273675 s / iter per device, on 1 devices)
[12/11 10:28:51 d2.evaluation.coco_evaluation]: Preparing results for COCO format ...
[12/11 10:28:51 d2.evaluation.coco_evaluation]: Saving results to ./output/graffiti_dino/satellit1112_1026/coco_instances_results.json
[12/11 10:28:51 d2.evaluation.coco_evaluation]: Evaluating predictions with unofficial COCO API...
Loading and preparing results...
ERROR [12/11 10:28:51 d2.engine.train_loop]: Exception during training:
Traceback (most recent call last):
  File "/home/jovyan/data/kamila/detrex/detectron2/detectron2/engine/train_loop.py", line 150, in train
    self.after_step()
  File "/home/jovyan/data/kamila/detrex/detectron2/detectron2/engine/train_loop.py", line 180, in after_step
    h.after_step()
  File "/home/jovyan/data/kamila/detrex/detectron2/detectron2/engine/hooks.py", line 555, in after_step
    self._do_eval()
  File "/home/jovyan/data/kamila/detrex/detectron2/detectron2/engine/hooks.py", line 528, in _do_eval
    results = self._func()
  File "tools/train_net_satellit_graffiti.py", line 194, in <lambda>
    hooks.EvalHook(cfg.train.eval_period, lambda: do_test(cfg, model)),
  File "tools/train_net_satellit_graffiti.py", line 135, in do_test
    ret = inference_on_dataset(
  File "/home/jovyan/data/kamila/detrex/detectron2/detectron2/evaluation/evaluator.py", line 204, in inference_on_dataset
    results = evaluator.evaluate()
  File "/home/jovyan/data/kamila/detrex/detectron2/detectron2/evaluation/coco_evaluation.py", line 206, in evaluate
    self._eval_predictions(predictions, img_ids=img_ids)
  File "/home/jovyan/data/kamila/detrex/detectron2/detectron2/evaluation/coco_evaluation.py", line 266, in _eval_predictions
    _evaluate_predictions_on_coco(
  File "/home/jovyan/data/kamila/detrex/detectron2/detectron2/evaluation/coco_evaluation.py", line 590, in _evaluate_predictions_on_coco
    coco_dt = coco_gt.loadRes(coco_results)
  File "/opt/conda/lib/python3.8/site-packages/pycocotools/coco.py", line 327, in loadRes
    assert set(annsImgIds) == (set(annsImgIds) & set(self.getImgIds())), \
AssertionError: Results do not correspond to current coco set
[12/11 10:28:51 d2.engine.hooks]: Overall training speed: 97 iterations in 0:02:16 (1.4051 s / it)
[12/11 10:28:51 d2.engine.hooks]: Total training time: 0:02:27 (0:00:11 on hooks)
[12/11 10:28:51 d2.utils.events]:  eta: 20:00:31  iter: 99  total_loss: 8.968  loss_class: 0.3145  loss_bbox: 0.07012  loss_giou: 0.3334  loss_class_0: 0.4652  loss_bbox_0: 0.08328  loss_giou_0: 0.3327  loss_class_1: 0.5017  loss_bbox_1: 0.06474  loss_giou_1: 0.2563  loss_class_2: 0.3895  loss_bbox_2: 0.07384  loss_giou_2: 0.3273  loss_class_3: 0.3095  loss_bbox_3: 0.06951  loss_giou_3: 0.329  loss_class_4: 0.3126  loss_bbox_4: 0.07025  loss_giou_4: 0.3316  loss_class_enc: 0.5665  loss_bbox_enc: 0.1357  loss_giou_enc: 0.4332  loss_class_dn: 0.002992  loss_bbox_dn: 0.07017  loss_giou_dn: 0.3381  loss_class_dn_0: 0.1288  loss_bbox_dn_0: 0.1546  loss_giou_dn_0: 0.5158  loss_class_dn_1: 0.02353  loss_bbox_dn_1: 0.08345  loss_giou_dn_1: 0.3674  loss_class_dn_2: 0.01641  loss_bbox_dn_2: 0.07573  loss_giou_dn_2: 0.3332  loss_class_dn_3: 0.009212  loss_bbox_dn_3: 0.07121  loss_giou_dn_3: 0.3396  loss_class_dn_4: 0.00324  loss_bbox_dn_4: 0.07031  loss_giou_dn_4: 0.3378  time: 1.3907  data_time: 0.0049  lr: 0.0001  max_mem: 35711M
Traceback (most recent call last):
  File "tools/train_net_satellit_graffiti.py", line 232, in <module>
    launch(
  File "/home/jovyan/data/kamila/detrex/detectron2/detectron2/engine/launch.py", line 82, in launch
    main_func(*args)
  File "tools/train_net_satellit_graffiti.py", line 227, in main
    do_train(args, cfg)
  File "tools/train_net_satellit_graffiti.py", line 211, in do_train
    trainer.train(start_iter, cfg.train.max_iter)
  File "/home/jovyan/data/kamila/detrex/detectron2/detectron2/engine/train_loop.py", line 150, in train
    self.after_step()
  File "/home/jovyan/data/kamila/detrex/detectron2/detectron2/engine/train_loop.py", line 180, in after_step
    h.after_step()
  File "/home/jovyan/data/kamila/detrex/detectron2/detectron2/engine/hooks.py", line 555, in after_step
    self._do_eval()
  File "/home/jovyan/data/kamila/detrex/detectron2/detectron2/engine/hooks.py", line 528, in _do_eval
    results = self._func()
  File "tools/train_net_satellit_graffiti.py", line 194, in <lambda>
    hooks.EvalHook(cfg.train.eval_period, lambda: do_test(cfg, model)),
  File "tools/train_net_satellit_graffiti.py", line 135, in do_test
    ret = inference_on_dataset(
  File "/home/jovyan/data/kamila/detrex/detectron2/detectron2/evaluation/evaluator.py", line 204, in inference_on_dataset
    results = evaluator.evaluate()
  File "/home/jovyan/data/kamila/detrex/detectron2/detectron2/evaluation/coco_evaluation.py", line 206, in evaluate
    self._eval_predictions(predictions, img_ids=img_ids)
  File "/home/jovyan/data/kamila/detrex/detectron2/detectron2/evaluation/coco_evaluation.py", line 266, in _eval_predictions
    _evaluate_predictions_on_coco(
  File "/home/jovyan/data/kamila/detrex/detectron2/detectron2/evaluation/coco_evaluation.py", line 590, in _evaluate_predictions_on_coco
    coco_dt = coco_gt.loadRes(coco_results)
  File "/opt/conda/lib/python3.8/site-packages/pycocotools/coco.py", line 327, in loadRes
    assert set(annsImgIds) == (set(annsImgIds) & set(self.getImgIds())), \
AssertionError: Results do not correspond to current coco set

Do you evaluate the COCO pre-trained models on your custom dataset? You need to train a new model for your dataset.

@SlongLiu I'm not evaluating, I'm training your pre-trained weights on a custom class with train_net.py

@SlongLiu any updates? were you able to reproduce the issue?

As I do not know the custom dataset you used. I cannot reproduce the error.
However, the error is raise by cocoapi, where there are some similar problems in other projects which may be helpful.
https://github.com/facebookresearch/detectron2/issues/1570
https://github.com/cocodataset/cocoapi/issues/497
One possible reasons: https://github.com/facebookresearch/detectron2/issues/1570#issuecomment-641002199

If your data loading function get_kaist_dicts does not return the same data each time (seems to be the case in your code), the predicted image ids will not match the original image ids.

@SlongLiu it does not matter what custom dataset you use as far as it stays custom and not COCO in order to reproduce the error.
Also, I do not understand why are you hinting at somebody else's code, I do not have a function get_kaist_dicts

We did not meet the problem in our other custom datasets.
You seem to have other costume codes, such as the coco_detr_graffiti.py file, which blocks us from reproducing it.
I do not think the problem is caused by our project, as our custom dataset design inherits from detectron2. Hence, I suggest you refer to other similar issues in the project, which may be helpful.

@SlongLiu the custom code in coco_detr_graffiti.py is not altering anything, the issue is reproducible with coco_detr.py as well. I just tried it and I'm getting the exact same error

Thanks for the question, I will check it out soon.
Could you provide more details about the commands you used? As well as other modified codes if there are.

Thanks for the details.
I tested the model with the modification you provided. I find you still infer models on your custom dataset in your latest experiments. Although changing the line dataloader = get_config("common/data/coco_detr.py").dataloader, lines 57-59 in the config file specify the used dataset to your custom dataset.
The lines 57-59:
dataloader.train.dataset.names = 'graffiti_train'
dataloader.test.dataset.names = 'graffiti_test'
dataloader.evaluator.dataset_name = 'graffiti_val'

When I direct ran the shell you provided, it raised an error:
Traceback (most recent call last):
  File "tools/train_net_satellit_graffiti.py", line 262, in <module>
    args=(args,),
  File "/home/liushilong/code/maskdino_raw/detectron2/detectron2/engine/launch.py", line 82, in launch
    main_func(*args)
  File "tools/train_net_satellit_graffiti.py", line 249, in main
    print(do_test(cfg, model))
  File "tools/train_net_satellit_graffiti.py", line 136, in do_test
    model, instantiate(cfg.dataloader.test), instantiate(cfg.dataloader.evaluator)
  File "/home/liushilong/code/maskdino_raw/detectron2/detectron2/config/instantiate.py", line 67, in instantiate
    cfg = {k: instantiate(v) for k, v in cfg.items()}
  File "/home/liushilong/code/maskdino_raw/detectron2/detectron2/config/instantiate.py", line 67, in <dictcomp>
    cfg = {k: instantiate(v) for k, v in cfg.items()}
  File "/home/liushilong/code/maskdino_raw/detectron2/detectron2/config/instantiate.py", line 83, in instantiate
    return cls(**cfg)
  File "/home/liushilong/code/maskdino_raw/detectron2/detectron2/data/build.py", line 241, in get_detection_dataset_dicts
    dataset_dicts = [DatasetCatalog.get(dataset_name) for dataset_name in names]
  File "/home/liushilong/code/maskdino_raw/detectron2/detectron2/data/build.py", line 241, in <listcomp>
    dataset_dicts = [DatasetCatalog.get(dataset_name) for dataset_name in names]
  File "/home/liushilong/code/maskdino_raw/detectron2/detectron2/data/catalog.py", line 58, in get
    return f()
  File "/home/liushilong/code/maskdino_raw/detectron2/detectron2/data/datasets/coco.py", line 500, in <lambda>
    DatasetCatalog.register(name, lambda: load_coco_json(json_file, image_root, name))
  File "/home/liushilong/code/maskdino_raw/detectron2/detectron2/data/datasets/coco.py", line 69, in load_coco_json
    coco_api = COCO(json_file)
  File "/home/liushilong/anaconda3/envs/q2x/lib/python3.7/site-packages/pycocotools/coco.py", line 84, in __init__
    with open(annotation_file, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/jovyan/data/kamila/data/test/annotations/instances_default.json'

It means the code still runs on your custom dataset. (The dataset registration process ran successfully.)
When annotating the lines 57-59, the inference runs successfully on COCO without any error.
I suggest stepping into the error lines, i.e.,
  File "/opt/conda/lib/python3.8/site-packages/pycocotools/coco.py", line 327, in loadRes
    assert set(annsImgIds) == (set(annsImgIds) & set(self.getImgIds())), \

to compare the difference between the ground truth ids and model-predicted ids.

@SlongLiu It is pretty obvious my code crushes if you run it, because you don't have the data I have. This is what error FileNotFoundError: [Errno 2] No such file or directory: '/home/jovyan/data/kamila/data/test/annotations/instances_default.json' means, it is because this file is located on my computer and not yours.
Let me now repeat myself.
What I want to do: I want to use your pre-trained weights to fine-tune them on my custom data with one class 'graffiti'. I do not want to evaluate a trained model, and I do not want to run inference on COCO. I want to see the evaluation of the model during the training every n iterations as in train.eval_period in config file i.e. while the model is training I want to see every n iterations how/if is it improving.
What I did: As stated in the tutorial, I added init_checkpoint of the pre-trained model, custom data and n_classes = 1 to the config file and I run train_net.py.
What happened: Apparently, instead of evaluating the performance of the model on my custom class I'm currently training the model on, it is being evaluated on COCO classes, which I do not need because when I'm fine-tuning on my custom class and custom data, I need to see performance of my custom class.
Can you tell me now what am I doing wrong? Is it not the way to achieve what I want?
@rentainhe it would be really nice if you could help out here because I opened the issue a month ago and there's still no improvement whatsoever.

@alrightkami
Hello, I want to explain what my experiments show:
You said the model was crushed on COCO as well in your experiments. The reason is that you still inferred the model on your custom dataset. The model can work well on COCO.
Hence, the reason for your error is the dataset.

@SlongLiu Of course, the model can work well on COCO, but this is not what I need.
While training on a custom class 'graffiti', I want the model's performance on this custom class 'graffiti' and not on people, cars, or birds.
So here I am, asking what am I doing wrong and how can I achieve that. But all you tell me is that your model works fine on COCO.

are there any updates? @rentainhe


Runtime continuously flicker

Based on the project age-of-sprites-main, packaging it for Android to run on a mobile device, dynamically generating Sprite Animated Renderers during runtime causes the game objects in the scene to continuously flicker.
Here is a screen recording from the Android phone.
https://github.com/Antoshidza/NSprites-Foundation/assets/11360212/2123dcc7-43bc-47d7-885f-2806b03cf716
Hero is the TestProject.
TestProject.zip
Unity <IP_ADDRESS>b10
ECS1.2

What you mean dynamically generating Sprite Animated Renderers during runtime. What sprites on video dynamically generated?
What graphics API do you use in your android build and what android version devices uses?

What sprites on video dynamically generated?

The NewSoldierAuthoring script is solely for enabling the soldier to move upwards during gameplay, providing speed information.

What graphics API do you use in your android build
Universal RP 17.0.2.
Vulkan1.1.0
what android version devices uses?
Android OS 9,
API-28,
Device: Redmi Note 7

same problem


feat(workflows)!: :sparkles: Improved generation of release notes

Description
The release notes are now organized and much easier to navigate
Closes #2639

An example of generating release notes:
✨ Enhancements

Add .swcrc icon for SWC and rename swc to adobe-swc (#2232)
Add Copilot instructions (#2640)
Trigger (#2570)
workflows: Use Bun version from .bun-version file (#2644)
workflows: Add emojis to the names of workflows (#2645)

🩹 Fixes

🚑 fix swc icon colors (#2638)

📖 Documentation

🔥  Remove Phorm.ai badge (#2641)

🏡 Chore

docs: Add useful comments and update issue templates (#2643)

❤ Contributors

Okinea Dev (@okineadev)
Bartłomiej Krakowski (@bart-krakowski)
Jiwon Choi<EMAIL_ADDRESS>

This is awesome 🔥
Contribution Guidelines

[x] By creating this pull request, I acknowledge that I have read the Contribution Guidelines for this project.
[x] I have read the Code Of Conduct and promise to abide by these rules

@lishaduck please review

@lishaduck what is your final decision?

I'd still like to fix the h1 → h3.

Okay i fix it

Will the future release notes use h2s?

Yes

Oh, but CI's failing. Do you know why?

This error has been fixed, we just need to fix the merge conflicts and that's the last thing we need to do

🫏

Who is this?

🫏

Who is this?

[[Eeyore]]

🫏

Who is this?

[[Eeyore]]

What is this for??

I was making a joke. "fine enough, I suppose" is a rather pessimistic response, as would be expected of Eeyore.
P.S. Please mark this discussion as off topic (three dots → hide)

I was making a joke. "fine enough, I suppose" is a rather pessimistic response, as would be expected of Eeyore.
P.S. Please mark this discussion as off topic (three dots → hide)

Watta sigma

I didn't even notice you were using Bun. +1 for jq!

Is it possible to remove the email addresses of the contributors? Not sure, if everybody agrees with it, that it will shown in the changelog, i.e. also on the VS Code marketplace: https://marketplace.visualstudio.com/items/PKief.material-icon-theme/changelog

This PR isn't really updating the changelog, just the workflow. Is it possible to run the script locally to provide an updated version of the changelog? I want to see how it looks like when fully generated with the new tool.

This PR isn't really updating the changelog, just the workflow. Is it possible to run the script locally to provide an updated version of the changelog? I want to see how it looks like when fully generated with the new tool.

I will try to do it

Is it possible to remove the email addresses of the contributors? Not sure, if everybody agrees with it, that it will shown in the changelog, i.e. also on the VS Code marketplace: marketplace.visualstudio.com/items/PKief.material-icon-theme/changelog

Those e-mails of the contributors that they themselves specified for signing commits or just public e-mail are taken there, by default, if I'm not mistaken, the e-mail provided by GitHub (noreply) is taken
Although I think it would be really better not to post contributors' emails because some crawlers might see the email and spam it

I think for this I will need to patch the changelogen library (it is raw in terms of documentation and configuration)

Is it possible to remove the email addresses of the contributors? Not sure, if everybody agrees with it, that it will shown in the changelog, i.e. also on the VS Code marketplace: marketplace.visualstudio.com/items/PKief.material-icon-theme/changelog

Fixed in b85f8da (#2646)

I've removed some parts of the comments in 0b603d0e8ad11a7e1e280d71cadfd1cd4c3ce76c because it was too much. It's nice that the AI can generate so much information but honestly, it shouldn't be too much. While scrolling through the code I don't want to read a book of TSDoc comments. Most of the code can be described in good variable or function names. For most normal experienced software engineers this should be enough with some comments here and there, where it's needed to understand the code. If a complete beginner doesn't understand it, then AI can be called on their machine, to let it explain the code too. Keep it rather simple than overloading the code with too much information.

I've removed some parts of the comments in 0b603d0e8ad11a7e1e280d71cadfd1cd4c3ce76c because it was too much. It's nice that the AI can generate so much information but honestly, it shouldn't be too much. While scrolling through the code I don't want to read a book of TSDoc comments. Most of the code can be described in good variable or function names. For most normal experienced software engineers this should be enough with some comments here and there, where it's needed to understand the code. If a complete beginner doesn't understand it, then AI can be called on their machine, to let it explain the code too. Keep it rather simple than overloading the code with too much information.

...
Just collapse the comments in the editor...

From my point of view it's not a breaking change. A breaking change is something which breaks existing versions or platforms on the consumer side. For instance, if we change the supported engine of VS Code or if we remove or change something in the endpoints which are used for the module. Breaking changes require some action on the consumer side, i.e. upgrading the VS Code version in case of an engine update or updating the usage of the module in case of a change in the module API.

Yes, but this change is a big one for the project itself

Just collapse the comments in the editor...

I have a vscode extension installed that does just that by default when I open a file.
But the problem with too much info in the comments (e.g. @example in functions that are not meant to be part of the public-api of a library) is that it also adds more stuff to maintain in the future. And most of the time, people will change code and forget to update the comment (probably because it was automatically collapsed by vscode and they didn't even realised the comment was there -happens to me all the time 😅-).

off topic
Sorry, I edited your previous comment trying to post mine (it's 2am here hah)

@PKief, do you approve this PR?

Something went wrong on the VS Code Marketplace, too:

And the CHANGELOG.md file was not updated with v5.14.0
https://github.com/material-extensions/vscode-material-icon-theme/blob/main/CHANGELOG.md


telewebion

Checklist

[x] I'm reporting a broken site
[X] I've verified that I'm running yt-dlp version 2<IP_ADDRESS> (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[X] I've read about sharing account credentials and I'm willing to share it if required

Region
USA
Description
/watch https://telewebion.com/episode/0x28e0ab5
ERROR: Unsupported URL: https://telewebion.com/episode/0x28e0ab5
Verbose log
2022-06-26T09:18:38.613876+00:00 app[web.1]: 2022-06-26 09:18:38,613 - bot.helper.mirror_utils.download_utils.youtube_dl_download_helper - WARNING - [generic] Falling back on generic information extractor.
2022-06-26T09:18:39.043717+00:00 app[web.1]: 2022-06-26 09:18:39,043 - bot.helper.mirror_utils.download_utils.youtube_dl_download_helper - ERROR - ERROR: Unsupported URL: https://telewebion.com/episode/0x28e0ab5

https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#is-your-question-about-yt-dlp

Doesn't this duplicate of #2598 ?


User story:  MUDLOG - Frontend Edit/Delete

As a Data Manager, I want to be able to edit and delete the MUDLOG object in WE
Acceptance criteria

[ ] The WE  frontend is extended to support edit and delete operations on  the MUDLOG object

Also, here are a few points that need to be addressed:

[ ] Constraint 1
[ ] Constraint 2

Resources

Resource A
Resource B

Implemented by #1774 and #1758


allow numpy 2

Description
I think pytables has finally caught up as of about 2 weeks ago. https://github.com/PyTables/PyTables/commit/db6224bf814bdfdce0f4424e7d945bfb18d46d1d
Looks like fastkde isn't updated?
Fixes # (issue)
Checklist:

[ ] I have performed a self-review of my own code
[ ] My code is PEP8 compliant (flake8 anesthetic tests)
[ ] My code contains compliant docstrings (pydocstyle --convention=numpy anesthetic)
[ ] New and existing unit tests pass locally with my changes (python -m pytest)
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have appropriately incremented the semantic version number in both README.rst and anesthetic/_version.py

There's a strange quirk here. The pytests pass, but skipping more than usual. This is because fastkde was built with numpy 1, so import anesthetic.kde gives:
>>> import anesthetic.kde

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.1.0 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last):  File "<stdin>", line 1, in <module>
  File "/Users/adam/phd/anesthetic/anesthetic/kde.py", line 7, in <module>
    from fastkde import fastKDE
  File "/Users/adam/phd/env_pc/lib/python3.12/site-packages/fastkde/__init__.py", line 10, in <module>
    import fastkde.fastKDE
  File "/Users/adam/phd/env_pc/lib/python3.12/site-packages/fastkde/fastKDE.py", line 5, in <module>
    import fastkde.empiricalCharacteristicFunction as ecf
  File "/Users/adam/phd/env_pc/lib/python3.12/site-packages/fastkde/empiricalCharacteristicFunction.py", line 3, in <module>
    import fastkde.nufft as nufft
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/adam/phd/anesthetic/anesthetic/kde.py", line 7, in <module>
    from fastkde import fastKDE
  File "/Users/adam/phd/env_pc/lib/python3.12/site-packages/fastkde/__init__.py", line 10, in <module>
    import fastkde.fastKDE
  File "/Users/adam/phd/env_pc/lib/python3.12/site-packages/fastkde/fastKDE.py", line 5, in <module>
    import fastkde.empiricalCharacteristicFunction as ecf
  File "/Users/adam/phd/env_pc/lib/python3.12/site-packages/fastkde/empiricalCharacteristicFunction.py", line 3, in <module>
    import fastkde.nufft as nufft
  File "nufft.pyx", line 1, in init fastkde.nufft
ImportError: numpy.core.multiarray failed to import (auto-generated because you didn't call 'numpy.import_array()' after cimporting numpy; use '<void>numpy._import_array' to disable if you are certain you don't need it).

Perhaps this is a flaw in our failed import-based test-skipping strategy

I've fixed fastkde https://github.com/LBL-EESA/fastkde/pull/44, though the owner was so quick to merge they didn't increment the version number!
Not sure when this will end up on pypi

No idea how I forgot that I'd already opened #388, apologies. Will close this one


Modify the config settings for pack-peel pipeline

This PR modified the tiling and packing parameter settings for pack-peel pipeline following the existing strategy for pad-pack pipeline. These changes are specially made to make challenging matmul input sizes compiling and running on the device. The performance is not the main concern at this time.
Bump MLIR-AIR to include several fixes in AIR.
With this PR 7/8 matmul tests added here https://github.com/nod-ai/iree-amd-aie/pull/334 have passed using pack-peel pipeline. The remaining one failed at AIE level. @erwei-xilinx will help take a further look.

My comments are mostly requests for explanations about the peel-pack pipeline which I'm not too familiar with. It seems like it does packing from DDR->memtile (L3 -> L2) which the pack-pad pipeline does not?

Yes, you are right. Pad-pack pipeline has linalg.copy to move data from L3->L2, and pack-peel pipeline has pack operations for that. So it has two levels of packing.

The numerical error is almost certainly not related to this PR, and probably intermittent. We haven't seen this in CI before though, so this is worrying.

The numerical error is almost certainly not related to this PR, and probably intermittent. We haven't seen this in CI before though, so this is worrying.

Yeah, let me bump mlir-air in a separate PR and see if some new commits in AIR breaks the ci.


好奇

应该可以直接将要注入的so内容写入游戏中，然后通过调用memfd_create 再DlopenMem 类似
https://github.com/Dr-TSNG/ZygiskOnKernelSU/blob/42503e7cfe13bc0c089652f4a57cd07094a1e3ca/loader/src/common/dl.cpp#L47
这样就能绕过 namespace限制了吧

应该可以直接将要注入的so内容写入游戏中，然后通过调用memfd_create 再DlopenMem 类似 https://github.com/Dr-TSNG/ZygiskOnKernelSU/blob/42503e7cfe13bc0c089652f4a57cd07094a1e3ca/loader/src/common/dl.cpp#L47 这样就能绕过 namespace限制了吧

You will need to call memfd_create inside the remote process or inject into zygote, create fd then use it after remote process fork. Its more complicated approach and I don't see any point to use it in this example.
BTW I don't speak Chinese.

The so path cannot be found in the maps, and the library path can be loaded no matter what path it is in.

The so path cannot be found in the maps, and the library path can be loaded no matter what path it is in.

Its still visible in maps as "memfd (deleted)", but it's a good method to bypass path restrictions like you said. I will add it soon. 👍


Switching out weapon attachments will save the weapon with default attachments

Switching out a weapon attachment (optics/suppressors etc) then saving will save the weapon as the default prefab with the default attachment.
It's most apparent with the RHS addon as they have a very modular attachment system (GUID 595F2BF2F44836FB)
Repro steps:

Load the RHS addon (right click addon in workbench launcher and "Open with addon(s)") https://reforger.armaplatform.com/workshop/595F2BF2F44836FB-RHS-StatusQuo
Add a weapon to your test world that has attachment/s (ie https://enfusionengine.com/api/redirect?to=enfusion://ResourceManager/~RHSStatusQuo:Prefabs/Weapons/Rifles/AK74M/Rifle_AK74M_1P78.et)
Add a different attachment you can use to switch it out (ie https://enfusionengine.com/api/redirect?to=enfusion://ResourceManager/~RHSStatusQuo:Prefabs/Weapons/Attachments/Optics/1p87/Optic_1P87_new.et)
Start world, pick up weapon, pick up attachment, switch them out
Save and reload

The weapon will load with the default attachment in the prefab, not the one that it was switched out with

Confirmed fixed probably due to update of the RHS mod and them using the correct base prefabs that EPF can hook.


Fake Marathon

Halp! I don't know what I'm doing.

[Current coverage][cc-pull] is 92.04%

Merging [#8][cc-pull] into [develop][cc-base-branch] will decrease coverage by -6.18%

@@            develop         #8   diff @@
==========================================
  Files             9         11     +2
  Lines           561        691   +130
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits            551        636    +85
- Misses           10         55    +45
  Partials          0          0

Powered by Codecov. Last updated by [b8059fa...2dd2f34][cc-compare]
[cc-base-branch]: https://codecov.io/gh/praekeltfoundation/certbot/branch/develop?src=pr
[cc-compare]: https://codecov.io/gh/praekeltfoundation/certbot/compare/b8059fa09cafd9099b935aa0f729460169da7d8d...2dd2f34beb4fc3cb987427efc66f689e27b1aaf2
[cc-pull]: https://codecov.io/gh/praekeltfoundation/certbot/pull/8?src=pr

Superseded by other work.


Make admin rpc server require authentication

Use TLS certificate or maybe username/password for client to get access to admin rpc methods.

Instructions:
https://grpc.io/docs/guides/auth/#with-server-authentication-ssltls-4

The flask server can return an HTTP response containing the credentials to use for all RPC requests (only after flask login).


Change specifiers for room id in MatrixHttpApi back to %s

Fixes #9

Please merge this! Currently I cannot use the api client because of this error.


Unclear how to use post conditions

We have a guide for postconditions here: https://docs.stacks.co/understand-stacks/transactions#post-conditions.
But, we are missing some examples to facilitate understanding. It would be great to present some examples with the goals and sample code for it.

Some samples I could find:

https://github.com/blockstack/heystack/blob/22e4e9020f8bbb404e8c1e36f32f000050f90818/src/common/hooks/use-like-hey.ts#L46
https://github.com/blockstack/heystack/blob/22e4e9020f8bbb404e8c1e36f32f000050f90818/src/common/hooks/use-publish-hey.ts#L55
https://github.com/blockstack/stacks.js/blob/88af9d42f4df761f40838debeee4eaa89995ad52/packages/transactions/tests/postcondition.test.ts#L31


Checksum address output in log_address event and broadcast files

Component
Forge
Describe the feature you would like
Current Behaviour
Addresses emitted in log events as well as broadcast json-files are not checksumed.
This leads to compiler errors when copy pasting this address back into a script etc.
While there is a workaround using forge fmt this is suboptimal since it introduces another unnecessary command / step and also negates the original purpose of checksums protecting against accidental modification of the value.
Proposed Behaviour
Emit only checksummed addresses both in log events as well as broadcast json-files.
Additional context
Can be seen as an extension of: https://github.com/foundry-rs/foundry/issues/2674

Is it ok to try this issue?


Palatial Estate

text: Loquipments are considered both a location and an equipment at the time of paying their cost
link: https://groups.google.com/g/rec.games.trading-cards.jyhad/c/XpZ6F53jK-c/m/EQWCLO72MbsJ

Done already


Support for multilanguage attack?

OpenAttack seems like a very versatile attacking framework. I wonder if the module has any support for non-English attack? For example, if I want to attack a French/Spanish/German model, is there a tutorial for such scenario? Really appreciate any help !

We do not currently have a detailed document describing how to add new languages.
In short, you can implement Tokenizers, Substitues ... for the languages you need and initialize the Attacker with them as arguments.
Docs for Attacker:  Attackers API
See code in OpenAttack/text_process/ may help you.


.NET API Browser for Azure DevOps Services .NET SDK missing ReleaseManagement package

I came across the .NET API Browser (https://docs.microsoft.com/en-us/dotnet/api/index?view=azure-devops-dotnet) from the list of Azure DevOps client libraries. The .NET API Browser is completely missing documentation for the Microsoft.VisualStudio.Services.ReleaseManagement.WebApi namespace.

@kchungmsft Please move this issue to https://github.com/MicrosoftDocs/azure-devops-docs-sdk-dotnet/issues


Error: Cannot create a string longer than 0xffffff0 characters

I'm trying to backup Accounts by using jsforce Bulk API and querying for all records.
There are 2,660,000 records.
I'm using jsforce 1.10.1
When I try to run the bulk api and use stream it throws the error:
Error: Cannot create a string longer than 0xffffff0 characters
    at Buffer.toString (buffer.js:799:17)
    at Request.<anonymous> (C:\Users\w102057\Developer\sf-backup\node_modules\request\request.js:1128:39)
    at Request.emit (events.js:388:22)
    at IncomingMessage.<anonymous> (C:\Users\w102057\Developer\sf-backup\node_modules\request\request.js:1076:12)
    at Object.onceWrapper (events.js:482:28)
    at IncomingMessage.emit (events.js:388:22)
    at endReadableNT (internal/streams/readable.js:1336:12)
    at processTicksAndRejections (internal/process/task_queues.js:82:21) {
  code: 'ERR_STRING_TOO_LONG'
}

Here's the snipper of the code that I use to do this:
let cipher = crypto.createCipheriv('aes-256-ctr', Buffer.from(encryptionKey), iv);
let zip = zlib.createGzip();

const query = 'SELECT ' + object.fields.filter((field) => field.type != 'address').map((field) => field.name).join(', ') + ' FROM ' + object.name;

conn.bulk.query(query)
                    .on('end', () => resolve())
                    .on('error', function(err) { console.log(err); reject(err); })
                    .stream()
                    .pipe(zip)
                    .pipe(cipher)
                    .pipe(fs.createWriteStream(backupDir + '/' + object.name + '.csv.enc'));

Hi @vpetrovych
Did you manage to solve this issue?

closing this, we recommend using the Bulk V2 API for this:
https://jsforce.github.io/document/#bulk-v2-api
if anyone finds a similar error please file a new issue. Thanks!


💥 How do I add support for months, for example: ms('2 months') 💢

How do I add support for months, for example: ms('2 months')
Not found for months ? 💥
ms('2 months')

Duplicate of https://github.com/zeit/ms/issues/57 - there's a long discussion in there about months.


adding kyverno-cli to kubernetes devtools dockerfile

Superseded by https://github.com/coopnorge/engineering-docker-images/pull/2304


refactor(core): remove deprecated gesture code

Removes the unused gesture code that was deprecated a while ago.
BREAKING CHANGES:

MAT_HAMMER_OPTIONS has been removed.
GestureConfig has been removed.
HammerInput has been removed.
HammerStatic has been removed.
Recognizer has been removed.
RecognizerStatic has been removed.
HammerInstance has been removed.
HammerManager has been removed.
HammerOptions has been removed.

cc @devversion. I don't know whether we don't need to adjust the Hammer migration schematic as well.

@crisbeto I can confirm that we set up that migration to already run for v10. We should be good.
https://github.com/angular/components/blob/master/src/material/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.ts#L67


phc-intel: Don't define the package if the assert would fail.

If the kernel is too old one gets the kernel version assertion error, even if that package is not used. Some code must be going through all defined kernel module packages and ends up triggering the assert.

Motivation for this change
Assertion failure in VirtualBox tests, see https://github.com/NixOS/nixpkgs/pull/67968#issuecomment-527256292.
I just made the packages conditionally defined like a few other packages.
If someone wants to go looking into the cause, here's a backtrace:
error: while evaluating the attribute 'buildCommand' of the derivation 'vm-test-run-virtualbox-headless' at /etc/nixos/nixpkgs/nixos/lib/testing.nix:53:7:
while evaluating the attribute 'testScript' of the derivation 'nixos-test-driver-virtualbox-headless' at /etc/nixos/nixpkgs/pkgs/build-support/trivial-builders.nix:7:14:
while evaluating 'isFunction' at /etc/nixos/nixpkgs/lib/trivial.nix:296:16, called from /etc/nixos/nixpkgs/nixos/lib/testing.nix:111:12:
while evaluating anonymous function at /etc/nixos/nixpkgs/lib/attrsets.nix:234:10, called from undefined position:
while evaluating the attribute 'buildCommand' of the derivation 'virtualbox-image' at /etc/nixos/nixpkgs/pkgs/build-support/trivial-builders.nix:7:14:
while evaluating the attribute 'system.build.kernel' at /etc/nixos/nixpkgs/nixos/modules/system/boot/kernel.nix:192:29:
while evaluating the attribute 'boot.kernelPackages' at undefined position:
while evaluating anonymous function at /etc/nixos/nixpkgs/lib/modules.nix:75:45, called from undefined position:
while evaluating the attribute 'value' at /etc/nixos/nixpkgs/lib/modules.nix:336:9:
while evaluating the option `boot.kernelPackages':
while evaluating 'apply' at /etc/nixos/nixpkgs/nixos/modules/system/boot/kernel.nix:40:15, called from /etc/nixos/nixpkgs/lib/modules.nix:333:35:
while evaluating the attribute 'mergedValue' at /etc/nixos/nixpkgs/lib/modules.nix:368:5:
while evaluating anonymous function at /etc/nixos/nixpkgs/lib/modules.nix:368:32, called from /etc/nixos/nixpkgs/lib/modules.nix:368:19:
while evaluating 'mergeEqualOption' at /etc/nixos/nixpkgs/lib/options.nix:108:27, called from /etc/nixos/nixpkgs/lib/modules.nix:371:8:
while evaluating anonymous function at /etc/nixos/nixpkgs/lib/options.nix:110:23, called from /etc/nixos/nixpkgs/lib/options.nix:110:10:
while evaluating 'callPackageWith' at /etc/nixos/nixpkgs/lib/customisation.nix:108:35, called from /etc/nixos/nixpkgs/pkgs/top-level/all-packages.nix:15898:17:
while evaluating 'makeOverridable' at /etc/nixos/nixpkgs/lib/customisation.nix:67:24, called from /etc/nixos/nixpkgs/lib/customisation.nix:112:8:
while evaluating anonymous function at /etc/nixos/nixpkgs/pkgs/os-specific/linux/phc-intel/default.nix:1:1, called from /etc/nixos/nixpkgs/lib/customisation.nix:69:12:
assertion failed at /etc/nixos/nixpkgs/pkgs/os-specific/linux/phc-intel/default.nix:4:1

Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Notify maintainers
cc @flokli

Thanks!


dyz uses luajit of the sysroot in the build step

without this patch recipe fails if luajit is not present in the
build system

Signed-off-by: Pablo Saavedra<EMAIL_ADDRESS>

I'm closing this PR (which not longer applies to last master once dyz recipe has been updated for fdo)
I think dyz is building fine now on master.
If not please report the issue or send a new PR


Close #974: Update Tokopedia to hard

@unknown4849 I translated the notes to English using Google Translate, as notes are used for English notes.  Do they look right?

yes


Enchanting Table not capable of been used

In 1.16.4 version; the enchanting table doesn't have a texture (Magenta and Black squares), at the same time when is right click it wont open nor show its GUI, meaning it cant be used.

That probably means you have a mod conflict with apotheosis, something else is replacing the table as well.


Deleted the files issue #2992

Close #2992
I had deleted the files that are to be deleted

Hi @utkars3 👋🏻 Are you still interested in following up with the changes? I think we need to only remove ActionMenu.tsx. Please see this comment as well

@broccolinisoup ya i am interested to delete the files

@utkars3 Great! Do you need help with resolving conflicts to start with?

@broccolinisoup i have to delete ActionMenu.tsx?

Hi @utkars3 sorry for missing your comment!
We need to resolve conflicts first. Apparently, there are new changes on the src/ActionMenu.tsx but in this PR we are trying to delete it, so git sees this as a conflict and this conflict needs to be resolved manually on the command line. There are instructions of how to do that if you click/enter "Use the command line" in the "This branch has conflicts that must be resolved" section. We also need to take the Dialog and Dialog2 changes back as it is mentioned here
If resolving conflicts is an area that you are not familiar with, other option could be;

Closing this PR
Fetching main
Create a new branch on top of the latest main
Delete only src/ActionMenu.tsx
Push another PR

Thank you for your contribution 🙏🏻 Let me know if you need any help!


[improve][sql] Some optimized points in #9224

Fixes #xyz

Master Issue: #xyz

PIP: #xyz

Motivation
In issue #9224, optimizations for three issues were added

Modifications
A static code block is used to associate the SchemaType with the instance of the PulsarRowDecoderFactory subclass, which can be reused throughout the life cycle, so that the PulsarRowDecoder object can be created when needed. In this way, when the class is loaded, it can be initialized and reused to improve efficiency.
Add multi-version mode decoder cache, and decoder can be reused, use currentHashMap to act as a cache, and look at the cache before each creation.
Use switch to disassemble all the original getname methods in the if field, and directly use switch-case to compare the entire String type name

Verifying this change

[ ] Make sure that the change passes the CI checks.

(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end deployment with large payloads (10MB)
Extended integration test for recovery after broker failure

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

[ ] Dependencies (add or upgrade a dependency)
[ ] The public API
[ ] The schema
[ ] The default values of configurations
[ ] The threading model
[ ] The binary protocol
[ ] The REST endpoints
[ ] The admin CLI options
[ ] The metrics
[ ] Anything that affects deployment

Documentation

[ ] doc
[ ] doc-required
[X] doc-not-needed
[ ] doc-complete

Matching PR in forked repository
PR in forked repository:

Please solve the problem in CI @ziang123

Codecov Report

Merging #19027 (04b9d67) into master (58ad3d0) will decrease coverage by 10.93%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             master   #19027       +/-   ##
=============================================
- Coverage     47.67%   36.73%   -10.94%
+ Complexity     9333     1959     -7374
=============================================
  Files           618      209      -409
  Lines         58586    14434    -44152
  Branches       6098     1574     -4524
=============================================
- Hits          27933     5303    -22630
+ Misses        27623     8554    -19069
+ Partials       3030      577     -2453

Flag
Coverage Δ

unittests
36.73% <ø> (-10.94%)
:arrow_down:

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

Impacted Files
Coverage Δ

...he/pulsar/client/impl/PartitionedProducerImpl.java
30.34% <0.00%> (-5.13%)
:arrow_down:

.../apache/pulsar/client/impl/BatchMessageIdImpl.java
67.50% <0.00%> (-4.73%)
:arrow_down:

...va/org/apache/pulsar/client/impl/ProducerImpl.java
15.66% <0.00%> (-1.34%)
:arrow_down:

.../pulsar/client/impl/BatchMessageContainerImpl.java
55.95% <0.00%> (-1.02%)
:arrow_down:

.../pulsar/client/impl/ProducerStatsRecorderImpl.java
84.04% <0.00%> (-0.62%)
:arrow_down:

...va/org/apache/pulsar/client/impl/ConsumerBase.java
21.51% <0.00%> (-0.42%)
:arrow_down:

...he/pulsar/client/impl/MultiTopicsConsumerImpl.java
22.80% <0.00%> (-0.19%)
:arrow_down:

...va/org/apache/pulsar/client/impl/ConsumerImpl.java
15.09% <0.00%> (-0.03%)
:arrow_down:

.../java/org/apache/pulsar/client/impl/ClientCnx.java
29.97% <0.00%> (ø)

...a/org/apache/pulsar/client/impl/TableViewImpl.java
0.00% <0.00%> (ø)

... and 418 more

Merging...


feat: Add OFAC blocking

Countries under the sanctions program of the OFAC need to be blocked.
The current list of countries is:

North Korea (KP)
Iran (IR)
Cuba (CU)
Syria (SY)

Closing as Archive Server has been removed.


New to Ruby, having trouble getting coverage with JRuby+MiniTest

I’m sorry if I’m doing something stupid, I’m just new to Ruby and I’m having trouble putting all the pieces together (there seem to be some conventions I’m just missing). I’d appreciate some help!
I’m using SimpleCov 0.11.2.
Output of ruby -e "puts RUBY_DESCRIPTION":
jruby <IP_ADDRESS> (2.2.3) 2016-01-26 7bee00d Java HotSpot(TM) 64-Bit Server VM 25.60-b23 on 1.8.0_60-b27 +jit [darwin-x86_64]

Not using Rails; not a Web app. Not using any other coverage gems.
I’m running tests with Rake.
My Rakefile:
require 'rake/testtask'
require 'simplecov'

task default: [:test]

task :run_all do
  ruby 'bin/run_all.rb'
end

Rake::TestTask.new do |t|
  # t.libs << 'lib/test'
  SimpleCov.start { command_name 'MiniTest' }
  t.test_files = FileList['test/test_*.rb']
  t.verbose = true
  t.warning = false
end

In my test dir I have 2 files matching test_*.rb.
Both files start with these lines:
require 'minitest/autorun'
require 'minitest/given' # must be required after minitest/autorun (probably)

and then go right into requiring my local code under test and then describe....
When I run rake or rake test I get output like this:
Coverage may be inaccurate; set "cli.debug=true" ("-Xcli.debug=true") in your .jrubyrc or do JRUBY_OPTS="-d"
/Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/simplecov-0.11.2/lib/simplecov.rb:47: warning: tracing (e.g. set_trace_func) will not capture all events without --debug flag
/Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/bin/jruby -I"lib" -I"/Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/rake-10.5.0/lib" "/Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/rake-10.5.0/lib/rake/rake_test_loader.rb" "test/test_bay_..._visits.rb" "test/test_candidate_..._writes.rb" "test/test_helper.rb"
Coverage may be inaccurate; set "cli.debug=true" ("-Xcli.debug=true") in your .jrubyrc or do JRUBY_OPTS="-d"
Run options: --seed 41006

# Running:

..........................

Finished in 0.248401s, 104.6695 runs/s, 229.4677 assertions/s.

26 runs, 57 assertions, 0 failures, 0 errors, 0 skips
Coverage report generated for MiniTest to /Users/avi/dev_local/park-assist/park-server/.../coverage. 0.0 / 0.0 LOC (100.0%) covered.

I tried adding test_helper.rb to my test dir with these contents:
require 'simplecov'
SimpleCov.start { command_name 'MiniTest' }

but it didn’t seem to help.
I tried running export JRUBY_OPTS="-d --debug" before running rake but it didn’t seem to help.
I haven’t tried using a .simplecov file because I’m just not sure what I’d put in it.
So I’m kinda at a loss. Any tips would be greatly appreciated!
Thank you,
Avi

It won't work in Rake::TestTask because that runs tests in a subprocess.
Further, according to the readme, you don't (usually?) run SimpleCov.start with a block form. I would guess that would only do coverage during the span of the block rather than starting globally. I don't actually know tho.
I would recommend doing the following at the top of your test_helper.rb:
require 'simplecov'
SimpleCov.start 'whatever'

and seeing where that goes.
You might also want to take jruby out of the equation to eliminate extra variables.

What @zenspider said, SimpleCov won't be launched inside your test process if you load it in your Rakefile.
In general, for Ruby test suites there is a convention of having a test/test_helper.rb or spec/spec_helper.rb file that deals with common steps like configuring your test framework, pulling in dependencies, or also firing up simplecov. Then, at the very top of each individual test file youd require 'test_helper'` and have everything set up consistently. The top of the test_helper file would be the place to add the simplecov configuration, so I would recommend you get this set up for your project.
On an additional note, the optional block you can give to SimpleCov.start is for configuring it further, in your case you did SimpleCov.start { command_name 'MiniTest' }, which gives SimpleCov a cue what test suite you are running, but that is only really needed if you are using merging of different test suites and the automatic suite name detection does not work, so most likely you don't need it :)
I'll close this, but feel free to complain if this did not help

@zenspider @colszowka thank you so much for your help! The info you shared has enabled me to get the coverage reporting working for my project. :bow:

Cool, glad that it works now :)

@zenspider said on Twitter that he’d like to see what worked for me, so:
@colszowka’s explanation of test_helper.rb was very helpful. I had searched for that but hadn’t been able to find it anywhere. So I moved the simplecov-related lines to that file, and also moved to it all the require statements that had been duplicated between my test files.
So now my test_helper.rb looks like this:
require 'simplecov' # must be at the top of test_helper.rb
SimpleCov.start do  # must be on the second line of test_helper.rb
  add_filter 'test/test_'
  add_filter '.jbundler'
  refuse_coverage_drop
end

require 'minitest/autorun'
require 'minitest/given' # must be required after minitest/autorun (I think)

And all my test files require test_helper first thing.
Then I created a new file: test/test_all.rb with these contents:
# We’re using minitest/autorun (required in test_helper.rb) so all we need to do here is require
# the test files that have the actual tests. minitest/autorun will ensure the tests run just before
# the interpreter exits.

require_relative 'test_this'
require_relative 'test_that'
require_relative 'test_config'
require_relative 'test_serdes'

Then I tried running $ jruby test/test_all.rb and got some messages about needing to set up my JRuby configuration properly for coverage reporting to work.
So I created .jrubyrc in my project root with these contents:
cli.debug=true
debug.fullTrace=true

Now I can run $ jruby test/test_all.rb and my tests all run and I get a coverage report:
$ jruby test/test_all.rb
Using Ext extension for JSON.
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Exception `Sorcerer::Resource::NotSexpError' at /Users/avi/.rbenv/versions/jruby-<IP_ADDRESS>/lib/ruby/gems/shared/gems/sorcerer-1.0.2/lib/sorcerer/resource.rb:77 - Not an S-EXPER: nil
Run options: --seed 23755

# Running:

........W, [2016-03-01T13:04:11.215000 #27196]  WARN -- : Skipping exit event ...because no visit was found...
..................

Finished in 0.208490s, 124.7061 runs/s, 220.6339 assertions/s.

26 runs, 46 assertions, 0 failures, 0 errors, 0 skips
Coverage report generated for Unit Tests to /Users/avi/dev_local/park-assist/.../coverage. 141 / 177 LOC (79.66%) covered.

which is sweet!
I still need to find out how to suppress all those Sorcerer exceptions, and the logging message, but those aren’t urgent.
Finally, I revised my Rakefile to replace Rake::TestTask with a simple ruby command:
task default: [:test]

task :run_all do
  ruby 'bin/run_all.rb'
end

task :test do
  ruby 'test/test_all.rb'
end

I’m not sure there’s really much value to using Rake this way at this point, but hopefully I’ll figure that out at some point.
Thanks again!


Request for publishing Power (ppc64le) image on DockerHub

I am working on a use case which depends on the availability of  phusion/baseimage for Power (ppc64le). The image builds successfully using the "docker build" command - no changes to the Dockerfile were required.
The following steps from the travis.yml succeed:
docker build -t ${NAME}:${VERSION} --rm image
env NAME=${NAME} VERSION=${VERSION} ./test/runner.sh
So, I believe, that all that will be needed from the perspective of building the image would be to enable support for Power in the travis,yml file by adding
linux-ppc64le in the os: section
Example:
https://github.com/fluent/fluentd-docker-image/blob/master/.travis.yml#L5
Would it be possible for the Power image to be then made available on DockerHub? Looking forward to suggestions, inputs and support on this .. thank you!!

Reference link to the "Power" Travis job
https://travis-ci.org/seth-priya/baseimage-docker/jobs/510820393
It is failing at the last step i.e. "docker login" similar to its Intel counterpart
https://travis-ci.org/seth-priya/baseimage-docker/builds/510820391

Any thoughts?

I'm not sure we want to be in the business of building images for every architecture, as that would imply we're also capable of testing them... you are welcome to fork and configure travis this way.
Sorry for the delay in reply.

I am inclined to agree with that, the best OSS projects are forks of a core which have a specific goal in mind which deviates from the core mission of the original OSS project. (Kubuntu, MariaDB, etc)


DOC: deploy documentation using Github Pages

This is very simple and does not allow for multiple versions of the documentation to be published. I think it would not be too hard to add, but I don't think it would add much value for the meson-python documentation.

Great, thanks!


Missing some enum value identifiers in the OdooModelMapper.GetDotNetModel

When generating the .NET models for some models, some enums are generated with a missing identifier for the first enum value.
I would expect the identifier to be called None for example to express the fact that none of the following options are selected.
Example of PayrollResUsersOdooEnum
/// <summary>
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public enum PayrollResUsersOdooEnum
{
[EnumMember(Value = "False")]
 = 1,                                                                    // error CS1001: Identifier expected

[EnumMember(Value = "80")]
Officer = 2,

[EnumMember(Value = "81")]
Manager = 3,
}

List of impacted enums
I got this for the following enums :

SalesResUsersOdooEnum
PayrollResUsersOdooEnum
WebsiteResUsersOdooEnum
EmployeesResUsersOdooEnum
InventoryResUsersOdooEnum
AdministrationResUsersOdooEnum
LeavesResUsersOdooEnum
PurchasesResUsersOdooEnum
EmailMarketingResUsersOdooEnum
AccountingFinanceResUsersOdooEnum
RecruitmentResUsersOdooEnum
ManufacturingResUsersOdooEnum
FleetResUsersOdooEnum
PointOfSaleResUsersOdooEnum

Odoo version : v16
.NET version : .NET Core 6
Platform : Mac M1

Hi, You can change it quickly, name it None as you wanted, I'll take care of it in the next release

Hi @patricoos,
I just submitted the pull request #57 which solves the problem on my side.


introduce higher level view APIs, staring with: MultiModalResponse

the current kui view apis are fairly low level. let's introduce some new ones. this issue covers MultiModalResponse which lets plugins provide sidecar-oriented, multi-tab, views without having to worry about the more complex inner workings of kui.

@starpit will these new APIs include documentation to inform users how to consume them?

absolutely. we are working on a sample that uses this, too.

@starpit awesome!  I think that will start helping decrease the friction in writing custom plugins.

returning this UI.MultiModalResponse:
{
    kind: 'kindpart',
    metadata: {
      name: 'this is the name part',
      namespace: 'this is the namespace part'
    },
    modes: [
      { mode: 'html', label: 'HTML Text', content: htmlTextContent(), contentType: 'text/html' },
      { mode: 'dom', label: 'HTML DOM', content: domContent() },
      { mode: 'text', label: 'Plain Text', content: plainTextContent() },
      { mode: 'image', content: imageContent() },
      { mode: 'markdown', content: markdownTextContent(), contentType: 'text/markdown' },
      { mode: 'table', content: tableContent() }
    ]
  }

will produce this output:


sequence diagram config issue

sequence diagrams aren't always picking up the config:
example config:
mermaid.sequenceConfig = {
diagramMarginX:50,
diagramMarginY:10,
boxTextMargin:5,
noteMargin:10,
messageMargin:35,
mirrorActors:true
};
more details on issue: https://github.com/tylingsoft/markdown-plus/issues/73

Seconded... I've got a sequence diagram that's not registering the config:
        mermaid.initialize({
            startOnLoad:true,
            sequenceDiagram:{
                mirrorActors:false
            }
        })

mirrorActors doesn't seem to work.

Very odd. I just tried this with the following example file withtout beeing able to reproduce the issue:
https://github.com/knsv/mermaid/blob/master/test/examples/seq.html
What version of mermaid are you trying this with?

I'm loading https://cdn.rawgit.com/knsv/mermaid/0.5.8/dist/mermaid.min.js at the end of the page.

Ok, I've just tried and it looks like the initialize call works fine if the script tag is in the head tag instead of the body, though that's somewhat inconvenient for my current use.

Latest syntax is
mermaid.initialize({
            sequence:{
                ...
            }
        })

Still not working here, could you please disambiguate:
mirrorActor or mirrorActors? (default is still false? I'm using Mermaid Online Editor, and it seems not set it to true anywhere... but it still mirror by default).
sequence or sequenceConfig?
init or initialize?


APP-1408: Updating JEST version to fix whitesource vulnerabilities.

Codecov Report

Merging #65 into dev will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev      #65   +/-   ##
=======================================
  Coverage   90.19%   90.19%
=======================================
  Files           7        7
  Lines          51       51
  Branches        5        5
=======================================
  Hits           46       46
  Misses          4        4
  Partials        1        1

Continue to review full report at Codecov.

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


Build Error

In file included from /Users/roy/Downloads/g4python-main/source/global/pyG4String.cc:26:
/opt/homebrew/include/pybind11/operators.h:124:67: error: use of overloaded operator '==' is ambiguous (with operand types 'const G4String' and 'const std::string')
PYBIND11_BINARY_OPERATOR(eq,        eq,           operator==,   l == r)
~ ^  ~
/opt/homebrew/include/pybind11/operators.h:77:61: note: expanded from macro 'PYBIND11_BINARY_OPERATOR'
static auto execute(const L &l, const R &r) -> decltype(expr) { return (expr); }
^~~~
/opt/homebrew/include/pybind11/operators.h:52:16: note: in instantiation of template class 'pybind11::detail::op_impl<pybind11::detail::op_eq, pybind11::detail::op_l, G4String, G4String, std::string>' requested here
cl.def(op::name(), &op::execute, is_operator(), extra...);
^
/opt/homebrew/include/pybind11/pybind11.h:1395:12: note: in instantiation of function template specialization 'pybind11::detail::op_<pybind11::detail::op_eq, pybind11::detail::op_l, pybind11::detail::self_t, std::string>::execute<pybind11::class_>' requested here
op.execute(*this, extra...);
^
/Users/roy/Downloads/g4python-main/source/global/pyG4String.cc:43:4: note: in instantiation of function template specialization 'pybind11::class_::def<pybind11::detail::op_eq, pybind11::detail::op_l, pybind11::detail::self_t, std::string>' requested here
.def(py::self == std::string())
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/string:4045:1: note: candidate function [with _Allocator = std::allocator]
operator==(const basic_string<char, char_traits, _Allocator>& __lhs,
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/string:4033:1: note: candidate function [with _CharT = char, _Traits = std::char_traits, Allocator = std::allocator]
operator==(const basic_string<CharT, Traits, Allocator>& lhs,
^
/Users/roy/Downloads/geant4.11.00.b01/install/bin/../include/Geant4/G4String.icc:114:25: note: candidate function
inline G4bool G4String::operator==(const G4String& str) const
^
In file included from /Users/roy/Downloads/g4python-main/source/global/pyG4String.cc:26:
/opt/homebrew/include/pybind11/operators.h:52:33: error: no member named 'execute' in 'pybind11::detail::op_impl<pybind11::detail::op_eq, pybind11::detail::op_l, G4String, G4String, std::string>'
cl.def(op::name(), &op::execute, is_operator(), extra...);
~~~~^
/opt/homebrew/include/pybind11/pybind11.h:1395:12: note: in instantiation of function template specialization 'pybind11::detail::op<pybind11::detail::op_eq, pybind11::detail::op_l, pybind11::detail::self_t, std::string>::execute<pybind11::class>' requested here
op.execute(*this, extra...);
^
/Users/roy/Downloads/g4python-main/source/global/pyG4String.cc:43:4: note: in instantiation of function template specialization 'pybind11::class::def<pybind11::detail::op_eq, pybind11::detail::op_l, pybind11::detail::self_t, std::string>' requested here
.def(py::self == std::string())
^
In file included from /Users/roy/Downloads/g4python-main/source/global/pyG4String.cc:26:
/opt/homebrew/include/pybind11/operators.h:125:67: error: use of overloaded operator '!=' is ambiguous (with operand types 'const G4String' and 'const std::string')
PYBIND11_BINARY_OPERATOR(ne,        ne,           operator!=,   l != r)
~ ^  ~
/opt/homebrew/include/pybind11/operators.h:77:61: note: expanded from macro 'PYBIND11_BINARY_OPERATOR'
static auto execute(const L &l, const R &r) -> decltype(expr) { return (expr); }
^~~~
/opt/homebrew/include/pybind11/operators.h:52:16: note: in instantiation of template class 'pybind11::detail::op_impl<pybind11::detail::op_ne, pybind11::detail::op_l, G4String, G4String, std::string>' requested here
cl.def(op::name(), &op::execute, is_operator(), extra...);
^
/opt/homebrew/include/pybind11/pybind11.h:1395:12: note: in instantiation of function template specialization 'pybind11::detail::op<pybind11::detail::op_ne, pybind11::detail::op_l, pybind11::detail::self_t, std::string>::execute<pybind11::class>' requested here
op.execute(*this, extra...);
^
/Users/roy/Downloads/g4python-main/source/global/pyG4String.cc:45:4: note: in instantiation of function template specialization 'pybind11::class::def<pybind11::detail::op_ne, pybind11::detail::op_l, pybind11::detail::self_t, std::string>' requested here
.def(py::self != std::string())
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/string:4090:1: note: candidate function [with _CharT = char, _Traits = std::char_traits, _Allocator = std::allocator]
operator!=(const basic_string<_CharT,_Traits,Allocator>& lhs,
^
/Users/roy/Downloads/geant4.11.00.b01/install/bin/../include/Geant4/G4String.icc:126:25: note: candidate function
inline G4bool G4String::operator!=(const G4String& str) const
^
In file included from /Users/roy/Downloads/g4python-main/source/global/pyG4String.cc:26:
/opt/homebrew/include/pybind11/operators.h:52:33: error: no member named 'execute' in 'pybind11::detail::op_impl<pybind11::detail::op_ne, pybind11::detail::op_l, G4String, G4String, std::string>'
cl.def(op::name(), &op::execute, is_operator(), extra...);
~~~~^
/opt/homebrew/include/pybind11/pybind11.h:1395:12: note: in instantiation of function template specialization 'pybind11::detail::op<pybind11::detail::op_ne, pybind11::detail::op_l, pybind11::detail::self_t, std::string>::execute<pybind11::class>' requested here
op.execute(*this, extra...);
^
/Users/roy/Downloads/g4python-main/source/global/pyG4String.cc:45:4: note: in instantiation of function template specialization 'pybind11::class::def<pybind11::detail::op_ne, pybind11::detail::op_l, pybind11::detail::self_t, std::string>' requested here
.def(py::self != std::string())
^
4 errors generated.

Can you show the output of cmake command?

-- Found Geant4: /Users/roy/Downloads/geant4.11.00.b01/install/bin/.. (11.0.0)
-- Geant4 Visualization: true
-- Geant4 GDML: true
-- Found pybind11: /opt/homebrew/include (found version "2.8.1" )

-- Parameters for building
-- CMAKE_BUILD_TYPE: RelWithDebInfo
-- CMAKE_INSTALL_PREFIX: /Users/roy/opt/geant4/geant4py-11.0.0
-- GEANT4_VERSION: 11.0.0
-- GEANT4_LIBRARY_DIR: /Users/roy/Downloads/geant4.11.00.b01/install/bin/../lib
-- Python3_EXECUTABLE: /Users/roy/miniforge3/bin/python3.9
-- PYTHON3_INCLUDE_DIRS: /Users/roy/miniforge3/include/python3.9
-- pybind11_VERSION: 2.8.1
-- pybind11_INCLUDE_DIR: /opt/homebrew/include

-- Configuring done
-- Generating done
-- Build files have been written to: /Users/roy/Downloads/g4python-main/build

You use the beta version of geant4 v11.0. The implementation of G4String is changed in the 11.0 release.
We will release v11.0 shortly. please wait for the new release.


Click on block to create a task

How can I click on an empty block to create a task?

Unfortunately this isn't possible for now but maybe I will work on it later

Thanks, I managed to implement a workaround in the meantime.


FOUC when upgrading MUI4 to MUI5 and using tss-react

I have a NextJS application and I upgraded from MUI4 to MUI5 and used tss-react and now I see a flash of unstyled content on page load. I see this issue in the MUI repo but they have resolution based on 'styled-components', but not specific to tss-react
The flickering is like this: https://github.com/vercel/next.js/issues/15642
I am unable to upgrade NextJS for now for specific reasons.
Versions:
"react": "17.0.2"
"next": "12.1.5"
"@mui/material": "^5.11.4",
"tss-react": "^4.5.2",
_document.js
MyDocument.getInitialProps = async(ctx) => {
    const originalRenderPage = ctx.renderPage
    const cache = createEmotionCache()
    const { extractCriticalToChunks } = createEmotionServer(cache)
    ctx.renderPage = () =>
        originalRenderPage({
            enhanceApp: (App) =>
                function EnhanceApp(props) {
                    return <App emotionCache={cache} {...props} />;
                }
            })

    const initialProps = await Document.getInitialProps(ctx)

    const emotionStyles = extractCriticalToChunks(initialProps.html)
    const emotionStyleTags = emotionStyles.styles.map((style) => (
        <style
            data-emotion={`${style.key} ${style.ids.join(' ')}`}
            key={style.key}

            // eslint-disable-next-line react/no-danger
            dangerouslySetInnerHTML={{ __html: style.css }}
        />
    ))

    return {
        ...initialProps,
        // Styles fragment is rendered after the app and page rendering finish.
        emotionStyleTags
    }
}

AppWrapper.js
<CacheProvider value={clientSideEmotionCache}>
                   <ConditionalWrapper
                       condition={theme}
                       wrapper={children => <ThemeProvider theme={theme}>{children}</ThemeProvider>}>
                           <SWRConfigProvider>
                               {children}
                           </SWRConfigProvider>
                   </ConditionalWrapper>
               </CacheProvider>

App.js
<React.Fragment>
                   <Head>
                       <meta name='viewport' content='minimum-scale=1, initial-scale=1, width=device-width'/>
                   </Head>
                   <AppWrapper pageProps={pageProps} theme={directionalTheme} locale={locale}>
                       <CssBaseline/>
                       <StateMachineProvider>
                           <GlobalStyles styles={globalStyles} />
                           <Header />
                           <CookiesProvider>
                               <Component {...pageProps} />
                           </CookiesProvider>
                       </StateMachineProvider>
                       <Footer/>
                   </AppWrapper>
               </React.Fragment>

Hello @sahanaravi,
It's your lucky day, TSS provides helpers to setup SSR, just use that and everything should work fine.
https://docs.tss-react.dev/ssr/next.js#single-emotion-cache
I close because I assume it'll resolve your problem but feel free to reopen if you still have problems.

Module not found: Can't resolve 'next/navigation' is the error I keep getting when I try that approach. Do we need any extra packages?

I

@sahanaravi It's fixed.
If you update tss-react to 4.6.0 and import the utils with import { createEmotionSsrAdvancedApproach } from "tss-react/next/pagesDir"; things should work.
I've updated the doc: https://docs.tss-react.dev/ssr/next.js#single-emotion-cache

Thank you for being so prompt in replying. My structure is like this. How would you incorporate augmentDocumentWithEmotionCache in here?
class MyDocument extends Document {

  render() {
 // Lots of other setup stuff here I cannot remove
    return (
      <Html>
        <Head />
        <body>
          <Main />
          <NextScript />
        </body>
      </Html>
    )
  }
}

// export default MyDocument
export default augmentDocumentWithEmotionCache(MyDocument) -- gives an error again--Error: The default export is not a React Component in page: "/_document"

You're wellcome :)
Please read the documentation carefully, you're not supposed to export it like this.
class MyDocument extends Document {

  render() {
 // Lots of other setup stuff here I cannot remove
    return (
      <Html>
        <Head />
        <body>
          <Main />
          <NextScript />
        </body>
      </Html>
    )
  }
}

-export default augmentDocumentWithEmotionCache(MyDocument)

+augmentDocumentWithEmotionCache(MyDocument)
+export default MyDocument;

I will get the FOUC. Looks like SSR is not working with my packages. On Disabling Javascript, page is not rendered right after the upgrade.
Packages I am using now
Versions:
"react": "17.0.2"
"next": "12.2.0"
"@mui/material": "^5.11.4",
"tss-react": "^4.6.0",
@emotion/react": "^11.10.5",
"@emotion/server": "^11.10.0",
"@emotion/styled": "^11.10.5",
"@emotion/cache": "^11.10.5",

Sorry to hear that,
You'll have to provide a reproduction repo if you want me to look into it.
It should work.

This was resolved. Somehow I realized the project was not supporting any non MUI elements like  or . I replaced all of them with MUI elements  ,  and it works.

Great, thank you for the feedback


This TensorFlow binary is optimized with Intel(R) MKL-DNN to use the following CPU instructions in performance critical operations:  AVX AVX2

Hi guys,
when i run main.py on my laptop with webcam, it's working but low FPS (1,25 ~ 1,75FPS) and it could not identify the action (just ID and Operate)
And i tried run with video, this issue:
2020-07-30 16:25:00.278766: I tensorflow/core/platform/cpu_feature_guard.cc:145] This TensorFlow binary is optimized with Intel(R) MKL-DNN to use the following CPU instructions in performance critical operations:  AVX AVX2
To enable them in non-MKL-DNN operations, rebuild TensorFlow with the appropriate compiler flags.
2020-07-30 16:25:00.302019: I tensorflow/core/common_runtime/process_util.cc:115] Creating new thread pool with default inter op setting: 4. Tune using inter_op_parallelism_threads for best performance.
usage: main.py [-h] test_out/test222.mp4
main.py: error: the following arguments are required: test_out/test222.mp4
Anyone can you help me? Thanks so much

I met with the same question with you, I guess it may be because the project runs on CPU rather than GPU.
If you want to run it with video, you can try to rewrite the function choose_run_mode(args) in utils.py, but it still works with low FPS.


Downloaded node binaries are not available in the PATH

Hi,
I have an issue specific to the fact that I use Lerna. Here is an extract of my root build.gradle:
buildscript {
    repositories {
        jcenter()
    }
}

node {
    version = '8.1.3'
    download = true
}

task lernaBootstrap(type: NpmTask) {
    dependsOn npmInstall

    args = ['run', 'lerna', 'bootstrap']
}

When npm run lerna bootstrap is executed, multiple npm processes will be started to download the dependencies of each Node project. Lerna uses the binaries (npm) available in the PATH.
Currently, the directory where the binaries are downloaded is not available in the PATH. As a result, Lerna uses the system version of npm instead of the downloaded one.
My workaround has been the following to build.gradle:
afterEvaluate {
    Map environment = [:] << System.getenv()
    environment.PATH = "${node.variant.nodeBinDir}:${environment.PATH}"
    lernaBootstrap.environment = environment
}

I imagine a better fix could be to let the plugin add the download directory to the PATH.

It's strange to me, that nobody else has been looking for this solution


.Net Framework don't work

Type: Bug
Hello,
I just began my journey to learn how to code in C# and I am a little bit lost. In fact, I download the .Net Microsoft's extension and I just cannot use it. When I Go to the "terminal", I just write "dotnet new console" to create my first console but it is not working. As if the .Net Framework was not installed (but it is). I uninstall the Framework and re download it but I have the same issue again...
The version I downloaded is Microsoft.Net 8.0 and I have a C# extension  and a C# Dev Kit.
The message in the terminal is "The command could not be loaded, possibly because:

You intended to execute a .NET application:
The application 'new' does not exist.
You intended to execute a .NET SDK command:
No .NET SDKs were found.

Download a .NET SDK:
https://aka.ms/dotnet/download
Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found"
Thanks in advance for your help.
VS Code version: Code 1.90.2 (5437499feb04f7a586f677b155b039bc2b3669eb, 2024-06-18T22:34:26.404Z)
OS version: Windows_NT x64 10.0.22631
Modes:

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz (8 x 2304)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
15.80GB (6.48GB free)

Process Argv
--crash-reporter-id 4c50ae20-4fcb-4045-b7a8-cab3ca63c52a

Screen Reader
no

VM
0%

Extensions (3)

Extension
Author (truncated)
Version

csdevkit
ms-
1.7.27

csharp
ms-
2.34.12

vscode-dotnet-runtime
ms-
2.0.7

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyonecf:30548226
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
jchc7451:31067544
chatpanelt:31048053
dsvsc021:30996838
g316j359:31013175
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
newcmakeconfigv2:31071590
impr_priority:31082723

/extC#

It looks like this is caused by the C# extension. Please file the issue to the C# extension repository. Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our issue reporting guidelines for more information.
Happy Coding!


The fee from a basic change tx is higher than expected

See this test:
https://github.com/mrz1836/go-bt/blob/5a57029d39d4d9a89ba65e2f7c098c70419467a8/tx_test.go#L223
I would expect the fee to be closer to 0.5

just checking it, the issue is not that the fee is wrong, it's that the test is using signAuto which signs the tx if it can and apparently it's not signing the tx (empty scriptsig) for some reason. maybe the private key used is not the right one for the utxo

so basically if the tx were properly signed it should be the correct fees paid

fixed the test here 9dad45520269edd4184cba1cfe3b08e4d80c3aa6


Retries For All Endpoints

Purpose of PR
I was looking through open issues when I noticed issue 347. I noticed that there was a pull request up for this here. The solution works with adding it to each method function, but it would be cleaner if moved into  _internal_call. Also the logic could be cleaned up as well, so I decided to make a PR.
This PR is to allow Retries for all method calls by utilizing urllib3.Retry() to allow the following:

Setting a default list of status codes to retry on or list the user define a list
Default/user defined number of retries to allow
Default/user defined backoff value for how long the requests should wait before retrying.

{backoff factor} * (2 ** ({number of total retries} - 1)) found in urllib3 docs

By doing this is, it cleans up the retry logic a lot that is already implemented in the code
What Was Done

Setup function in client to build the the new requests session with the urllib3.Retry()
Restructured  _internal_call

Now catching specific exceptions not just generic ones
No longer using request call as context manager
Calling raise for error after the request call and then decoding the response to json() all in one try...except

Updated by using appropriate unittest methods that make things more clear rather than just using assertTrue and assertFalse

this was only done in the client files

Reorganized client tests to be grouped according to their Api defined here
Updated README to include how one could contribute to spotipy and what variables they need to have set for the tests to run.
Added requirement dependency for nose since it wasnt already defined in requirements.txt

Other Things to Note

By default I disable retries for the session/adapter for read errors and set it to False like they do by default in the requests library here

Yup! I'll review in a moment.

I've left a few minor review comments but otherwise looks good to me. Thanks a lot @Beahmer89, really appreciate all the work that went into this!

Thanks for the review @stephanebruckert and @ritiek! I am glad you guys like the approach for the retries! I forgot to add a note in the changelog about what I did. Let me know if want me to put up a PR for that. Sorry for the miss.

Thanks to you @Beahmer89 for the great contribution. I also forgot about the changelog. Don't worry about it I will add it when bumping the version. Still feel free to open a quick PR if you want to, I will merge it straight away!


Changing cipher strengths?

I have recently purchases a VPS (Dual core, 2GB ram) and I am running docker and testing some speeds.
I have a very similar setup in an OpenVZ instance on another host and I am getting better speeds, and I am trying to do some testing to see where the slowdowns are.
To begin, I wanted to lower the cipher and signing algorithms as a test.
docker run -v ovpn_data:/etc/openvpn --rm kylemanna/openvpn ovpn_genconfig -u udp://vpn.my.server -C 'AES-128-GCM' -a 'SHA1'
However after generating my configs, initializing PKI, running the container and generating the configs (Which list AES-128-GCM correctly) I start my container and check the logs.
Mon Aug 23 17:40:32 2021 client1/<IP_ADDRESS>:18731 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Mon Aug 23 17:40:32 2021 client1/<IP_ADDRESS>:18731 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key

Was just curious if i was doing this incorrectly?  But your docker container is great and one of the easiest VPN deployments I have ever done!

I found another post but it mentioned using --ncp-ciphers in their docker-compose.
I did sole googling and found I can add this to the openvpn configs directly (not sure about the command line or with this container
ncp-ciphers AES-128-GCM
Also for the speed issues, I couldnt get more than 2-4 MB/s on my multiple providers.  But my openVZ deployment on ramnod (exact same config) hit 7-9MB/s


engine that uses IPython directly

adding another engine that uses IPython directly will enable resource monitoring like CPU, RAM, etc. since the current engine relies on a connection to an IPython kernel, the papermill process is just sending code and waiting for responses

added in 0.0.2


Add: eaportal.org domain

The eaportal.org domain is given to students of the South American division of the Seventh-Day Adventist educational system.
Official site: http://www.educacaoadventista.org.br/
Spanish version of the site for non-Portuguese speaking countries: https://www.educacionadventista.com/
This specific domain is used by students to log into the school portal.

@LuiggiCardoso Thank you for your patience while waiting for a review and processing your request. Pull request merged.
Please start requesting the licenses in about an hour, to let the changes to propagate through our system.


COUNT AND MAX function not work

hello, I use COUNT and MAX funciton in sql, but  not working.
my table like this:
       tx.executeSql('CREATE TABLE IF NOT EXISTS Messages( '
            + 'id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, '
            + 'message_type VARCHAR(20), '
            + 'category VARCHAR(20), '
            + 'origin VARCHAR(1000), '
            + 'format VARCHAR(1000), '
            + 'time INTEGER UNIQUE, '
            + 'resolved VARCHAR(20), '
            + 'append VARCHAR(200), '
            + 'operator_type VARCHAR(20),'
            + 'record_id VARCHAR(256),'
            + 'date VARCHAR(100)) ; '
            , [], this.successCB, this.errorCB`

run the following code
SELECT MAX(id) FROM Messages
\\ or
SELECT Count(*) FROM Messages

always return
{"rows":{"length":1},"rowsAffected":0}

Your Environment

React Native SQLite Storage Version used: 3.3.9
React Native version used: 0.59.6
Operating System and version (simulator or device): Android
IDE used: VSCODE
Link to your project:

Debug logs

Yes, that query would return one row. And the first column inside of that row would be the result of MAX(id) or Count(*).

For questions about how to use SQL please post on stackoverflow. This is not a please to do it.

Currently I am stuck with this same issue I am getting {Count(*): 0} which is correct in my case but I am wondering how to pick this value 0? Any idea?

// hope this helps
tx.executeSql(
'SELECT count(*) FROM table_name',
[],
(tx, results) => {
console.log('count res', results.rows.item(0));
},
);

The correct answer would be
db.executeSql('SELECT count(*) as count FROM tablename', [],
(tx,results) => {
  let count = tx.rows.item(0).count;
},
(error) => {

});

Cheers.

const results = await db.executeSql(SELECT id FROM ${tableName});
return results[0].rows.length;


Use with Laravel 4

Can I use this with Laravel 4?
I'm getting the error [RuntimeException] Could not locate the path to the Laravel bootstrap file.
Is there any way to solve this?

This extension is for Laravel 5.

Is there any similar extension for L4?