Is it fully compatible with mixed precision ?

Hello,
I thank you for sharing the weights and experiment of your papers, it is a very good work and very helpful.
I am experimenting your Wavegram_Logmel_Cnn14 model on a custom dataset and I have seen some issue when I am using mixed precision in pytorch 1.6 with the layer LogmelFilterBank. In fact, I get sometimes nan values in the forward output of this layer which makes nan value in the loss function later.
I was wondering if you have an idea why ? I do not have this issue when I am not using mixed precision.

Did you use apex? Can you share me the script and errors you use?

Hi
Thank you for your reply.
I am using torch.cuda.amp  for the half precision. It is available since pytorch 1.6 if I am not wrong. with autocast allows to use half precision.
import torch
from torch import nn
from torch.nn import functional as F
from torch.utils.data import DataLoader
from torch.cuda.amp import autocast, GradScaler
from models import *
import numpy as np

mel_bins = 64
fmin = 50
fmax = 14000
window_size = 1024
hop_size = 320
sample_rate=32000
model = Wavegram_Logmel_Cnn14(sample_rate, window_size, hop_size, mel_bins, fmin, fmax, classes_num=264).to("cuda:0")
model.eval()

x = torch.tensor( np.random.uniform(0,1, (1,32000*5)), dtype=torch.float32).to("cuda:0")
with torch.no_grad():
    with autocast():
        outputs = model(x)
        print(outputs)

with torch.no_grad():
    outputs = model(x)
    print(outputs)

if you add in the forward after x = self.logmel_extractor(x) that :
if x.isnan().sum()>0:
     print("logmel", x.isnan().sum(), x.shape)

you can see that the nan value appeared after the layer LogmelFilterBank

Hi, I guess the problem is caused by the log operation in LogmelFilterBank.
To address this problem, you could try:

Set is_log=False in the argument of LogmelFilterBank. If nan
disappear, then we know the problem is caused by log.

Set is_log=True and *amin=1e-6 *in the argument of LogmelFilterBank.
See
https://github.com/qiuqiangkong/torchlibrosa/blob/master/torchlibrosa/stft.py#L389
for
details. Please let me know if there are any questions!

Best wishes,
Qiuqiang
On Tue, 25 Aug 2020 at 04:59, Shiro-LK<EMAIL_ADDRESS>wrote:

Hi
Thank you for your reply.
I am using torch.cuda.amp for the half precision. It is available since
pytorch 1.6 if I am not wrong. with autocast allows to use half precision.
import torch
from torch import nn
from torch.nn import functional as F
from torch.utils.data import DataLoader
from torch.cuda.amp import autocast, GradScaler
from models import *
import numpy as np
mel_bins = 64
fmin = 50
fmax = 14000
window_size = 1024
hop_size = 320
sample_rate=32000
model = Wavegram_Logmel_Cnn14(sample_rate, window_size, hop_size, mel_bins, fmin, fmax, classes_num=264).to("cuda:0")
model.eval()
x = torch.tensor( np.random.uniform(0,1, (1,32000*5)), dtype=torch.float32).to("cuda:0")
with torch.no_grad():
with autocast():
outputs = model(x)
print(outputs)
with torch.no_grad():
outputs = model(x)
print(outputs)
if you add in the forward after x = self.logmel_extractor(x) that :
if x.isnan().sum()>0:
print("logmel", x.isnan().sum(), x.shape)
you can see that the nan value appeared after the layer LogmelFilterBank
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/qiuqiangkong/audioset_tagging_cnn/issues/17#issuecomment-679363134,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADFXTSPPIJFIZ7QZAWSJF53SCLIEDANCNFSM4QGXQ5IQ
.

Hi,
Thanks for you answer.
It is weird, the issue seems to be still here.
I have change the code and used only the spectrogram and LogmelFilterbank function:

import torch
from torch import nn
from torch.nn import functional as F
from torch.utils.data import DataLoader
from torch.cuda.amp import autocast, GradScaler
import numpy as np
from torchlibrosa.stft import Spectrogram, LogmelFilterBank
mel_bins = 64
fmin = 50
fmax = 14000
window_size = 1024
hop_size = 320
sample_rate=32000

window = 'hann'
center = True
pad_mode = 'reflect'
ref = 1.0
amin = 1e-10
top_db = None

spectrogram_extractor = Spectrogram(n_fft=window_size, hop_length=hop_size,
            win_length=window_size, window=window, center=center, pad_mode=pad_mode,
            freeze_parameters=True).to("cuda:0")

        # Logmel feature extractor
logmel_extractor = LogmelFilterBank(sr=sample_rate, n_fft=window_size,
            n_mels=mel_bins, fmin=fmin, fmax=fmax, ref=ref, amin=amin, top_db=top_db, is_log=True,
            freeze_parameters=True).to("cuda:0")

x = torch.tensor( np.random.uniform(0,1, (1,32000*5)), dtype=torch.float32).to("cuda:0")
with torch.no_grad():
    with autocast():
        x1=spectrogram_extractor(x)
        #print(torch.isinf(x1).sum())
        print(x1)
        outputs = logmel_extractor(x1)
        print(outputs)

with torch.no_grad():
    x1=spectrogram_extractor(x)
    print(x1)
    outputs = logmel_extractor(x1)
    print(outputs)

It seems the issue comes from the matmul, so I suspect an issue between librosa and autocast but I am maybe wrong

UPDATE : I feel the best way to overcome this issue, is to desactivate autocast for this layer, as there is no trained weights it should work without any issue.
with autocast(False):
    outputs = logmel_extractor(x1)

Thanks for the solution!!

@Shiro-LK where you able to train with mixed precision?

@jonnor yes, but you need to add this part in the models code :
with autocast(False):
outputs = logmel_extractor(x1)
because the half precision with the logmel operation make appeared NaN value or inf value so it makes the training impossible otherwise. So you can just desactivate the half precision for this specific operation.

Another possible solution is to use this: https://github.com/NVIDIA/apex. But I have not tried this.

Another possible solution is to use this: https://github.com/NVIDIA/apex. But I have not tried this.


It was not possible to find any installed .NET Core SDKs   Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:       https://aka.ms/dotnet-download

Problem encountered on https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/create
Operating System: linux
Provide details about the problem you're experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.

Maybe you've installed the .NET runtime instead of the SDK @ashish53552?
What's the output of the following command on your machine?
dotnet --list-sdks


Line by line rendering issue in flame_tiled map

Hello, I would like to ask you a question about tiled map pixel rendering. In the game I developed with Flame, when I open the map I developed with Tiled Map, the background in the game causes line-by-line image distortion. But there is something interesting. When I open the game from the macbook screen, there is no problem with the pixels, but when I run the game from the 24" monitor, the screen becomes line by line as I said. I was going to share the screenshot files with you, but when I take a screenshot, I do not encounter any problems on both the monitor and the macbook screen. Only when viewed with the eye You can understand the image distortion.
Current bug behavior

Expected behavior

Steps to reproduce
I'm gonna create a very minimal reproducible example so that you can try it.
The code is the following :
class SDIGame extends FlameGame {
  late TiledComponent map;
  late final CameraComponent cameraComponent;
  final world = World();

  @override
  Future<void> onLoad() async {
    cameraComponent = CameraComponent(
      viewport: MaxViewport(),
      world: world,
    );
    cameraComponent.viewport.anchor = Anchor.center;
    cameraComponent.viewfinder.zoom = 1;

    addAll([cameraComponent, world]);

    map = await TiledComponent.load('sdi.tmx', Vector2.all(16));

    world.add(map);
  }
}

Flutter doctor output

Output of: flutter doctor -v
[✓] Flutter (Channel stable, 3.7.11, on macOS 13.3.1 22E772610a darwin-arm64, locale en-TR)
    • Flutter version 3.7.11 on channel stable at /Users/metehanyanik/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f72efea43c (9 weeks ago), 2023-04-11 11:57:21 -0700
    • Engine revision 1a65d409c7
    • Dart version 2.19.6
    • DevTools version 2.20.1

[!] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /Users/metehanyanik/Library/Android/sdk
    • Platform android-33, build-tools 33.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.79.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.66.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 13.3.1 22E772610a darwin-arm64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 114.0.5735.133

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

More environment information

Flame version: ^1.6.0

It's this issue:
https://github.com/flame-engine/flame/issues/1152
It doesn't always happen since it depends on the canvas size whether you get the rounding errors.
It isn't anything we can do about it unfortunately since it's a Flutter issue (goes away with Impeller though).
There are some work-arounds in the linked issue.

I have the very same issue couldn't fix it. I have looked and inspected the issue https://github.com/flame-engine/flame/issues/1152 But still...

Closing this as a duplicate, here's also a link to Erick's article about the issue:
https://verygood.ventures/blog/solving-super-dashs-rendering-challenges-eliminating-ghost-lines-for-a-seamless-gaming-experience


[action]Adds action for obtaining remote repo default branch

Checklist

[x] I've run bundle exec rspec from the root directory to see all new and existing tests pass
[x] I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary.

Motivation and Context
This introduces a new action to obtain the default branch name from a remote git repository. Doing this can support other actions such as creating merge requests by ensuring that the proper branch name is provided as a target. With the shift away from "master", it is beneficial to have this kind of flexibility.
Description

A new action has been created in the source control category that enables retrieving a remote git repository's default branch.

It was tested under the following conditions:

In a folder with no available git repo (an empty string was returned)
In a folder with a git repo, but no available remote (an empty string was returned)
In a folder with a valid git repo and the local branch on the default remote (correct branch name returned)
In a folder with a valid git repo and the local branch NOT on the default remote (correct branch name returned)

Testing Steps

Scenario 1, test in a folder with no git repo. Run bundle exec fastlane run git_default_remote_branch
Scenario 2, test in a folder only a local git repo.

 Default name should be seen

Scenario 4, test in a folder with a valid remote repo while not on default branch

Clone a repo, switch to a non-default branch
Run bundle exec fastlane run git_default_remote_branch . Default name should be seen

The mails are so anonymous

@joshdholtz Can you please check on your change request?

@googlebot I consent.


GrahpQL note in checkout support

What I'm trying to achieve
There is no way to apply any note message to the checkout model.
This feature is so needed in saleor-storefront and saleor so that order detail view in saleor-bashboard won't always display an empty customerNote
Describe a proposed solution

add a note field in CheckoutCreateInput
add a new mutation like checkoutUpdateCustomerNote

Other solutions I've tried and won't work
…
Screenshots or mockups

Same for metdata on checkoutComplete. This would open up a lot of further possibilities 👍

@Juleszz we would be adding metadata to checkoutComplete soon


feat(jqLite): use querySelectorAll instead of getElementsByTagName in jqLite.find

