I can't get the keyboard backlight to work on my MSI GS76

Hi folks,
I'm running Manjaro Linux (KDE Plasma Version: 5.24.5, Kernel Version: 5.18.0-1-rt11-MANJARO 64-bit) on MSI GS76 laptop. I've been trying to get the keyboard backlight to work on my laptop. And I keep getting the message below when I run msi-perkeyrgb -s ff0000, and don’t know how to resolve the issue in the message below. Any help would be greatly appreciated.

No laptop model specified, using GE63 as default.
No MSI keyboards with a known product/vendor IDs were found. However, if you think your keyboard should work with this program, you can try overriding the ID by adding the option “–id VENDOR_ID:PRODUCT_ID”. In that case you will also need to give yourself proper read/write permissions to the corresponding /dev/hidraw* device.

When I run sudo pacman -S --needed python-setuptools hidapi, it looks like everything needed (dependencies) are installed and updated as I get the message below.

warning: python-setuptools-1:60.6.0-1 is up to date – skipping
warning: hidapi-0.12.0-1 is up to date – skipping
there is nothing to do

I also installed MSIKLM. When I run sudo msiklm list , I get the information below, which I think it is the information, pertaining to the keyboard of my laptop.

Device: SteelSeries KLC
Device Vendor ID: 4152
Device Product ID: 4410
Device Serial Number: (null)
Device Manufacturer: SteelSeries
Device Path: 3-12:1.0
Device Interface Number: 0
Device Release Number: 258

Device: SteelSeries KLC
Device Vendor ID: 4152
Device Product ID: 4410
Device Serial Number: (null)
Device Manufacturer: SteelSeries
Device Path: 3-12:1.1
Device Interface Number: 1
Device Release Number: 258

Thank you!

sudo msi-perkeyrgb --model GS75 --id 1038:113a -s ff0000 works on a Stealth GS77 after having followed the install instructions.

Maybe a bit late but I just came across this issue.
I also own a MSI GS76 and installed Linux a couple days ago.
I was missing the backlight so much that i decided to investigate.
After several hours of looking for a solution I came across with the key for my case:

Find your device identifier under /sys/bus/usb/drivers/usb/. In my case i run mesg -T | grep -i usb and found that the steelseries keyboard had the identifier 3-12.

Once you have the identifier get superuser privileges and run this command:

sudo su
echo '3-12' |sudo tee /sys/bus/usb/drivers/usb/unbind

By doing this i was able to see the keyboard lights on again, which was nice but i could not change the blinking mode.
Playing a little more, in the same superuser terminal i accidentally did:
echo '3-12' |sudo tee /sys/bus/usb/drivers/usb/unbind
Then i could execute this command without any problems and change the blinking mode:
sudo msi-perkeyrgb --model GS75 --id 1038:113a -p aqua
All the commands also work well now.
Don't forget to create a script or something to run at boot. Otherwise you'll have to do it manually

Thank you ulrickpsp for responding to my post. I appreciate it. When I typed the 3 lines below in terminal, the keyboard backlight finally worked! I could not believe my eyes. Wow!  Thank you so much.
I used the value, "ffffff" below for the aqua color.
sudo msi-perkeyrgb --model GS75 --id 1038:113a -s ffffff
sudo su
echo '3-12' |sudo tee /sys/bus/usb/drivers/usb/unbind
I have 2 questions.
First question: How can I create a script file and insert the commands above?
Second question: How can I run the script (I created) at boot-up.
Thank you so much for your help, ulrickpsp.

Glad it helped!
Once you've set the desired color it would persist if the kernel did not override your settings. So, if you did:
sudo msi-perkeyrgb --model GS75 --id 1038:113a -s ffffff
then, the aqua settings will persist and there's no need of repeating the command each time, so you need only this script:
#!/bin/bash
echo '3-12' |sudo tee /sys/bus/usb/drivers/usb/unbind

Open a terminal and execute the following commands to create the script in your favourite directory and give it execution permissions:

cd <your_target_directory>
sudo nano activate_leds.sh
Paste the script i gave you above
Hit control + o and control + X to save and exit
sudo chmod 775 activate_leds.sh to give executable permissions

Add the script to cron so that it gets executed at each boot:

$ crontab -e
@reboot  <your_target_directory>/activate_leds.sh

Good luck.

Hi ulrickpsp. I'm sorry to bother your again.
When entering the line in crontab, I had a problem. Crontab is not like "nano". crontab looks like a different environment. Having said that, crontab doesn't let me paste properly. When i pasted, it only pasted half of what i wanted to paste. Then, I tried to type, but it didn't let me type. Can you tell me please 1) how I can type a line in crontab and 2) save it?  Thank you so much for your help.

I guess that's more a linux related issue. Have a look at this link and try one of the proposed solutions:
https://stackoverflow.com/questions/12973777/how-to-run-a-shell-script-at-startup

I solved the problem with "crontab". Crontab was using vi editor. I looked up some tutorial on how to use vi editor and I was able to enter the line below in crontab and saved it.
@reboot  /home/zolat/activate_leds.sh
But here is the problem I have now! I would appreciate it if you could help me.
When I restarted Manjaro, it booted up to desktop, but the screen is pitch black. All i see is the white mouse pointer.
If i can manage to go into terminal and edit crontab again, i can solve the problem. Do you have any tricks up your sleeve to solve this issue? I went into grub commandline by pressing c at bootup screen. I had the "grub>" prompt. When I typed "crontab -e", it didn't recognize the command. I hope I'm not in world of trouble.

Actually I can't tell what's going on your machine as I'm not running Manjaro but running Zorin OS. I would double check the path of the script and the cron command to check everything is fine.
Apart from that.. I cannot help, sorry

Hi ulrickpsp! I just wanted to report back to you to let you know that everything works fine with my MSI GS76 laptop. The keyboard backlight works perfectly fine with Manjaro now. And I was able to run the script automatically at boot-up, using the systemd service. I think Crontab didn't work for me, probably because the "@reboot" function is not available with some versions of Crontab.
Drum roll please! :-) If it weren't for your help, my laptop keyboard would be in pitiful "darkness" :-) and I would have never gotten  my keyboard backlight to work! I give you all the credit! Thanks again!
As a side note, I used Zorin and many other Linux distros in the past. When I tried Manjaro, I loved it and never looked back. It is very "rich" and customizable. For some reason, Zorin appeared to me a bit "plain". I highly recommend Manjaro.

Glad I could help.
Enjoy your fully working Gs76! Best laptop I've ever owned.

Absolutely agree with you on that! It's blazing fast. My GS76 came with Windows 10. I turned my laptop into a dual boot system and installed Manjaro. I pretty much no longer use Windows "for obvious reasons". Manjaro boots up to desktop environment in 15 seconds. Windows boots up to desktop in 35 seconds.


call a async method in model class's method.

i'm define a toJSON method in model class, but now i'm hope call a other async method in toJSON, and must await the other method return result, What should I do this time？
'use strict';

var tujiaoBookshelf = require('../../config/database');
var _ = require('lodash');
var config = require('../../config/config.js');

var Activity = tujiaoBookshelf.Model.extend({
    tableName: 't_activities',

    defaults: function defaults() {
        return {
            uuid: StringUtils.uuid()
        };
    },

    toJSON: function toJSON(options) {
        options = options || {};

        var attrs = tujiaoBookshelf.Model.prototype.toJSON.call(this, options);
        let image = this.get('image');
        if (!_.isEmpty(image)) {
            attrs.image = config[config.env].image.tuyaImageUrl + image;
        }
        // for example
        // call other async methods
        // let result = await asyncMethod();
        // attrs.result = result;

        return attrs;
    },
});

var Activities = tujiaoBookshelf.Collection.extend({
    model: Activity
});

module.exports = {
    Activity: tujiaoBookshelf.model('Activity', Activity),
    Activities: tujiaoBookshelf.collection('Activities', Activities)
};

@arden You could return a promise that resolves with attrs.
    toJSON: function toJSON(options) {
        options = options || {};

        var attrs = tujiaoBookshelf.Model.prototype.toJSON.call(this, options);
        let image = this.get('image');
        if (!_.isEmpty(image)) {
            attrs.image = config[config.env].image.tuyaImageUrl + image;
        }

        return Promise.try(function() {
          // call other async methods
        }).return(attrs);
    },

The project leadership of Bookshelf recently changed. In an effort to advance the project we close all issues older than one year.
If you think this issue needs to be re-evaluated please post a comment on why this is still important and we will re-open it.
We also started an open discussion about the future of Bookshelf.js here https://github.com/bookshelf/bookshelf/issues/1600. Feel free to drop by and give us your opinion.
Let's make Bookshelf great again


[Bug]: Sometimes when an element is not found a screenshot is not taken

examine the shadow dom test, when it failed to find the element it threw two failures and didn't take a screenshot.

unable to reproduce atm...


ADD C++ program to c++ folder

Please don't ask for assignees just mention the issue number in pr you are creating, and do it your job is done......assignees don't make any difference in hacktoberfest acceptance whether you are assigned or not don't count towards acceptance you just need to do pr and mention issue number so don't ask for it  and it will work fine for hacktoberfest...Good luck for your open-source journey

can u assign me this issue?

ok @Gptshubh

@arin2002 can you assign me this?

@arin2002 can you assign me this issue ?

@arin2002 can you assign me this issue ?

I have implemented Min-Max Heaps in C++. This data structure supports Insertion, deleting-minima, and deleting maxima in O(log n) time. It also supports Finding Minima and Finding Maxima in O(1) time.
Please accept my pull request.

Greetings , @arin2002

I was looking for a repository to contribute to open source and found this one.
Can you assign this to me? I'm familiar with the CPP Programming . and I would love to do it.

-Regards, thanks.

ok @PrajwalGKale

any @ShrutikaK2911

@arin2002 can you assign me this issue ?

ok @ShrutikaK2911

hii @arin2002 ,pls assign this to me

Ok @ayushkat987

Hi @arin2002 ,I would like to contribute.. Please assign to me

ok @Jackz-123

hey can you please assign this to me for hacktoberfest2022

hey @arin2002 can you please assign this to me for hacktoberfest2022

hey @arin2002  can you assign this to me

ok @11nitis @ipratham101

median.txt
this is the code to find the median of two sorted array

Hey, Can you assign me this for Hacktoberfest?

pls assign me this task asap. its last day today for hacktoberfest


Allow other driver to build / run more easily

In case it's ever needed :)

@s-ludwig : This one shouldn't take you more than 30s to review ;)

I already had it open in a tab and almost merged it, but then got distracted ;)


python3Packages.sqlalchemy_1_4: init at 1.4.50

Description of changes
This is needed to fix python3Packages.ax storage layer. Even JSON serialization currently requires sqlalchemy to be imported, but 2.x support is not implemented yet. Adding 1.4.x works very well, and that branch is still supported upstream, which is nice.
Things done

Built on platform(s)

[x] 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

