OutOfMemoryError on new GPU with 15GB

Thanks for your work
I tried to run the code but got a memory error.
I am working with a new Nvidia Geforce RTX 4080 with more than 15 GB of Vram. Is this expected behaviour? If yes, how much VRAM is required. If no, do you know what I could change?
Thanks for your help
The user command is "pick up bin".

assistant:
INITIAL PLANNING 1:

The task requires the robot arm to pick up a bin. The gripper should interact with the top part of the bin, as it is usually the most accessible part and allows for a secure grip.

Let's start by detecting the bin in the environment.

``python
detect_object("bin")
``

After executing this code, we will receive the position, orientation, and dimensions of the bin. We will use this information to plan the trajectory of the robot arm.finish_reason: stop
[INFO/MainProcess] Finished generating ChatGPT output!
[INFO/MainProcess] Capturing head and wrist camera images...
[INFO/MainProcess] Finished capturing head camera image!
[INFO/MainProcess] Segmenting head camera image...
/home/aidara/anaconda3/envs/llm_zero_shot2/lib/python3.9/site-packages/transformers/modeling_utils.py:907: FutureWarning: The `device` argument is deprecated and will be removed in v5 of Transformers.
  warnings.warn(
/home/aidara/anaconda3/envs/llm_zero_shot2/lib/python3.9/site-packages/torch/utils/checkpoint.py:460: UserWarning: torch.utils.checkpoint: please pass in use_reentrant=True or use_reentrant=False explicitly. The default value of use_reentrant will be updated to be False in the future. To maintain current behavior, pass use_reentrant=True. It is recommended that you use use_reentrant=False. Refer to docs for more details on the differences between the two variants.
  warnings.warn(
/home/aidara/anaconda3/envs/llm_zero_shot2/lib/python3.9/site-packages/torch/utils/checkpoint.py:90: UserWarning: None of the inputs have requires_grad=True. Gradients will be None
  warnings.warn(
[INFO/MainProcess] Generating ChatGPT output...
user:
Running code block 1 of your previous response resulted in the following error:
Traceback (most recent call last):
  File "/home/aidara/test/language-models-trajectory-generators/main.py", line 138, in <module>
    exec(code)
  File "<string>", line 2, in <module>
  File "/home/aidara/test/language-models-trajectory-generators/api.py", line 60, in detect_object
    model_predictions, boxes, segmentation_texts = models.get_langsam_output(rgb_image_head, self.langsam_model, segmentation_texts, self.segmentation_count)
  File "/home/aidara/test/language-models-trajectory-generators/models.py", line 20, in get_langsam_output
    masks, boxes, phrases, logits = model.predict(image, segmentation_texts)
  File "/home/aidara/test/lang-segment-anything/lang_sam/lang_sam.py", line 119, in predict
    masks = self.predict_sam(image_pil, boxes)
  File "/home/aidara/test/lang-segment-anything/lang_sam/lang_sam.py", line 105, in predict_sam
    self.sam.set_image(image_array)
  File "/home/aidara/anaconda3/envs/llm_zero_shot2/lib/python3.9/site-packages/segment_anything/predictor.py", line 60, in set_image
    self.set_torch_image(input_image_torch, image.shape[:2])
  File "/home/aidara/anaconda3/envs/llm_zero_shot2/lib/python3.9/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/home/aidara/anaconda3/envs/llm_zero_shot2/lib/python3.9/site-packages/segment_anything/predictor.py", line 89, in set_torch_image
    self.features = self.model.image_encoder(input_image)
  File "/home/aidara/anaconda3/envs/llm_zero_shot2/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/aidara/anaconda3/envs/llm_zero_shot2/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/aidara/anaconda3/envs/llm_zero_shot2/lib/python3.9/site-packages/segment_anything/modeling/image_encoder.py", line 112, in forward
    x = blk(x)
  File "/home/aidara/anaconda3/envs/llm_zero_shot2/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/aidara/anaconda3/envs/llm_zero_shot2/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/aidara/anaconda3/envs/llm_zero_shot2/lib/python3.9/site-packages/segment_anything/modeling/image_encoder.py", line 174, in forward
    x = self.attn(x)
  File "/home/aidara/anaconda3/envs/llm_zero_shot2/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/aidara/anaconda3/envs/llm_zero_shot2/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/aidara/anaconda3/envs/llm_zero_shot2/lib/python3.9/site-packages/segment_anything/modeling/image_encoder.py", line 231, in forward
    attn = (q * self.scale) @ k.transpose(-2, -1)
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 1024.00 MiB. GPU 0 has a total capacity of 15.67 GiB of which 714.69 MiB is free. Process 291321 has 7.75 GiB memory in use. Including non-PyTorch memory, this process has 4.11 GiB memory in use. Of the allocated memory 3.70 GiB is allocated by PyTorch, and 121.07 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation.  See documentation for Memory Management  (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)

Hi, thanks for trying out the code, and apologies for the delayed response. The LangSAM model shouldn't take up too much memory, could you maybe try running
nvidia-smi

and ensure that no other process is using the GPU? The command should show a list of current processes using the GPU, and you can kill any processes which you don't need for the code to run, which should free up some memory:
sudo kill -9 PID

Hope this helps, and let me know if not!

Hi, were you able to get the LangSAM model to run? Happy to look into this further if not!

I have met the same problem and my GPU is RTX-3060 (6G)(Laptop-version).
This is the GPU usage before running python main.py --robot franka
Tue Jun 11 17:16:25 2024
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.171.04             Driver Version: 535.171.04   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 3060 ...    Off | 00000000:01:00.0  On |                  N/A |
| N/A   38C    P8              20W /  80W |    865MiB /  6144MiB |      1%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      1170      G   /usr/lib/xorg/Xorg                          385MiB |
|    0   N/A  N/A      1495      G   /usr/bin/gnome-shell                        103MiB |
|    0   N/A  N/A      3110      G   ...seed-version=20240607-130129.053000      253MiB |
|    0   N/A  N/A     16096      G   ...erProcess --variations-seed-version       91MiB |
|    0   N/A  N/A     48788      G   /proc/self/exe                               20MiB |
+---------------------------------------------------------------------------------------+

After launching main.py, GPU usage is as follows:
Tue Jun 11 17:20:43 2024
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.171.04             Driver Version: 535.171.04   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 3060 ...    Off | 00000000:01:00.0  On |                  N/A |
| N/A   41C    P0              33W /  80W |   4119MiB /  6144MiB |     13%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      1170      G   /usr/lib/xorg/Xorg                          397MiB |
|    0   N/A  N/A      1495      G   /usr/bin/gnome-shell                        114MiB |
|    0   N/A  N/A      3110      G   ...seed-version=20240607-130129.053000      202MiB |
|    0   N/A  N/A     16096      G   ...erProcess --variations-seed-version       91MiB |
|    0   N/A  N/A     48788      G   /proc/self/exe                               20MiB |
|    0   N/A  N/A     85049      C   python                                     2948MiB |
|    0   N/A  N/A     85120      G   python                                      328MiB |
+---------------------------------------------------------------------------------------+

After command input, the GPU memory is not enough,
The user command is "pick up a can".

assistant:
INITIAL PLANNING 1:

The task requires the robot arm to pick up a can. The gripper should interact with the can along its sides, as the can's diameter is likely to be less than the maximum graspable width of the gripper (0.08 m).

First, let's detect the can in the environment.

python
detect_object("can")

Stop generation here and wait for the printed outputs from the detect_object function call.finish_reason: stop
[INFO/MainProcess] Finished generating ChatGPT output!
[INFO/MainProcess] Capturing head and wrist camera images...
[INFO/MainProcess] Finished capturing head camera image!
[INFO/MainProcess] Segmenting head camera image...
/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/transformers/modeling_utils.py:907: FutureWarning: The `device` argument is deprecated and will be removed in v5 of Transformers.
  warnings.warn(
/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/torch/utils/checkpoint.py:429: UserWarning: torch.utils.checkpoint: please pass in use_reentrant=True or use_reentrant=False explicitly. The default value of use_reentrant will be updated to be False in the future. To maintain current behavior, pass use_reentrant=True. It is recommended that you use use_reentrant=False. Refer to docs for more details on the differences between the two variants.
  warnings.warn(
/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/torch/utils/checkpoint.py:61: UserWarning: None of the inputs have requires_grad=True. Gradients will be None
  warnings.warn(
[INFO/MainProcess] Generating ChatGPT output...
user:
Running code block 1 of your previous response resulted in the following error:
Traceback (most recent call last):
  File "/home/ckx/workbench/language-models-trajectory-generators/main.py", line 115, in <module>
    exec(code)
  File "<string>", line 2, in <module>
  File "/home/ckx/workbench/language-models-trajectory-generators/api.py", line 60, in detect_object
    model_predictions, boxes, segmentation_texts = models.get_langsam_output(rgb_image_head, self.langsam_model, segmentation_texts, self.segmentation_count)
  File "/home/ckx/workbench/language-models-trajectory-generators/models.py", line 20, in get_langsam_output
    masks, boxes, phrases, logits = model.predict(image, segmentation_texts)
  File "/home/ckx/3dparty/lang-segment-anything/lang_sam/lang_sam.py", line 118, in predict
    boxes, logits, phrases = self.predict_dino(image_pil, text_prompt, box_threshold, text_threshold)
  File "/home/ckx/3dparty/lang-segment-anything/lang_sam/lang_sam.py", line 93, in predict_dino
    boxes, logits, phrases = predict(model=self.groundingdino,
  File "/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/groundingdino/util/inference.py", line 66, in predict
    outputs = model(image[None], captions=[caption])
  File "/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/groundingdino/models/GroundingDINO/groundingdino.py", line 313, in forward
    hs, reference, hs_enc, ref_enc, init_box_proposal = self.transformer(
  File "/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/groundingdino/models/GroundingDINO/transformer.py", line 258, in forward
    memory, memory_text = self.encoder(
  File "/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/groundingdino/models/GroundingDINO/transformer.py", line 576, in forward
    output = checkpoint.checkpoint(
  File "/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/torch/_compile.py", line 24, in inner
    return torch._dynamo.disable(fn, recursive)(*args, **kwargs)
  File "/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/torch/_dynamo/eval_frame.py", line 328, in _fn
    return fn(*args, **kwargs)
  File "/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/torch/_dynamo/external_utils.py", line 17, in inner
    return fn(*args, **kwargs)
  File "/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/torch/utils/checkpoint.py", line 451, in checkpoint
    return CheckpointFunction.apply(function, preserve, *args)
  File "/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/torch/autograd/function.py", line 539, in apply
    return super().apply(*args, **kwargs)  # type: ignore[misc]
  File "/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/torch/utils/checkpoint.py", line 230, in forward
    outputs = run_function(*args)
  File "/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/groundingdino/models/GroundingDINO/transformer.py", line 785, in forward
    src2 = self.self_attn(
  File "/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/groundingdino/models/GroundingDINO/ms_deform_attn.py", line 272, in forward
    output = multi_scale_deformable_attn_pytorch(
  File "/home/ckx/miniconda3/envs/py39/lib/python3.9/site-packages/groundingdino/models/GroundingDINO/ms_deform_attn.py", line 71, in multi_scale_deformable_attn_pytorch
    (torch.stack(sampling_value_list, dim=-2).flatten(-2) * attention_weights)
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 208.00 MiB. GPU 0 has a total capacty of 5.77 GiB of which 215.69 MiB is free. Including non-PyTorch memory, this process has 4.41 GiB memory in use. Of the allocated memory 3.94 GiB is allocated by PyTorch, and 334.52 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

Maybe 6G is too small to run such a big system. Time to update my hardware :(
May I ask how much GPU memory this script would require? I want to get some information so I can buy a suitable GPU.

same issue here!

No worries, managed to get it to run exactly like you described yesterday. The bottleneck is the Langsam library, hardcoding cpu as device in lang_sam.py does the job. The rest including XMem can stay on CUDA. This way, only the segmentation step in detect_object takes maybe 2min, the rest is pretty fast.

Thank you for the kind reply. I managed to run it on a workstation using Docker and used -X11 to render the GUI on my local screen. It works well—big thanks to all of you.


Sphere X Happier

Song Name
Sphere X Happier
Artist Name
Marshmallo
Source
Youtube
Youtube Link
https://youtu.be/3ARqE-cxgjk?si=EiDrG4Qi__KbkxCu
Direct File Link
No response
Song ID
739991
Extra
No response

accept

Accept

accept


Mulltiple accounts?

How can I make the script to run different accounts?
The cookie.json is giving me problems, may i create a list of users and passwords and change the way cookies are stored to save each cookies by the name of the users?

To make it work, you would have to modify the code so that each cookie is associated with an ID. This can be done with named directories or just files like ID-cookie.json. Then you just need to retrieve data from the wanted cookie. However, I think IG might be able to spot it because of your IP / robotic behavior, so be careful.


Some Refactors

Overviews

Alter public to private in some sections.
Add Model interface for cbow, and skip-gram.

And also, rename State to Word2Vec.

Delete ignoredWords

Coverage decreased (-8.4%) to 41.19% when pulling 062c7cd9eddbacca69b7ad2e5f43190129e96c94 on word2vec into 491270ccd7354ee1a31c549bb4d7026ef3baa7c5 on master.

Coverage decreased (-8.4%) to 41.19% when pulling 062c7cd9eddbacca69b7ad2e5f43190129e96c94 on word2vec into 491270ccd7354ee1a31c549bb4d7026ef3baa7c5 on master.


Ripgrep based output analysis in smoke-test-analyzer

Added a last-resort method to detect include statements containing the filename of the tested file, such that if it was included, the syntax errors would be attributed to the file being taken out of context. This change was made during the preparation for #1839.

Codecov Report
Patch and project coverage have no change.

Comparison is base (bb28b0b) 93.08% compared to head (6741fa4) 93.08%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1840   +/-   ##
=======================================
  Coverage   93.08%   93.08%
=======================================
  Files         353      353
  Lines       25656    25656
=======================================
  Hits        23881    23881
  Misses       1775     1775

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

Looks like we also need to install ripgrep in the CI

Yes, I have missed that at first glance, should be all green now.

Thanks!


Emulator fails to start

Description
Emulator hangs on start
Steps to reproduce
On OSX, using node -v v6.9.1, run functions-emulator start.
I currently see Starting Google Cloud Functions Emulator... indefinitely.
Thanks!

I run sudo killall -9 node and restarted the emulator and it worked! Just a frozen process I suspect.

Re-opening this issue as I keep having to kill the node process because the emulator stops responding.

I'm going to need you to provide as many details as possible for me to be able to reproduce this locally. Node.js version, Emulator version, output of functions config list -j, code of the function you're deploying, contents of package.json, sequence of functions commands you're using to start, deploy, and call functions, etc.

$ functions-emulator config list -j
{
  "debug": false,
  "debugPort": 5858,
  "grpcHost": "localhost",
  "grpcPort": 8009,
  "inspect": false,
  "inspectPort": 9229,
  "logFile": "logs/cloud-functions-emulator.log",
  "region": "us-central1",
  "restHost": "localhost",
  "restPort": 8008,
  "service": "rest",
  "storage": "configstore",
  "supervisorHost": "localhost",
  "supervisorPort": 8010,
  "timeout": 60000,
  "useMocks": false,
  "verbose": false,
  "projectId": "euw-gcp-k8s-001"
}

Node -v => v6.9.1
package.json
{
  "name": "channel-site-frame",
  "version": "1.1.0",
  "description": "",
  "main": "build.js",
  "dependencies": {
    "@theladbiblegroup/component-adblock-detector": "1.0.3",
    "@theladbiblegroup/component-back-to-referrer": "1.0.2",
    "@theladbiblegroup/component-breaking-news": "1.2.3",
    "@theladbiblegroup/component-carousel": "1.2.1",
    "@theladbiblegroup/component-cookie-share": "1.0.2",
    "@theladbiblegroup/component-dfp": "1.0.3",
    "@theladbiblegroup/component-dynamic-articles": "1.1.0",
    "@theladbiblegroup/component-handler": "1.0.2",
    "@theladbiblegroup/component-native-article": "1.5.1",
    "@theladbiblegroup/component-published-time": "1.0.2",
    "@theladbiblegroup/component-share-controls": "1.1.2",
    "@theladbiblegroup/component-share-count": "1.0.2",
    "@theladbiblegroup/component-show-more-button": "1.0.2",
    "@theladbiblegroup/component-svg-icons": "1.0.3",
    "@theladbiblegroup/component-trending-latest": "1.0.2",
    "@theladbiblegroup/content-matter": "1.2.4",
    "@theladbiblegroup/js-linter": "1.0.2",
    "@theladbiblegroup/metalsmith-collections": "0.7.3",
    "@theladbiblegroup/scss-linter": "1.0.2",
    "ajv": "^3.4.0",
    "babel-core": "^6.17.0",
    "babel-preset-es2015": "^6.16.0",
    "babel-preset-react": "^6.16.0",
    "babel-preset-stage-2": "^6.17.0",
    "babelify": "7.3.0",
    "browserify": "13.1.0",
    "chai": "^3.5.0",
    "consolidate": "^0.13.1",
    "es6-promise": "^3.1.2",
    "eslint": "^3.7.1",
    "fbjs": "^0.8.6",
    "fs": "0.0.2",
    "fs-extra": "^0.30.0",
    "fs-walk": "0.0.1",
    "gulp": "^3.9.0",
    "gulp-autoprefixer": "^3.1.0",
    "gulp-browserify": "^0.5.1",
    "gulp-clean": "^0.3.1",
    "gulp-css-base64": "^1.3.4",
    "gulp-cssnano": "^2.1.1",
    "gulp-eslint": "^3.0.1",
    "gulp-front-matter": "^1.2.3",
    "gulp-gzip": "^1.2.0",
    "gulp-htmlmin": "^1.3.0",
    "gulp-htmltidy": "^0.2.2",
    "gulp-imagemin": "^2.4.0",
    "gulp-inject": "^3.0.0",
    "gulp-inline-image-html": "^0.2.1",
    "gulp-inline-source": "^2.1.0",
    "gulp-minify": "0.0.5",
    "gulp-minify-css": "^1.2.3",
    "gulp-rename": "^1.2.2",
    "gulp-rev": "^7.0.0",
    "gulp-rev-replace": "^0.4.3",
    "gulp-run-sequence": "^0.3.2",
    "gulp-sass": "^2.2.0",
    "gulp-sass-lint": "^1.2.0",
    "gulp-serve": "^1.2.0",
    "gulp-sourcemaps": "^1.6.0",
    "gulp-style-inject": "0.0.3",
    "gulp-svg-symbols": "^2.0.0",
    "gulp-uglify": "^1.5.3",
    "gulp-util": "^3.0.6",
    "gulpsmith": "^0.5.5",
    "handlebars": "^4.0.2",
    "harmonize": "^1.4.4",
    "imagemin-pngquant": "^4.2.0",
    "imagemin-svgo": "^4.2.0",
    "isomorphic-fetch": "^2.2.1",
    "lodash.assign": "^3.2.0",
    "lodash.escape": "^4.0.1",
    "metalsmith": "^2.0.1",
    "metalsmith-changed": "^0.2.0",
    "metalsmith-excerpts": "^1.0.0",
    "metalsmith-fingerprint": "^1.0.3",
    "metalsmith-layouts": "^1.6.4",
    "metalsmith-markdown": "^0.2.1",
    "metalsmith-partial": "^0.1.0",
    "metalsmith-permalinks": "^0.4.0",
    "metalsmith-publish": "^0.1.3",
    "metalsmith-register-helpers": "^0.1.2",
    "metalsmith-serve": "0.0.4",
    "mocha": "^2.5.3",
    "moment": "^2.12.0",
    "node-promise": "^0.5.12",
    "node-rest-client": "^1.5.1",
    "raven": "^0.11.0",
    "react": "^0.14.7",
    "require-dir": "0.3.0",
    "shrinkwrap": "^0.4.0",
    "sinon": "^1.17.6",
    "through2": "^2.0.1",
    "vinyl-buffer": "^1.0.0",
    "vinyl-source-stream": "^1.1.0",
    "yargs": "^3.32.0"
  },
  "scripts": {
    "test": "./node_modules/.bin/mocha ./src/tests/**; echo ''",
    "lint-js": "./node_modules/.bin/eslint --fix ./src; echo ''",
    "lint-scss": "./node_modules/.bin/sass-lint -c<EMAIL_ADDRESS>'./src/scss/**/*.scss' -v -q; echo ''",
    "fractal": "gulp fractal && gulp serve"
  },
  "repository": {
    "type": "git",
    "url": "http://github.com/TheLADbibleGroup/channel-site-frame.git"
  },
  "author": "Jason Brown",
  "license": "ISC",
  "devDependencies": {
    "@frctl/consolidate": "^1.0.1",
    "@frctl/fractal": "^1.0.11",
    "browserify": "^13.3.0",
    "gulp-babel": "^6.1.2",
    "gulp-browserify": "^0.5.1",
    "gulp-string-replace": "^0.4.0",
    "through2": "^2.0.3"
  }
}

My cloud function code... (some of this is hacky as we're trying to wrap some static site build functions which are in gulp). But it does work. The problems arise when we attempt to re-deploy a function to the emulator etc
/**
 * Cloud functions
 *
 * This is the Google Cloud Functions file
 * for building the site within GC.
 *
 * @author    Ewan Valentine<EMAIL_ADDRESS> * @copyright LADbible Group - 2017
 */
const gulp = require('gulp');
const yargs = require('yargs');
require('./gulpfile.js');

/**
 * generateContentMatter
 *
 * @param {Event} event
 * @param {func} callback
 */
exports.generateContentMatter = function generateContentMatter(req, res) {
  const { id } = req.body
  return Promise.resolve()
    .then(() => {
      if (req.method !== 'POST') {
        const err = new Error('Expecting a POST request?')
        err.code  = 405
        throw err
      }
      if (gulp.tasks['css']) {
        gulp.start('css', () => {
          console.log('Finished CSS.')
          return true
        });
      }
    })
    .then(() => {
      if (gulp.tasks['build-resource']) {
        yargs.default('--id', id)
        gulp.start('build-resource', () => {
          console.log('Finished!')
          res.send('Done m9').end()
        })
      }
    })
    .catch(err => {
      res.status(err.code).send(`Shit: ${err.message}.`);
    })
}

What version of the Emulator do you have installed?

1.0.0-alpha.15

I have similar problems with killing the process.
If an error occurs in a function I get this message:
2017-04-12T20:29:52.312Z - error: Error: socket hang up
    at createHangUpError (_http_client.js:302:15)
    at Socket.socketOnEnd (_http_client.js:394:23)
    at emitNone (events.js:91:20)
    at Socket.emit (events.js:186:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

After that, functions kill does not work.
and I end up with a orphan process which is only killed with kill -9
simply deploy a function like this
exports.helloWim = functions.https.onRequest((request, response) => {
    cnt++;
    response.send("Hello from WIM!");
});

and call it. when the error appears, the emulator is in nowhere land

I'll be publishing another version soon that will hopefully solve your issue.

I released 1.0.0-alpha.16, can you see if it works better for you?


fit progress bar to terminal width changes?

Is there a way to have the progress bars react to terminal width changes so that each update does not spill onto the next line?
Thanks

I manually fixed this problem with a bar width ratio like 1/4 of terminal width.
Also I have long postfixes, and calculate the remaining length and concat string like:
std::string postfix_text_cut = postfix_text.substr(0, postfix_length + remaining);
Is not a general solution, so this is the reason for no PR, but maybe helped for some extra idea how to solve it.
Definitely is that issue very important for the smaller console windows.


Added regex evaluation for active menu items.

The old version used Str::is which can not evaluate regex, it only has support for wildcards such as *.
I have edited ActiveChecker so that you can simply add regex: followed by the regex in your config file and it will proces the regex automatically.
For example:
'active'  => ['/posts', 'regex:@^posts/[0-9]+$@'],

This will make these links active:

/posts
/posts/1
/posts/65402

But not these links:

/posts/create
/posts/1abc

If there's any questions, please add them below :)
Please refer to this issue.

@rpm192 Thank you for contribution. Can you please add test cases?

Hi,
I spent the past few days reading up on test cases in Laravel since I haven't really used them before.
The one you added was the same that I came to and was going to add later, good work.
Should we also think about renaming the testExplicitActiveRegex() function to something along the lines of testWildcard, since it uses the Str facade and not regex?

Hi. good idea to rename the function - it's done. :)

Alright, thanks :)


Unpin Black version and apply formatting changes

This removes the version pin for Black used in the checks, and updates the formatting of al affected files.

Coverage remained the same at 57.16% when pulling 7fc90a13608d18a2ac2c0a8928fcbcd6d8dd1162 on pwt:remove_black_version_pin into 0a08d986358ece47b4624f333b6f096b8b62c701 on SoCo:master.

Turns out that Black doesn't play well with Pip's '>=' versioning syntax unless the 'b0' is included in the Black version string. It does then successfully pick up the latest version, until Black changes its versioning scheme.


[WIP] Rewrite registry and DSLs

This PR will replace the different registries and DSLs for hooks and jobs with a single registry and DSL used across both data source types.
The new implementation will replace the different registry for jobs and hooks with a single registry which manages different groups of data sources. The registry builds sub-registries, called source types, which define how data gets into a dashboard. The current source types being built in the new logic are jobs (both the Elixir and command implements) and hooks. The new implementation will also include a single DSL library to define both hooks and jobs using much of the same logic to inject helpers such as Kitto.Notifier.Broadcast/2 into the data sources.
Redefining the implementation of DSLs and registries will help to improve test ability and coverage as well as DRY up the code.

I'm starting the PR off of the hooks branch as this will probably be a 0.3.1 release. I will make sure that it will be backwards compatible to 0.3.0 (by creating an alias from the new Kitto.DSL module to both the Kitto.Jobs.DSL and Kitto.Hooks.DSL modules).

Coverage increased (+1.3%) to 87.859% when pulling ce474ba8b15b41c75d8d48529b83d4587a6b1017 on dsl-rewrite into e035f4c03974d4daf4e4851506659fdb384df30b on master.

Coverage increased (+1.3%) to 87.859% when pulling 63138a447faa9054f5c202bb136610ff47d287f6 on dsl-rewrite into e035f4c03974d4daf4e4851506659fdb384df30b on master.

Ebert has finished reviewing this Pull Request and has found:

1 possible new issue (including those that may have been commented here).

You can see more details about this review at https://ebertapp.io/github/kittoframework/kitto/pulls/57.

I'm going to close this and #25 for now. I think we need to rethink how we can expand on the current running system so that we can expand with webhooks and whatever else the future may bring, but I don't think that conversation can happen within a PR.


settings: Remove 'bootstrap-focus-style' from div element.

This PR fixes the code to add 'bootstrap-focus-style' class to select element instead of div.
This was introduced in af36e9f8234.

Self-review checklist

[ ] Self-reviewed the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

[ ] Explains differences from previous plans (e.g., issue description).
[ ] Highlights technical choices and bugs encountered.
[ ] Calls out remaining decisions and concerns.
[ ] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[ ] Each commit is a coherent idea.
[ ] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[ ] Visual appearance of the changes.
[ ] Responsiveness and internationalization.
[ ] Strings and tooltips.
[ ] End-to-end functionality of buttons, interactions and flows.
[ ] Corner cases, error conditions, and easily imagined bugs.

Merged, thanks @sahil839!


procfs:add missing ',' to end of line

Summary
procfs:add missing ',' to end of line
Impact
typo fix

https://github.com/apache/nuttx/issues/15189


Issues with changed PublicKeyToken value in v4.x

Actually it has been already mentioned by guys here - #8. But I'm not sure that changing major version of an assembly is the best solution.
Here are steps to reproduce the problem:
1 . Create "Windows -> Classic Desktop -> WPF Application" project in Visual Studio.
2 . Add "Prism.Unity" v6.0.1 NuGet package.
3 . In the "Package Manager Console" run Update-Package command.
4 . Add new class:
public class Bootstrapper : Prism.Unity.UnityBootstrapper
{
    protected override DependencyObject CreateShell()
    {
        return new MainWindow();
    }
}

5 . In the App.xaml file remove the following attribute:
StartupUri="MainWindow.xaml"

6 . In the App.xaml.cs file add the following code:
protected override void OnStartup(StartupEventArgs e)
{
    base.OnStartup(e);

    var bootstrapper = new Bootstrapper();
    bootstrapper.Run();

    Application.Current.MainWindow.Show();
}

7 . Try to run a project.
Application crashes with an exception:
Could not load file or assembly 'Microsoft.Practices.Unity, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"Microsoft.Practices.Unity, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

I believe it's caused by the new assembly PublicKeyToken value. I've made a research and here are assembly full names for all versions of Unity:
Unity.4.0.1
Microsoft.Practices.Unity, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=6d32ff45e0ccc69f

Unity.4.0.0
Microsoft.Practices.Unity, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=6d32ff45e0ccc69f

Unity.3.5.1404.0
Microsoft.Practices.Unity, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35

Unity.3.0.1304.1
Microsoft.Practices.Unity, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35

Unity.3.0.1304.0
Microsoft.Practices.Unity, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35

Unity.2.1.505.2
Microsoft.Practices.Unity, Version=2.1.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35

Unity.2.0
Microsoft.Practices.Unity, Version=2.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35

As I can see starting from version 4.0.0 PublicKeyToken value has been changed. Now it causes some inconveniences that I have solving this problem. Is it a good practice to change PublicKeyToken value of an assembly? If you have to change it then maybe it's a good idea to create a separate NuGet package?
After I've read this explanation I guess that guys had the same problem with Prism. And they have created a new NuGet package marking old one as deprecated:

Old Prism
New Prism

I would escalate this to more than just an inconvenience.  There is no longer a slow migration path to Unity 4.x.  It's an all or nothing migration.  In an enterprise system where we have a large quantity of assemblies that reference Unity, it will be difficult for us big bang migrate them all to 4.x.
I agree this should probably be a different nuget package, but I would also advocate for a new assembly file name.  A new assembly file name will give us an easier way to deploy the old and new side-by-side and slowly migrate.

@tylerohlsen I agree. And again, if we take Prism as an example they've done exactly what you suggest -  they've renamed assembly and namespace from Microsoft.Practices.Prism to Prism.

I totally agree that both assembly and namespace should be renamed. This would ensure we don't have any conflicts with the 3.0 version.

I already asked Microsoft for the original signing key. If the can provide us with the key, our all problems should gone with that. I hope they can make it. Thanks
El oct 15, 2015 6:51 PM, Pavels Ahmadulins<EMAIL_ADDRESS>escribió:

@tylerohlsen I agree. And again, if we take Prism as an example they've done exactly what you suggest - they've renamed assembly and namespace from Microsoft.Practices.Prism to Prism.
—
Reply to this email directly or view it on GitHub.

I'm a Microsoft employee and I have an interest in helping out where I can with Unity.  Please let me know if you want my help and I can try to keep the conversations moving internally.

I just received an official answer from the previous owner at Microsoft. It's not possible for him to provide the previous signing key. I think we will go the same way as Prism by renaming the assemblies and namespaces, and generating a new set of nuget packages. We will keep it on our roadmap.

So the plan is to rename assemblies, namespaces, and NuGet packages?
If so, then that will be a breaking change from the new 4.0 assemblies.  Which would technically be a break in semantic versioning - unless you plan to increment the major version again.  I would recommend hiding the 4.0 NuGet packages until this change is done.  Otherwise those that go through the headache of upgrading to 4.0 will have to do it again after this change.


Add text burn into video

For generating short clips / adding captions directly to video. Would be great for sharing / replacing things like Headliner.

E.g. https://www.geeksforgeeks.org/moviepy-inserting-text-in-the-video/, and the captions are already in the config, so shouldn't be too hard.


Sixgill Galaxy tools

Sixgill (Six-frame Genome-Inferred Libraries for LC-MS/MS) is a tool for using shotgun metagenomics sequencing reads to construct databases of 'metapeptides': short protein fragments for database search of LC-MS/MS metaproteomics data.
https://github.com/dhmay/sixgill/wiki

I fixed same variable names, this looks great! And conda is working!!!


put volume location in .env file

I think some number of folks probably run secondary hard drives to store chain info.  It would be super handy to have a base file location or something in .env.  This would allow me to specify that all containers use /mnt/2tb/ instead of the default /var/lib/docker/volumes/ as the location to store their volume.  Without this I have to go in and make changes to the volumes in all of the .yml files that I use, which makes my branch out of sync.  Seems like a simple and great feature to add.

The easiest way to do this is to change the docker root volume: https://eth-docker.net/docs/Usage/Prerequisites#change-docker-storage-location
Bind mounts get messy with permissions, that's why I am sticking with docker volumes.


[Fall 2021] Step 3: Clean up unclassified errors in the model parser

In our model parser: https://github.com/facebook/pyre-check/blob/main/source/interprocedural_analyses/taint/modelParser.ml
we still have a lot of uses of UnclassifiedError (https://github.com/facebook/pyre-check/blob/main/source/interprocedural_analyses/taint/modelParser.ml#L214) which is a relic from before we had our new, well-typed errors.
The goal of this project is just to clean up all those cases and replace them with more specific, well-typed errors, adding more variants to ModelVerificationError (https://github.com/facebook/pyre-check/blob/main/source/interprocedural_analyses/taint/modelVerificationError.ml) as necessary.
Please also update and add existing unit tests and integration as necessary to match the new error messages.

Closed via https://github.com/facebook/pyre-check/commit/848906a7fb9285cf01b5d8451bb4a2c87155fb29


Pludi feature ignore missing delete

This change is

Merge the change from @pludi with some README updates.

I think we need to make a note that we do not create the file if it doesn't exist. Otherwise the user might think we go ahead and create the file.
In light of this, this PR seems pretty wrong now. And we probably should raise an error, operating on a non-existant file, and ignoring it, the user will not get what they expect.

I want to delete a line in a file
File doesn't exist
Typically you'd expect even rm to error if it doesn't exist and you've explicitly asked it to delete a file, or sed will complain if the target doesn't exist.

And we probably should raise an error, operating on a non-existant file, and ignoring it, the user will not get what they expect.

Which is why I didn't change the default behavior of raising an error if the file didn't exist, and requiring the option to be explicitly set to change this.


Additional commands appear for the second debugging

In the first debugging, the terminal command is as follows

When debugging for the second time, the cd command appears

If you delete the terminal and debug again, it is the same as the first debugging.
The problem is that if you repeat the debugging in the same terminal, the subsequent debugging will show additional cd commands.
In addition, the following occurred during the test.

@Tyriar This is showing nonce in the terminal it looks like.

This is a shell integration issue. Basically, the DAP run-in-terminal handling done by DAP client in core is what sends the command to the terminal.

This issue seems to originate from an upstream component and is not something VSCode can fix by making a change to our code. As such, I will go ahead and close it. Please try to reproduce in Windows Terminal and report to microsoft/terminal with repro steps.
If you cannot reproduce in Windows Terminal, chances are it's fixed in a later version of Windows. You can read more about how we consume conpty here. Additionally, soon we plan on shipping conpty v2 with VS Code which should bring our behavior in line with Windows Terminal. Thanks for understanding.
/label upstream terminal-conpty windows

Would such an upstream issue also potentially be responsible for something like https://stackoverflow.com/q/79290118/11107541 ?


Can not use Digital Pager App to update firmware even if unrooted.

After unrooted, the app can connect the device using usb cable. But when trying to update the firmware, it seems that the app can not check for updates.

There should be no updates if you already flashed the latest firmware.. what do you mean by "the app cannot check for updates"?

I assumed the issue has been resolved as it's been a while. Please re-open the issue if problem still exists and we can discuss more.


Major changes

This PR integrates the following changes:

UI changes: the main interface has been completely changed to clarify the different steps of the process.
UI additions:

the layer for annotation can now be selected, i.e. it's possible to have multiple different annotations.
in general "prediction" has been replaced with "segmentation"
the state of the model i.e. loaded, unsaved, none etc is now indicated
buttons that cannot be used e.g. prediction without trained model, are grayed out
the model is kept when layers are deleted. This means that multiple images can be tested with the same model
the model can be reset
tooltips have been added
a set of radio buttons clearly indicated the "dimension" situation. In particular they allow to clearly decide if a stack (single layer) is a set of channels or not

Algorithm changes: the main modification is the way multi-channel images are handled. Before multi-channel images were averaged to a single image and passed through a single channel input. Only in case of 3 channels, e.g. RGB, the three channels were used as actual input to a layer with 3 channel inputs. This meant that for C=2 or C>3 channels a lot of information was lost. In this PR, now all channels are passed separately through the network, all generating features used then for classification. The same logic is applied to any C>1 case, including RGB for clarity.

Welcome to Codecov :tada:
Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.
Thanks for integrating Codecov - We've got you covered :open_umbrella:


How to live dev frontend

Hello,
How to live dev frontend without rebuilding the entire go app ?
Thank's

Unfortionally this isn't possible.


Design System

A first version...

Can we have a public link to the design system and everything open sourced?

This is not just the design system but all kyodo designs (branding, UI, website, etc...)
https://www.figma.com/file/F4ZdyaBpDjFw8l21IsTmIO/Kyōdō-Protocol?type=design&node-id=6%3A4&mode=design&t=wXKLJihrczCxRd4i-1

Please post a README.md file in the kyodo-protocol-assets linking to this Figma, and explaining all other assets in the repo.
Remember, this is an open source project, everything will be publicly advertised and available for community members contribution

I already did that, I'll check it out...


Add support for query params in rewrite targets

Re-parse the rewrite target to add query params, fixes #372

Thank you :)

You're very welcome!


differenceWith

differenceWith has a strange result , check code below:
    let cmp = (a, b) => a%2 == b%2
    R.differenceWith(cmp, [1,2,3,4], [5,7]) //=> [2]  //maybe we want [2,4]

I find that pred function will be also invoked to the out list values.
Is that confused to you?

You're right.  That doesn't seem right.  It should return [2, 4].
Are you interested in trying to create a Pull Request to fix this?

Absolutely. That doesn't seem right. It should return [2, 4].
Are you interested in trying to create a Pull Request to fix this?

Fine, I will fix this.

Absolutely. That doesn't seem right. It should return [2, 4].
Are you interested in trying to create a Pull Request to fix this?

Fine, I will fix this.

this problem is fixed in new version.  I should update my libs now.

Hello,
We're seeing this issue in v0.26.1.  Is this resolved in v0.27.0?  If so, is that release something that can be pushed to npm?
Thank you!

This isn't fixed in the current version. You can throw OP's example in the ramda repl and easily reproduce the issue.

I'll try to look into this tonight.  I don't recall any recent changes that would have addressed this.

I'm pretty sure the described behavior is by design.
According to the given predicate, 2 and 4 are duplicates.
R.differenceWith returns a Set (with no duplicates, where duplication is defined by the supplied predicate).
In essence, we have three arrays: first and second (the inputs) and out (the output).
Each element in first is compared to each element in second AND each element in out. The element from first is only added to out if a duplicate (as defined by the supplied predicate function) is not found in second OR out.
Here are some notes and links I posted in the gitter channel before I saw this issue.

On September 14, 2014, it looked like this:
    R.differenceWith = curry3(function differenceWith(pred, first, second) {
        return uniqWith(pred)(reject(flip(R.containsWith(pred))(second), first));
    });

So, it was returning a Set of unique values, but it wasn't using the predicate to determine uniqueness in out.
The current behavior was added on October 18, 2014:
    R.differenceWith = curry3(function differenceWith(pred, first, second) {
	var out = [];
        var idx = -1;
        var firstLen = first.length;
        var containsPred = R.containsWith(pred);
        while (++idx < firstLen) {
            if (!containsPred(first[idx], second) && !containsPred(first[idx], out)) {
                out.push(first[idx]);
            }
        }
        return out;
    });

Actually, I got that wrong. The current behavior was added earlier than October 18, 2014. On that date, the implementation I pasted above replaced this similar (identical in functionality?) one, just written differently:
    R.differenceWith = curry3(function differenceWith(pred, first, second) {
        return uniqWith(pred)(reject(flip(R.containsWith(pred))(second), first));
    });

Your explanation makes sense to me now but the resulting behavior where the predicate is also applied to deduping operation was pretty non-intuitive for me (at least with the use case we had).
It would be great if there was a way to either supply a different predicate for the deduping operation or to just turn it off entirely.
Thank you for the detailed explanation!

@sarus I agree that the behavior could be explained more explicitly in the docs. There's a new PR for that: https://github.com/ramda/ramda/pull/2893


How is this project related to telegram ?

I was just wondering how is this project related to telegram, how is it gonna obtain Telegram-Related-Data if we run it on our own server, and if it's gonna obtain data from telegram's own servers, then why not just use the telegram's own Bot API ?
And is it safe to use this ? I mean is it guaranteed that user's data would  be safe ? Or it will be accessible as raw data on server-side ?

This is exactly the same server as run at https://api.telegram.org. All other answers can be derived from that.

Does bots which uses its own bot API server makes user risk of getting their IP being logged?
Assume when I download a file from such bot, are there chance that I download the file directly from the unofficial telegram bot API server?
If it does then I guess telegram should flag such bot to notice user the risk of using such bots.

Users interact with Telegram API. Bots interact with Telegram API. Users don't interact with bots directly.

@dashezup

Assume when I download a file from such bot, are there chance that I download the file directly from the unofficial telegram bot API server?

Excuse me, but is there any difference? If the bot sends you (a Telegram user) a file, does it matter whether this bot runs the official API endpoint or its own? I guess it doesn't matter.

@MasterGroosha
if the server send the user a dedicated file which has an unique ID and the user download the file directly from the unofficial server, the IP which get the file is very likely the user's actual IP (unless the user was using proxy/VPN).
It's important that when we were using official telegram client, we only connect to official telegram server (except for P2P calls or socks/mtproto proxy) to avoid IP leak.
But since levlan has point out that users don't interact with bots directly, it probably won't be this case.

You can find a nice diagram in https://github.com/tdlib/telegram-bot-api/issues/1#issuecomment-721873231. The only difference between using a local Bot API server and the api.telegram.org server is a location of the provided in this repository TDLib-based Bot API server.


Correction for raw affiliation LRCS UMR CNRS 7314, UPJV, RS2E, Amiens, France; LTI-EA 3899, UPJV, Amiens, France

Correction needed for raw affiliation LRCS UMR CNRS 7314, UPJV, RS2E, Amiens, France; LTI-EA 3899, UPJV, Amiens, France
raw_affiliation_name: LRCS UMR CNRS 7314, UPJV, RS2E, Amiens, France; LTI-EA 3899, UPJV, Amiens, France
new_rors: 02feahw73;01gyxrk03;02m9cs548
previous_rors: 02feahw73;01gyxrk03
works_examples: W2889263977;W3089188636
contact: 625eee54a7867a0a3a95bdb9e172e42a:9ab06e11837c74e93510ccc0310239df @ u-picardie.ft

This issue was accepted and ingested by the OpenAlex team on 2024-10-10. The new affiliations should be visible within the next 7 days.


Center page

In the horizontal view of the document the page is moved to the top, and is not centered. In the vertical view you see one page and half of the other. I think that this is also connected to #1

Can you elaborate the issue with vertical view? Note that Vertical view is not like view pager.

I would like both horizontal and vertical display like in this app https://github.com/Sav22999/sav-pdf-viewer-pro see screenrecorder
https://github.com/user-attachments/assets/22d3cfcb-d208-4960-8972-bee4f163fbf4

Got it

Can close the issue if this commit(a5dad08da8eed526c018f6c72250da537cec4f84) satisfies the requirement.

Hi, I tested the changes, page snap is fine. The page is not centered yet, let me explain: as you can see from these screenshots  the page display in your app is too high, leaving a lot of space at the bottom. In the other screen instead the page is "centered" that is the space at the top of the page and the space at the bottom of the page are the same

Did you set the alignment mode to center both?

Yes, sorry, I forgot that setting. I would say that basically all that is missing is the ability to scroll pages individually, with a view like ViewPager, setting like in the screen recorder, basically scrolling one page at a time.
Then this issue can be closed and also #1

I tried that, but the page alignment is not supported to be like view pager. Let me try again once and if I can't do it, then I close this issue!

I don't know if it can help you, but there is this app that says it is based on pdf.js which has this default function,
https://github.com/GrapheneOS/PdfViewer
but everything else is missing.
If you tell me the code that controls the page scrolling speed, I can do a more in-depth search and maybe find a solution

After some research it seems that using the right and left buttons with zoom set to "page fit" as they are on the GrapheneOS Pdf based on pdf.js the scrolling occurs for a single page. In fact, to change pages in the GrapheneOS Pdf you have to use the right and left keys.
These two comments prove it:
https://github.com/mozilla/pdf.js/issues/1380
https://github.com/mozilla/pdf.js/issues/3240
The left and right keys were introduced here https://github.com/mozilla/pdf.js/commit/d15847826e19bda52e26cbdfcea57c3373137f2c
I find the use of the left and right keys uncomfortable, I don't know if it's possible to have the same behavior without having to use the keys
Actually there is a PR that was right for us but it has been abandoned maybe it can be of help https://github.com/mozilla/pdf.js/pull/2709

I don't know if it can help you, but there is this app that says it is based on pdf.js which has this default function, https://github.com/GrapheneOS/PdfViewer but everything else is missing. If you tell me the code that controls the page scrolling speed, I can do a more in-depth search and maybe find a solution

They are using Pdf.js directly to render page, but I'm using the Pdf Viewer that is bundled into FireFox(https://mozilla.github.io/pdf.js/web/viewer.html).

I think this singlePageArrangement satisfies the issue
Try this

pdfViewer.pageScrollMode = PdfViewer.PageScrollMode.VERTICAL // or PdfViewer.PageScrollMode.HORIZONTAL
pdfViewer.singlePageArrangement = true
pdfViewer.pageAlignMode = PdfViewer.PageAlignMode.CENTER_BOTH // after setting single page mode to true

hi, I tested the changes, let's say they solved a different problem that I wanted to open, now with that option active even in portrait mode a single page is displayed correctly, and even on the tablet in landscape mode now I can finally view a single page, before I saw 3, so this change is perfect for viewing a single page in portrait and landscape mode on tablets. However, it does not solve the single scrolling per page, in fact scrolling from one page to another is still too fast and you can't scroll one page at a time using the touch.
I ran some tests that confirmed my thesis: connecting a bluetooth keyboard to the smartphone and using the "right" and "left" arrow keys in portrait mode and the "up" and "down" arrow keys in landscape mode, scrolling occurs for a single page "without animation".
Touch currently replicates the scrolling of the mouse wheel movement.
What I was wondering is it possible to replicate the same behavior of the bluetooth keyboard using the touch? Maybe in the touch you could add the scrolling animation, but without animation it would be fine anyway. I'll leave you a screenrecorder using the keyboard.
https://github.com/user-attachments/assets/d842c75d-37ff-469f-9a97-9f80da19af40

Yes indeed it is difficult to scroll currently with that option active.
However I think I have found the solution to scroll only one page at a time without "slowing down the swipe".
I think the solution is this :
goToNextPage() = goToPage(currentPage + 1)
goToPreviousPage() = goToPage(currentPage - 1)
it could be called "single page scrolling" and the current one "continuous scrolling"

I think the scrolling is ok now!

Ok, now it seems to work fine, although the option is only available if you select "Use compose Pdf Viewer"
Thanks

Will be added to xml pdf viewer in next commits


1.19.1 support?

I noticed the mod does not work on 1.19.1. How feasible is it for support to be added?

Same here, I can’t wait to 1.19.1 support.
So I have wrote the patch and I’ll share my code.

does your instance crash while trying to launch it?

I've added support for Minecraft 1.19.2 and 1.19.1 in my fork of ExtraSounds.
I actually made this fix a few… weeks ago for private use but I may have uh… completely forgot to actually push and submit the PR (which is now PR #74). Oops. Better late than never though, I guess…?
The source code is freely available for those who want to see exactly what was changed, and/or those who prefer building their own binaries locally.
I've changed the version number to 2.3.1+1.19.2-1.19.1~akemi (plus the Git commit short SHA-1) in order to clearly differentiate it from the official upstream ExtraSounds versions.
If you don't want to build ExtraSounds yourself, and you trust me / are comfortable running unofficial binaries, here's a prebuilt jar: https://developer.akemi.ai/Minecraft/extrasounds-2.3.1+1.19.2-1.19.1~akemi-git-7a58d66.jar
※ IMPORTANT NOTE: Minecraft 1.19 is no longer supported with these changes. For more information, see PR #74.

Version released :)


Discussion: about cumprod operation in volumn rendering

I also re-implemented this tiny nerf project in Pytorch, while during my implementation, a small enough but nontrivial detail had noticeably decreased the model performance with the same parameter. Since I found this project you achieved, thought it might be interesting to raise it here.
Tensorflow and Pytorch both have cumprod (accumulative product) function, while the original tensorflow implementation enabled "exclusive = True" to force element zero to be one, while in pytorch, the first element of acculumative product shall be the first element of the tensor.
Namely, "tf.cumprod([x1, x2, .., xn], exclusive =True)" would be "[1, x1, x1x2, ...] while "torch.cumprod([x1, x2, .., xn])" would be [x1, x1x2, ...]. The difference is just a scale of x1. While this difference harms the training of pytorch model in my case, the visualized test image is significantly worse.
I check the volumn rendering method and find out starting with one is the correct way to go, as the light intensity before entering into any volumn should be 1. But I would suppose during training, this small difference shouldn't be that an issue for a model. If you are interested, just remove the line where you set the first element to be 1 and retrain.
My suspect now is that original nerf is pretty unstable to train (among several trainings, there will be one time it fails to converge) and that's why....

Thank you for discussion!
First of all, as you said, pytorch cumprod operaion does not work same way in tensorflow version. ("torch.cumprod([x1, x2, .., xn]) would be [x1, x1x2, ...]")
To follow original volume rendering equation in nerf paper, i borrowed 'exclusive_cumprod' function in other project. this function forces cumprods 0 index element to be 1 using torch.roll
About nerf converge problem, i might suggest you some reasons.

Try crop center in early stage. because original nerf synthetic dataset has lots of white back ground, nerf model can be overfitted white background. (https://github.com/yenchenlin/nerf-pytorch/issues/5 this issue might be helpful)

About custom dataset, calculate exact pose using COLMAP library. in my experience, slight pose error cause divergence nerf model.

i hope this might be helpful :)

Thanks for your reply! Yes, I also implemented cumprod with starting element as 1 instead x1 and that could enable my training duplicate what was in the original.
I am just wondering why, I mean, what would be difference between starting with 1 or x1 in this cumprod step that makes the network perform worse.


DE-75 Enhance table data api functionalities

:tada: This PR is included in version 1.1.0-develop.7 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

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


Fails parsing row with spreadsheetDrawing

Tries to parse the row number for an image http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing

This causes an exception when trying to get rows.
Would recommend  filtering out spreadsheetDrawing rows. Unless these are to be parsed.

I can look into this on Tuesday

Just looking into this now, sorry for the delay. I am thinking there are other special cases other than spreadsheetDrawing that produce rows with no cells.
Perhaps another way is to filter out rows with no cells, essentially treating them as if they weren't there, after-all this library is for fast access of data. The downside would be there is no access to the underlying data if in the rare case it was wanted. For example, the number 23 above refers to a separate file where the data is. I imagine anyone using this library won't be needing to reconstruct drawings, graphs, etc..
I'll put that to @mrjono1 to decided if this is the right approach to take.
Meanwhile if that is what you need, you can find it in my branch:
https://github.com/Sibz/FastExcel/tree/Skip-Empty-Rows

 Fails parsing row with spreadsheetDrawing


How to use with AZERTY keyboard?

Hi, I properly installed and configured Aerospace to my liking. It's working great, I have nothing to complain about. The problem I'm facing has to do with the keyboard layout I am using, AZERTY (PC) on MacOS. I am programming a lot, and many symbols are only accessible through the AltGr key, e.g. AltGr+5. I cannot use this key because it automatically switches to another space or performs another action.
Is it possible to differentiate between Alt and AltGr in the key mapping? This would solve the problem.

Duplicate of #28


Provide additional font weights for BC Sans

It would be great if we had a medium-bold font-weight as well as a light one. This would make it more similar to Noto Sans

Since we aren't able to use the Google API and need to load the font files, we're trying to keep the number of font files to a minimum to reduce page load. So at this time were just going to use normal and bold weights


CodeScanner - Reticle based scanning

Ref Apollo 909

Reticle feedback seems positive so far so opening for review.


Draft: FLINK-28229 (CI)

What is the purpose of the change
The purpose is to change the internal implementation of StreamExecutionEnvironment#fromCollection() methods that are currently based on SourceFunction API (deprecated, due to be removed) to using FLIP-27 Source API.
Brief change log

Migrates StreamExecutionEnvironment.fromElements() methods from using FromElementsFunction(SourceFunction) to the new FromElementsGeneratorFunction (implements GeneratorFunction from FLIP-27 DataGeneratorSource) from https://github.com/apache/flink/pull/23553
Fixes tests, including Table tests where usage of the FLIP-27 source leads to generation of different execution plans

Verifying this change
The fromCollection() methods are already covered by the existing tests.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know) - for fromElements.
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation
This is an internal change.

@flinkbot run azure

@flinkbot run azure

Only this commit is relevant, the rest is from the fromElements migration.


PBI Flow Connector documentation: This documentation needs an example on how to export a single visual by name

The document provides how to get the "bookmark name" and the "page name' from the url, but i can find nothing on the internet to tell me how to use the "visual name" optional field to extract just a single visual.  I need this because the connector doesn't currently allow me to export (underlying or summary) data to a csv or xlsx so when I need to archive something I cannot do it, so I want to archive a single visual of data. But, I cannot figure out how to get the "visual name' field correct.
In addition, how to use the "report filter" field in the connector would be massively helpful as well.  There is VERY little documentation on how to use this action but a bunch of articles on how to use the "Add to dataset" action.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: d92e4209-59ef-2aed-dd62-b38c443d96d3
Version Independent ID: ba65faca-8ef1-3cb3-3a32-bc23fbb1e64c
Content: Export and email a report with Power Automate - Power BI
Content Source: powerbi-docs/collaborate-share/service-automate-power-bi-report-export.md
Service: powerbi
Sub-service: pbi-collaborate-share
GitHub Login: @maggiesMSFT
Microsoft Alias: maggies

Thanks for your comment. We’ve forwarded your feedback to the writer, who will respond to this thread. Thanks!

Thank you @davidiseminger  I've also run into some major bugs with this connector, but I cannot find where I can report those.

Hi, @lordneeko -- thanks for your comment! I'm checking with the product group about your initial comments, and I'll let you know what I hear back.
For the major bugs, I recommend contacting https://powerbi.microsoft.com/en-us/support/.
Thanks!

Hi, @lordneeko -- here's the reply from the product group:
"The Export to File connector in Power Automate is really just no-code (user interface) way to interact with the export API.
With that said, any of the docs that explain how to use the export API also apply to the Power Automate connector. The following doc touches on both filters and visual names. Looking through this doc, there are two ways to get the attribute visualName but they are both pretty technical.
https://docs.microsoft.com/en-us/power-bi/developer/embedded/export-to#exporting-a-page-or-a-single-visual
I'm going to add that explanation to the article. The change will be live tomorrow afternoon, Jan 4, 2022, Pacific time.
Hope that helps!


fix(command options): throw an error on invalid argument.

When the amount of anonymous arguments is over the amount of expected ones, throw an error. The most common case would be something like "ng build prod" when the user actually means "ng build -prod".

@hansl can you rebase and add a test?


The task has "retries": 0 but still retries.

I add a very simple task when I test. The json I post is this.
{
  "retries": 0,
  "disable": false,
  "command": "cd /var/log/tiger; pwd; hostname; date; exit -1",
  "name": "test1",
  "schedule": "R/2016-03-28T14:58:30.0+08:00/PT2M",
  "description": "description test"
}

I think it will fail, wait 2 minutes, then try another time. But in fact, it tries almost once a second.
But some of my normal task, also with retries zero, works as my expect.
The version of Mesos is 0.28.0
The version of Chronos is 2.4.0

You scheduled the task to run every 2 minutes.

@Califax Yes, but the OP reports the job runs "almost once a second" in case of failure, and despite the fact retries is set to 0.

I don't know when will it happen. I tried to make it happen this afternoon, but it works write now.

Sorry I misread the fact it retries almost once a second on failure. I have not seen this behavior unless the job had a shorter repeat interval  than the look ahead horizon and the job did have retries spawning multiple copies of the job. Given it is every 2 minutes, and you have 0 retries, this is something else. Let us know if you are able to reproduce.

My QA team has been able to reproduce the issue by doing the following:

Created a Synchronous job with:
Retry Count - 0
Repeat interval - 2 mins
Repeat Count - 3

Set the Start time as 2016-07-06 16:10 America/Los_Angeles

Job started running at scheduled time and got SUCCESS

Immediately disabled (not deleted) the Job (Before the second iteration starts) and changed it so future runs will fail. Then enabled it again.

Job immediately runs again and fails (as expected). But It was supposed to be run at 16:12 as the Repeat interval was mentioned as 2 mins. After this, it got run multiple times (50) rather the repeat count was just 3 and retry count was 0.

It seems that at step 5, job is retried every second until the next horizon minute is reached (step 4 took ~10 seconds to perform).

I've not been able to get retries to work as expected. I have "retries": 2, but I either get:

No retries at all on failure
Infinite retries on failure

Here's a job which was seeing infinite retries:
[
  {
    "name": "my-job",
    "command": "/usr/local/deploy/bin/run_job 'do-that-thing'",
    "shell": true,
    "epsilon": "PT60S",
    "executor": "",
    "executorFlags": "",
    "retries": 2,
    "owner"<EMAIL_ADDRESS>    "ownerName": "",
    "description": "",
    "async": false,
    "successCount": 0,
    "errorCount": 20,
    "lastSuccess": "",
    "lastError": "2017-11-07T22:46:09.345Z",
    "cpus": 0.1,
    "disk": 256,
    "mem": 2048,
    "disabled": false,
    "softError": false,
    "dataProcessingJobType": false,
    "errorsSinceLastSuccess": 20,
    "uris": [
      "file:///etc/mesos/.dockercfg"
    ],
    "environmentVariables": [],
    "arguments": [],
    "highPriority": false,
    "runAsUser": "root",
    "container": {
      "type": "docker",
      "image": "quay.io/my-containers/my-container:tag",
      "network": "BRIDGE",
      "volumes": [],
      "forcePullImage": false
    },
    "constraints": [],
    "schedule": "R//P1D",
    "scheduleTimeZone": "America/Los_Angeles"
  }
]


Type erased address type

Is there some way to get type erased variants of the address type and work with those when sending or scheduling events?
I have a struct like this
// The simulation controller processes requests and drives the simulation.
pub struct SimController {
    pub sys_clock: SystemClock,
    pub request_receiver: mpsc::Receiver<SimRequest>,
    pub simulation: Simulation,
    pub mgm_addr: Address<MagnetometerModel>,
    pub pcdu_addr: Address<PcduModel>,
}

where I need to keep the address handles for each distinct model type to send or schedule events to these devices. I think if I scale up my simulation to a large number of devices, the number of fields in this struct, and the effort to always update the SimController construction might get unwieldy. A type-erased variant would allow something like HashMap<ModelId, Address> to be used. But there are probably technical limitations due to the way generics are used here?

I have something very similar already in my (for now private) experiment with RPC, but this is all very much in flux. What I have is actually more general, like an Output<T>, i.e. it is only bound to the event type and can be connected to multiple models, but instead of generating a future when "sending" an event, it generates a deferred Action that can be scheduled or processed immediately using something like Simulation::schedule_action(deadline, action).
I could publish this WIP if you want, but I would not recommend using it before it stabilizes.
As a stopgap measure, you could define a trait to abstract over that, something like:
trait EventSender<T> {
    fn schedule_event(simulation: &mut Simulation, event: T) -> -> Result<(), SchedulingError>;
    fn schedule_keyed_event(simulation: &mut Simulation, event: T) -> -> Result<EventKey, SchedulingError>;
    ...
}

and then implement it on a parametrized type that stores the Address and the relevant InputFn closure for the target model.
Not super-elegant but it should work...
In any case, I'd keep this issue open until the WIP solution arrives officially in v0.3.

If there is already something WIP, I am okay with waiting 👍  The complexity if still manageable for me.

Closed by #24 with the addition of the Source port type.


Add support for DATETIMECONVERT() with Timestamp index

Current automatic query rewriting for TimeStamp Index only works for DateTrunc() function, filing this ticket to track enhancing it further to support other common UDF's such as DateTimeConvert(). cc @mayankshriv @Jackie-Jiang

cc @xiangfu0

I can try to take a stab at this 🙂

@dd-willgan would be great if you can get this one squared away.

Ended up finding a workaround for this internally, likely won't be able to get to it for now 😕 .

@npawar this would be a very useful feature, anyone else can pick this one up?

@ksnijjer datetrunc seems to be more closer to sql syntax and we probably want to push the users towards datetrunc. can you list the scenarios where datetimeconvert is useful

@kishoreg I have seen dateTimeConvert() in general been more widely used vs dateTrunc() overall, likely because former is more flexible w.r.t different output formats etc. Secondly in the past we have seen third party tools like Superset auto-rewrite queries using dateTimeConvert() only, as such user can't override it on their end - in which case Timestamp index won't work.
This aks came from a discussion with @dd-willgan , so perhaps he can share more details too.


Author identity unknown error when git config is properly set

VSCode Version: Version: 1.52.1 (user setup)
Commit: ea3859d4ba2f3e577a159bc91e3074c5d85c0523
Date: 2020-12-16T16:34:46.910Z

OS Version: Windows_NT x64 10.0.19041

Steps to Reproduce:

Cloned github repo
make changes to any file and save
commit changes via Source Control
Get this error: *** Please tell me who you are.

Run
git config --global user.email<EMAIL_ADDRESS>git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: no email was given and auto-detection is disabled

git config --get-all user.name

When I check the git config everything looks good: $ git config --list --show-origin
file:/home/victor/.gitconfig    user.name=vicchimenti
file:/home/victor/.gitconfig<EMAIL_ADDRESS>file:.git/config        core.repositoryformatversion=0
file:.git/config        core.filemode=false
file:.git/config        core.bare=false
file:.git/config        core.logallrefupdates=true
file:.git/config        core.ignorecase=true
file:.git/config        remote.origin.url=https://github.com/vicchimenti/law-newsroom.git
file:.git/config        remote.origin.fetch=+refs/heads/:refs/remotes/origin/
file:.git/config        branch.master.remote=origin
file:.git/config        branch.master.merge=refs/heads/master

Does this issue occur when all extensions are disabled?: Yes/No Need the Git Hub extension active to use Source Control

This behavior is by design -- see #110880, but I just added a new git.requireGitUserConfig setting to control this behavior -- see #114433

This behavior is by design -- see #110880, but I just added a new git.requireGitUserConfig setting to control this behavior -- see #114433

Thank you for the input, I have been able to sync all my working repos to my new local machine by removing the --global and adding my user.name and user.email manually to each repo individually.
I don't remember having this last issue on my previous machine but if the explanation is that this is expected behavior by design then it feels like a challenging user experience by design. When a user is logged into an IDE this configuration should carryover through their profile shouldn't it?

Thank you for the input, I have been able to sync all my working repos to my new local machine by removing the --global and adding my user.name and user.email manually to each repo individually.
I don't remember having this last issue on my previous machine but if the explanation is that this is expected behavior by design then it feels like a challenging user experience by design. When a user is logged into an IDE this configuration should carryover through their profile shouldn't it?


tf.print  can't print log in jupyter notebook.

When I tried to use tf.print() or get the log_device_placement information in google colabratory. I just can't get the print output. I tried in my own jupyter, and I find the print log is in the cmd.exe windows. This behavior is very strange and I think it should be fixed.  The code is like below.
import tensorflow as tf
print(tf.GIT_VERSION, tf.VERSION)
a = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3], name='a')
b = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[3, 2], name='b')
c = tf.matmul(a, b)
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
print(sess.run(c))

the print output is just like this:

v1.12.0-0-ga6d8ffae09 1.12.0
[[22. 28.]
[49. 64.]]

but it should be with the log_device_placement information.

By adding tf.logging.set_verbosity(tf.logging.INFO in your script you should be able to see the logging in the ipython console.

By adding tf.logging.set_verbosity(tf.logging.INFO) in your script you should be able to see the logging in the ipython console.

Thank you very much. But I tried this, it does't work. The reson of this probelem maybe is the cooperation of tensorflow and Jupyter notebook. Because I can see the log information in the cmd.exe window which runs  jupyter.

Just an update to this: We've actually come up with a solution to this inside of tensorflow, that should now be in the nightlies.


Is it possible to implement tensor decomposition algorithm  such as tucker?

We have done some investigation that it's possible to implement a backend for tensorly, almost all the operations that required for tensorly are implemented in Mars except for quite a few ones.


Scrobbling does not work on Youtube

The app doesn't work weeks ago. Even though the plug is active and the button appears on, it does not connect to my lastfm account.

Can you provide:

A URL which has the problem
Debug logs (see the wiki)
Information regarding the version of the extension you are running?

We recently fixed this issue, perhaps you just need to update your extension to 1.4.8

https://www.youtube.com/watch?v=DE09lbqVPb8&list=PL9PphsKbpuIXObVrL3s09tm336bJyGyZY&index=9
What do you mean by debug logs? I've tried to look for it but i have no idea.
I installed the latest available version (i think its 1.48)

It is fixed! I don't know how...

Works also for me.
Maybe the request sent to youtube API's took some more time than expected.
@david-sabata Close?


Community Meeting October 4, 2022

Overview
At 11am Eastern, 8am Pacific, 3pm UTC; find your time
Video call link: https://meet.google.com/mpd-cypd-sdp
Or dial: (DE) +49 30 300195060 PIN: 500<PHONE_NUMBER>#
More phone numbers: https://tel.meet/mpd-cypd-sdp?pin=5005991305702
Or join via SIP<EMAIL_ADDRESS>Meeting recordings available on YouTube at https://www.youtube.com/playlist?list=PLqN7RcoCwL96nXIIW6O51l8Lu_J-f5D27
Add topics you'd like to discuss below!

Incoming issues: https://github.com/kcp-dev/kcp/issues?q=is%3Aopen+is%3Aissue+-label%3Acommunity-meeting+no%3Amilestone – https://github.com/orgs/kcp-dev/projects/1/views/22
Milestone epics: https://github.com/kcp-dev/kcp/issues?q=is%3Aopen+is%3Aissue+label%3Amilestone-blocker+label%3Aepic

@fgiloux: would like 👀 on https://github.com/kcp-dev/controller-runtime/pulls and https://github.com/kcp-dev/controller-runtime-example/pulls

CEL conversion demo: https://www.youtube.com/watch?v=Fc52Eo_WDf4


Reduce memory allocations in TextEngine.

A few changes to overwrite existing arrays and avoid splicing unless necessary. According to hxScout this significantly reduces memory churn when a fixed number of TextFields have frequently changing contents. Still room for improvement elsewhere, but submitting this part now since it seems pretty uncontroversial.

After you posted this PR, I changed them to use Vector instead of Array, so we could set the length without removing the object. I believe this solves this problem of churn on these objects, but please let me know if you continue see any issues here.
Thanks a lot :smile:


fix: git commits with empty email

⚠ Pre Checklist

Please complete ALL items in this checklist, and remove before submitting

[ ] I have read through the Contributing Documentation.
[ ] I have added relevant tests.
[ ] I have added relevant documentation.
[ ] I will add labels to the PR, such as pr-type/bug-fix, pr-type/feature-development, etc.

Summary
Git commits with empty email fail when they are saved in PostgreSQL
Does this close any open issues?
Closes xx
Screenshots
Include any relevant screenshots here.
Other Information
Any other information that is important to this PR.

Thanks for your contribution.

Hi @Tonkonozhenko,
Thank you for your contribution! I'm Joshua Poddoku, Committer at Apache DevLake. We'd love for you to join our Slack community or DM me incase you've joined already: https://join.slack.com/t/devlake-io/shared_invite/zt-18uayb6ut-cHOjiYcBwERQ8VVPZ9cQQw. Could you please share your full name there? We want to recognize your efforts with a certificate of contribution.
Best,
Joshua

@JoshuaPoddoku full name is Alex Tonkonozhenko
could you also send a link again, please? I want to join.


Generate components from SVG

Niiice LGTM! So just to confirm dev workflow:

Add .svg icon to project
run npm run generate
Include the generated component

@mikewuu Added


100% CPU utilization

Hello there,
At first, I'd like to thank you for your great work. I just imported the code in my project and it just working fine. :)
However, one thing that bothers me is that as soon I create the thread pool (and ofcourse adding some initial tasks in there), the CPU usage is getting increases over the time and eventually reach 100% (after 10sec), with considering the fact that there is no remaining tasks in queue.
Is it normal behavior ? or am I doing something wrong ? and If you have suggestion for me.
btw, my build environment is FreeBSD 10.2 amd64 RELEASE
Thank you,

Well, it was a little awkward, but as soon as I add a sleep (1ms)  in my worker thread loop, I dont face high cpu utilization problem anymore ..

I haven't observed that behavior before. Is the Threadpool just being present enough?

If not implemented properly a lockless thread pool will have 100% cpu utilization because of workless threads racing against catching some work, sleeping will just add a undetermined delay wich may make un-responsive the pool in performance critical applications (wich would be the reason to use a lock-less pool, otherwise just use a standard Thread-Pool).
A slightly better way is to sleep only if no work is found (until there's work, no time is wasted sleeping).
The definitive correct way would be to manually put the thread to sleep when it has no work and awake it using correct primitives (or basically use a Monitor synchronization primitive). This has high chance to sleep much less than a "sleep(1)" and to not sleep if there's work to be done.

The issue should still be open by the way

Darelbi, Thank you for response ... I guess you're right :)
It's all about a work-less thread ... but still I'm confused that how can I change my application logic to actually let the thread sleeps when there is no work available. Maybe that's because the application doesn't know that!
you see .. in the thread , I've to constantly check an API to make sure if there is a job for me:
while (1)
{
//  sleep for 1ms , has solved the issue
bool b = call_api (....);
}
I'm not sure how can i change this logic, to actually cover my both targets: 1- finding out if there is a job , 2- letting same thread sleep when there is no job !
Thanks again

if you have to poll an API and there's no awake callback in the API itself, then sleep is your best bet. (also tried with sleep(0)?)
In NodeJS there's 1 thread looping to seek for input/job, and then work is delegated to worker threads. If 1 thread is enough then you can get 50% utilization for a dual core, and 25% for a quad-core etc, using the same approach.

Thank you Darelbi,
I'll try with sleep(0) and share the result here


Fix test, migrate to mocha, enable travis

please merge #296, https://github.com/uwdata/vega-lite-ui/pull/15 and publish<EMAIL_ADDRESS>first

fixes #271
also fixes https://github.com/uwdata/vega-lite-ui/issues/14

@domoritz  I just merged your change in master into this branch.

 Does everything work for you? Can you reinstall all the bower and npm dependencies to see whether things are breaking?

It’s just outdated vlui version. It should work now.  Let me know if it’s still broken.

I can't test right now because the wifi doesn't allow git. I'll merge when I get back or you can test and merge. The code looks fine.

There is a bug with the nominal stuff. If you change to "text-ordinal" and then change the aggregation, it selects number.

Which also happens in master.

Can u create an issue?
—
Kanit "Ham" Wongsuphasawat
http://kanitw.yellowpigz.com/
Painfully tapped iPhone keyboard--only for you.  Sorry for brevity and typos.
On Thu, Jun 4, 2015 at 7:11 PM, Dominik Moritz<EMAIL_ADDRESS>wrote:

Merged #297.
Reply to this email directly or view it on GitHub:
https://github.com/uwdata/polestar/pull/297#event-323142945

See #299


token defaults shouldn't require token to be linked to a character

Is the intent here that anything dropped on the object/token layer applied the users token settings?
If so, this should be doable for most of the token options except for (off the top of my head)

bar values (visibility would be fine)
name numbering

No, there's !shaped-token-defaults which is what this issue is referring to rather obtusely. I just noticed the other day that it fails quietly and mysteriously if you have a token selected but that token doesn't represent a character.
Bar values obviously can't be set, you are right. Name numbering should be fine - you just need to append %%NUMBERED%% to the end of the existing name. Obviously there's no guarantee that the name is correct for the character but that's a separate problem

This issue was moved to symposion/roll20-shaped-scripts#6


Proposal: Include Batch processor

Is your feature request related to a problem? Please describe.
Currently, no processors are included in the collector for Lambda. This makes it impossible to use Batch procesor. Missing it in the pipeline causes some issues, such as causing sending not-efficient batches by the exporter or not being able to limit maximum batch size
Describe the solution you'd like
Include Batch processor

Removing processors from Lambda collector extension because we want to make sure force_flush() is blocked until backend returns response to lambda function, the sequence diagram is:
force_flush(Lambda runtime, user's Lambda function)  ->  collector receiver -> batchProcessor() -> collector exporter -> backend service
Adding batching processor means it breaks to 2 flows, may get problem described in design proposal

force_flush(Lambda runtime, user's Lambda function)  ->  collector receiver -> batchProcessor
(Lambda Freeze)
batchProcessor -> collector exporter -> backend service

BatchProcessor improves efficiency most likely in collector mode but not in agent mode. In Lambda there is only one application, so alternatively we can batch/aggregate telemetry from SDK side instead of Collector side.

@pmm-sumo in the latest version of the collector, batch processor is included and it is suggested to use by decouple processor (when batch processor is enabled, decouple processor is added right after it).
https://github.com/open-telemetry/opentelemetry-lambda/blob/2087b126ae080573ba2944d2043245947b0e73a6/collector/lambdacomponents/default.go#L73

@tylerbenson do you think we can close this one?


set default file ID manager to arbitrary

Per discussion with Jupyter server team, it is the consensus that LocalFileIdManager is not yet ready for mainstream use. Hence we are setting the default file ID manager to be ArbitraryFileIdManager regardless of the current contents manager.

cc @kevin-bates @davidbrochart

Codecov Report
Base: 81.43% // Head: 83.24% // Increases project coverage by +1.80% :tada:

Coverage data is based on head (6207f57) compared to base (71c90c6).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #37      +/-   ##
==========================================
+ Coverage   81.43%   83.24%   +1.80%
==========================================
  Files           5        5
  Lines         544      549       +5
  Branches       71       69       -2
==========================================
+ Hits          443      457      +14
+ Misses         79       71       -8
+ Partials       22       21       -1

Impacted Files
Coverage Δ

jupyter_server_fileid/extension.py
44.00% <100.00%> (+6.50%)
:arrow_up:

jupyter_server_fileid/manager.py
91.17% <0.00%> (+1.12%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

Per discussion with Jupyter server team, it is the consensus that LocalFileIdManager is not yet ready for mainstream use.

I'm not sure this is quite correct.  I recall expressing a concern that being so closely tied to the filesystem was going to be problematic due to the wide variety of filesystems.  And there seemed to be some consensus that using a mechanism like watchdog or watchfiles might be more useful since they know filesystems (or at least filesystem idiosyncracies would be "their problem").  But I don't recall a consensus that LocalFileIdManager was not ready for mainstream use - heck, it's still in its infancy.
That said, it does sound like RTC's usage is increasing, and a release is looming, so I think having a fallback in the ArbitraryFileIdManager may be a good idea.

@kevin-bates That was the impression I got from @ellisonbg. @ellisonbg Could you offer your thoughts on this?


Disable the "There are unresolved dependencies" info message.

How do we disable the "There are unresolved dependencies from..." message that comes up whenever there are unresolved dependencies?

I would rather not be told this.

A new (release)[https://github.com/OmniSharp/omnisharp-vscode/releases/tag/v1.5-beta6] is ready which includes a csharp.suppressDotnetRestoreNotification option.

@DustinCampbell That's wonderful. How do we install a specific version such as 1.5-beta6?

@DustinCampbell Figured it out:
 code --install-extension .\csharp-1.5.0-beta6.vsix

yes, there's also a way on the Extensions pane in VS Code. At the top right-hand corner of the Extensions pane, click the [...] and select "Install from VSIX..."

@DustinCampbell I have installed the appropriate version and set my settings.json. The notification info message continues to display, though.
{
    "files.autoSave": "afterDelay",
    "window.zoomLevel": 0,
    "csharp.suppressDotnetRestoreNotification": true
}

Does the new release suppress the info message on your machine?

Yes, it works for me. I just set the option and then performed a git clean -xdf in a project I had loaded. No notification appeared.

Thank you for checking.

It works after deleting the previous version of the extension from here:
C:\Users\myuser\.vscode\extensions

glad you got it working (and very nice to meet you this week!) :smile:


ip limit issue

@Leiren tnx for this fantastic product.
it seems the IP limit is not working as expected.
I set it to 1 but I can connect using two different devices which connect using different networks

I have checked it before. it was working as expected.

This is a ip limit not a device limit, it allows the second device to transfer data the moment first device stops sending packets + a timeout.
you should download a file or watch a stream/youtube or someting with first device then try to connect with second device.

anyways ill check it again before releasing next version.

@Leiren great! tnx


Required etc. are ignored on pointer to struct fields

[x] I have looked at the documentation here first?
[x] I have looked at the examples provided that may showcase my question here?

Package version eg. v9, v10:
v10
Issue, Question or Enhancement:
It seems that tags that would reasonably apply to fields which are pointers to structs (such as required and excluded_without) are ignored. Looking at the code, pointer types are substituted for their underlying type at util.go:25, and because the underlying type is a struct type, the tags are therefore ignored.
Code sample, to showcase or reproduce:
import (
	"testing"

	"github.com/go-playground/validator/v10"
	. "github.com/smartystreets/goconvey/convey"
)

type Struct struct {
	Notes     string
	NotesInfo *NotesInfo `validate:"excluded_without=Notes"`
}

type NotesInfo struct{}

func TestValidateStruct(t *testing.T) {
	Convey("Given a struct", t, func() {
		s := Struct{
			NotesInfo: &NotesInfo{},
		}
		Convey("And it is not valid", func() {
			Convey("When validating", func() {
				err := validator.New().Struct(s)
				Convey("Then there is an error", func() {
					So(err, ShouldNotBeNil)
				})
			})
		})
	})
}

That looks related to a problem I'm experiencing. I'd like to have a custom validator on a struct or struct pointer field.
type TestStruct struct {
	Geometry *types.Geometry `json:"geometry" binding:"required,something"`
}

func TestValidator(t *testing.T) {
	v := validator.New()
	require.NoError(t, v.RegisterValidation("something", func(fl validator.FieldLevel) bool {
		fmt.Println("I'm here!")
		return false
	}))

	input := `{
      "geometry": {
        "coordinates": [
          31.857764026082037,
          6.866345106185449
        ],
        "type": "Point"
      }
    }`

	var obj TestStruct
	require.NoError(t, json.Unmarshal([]byte(input), &obj))
	require.Error(t, v.Struct(obj))
}

I can't do it with a struct-level validator, because it doesn't get access to the tag, so I couldn't have e.g. validate:"required,geom=2d point".