Addresses #3586

If we were to use an external CSS selector engine, we might as well use the
most popular & battle-tested one in the world: Sizzle that is included in
jQuery... 18 KB minified. The one @caitp linked to is 10 KB, so also not
extremely small.
BTW, Sizzle will be dropping support for browsers not supported by jQuery
which will decrease its size.
I feel that escapes jqLite's goal, though - if we want to be more
feature-complete & stable even if that sacrifices the size, we have jQuery
for that.

If we were to use an external CSS selector engine, we might as well use the
most popular & battle-tested one in the world: Sizzle that is included in
jQuery... 18 KB minified. The one @caitp linked to is 10 KB, so also not
extremely small.
BTW, Sizzle will be dropping support for browsers not supported by jQuery
which will decrease its size.
I feel that escapes jqLite's goal, though - if we want to be more
feature-complete & stable even if that sacrifices the size, we have jQuery
for that.

Correction: since only gzipped sizes matter; here they are:
Sizzle: 6.9 KB
CSS_selector_engine: 4.6 KB
And note that the next Sizzle version will be smaller.

Correction: since only gzipped sizes matter; here they are:
Sizzle: 6.9 KB
CSS_selector_engine: 4.6 KB
And note that the next Sizzle version will be smaller.

+1

+1

+1

fixing this properly is non trivial and won't happen in 1.3. moving this back to backlog.

I think it's time for this one to be closed. we can take another attempt at this in the future (with the next level of DOM), but I don't think there's much hope for the aspirations of this right now.


base_url usage on landing page

Related Issue(s):

Description:
Adds the base_url usage for two links where it was missing.
PR Checklist:

[x] pre-commit hooks pass locally
[x] Tests pass (run make test)
[x] Documentation has been updated to reflect changes, if applicable, and docs build successfully (run make docs)
[ ] Changes are added to the CHANGELOG.

@zachcoleman thanks for your PR, I need to catch up with stac-fastapi but is there any tests for this or should we make one?

@zachcoleman thanks for your PR, I need to catch up with stac-fastapi but is there any tests for this or should we make one?

This functionality as it just matches the same functions other uses seems like it'd just be adding tests for sake of adding tests. It will be more useful to probably test get_base_url, as it's not tested today.

FYI: this ended up introducing a bug https://github.com/stac-utils/stac-fastapi-pgstac/pull/101/files#r1576403075


lib/copyPathToStore: annotate docstring

cc @ttuegel

Thanks!

Wait, what's the difference between copyPathToStore ./foo and ./foo?

copyPathToStore will copy paths that aren't path literals. copyPathToStore ./foo is equivalent to ./foo, but map copyPathToStore aListOfNonLiteralPaths is different from aListOfNonLiteralPaths. I needed this to programatically generate lists for the patches attribute.


Improved heat exchanging + PEM fuel cells

This pull request improves the existing TASOPT heat exchanger (HX) models and adds new fuel cell modeling capabilities. The changes include:

Changed notation in HX model, from hot and cold sides to process and coolant sides, for cases when the coolant is hotter than the other side.
Improvements in HX optimization and off-design calculations
Models for low- and high-temperature PEM fuel cells and stacks, including electrochemistry, mass transport, efficiency, and weight.
Documentation for the new PEMFC models.
Fixed inconsistencies in hydrogen thermodynamics in gasfun. The previous enthalpy and entropies were taken directly from NIST; the new enthalpy and entropy complement functions have been rescaled so that they are 0 at 298.15 K.

Codecov Report
Attention: 740 lines in your changes are missing coverage. Please review.

Comparison is base (0f30cb3) 59.73% compared to head (d54aae1) 57.13%.

Files
Patch %
Lines

src/engine/PEMfuelcell.jl
0.00%
462 Missing :warning:

src/engine/hxfun.jl
3.15%
276 Missing :warning:

src/engine/gasfun.jl
0.00%
2 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #10      +/-   ##
==========================================
- Coverage   59.73%   57.13%   -2.61%
==========================================
  Files          63       64       +1
  Lines       12091    12643     +552
==========================================
  Hits         7223     7223
- Misses       4868     5420     +552

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


change embedding response object to list for openai compatibility

Description
Return list instead of embedding in response to be compatible with openai.
Respone definition from OpenAI see here
Related Issue
#371
Types of Change

[x] Bug fix
[ ] New feature
[x] Documentation update

Checklist

[x] I have read the CONTRIBUTING guidelines.
[x] My code follows the code style of this project.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.
[x] My changes generate no new warnings.
[x] I have updated the documentation accordingly.

Additional Notes
Maybe we need to add backwards compatibility if someone relies on the embedding field.
License
By submitting this PR, I confirm that my contribution is made under the terms of the MIT license.

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 73.02%. Comparing base (e2f601d) to head (3906fdf).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

:exclamation:  There is a different number of reports uploaded between BASE (e2f601d) and HEAD (3906fdf). Click for more details.
HEAD has 1 upload less than BASE

Flag
BASE (e2f601d)
HEAD (3906fdf)

2
1

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #444      +/-   ##
==========================================
- Coverage   79.18%   73.02%   -6.16%
==========================================
  Files          41       41
  Lines        3248     3248
==========================================
- Hits         2572     2372     -200
- Misses        676      876     +200

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Thanks! Seems like I missed that!


Not open terminal

Terminal not open in atom.

Terminal does not open after update. ㅠ

How to solve it?

https://github.com/platformio/platformio-atom-ide-terminal/issues/297


Responsive UI for larger screens

[x] Make the UI responsive for screens beyond 1500px

Done :+1:


Feature request from homebridge-dafang

Hi, I'm having serious problems with rtsp service on Xiaomi Xiaofang 1S. Rtsp service suddenly gets killed, the only way to get it work again is rebooting or restarting rtsp process login at camera web UI.
It will be helpful if you implement some "Accessories" like it's done on homebridge-dafang plugin, like "remountSwitch", ""resetFFMPEG", "rtspSwitch" and "restartSwitch". With that implemented you can add an automation at Home app, so like every 3 hours, rtsp service is restarted.
It seems it's the only solution for rtsp service issue.
Thanks in advance

Version 2.1.1 adds these switches.


Possibly limit number of docs that can be generated at once

BUG (?) - Gateway timeout when user selected all docs [Upstream issue in ALDocument]

Gateway timeout on testing 3/29 but not many docs?

Getting Gateway timeout when retesting this issue trying to generate all possible docs 4/7.
When reload page says error much message says none:

Happened again on 8/3

Did first reload and resign but did not work.

On second reload, did not have to resign and got to download page.


Include in Activity Diagram does not work ( due to "\r" )

Hello,
first of all thanks for this amazing tool. It is very helpful.
Today I came across an issue on Windows where I try to include a stylesheet in an activity diagram.
It it related to #201.
As I have found out, the path to the included file gets not resolved due to "\r" at line end of include reference.
Error message :
' caused an error:sing of PlantUML include, because reading the referenced local file 'stylesheet.iuml
'rror: ENOENT: no such file or directory, open 'stylesheet.iuml
Please see attached sample project.

The issue can be tracked down in node_modules/asciidoctor-kroki/src/preprocess.js line 125 as shown in above screen shot.
Maybe it is not the best place to fix it as shown in above screen shot but at least with the modification there it works.
Could you please check and maybe fix it where appropriate?
Thanks and Best Regards
Sample Project:
adoc-web_cr-issue.zip

Hey!
Good catch, I think we should use \s (any space character equivalent to [\r\n\t\f\v \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]) instead of \\ .
Do you want to submit a pull request? Ideally, we should add a test case in: https://github.com/Mogztter/asciidoctor-kroki/blob/master/test/preprocess.spec.js to make sure that the fix is working as expected.

Hello @Mogztter,
I have created a pull request.
Hopefully you are fine with the changes :-)
Thanks and Best Regards


cf cli v7 Download from debian failing

Please fill out the issue checklist below and provide ALL the requested information.

[x] I reviewed open and closed github issues that may be related to my problem.
[x] I am reporting a bug that others will be able to reproduce.

Describe the bug and the command you saw an issue with
Unable to download cf cli v7 debian package. Its failing with 401
What happened
The following script was executed
                wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key  | apt-key add -
                echo "deb https://packages.cloudfoundry.org/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list
                apt-get update
                apt-get install cf7-cli
                cf --version

16:46:16  + apt update
16:46:16
16:46:16  WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
16:46:16
16:46:16  Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
16:46:16  Get:2 http://deb.debian.org/debian-security buster/updates InRelease [34.8 kB]
16:46:16  Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]
16:46:16  Get:4 http://deb.debian.org/debian buster/main amd64 Packages [7909 kB]
16:46:16  Get:5 http://deb.debian.org/debian-security buster/updates/main amd64 Packages [610 kB]
16:46:16  Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [8788 B]
16:46:17  Fetched 8741 kB in 1s (5989 kB/s)
16:46:18  Reading package lists...
16:46:18  Building dependency tree...
16:46:18  Reading state information...
16:46:18  106 packages can be upgraded. Run 'apt list --upgradable' to see them.
16:46:18  + apt install -y wget gnupg
16:46:18
16:46:18  WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
16:46:18
16:46:19  Reading package lists...
16:46:19  Building dependency tree...
16:46:19  Reading state information...
16:46:19  gnupg is already the newest version (2.2.12-1+deb10u2).
16:46:19  wget is already the newest version (1.20.1-1.1).
16:46:19  0 upgraded, 0 newly installed, 0 to remove and 106 not upgraded.
16:46:19  + wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key
16:46:19  + apt-key add -
16:46:19  Warning: apt-key output should not be parsed (stdout is not a terminal)
16:46:20  OK
16:46:20  + echo deb https://packages.cloudfoundry.org/debian stable main
16:46:20  + tee /etc/apt/sources.list.d/cloudfoundry-cli.list
16:46:20  deb https://packages.cloudfoundry.org/debian stable main
16:46:20  + apt-get update
16:46:20  Hit:1 http://deb.debian.org/debian buster InRelease
16:46:20  Hit:2 http://deb.debian.org/debian-security buster/updates InRelease
16:46:20  Hit:3 http://deb.debian.org/debian buster-updates InRelease
16:46:21  Get:4 https://cf-cli-debian-repo.s3.amazonaws.com stable InRelease [4368 B]
16:46:21  Get:5 https://cf-cli-debian-repo.s3.amazonaws.com stable/main amd64 Packages [15.8 kB]
16:46:21  Fetched 20.1 kB in 1s (18.7 kB/s)
16:46:22  Reading package lists...
16:46:22  + apt-get install cf7-cli
16:46:22  Reading package lists...
16:46:22  Building dependency tree...
16:46:22  Reading state information...
16:46:22  The following NEW packages will be installed:
16:46:22    cf7-cli
16:46:23  0 upgraded, 1 newly installed, 0 to remove and 106 not upgraded.
16:46:23  Need to get 5736 kB of archives.
16:46:23  After this operation, 22.1 MB of additional disk space will be used.
16:46:23  Err:1 https://packages.cloudfoundry.org/debian stable/main amd64 cf7-cli amd64 7.7.15
16:46:23    401  Unauthorized

