text:
Status line is modified by the padding buffers

Hi.
Thanks for developing this great plugin, it is very helpful.
Description
When turning on NoNeckPain, the status line is modified by the padding buffers.
Steps to reproduce
I use NoNeckPain without any custom configuration, I do not have any status line plugin either.
Before enabling NoNeckPain, the status line at the bottom of Neovim looks like this:

After enabling NoNeckPain, the status line is modified by the padding buffers like this (its's like each buffer has its own status line information):

Expected behavior
Ideally I would like the status line to remain unchanged (single status line across all the screen).
I am not sure if this is possible using Neovim's default status line (if I am not mistaken, the showcase uses some status line plugin like lualine).
Thanks.

Hey! Thanks for the feedback, hope you like the plugin :)

Ideally I would like the status line to remain unchanged (single status line across all the screen).

The plugin creates empty side buffers to provide this padding logic, which result in the correct behavior of the status-line when configured per-buffer.

I am not sure if this is possible using Neovim's default status line

Since https://github.com/neovim/neovim/pull/17266, you can use the global status line to only display it for the active window

Closing this issue as the plugin can't do anything about it, feel free to reopen if you feel like it's needed!

Thanks for the info about the global status line capability, I will have a look at it.
Have a great day!

Thanks for the info about the global status line capability, I will have a look at it. Have a great day!

Thanks, you too :)

the global status line fixed this issue for me
include this in your config lua file
vim.opt.laststatus=3

authors: nivethan-me shortcuts uraza


text:
RuntimeError: Given normalized_shape=[2818], expected input with shape [*, 2818], but got input of size[1, 298, 514]