[x] 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/)
23.11 Release Notes (or backporting 23.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

[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build python3Packages.ax

@GrahamcOfBorg build python3Packages.ax

1_4 has been added in a another pr at some point


Refine end-of-life scenarios

Currently refining using this spreadsheet

The following scenarios have been selected by the team:

National Average C&D treatment mix
Regional C&D treatment mix
Custom EoL Mix (for entire building)
Custom EoL Mix (for single element)


[FEAT] Login via system default browser

Is it possible to make it use the system default browser for the logins to the various chatbots as opposed to the container that comes with the app?

If so, then ChatALL can not fetch data from the bots.
Why you need to do so?


VSCode ignores stylecop.json

I guess Roslyn analyzers are IDE independent (they depend on the .NET Compiler platform (Roslyn) only), so I would expect them to work in all IDEs those support Roslyn analyzers.
If you consider this GitHub repo and try them in VS19 and VSCode, you will experience that VSCode reports one more finding about the namespace usings' location, saying they should be within the namespace declaration.
However, stylecop.json clearly indicates that they should be outside:
"orderingRules": {
  "usingDirectivesPlacement": "outsideNamespace"
}

And VS19 detects and respects it, but VSCode does not.
Images
It works well in Visual Studio 2019:

But Visual Studio Code does not take stylecop.json configuration into account:

(They both respect the .ruleset file properly, though.)

Another question I would like to ask is:
Why is stylecop.json file marked as Removed as well in a csproj file?
<ItemGroup>
  <None Remove="..\stylecop.json" />
</ItemGroup>

<ItemGroup>
  <AdditionalFiles Include="..\stylecop.json" />
</ItemGroup>

This is created with the SA1633 Code fix, as you write in the documentation. If I remove the first ItemGroup, nothing changes. Why is that automatically generated there?
Thank you for your answers in advance.

I'm not sure why it isn't working. But afaik C# analyzer support is provided by OmniSharp, so my best guess would be to file an issue there (OmniSharp/omnisharp-vscode).

It does work, you just have to specify it to be considered an additional file to the analyzers, see https://github.com/dotnet/roslyn/blob/master/docs/analyzers/Using Additional Files.md#passing-an-individual-file.

It does work, you just have to specify it to be considered an additional file to the analyzers, see https://github.com/dotnet/roslyn/blob/master/docs/analyzers/Using Additional Files.md#passing-an-individual-file.

This is so useful! Can we have it mentioned in README?


Empty files are causing exceptions

Empty files that are included in torrents are causing an System.ArgumentException: 'Value must be greater than 0.'. As the file is empty the length of 0 and the hash of null seem to be normal.

TorrentClient.dll!TorrentClient.TorrentFileInfo.TorrentFileInfo(string filePath, string md5hash, long length) Line 23	C#
TorrentClient.dll!TorrentClient.TorrentInfo.TryLoad(byte[] data, out TorrentClient.TorrentInfo torrentInfo) Line 413	C#
TorrentClient.dll!TorrentClient.TorrentInfo.TryLoad(string torrentInfoFilePath, out TorrentClient.TorrentInfo torrentInfo) Line 534	C#

Hi.
How do you suggest to property handle empty files? The BitTorrent protocol specification has no instructions on that. I guess because it doesn't make sense downloading empty files.

Most torrent clients / libraries I encountered simply created an empty file, just like touch does.
It does make sense downloading them if they are used for example as a control file and are part of a program.


fixed SHOW CREATE TABLE statement if nested objects exists

Fixed a bug in SHOW CREATE TABLE statement that leads to a wrong table
schema if the table contains nested objects

ack


jsmpeg just can not work

WebGL: INVALID_OPERATION: texImage2D: type UNSIGNED_BYTE but ArrayBufferView not Uint8Array
JSMpeg: Possible garbage data. Skipping.
what is this mean???!!!
i use the .mpg video.

.mpg files are not supported. JSMpeg only plays MPEG-TS containers. See the readme.
You can use ffmpeg to repackage your MPEG-1 encoded video into an MPEG-TS container without transcoding:
ffmpeg -i input.mpg -f mpegts -v:c copy out.ts

ok,fine,i see that,thanks
and i have a another question :
How can i know when the video is ended? i don't have any method or event to check out

i had same  err message
WebGL: INVALID_OPERATION: texImage2D: type UNSIGNED_BYTE but ArrayBufferView not Uint8Arra
JSMpeg: Possible garbage data. Skipping.
I try to use jsmpeg to display  rtsp stream through websocket   ,
broswer side can receive video stream but  always  show   erroor  "JSMpeg: Possible garbage data. Skipping." when it  run decoder
this  is   my ffmpeg command
" ffmpeg  -i rtsp://<IP_ADDRESS> -f mpeg2video -b 800k -r 30 http://localhost:8081/1234/640/480/"
If  i  save stream on server side   and  play  ts  file  with  jsmpeg   then  decoder is no problem to play
Is anything i did wrong ?

@daiseita: same issue. Use the mpegts format for streaming, not mpeg1video.
@hahazexia: there's currently no straight forward way to do this. The player pauses at the end (if not looping), so you could check for that. I'll probably implement a bunch of callbacks for things like this.

@daiseita   use the 'mpegts'; not the 'mpeg2video '

jsmpeg use mpeg1video and mp2 .
ffmpeg -i rtsp：//<IP_ADDRESS> -f  mpegts -codec:v mpeg1video  -bf 0 -codec:a mp2 -r 30 http：// localhost：8081/1234/640/480 / ”

@hahazexia  @phoboslab  @wait121000
thank you  all guys ,I'd appreciate your help
after fix command,  my program can work now.

Hi @phoboslab. I really appreciate the JSMpeg library.
I have been working for a month with FFMPEG and JSMpeg to stream an IP Camera, and I already have it working translating from RTSP to HTTP (as the WebSocket example).
I used Wireshark to monitor each part of the system (Camera to Server, and Server to Browser) and I realized that I have many retransmissions. This is bad for the solution that I am trying to do because the IP cameras are using 4G internet and it is not unlimited. So I am trying to use UDP instead of HTTP. My HTTP command is:
ffmpeg -i rtsp://<user>:<pass>@<camera_ip>:554 -f mpegts -codec:v mpeg1video -r 20 -codec:a mp2 -ar 44100 http://<server_ip>:8081/<stream_secret>
Everytime that I use the HTTP it works fantastic. But when there start to be many TCP retransmissions the video starts to have several delays.
So, I added an UDP server in the web-socket-relay.js
var dgram = require('dgram');
var udp_server = dgram.createSocket('udp4');

udp_server.on('listening', function () {
    var address = udp_server.address();
    console.log('UDP Server listening');
});

udp_server.on('message', function (message, remote) {
    socketServer.broadcast(message);
});

udp_server.bind(8083);

Now the command is:
ffmpeg -i rtsp://<user>:<pass>@<camera_ip>:554 -f mpegts -codec:v mpeg1video -r 20 -codec:a mp2 -ar 44100 udp://<server_ip>:<udp_port>
When I try the UDP solution with my internet, the UDP solution works. But when I try the 4G internet, the video freeze. In the console I got "JSMpeg: Possible garbage data. Skipping", and later Chrome crashes.
Do you have any idea what could be happening?

@jvanegas
Well, in theory, JSMpeg should be somewhat resilient to missing data - it should just synchronize to the next MPEG-TS packet. I have never really tried that, though. Out-of-order data could be more problematic. JSMpeg doesn't verify the correct packet order, nor does it skip over older packets that arrive after newer ones.
Can you record the raw, incoming UDP stream on the server, so that we have a test case? I can't promise you to look into it any time soon, though.

@phoboslab Thanks for your response.
I created a text file with the hex data that arrived at the server. I also saved a .ts file if you believe it is useful.
Let me know if something else is needed.
Thanks.
1493388741337.txt

hey guys im new on jsmpeg. how to use this command tho? ffmpeg -i in.mpg -f mpegts -v:c copy out.ts

@pixelstar2017 If you want to use JSMpeg and you are not going to change anything in their code, you only need the jsmpeg.min.js file. You do not need to add all the files.

@jvanegas great. thanks. it worked right now.

help!
ffmpeg  -i rtsp://<IP_ADDRESS>:554/user=admin\&password=\&channel=1\&stream=0.sdp?real_stream  -f mpegts -codec:v mpeg1video  http://localhost:10021

all seems right !!
but no vedio!!!

@wait121000 thanks .The perfect solution to a problem that has plagued me for a long time.


T265 not detected over USB hub

Required Info

Camera Model
{  D435 / t265 }

Firmware Version
<IP_ADDRESS>

Operating System & Version
{Ubuntu 16)

Kernel Version (Linux Only)
(e.g. 4.14.13)

Platform
PC/Raspberry Pi/ NVIDIA Jetson / etc..

SDK Version
{ 2.19.2 }

Language
{C/C#/labview/nodejs/opencv/pcl/python/unity }

Segment
{Robot}

Issue Description
Hi,
I am trying to use 2 D435 and T265 for a robot when I connect these over the USB hub I connect it to Jetson Tx2 or on laptop I do not see the T265 detected.
LSUSB gives me the below result
$ lsusb
Bus 002 Device 009: ID 8086:0b07 Intel Corp.
Bus 002 Device 008: ID 8086:0b07 Intel Corp.
Bus 002 Device 007: ID 05e3:0612 Genesys Logic, Inc.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 27c6:5381
Bus 001 Device 002: ID 0c45:6718 Microdia
Bus 001 Device 008: ID 046d:c31c Logitech, Inc. Keyboard K120
Bus 001 Device 007: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Bus 001 Device 004: ID 8087:0aaa Intel Corp.
Bus 001 Device 012: ID 03e7:2150
Bus 001 Device 011: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
When I see for sources realsense-viewer I do not see the tracking camera module, I only see D435 modules.
I see when its directly connected to laptop.
Do we have any details on the USB hub interface requirements, inducing BW, power etc. when we need to connect multiple devices.

Hi @ShettyHarapanahalli ,
Please try the following sequence:

Connect the USB hub to the host
Connect the T265 to the USB hub
Let me know if it works for you.

Hi,
The USB hot plug (above sequence) works, but I can not do this on the jetson/robot every time do you know any solution to fix this.
Best Regards,
Suman

Hi
The hub ultimately has to be connected to the system, powered and recognized before the T265 device is connected to the hub itself.  That way the hub and T265 isn't being powered on at the same time and being recognized by the host platform at the same time.

I can't believe that the solution being offered for this issue is to unplug and re-plug the T265 device.  This is a totally ridiculous solution and certainly not one that you could expect any end user to accept.  What plans are there for a real solution to this problem?

@raymondbedwards55 @radfordi @RealSenseCustomerSupport @ShettyHarapanahalli Could you please help me? I am facing same issue as described here and in this issue I just posted #7125

I see that a recent librealsense release added the hardware reset function to the t265, and that this may be a workaround for the above mentioned issue. Are there any plans to address the underlying issue, or should we plan to work around them in software?
I am working with a t265 in USB 2 mode over an industrial hub in a robotics application. The plug-replug fix seems to work, but is not something we can use in a real environment.

This still seems to be an issue :/

This is still an issue, even with a direct USB connection (no external hub).


Layout with compact type null does not restore after collision.

How can I make RGL work like the demo from the link below?
https://gridstackjs.com/demo/float.html
I would like to make the layout restore to how it was before the collision if the drag is stopped on an empty space.
This needs to be done white the layout's compact type has to be null.
Am I missing a property that would enable this feature or am I the only one who needs this?

Please reopen this issue, I also encounter the issue: dragging an item leaves too many gaps in the layout.


[9.x] Create config files from artisan CLI

Hi everybody,
this PR targets creating config files from artisan CLI. Since we could create almost every files from artisan, creating the config files were missing. We can create config files now.
usage:
php artisan make:config theme

result
In base directory, config/theme.php file is created. Now we can fill inside how we want.
<?php

return [
    'default' => env('ADMIN_THEME', 'main'),

    'themes' => [
        'main' => [
            'admin_color_1' => '#188ea4',
            'admin_color_2' => '#312cb8',
            'admin_color_3' => '#1325a3',
            'admin_login_image' => '/admin/bgs/0.jpg',
            // ...
        ],
    ]
];

Tests are run, nothing is broken. Codes are generated like other php artisan make commands.
Main purpose of code is that, we should be able to create configs from CLI.

Why did you clear cache in the command?
{{class}}  is not being populated?

Why did you clear cache in the command?
{{class}}  is not being populated?

My thought is that if you are creating a config file, your cached config will not include your new config. Maybe clearing the cache can be optional.

Thanks for your pull request to Laravel!
Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.
If possible, please consider releasing your code as a package so that the community can still take advantage of your contributions!
If you feel absolutely certain that this code corrects a bug in the framework, please "@" mention me in a follow-up comment with further explanation so that GitHub will send me a notification of your response.


Naive query for certified but not otherwise ingested artifacts may fail.

Describe the bug
Certifying (poorly) an artifact that is otherwise unknown works, but querying the artifacts then fails. At least the naive way I did it.
To Reproduce
 ./bin/guacone certify -g artifact "approved by bob" 'pkg:rpm/redhat/acl@2.2.51-15.el7?arch=ppc64le'
Then query { artifacts { id } }
Expected behavior
Not a nil pointer.
Screenshots
runtime error: invalid memory address or nil pointer dereference

goroutine 827 [running]:
runtime/debug.Stack()
	/usr/local/Cellar/go/1.19.1/libexec/src/runtime/debug/stack.go:24 +0x64
runtime/debug.PrintStack()
	/usr/local/Cellar/go/1.19.1/libexec/src/runtime/debug/stack.go:16 +0x1c
github.com/99designs/gqlgen/graphql.DefaultRecover({0x103760fa0?, 0x1400062e360?}, {0x103695ae0?, 0x103bc2100?})
	/Users/bob/go/pkg/mod/github.com/99designs/gqlgen@v0.17.34/graphql/recovery.go:17 +0x78
github.com/99designs/gqlgen/graphql.(*OperationContext).Recover(0x14000012528?, {0x103760fa0, 0x1400057e510}, {0x103695ae0?, 0x103bc2100?})
	/Users/bob/go/pkg/mod/github.com/99designs/gqlgen@v0.17.34/graphql/context_operation.go:124 +0x44
github.com/guacsec/guac/pkg/assembler/graphql/generated.(*executionContext)._Query_artifacts.func1()
	/Users/bob/repos/trustification/guac/pkg/assembler/graphql/generated/artifact.generated.go:2590 +0x68
panic({0x103695ae0, 0x103bc2100})
	/usr/local/Cellar/go/1.19.1/libexec/src/runtime/panic.go:884 +0x204
github.com/guacsec/guac/pkg/assembler/backends/inmem.(*demoClient).artifactExact(0x2000?, 0x0)
	/Users/bob/repos/trustification/guac/pkg/assembler/backends/inmem/artifact.go:128 +0x20
github.com/guacsec/guac/pkg/assembler/backends/inmem.(*demoClient).Artifacts(0x140002188c0, {0x20?, 0x14000012938?}, 0x0)
	/Users/bob/repos/trustification/guac/pkg/assembler/backends/inmem/artifact.go:161 +0xc8
github.com/guacsec/guac/pkg/assembler/graphql/resolvers.(*queryResolver).Artifacts(0x10368fa00?, {0x103760fa0?, 0x1400057e510?}, 0xc?)
	/Users/bob/repos/trustification/guac/pkg/assembler/graphql/resolvers/artifact.resolvers.go:21 +0x38
github.com/guacsec/guac/pkg/assembler/graphql/generated.(*executionContext)._Query_artifacts.func2({0x103760fa0?, 0x1400057e510})
	/Users/bob/repos/trustification/guac/pkg/assembler/graphql/generated/artifact.generated.go:2596 +0xd0
github.com/99designs/gqlgen/graphql/executor.processExtensions.func4({0x103760fa0?, 0x1400057e510?}, 0x14000696460?)
	/Users/bob/go/pkg/mod/github.com/99designs/gqlgen@v0.17.34/graphql/executor/extensions.go:72 +0x2c
github.com/guacsec/guac/pkg/assembler/graphql/generated.(*executionContext)._Query_artifacts(0x1400006c140, {0x103760fa0, 0x1400057e450}, {0x1400051f780, {0x14000328610, 0x1, 0x1}, 0x0})
	/Users/bob/repos/trustification/guac/pkg/assembler/graphql/generated/artifact.generated.go:2594 +0x1dc
github.com/guacsec/guac/pkg/assembler/graphql/generated.(*executionContext)._Query.func1({0x103760fa0?, 0x1400057e450?}, 0x1400029e190)
	/Users/bob/repos/trustification/guac/pkg/assembler/graphql/generated/artifact.generated.go:4677 +0x94
github.com/guacsec/guac/pkg/assembler/graphql/generated.(*executionContext)._Query.func2.1({0x103760fa0?, 0x1400057e450?})
	/Users/bob/repos/trustification/guac/pkg/assembler/graphql/generated/artifact.generated.go:4686 +0x30
github.com/99designs/gqlgen/graphql/executor.processExtensions.func3({0x103760fa0?, 0x1400057e450?}, 0x103eccf18?)
	/Users/bob/go/pkg/mod/github.com/99designs/gqlgen@v0.17.34/graphql/executor/extensions.go:69 +0x2c
github.com/guacsec/guac/pkg/assembler/graphql/generated.(*executionContext)._Query.func2({0x103760fa0, 0x1400057e450})
	/Users/bob/repos/trustification/guac/pkg/assembler/graphql/generated/artifact.generated.go:4685 +0xac
github.com/guacsec/guac/pkg/assembler/graphql/generated.(*executionContext)._Query.func3({0x14000012be8?, 0x1033ff114?})
	/Users/bob/repos/trustification/guac/pkg/assembler/graphql/generated/artifact.generated.go:4689 +0x2c
github.com/99designs/gqlgen/graphql.(*FieldSet).Dispatch(0x1400029e190, {0x103760fa0?, 0x1400057e3f0?})
	/Users/bob/go/pkg/mod/github.com/99designs/gqlgen@v0.17.34/graphql/fieldset.go:41 +0xac

GUAC version
main#HEAD built locally.

Additionally, need to add a check to ./bin/guacone certify -g artifact "approved by bob" 'pkg:rpm/redhat/acl@2.2.51-15.el7?arch=ppc64le' such that it's an artifact type, it should not accept a purl and vise versa. This should be done for package, artifact, and source.

good catch @bobmcwhirter !


Add PortPolicy::None

Agones x-ref: https://github.com/googleforgames/agones/pull/3807
But that will merge soon, the implementation is good, just needs a feature flag to sit behind. Happy to merge this as is.


About the mean rgb of DIV2K dataset

Hello my friend,
Your project is so helpful.i have got many ideas from the way you have written it.I would want to ask you some questions.When we find the  mean rgb value of div2k dataset , are we using the Low resolution images of train dataset(800 images) or are we using the low resolution images of train,validation and testing to find the mean rgb value(all the low resolution images of the dataset)?This mean value is this value we must subtract from our data when we pass them in the network

Hi Johnnie,
When you calculate the mean you always only use the training dataset (otherwise it's 'cheating').

Thank for the soon answer.Also I noticed you are using the mean value of high resolution training dataset.we can use either low resolution or high resolution training dataset to calculate mean RGB value because their difference is very small.I had made a program to check this before  continue to the next step that was the creation of the network and after this the training step


update audit log docs

What are you changing in this pull request and why?

This removes some information that isn't relevant to end users, adds some info that was missing, and makes slightly clearer some other things.
Checklist

[ ] Review the Content style guide so my content adheres to these guidelines.
[ ] For docs versioning, review how to version a whole page and version a block of content.
[ ] Add a checklist item for anything that needs to happen before this PR is merged, such as "needs technical review" or "change base branch."

Adding or removing pages (delete if not applicable):

[ ] Add/remove page in website/sidebars.js
[ ] Provide a unique filename for new pages
[ ] Add an entry for deleted pages in website/vercel.json
[ ] Run link testing locally with npm run build to update the links that point to deleted pages

preview looks great: https://docs-getdbt-8tsko00ap-dbt-labs.vercel.app/docs/cloud/manage-access/audit-log


GEODE-3716 - Adding steal time metrics to Geode.

Thank you for submitting a contribution to Apache Geode.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[ ] Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?

[ ] Has your PR been rebased against the latest commit within the target branch (typically develop)?

[ ] Is your initial contribution a single, squashed commit?

[ ] Does gradlew build run cleanly?

[ ] Have you written or updated unit tests to verify your changes?

[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to<EMAIL_ADDRESS>

I put in a couple of conditional tests.   Let me know fi that doesn't work.   Sorry I didn't know how squash the commits after I pushed.   Hopefully you can squash them when/if you accept the pull request.

I'll take a look at this today. Thanks!

Thanks for your time checking over the commit.   Hopefully the new description of the CPU Steal time is satisfactory.

I just realized I asked you to add usage of Assume but I think your use of PowerMock made that unnecessary. Sorry about that!


Proposal to curb amount of open issues on TypeScript project

Another project that I've checked quite often, had an bit of issue with a huge amount of
open issues. I'm wondering if TypeScript would benefit, management-wise, from the
automatic curbing of issues that have not received any activity here on Github for
some period of time?
A blog posting on NPM site about automatically curbing open issues

We already do this (e.g. https://github.com/Microsoft/TypeScript/issues/16080#issuecomment-307447116 - that is done by a script)

Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.


Make generated 'project' reference take an '&mut Pin<&mut Self>'

Based on https://github.com/rust-lang/unsafe-code-guidelines/issues/148#issuecomment-523711778
by @CAD97
Currently, the generated 'project' method takes a 'Pin<&mut Self>',
consuming it. This makes it impossible to use the original Pin<&mut Self>
after calling project(), since the 'Pin<&mut Self>' has been moved into
the the 'Project' method.
This makes it impossible to implement useful pattern when working with
enums:

enum Foo {
    Variant1(#[pin] SomeFuture),
    Variant2(OtherType)
}

fn process(foo: Pin<&mut Foo>) {
    match foo.project() {
        __FooProjection(fut) => {
            fut.poll();
            let new_foo: Foo = ...;
            foo.set(new_foo);
        },
        _ => {}
    }
}

This pattern is common when implementing a Future combinator - an inner
future is polled, and then the containing enum is changed to a new
variant. However, as soon as 'project()' is called, it becoms imposible
to call 'set' on the original 'Pin<&mut Self>'.
To support this pattern, this commit changes the 'project' method to
take a '&mut Pin<&mut Self>'. The projection types work exactly as
before - however, creating it no longer requires consuming the original
'Pin<&mut Self>'
Unfortunately, current limitations of Rust prevent us from simply
modifying the signature of the 'project' method in the inherent impl
of the projection type. While using 'Pin<&mut Self>' as a receiver is
supported on stable rust, using '&mut Pin<&mut Self>' as a receiver
requires the unstable #![feature(arbitrary_self_types)]
For compatibility with stable Rust, we instead dynamically define a new
trait, '__{Type}ProjectionTrait', where {Type} is the name of the type
with the #[pin_project] attribute.
This trait looks like this:
trait __FooProjectionTrait {
    fn project(&'a mut self) -> __FooProjection<'a>;
}

It is then implemented for Pin<&mut {Type}>. This allows the project
method to be invoked on &mut Pin<&mut {Type}>, which is what we want.
If Generic Associated Types (https://github.com/rust-lang/rust/issues/44265)
were implemented and stabilized, we could use a single trait for all pin
projections:
trait Projectable {
    type Projection<'a>;
    fn project(&'a mut self) -> Self::Projection<'a>;
}

However, Generic Associated Types are not even implemented on nightly
yet, so we need to generate a new trait per type for the foreseeable
future.

bors r+

Currently, the generated 'project' method takes a 'Pin<&mut Self>',
consuming it. This makes it impossible to use the original Pin<&mut Self>
after calling project(), since the 'Pin<&mut Self>' has been moved into
the the 'Project' method.

That is not true, you can just reborrow the Pin<&mut Self> via as_mut. A double pointer-indirection is unnecessary. Just call foo.as_mut().project() instead of foo.project().
Is there any other reason why double pointer-indirections are used? If not, I suggest to revert this.

I was aware of it, but I approved this PR because I felt it would be more convenient to call it without .as_mut().
However, in reality, I missed some of the drawbacks (https://github.com/taiki-e/pin-project/issues/65, https://github.com/taiki-e/pin-project/issues/21#issuecomment-530206201, etc.). So now I feel that this approach is not always convenient.

Filed #89


Add HPA support to Fluentd

Is your feature request related to a problem? Please describe.
Scaling Fluentd is done manually up to now.
When traffic increases quickly, Fluentd CPU and memory usage can overwhelm the pod(s).
Describe the solution you'd like
Be able to easily enable auto scaling like this.
Additional context
HPA for StatefulSets is now supported:
https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/

Hi @benjaminhuo,
What to changes here, is it modifying the Helm chart of Fluentd?
Could you please advise?, Thanks.

Hi @benjaminhuo, What to changes here, is it modifying the Helm chart of Fluentd? Could you please advise?, Thanks.

@husnialhamdani Possibly we need to add HPA spec in FluentdSpec and create/update/delete HPA resources accordingly in Fluentd controller.
@wanjunlei What do you think?


Merge fix for #29080 to dev

Could you merge these CLs to the dev branch?
These two commits should merge cleanly in this order:

Fix two bugs with async stack traces: ef7487a7a8b8604401cfafabe6bd2555b6847f17

Ensure unoptimized code when collecting awaiter return stack trace: 537eacb525575b422361fcfc5692e8f1b2820850

I'm going to do a full push to dev, we aren't in Cherry pick season yet.
On Mar 24, 2017 00:30, "Florian Schneider"<EMAIL_ADDRESS>wrote:

Could you merge these CLs to the dev branch?
These two commits should merge cleanly in this order:

Fix two bugs with async stack traces: ef7487a
https://github.com/dart-lang/sdk/commit/ef7487a7a8b8604401cfafabe6bd2555b6847f17
2.
Ensure unoptimized code when collecting awaiter return stack trace:
537eacb
https://github.com/dart-lang/sdk/commit/537eacb525575b422361fcfc5692e8f1b2820850
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/dart-lang/sdk/issues/29154, or mute the thread
https://github.com/notifications/unsubscribe-auth/AErap1Rhlsse7rlMhk1GufgHVB6nemQgks5rowB5gaJpZM4MnfiG
.

Sgtm


[Create softlinks for shared paths and files] Wrong path to shared page (src file does not exist)

ansible 2.6.1
python version = 3.7.0 (default, Jun 29 2018, 20:13:13) [Clang 9.1.0 (clang-9<IP_ADDRESS>)]
mac 10.13.6
TASK [carlosbuenosvinos.ansistrano-deploy : ANSISTRANO | Create softlinks for shared paths and files] **************************************************************************************************************************************************************************
failed: [ip] (item=log) => {"changed": false, "item": "log", "msg": "src file does not exist, use \"force=yes\" if you really want to create the link: /home/user_name/projects/project_name/releases/20180717123241Z/..../../shared/log", "path": "/home/user_name/projects/project_name/releases/20180717123241Z/log", "src": "..../../shared/log", "state": "absent"}

my playbook
    ansistrano_deploy_from: "{{ playbook_dir }}"
    ansistrano_deploy_to: "{{ home_directory }}/projects/{{ app_name }}"
    ansistrano_version_dir: "releases"
    ansistrano_current_dir: "current"
    ansistrano_current_via: "symlink"
    ansistrano_keep_releases: 10
    ansistrano_shared_paths:
      - log
    ansistrano_ensure_shared_paths_exist: yes
    ansistrano_ensure_basedirs_shared_files_exist: yes
    ansistrano_deploy_via: "git"
    ansistrano_allow_anonymous_stats: false
    ansistrano_git_repo: repo
    ansistrano_git_branch: "{{ branch }}"
    ansistrano_git_repo_tree: ""
    ansistrano_git_identity_key_path: ""
  roles:
    -
      role: carlosbuenosvinos.ansistrano-deploy
      tags: [ 'deploy' ]

I replaced two dots with one here and then the deploy started working.
Do you have any ideas about what went wrong?

Same issue here :(

maybe a newer version of jinja changed the way regex_replace is treated? Our tests with ansible 2.6.1 seem to work in travis

@ricardclau @tz3 I believe it's about python version. When i changed to python 2.7.13 same playbook is working flawlessly.

Not sure about this... in the end ansible python instructions are executed in the server you connect to, is the regex_replace filter executed locally? Always a bit confusing this bit
Let's see if there are more confirmations so that we can tackle the problem correctly

This is a problem with Python 3.7 / the regular expression used.
Python 3.7 replaces empty matches next to non-empty matches (docs).
If you change the expression to [^\\/]+ it works fine under all Python versions.

Actually, I believe that the error lies in the expression, not the Python regex engine. PCRE (Perl, PHP, …) also replaces empty matches according to my tests.
So if it breaks, it's because some expression had a bug, this change just exposed it.
Regular expressions are hard, but I learned that when I use the * (zero or multiple) modifier, I almost always want the + (one or multiple) modifier instead. I guess using shell patterns leads to skewed expectations of what that modifier should do.

 I just checked it with PHP
In fact, If you look at the expression it probably should have never worked in the first place
Thanks again for this contribution


Rework

https://github.com/PMunch/binaryparse/issues/14, https://github.com/sealmove/binaryparse

Why did you close this?

The diff got out of hand, it's too big. It's now a complete rewrite and I am adding/tweaking things in high speed. I thought it's easier to launch it as a different repo than having a PR that essentially replaces the whole codebase with something different.


Fixed Dockerfile command that prevented image to be pushed to Docker Hub

This PR adds | fixes:

Fix #36

How to prepare for test:

[x] Remove any previous image present locally

How to test:

Run docker-compose up and make sure that the image is pushed to Docker Compose (stage): https://hub.docker.com/r/clinicalgenomics/preclinvar-stage/tags

Expected outcome:

[x] The tests above should be successful

Review:

[x] Tests executed by GitHub actions
[ ] "Merge and deploy" approved by

This version is a:

[ ] MAJOR - when you make incompatible API changes
[ ] MINOR - when you add functionality in a backwards compatible manner
[x] PATCH - when you make backwards compatible bug fixes or documentation/instructions

Tested 🆗


When Rebalance finishes, where did you reset offsets

Hi.
I found this issue:
KAFA-2978
you said  fetched & consumed offsets  are reseted when rebalance finished.
But i haven't see such code in your test project or kafka. Cloud you point it out?

Hi, the comment https://issues.apache.org/jira/browse/KAFKA-2978?focusedCommentId=15051920&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15051920 was written by Jason Gustafson, he is Kafka developer. He describes there internals of Kafka consumer when auto offset commit is enabled, so this comment is fully unrelated to any code in this repository.
 See these methods in consumer API:

consumer.subscribe(), variant with rebalance callback
consumer.committed()
consumer.seek()
consumer.commitSync()


Support building in the Swift toolchain

Motivation:
The Swift toolchain has an unusual build environment that attempts to
check out all package dependencies locally before building begins. To
support that flow we need to detect that we're in the toolchain
environment and defer to a local checkout accordingly.
Modifications:

Added a check for building in the toolchain.

Result:
Better builds in the toolchain.

FYI you may need https://github.com/apple/swift-nio/pull/1950 (pushing this around the various repos is on my todo list)


correct the checking for the instantiation of Julia packages held by Python packages.

Codecov Report

Merging #12 (12ba857) into main (e5c92bf) will decrease coverage by 2.08%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main      #12      +/-   ##
==========================================
- Coverage   57.02%   54.94%   -2.09%
==========================================
  Files          11       11
  Lines         840      799      -41
==========================================
- Hits          479      439      -40
+ Misses        361      360       -1

Impacted Files
Coverage Δ

TyPython/src/C.jl
50.00% <0.00%> (-7.15%)
:arrow_down:

TyPython/src/CPython.APIs.jl
41.44% <0.00%> (-3.48%)
:arrow_down:

TyPython/src/CPython.Defs.jl
15.90% <0.00%> (-1.87%)
:arrow_down:

TyPython/src/CPython.MRO.jl
90.06% <0.00%> (-0.95%)
:arrow_down:

TyPython/src/CPython.jl
91.66% <0.00%> (-0.65%)
:arrow_down:

TyPython/src/CPython.Julia.jl
94.82% <0.00%> (-0.49%)
:arrow_down:

TyPython/src/CPython.Boot.jl
79.06% <0.00%> (-0.48%)
:arrow_down:

TyPython/src/CPython.NumPy.jl
92.85% <0.00%> (+0.96%)
:arrow_up:

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


Border prop order

When adding border props, you need to make sure they are in a specific order, otherwise they do not work. For example you need to specify "border" or "borderRight" etc before "borderColor". I know that when typing out the CSS property you would specify "1px solid" before "red", but I don't think there should be an issue with the order in which you apply the props.
To reproduce, try something like:
<Column
borderColor={["red", "red"]}
borderRight={["0", "1px solid"]}
width={[1, 1 / 2]}

If you've opted to use CSS shorthands like border and border-right instead of border-width, border-style, and border-color, source order will matter, and there's not much Styled System can do to prevent that from happening. I'd suggest not mixing shorthand CSS properties with the regular ones

Closing in favor of #1058


Removed the external configuration loader. Now using config values with ...

Lots of standardization. Trying to nail down and integrate a workable configuration method.

Ship it!


[Forwardport][Cluster Explorer] Available PVC does not refresh when changing namespace at creation

Tracking forwardport PR for https://github.com/rancher/dashboard/issues/2716

pr: https://github.com/rancher/dashboard/pull/2740. Closing it


Use a Pixelated Icon rather than a Camera for Non-Identifiable Video

The camera icon is almost equivalent to CCTV, which a Non-Identifiable Video is decidedly not. Rather, we should use a pixelated camera, or something of the sort, to show that it is technically impossible to identify anything with the data collected by this sensor.

Icon replacement developed by Helpful Places and added to the standard, old icon removed


Deploy to Cloudflare Workers too

Summary
This deploys the docs site to Workers too, available at https://cloudflare-docs.cloudflare-docs.workers.dev/.
Unfortunately, without faffing around with caching the static build and moving it around, I couldn't easily do something like continue-on-error, so left it here. If it's a concern, we can pull it out, no worries.
Things to test are: /api, 404 behavior, _redirects and regular docs browsing experience (e.g. images, styles, fonts, pages, trailing slashes, etc.)

Oh, we want to restrict this to just running on production.

Oh, we want to restrict this to just running on production.

Ah, let me see if I can recall that syntax

Oh, we want to restrict this to just running on production.

Ah, let me see if I can recall that syntax

Heyo @GregBrimble, think I did this correctly by following the GitHub community hack.

Appears to be working

Beautiful, yeah, that looks good, thank you! Whilst I'm here, I've also just opted in to uploading versions on all non-production things too, so that we can test out the preview URLs.


Failed to pull the catalog from git repo https://github.com/rancher/community-catalog.git

RancherOS Version: (ros os version)
1.7.1
Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)
GCE
Hey guys,
I just deployed ROS on GCE using this script: https://github.com/rancher/os-packer
I used
make release
gsutil cp ./rancheros-${RANCHEROS_VERSION}.tar.gz gs://ros-images/

After that I created the image and finally the instance.
Everything worked fine.
But everytime I try to start the rancher

I get this error
049bcd5945e9-docker-machine-driver-packet => /usr/local/bin/docker-machine-driver-packet"
time="2016-11-25T15:42:05Z" level=info msg="Creating schema machine, roles [admin user readAdmin]" id=1ds14
time="2016-11-25T15:42:05Z" level=info msg="Creating schema machine, roles [readonly]" id=1ds15
time="2016-11-25T15:42:05Z" level=info msg="Creating schema packetConfig, roles [service member owner project admin user readAdmin readonly restricted]" id=1ds16
time="2016-11-25T15:42:06Z" level=info msg="Updating machine jsons for  [packet packet amazonec2 azure digitalocean]"
time="2016-11-25T15:42:07Z" level=info msg="Creating schema machine, roles [service]" id=1ds17
time="2016-11-25T15:42:07Z" level=info msg="Creating schema machine, roles [project member owner]" id=1ds18
time="2016-11-25T15:42:07Z" level=info msg="Creating schema machine, roles [admin user readAdmin]" id=1ds19
time="2016-11-25T15:42:08Z" level=info msg="Creating schema machine, roles [readonly]" id=1ds20
time="2016-11-25T15:42:09Z" level=error msg="Failed to pull the catalog from git repo https://github.com/rancher/community-catalog.git, error: exit status 1"
time="2016-11-25T15:42:09Z" level=error msg="Git pull for Catalog community failing with error: exit status 1 "

Anyone got some idea?

The logs indicate that you do't have internet access. Can you access the internet from your instance?

hey,
thanks for your answer.
I have internet access from the docker instance.
I can even do "git clone https://github.com/rancher/community-catalog.git" and it works.
I have no idea what's the reason for this... really frustrating :(

The catalog service literally shells out and executes git clone $url (not exactly that, but logically the same) just like you would.  Did you try it from inside the server container (docker exec -it <id of rancher/server container> bash)?
The catalog wouldn't affect the loading of the UI, what's in the browser dev tools console?

what the hell!
after i started the engine now (terminate and start) everything works :)
thanks anyway @vincent99 and @deniseschannon
I love <3 a fast helping community like this :)


Dowload 404 Error

During the npm run build console throwing error 404
build
• electron-builder version=20.44.4
• loaded configuration file=package.json ("build" field)
• writing effective config file=dist\builder-effective-config.yaml
• no native production dependencies
• packaging       platform=win32 arch=x64 electron=10.0.1-wvvmp appOutDir=dist\win-unpacked
⨯ cannot resolve https://github.com/electron/electron/releases/download/v10.0.1-wvvmp/electron-v10.0.1-wvvmp-win32-x64.zip: status code 404
github.com/develar/app-builder/pkg/download.(*Downloader).follow
/Volumes/data/Documents/app-builder/pkg/download/downloader.go:207
github.com/develar/app-builder/pkg/download.(*Downloader).Download
/Volumes/data/Documents/app-builder/pkg/download/downloader.go:79
github.com/develar/app-builder/pkg/electron.(*ElectronDownloader).doDownload
/Volumes/data/Documents/app-builder/pkg/electron/electronDownloader.go:191
github.com/develar/app-builder/pkg/electron.(*ElectronDownloader).Download
/Volumes/data/Documents/app-builder/pkg/electron/electronDownloader.go:171
github.com/develar/app-builder/pkg/electron.downloadElectron.func1.1
/Volumes/data/Documents/app-builder/pkg/electron/electronDownloader.go:71
github.com/develar/app-builder/pkg/util.MapAsyncConcurrency.func2
/Volumes/data/Documents/app-builder/pkg/util/async.go:67
runtime.goexit
/usr/local/Cellar/go/1.12.6/libexec/src/runtime/asm_amd64.s:1337

You are using electron-builder without specifying a mirror for it to download the Electron for Content Security releases, so it is trying to download them from the wrong place. You'll need to add a build section to your package.json, i.e. something like this:
"build": {
  "electronDownload": {
    "mirror": "https://github.com/castlabs/electron-releases/releases/download/v"
  }
}

Alternatively you can point it to an already downloaded distribution, like the one installed in node_modules by npm:
"build": {
  "electronDist": "node_modules/electron/dist"
}

More information about the available configuration options for electron-builder can be found here.

Thank you for your help.
Have a great day, cheers :)


Update Version for google-cloud-spanner-jdbc

Updated Version of google-cloud-spanner-jdbc includes the lastest version of Google Guava. Necessary due to vulnerability issuses with version 31.

 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.

@Barry-RG  can you trigger the ci pls ?

@jomach we already had this in our pipeline and will be in the next release. Thank you for your PR however.

@Barry-RG , our team is using flyway in our project. Glad to hear that this vulnerability from google guava has been well-awared and mitigated. Is there any schedule about when next release might take place that you can share with us? Thanks in advanced.


Fix Mongodb Error BSON type string to date

and sorting

Previously, I cannot run the V.1 on my local machine because there is an error with aggregating the data from MongoDB.
I know this is obsolete since we are moving to V.2.
But for the sake of completeness, and at least to make V.1 timeline graph works, I created this pull request.

It looks good to me. I approve. Let @MatthiasWiesner have a look as well. After that once its merged, @MatthiasWiesner  can redeploy it on production.


'Cannot read property 'loaded' of undefined' when object is defined

Bugs and feature requests only please.
For help questions, check out the forum: https://groups.google.com/forum/#!forum/tonejs
If possible, please include a link which illustrates the issue.
https://jsfiddle.net/hy762ff0/ (tone@latest)
https://jsfiddle.net/2jusapvr/ (tone@next)

I am loading a float32Array into a buffer, this works fine, however when i attempt to pass this buffer to a player, on the 'onload' i get a Cannot read property 'loaded' of undefined error, when trying to call any methods on the object that passed to the callback. However if i simply console.log the object it isn't undefined, code below:
let buffTemp = new Tone.Buffer().fromArray(float32Temp);
    myPlayer = new Tone.Player({
        'url': buffTemp,
        'loop': true,
        'onload': p => {
            console.log(p); //Player
            console.log(p.loaded) //Cannot read property 'loaded' of undefined
        }
    }).toMaster();

thanks in advanced, Matt

Seems like because the onload callback is invoked before the constructor has finished, it doesn't have all of it's properties. Solution is probably to defer the onload callback if a buffer is passed in instead of a URL.

What would be the most efficient way to defer the callback? I have been using a simple SetTimeout however i have been told to avoid using such functions by many people. Thanks for your reply i really appreciate it.
Matt

I should also note that you don't need the onload callback in your specific case since the Buffer does not need any loading.
const myPlayer = new Tone.Player({
  'buffer': buffTemp,
  'loop': true,
}).toMaster();

//myPlayer can be used at this point.
//no async callback necessary
myPlayer.start()


⚠ gorzdrav.org has degraded performance

In 1a1f8dc, gorzdrav.org (https://gorzdrav.org) experienced degraded performance:

HTTP code: 200
Response time: 2279 ms

Resolved: gorzdrav.org performance has improved in 6a2cdf5.


System number input buttons are visible in Firefox on Ubuntu

Hi.

I believe the system buttons should not be visible. Looks like a missing CSS rule to me, or is it intentional?

Could You provide an explanation why You decided to close this issue?

Ok, sorry, I see You pushed a commit to fix it, thank You. Unfortunately in the demo the those buttons are still visible.

This change does not release yet.

Ok, I understand, thank You. As it seems already released I confirm that it works correctly. Thank You again!


Merak Topology

Ready for review

@zzengcs You have two conflict, please remove the modification for these two files.


Add link to mozilla addons

Closes #3 .

Thanks for the PR!
But would like to retain the old instructions as well!
Made the necessary changes on my side.


Fix typo in Shape.repr

Without this fix repr returns something like start: (x: 0, y: 0, z: 0) end:(x: 1, y: 0, z: -0.9} - note the curly bracket at the end

I have read the CLA Document and I hereby sign the CLA

Thanks!


Generated CBOM always empty

Hi,
I have tried with different java applications, using the SonarQube plugin, the CBOM is generated but always with the following output :
{
"bomFormat" : "CycloneDX",
"specVersion" : "1.6",
"serialNumber" : "urn:uuid:303cb601-1ab3-4f38-8be5-803550e2e0c6",
"version" : 1,
"metadata" : {
"timestamp" : "2024-08-21T12:42:22Z",
"tools" : {
"services" : [
{
"provider" : {
"name" : "IBM"
},
"name" : "Sonar Cryptography Plugin",
"version" : "1.2.0"
}
]
}
},
"dependencies" : [ ]
}
I suspected first that it found nothing in my code so I added the following :
MessageDigest md = null;
try {
md = MessageDigest.getInstance("SHA-256");
} catch (NoSuchAlgorithmException e) {
throw new RuntimeException(e);
}
As In the CBOM viewer example it should have picked this.
Maybe I'm missing something

Hi @wlargou, indeed the example you provided should be detected by our scanner.

What is your SonarQube version? Currently, a change in recent SonarQube versions (10.5.0 and above) prevents our plugin to report any findings, which at first glance sounds like the problem you have.
Otherwise, did you make sure to activate our inventory rule in your quality profile, and to use this quality profile for your scan?

If you known that the problem does not come from these two points, could please try to scan this sample repo, and let me known if you still don't see any results?

Indeed i'm using latest version <IP_ADDRESS>116. As for the activation, it happened differently i guess new with this version, i only dropped the jar and restarted, and in the homescreen it said if i want to install the plugin. (There is no activate button i think in newer versions)

I have just tried with 10.4 same behavior. For the sample repo it doesn't build :
gpg: no default secret key: No secret key
gpg: signing failed: No secret key
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping client-encryption
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  4.309 s
[INFO] Finished at: 2024-08-21T20:06:29Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:3.1.0:sign (sign-artifacts) on project client-encryption: Exit code: 2 -> [Help 1]
I think i need to get certificate from mastercard developer first.
What's the versions of SonarQube you have tested with ? Or is there any other simple sample i can test.
Thank you for the help

I see that you have updated the docker-compose to point specifically to 10.4, do you have any other sample I can test. I have tested all the versions (nearly) down to 9.9 (which is the minimal supported by the plugin).
Thank you

I have tried created a brand new project :
Java : openjdk version "21.0.3"
Maven : Apache Maven 3.9.6
SonarVersion : <IP_ADDRESS>647
Plugin :

Here is the code I have :
public class CryptoApplication {
public static void main(String[] args) throws NoSuchAlgorithmException {

	MessageDigest md = null;
    try {
        md = MessageDigest.getInstance("SHA-256");
    } catch (NoSuchAlgorithmException e) {
        throw new RuntimeException(e);
    }
	System.out.println("Lenght : " + md.getAlgorithm().length() + "Algorithm :" + getKeyFactory("ECDSA").toString());
	SpringApplication.run(CryptoApplication.class, args);

}

public static KeyFactory getKeyFactory(String algorithm) throws NoSuchAlgorithmException {
	if("ECDSA".equals(algorithm)) {
		// ECDSA is not a listed JavaSE KeyFactory algorithm
		// see https://docs.oracle.com/en/java/javase/11/docs/specs/security/standard-names.html#cipher-algorithm-names
		algorithm = "EC";
	}
	return KeyFactory.getInstance(algorithm);
}

public static byte[] computeArtifactBindingIdentifier(String identifierFrom) {
	try {
		MessageDigest sha1Digester = MessageDigest.getInstance("SHA-1");
		return sha1Digester.digest(identifierFrom.getBytes(StandardCharsets.UTF_8));
	} catch (NoSuchAlgorithmException e) {
		throw new RuntimeException("JVM does not support required cryptography algorithms: SHA-1/SHA1PRNG.", e);
	}
}

}
And here is a command to scan with sonar :
mvn clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:<IP_ADDRESS>21:sonar
-Dsonar.projectKey=Test4
-Dsonar.projectName='Test4'
-Dsonar.host.url=http://:9000
-Dsonar.token=
Here is the logs :
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------------< com.example:crypto >-------------------------
[INFO] Building crypto 0.0.1-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- clean:3.3.2:clean (default-clean) @ crypto ---
[INFO] Deleting /Users/largouwalid/Downloads/crypto/target
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ crypto ---
[INFO] Copying 1 resource from src/main/resources to target/classes
[INFO] Copying 0 resource from src/main/resources to target/classes
[INFO]
[INFO] --- compiler:3.13.0:compile (default-compile) @ crypto ---
[INFO] Recompiling the module because of changed source code.
[INFO] Compiling 1 source file with javac [debug parameters release 17] to target/classes
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ crypto ---
[INFO] skip non existing resourceDirectory /Users/largouwalid/Downloads/crypto/src/test/resources
[INFO]
[INFO] --- compiler:3.13.0:testCompile (default-testCompile) @ crypto ---
[INFO] Recompiling the module because of changed dependency.
[INFO] Compiling 1 source file with javac [debug parameters release 17] to target/test-classes
[INFO]
[INFO] --- surefire:3.2.5:test (default-test) @ crypto ---
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[INFO]
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.example.crypto.CryptoApplicationTests
12:46:08.634 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [com.example.crypto.CryptoApplicationTests]: CryptoApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
12:46:08.694 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper -- Found @SpringBootConfiguration com.example.crypto.CryptoApplication for test class com.example.crypto.CryptoApplicationTests
.   ____          _            __ _ _
/\ / ' __ _ () __  __ _ \ \ \
( ( )__ | '_ | '| | ' / ` | \ \ \
\/  )| |)| | | | | || (| |  ) ) ) )
'  || .__|| ||| |_, | / / / /
=========||==============|/=////
:: Spring Boot ::                (v3.3.2)
2024-08-22T12:46:08.950+01:00  INFO 41734 --- [crypto] [           main] c.example.crypto.CryptoApplicationTests  : Starting CryptoApplicationTests using Java 21.0.3 with PID 41734 (started by largouwalid in /Users/largouwalid/Downloads/crypto)
2024-08-22T12:46:08.951+01:00  INFO 41734 --- [crypto] [           main] c.example.crypto.CryptoApplicationTests  : No active profile set, falling back to 1 default profile: "default"
2024-08-22T12:46:09.265+01:00  INFO 41734 --- [crypto] [           main] c.example.crypto.CryptoApplicationTests  : Started CryptoApplicationTests in 0.489 seconds (process running for 1.064)
WARNING: A JVM TI agent has been loaded dynamically (/Users/largouwalid/.m2/repository/net/bytebuddy/byte-buddy-agent/1.14.18/byte-buddy-agent-1.14.18.jar=)
WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
WARNING: Dynamic loading of agents will be disallowed by default in a future release
WARNING: A Java agent has been loaded dynamically (/Users/largouwalid/.m2/repository/net/bytebuddy/byte-buddy-agent/1.14.18/byte-buddy-agent-1.14.18.jar)
WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning
WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information
WARNING: Dynamic loading of agents will be disallowed by default in a future release
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.760 s -- in com.example.crypto.CryptoApplicationTests
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO]
[INFO] --- jar:3.4.2:jar (default-jar) @ crypto ---
[INFO] Building jar: /Users/largouwalid/Downloads/crypto/target/crypto-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- spring-boot:3.3.2:repackage (repackage) @ crypto ---
[INFO] Replacing main artifact /Users/largouwalid/Downloads/crypto/target/crypto-0.0.1-SNAPSHOT.jar with repackaged archive, adding nested dependencies in BOOT-INF/.
[INFO] The original artifact has been renamed to /Users/largouwalid/Downloads/crypto/target/crypto-0.0.1-SNAPSHOT.jar.original
[INFO]
[INFO] -------------------------< com.example:crypto >-------------------------
[INFO] Building crypto 0.0.1-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- sonar:<IP_ADDRESS>21:sonar (default-cli) @ crypto ---
[INFO] 12:46:10.746 Java 21.0.3 Eclipse OpenJ9 (64-bit)
[INFO] 12:46:10.746 Mac OS X 14.1 (aarch64)
[INFO] 12:46:10.821 User cache: /Users/largouwalid/.sonar/cache
[INFO] 12:46:11.076 Communicating with SonarQube Server <IP_ADDRESS>647
[INFO] 12:46:11.084 Default locale: "en_US", source code encoding: "UTF-8"
[INFO] 12:46:11.387 Load global settings
[INFO] 12:46:11.646 Load global settings (done) | time=260ms
[INFO] 12:46:11.647 Server id: 243B8A4D-AZF2r7nQLZP9mRSQKJly
[INFO] 12:46:11.650 User cache: /Users/largouwalid/.sonar/cache
[INFO] 12:46:11.653 Load/download plugins
[INFO] 12:46:11.653 Load plugins index
[INFO] 12:46:11.781 Load plugins index (done) | time=128ms
[INFO] 12:46:11.845 Load/download plugins (done) | time=192ms
[INFO] 12:46:11.993 Sonar Cryptography initialized in context (SONARQUBE)
[INFO] 12:46:12.217 Process project properties
[INFO] 12:46:12.222 Process project properties (done) | time=5ms
[INFO] 12:46:12.224 Execute project builders
[INFO] 12:46:12.225 Execute project builders (done) | time=1ms
[INFO] 12:46:12.230 Project key: Test4
[INFO] 12:46:12.230 Base dir: /Users/largouwalid/Downloads/crypto
[INFO] 12:46:12.230 Working dir: /Users/largouwalid/Downloads/crypto/target/sonar
[INFO] 12:46:12.234 Load project settings for component key: 'Test4'
[INFO] 12:46:12.341 Load project settings for component key: 'Test4' (done) | time=107ms
[WARNING] 12:46:12.446 SCM provider autodetection failed. Please use "sonar.scm.provider" to define SCM of your project, or disable the SCM Sensor in the project settings.
[INFO] 12:46:12.451 Load quality profiles
[INFO] 12:46:12.584 Load quality profiles (done) | time=133ms
[INFO] 12:46:12.591 Load active rules
[INFO] 12:46:16.469 Load active rules (done) | time=3878ms
[INFO] 12:46:16.473 Load analysis cache
[INFO] 12:46:16.578 Load analysis cache (198 bytes) | time=105ms
[INFO] 12:46:16.619 Load project repositories
[INFO] 12:46:16.723 Load project repositories (done) | time=104ms
[INFO] 12:46:16.748 Indexing files...
[INFO] 12:46:16.748 Project configuration:
[INFO] 12:46:16.763 3 files indexed
[INFO] 12:46:16.764 Quality profile for java: Sonar way
[INFO] 12:46:16.764 Quality profile for xml: Sonar way
[INFO] 12:46:16.764 ------------- Run sensors on module Test4
[INFO] 12:46:16.767 Sonar Cryptography initialized in context (SONARQUBE)
[INFO] 12:46:16.839 Load metrics repository
[INFO] 12:46:16.945 Load metrics repository (done) | time=106ms
[INFO] 12:46:17.947 Sensor JavaSensor [java]
[INFO] 12:46:17.950 Configured Java source version (sonar.java.source): 17, preview features enabled (sonar.java.enablePreview): false
[INFO] 12:46:17.968 Server-side caching is enabled. The Java analyzer will not try to leverage data from a previous analysis.
[INFO] 12:46:17.969 Using ECJ batch to parse 1 Main java source files with batch size 214 KB.
[INFO] 12:46:18.156 Starting batch processing.
[INFO] 12:46:18.492 The Java analyzer cannot skip unchanged files in this context. A full analysis is performed for all files.
[INFO] 12:46:18.712 100% analyzed
[INFO] 12:46:18.712 Batch processing: Done.
[INFO] 12:46:18.712 Did not optimize analysis for any files, performed a full analysis for all 1 files.
[INFO] 12:46:18.713 Using ECJ batch to parse 1 Test java source files with batch size 214 KB.
[INFO] 12:46:18.715 Starting batch processing.
[INFO] 12:46:18.752 100% analyzed
[INFO] 12:46:18.752 Batch processing: Done.
[INFO] 12:46:18.752 Did not optimize analysis for any files, performed a full analysis for all 1 files.
[INFO] 12:46:18.752 No "Generated" source files to scan.
[INFO] 12:46:18.753 Sensor JavaSensor [java] (done) | time=805ms
[INFO] 12:46:18.753 Sensor JaCoCo XML Report Importer [jacoco]
[INFO] 12:46:18.753 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
[INFO] 12:46:18.754 No report imported, no coverage information will be imported by JaCoCo XML Report Importer
[INFO] 12:46:18.754 Sensor JaCoCo XML Report Importer [jacoco] (done) | time=1ms
[INFO] 12:46:18.754 Sensor CSS Rules [javascript]
[INFO] 12:46:18.754 No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
[INFO] 12:46:18.754 Sensor CSS Rules [javascript] (done) | time=0ms
[INFO] 12:46:18.754 Sensor C# Project Type Information [csharp]
[INFO] 12:46:18.754 Sensor C# Project Type Information [csharp] (done) | time=0ms
[INFO] 12:46:18.754 Sensor C# Analysis Log [csharp]
[INFO] 12:46:18.763 Sensor C# Analysis Log [csharp] (done) | time=9ms
[INFO] 12:46:18.763 Sensor C# Properties [csharp]
[INFO] 12:46:18.763 Sensor C# Properties [csharp] (done) | time=0ms
[INFO] 12:46:18.763 Sensor SurefireSensor [java]
[INFO] 12:46:18.764 parsing [/Users/largouwalid/Downloads/crypto/target/surefire-reports]
[INFO] 12:46:18.801 Sensor SurefireSensor [java] (done) | time=38ms
[INFO] 12:46:18.802 Sensor HTML [web]
[INFO] 12:46:18.803 Sensor HTML [web] (done) | time=1ms
[INFO] 12:46:18.803 Sensor XML Sensor [xml]
[INFO] 12:46:18.808 1 source file to be analyzed
[INFO] 12:46:18.894 1/1 source file has been analyzed
[INFO] 12:46:18.894 Sensor XML Sensor [xml] (done) | time=91ms
[INFO] 12:46:18.894 Sensor TextAndSecretsSensor [text]
[INFO] 12:46:19.111 3 source files to be analyzed
[INFO] 12:46:19.117 3/3 source files have been analyzed
[INFO] 12:46:19.117 Sensor TextAndSecretsSensor [text] (done) | time=223ms
[INFO] 12:46:19.117 Sensor VB.NET Project Type Information [vbnet]
[INFO] 12:46:19.118 Sensor VB.NET Project Type Information [vbnet] (done) | time=1ms
[INFO] 12:46:19.118 Sensor VB.NET Analysis Log [vbnet]
[INFO] 12:46:19.127 Sensor VB.NET Analysis Log [vbnet] (done) | time=9ms
[INFO] 12:46:19.127 Sensor VB.NET Properties [vbnet]
[INFO] 12:46:19.127 Sensor VB.NET Properties [vbnet] (done) | time=0ms
[INFO] 12:46:19.127 Sensor IaC Docker Sensor [iac]
[INFO] 12:46:19.129 0 source files to be analyzed
[INFO] 12:46:19.174 0/0 source files have been analyzed
[INFO] 12:46:19.174 Sensor IaC Docker Sensor [iac] (done) | time=47ms
[INFO] 12:46:19.176 ------------- Run sensors on project
[INFO] 12:46:19.211 Sensor Analysis Warnings import [csharp]
[INFO] 12:46:19.212 Sensor Analysis Warnings import [csharp] (done) | time=1ms
[INFO] 12:46:19.212 Sensor Zero Coverage Sensor
[INFO] 12:46:19.215 Sensor Zero Coverage Sensor (done) | time=3ms
[INFO] 12:46:19.215 Sensor Java CPD Block Indexer
[INFO] 12:46:19.225 Sensor Java CPD Block Indexer (done) | time=10ms
[INFO] 12:46:19.227 SCM Publisher No SCM system was detected. You can use the 'sonar.scm.provider' property to explicitly specify it.
[INFO] 12:46:19.228 CPD Executor Calculating CPD for 1 file
[INFO] 12:46:19.231 CPD Executor CPD calculation finished (done) | time=3ms
[INFO] 12:46:19.290 Analysis report generated in 55ms, dir size=147.3 kB
[INFO] 12:46:19.302 Analysis report compressed in 12ms, zip size=22.3 kB
[INFO] 12:46:19.436 Analysis report uploaded in 133ms
[INFO] 12:46:19.437 ANALYSIS SUCCESSFUL, you can find the results at: http://<IP_ADDRESS>:9000/dashboard?id=Test4
[INFO] 12:46:19.437 Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
[INFO] 12:46:19.437 More about the report processing at http://<IP_ADDRESS>:9000/api/ce/task?id=AZF56LVELZP9mRSQKXKx
[INFO] 12:46:19.440 Executing post-job 'Output generation'
[INFO] 12:46:19.605 CBOM was successfully generated 'cbom.json'.
[INFO] 12:46:19.612 Analysis total time: 7.684 s
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  13.194 s
[INFO] Finished at: 2024-08-22T12:46:19+01:00
[INFO] ------------------------------------------------------------------------
And finally the generated CBOM :
{
"bomFormat" : "CycloneDX",
"specVersion" : "1.6",
"serialNumber" : "urn:uuid:227e449d-444a-4dd7-b5e3-3580f576ec62",
"version" : 1,
"metadata" : {
"timestamp" : "2024-08-22T11:46:19Z",
"tools" : {
"services" : [
{
"provider" : {
"name" : "IBM"
},
"name" : "Sonar Cryptography Plugin",
"version" : "1.2.0"
}
]
}
},
"dependencies" : [ ]
}

Finally found the issue, so the plugin is not activated by default on default Java Quality Profile, so here are the steps I followed for future reference (or maybe add to the docs) :
1 - Create a copy of the Java Profile (since you cannot activate the plugin on the default one)

2 - Provide a name :

3 - Go to Rule Breakdown -> Software Qualities -> Maintainability and click on the inactive (135 in this case) :

4 - Search for Rule Crypto and activate :

5 - Go to your project and for Settings choose Quality Profiles :

6 - Either add language or edit exiting one for Java to use the new Profile :

7 - Rerun the scan

@wlargou Yes, happy that it works for you now! I am writing a more detailed guide including these instructions which will be added to the repo soon, so it can help others :)


Proposals: Restructure Sources + API Considerations

Right now everything is in one file, and it is almost impossible to keep track of where stuff is.
Futhermore there seems to be some discrepancies between what you can do with data and what you can do with dictionary.
It would maybe also make sense to allow people to easily get an UnboxableDictionary from Data. I think right now the API is very confusing if you have data that you haven't mapped, and a lot of nice functions for going from data to dictionary are private. Maybe for good reason? But it is quite confusing how you'd handle data, if your model is not in the root of the data.
Maybe the API for Data just needs to be extended to allow for more use cases.
Maybe most of these issues are handled by the API, but the reading the API from source is very confusing to say the least. I guess #160 will help on discoverability, but else it could maybe make sense to store it in an Unbox struct.
I am fairly new to the framework, and I've mostly been using Marshal, so maybe I just need to get used to a different way of thinking.

I just realized that my issues with data can be handled by simply creating an Unboxer giving it my data, and then unboxing the properties like I do in models.
So:
let unboxer = try Unboxer(data: myData)
let model: Model = try unboxer.unbox(key: "model1")

I guess I should've realized this sooner. This will at least make a lot of my Marshal cases easier to translate.

Hi @bjarkehs!
Sorry for taking so long to reply to this. Your suggestions are really good - I've been going back and forth on the pros & cons of having everything in one file. What made me still keep everything in one file for the longest time was for ease of use in scripts & command line tools - but since we now have the Swift Package Manger (Unbox was originally written for Swift 1 😅) and Marathon - this is no longer a concern.
So, I've started by splitting up everything into multiple files tonight. I think most of your other concerns will be addressed by the upcoming Unbox 3.0 release, which I'm starting work on now 🙂


Alignment of Brandname in Dark Mode

I think this is the problem with dark mode svg spacing
https://github.com/ninja-developers/Tech_Phantoms_website/blob/master/src/assets/DarkMode_techphantoms.svg

@imabp can I take it?

It was minor issue @Tomekmularczyk , and has been resolved now. You can take a look on other issues like #39


Vue 3 with TypeScript and

Documentation clarification:
If using Vue 3 with TypeScript and

Thanks @linosteenkamp.
Very nice and clean example.
Can I "prevent" in one way or another that the event is being fired ?
PS.: using "event.stopPropagation" in the onClickAway() function is not working...


feat: add 'pandas' pip install

This commit adds the pip install of the pandas package. This allows users to use more recent versions for their distro than those available through system packages. This pull request is closely related to https://github.com/ros/rosdistro/pull/38242.

Please add the following dependency to the rosdep database.
Package name:
Pip version of pandas.
Package Upstream Source:
https://github.com/pandas-dev/pandas
Purpose of using this:
This dependency is needed because other items that are available in the rosdep/python.yaml
file which does not have a system package available throws errors when the system pandas package is installed. When for example, NumPy is installed through pip (see https://github.com/ros/rosdistro/pull/38242) it requires pandas>=1.1.0" since the older version of pandas expects the np.bool` to be not deprecated (see https://github.com/brightway-lca/brightway2/issues/64).
Checks

[x] All packages have a declared license in the package.xml
[x] This repository has a LICENSE file
[x] This package is expected to build on the submitted rosdistro

It looks like the error is caused by the already present python-pandas rule and not the new python-pandas-pip rule.

There's a discussion to be had here around dropping Python 2 package rules that are no longer valid in Ubuntu. We did it for Fedora, but the scope of work is larger for Ubuntu.
I believe that the policy previously employed was that a package for which we never expect to be a system package is allowed to get a pip rule under a non-pip-exclusive key. Since the Python 2 package was explicitly dropped, I think it's safe to say that we don't expect it to appear in future Ubuntu releases, and qualifies for dual-installer listing here.

Sorry, we don't allow using pip rules when they will override the apt rules.

Ah, I see, because when multiple ROS packages have the python3-numpy dependency, and one box has the python3-numpy-pip dependency, the latter will get installed while the ROS packages that require python3-numpy expect a lower python version and will break. That makes sense 👍🏻.
I created this pull request because the Gymnasium package, which I added in https://github.com/ros/rosdistro/pull/37334 expects the numpy.typing module to be present. As Numpy 1.17.4 is installed on Ubuntu 20.04 when using the system package, the gymnasium-pip install will not be working as expected, and the following error will be thrown when trying to use the gymnasium package:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.8/dist-packages/gymnasium/__init__.py", line 4, in <module>
    from gymnasium.core import (
  File "/usr/local/lib/python3.8/dist-packages/gymnasium/core.py", line 9, in <module>
    from gymnasium import spaces
  File "/usr/local/lib/python3.8/dist-packages/gymnasium/spaces/__init__.py", line 13, in <module>
    from gymnasium.spaces.box import Box
  File "/usr/local/lib/python3.8/dist-packages/gymnasium/spaces/box.py", line 7, in <module>
    from numpy.typing import NDArray
ModuleNotFoundError: No module named 'numpy.typing'

To fix this, I created https://github.com/ros/rosdistro/pull/38242, which required https://github.com/ros/rosdistro/pull/38243 to be created because the np.bool type is appreciated in numpy>1.20.
Based on what you said, we can close both https://github.com/ros/rosdistro/pull/38242 and https://github.com/ros/rosdistro/pull/38243.
@tfoote, what would be the best way to handle this conflict on Ubuntu20.04 when using Gymnasium?

Remove the Gymnasium key added in https://github.com/ros/rosdistro/pull/37334. People can then create a note in their documentation that Gymnasium should be installed using pip?
Leaving the Gymnasium key in our index and accepting that people can run into issues on Ubuntu-20.04? Is there a way to prevent a key from being used on a given distribution?
Request a new release of numpy and pandas for Ubuntu 20.04. I guess this is a lot of work for a slight edge case which can be solved by installing the Python packages using pip in a virtual environment 😅 .

TLDNR: Gymnasium requires numpy>1.20.1 -> if pip is used numpy>1.24 is installed -> this numpy version requires pandas>1.1.0.

Also affects https://github.com/ros/rosdistro/pull/38244.

There's a discussion to be had here around dropping Python 2 package rules that are no longer valid in Ubuntu. We did it for Fedora, but the scope of work is larger for Ubuntu.
I believe that the policy previously employed was that a package for which we never expect to be a system package is allowed to get a pip rule under a non-pip-exclusive key. Since the Python 2 package was explicitly dropped, I think it's safe to say that we don't expect it to appear in future Ubuntu releases, and qualifies for dual-installer listing here.

@cottsay, thanks for your comment 😄. I'm not f I understand it correctly, but you say that in this case, a pip rule under a non-pip rule would be allowed since the python2.7 version of pandas (i.e. python-pandas) is no longer released?

The python2 comment is related to simply dropping the nearby python-pandas key. The pip rules pick up the default version so since python3 is the now the default version of python all pip rules are in herently python3. Ad so should use the python3- prefix now to help detect conflicts.
But that aside I would suggest that you setup a custom rules for your repository and move all three of these rules, numpy, pandas, gymnasium into there instead of trying to make them generic enough for the public usage. In your documentation you should be clear about how they will override your system versions and include how to clear them if people aren't aware of or don't want the side effects.
And then just add to your documentation to add your rules to their rosdep sources when using your repository/packages.

The python2 comment is related to simply dropping the nearby python-pandas key. The pip rules pick up the default version so since python3 is the now the default version of python all pip rules are in herently python3. Ad so should use the python3- prefix now to help detect conflicts.
But that aside I would suggest that you setup a custom rules for your repository and move all three of these rules, numpy, pandas, gymnasium into there instead of trying to make them generic enough for the public usage. In your documentation you should be clear about how they will override your system versions and include how to clear them if people aren't aware of or don't want the side effects.
And then just add to your documentation to add your rules to their rosdep sources when using your repository/packages.

That makes sense. Thanks for the explanation 🙏🏻!
I quickly created an issue if people run into problems regarding the gymnasium-pip rosdep rule (see https://github.com/ros/rosdistro/issues/38332). Let's close this and https://github.com/ros/rosdistro/pull/38242 for now 👍🏻.


Change project site header from AB-3 to UniNurse

Closes #56.

Codecov Report
Base: 72.15% // Head: 72.15% // No change to project coverage :thumbsup:

Coverage data is based on head (51b7fea) compared to base (28b9ca6).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##             master      #86   +/-   ##
=========================================
  Coverage     72.15%   72.15%
  Complexity      399      399
=========================================
  Files            70       70
  Lines          1232     1232
  Branches        125      125
=========================================
  Hits            889      889
  Misses          311      311
  Partials         32       32

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

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

Previous commit does not change the header, now fixed. Additionally, changed the Github logo link at header to the this repository.


fix: dont emit deprecations for production environments, fixes #5668

1. Why is this change necessary?
Memory Limit is full due too many deprecations are fired in production.
2. What does this change do, exactly?
When APP_ENV=prod, don't emit any deprecations
3. Describe each step to reproduce the issue or behaviour.
4. Please link to the relevant issues (if any).
5. Checklist

[ ] I have rebased my changes to remove merge conflicts
[ ] I have written tests and verified that they fail without my change
[ ] I have created a changelog file with all necessary information about my changes
[ ] I have written or adjusted the documentation according to my changes
[ ] This change has comments for package types, values, functions, and non-obvious lines of code
[ ] I have read the contribution requirements and fulfill them.

@shyim is there a reason we did not do this before? Eg maybe you want to see deprecations for ext you install via the store or something? I am in favour of change but just curious if it was on purpose.

I don't think there was a no purpose, just assumed trigger_deprecation does nothing on prod :)


Adding Counter For Member In Community

I'm submitting a ...

[ ] bug report
[x] feature request

Description :

Adding a countdown which counts total number of members in community of fossasia and dispalys the same in button of join.
Current behaviour:

Simple Join button is present.
Expected behaviour:

It will become more interactive.
Would you like to work on the issue?
Yes

Can i start working?

Can i start working @0x48piraj ?

Yes!

If this issue is available, I would like to take it up. Lmk @0x48piraj @helios1101

Yes, you can take it.

@0x48piraj A few queries: 1) Where are we supposed to show the number of members, on the Join button itself or on the page it navigates to? 2) Where will I find the count of the number of members in fossasia?


seneca-mesh install fails at node-gyp rebuid

i have the latest build of npm and node.js installed but i get the following error.

<EMAIL_ADDRESS>install /root/Desktop/node progs/node_modules/farmhash
node-gyp rebuild

gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: tunneling socket could not be established, cause=connect ETIMEDOUT <IP_ADDRESS>:6050
gyp ERR! stack     at ClientRequest.onError (/usr/local/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js:176:17)
gyp ERR! stack     at ClientRequest.g (events.js:260:16)
gyp ERR! stack     at emitOne (events.js:77:13)
gyp ERR! stack     at ClientRequest.emit (events.js:169:7)
gyp ERR! stack     at Socket.socketErrorListener (_http_client.js:269:9)
npm ERR<EMAIL_ADDRESS>install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the farmhash package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild

No worries.Got it installed in the root directory and it works fine.

Can you please elaborate on that? I am having a similar issue...


Your installation method requires way too many privileges

I am a cluster-admin, and so I did not create a special user with cluster-admin privileges, or anyuid, or scc, etc.  A normal app that we deploy in our environment should not have these privileges.
From your new-app command:
* WARNING: Image "jfrog-int-docker-open-docker.bintray.io/artifactory-pro/openshift:5.2.1.pro" runs as the 'root' user which may not be permitted by your cluster administrator

If this is intended to run on openshift, you really should make a few changes.

Privileges on files should have Other level access (755 for ro/execute and 777 for write)
Set a UID (this doesn't totally matter, but really its good to use an ID thats not root). And create this user in the bocker build, not in the entrypoint.sh

In os.sh one of the steps is
oc adm policy add-scc-to-group anyuid system:authenticated
Which grants anyuid to any user that has authenticated on the system.
So the container starting account (the service account) has now been granted the “anyuid” capability which means it can start as root and therefore perform chown/chmod and other root level commands. Of course, I would much rather that the container was changed to be able to run without requiring root permissions, but I am trying to run a pre-packaged image here. source
Whether I add the rest of the permissions or not this is what I get when I start the app:
=====================================
2017-05-11 21:07:46   [41 entrypoint-artifactory.sh] Checking open files and processes limits
2017-05-11 21:07:46   [44 entrypoint-artifactory.sh] Current max open files is 1048576
2017-05-11 21:07:46   [56 entrypoint-artifactory.sh] Current max open processes is 1048576
2017-05-11 21:07:46   [66 entrypoint-artifactory.sh] Checking if /var/opt/jfrog/artifactory is mounted
2017-05-11 21:07:46   [71 entrypoint-artifactory.sh] /var/opt/jfrog/artifactory is mounted
2017-05-11 21:07:46   [77 entrypoint-artifactory.sh] Setting up data directories if missing
2017-05-11 21:07:46   [87 entrypoint-artifactory.sh] Create artifactory user if missing
2017-05-11 21:07:46   [90 entrypoint-artifactory.sh] User does not exist. Creating it...
useradd: Permission denied.
useradd: cannot lock /etc/passwd; try again later.
2017-05-11 21:07:46   [31 entrypoint-artifactory.sh] ERROR: Failed creating user artifactory

This is an ephemeral demo which requires these dependencies as there are a lot of variants of RedHat Openshift like OCP, Openshift dedicated and other offerings. The idea is to just give a glimpse into how artifactory runs inside openshift and not to be used for production environment openshift installations.


Permissive Multi naming

resolves: #1505
also see earlier discussion on closed PR: #1506

@michalmuskala: We want to allow ANY term for a name, yes? Also I could use some guidance on where best to update the documentation.

Yes, I think we shouldn't impose any requirements at that point.

@michalmuskala -- alright then -- gonna strip it down and keep it simple. Let me know if we're missing anything.

Thank you! ❤


Add support for request-received middleware

The request-received middleware at https://github.com/cabinjs/request-received exposes a Symbol.for property, which this package could conditionally consume if interested (as opposed to just generating process.hrtime().
e.g. https://github.com/expressjs/response-time/blob/master/index.js#L53 would change from var startAt = process.hrtime() to var startAt = req[Symbol.for('request-received.startAt')] ? req[Symbol.for('request-received.startAt')] : process.hrtime()

@dougwilson see #20

Note that Symbol is not supported in v0.8 and v0.10, therefore I have changed engine and .travis.yml to support v0.12.0+

Note that I am open to moving request-received to expressjs organization if need be.

And/or if we could add these two Symbols internally to Express automatically?


What is its performance in high concurrency mode

What is its performance in high concurrency mode

@aadog , sorry I don't understand. What do you mean by high-concurrency mode?

Do it means when there are lots of Transpilers running ?
Or maybe when many requests are hitting the server ?

I haven't had time to do much benchmarking, but Bud should be quite competitive. On the request/response path, it's not doing much more than what a stock Go web server does. The only thing that is somewhat slow is the V8 rendering, but that will be optional in an upcoming release.


Freeplay is broken in 1.4

Please check for duplicates or similar issues, as well performing simple troubleshooting steps (such as clearing cookies, clearing AppData, trying another browser) before submitting an issue.
If you are playing a downloaded version of the game, what operating system are you using?
Windows 10 Home Edition (64-bit)
What version of the game are you using? Look in the bottom left corner of the main menu.
KadeEngine 1.4. Game version 2.7.1
Have you identified any steps to reproduce the bug? If so, please describe them below. Use images if possible.
i tried redownloading KadeEngine and restarting the game nothing worked
(https://user-images.githubusercontent.com/81839175/113480288-95bf1a80-9461-11eb-83ab-bcb00109b546.PNG)
Please describe your issue. Provide extensive detail and images if possible.
(https://user-images.githubusercontent.com/81839175/113480288-95bf1a80-9461-11eb-83ab-bcb00109b546.PNG)
freeplay menu shows tutorial only

Huh

?

i downloaded it again, seems to work

it's not


Tabview "ScrollEnabled" not working

<TabBar
{...props}
  indicatorStyle={styles.indicator}
  style={styles.tabbar}
  renderLabel={this.renderLabel}
  renderIcon={this._renderIcon}
  scrollEnabled ={false}

/>

No update on this? Setting scrollEnabled to false has no effect.

Hey, I just released a new alpha 2.0.0-alpha.0 of the library. It's rewritten using react-native-gesture-handler and react-native-reanimated addresses a many platform specific bugs and performance problems. The documentation is updated as well.
Please try the new version and see if it addresses your issue. If not, please open a new issue following the issue template.