What version of Linux and aptitude are you using?

This could be related to this Slack thread.
tldr; this is because Ubuntu 20.04 ships with an older version of aptitude 2.0.9 with a known bug that does not support long URLs.
docker run -i --rm ubuntu:20.04 << EOF
apt update
apt install -y wget gnupg

wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | apt-key add -
echo "deb https://packages.cloudfoundry.org/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list

apt update
apt install -y cf8-cli && cf8 version
EOF

this works fine starting with Ubuntu 22.04
docker run -i --rm ubuntu:22.04 bash << EOF
  (apt update && apt install --yes curl gnupg) > /dev/null 2>&1

  # Add the Cloud Foundry GPG key
  curl -fsSL https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | gpg --dearmor -o /usr/share/keyrings/cloudfoundry-keyring.gpg

  # Add the Cloud Foundry repository
  echo "deb [signed-by=/usr/share/keyrings/cloudfoundry-keyring.gpg] https://packages.cloudfoundry.org/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry.list

  apt update > /dev/null 2>&1

  # Install the Cloud Foundry CLI
  apt install --yes cf8-cli

  # Verify installation
  cf8 version
EOF

We updated CLI v8 installation docs

Debian and Ubuntu based Linux distributions. Supported versions include Ubuntu 22.04 Jammy with apt version 2.4.13 or newer:

Hi @a-b  :
This is the debian version and aptitude version
10:33:53  PRETTY_NAME="Debian GNU/Linux 10 (buster)"
10:33:53  NAME="Debian GNU/Linux"
10:33:53  VERSION_ID="10"
10:33:53  + apt -v
10:33:53  apt <IP_ADDRESS> (amd64)
I dont think its an issue with this.. a simple curl to the https://packages.cloudfoundry.org/ is failing.
curl --head  https://packages.cloudfoundry.org/
HTTP/2 404
date: Wed, 20 Nov 2024 04:58:03 GMT
content-type: text/html;charset=utf-8
x-cascade: pass


Schema being inlined despite registering it

Hi, new user here. The output I'm getting contains no "$ref" whatsoever despite registering my schema. Any idea what's going wrong here? Fwiw, the generated OpenAPI definitions themselves are correct.
Input:

import { registry } from "../lib/openapi.ts";

export const ModificationRequest = z.object({
   // ...
});
registry.register("ModificationRequest", ModificationRequest);

  registry.registerPath({
    method: "post",
    path: "/modify",
    description: "Apply the given modifications",
    request: {
      body: {
        content: {
          "application/json": {
            schema: ModificationRequest,
          },
        },
        required: true,
      },
    },
    responses: {
      200: {
        description: "OK",
        content: {
          "application/json": {
            schema: { type: "object", properties: { OK: { type: "boolean" } } },
          },
        },
      },
    },
  });

Output:
openapi: 3.0.0
info:
title: App API
version: 1.0.0
components:
schemas:
// ...
  ModificationRequest:
    type: object
    properties:
// ...
paths:
/modify:
  post:
    description: Apply the given modifications
    requestBody:
      required: true
      content:
        application/json:
          schema:
            type: object
            properties:
// ...

@AGalabov
Thanks for the help, this has improved it but part of the problem remains.
const A = registry.register("A", ...));
const B = registry.register("B"., ...));
const C = registry.register("C", ...));

const D = registry.register("D", z.union(
  [A, B, C]
  )
);

I'm getting the result
components:
  schemas:
    A: ...
    B: ...
    C: ...
    D:
        anyOf:
            - type: object
            - ...

That is, A B and C don't get reused as part of D, their definitions are inlined again in D.

@JeongJuhyeon can you provide a full reproducible script? We have such a similar test case here: https://github.com/asteasolutions/zod-to-openapi/blob/master/spec/types/union.spec.ts#L26

@AGalabov Repro:
import { extendZodWithOpenApi, OpenApiGeneratorV3, OpenAPIRegistry } from "@asteasolutions/zod-to-openapi";
import YAML from "yaml";
import { z } from "zod";

extendZodWithOpenApi(z);

const registry = new OpenAPIRegistry();

const requestedModificationBaseSchema = z.object({
  target: z.enum(["apple", "banana", "grape"]),
});
const requestedModificationBase = registry.register("RequestedModificationBase", requestedModificationBaseSchema);

const RequestedTextModification = registry.register(
  "RequestedTextModification",
  z.union([z.object({ x: z.number() }), z.object({ y: z.number() })]),
);

const RequestedChairModification = registry.register(
    "RequestedChairModification",
    z.union([z.object({ z: z.number() }), z.object({ a: z.number() })]),
  );

const RequestedSubcategoryModificationSchema = z.union([RequestedTextModification, RequestedChairModification]);
const RequestedSubcategoryModification = registry.register(
  "RequestedSubcategoryModification",
  RequestedSubcategoryModificationSchema,
);

const ModificationRequestSchema = z.object({
  userPageId: z.string(),
  modifications: z.array(RequestedSubcategoryModification.and(requestedModificationBase)),
});

console.log("Registering request schema");
const ModificationRequest = registry.register("ModificationRequest", ModificationRequestSchema);

const generatedApiJson = new OpenApiGeneratorV3(registry.definitions).generateDocument({
    openapi: "3.0.0",
    info: { title: "App API", version: "1.0.0" },
});

console.log("Generated API JSON");
console.log(YAML.stringify(generatedApiJson));

Result:
openapi: 3.0.0
info:
 title: App API
 version: 1.0.0
components:
 schemas:
   RequestedModificationBase:
     type: object
     properties:
       target:
         type: string
         enum:
           - apple
           - banana
           - grape
     required:
       - target
   RequestedTextModification:
     anyOf:
       - type: object
         properties:
           x:
             type: number
         required:
           - x
       - type: object
         properties:
           y:
             type: number
         required:
           - y
   RequestedChairModification:
     anyOf:
       - type: object
         properties:
           z:
             type: number
         required:
           - z
       - type: object
         properties:
           a:
             type: number
         required:
           - a
   RequestedSubcategoryModification:
     anyOf:
       - type: object
         properties:
           x:
             type: number
         required:
           - x
       - type: object
         properties:
           y:
             type: number
         required:
           - y
       - type: object
         properties:
           z:
             type: number
         required:
           - z
       - type: object
         properties:
           a:
             type: number
         required:
           - a
   ModificationRequest:
     type: object
     properties:
       userPageId:
         type: string
       modifications:
         type: array
         items:
           allOf:
             - $ref: "#/components/schemas/RequestedSubcategoryModification"
             - $ref: "#/components/schemas/RequestedModificationBase"
     required:
       - userPageId
       - modifications
 parameters: {}
paths: {}

"RequestedChairModification" and "RequestedTextModification" are inlined in "RequestedSubcategoryModification" instead of being used as $ref.

@JeongJuhyeon sorry it is taking so long, but free time is hard to find.
I see your example and it turns out the problem is the fact that you are using a union inside the union. I see the problematic piece of code. I'll see what I can do about it.


Feature/skeleton component

Types of Changes
Prerequisites
Please make sure you can check the following two boxes:

[x] I have read the CONTRIBUTING document
[x] My code follows the code style of this project

Contribution Type
What types of changes does your code introduce? Put an x in all the boxes that apply:

[ ] Bug fix (non-breaking change which fixes an issue, please reference the issue id)
[x] New feature (non-breaking change which adds functionality, make sure to open an associated issue first)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] My change requires a change to the documentation
[x] I have updated the documentation accordingly
[x] I have added tests to cover my changes
[x] All new and existing tests passed

Description
Yup precise-ui provides ProgressBar and Spinner components. Perfect for their specific cases. However, there are times where we load dynamic content and the page is simply mmmmm well blank.  Not anymore!
Now there is an awesome 🦄new component in town!. It is flexible enough to adapt to many custom layouts. I can also see current components being refactored to use Skeletons until the actual data arrives, e.g.: .
Check out the following examples 😲😎🤙🚀:

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Cannot search for a custom field

I have successfully created a custom field (with name "teams") based on this documentation: https://inveniordm.docs.cern.ch/develop/howtos/custom_fields/
The problem is that I cannot make a search using this field in the URL.
I have tried the following, among other tries:
https://<IP_ADDRESS>:5000/search?q=asd&l=list&p=1&s=10&sort=bestmatch&f=teams:myteam
https://<IP_ADDRESS>:5000/search?q=asd&l=list&p=1&s=10&sort=bestmatch&custom_fields=teams:myteam
Also, how can I add that field to the RDM search? I add 'teams' to the 'facets' property of RDM_SEARCH but an error occurs.
Can anybody help? Thank you!

If you haven't defined a namespace, you should be able to search with custom_fields.teams:myteam. Here is an example on the test system https://inveniordm.web.cern.ch/search?q=custom_fields.rdm\%3Arelease_number_of_lines%3A15&l=list&p=1&s=10&sort=bestmatch. The custom fields on the test system include a namespace, so additionally an escape on the colon between the namespace and the field is needed.
There is a lot more configuration options for the custom fields available at https://inveniordm.docs.cern.ch/customize/metadata/custom_fields/records/

I'm closing this issue, but feel free to reopen if you're still having problems.


Branch selection in commit view fixed

#672 fixed

@Meisolsson could you please amend the commit message without the dash.

Thank you!


Classification betas not leading to expected results

What happens:
Passing classification_betas, e.g. classification_betas: [1, 0.5] leads to equal f-beta values in the resulting CSV file, although precision and recall differ. The columns are named correctly in the resulting file, e.g. classification/f0.5 etc, but the cell values always equal f-1, not the β of the respective column.
What I expected:
Differing f-values, as the parameter weighs precision higher (1x, 2x, ... times as much) than recall.
Maybe in interpreted the docs wrongly though, and this parameter is supposed to be used differently.

Thanks for reporting this (and sorry for the delayed response).
This repository is for issues specifically with the openai node.js bindings, rather than the behavior of the API itself. I'll be closing this accordingly, but will pass the feedback onto our team. Feel free to reach out to our support team at https://help.openai.com/en/ if needed.


Support lower case issue keys

There have been a number of user reports around lower case issue keys.
Reviews on Atlassian Marketplace (link)

Issues