Regardless of whether I run Slowfast R50 + CLIP-B/16 or  Slowfast R50 + CLIP-B/16 QVHL + Charades + NLQ + TACoS + ActivityNet + DiDeMo,I got this error
Total number of frames: 298
Traceback (most recent call last):
File "/opt/disk1/UniVTG/main_gradio.py", line 180, in
forward(vtg_model, "./examples/", 'A man takes a photo on the bottom of the sea and sees a lot of fish.')
File "/opt/disk1/UniVTG/main_gradio.py", line 91, in forward
output = model(src_vid=src_vid, src_txt=src_txt, src_vid_mask=src_vid_mask, src_txt_mask=src_txt_mask)
File "/root/.local/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "/opt/disk1/UniVTG/model/univtg.py", line 107, in forward
src_vid = self.input_vid_proj(src_vid)
File "/root/.local/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "/root/.local/lib/python3.9/site-packages/torch/nn/modules/container.py", line 139, in forward
input = module(input)
File "/root/.local/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "/opt/disk1/UniVTG/model/univtg.py", line 402, in forward
x = self.LayerNorm(x)
File "/root/.local/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
return forward_call(input, **kwargs)
File "/root/.local/lib/python3.9/site-packages/torch/nn/modules/normalization.py", line 189, in forward
return F.layer_norm(
File "/root/.local/lib/python3.9/site-packages/torch/nn/functional.py", line 2503, in layer_norm
return torch.layer_norm(input, normalized_shape, weight, bias, eps, torch.backends.cudnn.enabled)
RuntimeError: Given normalized_shape=[2818], expected input with shape [, 2818], but got input of size[1, 298, 514]
the video I deployed is youtube.mp4

Hi there is because, currently the main_gradio.py only supports clip checkpoint (as following)

while the clip+slowfast checkpoint requires additional slowfast feature extractor, which is not included yet. I will update this part in recent.

Thx. Waiting for you!

Hi, have you included the additional feature extractor?

source: gharchive/issue

authors: Coronal-Halo QinghongLin zhangtao22

repo: showlab/UniVTG

license: MIT

license_type: permissive

license_source: github-api


text:
Update scorecards.yml

update scorecards-action with tag instead of SHA

https://github.com/ossf/scorecard-action/blob/main/RELEASE.md

source: gharchive/pull-request

repo: shsingh/blackhat-tools


text:
add regex json file and remove excess ones

add json file for regexes

add '0 <= dfs.client.short.circuit.num <= 5'
delete 'dfs.datanode.volumes.replica-add.threadpool.size' from regex and this should be > 0
add 'configuration fs.permissions.umask-mode' into regex
ViewFs: Cannot initialize: Invalid entry in Mount table in config: name.key
file.bytes-per-checksum > 0
dfs.datanode.disk.check.timeout > 0
remove dfs.namenode.resource.checked.volumes.minimum from regex
remove dfs.namenode.handler.count from the regex -- it does not have thouse f stuff
dfs.namenode.storage.dir.perm should be in the form xxx in which x \in [0..7]
0 <= dfs.namenode.replication.min <= dfs.replication.max <= 32767
0 <= dfs.namenode.maintenance.replication.min <= dfs.replication
0 < dfs.namenode.fs-limits.max-xattr-size <= 32768
0< dfs.namenode.fs-limits.max-directory-items <= 6400000


text:
Beautify touchpad

Touchpad UI looks out of place. It should be similar to the other UI components.

Hi can you elaborate more on the requirement and expectation?

Basic requirement:

Inform the user about the supported actions: preferably as some background text like in the image below (Keep It Simple)
Design should match with other UI components: all the buttons are white, and the touchpad is black (with a gray background text)

Something like this (excuse the quick prototyping).

Feel free to propose new ideas for the same.


text:
adjust column size to accommodate uppercase letters

hello.
thanks for your class, it's really useful.
when a cell contains text in uppercase only, a column width adjustment could be done line 831:
https://github.com/shuchkin/simplexlsxgen/blob/a44de02fe239e45cc86469b33509b542e73abeb8/src/SimpleXLSXGen.php#L831
by adding something like:
$vl+=intval(0.2*mb_strlen(preg_replace('![^A-Z]+!', '', $v)));
Also, it could be very useful to have a parameter that deactivates the limitation of the column width to the value 60 in line 961, or alternatively that the value 60 be customizable in the default variables, without having to define a fixed column width in our php script:
https://github.com/shuchkin/simplexlsxgen/blob/a44de02fe239e45cc86469b33509b542e73abeb8/src/SimpleXLSXGen.php#L961
best regards.

just use setColWidth
https://github.com/shuchkin/simplexlsxgen/blob/a44de02fe239e45cc86469b33509b542e73abeb8/src/SimpleXLSXGen.php#L1100

repo: shuchkin/simplexlsxgen


text:
Adding Comma after Laravel Syntax in Blade Causes Error

Issue with Formatting the Code within a blade with Laravel Syntax. The problem is at the moment, that if threre is Laravel Syntax between divs, that after formatting the blade the extensions put automatically a comma at the end. This comma within a blade causes Errors so i have to disable the extension. Is there a way to decline putting a comma at the end? In Prettier i already put the trailing comma from Es5 to none. But still the comma appears after formatting.
Example:
@disabled(!auth()->user()->ownsTest($variable))if ($this->$variable) ... @else ... @endif
after Formatting it looks like this:
@disabled(
!auth()
->user()
->ownsTest($variable),
)@if ($this->variable) ... @else ... @endif
The comma after ownsTest is causing errors

Fixed at https://github.com/shufo/vscode-blade-formatter/releases/tag/v0.14.4

authors: HannesEURESA shufo

repo: shufo/vscode-blade-formatter


text:
🐛 [Bug]: Cognitive Code complexity

Bug Description
read about it here:
https://dev.to/marcello_h/solve-code-complexity-in-go-56hg
It is up to you what you want to do with this knowledge.
My report:
litecart/internal/app.go:34:1 - NewApp has complexity: 27
complexity = 1

1 (found 'if' at line: 40, complexity = 2)
1 (found 'if' at line: 45, complexity = 3)
1 (found 'if' at line: 57, complexity = 4)
1 (found 'if with lines >= 10' at line: 57, complexity = 5)

2 (found 'if' at line: 59, complexity = 7)
2 (found 'else' at line: 61, complexity = 9)

3 (found 'if' at line: 62, complexity = 12)

1 (found 'if' at line: 83, complexity = 13)
1 (found 'if' at line: 97, complexity = 14)
1 (found 'if' at line: 107, complexity = 15)
1 (found 'if with lines >= 10' at line: 107, complexity = 16)
1 (found 'if with lines >= 25' at line: 107, complexity = 17)

2 (found 'if' at line: 122, complexity = 19)
2 (found 'if' at line: 127, complexity = 21)

1 (found 'if' at line: 133, complexity = 22)
1 (found 'else' at line: 135, complexity = 23)
1 (found 'else with lines >= 10' at line: 135, complexity = 24)

2 (found 'go' at line: 138, complexity = 26)
2 (found 'go with lines >= 10' at line: 138, complexity = 27)

litecart/internal/handlers/private/setting.go:19:1 - Version has complexity: 14
complexity = 1

1 (found 'if' at line: 23, complexity = 2)
1 (found 'logical operator' at line: 23, complexity = 3)
1 (found 'if' at line: 28, complexity = 4)
1 (found 'if with lines >= 10' at line: 28, complexity = 5)

2 (found 'if' at line: 32, complexity = 7)
2 (found 'if' at line: 36, complexity = 9)
2 (found 'if' at line: 41, complexity = 11)
2 (found 'if' at line: 47, complexity = 13)

1 (found 'if' at line: 52, complexity = 14)

litecart/internal/handlers/public/cart.go:17:1 - Checkout has complexity: 13
complexity = 1

1 (found 'if' at line: 19, complexity = 2)
1 (found 'range' at line: 24, complexity = 3)
1 (found 'if' at line: 32, complexity = 4)
1 (found 'if' at line: 37, complexity = 5)
1 (found 'range' at line: 42, complexity = 6)
1 (found 'range with lines >= 10' at line: 42, complexity = 7)
1 (found 'range with lines >= 25' at line: 42, complexity = 8)

2 (found 'range' at line: 44, complexity = 10)
2 (found 'if' at line: 61, complexity = 12)

1 (found 'if' at line: 81, complexity = 13)

litecart/internal/queries/cart.go:21:1 - Carts has complexity: 17
complexity = 1

1 (found 'if' at line: 39, complexity = 2)
1 (found 'defer' at line: 42, complexity = 3)
1 (found 'for' at line: 44, complexity = 4)
1 (found 'for with lines >= 10' at line: 44, complexity = 5)
1 (found 'for with lines >= 25' at line: 44, complexity = 6)

2 (found 'if' at line: 60, complexity = 8)
2 (found 'if' at line: 64, complexity = 10)
2 (found 'if' at line: 68, complexity = 12)
2 (found 'if' at line: 72, complexity = 14)
2 (found 'if' at line: 76, complexity = 16)

1 (found 'if' at line: 83, complexity = 17)

litecart/internal/queries/cart.go:151:1 - CartSendMail has complexity: 74
complexity = 1

1 (found 'if' at line: 158, complexity = 2)

2 (found 'if' at line: 159, complexity = 4)

1 (found 'if' at line: 165, complexity = 5)
1 (found 'if' at line: 170, complexity = 6)
1 (found 'defer' at line: 173, complexity = 7)
1 (found 'defer with lines >= 5' at line: 173, complexity = 8)

2 (found 'if' at line: 174, complexity = 10)

1 (found 'logical operator' at line: 174, complexity = 11)

2 (found 'else' at line: 176, complexity = 13)

1 (found 'range' at line: 181, complexity = 14)
1 (found 'range with lines >= 10' at line: 181, complexity = 15)
1 (found 'range with lines >= 25' at line: 181, complexity = 16)
1 (found 'range with lines >= 50' at line: 181, complexity = 17)

2 (found 'if' at line: 184, complexity = 19)

3 (found 'if' at line: 185, complexity = 22)

2 (found 'if' at line: 191, complexity = 24)
2 (found 'if with lines >= 10' at line: 191, complexity = 25)

3 (found 'if' at line: 193, complexity = 28)
3 (found 'defer' at line: 196, complexity = 31)
3 (found 'for' at line: 198, complexity = 34)
3 (found 'for with lines >= 10' at line: 198, complexity = 35)

4 (found 'if' at line: 206, complexity = 39)

2 (found 'if' at line: 213, complexity = 41)
2 (found 'if with lines >= 10' at line: 213, complexity = 42)

3 (found 'if' at line: 216, complexity = 45)

1 (found 'logical operator' at line: 216, complexity = 46)

3 (found 'if' at line: 219, complexity = 49)
3 (found 'if with lines >= 10' at line: 219, complexity = 50)

4 (found 'if' at line: 221, complexity = 54)

5 (found 'if' at line: 222, complexity = 59)

4 (found 'if' at line: 227, complexity = 63)

1 (found 'if' at line: 236, complexity = 64)
1 (found 'if' at line: 240, complexity = 65)
1 (found 'if' at line: 243, complexity = 66)
1 (found 'if' at line: 250, complexity = 67)

2 (found 'range' at line: 252, complexity = 69)

1 (found 'if' at line: 258, complexity = 70)

2 (found 'range' at line: 260, complexity = 72)

1 (found 'if' at line: 274, complexity = 73)
1 (found 'if' at line: 278, complexity = 74)

litecart/internal/queries/install.go:19:1 - Install has complexity: 17
complexity = 1

1 (found 'defer' at line: 21, complexity = 2)
1 (found 'if' at line: 24, complexity = 3)
1 (found 'defer' at line: 27, complexity = 4)
1 (found 'defer with lines >= 5' at line: 27, complexity = 5)

2 (found 'if' at line: 28, complexity = 7)

1 (found 'logical operator' at line: 28, complexity = 8)

2 (found 'else' at line: 30, complexity = 10)

1 (found 'if' at line: 37, complexity = 11)
1 (found 'if' at line: 42, complexity = 12)
1 (found 'defer' at line: 45, complexity = 13)
1 (found 'if' at line: 49, complexity = 14)
1 (found 'range' at line: 62, complexity = 15)

2 (found 'if' at line: 63, complexity = 17)

litecart/internal/queries/pages.go:26:1 - ListPages has complexity: 13
complexity = 1

1 (found 'if' at line: 32, complexity = 2)
1 (found 'if' at line: 37, complexity = 3)
1 (found 'defer' at line: 40, complexity = 4)
1 (found 'for' at line: 42, complexity = 5)
1 (found 'for with lines >= 10' at line: 42, complexity = 6)

2 (found 'if' at line: 48, complexity = 8)
2 (found 'if' at line: 52, complexity = 10)
2 (found 'if' at line: 56, complexity = 12)

1 (found 'if' at line: 63, complexity = 13)

litecart/internal/queries/products.go:22:1 - ListProducts has complexity: 21
complexity = 1

1 (found 'if' at line: 44, complexity = 2)
1 (found 'if with lines >= 10' at line: 44, complexity = 3)

2 (found 'range' at line: 51, complexity = 5)

1 (found 'if' at line: 58, complexity = 6)
1 (found 'if' at line: 64, complexity = 7)
1 (found 'defer' at line: 67, complexity = 8)
1 (found 'for' at line: 69, complexity = 9)
1 (found 'for with lines >= 10' at line: 69, complexity = 10)
1 (found 'for with lines >= 25' at line: 69, complexity = 11)

2 (found 'if' at line: 82, complexity = 13)
2 (found 'if' at line: 86, complexity = 15)

1 (found 'logical operator' at line: 86, complexity = 16)

2 (found 'if' at line: 90, complexity = 18)

1 (found 'if' at line: 97, complexity = 19)
1 (found 'if' at line: 103, complexity = 20)
1 (found 'logical operator' at line: 103, complexity = 21)

litecart/internal/queries/products.go:111:1 - Product has complexity: 13
complexity = 1

1 (found 'if' at line: 132, complexity = 2)
1 (found 'else' at line: 134, complexity = 3)
1 (found 'if' at line: 158, complexity = 4)

2 (found 'if' at line: 159, complexity = 6)

1 (found 'if' at line: 165, complexity = 7)
1 (found 'if' at line: 169, complexity = 8)
1 (found 'logical operator' at line: 169, complexity = 9)
1 (found 'if' at line: 173, complexity = 10)
1 (found 'if' at line: 177, complexity = 11)
1 (found 'if' at line: 181, complexity = 12)
1 (found 'if' at line: 185, complexity = 13)

litecart/internal/queries/products.go:350:1 - ProductDigital has complexity: 31
complexity = 1

1 (found 'defer' at line: 354, complexity = 2)
1 (found 'if' at line: 357, complexity = 3)
1 (found 'defer' at line: 361, complexity = 4)
1 (found 'defer with lines >= 5' at line: 361, complexity = 5)

2 (found 'if' at line: 362, complexity = 7)

1 (found 'logical operator' at line: 362, complexity = 8)

2 (found 'else' at line: 364, complexity = 10)

1 (found 'if' at line: 372, complexity = 11)

2 (found 'if' at line: 373, complexity = 13)

1 (found 'if' at line: 379, complexity = 14)
1 (found 'else' at line: 381, complexity = 15)
1 (found 'if' at line: 387, complexity = 16)
1 (found 'defer' at line: 390, complexity = 17)
1 (found 'for' at line: 392, complexity = 18)
1 (found 'for with lines >= 10' at line: 392, complexity = 19)

2 (found 'if' at line: 400, complexity = 21)

1 (found 'if' at line: 407, complexity = 22)
1 (found 'if' at line: 413, complexity = 23)
1 (found 'defer' at line: 416, complexity = 24)
1 (found 'for' at line: 418, complexity = 25)
1 (found 'for with lines >= 10' at line: 418, complexity = 26)

2 (found 'if' at line: 427, complexity = 28)
2 (found 'if' at line: 431, complexity = 30)

1 (found 'if' at line: 438, complexity = 31)

litecart/internal/queries/products.go:492:1 - DeleteDigital has complexity: 16
complexity = 1

1 (found 'if' at line: 495, complexity = 2)
1 (found 'switch' at line: 499, complexity = 3)
1 (found 'case' at line: 500, complexity = 4)

2 (found 'if' at line: 503, complexity = 6)
2 (found 'if' at line: 507, complexity = 8)
2 (found 'range' at line: 515, complexity = 10)

3 (found 'if' at line: 516, complexity = 13)

1 (found 'case' at line: 521, complexity = 14)

2 (found 'if' at line: 522, complexity = 16)

litecart/internal/queries/setting.go:25:1 - Settings has complexity: 21
complexity = 1

1 (found 'if' at line: 32, complexity = 2)
1 (found 'if' at line: 42, complexity = 3)
1 (found 'defer' at line: 45, complexity = 4)
1 (found 'for' at line: 68, complexity = 5)
1 (found 'for with lines >= 10' at line: 68, complexity = 6)

2 (found 'if' at line: 71, complexity = 8)
2 (found 'if' at line: 76, complexity = 10)

3 (found 'branch' at line: 77, complexity = 13)

2 (found 'type switch' at line: 80, complexity = 15)
2 (found 'case' at line: 81, complexity = 16)
2 (found 'case' at line: 83, complexity = 17)

3 (found 'if' at line: 85, complexity = 20)

1 (found 'if' at line: 92, complexity = 21)

litecart/internal/queries/setting.go:100:1 - UpdateSettings has complexity: 26
complexity = 1

1 (found 'defer' at line: 102, complexity = 2)
1 (found 'if' at line: 105, complexity = 3)
1 (found 'defer' at line: 108, complexity = 4)
1 (found 'defer with lines >= 5' at line: 108, complexity = 5)

2 (found 'if' at line: 109, complexity = 7)

1 (found 'logical operator' at line: 109, complexity = 8)

2 (found 'else' at line: 111, complexity = 10)

1 (found 'if' at line: 117, complexity = 11)
1 (found 'defer' at line: 120, complexity = 12)
1 (found 'switch' at line: 123, complexity = 13)
1 (found 'case' at line: 124, complexity = 14)
1 (found 'case' at line: 133, complexity = 15)

2 (found 'if' at line: 135, complexity = 17)
2 (found 'if' at line: 139, complexity = 19)

1 (found 'case' at line: 147, complexity = 20)
1 (found 'case' at line: 152, complexity = 21)
1 (found 'case' at line: 160, complexity = 22)
1 (found 'case' at line: 169, complexity = 23)
1 (found 'range' at line: 173, complexity = 24)

2 (found 'if' at line: 174, complexity = 26)

litecart/internal/queries/setting.go:306:1 - SettingStripe has complexity: 13
complexity = 1

1 (found 'if' at line: 311, complexity = 2)
1 (found 'defer' at line: 314, complexity = 3)
1 (found 'for' at line: 316, complexity = 4)
1 (found 'for with lines >= 10' at line: 316, complexity = 5)

2 (found 'if' at line: 319, complexity = 7)
2 (found 'switch' at line: 323, complexity = 9)
2 (found 'case' at line: 324, complexity = 10)
2 (found 'case' at line: 326, complexity = 11)
2 (found 'case' at line: 328, complexity = 12)

1 (found 'if' at line: 333, complexity = 13)

litecart/internal/queries/setting.go:341:1 - ListSocials has complexity: 19
complexity = 1

1 (found 'if' at line: 348, complexity = 2)
1 (found 'defer' at line: 351, complexity = 3)
1 (found 'for' at line: 353, complexity = 4)
1 (found 'for with lines >= 10' at line: 353, complexity = 5)

2 (found 'if' at line: 356, complexity = 7)
2 (found 'if' at line: 360, complexity = 9)
2 (found 'if with lines >= 10' at line: 360, complexity = 10)

3 (found 'switch' at line: 361, complexity = 13)
3 (found 'case' at line: 362, complexity = 14)
3 (found 'case' at line: 364, complexity = 15)
3 (found 'case' at line: 366, complexity = 16)
3 (found 'case' at line: 368, complexity = 17)
3 (found 'case' at line: 370, complexity = 18)

1 (found 'if' at line: 376, complexity = 19)

litecart/internal/queries/setting.go:384:1 - SettingMail has complexity: 18
complexity = 1

1 (found 'if' at line: 390, complexity = 2)
1 (found 'defer' at line: 393, complexity = 3)
1 (found 'for' at line: 395, complexity = 4)
1 (found 'for with lines >= 10' at line: 395, complexity = 5)

2 (found 'if' at line: 398, complexity = 7)
2 (found 'if' at line: 402, complexity = 9)
2 (found 'if with lines >= 10' at line: 402, complexity = 10)

3 (found 'switch' at line: 403, complexity = 13)
3 (found 'case' at line: 404, complexity = 14)
3 (found 'case' at line: 406, complexity = 15)
3 (found 'case' at line: 409, complexity = 16)
3 (found 'case' at line: 411, complexity = 17)
3 (found 'case' at line: 413, complexity = 18)

litecart/pkg/archive/tar.go:63:1 - ExtractTar has complexity: 17
complexity = 1

1 (found 'if' at line: 65, complexity = 2)
1 (found 'defer' at line: 68, complexity = 3)
1 (found 'if' at line: 71, complexity = 4)
1 (found 'defer' at line: 74, complexity = 5)
1 (found 'for' at line: 77, complexity = 6)
1 (found 'for with lines >= 10' at line: 77, complexity = 7)

2 (found 'if' at line: 79, complexity = 9)

3 (found 'if' at line: 80, complexity = 12)

2 (found 'if' at line: 85, complexity = 14)

3 (found 'if' at line: 88, complexity = 17)

litecart/pkg/archive/zip.go:51:1 - ExtractZip has complexity: 16
complexity = 1

1 (found 'if' at line: 53, complexity = 2)
1 (found 'defer' at line: 56, complexity = 3)
1 (found 'if' at line: 59, complexity = 4)
1 (found 'if' at line: 63, complexity = 5)
1 (found 'range' at line: 67, complexity = 6)
1 (found 'range with lines >= 10' at line: 67, complexity = 7)

2 (found 'if' at line: 68, complexity = 9)

3 (found 'branch' at line: 69, complexity = 12)

2 (found 'if' at line: 73, complexity = 14)
2 (found 'if' at line: 78, complexity = 16)

litecart/pkg/update/update.go:28:1 - Init has complexity: 19
complexity = 1

1 (found 'defer' at line: 36, complexity = 2)
1 (found 'if' at line: 39, complexity = 3)
1 (found 'defer' at line: 46, complexity = 4)
1 (found 'if' at line: 48, complexity = 5)
1 (found 'else' at line: 52, complexity = 6)

2 (found 'if' at line: 53, complexity = 8)
2 (found 'if' at line: 49, complexity = 10)

1 (found 'if' at line: 61, complexity = 11)
1 (found 'defer' at line: 65, complexity = 12)
1 (found 'if' at line: 68, complexity = 13)

2 (found 'if' at line: 70, complexity = 15)

1 (found 'if' at line: 75, complexity = 16)
1 (found 'if' at line: 80, complexity = 17)

2 (found 'if' at line: 81, complexity = 19)

54 = files
177 = functions
74 = highest complexity
4.84 = overall average complexity per function
How to Reproduce
All the code with high numbers can hide bugs because of the complex structure. These can be candidates for refactoring.
Expected Behavior
Simple code, that's easy to maintain.
litecart Version
latest on github
Code Snippet (optional)
No response
Checklist:

[X] I agree to follow litecart's Code of Conduct.
[X] I have checked for existing issues that describe my problem prior to opening this one.
[X] I understand that improperly formatted bug reports may be closed without explanation.

@marcelloh Thank you for the comment.
This does not pertain to bugs.
I find some of the comments strange and misleading.

authors: marcelloh shurco

repo: shurco/litecart


text:
feat: i16 types

Required Functionality
Currently Synth allows me to generate data for int4 and int8 Postgres types using the i32 and i64 generator. However, it is not possible to generate data for a int2 Postgres type.
This is because Postgres requires bytes lengths to match exactly. Hence the i32 and i64 generator cannot be used.
Proposed Solution
Adding an i16 type to Synth will allow me to fill an int2 Postgres field.
Use case
Filling int2 Postgres fields

#405 is merged

authors: chesedo iamwacko

repo: shuttle-hq/synth


text:
generated my component

cse 1st sem
i've generated my component

i have fixed your error this time.
make sure to commit error-free code in the future

authors: MPSAJID shuxton

repo: shuxton/GDSC-Angular


text:
Smallest example not working for PHP version > 8.1.16 on Ubuntu server

Error message from shopware container:
Waiting for database connection...
Waiting for database connection...
Waiting for database connection...
...
I'm referring to this docker-compose example:
version: "3.8"
services:
  mysql:
    image: mysql:8.0
    environment:
      MYSQL_ROOT_PASSWORD: root
      MYSQL_DATABASE: shopware
      MYSQL_USER: shopware
      MYSQL_PASSWORD: shopware
  shopware:
    image: shyim/shopware:6.4.20-php8.2
    environment:
      APP_SECRET: 440dec3766de53010c5ccf6231c182acfc90bd25cff82e771245f736fd276518
      INSTANCE_ID: 10612e3916e153dd3447850e944a03fabe89440970295447a30a75b151bd844e
      APP_URL: http://localhost
      BLUE_GREEN_DEPLOYMENT: 0
      DATABASE_HOST: mysql
      DATABASE_PORT: 3306
      DATABASE_URL: mysql://shopware:shopware@mysql:3306/shopware
    ports:
      - 80:80

When executed an M1 Mac, it works fine but on a brand new Ubuntu 22 server (lsb_release -a) ...
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.2 LTS
Release:	22.04
Codename:	jammy
... it does not because for some reason PHP does not connect to the mysql-db. It works up to PHP 8.1.16 though e.g. with this image-tag: 6.4.20-php8.1.16 (8.1.17 does not)
I was running a basic docker compose up. At the end of everything where it should usually run, I'm getting constant 'Waiting for database connection...' messages from the shopware container.
Please advise. For now I'm good with 6.4.20-php8.1.16

On what machine did you do that? As I said, on my Mac M1 it works.

Ubuntu 22.04

Wow wait, I just tried that in a different folder and it works too.
I need to investigate what caused this ...
Thanks a lot for the quick reaction!

authors: ronnyworm shyim

repo: shyim/shopware


text:
[Bug]: Хук useDocumentTitle

Благодаря дополнительному тест-кейсу (ниже), обнаружил незначительный баг: предположим, что мы пишем без  typescript (да, так вот получилось) и если мы случайно или осознано захотим передать в setTitle что-то отличное от строки, то приложение крашится.

Ошибка происходит в этом месте (ниже, 57 строка), так как мы не проверяем наличие и тип value при попытке вызвать trim().

Спасибо за фидбек, можете ли показать ошибку из консоли. Просто лично мое мнение, что такие ошибки на js это норма, а добавлять код гуардами не вижу смысла, ведь в коде будет тоже самое, что-то тип если тип не строка, то выкинь ошибку. Не вижу смысла, но хочу проверить, что ошибка в таком случае информативная

Вот такие ошибки, если передать null или number:

Да я считаю это приземлённой ошибкой, с помощью которой человек легко сможет понять в чем дело

authors: Dzmitry-Kubarski debabin

repo: siberiacancode/reactuse


text:
Error in npmjs documentation

I'm submitting a

[X] Documentation issue or request

Description
Error in https://www.npmjs.com/package/ngx-editor documentation.
<div class="NgxEditor__Wrapper">
  <ngx-editor-menu [editor]="editor"> </ngx-editor-menu>
  <ngx-editor
    [editor]="editor"
    [ngModel]="html"
    [editable]="true"
    [placeholder]="Type here..."    <---------- (Binding Error)
  ></ngx-editor>
</div>

Please change
[placeholder]=" 'Type here..' "  or     placeholder="Type here..."

Will fix.

Fixed.

authors: guidofs sibiraj-s

repo: sibiraj-s/ngx-editor


text:
Is there any way to get the results back to our automation script? Because I need to work on the results to validate the output. Currently we can send the keys and there is no way to get results after sending the key. please assist me on this!

Have you included the following information?

[ ] VNC server and version
[x] vncdotool version
[ ] steps to reproduce

vncdotool 0.12.0

You would need to take screenshot and run OCR.
On Mon, Jul 23, 2018 at 04:33 Dayananda DR notifications@github.com wrote:

vncdotool 0.12.0
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sibson/vncdotool/issues/129#issuecomment-406981667,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAHo6v_s5CIlo1HATBVafZ2ncBDCvMpiks5uJYpEgaJpZM4Vakw3
.

repo: sibson/vncdotool

license: mit

license_source: bigquery


text:
[Kernel] implement a resetState method for DS

Right now it is difficult to reset the state of a dynamical system. We need to do it for the SMC controllers. The idea is to implement a method to do that properly.

Again a good idea. What do you want to do exactly ?

reset the state x to a arbitrary value ?
keep or reset also x0 the initial state ?
keep, or reset or erase the siconos memory vectors that are related to the state ?

It is that our long term to put all simulation variables to the graph keeping just a alias as current state in  the object will help

any updates ?

Unfortunately, I don't have time to implement this now. This is low priority and should not block a release.

authors: vacary xhub

repo: siconos/siconos


text:
Add License to project

Probably will be adding MIT license but have a look again at it.

Added MIT License.


text:
can define multi siddhi app and dynamic add any new sql rule?

i met a issue similar to https://github.com/siddhi-io/siddhi/issues/1211#issue-432488421 .
eg. a input stream and two sink: a -> b -> c and a ->b ->d。
of course it is easy to run with single siddhi app config. but it will lose some flexible。 so i prefer to define two siddhi app which share the stream a and  b.
to go a step further， now i want to dynamic add a new sink a -> b ->e ，is there a way to do this without restart siddhi runtime?

In Siddhi, you can create multiple Siddhi Apps and connect them via in-memory sinks and sources. Here sinks and sources use the topic property to correlate themselves, and both should use the same event schema (stream definition) for successful data transfer.
When Apps are connected as above they can be added and removed dynamically providing the flexibility you needed. For example, you can have a common app to consume the events and to perform some pre-processing. then you can pass the resulting events streams to various other Apps to achieve other business-specific use cases.

In Siddhi, you can create multiple Siddhi Apps and connect them via in-memory sinks and sources. Here sinks and sources use the topic property to correlate themselves, and both should use the same event schema (stream definition) for successful data transfer.
When Apps are connected as above they can be added and removed dynamically providing the flexibility you needed. For example, you can have a common app to consume the events and to perform some pre-processing. then you can pass the resulting events streams to various other Apps to achieve other business-specific use cases.

it seem to cost memory,but i run siddhi on docker with 4 core,8G memory..is it can run well on that?

repo: siddhi-io/siddhi


text:
feat(logging): update logging v3.5.0 rc

This PR introduces a way to migrate existing clusters towards loki tsdb store and schema v13. Since version 2.8 Loki introduced a new single store option that has become the default store for all new Loki deployments, the TSDB store. Along with TSDB a new schema version has been introduced (v13) which enables support to structured metadata. So it introduces a breaking schema change. Below there is a detailed explanation and some examples:
Checklist for Testing 🧪

[x] Tested schema on furyctl.yaml file with date format
[x] Tested new Loki installation
[x] Tested reading old logs with old format from S3 compatible storage
[x] Verified that changing the TSDB schema on the current date on an existing storage will make the current day work only with the new tsdb storage
[x] Tested migration to opensearch
[x] Tested opensearch index patterns
[x] Tested migration from opensearch to loki and verified the fix to the template if tsdbStartDate is null

Details ⚙

New option for Logging:
The Loki configuration has been extended to accommodate the new tsdbStartDate option to allow a migration towards TSDB and schema v13 (note: this is a breaking change):
...
  loki:
    tsdbStartDate: "2024-11-18"
...

tsdbStartDate  (required): configures details for the schema config for the purpose of the migration

tsdbStartDate should be a string in ISO 8601 date format and it represents the day starting from which Loki will record logs with the new store and schema.
ℹ Note:  Loki will assume the start of the day on the UTC midnight of the specified day.

Breaking Changes 💔

Loki store and schema change:
A new store and schema has been introduced in order to improve efficiency, speed and scalability of Loki clusters.

Hi! I left some suggestions on the code.

Thank you for the suggestions! I have added them and it should be all in order now.

I also have a question: can we add a configurable parameter to set the logs retention now that we are using the TSDB? We could do that on another PR if you consider it out of scope of this one.

Since @nutellinoit said it is out of scope maybe we can open an issue to track this request in order to add this feature in the next update? What do you think?

Since @nutellinoit said it is out of scope maybe we can open an issue to track this request in order to add this feature in the next update? What do you think?

you can open an issue on the logging module to track this problem

authors: lukeskywlkr nutellinoit

repo: sighupio/fury-distribution


text:
Splunk rum crashes protected app

Initializing Splunk Rum on app start with a protected version crashes the app.
The crash happens when calling the method SplunkRum.initialize(Config).
Stacktrace:
java.lang.ExceptionInInitializerError
       at io.opentelemetry.sdk.trace.internal.JcTools.newFixedSizeQueue(Unknown Source:0)
       at io.opentelemetry.sdk.trace.export.BatchSpanProcessor.<init>(Unknown Source:14)
       at io.opentelemetry.sdk.trace.export.BatchSpanProcessorBuilder.build(Unknown Source:12)
       at com.splunk.rum.RumInitializer.buildTracerProvider(Unknown Source:5)
       at com.splunk.rum.RumInitializer.initialize(Unknown Source:93)
       at com.splunk.rum.SplunkRum.initialize(Unknown Source:25)
       at com.splunk.rum.SplunkRum.initialize(Unknown Source:5)
       at app.package.android.App.onCreate(Unknown Source:300)
       at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1154)
       at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6222)
       at android.app.ActivityThread.access$1200(ActivityThread.java:237)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1785)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:214)
       at android.app.ActivityThread.main(ActivityThread.java:7050)
       at java.lang.reflect.Method.invoke(Native Method)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)