When using the DVCS Connector a branch name feature/lief-12155-test-jira was being correctly linked to the ticket LIEF-12155 in JIRA. This doesn't work anymore with the new GitHub for Jira app. I have to use feature/LIEF-12155-test-jira (please note the capitalised project name).
– https://github.com/integrations/jira/issues/188

What does DVCS support?
Officially, Smart Commits doesn't support lower case issue keys:

Smart Commits only support the default Jira Software issue key format. This format is two or more uppercase letters, followed by a hyphen and the issue number, for example JRA-123.
– Atlassian Smart Commits

However, I have reproduced one case where lower case issue keys are extracted using DVCS:

Create a ticket, JRA-1.
Create a branch, jra-1-something-good
Push branch to GitHub

In JIRA with DVSC Connector turned on, jra-1-something-good will appear in the Development side bar on JRA-1. When the branch starts with something else—feature/jra-1-something-good—the branch is not extracted.
It appears that DVCS Connector supports some lower case issue keys but, generally, doesn't. Still some work to be done to suss out exactly what is supported by DVCS.

This. Please, add support for lower-case issue keys, it's just more tiring to type a branch name like JRA-123-do-something-important instead of jra-123-do-something-important (and also such a branch name feels weird).

Bumping this as I just realized this is why I thought the new app integration wasn't working at all.

Our team has also requested for this case sensitivity to be fixed. Are there any plans to fix this?

Hi @jnraine. I'm from a team at Atlassian that is currently in the process of migrating the ownership over to us from GitHub. As a part of this, we're currently going through the backlog of issues and prs to see what can still be addressed and what should be closed.
Adding broader support for issue keys is something we're actively discussing and have tickets in our backlog. Stay tuned 😄


Build fail on Linux

Hello,
I am getting the following error when attempting to build with make os=linux as described in mDNSPosix/ReadMe.txt
../mDNSShared/dnsextd_parser.y: In function ‘yyparse’:
../mDNSShared/dnsextd_parser.y:221:22: error: ‘context’ undeclared (first use in this function)
    ( ( DaemonInfo* ) context )->private_port = mDNSOpaque16fromIntVal( NUMBER );
                      ^
../mDNSShared/dnsextd_parser.y:221:22: note: each undeclared identifier is reported only once for each function it appears in
../mDNSShared/dnsextd_parser.y: In function ‘ParseConfig’:
../mDNSShared/dnsextd_parser.y:481:2: error: too many arguments to function ‘yyparse’
  err = yyparse( ( void* ) d );
  ^
objects/prod/dnsextd_parser.c:1125:1: note: declared here
 yyparse (void)
 ^
make: *** [objects/prod/dnsextd_parser.y.o] Error 1

OS:
# cat /etc/os-release
NAME="Ubuntu"
VERSION="14.04.5 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.5 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

I'm not sure what you are trying to build, but it isn't this library at least :)


Passing arguments of the format [-st string]

Thank you for you work!
I want to run a program like python webhook_test.py -st string -v where "-st" is the name of the input but to run the program still requires the entire "-st 'some string to pass for the argument'" argument to function. I've added my .json hook definition.
[  {   "id": "test-webhook",    "execute-command": "/home/duty/Desktop/webhook_test.py",    "incoming-payload-content-type": "application/json",    "response-message": "Success\n",    "command-working-directory": "/home/duty/Desktop",    "pass-arguments-to-command":    [     {      "source": "payload",      "name": "-v"     },     {      "source": "payload",      "name": "-st"     }    ]  } ]
I'm using the following to call the webhook: curl -H "Content-Type: application/json" -X POST -d '{"-st":"-st 'Hello'", "-v":"-v"}' http://hook_ip:9000/hooks/test-webhook
However, when the webhook calls the Python code, it sends the input for -st as "-st Hello" and not as -st 'Hello' which therefore doesn't allow the program to run correctly.
This makes the program call python webhook_test.py "-st Hello" -v instead of what I need, python webhook_test.py -st "Hello" -v
Any help would be greatly appreciated, and please let me know if you need more information.

Would this work:
[{
	"id": "test-webhook",
	"execute-command": "/home/duty/Desktop/webhook_test.py",
	"incoming-payload-content-type": "application/json",
	"response-message": "Success\n",
	"command-working-directory": "/home/duty/Desktop",
	"pass-arguments-to-command": [{
		"source": "string",
		"name": "-v"
	}, {
		"source": "string",
		"name": "-st"
	}, {
		"source": "payload",
		"name": "-st"
	}]
}]

and
curl -H "Content-Type: application/json" -X POST -d '{"-st":"Hello"}' http://hook_ip:9000/hooks/test-webhook

Thank you - this is exactly what I needed!


nixos/userborn: respect createHome and convert home from path to string

Description of changes
Fixes https://github.com/NixOS/nixpkgs/issues/341179.
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

@ofborg build userborn.tests


Consumer Group Not Honouring config.Consumer.MaxProcessingTime

Versions
Please specify real version numbers or git SHAs, not just "Latest" since that changes fairly regularly.

Sarama
Kafka
Go

v1.38.1
Confluent
1.20

Configuration
What configuration values are you using for Sarama and Kafka?
config := sarama.NewConfig()

config.Consumer.MaxProcessingTime = 1 * time.Millisecond
config.Consumer.Offsets.Initial = sarama.OffsetOldest

Logs
logs: CLICK ME

2023/07/03 14:47:35 Starting a new Sarama consumer
[sarama] 2023/07/03 14:47:35 Initializing new client
[sarama] 2023/07/03 14:47:35 ClientID is the default of 'sarama', you should consider setting it to something application-specific.
[sarama] 2023/07/03 14:47:35 ClientID is the default of 'sarama', you should consider setting it to something application-specific.
[sarama] 2023/07/03 14:47:35 client/metadata fetching metadata for all topics from broker localhost:9092
[sarama] 2023/07/03 14:47:36 Connected to broker at localhost:9092 (unregistered)
[sarama] 2023/07/03 14:47:36 client/brokers registered new broker #1 at localhost:9092
[sarama] 2023/07/03 14:47:36 Successfully initialized new client
[sarama] 2023/07/03 14:47:36 client/metadata fetching metadata for [skafka_proto_example] from broker localhost:9092
[sarama] 2023/07/03 14:47:36 client/coordinator requesting coordinator for groupId from localhost:9092
[sarama] 2023/07/03 14:47:36 client/coordinator coordinator for groupId is #1 (localhost:9092)
[sarama] 2023/07/03 14:47:36 ClientID is the default of 'sarama', you should consider setting it to something application-specific.
[sarama] 2023/07/03 14:47:36 Connected to broker at localhost:9092 (registered as #1)
[sarama] 2023/07/03 14:47:36 client/coordinator requesting coordinator for groupId from localhost:9092
[sarama] 2023/07/03 14:47:36 client/coordinator coordinator for groupId is #1 (localhost:9092)
2023/07/03 14:47:36 Sarama consumer up and running!...
[sarama] 2023/07/03 14:47:36 consumer/broker/1 accumulated 1 new subscriptions
[sarama] 2023/07/03 14:47:36 consumer/broker/1 added subscription to skafka_proto_example/0
[sarama] 2023/07/03 14:47:36 consumer/broker/1 abandoned subscription to skafka_proto_example/0 because consuming was taking too long
2023/07/03 14:47:46 Message claimed: value = {"message":"Test message 6","details":"Details random"}, timestamp = 2023-07-03 14:17:41.521 +0530 IST, topic = skafka_proto_example
2023/07/03 14:47:56 Message claimed: value = {"message":"Test message 7","details":"Details random"}, timestamp = 2023-07-03 14:17:41.521 +0530 IST, topic = skafka_proto_example
^C2023/07/03 14:47:57 terminating: via signal
[sarama] 2023/07/03 14:47:57 consumergroup/groupId loop check partition number coroutine will exit, topics [skafka_proto_example]
[sarama] 2023/07/03 14:47:58 consumer/broker/1 accumulated 1 new subscriptions
[sarama] 2023/07/03 14:47:58 consumer/broker/1 added subscription to skafka_proto_example/0
[sarama] 2023/07/03 14:47:58 consumer/broker/1 closed dead subscription to skafka_proto_example/0
2023/07/03 14:48:06 Message claimed: value = {"message":"Test message 8","details":"Details random"}, timestamp = 2023-07-03 14:17:41.521 +0530 IST, topic = skafka_proto_example
2023/07/03 14:48:16 Message claimed: value = {"message":"Test message 9","details":"Details random"}, timestamp = 2023-07-03 14:17:41.521 +0530 IST, topic = skafka_proto_example
[sarama] 2023/07/03 14:48:16 consumergroup/session/sarama-68d50667-95a3-4f61-9ea0-355a430adbc2/3 heartbeat loop stopped
[sarama] 2023/07/03 14:48:16 consumergroup/session/sarama-68d50667-95a3-4f61-9ea0-355a430adbc2/3 released
[sarama] 2023/07/03 14:48:16 Closing Client

Problem Description
I tried intentional kick out of kafka consumer, using config.Consumer.MaxProcessingTime. I kept to MaxProcessingTime to 1ms and added a time.Sleep of 10 seconds.
        for {
		select {
		case message := <-claim.Messages():
                        // intentional kick
			time.Sleep(10 * time.Second)
			log.Printf(
				"Message claimed: value = %s, timestamp = %v, topic = %s",
				string(message.Value),
				message.Timestamp,
				message.Topic,
			)
			session.MarkMessage(message, "")

		case <-session.Context().Done():
			return nil
		}
	}

Ideally this configuration should kick out the consumer group kafka and retry for the connection. In logs, I am seeing these lines,
[sarama] 2023/07/03 14:47:36 consumer/broker/1 abandoned subscription to skafka_proto_example/0 because consuming was taking too long

But the connection is still there and message processing is continued. Looks like the consumer group is not honoring config.Consumer.MaxProcessingTime
FYI, I did try with config.ChannelBufferSize = 1 but still no difference with the result.
Complete Code
package main

// SIGUSR1 toggle the pause/resume consumption
import (
	"context"
	"log"
	"os"
	"os/signal"
	"strings"
	"sync"
	"syscall"
	"time"

	"github.com/Shopify/sarama"
)

// Sarama configuration options
var (
	brokers = "localhost:9092"
	group   = "groupId"
	topics  = "skafka_proto_example"
	oldest  = true
	verbose = true
)

func main() {
	keepRunning := true
	log.Println("Starting a new Sarama consumer")

	if verbose {
		sarama.Logger = log.New(os.Stdout, "[sarama] ", log.LstdFlags)
	}

	/**
	 * Construct a new Sarama configuration.
	 * The Kafka cluster version has to be defined before the consumer/producer is initialized.
	 */
	config := sarama.NewConfig()

	config.Consumer.MaxProcessingTime = 1 * time.Millisecond

	if oldest {
		config.Consumer.Offsets.Initial = sarama.OffsetOldest
	}

	/**
	 * Setup a new Sarama consumer group
	 */
	consumer := Consumer{
		ready: make(chan bool),
	}

	ctx, cancel := context.WithCancel(context.Background())
	client, err := sarama.NewConsumerGroup(strings.Split(brokers, ","), group, config)
	if err != nil {
		log.Panicf("Error creating consumer group client: %v", err)
	}

	consumptionIsPaused := false
	wg := &sync.WaitGroup{}
	wg.Add(1)
	go func() {
		defer wg.Done()
		for {
			// `Consume` should be called inside an infinite loop, when a
			// server-side rebalance happens, the consumer session will need to be
			// recreated to get the new claims
			if err := client.Consume(ctx, strings.Split(topics, ","), &consumer); err != nil {
				log.Panicf("Error from consumer: %v", err)
			}
			// check if context was cancelled, signaling that the consumer should stop
			if ctx.Err() != nil {
				return
			}
			consumer.ready = make(chan bool)
		}
	}()

	<-consumer.ready // Await till the consumer has been set up
	log.Println("Sarama consumer up and running!...")

	sigusr1 := make(chan os.Signal, 1)
	signal.Notify(sigusr1, syscall.SIGUSR1)

	sigterm := make(chan os.Signal, 1)
	signal.Notify(sigterm, syscall.SIGINT, syscall.SIGTERM)

	for keepRunning {
		select {
		case <-ctx.Done():
			log.Println("terminating: context cancelled")
			keepRunning = false
		case <-sigterm:
			log.Println("terminating: via signal")
			keepRunning = false
		case <-sigusr1:
			toggleConsumptionFlow(client, &consumptionIsPaused)
		}
	}
	cancel()
	wg.Wait()
	if err = client.Close(); err != nil {
		log.Panicf("Error closing client: %v", err)
	}
}

func toggleConsumptionFlow(client sarama.ConsumerGroup, isPaused *bool) {
	if *isPaused {
		client.ResumeAll()
		log.Println("Resuming consumption")
	} else {
		client.PauseAll()
		log.Println("Pausing consumption")
	}

	*isPaused = !*isPaused
}

// Consumer represents a Sarama consumer group consumer
type Consumer struct {
	ready chan bool
}

// Setup is run at the beginning of a new session, before ConsumeClaim
func (consumer *Consumer) Setup(sarama.ConsumerGroupSession) error {
	// Mark the consumer as ready
	close(consumer.ready)
	return nil
}

// Cleanup is run at the end of a session, once all ConsumeClaim goroutines have exited
func (consumer *Consumer) Cleanup(sarama.ConsumerGroupSession) error {
	return nil
}

// ConsumeClaim must start a consumer loop of ConsumerGroupClaim's Messages().
func (consumer *Consumer) ConsumeClaim(
	session sarama.ConsumerGroupSession,
	claim sarama.ConsumerGroupClaim,
) error {
	// NOTE:
	// Do not move the code below to a goroutine.
	// The `ConsumeClaim` itself is called within a goroutine, see:
	// https://github.com/Shopify/sarama/blob/main/consumer_group.go#L27-L29
	for {
		select {
		case message := <-claim.Messages():
			time.Sleep(10 * time.Second)
			log.Printf(
				"Message claimed: value = %s, timestamp = %v, topic = %s",
				string(message.Value),
				message.Timestamp,
				message.Topic,
			)
			session.MarkMessage(message, "")

		// Should return when `session.Context()` is done.
		// If not, will raise `ErrRebalanceInProgress` or `read tcp <ip>:<port>: i/o timeout` when kafka rebalance. see:
		// https://github.com/Shopify/sarama/issues/1192
		case <-session.Context().Done():
			return nil
		}
	}
}

hi @slice-aayushs , IIRC, unlike max.poll.interval.ms in Java Kafka client, config.Consumer.MaxProcessingTime is just a client side improvement and won't kick the consumer out of the consumer group aterf timeout.

It appears that you're trying to use config.Consumer.MaxProcessingTime to kick a Kafka consumer after a certain time. However, this setting won't remove the consumer from the group; it's merely a client-side improvement. It's essential to understand that Kafka won't forcibly eject a consumer from the group based solely on this configuration. If you want a more effective way to manage consumer ejection, consider implementing custom logic for it. Make sure the issue is resolved in the main branch or reach out to maintainers for further assistance, if needed.

I'd like to help. but i wonder if we add logic as java client, does this will make behaviour not the same as before @Mateusnasciment


add workflow / fabric related plugins

@bparees PTAL (though given your PTO certainly wait until next week if you like ;-) )
Note:  technically, I only need the # Pipeline plugin - https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Plugin list of plugins for the new DSL for OpenShift Pipeline Plugin, but I went ahead and added the complete list from https://github.com/fabric8io/openshift-jenkins-s2i-config/blob/master/plugins.txt, except for the fact that our image was already pulling in credentials:1.24 (where the plugins.txt from the fabric folks was pulling in credentials:1.22).
@jimmidyson @rawlingsj - FYI

[test]

Sorry, also minimally need these:
seem to be missing from the Jenkins docs but required to run these plugins..
structs:1.1
git-client:1.19.0
git-server:1.5
plain-credentials:1.1
ace-editor:1.0.1
But per the PR, including the complete fabric list seems appropriate, but advise if you think otherwise @bparees

had a yum hiccup ... issuing a re [test]

lgtm


[Icon Request] CAKE folder

vscode-icons already supports .cake files, however it would also be nice if it would highlight CAKE's folder in a similar way that .nuget folder is being highlighted:
the folder's name is CAKE and it's typically located within the tools folder.

Please see #650.


Attach Skikoview to Compose Web

For desktop, I use such snippet to wrap GenericSkikoView to convert it to a Composable Component .
@Composable
actual fun ComposeChartView(modifier: Modifier) {

    SwingPanel(factory = {

        JPanel().apply {
            layout = BoxLayout(this, Y_AXIS)

            val skiaLayer = SkiaLayer()
            skiaLayer.addView(GenericSkikoView(skiaLayer, ChartView()))

            skiaLayer.attachTo(this)
            skiaLayer.needRedraw()
        }
    }, modifier = modifier)
}

How do I do it for web wasm?

Look at this sample as a hint: https://github.com/JetBrains/skiko/blob/master/samples/SkiaMultiplatformSample/src/jsMain/kotlin/org/jetbrains/skiko/sample/App.js.kt#L14C11-L14C11
@eymar do you have thought how to adapt it to Compose?

Why would you like to use GenericSkikoView?
Do you want to draw something custom on a canvas? Then you can look at this example: https://github.com/terrakok/CMP-Tuner/blob/master/composeApp/src/commonMain/kotlin/org/jetbrains/tuner/App.kt#L130

In web you can manually create a <canvas> element, position it manually and manage it manually on top of Compose controlled canvas, and attach a skiko view to it like here: https://github.com/JetBrains/skiko/blob/master/samples/SkiaMultiplatformSample/src/jsMain/kotlin/org/jetbrains/skiko/sample/App.js.kt#L14C11-L14C11

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


onCellClicked returns correct cellView but incorrect row after sorting

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Stacktrace
If applicable, add the stacktrace you encountered.
Tools:

TableView version: [e.g. <IP_ADDRESS>]
Android version: [e.g. 11]

Additional context
Add any other context about the problem here.