Hey @gjmarkov ,
I'm not sure what a protected version means - can you elaborate?
What version of splunk-otel-android are you using? Can you post your initialization/config code here?

Hey @mateuszrzeszutek
By a protected version, I mean a release version with proguard enabled, and also a protected sdk obfuscating the code and other security measurements.
We are using version 0.12.0: implementation ("com.splunk:splunk-otel-android:0.12.0")
And here is the initialization/config code:
Init
	fun init(
		application: Application,
		endpoint: String,
		token: String,
		applicationName: String,
		crashFields: Map<String, String>
	) {
		SplunkRum.initialize(configuration(endpoint, token, applicationName, crashFields), application)
	}

Config
	private fun configuration(
		endpoint: String,
		token: String,
		applicationName: String,
		crashFields: Map<String, String>
	): Config = Config
		.builder()
		.apply {
			beaconEndpoint(endpoint)
			rumAccessToken(token)
			crashReportingEnabled(true)
			debugEnabled(BuildConfig.DEBUG)
			globalAttributes(attributes(crashFields))
			applicationName(applicationName)
		}.build()

Is that java.lang.ExceptionInInitializerError the full stack trace? Do you perhaps have the cause of the initializer error?

This is the full stack trace:
java.lang.ExceptionInInitializerError
        at io.opentelemetry.sdk.trace.internal.JcTools.newFixedSizeQueue(Unknown Source:0)
        at io.opentelemetry.sdk.trace.export.BatchSpanProcessor.<init>(Unknown Source:14)
        at io.opentelemetry.sdk.trace.export.BatchSpanProcessorBuilder.build(Unknown Source:12)
        at com.splunk.rum.RumInitializer.buildTracerProvider(Unknown Source:5)
        at com.splunk.rum.RumInitializer.initialize(Unknown Source:93)
        at com.splunk.rum.SplunkRum.initialize(Unknown Source:25)
        at com.splunk.rum.SplunkRum.initialize(Unknown Source:5)
        at app.package.android.App.onCreate(Unknown Source:300)
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1211)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7506)
        at android.app.ActivityThread.access$1700(ActivityThread.java:310)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2281)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loopOnce(Looper.java:226)
        at android.os.Looper.loop(Looper.java:313)
        at android.app.ActivityThread.main(ActivityThread.java:8669)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
     Caused by: java.lang.RuntimeException: java.lang.NoSuchFieldException: No field producerIndex in class io.opentelemetry.internal.shaded.jctools.queues.MpscArrayQueueProducerIndexField; (declaration of io.opentelemetry.internal.shaded.jctools.queues.MpscArrayQueueProducerIndexField.lvProducerIndex appears in /data/app/~~OPt5T3b5dYHO5w2ajgwpMQ==/app.package.android-DtRSC6tM5VA2HLhfR0d2qQ==/base.apk!classes5.dex)
        at io.opentelemetry.internal.shaded.jctools.util.UnsafeAccess.fieldOffset(Unknown Source:14)
        at io.opentelemetry.internal.shaded.jctools.queues.MpscArrayQueueProducerIndexField.<clinit>(Unknown Source:4)
        at io.opentelemetry.sdk.trace.internal.JcTools.newFixedSizeQueue(Unknown Source:0)
        at io.opentelemetry.sdk.trace.export.BatchSpanProcessor.<init>(Unknown Source:14)
        at io.opentelemetry.sdk.trace.export.BatchSpanProcessorBuilder.build(Unknown Source:12)
        at com.splunk.rum.RumInitializer.buildTracerProvider(Unknown Source:5)
        at com.splunk.rum.RumInitializer.initialize(Unknown Source:93)
        at com.splunk.rum.SplunkRum.initialize(Unknown Source:25)
        at com.splunk.rum.SplunkRum.initialize(Unknown Source:5)
        at app.package.android.App.onCreate(Unknown Source:300)
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1211)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7506)
        at android.app.ActivityThread.access$1700(ActivityThread.java:310)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2281)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loopOnce(Looper.java:226)
        at android.os.Looper.loop(Looper.java:313)
        at android.app.ActivityThread.main(ActivityThread.java:8669)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
     Caused by: java.lang.NoSuchFieldException: No field producerIndex in class io.opentelemetry.internal.shaded.jctools.queues.MpscArrayQueueProducerIndexField; (declaration of io.opentelemetry.internal.shaded.jctools.queues.MpscArrayQueueProducerIndexField.lvProducerIndex appears in /data/app/~~OPt5T3b5dYHO5w2ajgwpMQ==/app.package.android-DtRSC6tM5VA2HLhfR0d2qQ==/base.apk!classes5.dex)
        at java.lang.Class.getDeclaredField(Native Method)
        at io.opentelemetry.internal.shaded.jctools.util.UnsafeAccess.fieldOffset(Unknown Source:2)
        at io.opentelemetry.internal.shaded.jctools.queues.MpscArrayQueueProducerIndexField.<clinit>(Unknown Source:4)
        at io.opentelemetry.sdk.trace.internal.JcTools.newFixedSizeQueue(Unknown Source:0)
        at io.opentelemetry.sdk.trace.export.BatchSpanProcessor.<init>(Unknown Source:14)
        at io.opentelemetry.sdk.trace.export.BatchSpanProcessorBuilder.build(Unknown Source:12)
        at com.splunk.rum.RumInitializer.buildTracerProvider(Unknown Source:5)
        at com.splunk.rum.RumInitializer.initialize(Unknown Source:93)
        at com.splunk.rum.SplunkRum.initialize(Unknown Source:25)
        at com.splunk.rum.SplunkRum.initialize(Unknown Source:5)
        at app.package.android.App.onCreate(Unknown Source:300)
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1211)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7506)
        at android.app.ActivityThread.access$1700(ActivityThread.java:310)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2281)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loopOnce(Looper.java:226)
        at android.os.Looper.loop(Looper.java:313)
        at android.app.ActivityThread.main(ActivityThread.java:8669)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)