If a grid has a small number of rows, this bug is present. If the number of rows is larger, the bug disappears. Not sure exact number of records to make bug disappear (but it's more than the visible grid).
If you sort a grid on any column, following the sort, click on a cell, the onCellClicked event returns correct cell view, but the row returned is the unsorted row number.  This means that if you highlight based upon the returned row using setSelectedRow(row), the wrong row is highlighted, though the correct cell data has been returned.
public void onCellClicked(@NonNull RecyclerView.ViewHolder cellView, int column, int row) {
try {
mTableView.getSelectionHandler().clearSelection();
String strData = "";
if(cellView instanceof CellViewHolder){
strData = (String) ((CellViewHolder)cellView).cell_textview.getText();
}
mTableView.setSelectedRow(row);
          // processing of strData

    } catch (Exception e) {
            e.printStackTrace();
    }

Tableview Version '<IP_ADDRESS>'
Android Version 9

this happen when i filter the table too.

Yes  - it's so buggy that you spend a week putting it all together and a
month creating crazy workarounds.
I first tried to use it a couple of years ago but abandoned it because of
the bugs, but for a current project, I've actually delivered a working
solution!
Once you find your way around your current problems, you'll discover the
slippage when you scroll; the grid will visually break up on you if you
allow the cell widths to expand to accommodate your data. Don't despair -
instead, have the cells already at maximum width. An easy way to do this is
to fill the column headers with trailing spaces so that the cells are
already as wide as they need to be. Remember that with non fixed width
characters, you'll need a lot more spaces than if you filled it up with Ws.
You'll work it out. There is unfortunately nothing else out there. Oh for
those simpler days when we all worked with WinMobile. So much better than
Android in every way, but as the song goes, "Progress runs it's driven
course and tractors have replaced the horse."
On Mon, Nov 22, 2021 at 8:13 PM samanta-widjaja @.***>
wrote:

this happen when i filter the table too.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/evrencoskun/TableView/issues/396#issuecomment-976083299,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANYKRQZW2LONLMZEL6FDMS3UNLTDTANCNFSM5IACPIXQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--
Regards
Alan J. Short

But in answer to your frustration about sorting, my solution was to never
ever use the sort functionality of this horrible 'work in progress'.
Instead, I created a function that passes the query, number of rows and an
array of column names, to refresh the grid.
Whenever a cell is clicked, I pass the value of column zero of that clicked
row through a record in a database, then monitor that record in a timing
loop on the main thread.
I do a similar thing for column headers, and whenever a column header is
clicked, I then generate a new query with an ORDER BY based upon the column
that was clicked. Ugly as sin, but works. Oh, and I arrange all the columns
so that key values are at the beginning of the rows, even if the grid is
scrolled (e.g. custID, custName, custAddress etc.) so that even at maximum
scroll, the first visible column is still a unique identifier, then when I
get a value back, I check for a match with (in this example)  custID,
custName or custAddress.
And all because the bloody Android GridView is so limited, and nobody can
work out how to use the recycleViewer without resorting to the evrancoskun
'solution'. It's a disgrace.
On Mon, Nov 22, 2021 at 10:37 PM Alan Short @.***> wrote:

Yes  - it's so buggy that you spend a week putting it all together and a
month creating crazy workarounds.
I first tried to use it a couple of years ago but abandoned it because of
the bugs, but for a current project, I've actually delivered a working
solution!
Once you find your way around your current problems, you'll discover the
slippage when you scroll; the grid will visually break up on you if you
allow the cell widths to expand to accommodate your data. Don't despair -
instead, have the cells already at maximum width. An easy way to do this is
to fill the column headers with trailing spaces so that the cells are
already as wide as they need to be. Remember that with non fixed width
characters, you'll need a lot more spaces than if you filled it up with Ws.
You'll work it out. There is unfortunately nothing else out there. Oh for
those simpler days when we all worked with WinMobile. So much better than
Android in every way, but as the song goes, "Progress runs it's driven
course and tractors have replaced the horse."
On Mon, Nov 22, 2021 at 8:13 PM samanta-widjaja @.***>
wrote:

this happen when i filter the table too.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/evrencoskun/TableView/issues/396#issuecomment-976083299,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANYKRQZW2LONLMZEL6FDMS3UNLTDTANCNFSM5IACPIXQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--
Regards
Alan J. Short

--
Regards
Alan J. Short


it is taking an unexpectedly long time.

hi.when i type flutter run i get some eror:
it is taking an unexpectedly long time.
there is my log file :
`Flutter crash report; please file at https://github.com/flutter/flutter/issues.
command
flutter run
exception
ProcessException: ProcessException: Process "/home/nima/Desktop/flutterproject/codeflow/android/gradlew" exited abnormally:
Exception in thread "main" java.lang.RuntimeException: Timeout of 120000 reached waiting for exclusive access to file: /home/nima/.gradle/wrapper/dists/gradle-4.10.2-all/9fahxiiecdb76a5g3aw9oi8rv/gradle-4.10.2-all.zip
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:61)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Command: /home/nima/Desktop/flutterproject/codeflow/android/gradlew -v
#0      runCheckedAsync (package:flutter_tools/src/base/process.dart:250:5)

#1      _initializeGradle (package:flutter_tools/src/android/gradle.dart:210:9)

#2      _ensureGradle (package:flutter_tools/src/android/gradle.dart:191:37)

#3      _readGradleProject (package:flutter_tools/src/android/gradle.dart:119:31)

#4      _gradleProject (package:flutter_tools/src/android/gradle.dart:111:34)

#5      getGradleAppOut (package:flutter_tools/src/android/gradle.dart:105:29)

#6      AndroidApk.fromAndroidProject (package:flutter_tools/src/application_package.dart:137:23)

#7      ApplicationPackageFactory.getPackageForPlatform (package:flutter_tools/src/application_package.dart:37:32)

#8      FlutterDevice.runHot (package:flutter_tools/src/resident_runner.dart:288:56)

#9      HotRunner.run (package:flutter_tools/src/run_hot.dart:295:39)

#10     RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:405:37)

#11     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:545:18)
#12     _asyncThenWrapperHelper. (dart:async/runtime/libasync_patch.dart:77:64)
#13     _rootRunUnary (dart:async/zone.dart:1132:38)
#14     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#15     _FutureListener.handleValue (dart:async/future_impl.dart:126:18)
#16     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:639:45)
#17     Future._propagateToListeners (dart:async/future_impl.dart:668:32)
#18     Future._complete (dart:async/future_impl.dart:473:7)
#19     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#20     _AsyncAwaitCompleter.complete (dart:async/runtime/libasync_patch.dart:28:18)
#21     _completeOnAsyncReturn (dart:async/runtime/libasync_patch.dart:294:13)
#22     RunCommand.usageValues (package:flutter_tools/src/commands/run.dart)
#23     _asyncThenWrapperHelper. (dart:async/runtime/libasync_patch.dart:77:64)
#24     _rootRunUnary (dart:async/zone.dart:1132:38)
#25     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#26     _FutureListener.handleValue (dart:async/future_impl.dart:126:18)
#27     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:639:45)
#28     Future._propagateToListeners (dart:async/future_impl.dart:668:32)
#29     Future._complete (dart:async/future_impl.dart:473:7)
#30     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#31     _AsyncAwaitCompleter.complete (dart:async/runtime/libasync_patch.dart:28:18)
#32     _completeOnAsyncReturn (dart:async/runtime/libasync_patch.dart:294:13)
#33     AndroidDevice.targetPlatform (package:flutter_tools/src/android/android_device.dart)
#34     _asyncThenWrapperHelper. (dart:async/runtime/libasync_patch.dart:77:64)
#35     _rootRunUnary (dart:async/zone.dart:1132:38)
#36     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#37     _FutureListener.handleValue (dart:async/future_impl.dart:126:18)
#38     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:639:45)
#39     Future._propagateToListeners (dart:async/future_impl.dart:668:32)
#40     Future._complete (dart:async/future_impl.dart:473:7)
#41     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#42     _AsyncAwaitCompleter.complete. (dart:async/runtime/libasync_patch.dart:33:20)
#43     _rootRun (dart:async/zone.dart:1124:13)
#44     _CustomZone.run (dart:async/zone.dart:1021:19)
#45     _CustomZone.bindCallback. (dart:async/zone.dart:947:23)
#46     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#47     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#48     _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)
#49     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)
flutter doctor
�[32m[✓]�[39m Flutter (Channel stable, v1.2.1, on Linux, locale en_US.UTF-8)
�[32m•�[39m Flutter version 1.2.1 at /home/nima/development/flutter
�[32m•�[39m Framework revision 8661d8aecd (3 months ago), 2019-02-14 19:19:53 -0800
�[32m•�[39m Engine revision 3757390fa4
�[32m•�[39m Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)
�[32m[✓]�[39m Android toolchain - develop for Android devices (Android SDK version 28.0.3)
�[32m•�[39m Android SDK at /home/nima/Android/Sdk
�[32m•�[39m Android NDK location not configured (optional; useful for native profiling
support)
�[32m•�[39m Platform android-28, build-tools 28.0.3
�[32m•�[39m Java binary at: /opt/android-studio/jre/bin/java
�[32m•�[39m Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1343-b16-5323222)
�[32m•�[39m All Android licenses accepted.
�[32m[✓]�[39m Android Studio (version 3.4)
�[32m•�[39m Android Studio at /opt/android-studio
�[32m•�[39m Flutter plugin version 34.0.2
�[32m•�[39m Dart plugin version 183.5901
�[32m•�[39m Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1343-b16-5323222)
�[32m[✓]�[39m IntelliJ IDEA Community Edition (version 2019.1)
�[32m•�[39m IntelliJ at /home/nima/.local/share/umake/ide/idea
�[32m•�[39m Flutter plugin version 35.0.3
�[32m•�[39m Dart plugin version 191.7019
�[32m[✓]�[39m VS Code (version 1.33.1)
�[32m•�[39m VS Code at /usr/share/code
�[32m•�[39m Flutter extension version 2.26.0
�[32m[✓]�[39m Connected device (1 available)
�[32m•�[39m SM N910H •<PHONE_NUMBER>42 • android-arm • Android 6.0.1 (API 23)
�[32m•�[39m No issues found!
`
flutter doctor -v :
flutter doctor -v
[✓] Flutter (Channel stable, v1.2.1, on Linux, locale en_US.UTF-8)
• Flutter version 1.2.1 at /home/nima/development/flutter
• Framework revision 8661d8a (3 months ago), 2019-02-14 19:19:53 -0800
• Engine revision 3757390
• Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /home/nima/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /opt/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b16-5323222)
• All Android licenses accepted.
[✓] Android Studio (version 3.4)
• Android Studio at /opt/android-studio
• Flutter plugin version 34.0.2
• Dart plugin version 183.5901
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b16-5323222)
[✓] IntelliJ IDEA Community Edition (version 2019.1)
• IntelliJ at /home/nima/.local/share/umake/ide/idea
• Flutter plugin version 35.0.3
• Dart plugin version 191.7019
[✓] VS Code (version 1.33.1)
• VS Code at /usr/share/code
• Flutter extension version 2.26.0
NOTE:
when i run it android studio emulator ,I get the same erorr

@bestheroforever
I believe this is a gradle problem instead of flutter one.
It would be better to ask on StackOverflow and only create an issue if it turns out to be a bug or a missing feature that prevents you from doing what you want.
Maybe: https://stackoverflow.com/questions/23888947/build-model-timeout-when-importing-gradle-project-in-eclipse

i think its flutter's  problem.i use flutter in  my pc and everythings is ok.

please reopen it!

@bestheroforever
Please try steps below:
a. delete all contents under /home/nima/.gradle
b. cd to the android folder for your flutter project and run ./gradlew sync command, it will download the gradle-xxx.zip automatically. It this gradle process succeeds, re-run the flutter run command.

thanks.it's worked!


packaging: support Rocky9 (EL9) as KVM and management server host

I was exploring to set up CloudStack env on a Rocky 9 or RHEL9 (no-cost subscription) and started this PR. (Also exploring setting up a new docker container image https://hub.docker.com/r/shapeblue/rocky9-cloudstack-builder and backend jenkins job "acs-el9-pkg-builder")
Fixes: #6651
TODOs:

[x] Migrate git-pr to python3 on main branch (and fix the el9 jenkins job hack) https://github.com/apache/cloudstack/pull/6961
[x] EL9 packaging job
[x] EL9 mgmt server support with MySQL
[x] EL9 usage server support
[x] EL9 KVM support (works see notes below)
- [ ] Consolidate EL9 pkging with EL8 using boolean conditionals (due to Python site-path change, it may not be possible to do it correctly?)
[ ] Add EL9/Rocky9 template support in Trilian/BO
[ ] Run a round of smoketests with EL9 as both kvm and mgmt server host (I expect/hope this to pass)

For EL9 KVM to work with cloudstack-agent, I had to remove the systemd service dependency on libvirtd and follow the guide to switch to modular daemon (perhaps using the old/monolithic way could work, but it didn't in my case):
https://libvirt.org/daemons.html#monolithic-vs-modular-daemons
After switching completely to modular daemons, I had to ensure that virtqemud was running with --listen, symlink the /etc/libvirt/libvirtd.conf -> /etc/libvirt/virtqemud.conf and start this:
systemctl start virtproxyd-tls.socket

Note: there are no network-scripts now; so after fixing cloudbr0 etc we need to only restart NetworkManager. Rest all seems to work.
Misc notes, perhaps this isn't necessary but I did that as I was in a double nested env already:
[root@rocky9-kvm etc]# cat /etc/modules-load.d/br_netfilter.conf
br_netfilter

[root@rocky9-kvm etc]# cat /etc/modprobe.d/kvm.conf
options kvm_intel nested=1

[root@rocky9-kvm etc]# cat /etc/sysctl.conf
net.ipv4.ip_forward=1
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0

[root@rocky9-kvm etc]# sysctl -p
net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0

Packaging result: :heavy_check_mark: el9. SL-JID 5

Built rpms for testing https://dl.yadav.cloud/el9/4.18/

KVM TODO https://libvirt.org/daemons.html#monolithic-vs-modular-daemons

Packaging result: :heavy_check_mark: el9. SL-JID 6

@rohityadavcloud a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

UI build: :heavy_check_mark:
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/6844 (QA-JID-8)

looks good @rohityadavcloud , I'll look at testing the git-pr changes this week.

Packaging result: :heavy_check_mark: el9. SL-JID 10

Verified the following cc @shwstppr

install epel-release and bridge-utils, net-tools
fix selinux issue (setenforce 0)
use nmcli or something else to configure cloudbr0 (network service is not longer available)
Check/put: in/etc/libvirt/qemu.conf vnc_listen=<IP_ADDRESS>
Create file  /etc/sysconfig/libvirtd with content: LIBVIRTD_ARGS="--listen"
Put in /etc/libvirt/libvirtd.conf:

listen_tls = 0
listen_tcp = 1
tcp_port = "16509"
auth_tcp = "none"
mdns_adv = 0

Mark the libvirtd sockets:

systemctl mask libvirtd.socket libvirtd-ro.socket libvirtd-admin.socket libvirtd-tls.socket libvirtd-tcp.socket
systemctl restart libvirtd

That's enough to then run libvirtd and add KVM host.

@blueorangutan package

@rohityadavcloud a Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan package

@rohityadavcloud a Jenkins job has been kicked to build packages. It will be bundled with
SystemVM template(s). I'll keep you posted as I make progress.

@blueorangutan package

@rohityadavcloud a Jenkins job has been kicked to build packages. It will be bundled with  SystemVM template(s). I'll keep you posted as I make progress.

Packaging result: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 5063

Packaging result: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 5066

Packaging result: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 5062

@blueorangutan package

@rohityadavcloud a Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Packaging result: :heavy_multiplication_x: el7 :heavy_multiplication_x: el8 :heavy_multiplication_x: debian :heavy_multiplication_x: suse15. SL-JID 5071

@blueorangutan package

@rohityadavcloud a Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Merging this based on manual testing; built both el8 and el9 pkgs and installed them manually on alma linux 8 and rhel 9 and rocky linux 9; tested zone deployment; mgmt server and usage server; kvm host add; vm, template and snapshot lifecycles. No issues seens.

cc @shwstppr let's continue adding support to trillian/smoketests separately; merging this.

Packaging result: :heavy_multiplication_x: el7 :heavy_multiplication_x: el8 :heavy_multiplication_x: debian :heavy_multiplication_x: suse15. SL-JID 5073


[LLVMGPU] Add support for bf16 MFMA intrinsics

closing because https://github.com/iree-org/iree/pull/18892


Combining styles in text label tags

When using styles in text label tags, only one can be applied at once. There does not appear to be a way to combine styles, e.g. to make text both bold and italic. Trying to use multiple style modifiers, e.g. {*&artist} simply results in only the final modifier working.
It would be nice if they could be combined.
--
@dsafa Thank you for all your work on this great project!
I'm offering a couple suggestions now because I saw you started a new UI controls updates Github project.

Closing finished issues (v0.9)


stage0: create app section if we override exec

When an image doesn't have an App section and we override exec with the
--exec flag we should create a minimal App section instead of failing.
This would fail with a missing app section error:
rkt run image-without-app-section.aci

But this would succeed and exec the specified command if it exists in
the image:
rkt run image-without-app-section.aci --exec /bin/sh

Fixes #1421

LGTM

Functional test? 😊
On Sep 17, 2015 07:50, "Stefan Junker"<EMAIL_ADDRESS>wrote:

LGTM
—
Reply to this email directly or view it on GitHub
https://github.com/coreos/rkt/pull/1427#issuecomment-141111392.

LGTM after a test

I'll hang this on the wall so I never forget again :sweat_smile:

Small nit, otherwise LFAD.

yesssssss
On Fri, Sep 18, 2015 at 2:06 AM, Iago López Galeiras <
<EMAIL_ADDRESS>wrote:

I'll hang this on the wall so I never forget again [image: :sweat_smile:]
[image: tests]
https://cloud.githubusercontent.com/assets/507354/9955962/154ef17a-5df5-11e5-9077-35827adec119.png
—
Reply to this email directly or view it on GitHub
https://github.com/coreos/rkt/pull/1427#issuecomment-141387266.

@iaguis I don't think the test is quite doing what it's supposed to

Oooops :flushed:
https://github.com/coreos/rkt/pull/1440


Select time throught multiple days

It's possible to select time in a week view for multiple days?

not at the moment! We are always open to contributions though :)


Change page parent broken in page form

Describe the Bug
When trying to change the page parent of a page on level 2 and move it into level 3 by changing the page parent, a JavaScript error occurs.
Steps to Reproduce

Open any page on level 2
Choose another level 2 page as new parent
An error occurs in Order box instead of the drop down
When saving the page the page parent is not updated

Expected Behavior
A list of pages should appear.
Actual Behavior

Additional Information

No browser console errors
The error fist appeared with the 2022.12.0 release
The error message reads raw is undefined in development mode

The error was introduced with 479a55c771099f32cceceb2495d8f378c68d924b


Inspector hangs when running offline (on Win7)

With the node-inspector started with the PC offline:

>node-inspector
Node Inspector v0.10.1
Visit http://<IP_ADDRESS>:8080/debug?ws=<IP_ADDRESS>:8080&port=5858 to start debugging.

starting a process to debug hangs:

>node --debug node_modules\karma-cli\bin\karma start
Debugger listening on port 5858

The served page loads the inspector but not the debugging data and sources. Checking the console for the node-inspector shows:

Request with id = 10 failed. "ErrorNotConnected: Debugged process exited."
InspectorBackendClass.AgentPrototype.dispatchResponse @ InspectorBackend.js:958
InspectorBackendClass.Connection.dispatch @ InspectorBackend.js:482
InspectorBackendClass.WebSocketConnection._onMessage @ InspectorBackend.js:690

Environment:
node v0.12.2 x64 on Windows 7 x64, running without an active network connection

Please let me know any next steps to troubleshoot this. It's quite an inconvenience.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/15121016-inspector-hangs-when-running-offline-on-win7?utm_campaign=plugin&utm_content=tracker%2F195817&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F195817&utm_medium=issues&utm_source=github).

How about
>node --debug-brk node_modules\karma-cli\bin\karma start

When running the following offline:
(other console)>node-inspector
>node --debug-brk node_modules\karma-cli\bin\karma start

the same behaviour shows. Opening the served inspector in the browser hasn't loaded the source files. Although the Chrome console (for the inspector) does show an additional error id 25:

Request with id = 10 failed. "ErrorNotConnected: Debugged process exited."
    InspectorBackendClass.AgentPrototype.dispatchResponse @ :8080/sdk/InspectorBackend.js:958
Request with id = 25 failed. "Error: Not implemented."
    InspectorBackendClass.AgentPrototype.dispatchResponse @ :8080/sdk/InspectorBackend.js:958

Oh, stop! You can reproduce this only if you don't have any network connections?

Yes 3y3, it works great otherwise. This only is a problem when the PC is not connected, as an example when the wifi drops. I was expecting this to work locally and not require the internet. Should it?

I have the same error. This is a nodejs error in dns module. In other words dns can't resolve localhost in debugger connection when there is no connections.
This was fixed in iojs, but exists in 0.12.
To fix this problem on my machine I installed microsoft loopback adapter.

OK, thanks for confirming @3y3.
I opened an issue for node yesterday for dns resolvning localhost: joyent/node/25338, I just didn't know how to workaround it to confirm it was the same for this.


Clean up for example scripts and macro_params.py, pass macro data date ranges,

This PR makes the following enhancements:

Clean up of the run scripts (all output files, including plots and CSV file, saved to a common directory, style file imported from package, more in line comments)
Include two new kwargs in the Calibrate class object which represent the date ranges for macro data.  Update the get_macro_params function to take these arguments.
Clean up of calibrate.py: take out references to estimating $\chi^n$ and tax functions, neither of which are used due limited data (at the moment)
Reorganize macro_params.py to better organized calls to different data sources
As a work around for the World Bank WDI API not responding 100% of the time, create try/except workaround.

@jdebacker. This looks great. Thanks for this. Merging as soon as tests pass.


[fix][ci] Fix running OWASP for PRs that change dependencies

Motivation

The GitHub Actions workflow "Pulsar CI" is supposed to run OWASP dependency check when pom.xml files are modified. This doesn't currently work. This seems to be a problem in the original change #17568.

Modifications

Fix the problem that causes "OWASP dependency check" job to always get skipped.

Documentation

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

Matching PR in forked repository
PR in forked repository: https://github.com/lhotari/pulsar/pull/111 (added some additional changes that contain pom.xml changes)

/pulsarbot rerun-failure-checks

Codecov Report

Merging #18892 (5d12642) into master (3180a4a) will decrease coverage by 9.11%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master   #18892      +/-   ##
============================================
- Coverage     46.17%   37.05%   -9.12%
+ Complexity    10359     1968    -8391
============================================
  Files           703      209     -494
  Lines         68845    14431   -54414
  Branches       7382     1574    -5808
============================================
- Hits          31788     5348   -26440
+ Misses        33448     8497   -24951
+ Partials       3609      586    -3023

Flag
Coverage Δ

unittests
37.05% <0.00%> (-9.12%)
:arrow_down:

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

Impacted Files
Coverage Δ

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

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

.../org/apache/pulsar/client/impl/ConnectionPool.java
37.43% <0.00%> (-1.03%)
:arrow_down:

.../main/java/org/apache/pulsar/PulsarStandalone.java

...broker/intercept/ManagedLedgerInterceptorImpl.java

.../pulsar/broker/service/AbstractBaseDispatcher.java

...sistent/PersistentDispatcherMultipleConsumers.java

...nsaction/pendingack/impl/PendingAckHandleImpl.java

...er/systopic/NamespaceEventsSystemTopicFactory.java

...apache/bookkeeper/mledger/ManagedLedgerConfig.java

... and 487 more


"Mined by ..." comment in found programs

The user should have an option to enter his/her name in the setup to get credit for his/her mining effort. Found programs should then contain a comment "Mined by XYZ". Of course this is optional.

added in v21.9.28


STK boards: allow overriding clock sources per application

An application can now add a -DCLOCK_LFB=cmuSelect_CORELEDIV2 to its
Makefile without getting preprocessor redefinition errors.
This is required to utilize the full supported range of baud rates on
LEUART devices, for example.

This might be a little controversial; I'd focus on CLOCK_LFB (which I need to change) here, and if you think CLOCK_HF should not be changable, drop that part.
It seems to be a RIOT position that the board file does not fully define all the hardware connections, but that details like whether a serial interface is used and which baud rate it is used with can be decided at runtime (evidenced by the UART setup functions). With the gecko boards, the usable baud rates depend on which clock source CLOCK_LFB is configured for. (The LF clocks are also used for several other peripherals and features, but let's stick with serial lines to keep things concise). An IMO ideal solution would be the possibility to have the peripherals agree on the clock source they need at run time, but way to go for that. In the meantime, overriding the board defaults per application seems to be the most viable solution.

Makes perfect sense! Thanks!


False positive if there is a folder with the same name as the command in question

Hi there...
I'm trying your module.. But it throws false positives when testing for a command with the same name as a folder at the testing location...
For example..
/myProject
  /myFolderName
  /anotherFolder
  /myCommand <-- folder with the same name as the command.

If I test commandExists('myCommand') inside myProject it will throw true because of the folder with the same name as the command.

Is there a way to ask for the command in a particular location ??
I need to check if myCommand is installed globally in /node_modules/myCommand

@macCesar did this occur on linux on mac for you ?

Hi... I'm testing it on a Mac...

But it needs to work on the 3 main systems.. Linux, Windows and Mac.

Sry it was late :D
I've opened #36 yesterday. the testcase and fix i've added works on linux but the pipeline fails on mac and i'm not too sure why.


The behavior is not the same with using ./gradlew.bat.

Extension Name: vscode-gradle
Extension Version: v3.13.5
OS Version: Windows_NT x64 10.0.19045
VSCode version: 1.86.2
Gradle version: 7.4
Describe the bug
Run the gradle task using vscode-gradle extention, the behavior is not the same with using ./gradlew.bat.
To Reproduce
Steps to reproduce the behavior.
The following is my test code in build.gralde file.
task getRuntimePath(){
    def dir = 'cmd /c dir'
    println(dir.execute().text.trim())
}

Then I run the task in terminal.

This is the right output.
When I click the "run task" button, the output is not the same.

The same is happening to me. We have a custom gradlew. If we manually run ./gradlew build - it totally works, but if we press Refresh Gradle Projects - it fails, in our case the local.properties file is not found in .../gradle/dist/..version../ path , but with simple ./gradlew build it is found. This leads me to the idea that maybe this extension is not running our custom gradlew from the proper path?


Add official lint support via ESLint Plugin for better DX

Description
Who wants the functionality
Lit developers need it from day one to work effectively with lit.
What it is they want
Officially supported ESLint Plugin for lit.
Why they want it
To code confidently, to code with less errors, to save time
Functional description of task/subtask
Code lint is always first priority for better and error free DX.
If eslint plugin can solve lint issue for both JS & TS then why cant we make it officially supported for lit?
Its 20% efforts and making 80% positive impact for developer experience.
These are few tools for VS code and typescript which support lint for lit.
https://github.com/web-padawan/awesome-lit#litelement-extensions (check tools also for eslint plugin)
https://github.com/Microsoft/typescript-lit-html-plugin
Pros

Lint rules needs to be supported officially so developers can have more trust for lit.
Lint rules will be included in every version release of lit so DX will not be broken.
It will help developers to start with lit once it will be added in lit website that this is officially supported and maintained by lit team.

Existing Solution

Right now diff people putting efforts in diff repos in github to solve linting problem for lit, but its not centralised efforts so its not worth.
Code in diff repos are outdated and cant keep up with new releases by lit.

Acceptance criteria
What the card must do in order to accept it as complete. Acceptance Criteria must be concrete or measurable.

New repo or sub project in lit labs for this
Docs added into lit website for this.

@justinfagnani @straversi Kindly share your views. Thanks

Please see https://www.npmjs.com/package/eslint-plugin-lit which is also listed on our development docs: https://lit.dev/docs/tools/development/#ide-plugins

I made some edits to the development docs to make this a little more clear: https://github.com/lit/lit.dev/pull/340

@justinfagnani this all are not officially supported and not updated also with lit new releases.
can we ask this repo owner to move repo in lit organisation? and make efforts centralise to make it official which will help to keep lint updated with all lit releases.
Awaiting your response.

@justinfagnani this all are not officially supported and not updated also with lit new releases.
can we ask this repo owner to move repo in lit organisation? and make efforts centralise to make it official which will help to keep lint updated with all lit releases.
Awaiting your response.

@codecycletechnologies it's not really possible for our team to maintain all the useful tools in the Lit ecosystem. We tried this when we used HTML Imports and it was not sustainable. We're very happy that others in the community have been able to write extensions for standard JS tooling that support Lit. This has worked out much better.
I'm sure @43081j is already thinking about Lit 2 support in eslint-plugin-lit. Please consider that we just released the first release candidate, so it's early and there could be an update before our stable release.
It's possible that we adopt some tools into our monorepo or org, but only if the tool maintainer was interested in that too. We don't see a lot of upside in forking valuable community projects. @43081j might have thoughts, but that's probably something to discuss in an issue here: https://github.com/43081j/eslint-plugin-lit

@justinfagnani I was thinking same which you suggested in 3rd paragraph. i will create issue there and will explain things and its importance if required then i will request you to join conversation in future, is it fine?
And thanks for positive response & support.

i'm still very actively maintaining at least the eslint plugin and, when possible, contributing to the analyzer/vs code plugin fwiw.
i'll work on a lit 2 PR to it this weekend for sure


Updated complete Google-Icons-Library to v.2.1

I updated all icons from google to v.2.1
I merged old icons to the custom part, added 180 icons and I compared
each icon name and changed them, if there was a difference.
Both library’s are now identical.

Hi @dresslerit, looks like this update has resulted in #46.
Request you to fix it as well.


Typo in the README

The README says @kayahr/jest-runner-electron in several instances, but it should be @kayahr/jest-electron-runner

Took me a long while to figure out why npm wasn't installing that library...

Whoops. Sorry for the confusion :D


[Alpha Test] Can't make Runed Log

I can't make Runed Log by knife and wildroot in off hand.

This is strange, I'll have to triple check this.


Replace BufferBuilder<u8> with Vec<u8>

Is your feature request related to a problem or challenge?
The functionality we need from BufferBuilder<u8> can be handled by Vec<u8>. Switching to Vec will simplify things, and maybe faster (?

ArrowBytesMap
ByteGroupValueBuilder
regex replace

Describe the solution you'd like

Replace with Vec<u8>
Run the benchmark to see the performance impact

No response
Describe alternatives you've considered
No response
Additional context
Performance should not downgrade.
Suggested by https://github.com/apache/arrow-rs/issues/6909#issuecomment-2557513907

take

Thanks @jayzhan211  and @poweihuang0817  -- sounds like a good change
Maybe we can do it as a few PRs (for example, start with ArrowBytesMap) -- that will be faster to review and will ensure once we have the pattern we can easily apply it to the other structures


Not joining Join failed [Security]

Any way to diagnose why the join fails ?
networkname pmcaiotnet
Done

extpanid<PHONE_NUMBER>667788
Done
panid 0x1122
Done
masterkey 656D62657220454D3235302063686970
Done
ifconfig up
Done
thread start
Done
commissioner start
Commissioner: petitioning
Done
Commissioner: active
commissioner joiner add * PMCA3000
Done

on the joiner side:
ifconfig up
Done

joiner start PMCA3000
Done
Join failed [Security]

Platform: EFR32MG21

The scan on the joiner side returns
| J | Network Name     | Extended PAN     | PAN  | MAC Address      | Ch | dBm | LQI |
+---+------------------+------------------+------+------------------+----+-----+-----+

| 1 | pmcaiotnet       |<PHONE_NUMBER>667788 | 1122 | a6a0dce23e8975d8 | 11 | -37 | 255 |

Another comment, I'm using firmware built with flags commissioner=1 , joiner=1. Loaded same firmware in both joiner and commissioner. Is this a correct implementation or joiner should have joiner=1 flag but not commissioner=1? ( and viceversa)

Solved. Added code to join from code instead from CLI. Seems that the instance initialized in the code using:  sInstance=otInstanceInitSingle(); interferes with the instance that the CLI initialized and causing the join failed.

@binartech, thanks for the update. Are you using code straight from GitHub or do you have custom code? AFAIK, OpenThread's existing CLI component does not initialize its own OpenThread instance.

@jwhui to the examples of the Github code I started to add some custome code. ( Im using the EFR32MG21 examples)
at the app/cli/main.c theres a line:  otCliUartInit(instance);
so Cli will use this instance.
Without looking before this I added sInstance=otInstanceInitSingle(); to the system.c and that for sure interfere with the above initialization.
Removing the line I added to the system.c it solved the problem. I think if I want to interact without problems I have to modify the app/cli/main.c so I can use the instance initialized in this file and continue adding API functionality while preserving the ability to use the CLI.

@binartech, examples/apps/cli/main.c already includes a call to otInstanceInitSingle(). Adding another call to otInstanceInitSingle() somewhere else will certainly cause issues.


builders: archive: introduce tar's base dir

This commit solves an issue that archives created by the archive builder
contain paths to files relative to build-dir. As result, paths may
contain a long list of build-related directories, and in some cases, this
is not desirable.
A possible solution is to specify desired starting point as build dir,
but this will put the resulting archive into the same directory.
So, the best way to get an archive in the top directory and get rid of
intermediate directories - is to specify the base directory for tar
through the -C option.
That's why this commit introduces the base_dir field for the archive
builder. The base_dir is an optional field, and it has '.' value if
not provided.

I have fixed the misprint in the text.
Ready for a new review.

Sources and documentation are reworked. Items now should be specified relative to base_dir.

Acked-by: Volodymyr Babchuk<EMAIL_ADDRESS>

Ack is added.
Tested (see the comment above).
Ready to be merged.


Spike imu mlc; imu app

spike "lk_imu_mlc" and "lk_imu_app" almost done.
spike "lk_imu_game" not finished

Closed by #1030 #1031 #1032


[Feature] When can curl_multi_exec be supported about PHP agent's cUrl ?

Search before asking

[X] I had searched in the issues and found no similar feature requirement.

Description
we found curl_multi_exec not supported about PHP agent。
cURL work well ,but curl_multi_exec can't find HTTP_SW8 ,so we hope it can be supported it as soon as possible.
Use case
we found curl_multi_exec not supported about PHP agent。
cURL work well ,but curl_multi_exec can't find HTTP_SW8 ,so we hope it can be supported it as soon as possible.
Related issues
No response
Are you willing to submit a PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Will support, but not now.