It maybe looking a bit weird with the packages and the classes' names because it had to be deobfuscated.

I suspect that proguard might be removing some parts from the OpenTelemetry SDK that are actually used; can you configure it so that it keeps all the OpenTelemetry classes/methods/fields? E.g. https://github.com/signalfx/splunk-otel-android/blob/main/splunk-otel-android/consumer-rules.pro#L2

authors: gjmarkov mateuszrzeszutek

repo: signalfx/splunk-otel-android


text:
Fail to Export Prometheus metrics to Splunk Enterprise

Hello,
We have the Prometheus setup that is scrapping the metrics from the Conflunet cloud metric endpoint "api.telemetry.confluent.cloud".
Using this helm chat, we configured the receiver and exporter configuration for OTEL pods shown below to collect the metrics from the Prometheus endpoint and export them to the Splunk index.
In the process, we are running into the timeout exceptions, attached below. Tried increasing the timeout period to 60s but that didn't work either.
Receivers:
  prometheus/agent:
      config:
        scrape_configs:
        - job_name: 'confluent-cloud'
          scrape_interval: 10s
          static_configs:
          - targets:
            - "${K8S_POD_IP}:9090"`
          exporters:
  splunk_hec:
    # Splunk HTTP Event Collector token.
    token: "2xxxxxx-gxxxx-5xxx-cxxxxx-xxxxxx1"
    # URL to a Splunk instance to send data to.
    endpoint: "https://splunkendpoint:8088"
    # Optional Splunk source: https://docs.splunk.com/Splexicon:Source
    source: "app:metrics"
    # Optional Splunk source type: https://docs.splunk.com/Splexicon:Sourcetype
    sourcetype: "prometheus"
    # Splunk index, optional name of the Splunk index targeted.
    index: "confluent_metrics"
    # Maximum HTTP connections to use simultaneously when sending data. Defaults to 100.
    max_connections: 200
    # Whether to disable gzip compression over HTTP. Defaults to false.
    disable_compression: false
    # HTTP timeout when sending data. Defaults to 10s.
    timeout: 10s
    tls:
      # Whether to skip checking the certificate of the HEC endpoint when sending data over HTTPS. Defaults to false.
      insecure_skip_verify: true
    # Application name is used to track telemetry information for Splunk App's using HEC by App name.
    splunk_app_name: "OpenTelemetry-Collector Splunk Exporter"
    # Application version is used to track telemetry information for Splunk App's using HEC by App version.
    splunk_app_version: "v0.0.1"
Pipeline:
    metrics:
          receivers:
            - prometheus/agent
          processors:
            - memory_limiter
            - batch
            - resourcedetection
            - resource
            {{- if (and .Values.splunkPlatform.metricsEnabled .Values.environment) }}
            - resource/add_environment
            {{- end }}
            {{- if .Values.isWindows }}
            - metricstransform
            {{- end }}
          exporters:
            - splunk_hec
            {{- if $gatewayEnabled }}
            - otlp
            {{- else }}
            {{- if (eq (include "splunk-otel-collector.o11yMetricsEnabled" .) "true") }}
            - signalfx
            {{- end }}
            {{- if (eq (include "splunk-otel-collector.platformMetricsEnabled" .) "true") }}
            - splunk_hec/platform_metrics
            {{- end }}
            {{- end }}

Error logs,
023-03-16T13:30:08.290Z	info	prometheusreceiver@v0.71.0/metrics_receiver.go:255	Starting discovery manager	{"kind": "receiver", "name": "prometheus/agent", "data_type": "metrics"}
2023-03-16T13:30:08.298Z	info	prometheusreceiver@v0.71.0/metrics_receiver.go:243	Scrape job added	{"kind": "receiver", "name": "prometheus/agent", "data_type": "metrics", "jobName": "prometheus"}
2023-03-16T13:30:08.298Z	info	healthcheck/handler.go:129	Health Check state change	{"kind": "extension", "name": "health_check", "status": "ready"}
2023-03-16T13:30:08.298Z	info	service/service.go:157	Everything is ready. Begin running and processing data.
2023-03-16T13:30:08.298Z	info	prometheusreceiver@v0.71.0/metrics_receiver.go:289	Starting scrape manager	{"kind": "receiver", "name": "prometheus/agent", "data_type": "metrics"}
2023-03-16T13:57:01.161Z	info	exporterhelper/queued_retry.go:433	Exporting failed. Will retry the request after interval.	{"kind": "exporter", "data_type": "metrics", "name": "splunk_hec/platform_metrics", "error": "Post \"https://splunkendpoint:8088/services/collector\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)", "interval": "4.791076523s"}
2023-03-16T14:42:21.260Z	info	exporterhelper/queued_retry.go:433	Exporting failed. Will retry the request after interval.	{"kind": "exporter", "data_type": "metrics", "name": "splunk_hec/platform_metrics", "error": "Post \"https://splunkendpoint:8088/services/collector\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)", "interval": "6.109554934s"}

We are able to export the host-level metrics, however, the issue is with the Prometheus metrics. Is there any additional configuration needed to resolve this issue?
Thanks,

Are you sure your endpoint is valid? The HEC exporter is saying it’s not responding.

@atoulme thanks for looking into this. Yes, the endpoint is valid and points to the organization's Splunk instance. I just mentioned the endpoint here as "splunkendpoint" due to security concerns.

Hey, I have been tracking instances of this message for a while now see this thread. It pops up in various scenarios but seems definitely related to Splunk being under high load.
To be clear which timeout did you adjust? this one? https://github.com/signalfx/splunk-otel-collector-chart/blob/34718752a1d602aef5cd066a0d35fd8f30cdb094/helm-charts/splunk-otel-collector/values.yaml#L50
Which pod is doing this scraping for you? The cluster-receiver ?
Are you sending directly to a Splunk instance or through a loadbalancer?
I do believe this has to do with OTel overwhelming Splunk and Splunk not responding to the collector fast enough.
I believe the answer lies in some combination of the following settings:
OTel:
https://github.com/signalfx/splunk-otel-collector-chart/blob/34718752a1d602aef5cd066a0d35fd8f30cdb094/helm-charts/splunk-otel-collector/values.yaml#L45-L46
https://github.com/signalfx/splunk-otel-collector-chart/blob/34718752a1d602aef5cd066a0d35fd8f30cdb094/helm-charts/splunk-otel-collector/values.yaml#L49-L50
Splunk:
inputs.conf
[http]

dedicatedIoThreads = <non-negative integer>
* The number of dedicated input/output threads in the event collector
  input.
* Default: 0 (The input uses a single thread)

maxSockets = <integer>
* The number of HTTP connections that the HTTP event collector input
  accepts simultaneously.
* Set this setting to constrain resource usage.
* If you set this setting to 0, the input automatically sets it to
  one third of the maximum allowable open files on the host.
* If this value is less than 50, the input sets it to 50. If this value
  is greater than 400000, the input sets it to 400000.
* If set to a negative value, the input does not enforce a limit on
  connections.
* Default: 0

maxThreads = <integer>
* The number of threads that can be used by active HTTP transactions.
* Set this to constrain resource usage.
* If you set this setting to 0, the input automatically sets the limit to
  one third of the maximum allowable threads on the host.
* If this value is less than 20, the input sets it to 20. If this value is
  greater than 150000, the input sets it to 150000.
* If the 'maxSockets' setting has a positive value and 'maxThreads'
  is greater than 'maxSockets', then the input sets 'maxThreads' to be equal
  to 'maxSockets'.
* If set to a negative value, the input does not enforce a limit on threads.
* Default: 0

busyKeepAliveIdleTimeout = <integer>
* How long, in seconds, that the HTTP Event Collector lets a keep-alive
  connection remain idle while in a busy state before forcibly disconnecting it.
* CAUTION: Setting this to a value that is too large
  can result in file descriptor exhaustion due to idling connections.
* If this value is less than 12, the input sets it to 12.
* Default: 12

I have been long suspicious about the OTel maxConnections setting, because if a single collector can spin up 200 connections toward Splunk, I could see default HEC endpoint getting overwhelmed. Especially with the daemonset AND the cluster receiver being able to theoretically can send up to 200 connections.
I would first recommend checking the ULimits for file descriptors on your Splunk instance as that will heavily influence how many sockets can be used.
https://docs.splunk.com/Documentation/Splunk/9.0.4/Installation/Systemrequirements#Considerations_regarding_system-wide_resource_limits_on_.2Anix_systems
Also I would validate the cpu and memory set on the otel side vs the Splunk side.
You can pretty safely set the dedicatedIoThreads to 2 on Splunk to give it an extra thread to handle HEC traffic.
the busyKeepAliveIdleTimeout needs to be HIGHER than any OTel or LoadBalancer keepalive timeout as well.

@matthewmodestino we also tried testing on the timeouts and the max_connections configuration but no change in the behavior.

Closing as inactive. Please reopen if the issue is still occurring.

authors: Mohid-A atoulme matthewmodestino

repo: signalfx/splunk-otel-collector-chart


text:
fix: Check mxBean compatibility

Check for mxBean compatibility ahead of checking whether Allocated Memory is enabled. This is related to #1435 .

@asuresh4 this repository requires commits to be signed https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits you also need to add the gpg key to your github account. Also take a look at https://safjan.com/git-sign-previous-commit/

Thanks @laurit , just amended the commit.

@breedx-splk @laurit thanks for reviewing and merging this. Would it be possible to do a patch release including the fix? We have a customer waiting for this. If that is not a possibility when is the next planned release? Thanks again!

@asuresh4 I think the next planned release would be on 16 nov. Patch release can be done if needed.

@laurit I opened #1515  for updating CHANGELOG. PTAL. It would be awesome to provide a patch release for the customer since they've wanted to install the agent and this exception has been blocking them.

@asuresh4 is this fixing the same issue as described in https://github.com/signalfx/splunk-otel-java/pull/1435?

repo: signalfx/splunk-otel-java


text:
CDN doesn't allow to be grabbed from another site

I get the following error:
Access to script at 'https://cdn.signalfx.com/o11y-gdi-rum/latest/splunk-otel-web.js' from origin 'https://www.whiscuit.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I believe the solution is here: https://aws.amazon.com/premiumsupport/knowledge-center/no-access-control-allow-origin-error/

hey @blained3, thanks for letting us know! We've misconfigured a caching policy, and as luck would have it, the first request to reach Cloud Front was non-CORS. I'll let you close the issue if it looks good for you now.

Feel free to reopen if you can still find any issues related to this.

repo: signalfx/splunk-otel-js-web


text:
feat: add support for OTEL_EXPORTER_OTLP_PROTOCOL, OTEL_EXPORTER_OTLP_ENDPOINT

Drop dubious possible values for OTEL_TRACES_EXPORTER, e.g. otlp-splunk which meant the HTTP protobuf exporter.
Switching between gRPC and HTTP is now done via OTEL_EXPORTER_OTLP_PROTOCOL and OTEL_EXPORTER_OTLP_TRACES_PROTOCOL with the latter taking precedence as per OTel spec.
Add support for OTEL_EXPORTER_OTLP_TRACES_ENDPOINT. Order of precedence: programmatically -> OTEL_EXPORTER_OTLP_TRACES_ENDPOINT -> OTEL_EXPORTER_OTLP_ENDPOINT.
It is now possible to specify multiple exporters, separated by commas to OTEL_TRACES_EXPORTER. The only accepted values for now are otlp and console.

Codecov Report
Base: 82.28% // Head: 83.68% // Increases project coverage by +1.39% :tada:

Coverage data is based on head (a6ec6c2) compared to base (05cc17c).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #599      +/-   ##
==========================================
+ Coverage   82.28%   83.68%   +1.39%
==========================================
  Files          28       28
  Lines        1118     1140      +22
  Branches      248      255       +7
==========================================
+ Hits          920      954      +34
+ Misses        198      186      -12

Impacted Files
Coverage Δ

src/tracing/options.ts
99.21% <100.00%> (+10.23%)
:arrow_up:

src/utils.ts
95.83% <100.00%> (+1.38%)
: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.

authors: codecov-commenter seemk

repo: signalfx/splunk-otel-js


text:
[myPyllant.api] Could not get diagnostic trouble codes

Before submitting a new issue

[ x] I'm not using the older Vaillant sensoAPP (which is unsupported by this integration)
[ x] I redownloaded the latest release and restarted Home Assistant
[x] I've enabled debug logs and attached the relevant logs to this ticket

Problem description
Hi, I get a error code or hint or notice, how ever, many times a day in the Home Assistant core logs respectively in the host system logs from myVAILLANT integration.
Nevertheless Integration is working very well.
Thank you for your work. How or where I can donate your work or spend a coffee?
Logs
Could not get diagnostic trouble codes

Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/myPyllant/api.py", line 832, in get_diagnostic_trouble_codes
response = await self.aiohttp_session.get(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 689, in _request
    resp.raise_for_status()
File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1059, in raise_for_status
    raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 502, message='Bad Gateway', url=URL('https://api.vaillant-group.com/service-connected-control/end-user-app-api/v1/systems/********-****-****-****-************/diagnostic-trouble-codes')

It seems this endpoint sometimes becomes unavailable, but the log entry is only a warning and shouldn't affect anything. I guess you're not seeing this very often?
Thanks for the coffee offer, I currently don't have anything set up for that. I'll post a link in one of the release notes, when I get around to it!

authors: koejok signalkraft

repo: signalkraft/mypyllant-component


text:
App icon is not listed while the app opens a dialog.

Hi.
When I upload my local file with Edge( Edge opens file selection dialog),
I can switch another app with alt+tab( a filer to copy file path to upload ),
but cannot switch back to Edge with alt+tab because Edge icon not displayed on the swithing list.
Thanks.

I reproduced your problem on v1.2.1 which is fixed in the latest code.
Please pull the main branch, compile, and use it

I tried latest code, and confirmed the issue has been cleared.
Thank you for your effort.

authors: joelcho oganii

repo: sigoden/window-switcher


text:
Required CORS or IP errors dissapear fairly quickly

It would be nice if the errors from invalid IP or not setting cors correctly would stay around.

The error probably should also say, make sure to add
--http-allow-origin "*"

repo: sigp/siren


text:
Remove unused branch master

We currently have both a main and a master branch.
I think this is likely to create confusion at some point and given the master branch contains nothing that the main branch doesn't also contain (it's just currently 313 commits behind, having not moved since September), it seems safe to just remove it.

Thanks for pointing this out. I cleaned that up as well as many other stale branches from early in the life of the project.

authors: axelsimon bobcallaway

repo: sigstore/rekor


text:
Fix PHP extension installation documentation

I think it would be better if we explicitly add git clone and cd steps, as finding the extension sources might be not so obvious.

Thank you @kix.

authors: fabpot kix

repo: silexphp/Pimple


text:
Request hash with monolog

I recently found myself in the need of adding a request hash into the logs of a Silex project. I could not find anywhere a cookbook or documentation on how to do this, so I documented the way I solved it.
It's actually pretty similar (if not the same) solution as proposed in the Symfony docs:
http://symfony.com/doc/current/cookbook/logging/monolog.html#adding-a-session-request-token
I've simplified it the best I could.
This should help the next poor soul trying to achieve this.
I'm asking this to be merged into 1.3 since it's only documentation and not a new feature.
Thanks

Closing as there is a better solution as explained by @tgallice

authors: fabpot hasumedic

repo: silexphp/Silex


text:
Modify Email that Webonary sends out

When the Administration Email Address is changed, Webonary sends out the following email:

Howdy vernastutzman,
Someone with administrator capabilities recently requested to have the administration email address changed on this site:
https://www.webonary.org/lama
To confirm this change, please click on the following link:
https://www.webonary.org/lama/wp-admin/options.php?adminhash=c025f239da0e6573a2ba47d83274007a
You can safely ignore and delete this email if you do not want to take this action.
This email has been sent to carol_brinneman@wycliffe.org
Regards,
All at Dictionnaire lama
https://www.webonary.org/lama
Let's discuss some wording changes that are more specific and sound more professional.

It might be helpful to install this plugin to make it easier to edit email templates. I can't tell if it will specifically do this email but it is descibed as being able to customise WordPress website’s default transactional email designs and templates.
https://wordpress.org/plugins/email-templates/
It would be possible to add the webonary logo to the email if we wanted.
How about this wording:
Dear  ,
Someone with administrator capabilities recently requested to have the administration email address changed on this site:
https://www.webonary.org/lama
To confirm this change, please click on the following link:
https://www.webonary.org/lama/wp-admin/options.php?adminhash=c025f239da0e6573a2ba47d83274007a
You can safely ignore and delete this email if you do not want to take this action.
This email has been sent to carol_brinneman@wycliffe.org
Regards,
The Webonary Administration Team

This is the default template,
Howdy ###USERNAME###,

Someone with administrator capabilities recently requested to have the
administration email address changed on this site:
###SITEURL###

To confirm this change, please click on the following link:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###

This string is in the file wordpress/wp-admin/includes/misc.php which is part of WordPress itself, we cannot change it.

repo: sillsdev/webonary


text:
Cannot save into fields

Why Iframe module cannot save into fields?
Content
BottomContent

Closing this for now. If you are still having this issue then we're going to need some more info. :)

I've tested this feature and I can confirm that you can indeed save into fields. Possibly there is some configuration in your project.
In any case, I apologise for not answering this for 2 years.

authors: JStika assertchris tractorcow

repo: silverstripe-labs/silverstripe-iframe


text:
[2009-05-14] Folder->syncChildren broken for case-insensitive filenames - ie. 'file.jpg' and 'File.jpg'

created by: gsivorot
created at: 2009-05-14
original ticket: http://open.silverstripe.org/ticket/4072

This bug took me a while to track down.  First I noticed that some files were becoming unlinked on certain pages.  This happened whenever I went to the Files & Images tab (or opened a pop-up to the DataObjectManager).  After some investigation, I found that there is a bug in the query in the Folder->syncChildren method.
Line 46 of Folder.php
"SELECT Name FROM File WHERE ParentID = $parentID GROUP BY Name HAVING count(*) > 1"
This query does a CASE INSENSITIVE group by on most installations of MySQL (you can turn on case sensitivity).  If you have two different files in the database: 'file.jpg' and 'File.jpg' this GROUP BY query will match both.  The method treats the two files as duplicates even though they are not.  It then deletes the duplicate, scans the assets folder, notices that a database record is missing for the file it deleted and re-creates it under a different ID.  This happens each time that syncChildren is run so your file will become 'unlinked' from your pages because it has been deleted and re-created under a new ID.
Possible Solution:
I don't know if this is the best solution but changing the query to group by the Name's hex value fixes the issue:
"SELECT Name FROM File WHERE ParentID = $parentID GROUP BY HEX(Name) HAVING count(*) > 1"
This ensures a CASE SENSITIVE group by.

syncChildren() not really a part of the SS4 asset system; closing as out of date.

authors: silverstripe-issues sminnee

repo: silverstripe/silverstripe-framework


text:
Inputs for entering metadata about file/image after upload could use more room

When uploading a file or image in the assets/TinyMCE, the inputs for editing the filename, title and owner could use a bit more width to allow space to enter the values.
Latest SilverStripe 3.1.x-dev.

Here's how it looks when you edit the image after:

Fixed in SS4

authors: halkyon sminnee


text:
Remove noisy bottom row from default HTMLEditorField

It shows the breadcrumbs to the HTML tag, which isn't super useful to the majority of content authors. Given how common TinyMCE is, those 20px in height add a LOT of clutter overall. Particularly now that we're starting to embed TinyMCE in more constrained views such as block inline editing.

Related: upgrade to newer TinyMCE which would remove this feature anyway https://github.com/silverstripe/silverstripe-admin/issues/675

I agree it shouldn't be there and since I cannot see movement in #675 & #653 I suggest to just set https://github.com/silverstripe/silverstripe-framework/blob/4/src/Forms/HTMLEditor/TinyMCEConfig.php#L263 to false but probable to late for 4.4 ;(

Just had a quick glance to see how easy this would be. You can use you can use the statusbar: false option to hide the that bottom bread crumb thingy. The problem is that the resize handle is also part of the status bar ... so if you disable the status bar, you indirectly disable the ability to resize your editor.
To try it out, all you need to do is update TinyMCEConfig::$settings with a 'statusbar' => false entry.
This S/O question discuss how you can disable the breadcrumb bit without disabling the resize handle. But you're still left with empty status bar. One response suggested using CSS to hide the status bar while keeping the resize handle ... it looks a bit hackish but it could work.
@clarkepaul If you think loosing the ability to resize is an acceptable trade-off and I can create a quick PR.

@maxime-rainville no we really need to keep the resize functionality. It's horrible editing large images and bodies of text in the small area. If we can't remove the breadcrumb then can we reduce the impact of it height-wise? It might just need to wait until TinyMCE gets upgraded as its only about 12 pixels in height there ...

I'd vote for keeping the resizing as well. However, I don't think this is a high impact issue.

We could remove the breadcrumb and reduce the space allocated to the status bar with some CSS.

There's a way you can set the height of the status bar to zero and have the resize handle float over the scroll bar but that may lead to some weird results. Not sure how browsers will handle have some DOM element float over a scroll bar.

In my opinion, the best result would be to minimize the height of breadcrumb but have it remain functional. They are actually useful for navigating up and down the HTML, is that possible?

Current (37px)

No vertical padding (20px)

No vertical padding + reduce font-size/line-height (16px)

Each of the breadcrumbs is a button allowing editors to navigate and select the parent elements. It's not particularly usable on mobile already, but reducing the font-size/line-height makes the touch target even smaller.
I reckon the editing experience on mobile needs to be considered as well (not only in this particular case).

Lock-in option B @maxime-rainville :)

Closing because it's extremely unlikely we will be doing this 8n CMS4, and were intending to upgrade to tinymce6 in CMS5.

authors: GuySartorelli chillu clarkepaul lerni maxime-rainville michalkleiner


text:
MINOR: nice improvement to make can methods easier to access

This is a small enhancements that you may or may not like to make it easier to access can Methods using the Member rather than the object.

I feel like $Object.canView (or can whatever else) in a template would still be a lot easier to read and use than the new method, unless I'm missing some use case.

Agreed, that approach also allows different can* methods that won’t be “whitelisted” in this method - e.g. canPublish etc are missing, but you can obviously add any permission checking method to the object. Thanks for the suggestion though @sunnysideup

authors: kinglozzer sunnysideup


text:
PHP Fatal // member function called on boolean // added is_object()

PHP Fatal error: Call to a member function dbObject() on boolean in /var/www/ [...] /public/framework/model/DataObject.php on line 3016
Not quite sure if I just messed up the relation definitions on my DataObject or this is a real bug.
Anyway it might be an improvement to check if $component is an object.

Can you explain how $component ended up as a boolean? I see that this changes the outcome of the error, but it doesn't really explain what's causing it (or more importantly, how to avoid it in the future).
Do you have sample code, or a stacktrace?

I'll look into it but probably after the holidays.

Any update?

No response in a few months; Will close for the time being. :)

authors: dhensby steiha tractorcow


text:
Fixing TabSet.js error when expected elements are not available

Updating TabSet.js to open tabs correctly on page load when a hash is added to URL within the CMS.
This was done to fix a JS error found when clicking the "Manage roles" link inside the "Roles" tab when viewing a Group within the CMS. The error was:
Uncaught TypeError: Cannot read property 'indexOf' of undefined
It looks like the openTabFromURL method was looping over a JS selector that has been updated or is only used in some cases so when it tries to find the href property it can't (and hence calling indexOf on this.href produces the above error).
The suggested fix changes the following line as the ajaxComplete event is not being fired so needed to use another appropriate event instead:
$(window).one('ajaxComplete', function () { ... });

@timkung Did you test this in IE8? The ajax bits were in there to ensure a tab remains active after saving (which replaces the entire HTML including tabs). SecurityAdmin and ModelAdmin shouldn't be your only test cases there, since the "top right" tabs are handled differently to the tabs below (part of the <form>. Can you test with a Page view that has multiple tabs?

@chillu Have just tested this in IE8 and it seems to work as expected. And have also just tested a Page that has more than one tab, e.g. a "Root.Test" tab where #Root_Test appended to the URL opens the "Test" tab on page load.

Yep, confirmed this works locally as well (by installing the https://github.com/silverstripe/silverstripe-frameworktest/ module which has some preconfigured tabs for Page)

authors: chillu timkung


text:
Optimise travis composer installation

ping @tractorcow
We had previously attempted to add caching to travis but given up on it because it caused cross build pollination due to the way our travis-support module worked.
However, we now don't use travis-support and use the more conventional composer installation approach which should make this caching safer and we can start to see some performance gains 🤞

Postgres build on PHP7:

Branch
Time

Current 4 branch
56.5s

Optimised installation
36s

Travis caching
40s

I remember trying this a few years ago; I think your approach is pretty precise (caching files, not metadata).

Now we just need PHP coverage tests running in less than 45 minutes.

I'm not sure the caching actually has any tangible benefits to speed because the time it takes to download the cache and set it up is about as long as the downloads through composer...
Oh well

No matter what composer seems to have a 25-30 second pause between calculating the dependencies and installing the first package :/

authors: dhensby tractorcow


text:
Login Redirect

Issue I found yesterday with the login not redirecting when no backURL is set #7636

My own experience is that when attempting to access the CMS, and framework requests the user to log out of one member, and login as another, the "BackURL" is lost. There are quite a few steps involved where we COULD possibly persist the BackURL a bit better:

Login as non-cms user
Access /admin
Shows message I'm sorry, but you can't access that part of the CMS. If you want to log in as someone else, do so below.
Click "Log in as someone else"
Log in as member with CMS permissions
Redirect to home page (when I would expect to be sent back to admin)

It's not so much a bug, but it is a necessary enhancement that would slightly improve the re-authentication experience.

@MichaelJJames I would see if adding the BackURL querystring to the "login as someone else" action might fix this.

@tractorcow the specific issue being described is logging out of the CMS then logging in again.

Logging out of the CMS takes you to a login page, should it? Should you just be taken to the home page after logging out of the CMS? It seems strange to assume that you'd be wanting to log back into an area you just logged out of
Can we add a BackURL to the logout link in the cms? - just tested, the answer is yes - we can add ?BackURL=admin to the logout url and it'll set up the back url goodness

I would see if adding the BackURL querystring to the "login as someone else" action might fix this.

This should also be done, too. If there's a permissions failure and you've been redirected to the login form (but are logged in) then the BackURL should be persisted

For reference, the 3.x behaviour is to just redirect back after logging out. E.g:

Log in
Visit /admin/pages/edit/show/1
Click log out button (href is just /Security/logout)
Get redirected “back”, based on referer header, which because of a permission failure will redirect you to /Security/login?BackURL=%2Fadmin%2Fpages%2Fedit%2Fshow%2F1

I think this may be something that I missed when adding the CSRF token to the logout action (I added it to the logout form for when the token is missing). We should be able to populate the back URL hidden field from the referer header I think?

see https://github.com/silverstripe/silverstripe-admin/pull/368
I prefer being explicit than relying on a referer header. We could add the referer if it exists, but I'm not convinced that's a good idea.

I’ll submit a PR to re-add the referer behaviour to LogoutHandler: that’s something that was missed by me, and hitting the logout URL without a valid CSRF token already falls back to the referer header as per the 3.x behaviour.
The two PRs aren’t mutually exclusive, though, so we can still add the base admin URL as BackURL if it’s deemed a better default

ok - I'm closing this as it's not a solution we are happy with and we've got a couple of PRs that shuuld solve the initial bug

Great thanks guys for sorting it :)

authors: MichaelJJames dhensby kinglozzer tractorcow


text:
option to change UI font to Roboto

Saw the option to use Roboto Mono in the editor. Thought it would be cool to have an option to use Roboto and/or Roboto Light for the UI (tree view, etc.).

Yeah, I tried that but, truth be told, it looked like crap. Besides, it would require to include another font and I'm not really comfortable with adding to the download size.
To try it open your stylesheet

and paste this at the very end
html, .tab-bar, atom-panel-container, .pane, .settings-view {
    font-family: 'Roboto';
}

BTW… that would require you to have the font installed.

Considering some themes do this even with a wide array of fonts to pick, it shouldn't be a bad thing to do IMO.
We can also add another option text field for the custom UI font the user can fill in with, to anticipate feature requests wanting other fonts to be available.

Submitted a PR at #78 with only WOFF2 files used. Explanations are in the PR comment.

authors: diagramatics mattsawyer77 silvestreh

repo: silvestreh/atom-material-ui


text:
silx.io.nxdata: Updated get_default to be more permissive and follow @default recursively

This PR changes behavior of silx.io.nxdata.get_default.
The search of @default NXdata now recursively follows @default.
It also stop checking NX_class along the way (i.e., NXroot/NXentry/NXdata) and only checks for NX_class="NXdata" to find the NXdata group.
I'm wondering if the silx.io.nxdata functions: is_group_with_default_NXdata, is_NXentry_with_default_NXdata, is_NXroot_with_default_NXdata that were used by get_default are used anywhere (they're no longer used in silx), I'm tempted to deprecate them...
It still needs a bit of testing.
closes #3605

I added some tests and made it resilient to @default loops since absolute path are supported in @default

TestDataFileDialogInteraction.testClickOnBackToParentTool fails on windows. Is it related to the changes?

No, there's quite a lot of random issue with tests relying on timings at the moment like interaction in widgets or a file to be created/deleted. I didn't looked at this yet.

repo: silx-kit/silx


text:
GE Café Specialty Drip Coffee Maker no longer brews coffee through integration

Hello!
Thank you for the wonderful work you're doing on the integration.  My integration stopped being able to make coffee some time ago (I came back from a long vacation) and now, the "Start Brewing" button no longer does anything, even though the integration picks up all of the settings from the coffee maker properly.  Integration is on the v0.6.7 version
Any advice?
Logs that are relevant (with debugging enabled for the device) after the "Start Brewing" button was pressed
Logger: homeassistant.helpers.service
Source: helpers/service.py:833
First occurred: 8:13:45 AM (5 occurrences)
Last logged: 8:47:44 AM
Referenced entities button.d828c96ed9d3_ccm_brew_settings are missing or not currently available
Referenced entities button.d828c96ed9d3_ccm_cancel_brewing are missing or not currently available
Logger: homeassistant
Source: helpers/entity.py:723
First occurred: 12:14:26 AM (1756 occurrences)
Last logged: 8:47:41 AM
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/config/custom_components/ge_home/update_coordinator.py", line 269, in on_device_update
entity.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 723, in async_write_ha_state
raise RuntimeError(f"Attribute hass is None for {self}")
RuntimeError: Attribute hass is None for

Coffee Maker

I believe I have the same problem. Sometimes the cards show that it is connected while in reality, it is not.

I am having trouble pulling up full logs but this is what I can filter out:
=========================================================
Logger: gehomesdk.clients.base_client
Source: runner.py:179
First occurred: August 16, 2023 at 11:34:12 PM (2122 occurrences)
Last logged: 9:57:09 AM

Error refreshing authentication: Could not refresh OAuth token
Unhandled exception on first connect attempt: , disconnecting
=========================================================
Logger: gehomesdk.clients.websocket_client
Source: runner.py:179
First occurred: 12:16:12 AM (355 occurrences)
Last logged: 9:56:27 AM

Unknown error reading socket
=========================================================
Logger: gehomesdk.clients.websocket_client
Source: /usr/local/lib/python3.11/site-packages/gehomesdk/clients/websocket_client.py:121
First occurred: 8:10:22 AM (2 occurrences)
Last logged: 8:10:22 AM

Could not process request
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/gehomesdk/clients/websocket_client.py", line 119, in _async_run_client
    await self._process_message(message)
  File "/usr/local/lib/python3.11/site-packages/gehomesdk/clients/websocket_client.py", line 277, in _process_message
    raise GeRequestError(message, message_dict.get("code"), message_dict.get("reason"))
gehomesdk.exception.ge_request_error.GeRequestError: There was an error while processing a message: Code=None, Reason=Internal server error, Message={"kind":"websocket#subscribe","success":false,"reason":"Internal server error"}

Just coming to this repository today, was able to get it connected and pull in my oven, but my Cafe Specialty Grind and Brew didn't get pulled in at all. Any chance you got this working or has this device stopped working entirely?

authors: Treygec brylee123 papirov


text:
Add simbiote4's file

Add simbiote4's file does this need to be a longer comment? I don't understand why it isn't continuing?

maybe add a new comment?


text:
[drift_dev]Update analyzer and packages dependent on it

Also updated the minimum version of packages so that packages have null safety support. (#2073)

@simolus3, should I upgrade the drift_dev version to 2.1.1?

Also, don't worry about the breaking CI for now. I'll have to fix that dependency issue.

Ok, I can fix version and some packages

@simolus3, to resolve conflicts, you need an analyzer version higher than 4.7.0. And the analyzer from version 4.2.0 already supports the minimum Dart SDK 2.17.

Now it seems that to resolve the lints I need to use 5.0.0 as a minimum version :D Oh well...

I think we need to update all dependencies in all projects to Dart 2.17.

@simolus3, check last commit here


text:
Change type of UpsertMultiple.clauses from List<DoUpdate> to List<UpsertClause>

SQLite supports mixing DO UPDATE and DO NOTHING conflict actions (see https://www.sqlite.org/lang_upsert.html), while the UpsertMultiple class allows the use of only the former. This change aims to fix that using a generic type extended by the DoUpdate and DoNothing classes.
The InsertStatement._writeOnConflict is already compatible with the change and correctly handles nested UpsertMultiple objects.

Thanks! I agree with the changes, could you also add a simple test for them? We have existing tests here: https://github.com/simolus3/drift/blob/24905dc6c23a375999c1771a1ab089f5918b4f66/drift/test/database/statements/insert_test.dart#L282-L341
I think you can adapt one of them or add a new one mixing DoUpdate and DoNothing to validate that the generated SQL is what we'd expect.

Sure, I can also add something for nested UpsertMultiple. I'll try to squeeze it in today.

@simolus3 Done!

The CI failures appear to be due to changes in Dart 3.5.0 - I'll take a look.

authors: simolus3 wnowak-merix wnowak-vialytics


text:
leftouterjoin issue

hi please, i keep getting this error and i dont know why.
im doing left join on three tables. it works the first time but i keep getting this error later
[ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: NoSuchMethodError: The method 'writeInto' was called on null.
E/flutter ( 4284): Receiver: null
E/flutter ( 4284): Tried calling: writeInto(Instance of 'GenerationContext')
E/flutter ( 4284): #0      Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
E/flutter ( 4284): #1      InfixOperator.writeInto (package:moor/src/runtime/expressions/expression.dart:48:11)
E/flutter ( 4284): #2      Join.writeInto (package:moor/src/runtime/components/join.dart:29:10)
E/flutter ( 4284): #3      JoinedSelectStatement.writeStartPart (package:moor/src/runtime/statements/select.dart:68:19)
E/flutter ( 4284): #4      Query.constructQuery (package:moor/src/runtime/statements/query.dart:38:5)
E/flutter ( 4284): #5      JoinedSelectStatement.get (package:moor/src/runtime/statements/select.dart:115:17)
E/flutter ( 4284): <asynchronous suspension>
E/flutter ( 4284): #6      CustomerAccountsDao.getAccountsWithMetersAndMeterReadings (package:ereader/db/database.dart:97:8)
E/flutter ( 4284): <asynchronous suspension>
E/flutter ( 4284): #7      AppLogic.loadAccounts (package:ereader/app_logic/app_logic.dart:290:48)
E/flutter ( 4284): <asynchronous suspension>
E/flutter ( 4284): #8      _CustomersPageState.initState (package:ereader/pages/customers/customers_page.dart:22:15)
E/flutter ( 4284): #9      StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4068:58)
E/flutter ( 4284): #10     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
E/flutter ( 4284): #11     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
E/flutter ( 4284): #12     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
E/flutter ( 4284): #13     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5127:14)
E/flutter ( 4284): #14     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
E/flutter ( 4284): #15     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
E/flutter ( 4284): #16     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
E/flutter ( 4284): #17     Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
E/flutter ( 4284): #18     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
E/flutter ( 4284): #19     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
E/flutter ( 4284): #20     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
E/flutter ( 4284): #21     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
E/flutter ( 4284): #22     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5127:14)
E/flutter ( 4284): #23     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
E/flutter ( 4284): #24     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
E/flutter ( 4284): #25     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5127:14)
E/flutter ( 4284): #26     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
E/flutter ( 4284): #27     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
E/flutter ( 4284): #28     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5127:14)
E/flutter ( 4284): #29     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
E/flutter ( 4284): #30     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
E/flutter ( 4284): #31     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5127:14)
E/flutter ( 4284): #32     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
E/flutter ( 4284): #33     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
E/flutter ( 4284): #34     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
E/flutter ( 4284): #35     Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
E/flutter ( 4284): #36     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3924:5)
E/flutter ( 4284): #37     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4088:11)
E/flutter ( 4284): #38     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3919:5)
E/flutter ( 4284): #39     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3101:14)
E/flutter ( 4284): #40     Element.updateChild (package:flutter/src/widgets/framework.dart:2904:12)
E/flutter ( 4284): #41     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16)
E/flutter ( 4284): #42     Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5)
E/flutter ( 4284): #43     ComponentElement._firstBuild (package:flutter/src/widgets/f

moor_flutter: ^1.7.0
flutter channel beta

This looks like a bug in moor, thanks for the report. Can you give me the code you use for the query (the select(...).join(...) part)? I can then take a look to see where it's going wrong.

It was a left join on between 3 tables

Sorry, I think I need the full Dart query code. It seems like some part in that query is null while it shouldn't be. If I have your code, I can take a detailed look at how that could happen and how moor can prevent it. So if you could send the code of CustomerAccountsDao.getAccountsWithMetersAndMeterReadings, it would very much help me. If you're uncomfortable sharing that code publicly, you can email it to me via oss@simonbinder.eu.

Future<List>getAccountsWithMetersAndMeterReadings() async{
final rows = await select(customerAccounts).join([
leftOuterJoin(
meterReadings,
meterReadings.customerAccountId.equalsExp(customerAccounts._customerAccountId)
),
leftOuterJoin(
meters,
meters.id.equalsExp(customerAccounts.meterId)
)
]).get();
return rows.map((resultRow){
  return AccountWithMeterAndMeterReading(
    account: resultRow.readTable(customerAccounts),
    meter: resultRow.readTable(meters),
    meterReading: resultRow.readTable(meterReadings)
  );
}).toList();

}

I couldn't see anything wrong with your code, thanks for providing the details. It looks like, for some reason, either customerAccounts._customerAccountId or customerAccounts.meterId is null.
Just to be sure: Did you declare IntColumn get _customerAccountId => ... in your table (notice the leading underscore)? If not, please try using meterReadings.customerAccountId.equalsExp(customerAccounts.customerAccountId) (I removed the underscore) for the join.

oh wow, thank you very much, there was an underscore there. Ive removed and its working perfectly. thanks

Great!

Thanks for providing the details. It looks like, for some reason, either customerAccounts._customerAccountId or customerAccounts.meterId is null.
Just to be sure: Did you declare IntColumn get _customerAccountId => ... in your table (notice the leading underscore)? If not, please try using meterReadings.customerAccountId.equalsExp(customerAccounts.customerAccountId) (I removed the underscore) for the join.

hi, please customerAccounts.meterId is null but its not all that is null so i  dont understand why is not working

That's weird, generated columns should never be null. But I think I need more information to take a look at what's going wrong. If customAccounts.meterId returns null, can you post the generated source code for meterId?

Sorry everything is working  now. I made a mistake
On Mon, 30 Dec 2019, 17:32 Simon Binder, notifications@github.com wrote:

That's weird, generated columns should never be null. But I think I need
more information to take a look at what's going wrong. If
customAccounts.meterId returns null, can you post the generated source
code for meterId?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/simolus3/moor/issues/160?email_source=notifications&email_token=ACA3QXYGQWNPIFIPEJLICN3Q3IWCJA5CNFSM4I2DQAC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH2ZHSY#issuecomment-569742283,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACA3QX7KUWN3WYHLQERNZJLQ3IWCJANCNFSM4I2DQACQ
.


text:
[moor_ffi]: Persisted data is empty when changing App Theme

Hi @simolus3

I have encountered an issue when using moor_ffi for persisting data.
I use the Bloc architecture to pass the database object down the tree using Provider.
The MaterialApp is the child of this MutliProvider.

main() {
MultiProvider(
      providers: [
        Provider<MyDatabase>(
          create: (_) => MyDatabase(), //this makes the singleton database
        ),
        // more providers here
     ],
    child: MaterialApp( ),
}

My app setup is very simple right now. It uses a bottom navigation bar that contains Home and Settings resp.
Steps to produce the error:

Insert some data into database.
Watch or await Future to see the data using StreamBuilder or FutureBuilder. (data is inserted and shown)
Now change the theme of the app from light to dark in Settings.
When returning to Home the data is empty.

The way to resolve this error:

Switch the theme back to light.
Or restart the app to maintain dark theme.

Expected Behaviour:
The data should not be empty when changing the theme of the app.

I am unable to figure out as to why changing the MaterialApp Theme is causing database to give empty value. I am using the same database object given by the provider.
This issue has me confused.

Please do tell me if I am doing something wrong.

Did the database file get created correctly? Did you follow https://moor.simonbinder.eu/docs/getting-started/starting_with_sql/#generating-matching-code or did you by mistake create a memory version of the database?

Hi @kuhnroyal

Did the database file get created correctly?

Yes.
I have followed the steps from the getting started guide.

or did you by mistake create a memory version of the database?

No i used a file as shown in the guide.
LazyDatabase _openConnection() {
  // the LazyDatabase util lets us find the right location for the file async.
  return LazyDatabase(() async {
    // put the database file, called db.sqlite here, into the documents folder
    // for your app.
    final dbFolder = await getApplicationDocumentsDirectory();
    final file = File(p.join(dbFolder.path, 'db.sqlite'));
    return VmDatabase(file);
  });
}

Data is inserted successfully always.
Reading data works as expected when I don't play around with changing the app theme.

Sounds really weird. How do you change the theme? Can you create a sample project?

How do you change the theme?

I use this package: https://pub.dev/packages/dynamic_theme

That sounds really strange indeed. Can you add a print statement to the MyDatabase constructor to check it's only being called once?

Can you add a print statement to the MyDatabase constructor to check it's only being called once?

It gets called only once.
I tried to forcefully call MyDatabase constructor again and moor_ffi detected and said that:
WARNING (moor): It looks like you've created the database classMyDatabase multiple times. When these two databases use the same QueryExecutor, race conditions will ocur and might corrupt the database.

So moor_ffi is working correctly.
I am using this approach for creating the database, but using MultiProvider and dynamic_theme package:
void main() {
  runApp(
    Provider<MyDatabase>(
      builder: (context) => MyDatabase(),
      child: MyApp(),
      dispose: (context, db) => db.close(),
   ),
  );
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new DynamicTheme(
      defaultBrightness: Brightness.light,
      data: (brightness) => new ThemeData(
        primarySwatch: Colors.indigo,
        brightness: brightness,
      ),
      themedWidgetBuilder: (context, theme) {
        return new MaterialApp(
          title: 'Flutter Demo',
          theme: theme,
          home: new MyHomePage(title: 'Flutter Demo Home Page'),
        );
      }
    );
  }
}

If I perform a hot reload the data is shown.

This sounds more like a provider problem. Try to put the database instance in a global variable.

Yields the same outcome.
Provider does not seem to be the issue.
I will try and investigate this issue further and link a sample soon.

After a few hours of debugging I found the bug. It was in my code (a really stupid error from my side).
I am really sorry for troubling you all.
Closing this issue.

Please enlighten us :)

@rohansohonee please share the solution with us


text:
🛑 Victoris Webby is down

In c73ed88, Victoris Webby (https://$VW_SITE1/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Victoris Webby is back up in d56f513 after 6 minutes.


text:
Add FR localization

Hi @simonbs
As proposed #146 here are the translated strings to French. If ever you need help regarding the Runestone app give me shout.
Regards

Thanks for opening the PR! 🙏

repo: simonbs/Runestone


text:
Modernization

People shouldn't normally be using import *, can we delete all the all lists, or are they needed for something?
We could perhaps also consider using min python 3.10 (or 3.11 for speed/error reporting), then people could use the modern cleaner type hinting syntax rather than changing it later - any reason why not?

Interesting, pycharm reports errors for unused imports a bit more intelligently - in all files except init. I guess this could be reproduced with flake8 using
per-file-ignores =
*/init.py: F401
(everything imported is public if it doesn't start with "_"?)

repo: simonsobs/SOLikeT


text:
Pathological dataset using multiple scales

The idea is to get a hard dataset when used without rescaling, to showcase the output degenerancy, and measure to what extent rescaling solves it.
In principle, the rescaling turns output degenerancy into input degenerancy.

Bonjour Simon,
Il faudrait qu'on se rencontre pour discuter de ce projet quand tu auras le temps. J'espère que tout va bien.
André-Marie
De : Simon Verret @.>
Envoyé : 21 avril 2022 22:39
À : simonverret/deep_continuation @.>
Cc : Subscribed @.***>
Objet : [simonverret/deep_continuation] Pathological dataset using multiple scales (purposefully hard without rescaling) (Issue #9)

Reply to this email directly, view it on GitHubhttps://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsimonverret%2Fdeep_continuation%2Fissues%2F9&data=05|01|tremblay%40physique.usherbrooke.ca|49a2488c989e4f74fcb808da24094fd1|3a5a8744593545f99423b32c3a5de082|0|0|637861919650160041|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=tGtMlg3f8QP7rxW6iLHWIrzEMl3%2BPDcFlzb9eWcLgtg%3D&reserved=0, or unsubscribehttps://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAE2GYL772BPXINRO4ZJ5J23VGIGNXANCNFSM5UA6QDVQ&data=05|01|tremblay%40physique.usherbrooke.ca|49a2488c989e4f74fcb808da24094fd1|3a5a8744593545f99423b32c3a5de082|0|0|637861919650160041|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=bwd9TiSLdTjLVVOltREMViExgqVCMhAtqNKjEylRbX8%3D&reserved=0.
You are receiving this because you are subscribed to this thread.Message ID: @.@.>>

Better idea: use a single p(x), generate a whole dataset using random s. Rescaling will make all spectra collapse on the same target. Without rescaling, the dataset is probably as hard as usual. To confirm.

authors: amstremblay simonverret


text:
'dict' object has no attribute 'lower'

Getting this 500 error on a deployment of the plugin.

I think this error is unique to that environment.

repo: simonw/datasette-edit-schema


text:
Remove all remaining documentation instances of '$ '

For example this: https://github.com/simonw/datasette/blob/4535568f2ce907af646304d0ebce2500ebd55677/docs/authentication.rst?plain=1#L33-L35
The problem with that $  prefix is that it prevents users from copying and pasting the raw command.

Affected pages:

https://docs.datasette.io/en/latest/authentication.html
https://docs.datasette.io/en/latest/changelog.html
https://docs.datasette.io/en/latest/cli-reference.html
https://docs.datasette.io/en/latest/contributing.html
https://docs.datasette.io/en/latest/custom_templates.html
https://docs.datasette.io/en/latest/deploying.html
https://docs.datasette.io/en/latest/facets.html
https://docs.datasette.io/en/latest/full_text_search.html
https://docs.datasette.io/en/latest/installation.html
https://docs.datasette.io/en/latest/plugin_hooks.html
https://docs.datasette.io/en/latest/publish.html
https://docs.datasette.io/en/latest/settings.html
https://docs.datasette.io/en/latest/spatialite.html
https://docs.datasette.io/en/latest/sql_queries.html

repo: simonw/datasette