Various improvements on handling side cases

Better handle timing out while in queue
Prevent lost queue items due to Jenkins garbage collection
Handle failed triggers such as disabled jobs
Prevent waiting for cancelled queue items to start

Signed-off-by: Chris Yan<EMAIL_ADDRESS>

@CyanDevs Do you want the jenkins operator image to be a part of your docker image work or should I own it?

Apologies in advance if I'm misunderstanding you. This question seems a little off topic for the pull request at hand, so instead let's discuss that as part of the docker image work.

@CyanDevs Do you want the jenkins operator image to be a part of your docker image work or should I own it?

Apologies in advance if I'm misunderstanding you. This question seems a little off topic for the pull request at hand, so instead let's discuss that as part of the docker image work.

@CyanDevs to test this script works we would need to upload it to the docker repository. It is not off topic as there is no evidence within this pull request that the changes do work.

@CyanDevs to test this script works we would need to upload it to the docker repository. It is not off topic as there is no evidence within this pull request that the changes do work.

@CyanDevs I believe there is some context being missed here. The only way we currently have to test the script is to manually build the image that uses this script and upload it. It's why the ownership question comes up. Because I can go ahead, build it and upload it and pray or you can. Alternatively we should add a unit test in.
I suppose that since this isn't live we can go with the push and pray approach though.. but today would be the last day for that. Is there any additional changes you can think of within or outside of this PR?

@CyanDevs I believe there is some context being missed here. The only way we currently have to test the script is to manually build the image that uses this script and upload it. It's why the ownership question comes up. Because I can go ahead, build it and upload it and pray or you can. Alternatively we should add a unit test in.
I suppose that since this isn't live we can go with the push and pray approach though.. but today would be the last day for that. Is there any additional changes you can think of within or outside of this PR?

Thank you for the clarification. I would be happy to share the responsibility in generating the Docker image if you could show me how.
As for evidence, we don't have any tests set up yet so there is not immediately available evidence of function. Instead, I've been running my changes manually by triggering a job on Jenkins using the API credentials for the job here: https://openenclave-jenkins.eastus.cloudapp.azure.com/job/openenclave-mbedtls/job/Rhel8BuildClang-8/
Here is a quick build log using this exact PR's script for openenclave-mbedtls/ping which relates to https://openenclave-jenkins.eastus.cloudapp.azure.com/job/openenclave-mbedtls/job/ping/106/
Fetching: https://openenclave-jenkins.eastus.cloudapp.azure.com/crumbIssuer/api/json
Triggering a build via POST @ https://openenclave-jenkins.eastus.cloudapp.azure.com/job/openenclave-mbedtls/job/ping/buildWithParameters
Build is queued @ https://openenclave-jenkins.eastus.cloudapp.azure.com/queue/item/6910/api/json
Checking job status at https://openenclave-jenkins.eastus.cloudapp.azure.com/queue/item/6910/api/json (#1/17)
Sleeping for 0.55s...
Checking job status at https://openenclave-jenkins.eastus.cloudapp.azure.com/queue/item/6910/api/json (#2/17)
Job is executing: https://openenclave-jenkins.eastus.cloudapp.azure.com/job/openenclave-mbedtls/job/ping/106/
Getting Console output: https://openenclave-jenkins.eastus.cloudapp.azure.com/job/openenclave-mbedtls/job/ping/106/logText/progressiveText
Started by user jenkinsadmin
Running as SYSTEM
Building remotely on overwatcha1d4f1 (OverWatch) in workspace /home/oeadmin/workspace/openenclave-mbedtls/ping

[ping] $ /bin/sh -xe /tmp/jenkins7147230456266459142.sh
+ echo pong
pong
Finished: SUCCESS

Stream closed with a successful job

Thank you for the clarification. I would be happy to share the responsibility in generating the Docker image if you could show me how.
As for evidence, we don't have any tests set up yet so there is not immediately available evidence of function. Instead, I've been running my changes manually by triggering a job on Jenkins using the API credentials for the job here: https://openenclave-jenkins.eastus.cloudapp.azure.com/job/openenclave-mbedtls/job/Rhel8BuildClang-8/
Here is a quick build log using this exact PR's script for openenclave-mbedtls/ping which relates to https://openenclave-jenkins.eastus.cloudapp.azure.com/job/openenclave-mbedtls/job/ping/106/
Fetching: https://openenclave-jenkins.eastus.cloudapp.azure.com/crumbIssuer/api/json
Triggering a build via POST @ https://openenclave-jenkins.eastus.cloudapp.azure.com/job/openenclave-mbedtls/job/ping/buildWithParameters
Build is queued @ https://openenclave-jenkins.eastus.cloudapp.azure.com/queue/item/6910/api/json
Checking job status at https://openenclave-jenkins.eastus.cloudapp.azure.com/queue/item/6910/api/json (#1/17)
Sleeping for 0.55s...
Checking job status at https://openenclave-jenkins.eastus.cloudapp.azure.com/queue/item/6910/api/json (#2/17)
Job is executing: https://openenclave-jenkins.eastus.cloudapp.azure.com/job/openenclave-mbedtls/job/ping/106/
Getting Console output: https://openenclave-jenkins.eastus.cloudapp.azure.com/job/openenclave-mbedtls/job/ping/106/logText/progressiveText
Started by user jenkinsadmin
Running as SYSTEM
Building remotely on overwatcha1d4f1 (OverWatch) in workspace /home/oeadmin/workspace/openenclave-mbedtls/ping

[ping] $ /bin/sh -xe /tmp/jenkins7147230456266459142.sh
+ echo pong
pong
Finished: SUCCESS

Stream closed with a successful job

/lgtm

/lgtm


How do I print the help screen?

 Issue by ptr727
Tuesday May 23, 2017 at 17:02 GMT
Originally opened as https://github.com/gsscoder/commandline/issues/445

How do I print the help output I've evaluated the logical options and something is wrong?
            // Parse the commandline arguments
            // https://github.com/gsscoder/commandline
            Parser parser = new Parser(with =>
            {
                with.CaseSensitive = false;
                with.HelpWriter = Console.Error;
            });
            ParserResult<Options> result = parser.ParseArguments<Options>(args);
            if (result.Tag == ParserResultType.NotParsed)
            {
                return -1;
            }
            Options options = ((Parsed<Options>)result).Value;

            // Process or monitor must be specified
            if (options.ProcessFolders == false && options.MonitorFolders == false)
            {
                // TODO : Call help output directly
                return -1;
            }

 Comment by NVanderEnde
Wednesday May 24, 2017 at 15:53 GMT

Are you looking for HelpText.AutoBuild(args)?

 Comment by ptr727
Friday May 26, 2017 at 16:09 GMT

How do I use it?

 Comment by NVanderEnde
Friday May 26, 2017 at 16:20 GMT

Like so:
  private static string HelpOutput(Parameters args)
    {
        var result = new StringBuilder();

        result.AppendLine("Hello, and welcome to the  console application.");
        result.AppendLine("This application takes in a data file and attempts to import that data into our systems.");
        result.AppendLine("Valid options are:");
        result.AppendLine(HelpText.AutoBuild(args));
        result.AppendLine("Press any key to exit");

        return result.ToString();
    }

where Parameters is some class that's been annotated with the Option attributes, etc.

 Comment by ptr727
Friday May 26, 2017 at 20:14 GMT

I get a runtime exception:
            // Parse the commandline arguments
            // https://github.com/gsscoder/commandline
            Parser parser = new Parser(with =>
            {
                with.CaseSensitive = false;
                with.HelpWriter = Console.Error;
            });
            ParserResult<Options> result = parser.ParseArguments<Options>(args);
            if (result.Tag == ParserResultType.NotParsed)
            {
                Tools.WriteLineError("Failed to parse commandline.");
                return -1;
            }
            Options options = (((Parsed<Options>)result).Value);

            // Process or monitor must be specified
            if (options.ProcessFolders == false && options.MonitorFolders == false)
            {
                Tools.WriteLineError(CommandLine.Text.HelpText.AutoBuild(result));
                Tools.WriteLineError("Failed to parse commandline, missing action.");

                return -1;
            }

Fails at runtime.
System.ArgumentException occurred
  HResult=0x80070057
  Message=Excepting NotParsed<T> type.
  Source=CommandLine
  StackTrace:
   at CommandLine.Text.HelpText.AutoBuild[T](ParserResult`1 parserResult, Int32 maxDisplayWidth)
   at Plex.Program.Main(String[] args) in C:\Users\piete\OneDrive\Projects\Plex\Plex\Program.cs:line 44

 Comment by veleek
Tuesday Jul 25, 2017 at 23:23 GMT

I believe that this is definitely a bug in the code.  If you use the overload of AutoBuild(...) that takes onError and onExample functions then it will write successfully.
It actually has an explicit block in the code which checks whether or not the ParserResult<T> being passed in is a NotParsed result in which case it gracefully attempts to write the error output.
if (onError != null && parserResult.Tag == ParserResultType.NotParsed)
{
    errors = ((NotParsed<T>)parserResult).Errors;

    if (errors.OnlyMeaningfulOnes().Any())
        auto = onError(auto);
}

So, as a workaround in the meantime you can just use
Console.WriteLine(HelpText.AutoBuild(result, null, null));

 Comment by cbertolasio
Wednesday Jun 14, 2017 at 18:10 GMT

I also get the same error at runtime using my own sample project.  Probably a different topic... but it is unclear what the best practices are to get the helptext to be output when the args follow the "help verb" or "help" construct using the v2.x codebase - documentation is dated and so is the sample.

static int Main(string[] args)
{
	var results = Parser.Default.ParseArguments<SetupDirectionCommandOptions>(args);
	var exitCode = 0;
	if (args[0].Equals("help", StringComparison.InvariantCultureIgnoreCase))
	{
		var text = HelpText.AutoBuild(results);
		Console.WriteLine(text.ToString());
		return 0;
	}
	else
	{
		exitCode = results.MapResult(
		(SetupDirectionCommandOptions opts) => RunSetupDirection(opts),
		errs => (int)1);
	}

	return exitCode;
}

this is what my verb looks like...

[Verb(Verbs.SetupDirectionKey, HelpText = "Setup a direction command")]
public class SetupDirectionCommandOptions : SubOptionsBase
{
	[Option('r', "rotation-type", Default = PivotRotation.None, HelpText = "Set the pivot direction")]
	public PivotRotation Direction { get; set; }

	[Option('v', "velocitymode-type", Default = VelocityMode.AutoVri, HelpText = "Set the velocity mode")]
	public VelocityMode VelocityModeType { get; set; }

	[Option("percent", Default = 100, HelpText = "Set the speed percentage")]
	public int Percent { get; set; }

	[Option('f', "flowrate", Default = 6, HelpText = "Set the flow rate")]
	public float FlowRate { get; set; }

	[Option("ispumpon", Default = true, HelpText = "Set the is pump on flag")]
	public bool IsPumpOn { get; set; }
}

The above workaround does not work for me (throws a NullReferenceException, using CommandLineParser 2.6.0), however only a simple change was needed to make it work:
Console.WriteLine(HelpText.AutoBuild(result, _ => _, _ => _));


Collect forks

This project has several forks.
The aim is to collect all forks that are useful and to apply those changes to this repository.
Some forks are:

[x] @noio and forks
[x] @braveheuel
[x] @eddiehung
[x] @buildrevision
[ ]  @mosquito and its forks ("blocks" #82)
[ ]  https://github.com/benoitguigal/python-epson-printer
[ ]  https://github.com/jbittencourt/python-escpos
[ ]  clean up image printing (the current version is partially broken and has multiple methods for the same tasks)

EDIT: the buildrevision fork introduces the idea of a buffer for USB. This should be, if needed, reimplemented in the abstract base class.
EDIT: the eddiehung fork contains mostly hacky stuff and an implementation for a single printer. In the long run this probably should be included, but better not now.
EDIT: the braveheuel-fork is now in development-branch.
EDIT the noio-fork is now a PR. For unincluded commits issues have been created.

Do you have a workflow for this? I'll help out any way I can.
My main addition was creating a method that can automatically print larger images "line-by-line"; most of it is in this commit: https://github.com/noio/python-escpos/commit/b4f8de002ccc8e87c0233378496303514697f40f

I am still thinking of the best way to do this. Do you have an idea?
In general, creating a fork and then a pull request would make a start. I quite like the idea of this article. However, I don't think we need to zealously adhere to it.

Yeah it might be a bit heavyweight for the amount of contributions, but it never hurts to be structured.
I did just realize that my copy is not a real fork (on Github) and that I created a bit of a jungle (with additional forks) by copying over the code from Google. :)
But honestly, we could just copy over my main contribution to a pull request on this repo (if you're interested in the image printing..). There really isn't much need for all my edits to be preserved. I think most of them are ad-hoc fixes to stuff I encountered in a specific project.

As I see it, your function is an addition to the functionality of the software, so why not :-)
The easiest would probably be, if you could fork the repository and then apply all changes that you think make sense.
If you want to you can directly create the Pull Request, otherwise I could do this.

Actually, after doing some research, I think it's possible to merge two repos even if one is not a fork of the other (source). This is probably the easiest solution. If you merge in the repo at @ztane's or @DavisGoglin's latest commits, you'll have all their functionality (QR codes, python3 compatibility, faster image printing).

I think I started with the original Google code and merged in @noio's, but I couldn't tell you why. I'll try to help clean up this mess and try to figure out how to merge my changes in.

I think I merged all changes by @ztane and @DavisGoglin and consequently all other contributors in this fork together in python-escpos/python-escpos-1.
I think the next step would be to bring this fork to a development branch in the main repository (which is not a simple merge since some things changed heavily) where it will gradually be merged with the other forks. Once this branch gets stable it will be merged into master.

I try to merge my codebase with this codebase. I will create the pull request soon. Next week probably.

OK, thank you!
Some features have evolved differently across the forks so maybe we will have to see how to solve collisions.


Error registering / unregistering font file.

Hey. Cool project.
Everything was working great for about 2 weeks, then I started getting this error:
Error Domain=com.apple.CoreText.CTFontManagerErrorDomain Code=105 "Could not register the font file(s)"
So, I checked out error code 105 -> kCTFontManagerErrorAlreadyRegistered
I looked through Iconic's source and it doesn't look like the "already registered" case was handled, so I thought I'd just handle it myself in the app delegate by unregistering the font first:
let bundle = NSBundle(forClass: Iconic.self)
if let url = bundle.URLForResource("Linearicons", withExtension: "ttf"){
       var error: Unmanaged<CFErrorRef>? = nil
       CTFontManagerUnregisterFontsForURL(url, .None, &error)
       Iconic.registerIconFont()
}

However, the call to CTFontManagerUnregisterFontsForURL also returns an error:
Error Domain=com.apple.CoreText.CTFontManagerErrorDomain Code=201 "Could not unregister the font file(s)"
So, I checkout out error code 201 -> kCTFontManagerErrorNotRegistered
Not registered... o.O
Have you run into this before - not being able to register nor unregister a font? Tried cleaning, deleting my derived data, deleting the simulator's data, and double checked the font urls, but no luck.
Could Iconic try to continue its initialization in the case when the error is 105 - already registered?
Any suggestions appreciated.
Thanks!

That's right, I think the error is triggered around line 192 causing configure(withURL: url, name: fontName, map: map) to never get called.
Here's the font file I use:
Linearicons-Free.ttf.zip

Thanks - I tested the sample project - it's working as expected just like mine used to. I did a line-by-line comparison of the generated files and everything is the same. I checked the size of the binary and there is a difference there, but it seems a little crazy to think that a build setting somewhere is causing hiccup, especially when I swapped in a different icon file (Fontawesome) and everything worked. Changing back to Linearicons still produces the "already registered" error though.
Will keep digging.

I'm not. Though I did try it that way too, just for kicks :)

Ok - I figured out what was going on. If the font file is part of the Copy Bundle Resources build phase then Iconic can't register the font because it gets automatically registered by the OS just by being part of that build phase - even if the font is not declared as an app provided font in the plist.
Removing the font file from the Copy Bundle Resources phase fixed the issue. Perhaps, as a future enhancement, Iconic could check if the font has already been registered, and, if so, ignore the error and continue with its initialization.

@dzenbot Here's the sample project that exhibits the behavior.
A couple of notes - it looks like that in addition to the font file being part of the Copy Bundle Resources build phase, the font also needs to be used somewhere in the IB (I added a quick label to Main.storyboard -> ThirdViewController). If either of those two conditions aren't met, no failure will occur. The font needed to installed on my machine for it to pop up in the IB's font selector (screen shot below).
One other note - I had to move Iconic.registerIconFont() to func application(application: UIApplication, willFinishLaunchingWithOptions launchOptions: [NSObject : AnyObject]?)... when it was part of init() it fell into a semaphore wait trap. Odd.
Iconic.zip

Yep, this seems to have done the trick. Thanks!


Publish the package

When will publish this as Package :) ?

You can install it with npm i rc-input


Color function does not work when shot button pressed (AR Foundation build)

Color function not working -
Using Unity 2020.3.9f1
AR Foundation 4.1.7
AR Core 4.17
Android build - on Google Pixel 2
I followed the steps detailed and on building the prefab appears and tracks correctly, but doesn't become coloured when the shot button is pressed. Instead the prefab disappears briefly and reappears as ARFoundationColorMapping.Play method is called.
edit
On looking closer It fails when calling  ImageProc(imgPath, src, height, width) in AirarManager.
Is that a method in one of the java plugins ?
I was unable to use the recommend version of AR Foundation & AR Core as the AR subsystems for these version is not available on Unity 2020+
If I use an older version I can't build an apk the google play store will accept.
Any help would be appreciated - thanks for creating this tool.

Try the Unity version and AR engine version listed in Readme.
We will soon update the library by testing it on the latest version of Unity and AR engine.
Thanks!


Meta protocol cleanup adjustments

Cleanup fixes for meta protocol:

Removes some excess spaces for md, ma commands.
Allows bare "mg key" requests to work
Reflects O and k flags for mg on miss (EN)
Removes old meta_response_old start flag that was only supposed to be there for 3 months anyway.

Need to double check that I didn't miss any other report that's come up since. There're still some 'things to think about' with meta but I think as separate changes (ie; a "truly quiet" flag)
@smukil - tagging you since you folks are using meta and I'm paranoid of this change breaking something. All of the parsers I've written ignore N spaces before/after things and the protocol is supposed to allow for that. So it should be fine...
I'm going to have to just take an assumption/hope that nobody's coded super specifically to it and take the pain here. I was using regex prefex tests exclusively in the unit tests so I never noticed the bugs (and I don't think anyone ever reviewed meta deeply while it was under development)

@zenbones @tdyas - I know you folks were recently working with the meta protocol. Any chance of taking a look at this? I'm concerned about accidental compatibility issues but properly written clients should be fine if they're ignoring spaces instead of looking for specific spacing.

I know you folks were recently working with the meta protocol. Any chance of taking a look at this? I'm concerned about accidental compatibility issues but properly written clients should be fine if they're ignoring spaces instead of looking for specific spacing.

The particular project of mine which had the need was deferred, so I won't be able to check.

going to merge this today too... it does match the doc/protocol.txt spec now so I can rely on that at least.

released in 1.6.18


Display of  RAM not correct?

Hi,
I really like this dashboard. The only thing is that the RAM usage displayed by the dashboard is very different than the RAM usage displayed by landscape-sysinfo (Ubuntu server)
The attached screenshots were made at the same time.
Ths dashboard displays usage of 73%, while landscape-sysinfo displays only 29%
EDIT:
Webmin shows roughly the same info as landscape-sysyinfo.

I understand that this issue is closed but since I am facing the same issue, I hope I will get some help out.
I installed this dashboard on my "Oracle Linux Server release 6.4" vm and see a big difference in the RAM usage shown by the dashboard when compared with the "top" command.

Total RAM being 16 gb, the top command shows that only 4 GB is free while the dashboard shows 15 GB is free.
What could I by missing?

I hope this will help
http://serverfault.com/a/379392


Obfuscar not working in Build Server

Hi Team,
I am using obfuscar for netstandard libraries. This works fine in my dev environment(VS2017 Installed) ,but when in run in my Build Server , it is not working ,I am getting the below error
I installed dotnet core 2.2 sdk in build server.
Please suggest
Failed to resolve assembly: 'netstandard, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
Thanks
Pavan

Duplicate of #119 . You need to make sure that the search paths are correct on both your dev environment and on the build server.

Hi Team,
Thanks for your quick response . This fixed my issue. You saved my day.
Actually in Windows desktop i did not specify the Dot Net Standard Path and it worked.
But in Build Server(Windows Server 2016),I had to explictly mention the path.
Anyway thanks
Thanks
Pavan


Modify header menu height and user guide html

preview url: https://sixgodhuang.github.io/users/

Hi @SixGodHuang  Thanks for your contribution. I Just merged the patch into master branch.


[Bugfix] Fix Yarn.lock File conflicts

Pull Request Template
Type of Change

The yarn.lock file had some unresolved merge conflicts in it.
Re-ran yarn and produced a new yarn.lock file which appears to be working as intended

cc @rootulp Any idea what happened here? Somehow it got included in #380
Select a category that relates to the content of your pull request (choose all that apply).

[x] Bug Fix
[ ] Content
[ ] New Feature
[ ] Documentation
[ ] Code Refactoring

Sorry, this is my fault. I didn't run yarn install after the last merge from master.
If we have reliable GH workflows to run build, test, cypress tests, then we can catch this at PR time prior to merge. We'll get reliable cypress tests soon.

Doing a test deploy on staging and if it looks good will merge and deploy on prod. I should've done that as well with the previous PR 😆


Hanging on the loading page of the demo/app.py

Dear @clement-pages ,
Your package looks very nice. However, when I tried to use it the server starts after running python demo/app.py but when I open the browser it remains stuck on the "Loading..." page with the Gradio logo.
I tried reproducing the environment of the space you have with Python 3.11, using the same requirements.txt file and using the same grade SDK 4.27.0 but it is still stuck.
Would you have any idea about how to resolve that?
Thank you so much.

Hey @Deathn0t ,
Thank you for using gryannote. I'll need more information to try to solve the issue:

which browser do you use?
Can you send  the browser logs when you try to launch gryannote?

My first intuition is that it looks like a problem with the installation of at least one of the components that isn't found by the server, leading to an error when the page is loading.

I am attaching the logs when opening the server:

Thanks for the logs. I think there is an issue with your installation as the server cannot find components files. Maybe try to reinstall gryannote from scratch.
On my side, I've just launched gryannote on Chorme (131.0.6778.108) but I was not able to reproduce the issue, and the interface loads properly.

I tried it on a different laptop (both on macos) and it worked (i.e., the interface loaded properly). I will see if I can make it work on the initial laptop and keep you posted if I understand what went wrong.

Maybe my issue what due to installing the package in "editable mode":

pulling main branch
pip install -e "."

After forcing the reinstallation from Python 3.12, and running pip install -I gryannote the dashboard loads well.


BACKEND-410 Batch Service Bus Session Processor

Updated how messages are handled in ServiceBusSessionProcessor to allow for batches of messages to be handled.

The GitHub Event Processor Action is removed in this branch, but was still triggered.
I've disabled the Action in the project.

could we add happy path unit tests for the new classes and classes we modified? just wanna make sure we have coverage for our 80% case


Sudden loud noises in video cause volume to lower

When watching video the EQ works fantastically until there is a sudden loud noise such as an explosion or intense swell in music or loud ambient noise such as in intense action scenes. The volume and EQ effects in general then lower significantly although it shows no change in the eq setting. Quickly pausing and unpausing the video fixes the problem immediately. However the problem will be replicated at the exact same moments of the video every time. Is this a glitch? Or some kind of built in safety against overly loud noise amplification?
Listening on Sony WH-1000XM4
Bluetooth
Mac OS 12.2
eqMac 1.4.6

Hi, I assume it is that your EQ Profile could be the problem here. Your EQ profile may have caused the output to go over 0dBFS (normally should be under 0 from minus infinity) if you had positive values set. To solve this issue, check the "Auto" check box next to the Global Gain slider. I think this should solve your issue, so I am going ahead to close it now, if this is not the case, feel free to reopen it and comment on this issue, thanks!


lmdb dataset for REDS

I have created lmdb dataset for REDS, but I find there is only one dataset class to load lmdb dataset(SRLmdbDataset ). It seems SRLmdbDataset is just for image SR, not for video SR.
So, should I build custom dataset to support REDS in lmdb format? If not, how to modify the config file (basicvsr_reds4.py)? Thanks!

Yes, you should build a custom dataset to support REDS in lmdb format.
Besides, video data in lmdb format will be supported in V1.0

Closing due to inactivity, please reopen if there are any further problems.


replace key/value settings in app.config

Is this task supposed to be able to replace <add key="mykey" value="myvalue"> settings in a regular .net config file? Is the prefix/suffix required?

Never mind this. I confused the replace token task with this. Thanks for a very useful task.


the trustAnchors parameter must be non-empty

System information:

Operating system (distribution) and version = macOS High Sierra v10.13.6
DBeaver version = 5.0.2
Java version =1.8.9
Additional extensions

Connection specification:

Database name and version=  DB2 v<IP_ADDRESS>
Driver name =  DB2 / DB2 LUW
Do you use tunnels or proxies (SSH, SOCKS, etc)? = SSL

Describe the problem you're observing:
I have tried several times to install and make DBEAVER work in this mac machine and I always encounter this trustAnchors parameters must not be non-empty.
I have tried the latest version of dbeaver and I settled on 5.0.2 as this is the version working for my colleague. I'm trying to connect to a db2 db with SSL enabled. I have included the following
parameters (sslTrustStoreLocation, sslConnection, sslTrustStorepassword),  in the Connection Properties, but I still got this the trustAchors parameter must non-empty error message.
Thanks in advance for your help.
[jcc][t4][2030][11211][4.16.53] A communication error occurred during operations on the connection's underlying socket, socket input stream,
or socket output stream.  Error location: Reply.fill() - socketInputStream.read (-1).  Message: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty. ERRORCODE=-4499, SQLSTATE=08001
Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Unexpected error:java.security.InvalidAlgorithmParameterException:Z
the trustAnchors parameter must be non-empty
the trustAnchors parameter must be non-empty
Steps to reproduce, if exist:
Include any warning/errors/backtraces from the logs

I have this problem too.
But trying to connect to MariaDB 10 with SSL enabled.
It seems to be generally related to SSL, as others report this for PostgreSQL too.

Same issue on Debian 10 with Java11 when trying to connect via SSL
Might be the same problem as https://github.com/dbeaver/dbeaver/issues/4528
My setup does require a ssl connection to the server for the user to be able to login. Authentication is done using username and password

I had the same error, and disabling certificate validation fixed the problem (though not ideal. Will look into setting the correct certificates as mentioned in #4528). Other possible workarounds here also: https://github.com/dbeaver/dbeaver/issues/7620#issuecomment-644328633

I'm getting this error message with the newest windows community (DBeaver 7.2.3) DBeaver client, connecting to MariaDB server.
It happens if I use a CA certificate, require SSL, and Verify server certificate, however if I uncheck Verify server certificate it is working fine. CA certificate can be found in the steps here.
Error is as below:
Could not connect to my-database.mariadb.database.azure.com:3306 : Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
  Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
  Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
    the trustAnchors parameter must be non-empty
    the trustAnchors parameter must be non-empty

I'm getting this error message on Fedora 32 using both the flatpak and the rpm packages. Java version is OpenJDK 1.8.0_265 (though the flatpak package might bring its own JRE).

In my case the problem was solved by disabling server certificate verification. So apparently the problem is that dBeaver couldn't verify the server cert. But if that is the root cause, a more informative error message would make this much easier to troubleshoot. Something along the lines of "Server certificate verification failed" with an option to trust the certificate for future connections.

It's working fine for me in DBeaver on Fedora 32 however, version 7.1.0. Not from a flatpak but just from the standalone executables etc that comes in zip release.

Can someone please comment on how this was solved? This is still an issue with the snap community-ce version 21.0.3

For me, is solved setting "useSSL" to FALSE

For me, is solved setting "useSSL" to FALSE

disable ssl it not a solution. don't do it!

There are three solutions

Disable server certificate validation checkbox (many DB tools do this implicitly to avoid such problems)
Provide all certs (CA, user SSL certificate and its private key -  imo not possible when using aws rds, they provide just one cert bundle )
Use MySQL driver

I had to uncheck the Verify Server Certificate box. Very unintuitive.

Solution posted by @jenswegar worked for me in DBeaver 22.1.4. I had to disable the checkbox "Verify server certificate" in Connection settings -> SSL -> Advanced.

macOS 12.6 (Monterrey) /  using DBeaver Version <IP_ADDRESS>211202223
Same solution as @jenswegar, @simenbm and  others.
I had to uncheck the Verify Server Certificate box in the SSL tab.

You just have to be aware that this might make you vulnerable to MitM attacks as the traffic to the server might not be transferred over a secure connection (especially if you try to connect to a cloud server).

This should not be closed! Unchecking the Verify Server Certificate box in the SSL tab is a workaround not a fix. As @Skywalker-11  said, this can leave you open to MitM attacks.

I had to uncheck the Verify Server Certificate box. Very unintuitive.

On DBeaver Edit Connection popup, select SSL tab, enable Use SSL, in Advanced section, Enable Require SSL, disable Verify server certificate, enable Allow public key retrieval. Click Test Connection. Worked for me, YMMV.

For AWS RDS (Aurora MySQL), I was able to download a certificate from AWS (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html).  Note that you must choose the CA for the region where your DB is located.  The global one will not work.
With the pem file in hand, go to your DBeaver connection settings > SSL > Certificate Authority, then choose that file.
Now you should be able to successfully connect with "Required SSL" and "Verify server certificate" both checked.
It's annoying that the correct CA can't be found out of the global file, but I'm not sure if that's an Amazon problem or a DBeaver problem.
At least for MySQL, find the right key file and you will succeed.  As several other people have said before me, don't just disable "Verify server certificate" for production servers.  That's not safe.


added appinit

coverage: 80.751% (-1.5%) from 82.286% when pulling 8b128ddebfe43a6db245be724f536ce9a7e0cab1 on dissoupov into 1a9e88efc2e3de45a26adc0b9695b53eea6d75dc on main.


Crash when using player's crafting UI while using FastWorkbench mod.

Minecraft: 1.16.4
Forge: 35.1.28
Reproducible crash when inserting any items into player's crafting UI (not Crafting Table block) while using FastWorkbench and NotEnoughCreativity mods.
Crash log provided below:
---- Minecraft Crash Report ----
// This doesn't make any sense!
Time: 12/30/20 6:41 PM
Description: Container click
java.lang.ClassCastException: net.minecraft.inventory.CraftingInventory cannot be cast to shadows.fastbench.gui.CraftingInventoryExt
at shadows.fastbench.asm.PlayerContainerHooks.onCraftMatrixChanged(PlayerContainerHooks.java:16) ~[?:4.4.1] {re:classloading}
at net.minecraft.inventory.container.PlayerContainer.func_75130_a(PlayerContainer.java) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,xf:fml:fastbench:fbplayermatrix,xf:fml:fastbench:fbplayertransfer,pl:mixin:APP:notenoughcreativity.mixins.json:AccessorPlayerScreenHandler,pl:mixin:A}
at net.minecraft.inventory.CraftingInventory.func_70299_a(SourceFile:70) ~[?:?] {re:classloading,pl:accesstransformer:B}
at net.minecraft.inventory.container.Slot.func_75215_d(Slot.java:61) ~[?:?] {re:classloading}
at net.minecraft.inventory.container.Container.func_241440_b_(Container.java:219) ~[?:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}
at net.minecraft.inventory.container.Container.func_184996_a(Container.java:160) ~[?:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}
at net.minecraft.client.multiplayer.PlayerController.func_187098_a(PlayerController.java:379) ~[?:?] {re:mixin,pl:runtimedistcleaner:A,re:classloading,pl:mixin:APP:notenoughcreativity.mixins.json:AccessorClientPlayerInteractionManager,pl:mixin:APP:notenoughcreativity.mixins.json:MixinClientPlayerInteractionManager,pl:mixin:A,pl:runtimedistcleaner:A}
at net.minecraft.client.gui.screen.inventory.ContainerScreen.func_184098_a(ContainerScreen.java:539) ~[?:?] {re:mixin,pl:runtimedistcleaner:A,re:classloading,pl:mixin:APP:notenoughcreativity.mixins.json:AccessorFocusedSlot,pl:mixin:APP:notenoughcreativity.mixins.json:MixinHandledScreen,pl:mixin:A,pl:runtimedistcleaner:A}
at net.minecraft.client.gui.screen.inventory.InventoryScreen.func_184098_a(SourceFile:198) ~[?:?] {re:classloading}
at net.minecraft.client.gui.screen.inventory.ContainerScreen.func_231048_c_(ContainerScreen.java:499) ~[?:?] {re:mixin,pl:runtimedistcleaner:A,re:classloading,pl:mixin:APP:notenoughcreativity.mixins.json:AccessorFocusedSlot,pl:mixin:APP:notenoughcreativity.mixins.json:MixinHandledScreen,pl:mixin:A,pl:runtimedistcleaner:A}
at net.minecraft.client.gui.screen.inventory.InventoryScreen.func_231048_c_(SourceFile:187) ~[?:?] {re:classloading}
at net.minecraft.client.MouseHelper.lambda$mouseButtonCallback$1(MouseHelper.java:93) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.MouseHelper$$Lambda$4087/1409215177.run(Unknown Source) ~[?:?] {}
at net.minecraft.client.gui.screen.Screen.func_231153_a_(Screen.java:427) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:computing_frames,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.MouseHelper.func_198023_a(MouseHelper.java:91) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.MouseHelper.lambda$null$4(MouseHelper.java:175) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.MouseHelper$$Lambda$4027/1563068096.run(Unknown Source) ~[?:?] {}
at net.minecraft.util.concurrent.ThreadTaskExecutor.execute(SourceFile:94) ~[?:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
at net.minecraft.client.MouseHelper.lambda$registerCallbacks$5(MouseHelper.java:174) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.MouseHelper$$Lambda$3582/507575219.invoke(Unknown Source) ~[?:?] {}
at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36) ~[lwjgl-glfw-3.2.2.jar:build 10] {}
at org.lwjgl.system.JNI.invokeV(Native Method) ~[lwjgl-3.2.2.jar:build 10] {}
at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3101) ~[lwjgl-glfw-3.2.2.jar:build 10] {}
at com.mojang.blaze3d.systems.RenderSystem.flipFrame(SourceFile:109) ~[?:?] {re:classloading}
at net.minecraft.client.MainWindow.func_227802_e_(MainWindow.java:305) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:996) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:notenoughcreativity.mixins.json:MixinMinecraftClient,pl:mixin:A,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:607) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:notenoughcreativity.mixins.json:MixinMinecraftClient,pl:mixin:A,pl:runtimedistcleaner:A}
at net.minecraft.client.main.Main.main(Main.java:184) [?:?] {re:classloading,pl:runtimedistcleaner:A}
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {}
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {}
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {}
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] {}
at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) [forge-1.16.4-35.1.28.jar:35.1] {}
at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$429/1243495105.call(Unknown Source) [forge-1.16.4-35.1.28.jar:35.1] {}
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.6.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.6.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.6.jar:?] {}
at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.6.jar:?] {}
at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.6.jar:?] {}
A detailed walkthrough of the error, its code path and all known details is as follows:
-- Head --
Thread: Render thread
Stacktrace:
at shadows.fastbench.asm.PlayerContainerHooks.onCraftMatrixChanged(PlayerContainerHooks.java:16) ~[?:4.4.1] {re:classloading}
at net.minecraft.inventory.container.PlayerContainer.func_75130_a(PlayerContainer.java) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,xf:fml:fastbench:fbplayermatrix,xf:fml:fastbench:fbplayertransfer,pl:mixin:APP:notenoughcreativity.mixins.json:AccessorPlayerScreenHandler,pl:mixin:A}
at net.minecraft.inventory.CraftingInventory.func_70299_a(SourceFile:70) ~[?:?] {re:classloading,pl:accesstransformer:B}
at net.minecraft.inventory.container.Slot.func_75215_d(Slot.java:61) ~[?:?] {re:classloading}
at net.minecraft.inventory.container.Container.func_241440_b_(Container.java:219) ~[?:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}
-- Click info --
Details:
Menu Type:
Menu Class: net.minecraft.inventory.container.PlayerContainer
Slot Count: 46
Slot: -999
Button: 6
Type: QUICK_CRAFT
Stacktrace:
at net.minecraft.inventory.container.Container.func_184996_a(Container.java:160) ~[?:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}
at net.minecraft.client.multiplayer.PlayerController.func_187098_a(PlayerController.java:379) ~[?:?] {re:mixin,pl:runtimedistcleaner:A,re:classloading,pl:mixin:APP:notenoughcreativity.mixins.json:AccessorClientPlayerInteractionManager,pl:mixin:APP:notenoughcreativity.mixins.json:MixinClientPlayerInteractionManager,pl:mixin:A,pl:runtimedistcleaner:A}
at net.minecraft.client.gui.screen.inventory.ContainerScreen.func_184098_a(ContainerScreen.java:539) ~[?:?] {re:mixin,pl:runtimedistcleaner:A,re:classloading,pl:mixin:APP:notenoughcreativity.mixins.json:AccessorFocusedSlot,pl:mixin:APP:notenoughcreativity.mixins.json:MixinHandledScreen,pl:mixin:A,pl:runtimedistcleaner:A}
at net.minecraft.client.gui.screen.inventory.InventoryScreen.func_184098_a(SourceFile:198) ~[?:?] {re:classloading}
at net.minecraft.client.gui.screen.inventory.ContainerScreen.func_231048_c_(ContainerScreen.java:499) ~[?:?] {re:mixin,pl:runtimedistcleaner:A,re:classloading,pl:mixin:APP:notenoughcreativity.mixins.json:AccessorFocusedSlot,pl:mixin:APP:notenoughcreativity.mixins.json:MixinHandledScreen,pl:mixin:A,pl:runtimedistcleaner:A}
at net.minecraft.client.gui.screen.inventory.InventoryScreen.func_231048_c_(SourceFile:187) ~[?:?] {re:classloading}
at net.minecraft.client.MouseHelper.lambda$mouseButtonCallback$1(MouseHelper.java:93) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.MouseHelper$$Lambda$4087/1409215177.run(Unknown Source) ~[?:?] {}
-- Affected screen --
Details:
Screen name: net.minecraft.client.gui.screen.inventory.InventoryScreen
Stacktrace:
at net.minecraft.client.gui.screen.Screen.func_231153_a_(Screen.java:427) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:computing_frames,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.MouseHelper.func_198023_a(MouseHelper.java:91) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.MouseHelper.lambda$null$4(MouseHelper.java:175) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.MouseHelper$$Lambda$4027/1563068096.run(Unknown Source) ~[?:?] {}
at net.minecraft.util.concurrent.ThreadTaskExecutor.execute(SourceFile:94) ~[?:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
at net.minecraft.client.MouseHelper.lambda$registerCallbacks$5(MouseHelper.java:174) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.MouseHelper$$Lambda$3582/507575219.invoke(Unknown Source) ~[?:?] {}
at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36) ~[lwjgl-glfw-3.2.2.jar:build 10] {}
at org.lwjgl.system.JNI.invokeV(Native Method) ~[lwjgl-3.2.2.jar:build 10] {}
at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3101) ~[lwjgl-glfw-3.2.2.jar:build 10] {}
at com.mojang.blaze3d.systems.RenderSystem.flipFrame(SourceFile:109) ~[?:?] {re:classloading}
-- Affected level --
Details:
All players: 1 total; [ClientPlayerEntity['A_Zombie'/223, l='ClientLevel', x=48.21, y=64.00, z=28.96]]
Chunk stats: Client Chunk Cache: 841, 552
Level dimension: minecraft:overworld
Level spawn location: World: (64,68,32), Chunk: (at 0,4,0 in 4,2; contains blocks 64,0,32 to 79,255,47), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 2171 game time, 2171 day time
Server brand: forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.world.ClientWorld.func_72914_a(ClientWorld.java:447) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:2024) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:notenoughcreativity.mixins.json:MixinMinecraftClient,pl:mixin:A,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:623) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:notenoughcreativity.mixins.json:MixinMinecraftClient,pl:mixin:A,pl:runtimedistcleaner:A}
at net.minecraft.client.main.Main.main(Main.java:184) [?:?] {re:classloading,pl:runtimedistcleaner:A}
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {}
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {}
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {}
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] {}
at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) [forge-1.16.4-35.1.28.jar:35.1] {}
at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$429/1243495105.call(Unknown Source) [forge-1.16.4-35.1.28.jar:35.1] {}
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.6.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.6.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.6.jar:?] {}
at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.6.jar:?] {}
at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.6.jar:?] {}
-- System Details --
Details:
Minecraft Version: 1.16.4
Minecraft Version ID: 1.16.4
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_51, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 994911440 bytes (948 MB) /<PHONE_NUMBER> bytes (1872 MB) up to<PHONE_NUMBER> bytes (3641 MB)
CPUs: 12
JVM Flags: 5 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx4096m -Xms256m -XX:PermSize=256m
ModLauncher: 8.0.6+85+master.325de55
ModLauncher launch target: fmlclient
ModLauncher naming: srg
ModLauncher services:
/mixin-0.8.2.jar mixin PLUGINSERVICE
/eventbus-3.0.5-service.jar eventbus PLUGINSERVICE
/forge-1.16.4-35.1.28.jar object_holder_definalize PLUGINSERVICE
/forge-1.16.4-35.1.28.jar runtime_enum_extender PLUGINSERVICE
/accesstransformers-2.2.0-shadowed.jar accesstransformer PLUGINSERVICE
/forge-1.16.4-35.1.28.jar capability_inject_definalize PLUGINSERVICE
/forge-1.16.4-35.1.28.jar runtimedistcleaner PLUGINSERVICE
/mixin-0.8.2.jar mixin TRANSFORMATIONSERVICE
/forge-1.16.4-35.1.28.jar fml TRANSFORMATIONSERVICE
FML: 35.1
Forge: net.minecraftforge:35.1.28
FML Language Providers:
<EMAIL_ADDRESS>minecraft@1
Mod List:
forge-1.16.4-35.1.28-client.jar                   |Minecraft                     |minecraft                     |1.16.4              |DONE      |NOSIGNATURE
forge-1.16.4-35.1.28-universal.jar                |Forge                         |forge                         |35.1.28             |DONE      |22:af:21:d8:19:82:7f:93:94:fe:2b:ac:b7:e4:41:57:68:39:87:b1:a7:5c:c6:44:f9:25:74:21:14:f5:0d:90
NotEnoughCreativity-Forge-1.16-1.2.2.jar          |Not Enough Creativity         |notenoughcreativity           |1.2.2               |DONE      |NOSIGNATURE
FastWorkbench-1.16.3-4.4.1.jar                    |FastWorkbench                 |fastbench                     |4.4.1               |DONE      |NOSIGNATURE
Placebo-1.16.3-4.3.3.jar                          |Placebo                       |placebo                       |4.3.3               |DONE      |NOSIGNATURE
Crash Report UUID: 87833ed3-2d6e-4d4d-98d0-e1d352f1729d
Launched Version: forge-35.1.28
Backend library: LWJGL version 3.2.2 build 10
Backend API: GeForce RTX 2060 SUPER/PCIe/SSE2 GL version 4.6.0 NVIDIA 460.79, NVIDIA Corporation
GL Caps: Using framebuffer using OpenGL 3.0
Using VBOs: Yes
Is Modded: Definitely; Client brand changed to 'forge'
Type: Client (map_client.txt)
Graphics mode: fancy
Resource Packs:
Current Language: English (US)
CPU: 12x AMD Ryzen 5 3600 6-Core Processor

FastWorkbench is blindly assuming that the player's container crafting grid has been replaced with its own. Arguably, this is a bug in FastWorkbench. I'll look at what I can do on my side.

It looks like the cleanest way to fix this from my end is to fire a PlayerContainerEvent.Open when NEC+ replaces the player's container. It's odd this is fired for the vanilla inventory container in the first place, as the player's own inventory is effectively "always open".

Firing PlayerContainerEvent.Open doesn't quite work 100% due to how the replacement works on FastWorkbench's end. Had to reflect into FastWorkbench and construct its classes.

Firing PlayerContainerEvent.Open doesn't quite work 100% due to how the replacement works on FastWorkbench's end. Had to reflect into FastWorkbench and construct its classes.

I'd like to note that with this fix, for some reason the result slot stays empty but you can click anyway to craft. No idea why, been debugging it for an hour or more. It doesn't crash anymore, at least.

I'd like to note that with this fix, for some reason the result slot stays empty but you can click anyway to craft. No idea why, been debugging it for an hour or more. It doesn't crash anymore, at least.

You may be able to drop this fix, I'm going to explore making my changes to an ASM target so that the field is always updated, due to how the container event works.  I wouldn't need to, but forge determined that PlayerContainerEvent.Open should not fire for the player container in https://github.com/MinecraftForge/MinecraftForge/issues/7340
There's currently also an issue with the quark backpacks for this problem, so I think me having a coremod targeting PlayerContainer is the best option.

You may be able to drop this fix, I'm going to explore making my changes to an ASM target so that the field is always updated, due to how the container event works.  I wouldn't need to, but forge determined that PlayerContainerEvent.Open should not fire for the player container in https://github.com/MinecraftForge/MinecraftForge/issues/7340
There's currently also an issue with the quark backpacks for this problem, so I think me having a coremod targeting PlayerContainer is the best option.

Also, if the result slot is staying empty, it's probably due to the SPacketSetSlot not being pushed properly.  After I retarget the modifications I can explore why stuff is going wrong here.

Also, if the result slot is staying empty, it's probably due to the SPacketSetSlot not being pushed properly.  After I retarget the modifications I can explore why stuff is going wrong here.

I attempted to force sending the slot packet and messed with a bunch of random stuff but couldn't get anything to show up. I stopped caring around the 30 minute mark.

I attempted to force sending the slot packet and messed with a bunch of random stuff but couldn't get anything to show up. I stopped caring around the 30 minute mark.


Runtime: Implement efficient pagination on unbounded metrics APIs

The MetricsViewToplist and new MetricsViewRows APIs accept limit and offset parameters from the client. Currently, the frontend will only request 10-100 rows, but they're looking at use cases where users may page through longer sets of results.
Since computing these queries can be quite expensive, it would be advantageous if we queried and cached significantly larger page sizes on the backend than what the frontend requests.
For example, if the frontend requests limit=50, offset=0, we might compute and cache limit=1000, offset=0 on the backend. If the frontend then later requests limit=50, offset=50, we could satisfy the request from the cache without running another query.
We should be able to implement this by having some simple rewriting logic for limit and offset in the handlers in runtime/server/queries_metrics.go – i.e. before generating the queries.XXX query that gets cached.
As for defaults, I would propose we default to page sizes of 1000 rows when computing queries, and 50 rows for number of rows to return when the request contains limit=0. Separately, we should also enforce that requests cannot specify a limit greater than 1000.

An additional requirement that popped up – returning a count of records to decide on the size of the virtualized scroll area. Since that might not always be cheap to calculate, @skokenes says it would be adequate to return the number of records paged into the runtime query cache. We could add fields uint64 cached_rows and bool cached_all to the MetricsViewToplist and MetricsViewRows API responses.

Closing for now since we rarely do pagination outside of the pivot tables, and the pivot tables already request large pages that don't need this optimization.


Predictions are way too high when modeling an intermittent count series with DeepAR and NegBin distribution?

I'm trying to model a simulated series of weekly seasonal intermittent sales, with values between 0 and 4. I generated  5 years of simulated data:

I trained a DeepAR model with the output distribution set to Negative Binomial (all other settings were the default settings), on 3 years, and generated predictions for the next two. I got the following results (plotting the [70.0, 80.0, 95.0] predictions intervals):

Increasing number of training epochs doesn't change anything, the loss falls to its lowest value around the 8th to 10th epoch and hovers more or less around there, whether I train for 10 or 100 epochs.
I thought training on 3 years and testing on 2 might be too ambitious, so I tried 4y/1y split instead, and the results got much worse - and downright strange - this time with values climbing into the 100s, even though the largest historical value the series ever reaches is 4 (I'm using the same input series, but is seems flat now because the scale is completely skewed by how large the predictions are):

I'm wondering if I am doing anything wrong? Are there any special settings for DeepAR when applied to intermittent series?
For comparison, the DeepAREstimator worked pretty well out of the box for more traditional series (using Student's distribution), for example:

Details:
Train data:
[{'start': Timestamp('2014-01-05 00:00:00', freq='W-SUN'),
'target': array([1., 0., 1., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 1., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 1.,
1., 1., 1., 1., 2., 0., 0., 1., 2., 2., 1., 4., 1., 2., 1., 0., 0.,
2., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 0., 0., 0., 1., 0., 1., 1., 0., 0., 0., 0., 1., 2., 1., 2.,
0., 1., 1., 2., 3., 2., 2., 1., 1., 3., 4., 1., 1., 0., 0., 3., 0.,
0., 0., 1., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 1., 1., 0., 1., 0., 0., 0., 1., 1., 0., 2., 1., 1., 0., 1., 0.,
1., 2., 2., 1., 2., 3., 3., 1., 2., 2., 0., 0., 2., 0., 3., 0., 1.,
2., 0., 1., 1.], dtype=float32),
'source': SourceContext(source='list_data', row=1)}]
Test data:
{'start': Timestamp('2017-01-08 00:00:00', freq='W-SUN'), 'target': array([2., 1., 2., 1., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0.,
0., 0., 1., 0., 1., 0., 0., 1., 0., 1., 0., 1., 2., 3., 1., 0., 3.,
2., 1., 0., 0., 2., 2., 2., 1., 0., 2., 0., 2., 2., 1., 0., 1., 0.,
0., 0., 1., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.,
0., 0., 1., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 2., 0.,
0., 4., 1., 2., 2., 1., 3., 1., 2., 1., 2., 1., 2., 3., 3., 1., 2.,
0.], dtype=float32), 'source': SourceContext(source='list_data', row=1)}
Estimator used:
estimator = DeepAREstimator(freq="W", prediction_length=105, trainer=Trainer(epochs=10),distr_output=NegativeBinomialOutput()) predictor = estimator.train(training_data=training_data)

@SkanderHn there’s a few things that you can try:

try setting pick_incomplete=False in DeepAREstimstor: this will affect how training windows will be sampled from the training data, avoiding sampling windows that have any zero-padding in the conditioning range.
try setting scaling=False.
try setting lags_seq=list(range(24)): this will enforce the RNN to get as input, at each time step, the 24 previous observations. I’m not sure what the default lags_seq is for weekly data otherwise.
try any combination of the above :-)
swap the DeepAREstimator for something else, like the SimpleFeedForwardEstimator, and see if that works better: if that’s the case, something may be wrong in DeepAREstimator, otherwise it could be that something is wrong in NegativeBinomial.

I achieved best results for intermittent sales forecasting with NPTS.

@antonkiselevtdg how were you able to use NPTS to train and predict ?

@antonkiselevtdg how were you able to use NPTS to train and predict ?

Just as any other available algorithm:
Example:
from gluonts.model.npts import NPTSEstimator
estimator = NPTSEstimator(freq="W", prediction_length=4,kernel_type = "exponential", use_seasonal_model = True)
predictor = estimator.train(training_data=training_data)

@SkanderHn are you giving the same training data as input to the predictor to get the forecasts? Could you include a minimal working example that reproduces the experiment?

@lostella - when you write:

try setting pick_incomplete=False in DeepAREstimstor

how exactly should this be passed into the DeepAREstimator()? Do we need to recreate the DeepAREstimator transformation function with 'create_transformation' where we change some particular elements? How then can we pass those modifications into the actual DeepAREstimator?
From the Extended tutorial I can see that we transformation function can be applied on the data in GluonTs format, but can then the new dataset be passed into the estimator as is?

@lostella - when you write:

try setting pick_incomplete=False in DeepAREstimstor

how exactly should this be passed into the DeepAREstimator()?

I take that back, there's no such an option exposed

From the Extended tutorial I can see that we transformation function can be applied on the data in GluonTs format, but can then the new dataset be passed into the estimator as is?

I'm not sure I understand, could you be more specific?

Sure, that's actually related to my other question here: link.
Let's say I would like to modify the default transformation function of DeepAREstimator and impact the way InstanceSplitter works, e.g.: change pick_incomplete or select a different sampling method. In the ExtendedTutorial it's mentioned how to create those new transformation functions and how to apply them to the data. However,  it doesn't say how to pass that new transformation function/ transformed dataset into the estimator.
Let's say, if I create a new iterable object as a result of my modified transformation function, how could I train DeepAREstimator on it without using it's in-built default transformations?
Or otherwise, how to modify the default transformation function of DeepAREstimator and apply it to the training data during model training?

Let's say, if I create a new iterable object as a result of my modified transformation function, how could I train DeepAREstimator on it without using it's in-built default transformations?
Or otherwise, how to modify the default transformation function of DeepAREstimator and apply it to the training data during model training?

I'm afraid that there is no option to change the transformation without touching the code of the estimator class. Essentially you need to customize what this method returns: https://github.com/awslabs/gluon-ts/blob/master/src/gluonts/model/deepar/_estimator.py#L200
You can, for example, subclass the estimator and specialize the method with your own custom transformation.
Does this answer your question in the other thread?

I'm not yet a python expert so I'm not 100% sure how to go about that, but in principle yes - that answers the question!

@konradsemsch, did you manage to solve it?

I'm also training for count series and the loss wasn't converging. I've seen this issue and found the PR https://github.com/awslabs/gluon-ts/pull/719 from @kashif. Since it wasn't merged yet, I forked the fixed distribution and trained again. Now my loss is converging.

@SkanderHn @fernandocamargoti #719 and #814 introduced fixes to the scaling issues with NegativeBinomial: could you try on the current master branch whether these help? (Especially with the example in the original post)

I also checked that yesterday after I pulled the master branch but I haven't observed a particular improvement TBH... but perhaps I wasn't able to fully reproduce my last trials, so don't quote me on this ;)
I had a bit of a break from using gluon and now I'm coming back to it again, so I'll try to report again in case I find something.

Ok, I can make a final confirmation today that the problem persists on my side after the update... Funny enough, this error wasn't coming before on my side. I'm using the M5 dataset here.
Initialisation of my estimator:
from gluonts.model.deepar import DeepAREstimator
from gluonts.distribution.neg_binomial import NegativeBinomialOutput
from gluonts.trainer import Trainer

estimator = DeepAREstimator(
    freq = metadata['freq'],
    prediction_length = prediction_horizon,
    context_length = prediction_horizon,
    num_layers = 2,
    num_cells = 40,
    dropout_rate = 0.1,
    use_feat_dynamic_real = True,
    use_feat_static_cat = True,
    cardinality = feat_static_cat_cardinalities,
    embedding_dimension = [min(50, (cat+1)//2) for cat in feat_static_cat_cardinalities], # [3050, 8, 4, 11, 4] - this is just for my reference
    distr_output = NegativeBinomialOutput(),
    # lags_seq = ...,
    # time_features = ...,
    trainer = Trainer(
        learning_rate = 1e-3,
        epochs = 1,
        batch_size = 32,
        num_batches_per_epoch = 50,
        hybridize = False # tried with False/ True
    )
)

predictor = estimator.train(train_ds)

The error that I'm seeing:
GluonTSUserError                          Traceback (most recent call last)
<ipython-input-15-57c4a0073b60> in <module>
     26 )
     27
---> 28 predictor = estimator.train(train_ds)

~/.local/share/virtualenvs/Gluon-q9NlSOjv/lib/python3.7/site-packages/gluonts/model/estimator.py in train(self, training_data, validation_data, num_workers, num_prefetch, **kwargs)
    250     ) -> Predictor:
    251         return self.train_model(
--> 252             training_data, validation_data, num_workers, num_prefetch, **kwargs
    253         ).predictor

~/.local/share/virtualenvs/Gluon-q9NlSOjv/lib/python3.7/site-packages/gluonts/model/estimator.py in train_model(self, training_data, validation_data, num_workers, num_prefetch, **kwargs)
    229             input_names=get_hybrid_forward_input_names(trained_net),
    230             train_iter=training_data_loader,
--> 231             validation_iter=validation_data_loader,
    232         )
    233

~/.local/share/virtualenvs/Gluon-q9NlSOjv/lib/python3.7/site-packages/gluonts/trainer/_base.py in __call__(self, net, input_names, train_iter, validation_iter)
    326                         if best_epoch_info.epoch_no == -1:
    327                             raise GluonTSUserError(
--> 328                                 "Got NaN in first epoch. Try reducing initial learning rate."
    329                             )
    330

GluonTSUserError: Got NaN in first epoch. Try reducing initial learning rate.

On the other hand, I then tested the PoissonOutput as well as the default distribution and keep seeing the same message... do you know where I could commit an error and where to check first?

Sorry, never mind - I forgot that I have included an additional covariate with missing values which seems to be causing the problem. After removing it things seem to be working fine! Would your recommendation be to impute such variables before training?

@konradsemsch yes so for missing covariates either impute it from past seasonal means etc. or you need to also predict it like the target...

DeepAR should run out-of-the box with missing values without the need to impute. You just have to encode missing values as NaN. The model should take it from there.

After the recent changes, I trained DeepAREstimator on the data from the original post, with prediction length 52 (1 year), for 5 epochs and default settings otherwise (in particular, scaling is enabled). The predictions I get look like follows:

This could probably be improved, but the median predictions looks at least reasonable to me (the weird issues originally observed seem to be gone).
I'm closing this for now, please feel free to comment or reopen in case the issue still occurs.

Sorry, never mind - I forgot that I have included an additional covariate with missing values which seems to be causing the problem. After removing it things seem to be working fine! Would your recommendation be to impute such variables before training?

Hi I'm having the same problem using a different set. When you say covariate do you mean one of the static category features?


Check email address validity

Hello,
As I was integrating your crate in another project, I've figured out that email addresses are not checked, there seem to be a TODO coment.
Would you be ok to use fast_chemail for that purpose? And interested for a PR?

A PR to integrate fast_chemail would be interesting indeed!

Fixed in #308. Thanks!


docs: delete data

@nicecui Just a ping. With all the conflicts going on, would you be okay if we closed this pull request and opened a new one?


findings: values should be exported consts owned by the probe

All the places in our code that read values in a finding shouldn't need to redefine what the key is.

Could you write a short example for this?

Could you write a short example for this?

This came up in the SAST/Maintained checks:
Both the probe
https://github.com/ossf/scorecard/blob/6dd91c09975acc57cbac5d3640c7c7794a34dd8c/probes/commitsInLast90Days/impl.go#L62-L64
And then consumer (evaluation code) need to remember "commitsWithinThreshold"
https://github.com/ossf/scorecard/blob/6dd91c09975acc57cbac5d3640c7c7794a34dd8c/checks/evaluation/maintained.go#L65-L75
Not to mention all the tests:
https://github.com/ossf/scorecard/blob/6dd91c09975acc57cbac5d3640c7c7794a34dd8c/checks/evaluation/maintained_test.go#L37-L39
So if the probe defined the values it can produce (if known) as a const, then it creates a single source of truth for the key value.
const (
    Probe = "commitsInLast90Days"
    // I'm not set on the name
    CommitsValue = "commitsWithinThreshold"
)


Can't see all of left panel

I'm on a 2020 M1 MacBook Air and the bottom of the left panel is cut off. I also can't scroll down on that panel though idk if I'm supposed to be able to.

Just checked and the full panel does show in full screen.

I fixed it by changing the scale. Feeling a little silly.

Good to see someone has it up and running on a Mac 👍


R2 buckets support

Hey,
I have a use case of managing R@ buckets.
Seems right to have a single operator to manage Cloudflare related resources.
Would you consider a PR?
We probably would need a separate controller

Interesting. How would you integrate the R2 buckets in K8s? Are you looking at some kind of a storage controller or are you just looking to create the buckets and use them inside your applications?

Just create and manage their settings.
My goal is to use them for DB backups, inside a database chart I want to include bucket crd, which would create it as a part of application basically.
I am thinking expanding the operator with more cf resources:

WAF rules
Cache rules etc
R2 buckets


handle incomplete reads

.NET 6 has introduced a breaking change for handling incomplete reads from DeflateStream. This was discovered in https://github.com/dotnet/runtime/issues/54538.
Please see https://github.com/dotnet/docs/issues/24649 for more details

Hi,
Thanks for the fix!
I certainly never expected that behavior from an in-memory stream, but I guess it makes sense somehow 😅

@GoldenCrystal Thank you for merging it so quickly!

I certainly never expected that behavior from an in-memory stream, but I guess it makes sense somehow

I've learned it the hard way that if Read returns an int there is a chance for incomplete read.
May I ask when do you plan to release a new package version to nuget.org? We hope that .NET 6 is soon going to become popular and would expect all users to hit this problem ;)

Apparently I needed to fix problems with the CI, but it seems to be all good now 🙂
I published the new package with your fixes. Thanks again ^^


How to bind argument to modifyGraph

Usually I'm not creating new issues on github when I want to only ask, but Objection lacks of some forum or Discord server / or a guide where to ask (I'm new in web-dev and even more in Objection/knex and that lack sucks :/ it's so difficult to start when you can't ask).
I got problems with doing this:
// This way you can bind arguments to modifiers.
  onlyDogs: query => query.modify('onlySpecies', 'dog')

but for modifyGraph (I started with Offer model)
      const offersQuery = req.db.Offer
        .query()
        .where('search_id', maxedSearch)
        .withGraphJoined('[outboundFlight, inboundFlight]');
// ........

      const dateDeparture = new Date(req.query.departure);
      console.log(dateDeparture);
      offersQuery.modifyGraph('outboundFlight', 'onlyDepartureInDate', dateDeparture);

and my modifier in Flight model
    onlyDepartureInDate(query, date) {
      console.log(date);
      if (+date) {
        query.whereBetween('from_date',
          [date.getTime(), date.getTime() + 86400000]);
      }
    },

It doesn't pass a dateDeparture to modifyGraph. I got undefined in onlyDepartureInDate modifier. How to do it?

There is a gitter "room".
you can do this:
      offersQuery.modifyGraph('outboundFlight', query => query.modify('onlyDepartureInDate', dateDeparture));


V2

↪ Pull Request

💻 Examples

🚨 Test instructions

✔ PR Todo

[ ] Added/updated unit tests for this change
[ ] Filled out test instructions (In case there aren't any unit tests)
[ ] Included links to related issues/PRs

Benchmark Results
packages/benchmarks/kitchen-sink
Timings

Description
Time
Difference

Cold
13.68s
+130.50ms ⚠

Cached
9.41s
-325.50ms 🎉

Bundle Sizes

Extension
Size
Difference

.css
58.00b
0b

.js
1.02kb
0b

.map
146.00b
0b

.webp
205.88kb
0b


Add Glyphicon for pull request links

Use Glyphicon for pull request links

@johndmulhausen I don't think we actually have this glyph. When I build this locally, the span doesn't have any image in it and I can't find the glyph mentioned in any of our CSS by grepping it.

We don't have the glyph and not paying $60 to get it just for this.


allow blt::cuda as target name for cuda

What it says on the tin. This is the minimum I could figure out to allow blt::cuda to mirror blt::hip.

This change gives the same CMake error in RAJA when moving to the latest desul. I think we should continue to live with the inconsistent namespacing between CUDA and HIP in BLT, until the blt::* namespacing is fully fleshed out in BLT and available in a BLT release.

I tested it against the latest desul, and got no errors.  How did you test it @rhornung67?  If that's still broken there's no point, but it shouldn't be.
Happy to add one for cuda_runtime.

Actually, the tests on desul/desul#117 include this update, and are currently passing.

@trws just looking at your RAJA PR https://github.com/LLNL/RAJA/pull/1563
CMake error for desul atomics build on lassen.

I just tested it, it works when not run with uberenv.  My current guess is that something in that stack is overriding the BLT being used so we get an old one.  Will probably have to dig to find it.  Here are the outputs for the clang and gcc versions, the one on the left should match what's in CI if it were using the same BLT:

It most definitely should, thanks @rhornung67.

It most definitely should, thanks @rhornung67.

I think I'm hearing the Benny Hill theme song in my head....

I am going to merge this then immediately do a PR with namespacing the rest of the targets along with updating all documentation. I am planning on doing a breaking release for BLT this year and will remove the generic names at that point.


iotcentral has duplicate x-ms-discriminator-value for TileConfiguration

iotcentral package-2022-10-31-preview has duplicate "x-ms-discriminator-value": "command" inheriting from TileConfiguration. Based on the naming conventions, I think you may want to make the second "x-ms-discriminator-value": "commandTile".
    "CommandConfiguration": {
      "description": "Configuration specifying options for a command tile.",
      "x-ms-discriminator-value": "command",
      "allOf": [
        {
          "$ref": "#/definitions/TileConfiguration"
        }
      ],
      "type": "object",
      "properties": {
        "device": {
          "type": "string",
          "description": "The device id that the command is associated with"
        },
        "command": {
          "type": "string",
          "description": "The command id to associate the tile to"
        }
      },

    "CommandTileConfiguration": {
      "description": "Configuration specifying options for a command tile",
      "x-ms-discriminator-value": "command",
      "allOf": [
        {
          "$ref": "#/definitions/TileConfiguration"
        }
      ],
      "type": "object",
      "properties": {
        "group": {
          "description": "The ID of the device group to display",
          "type": "string"
        },
        "command": {
          "description": "The command to reference in the tile",
          "type": "string"
        },
        "device": {
          "description": "The device to reference in the tile"
        }
      },
      "required": [
        "group",
        "command",
        "device"
      ]
    },

I discovered this while working on https://github.com/Azure/azure-sdk-for-rust/pull/1414.
error[E0631]: type mismatch in function arguments
    --> svc\iotcentral\src\package_2022_10_31_preview\models.rs:3019:10
     |
3017 |   #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
     |                                                ----------- required by a bound introduced by this call
3018 |   #[serde(tag = "type")]
3019 |   pub enum TileConfigurationUnion {
     |  __________^
3020 | |     #[serde(rename = "barChart")]
3021 | |     BarChart(BarChartConfiguration),
3022 | |     #[serde(rename = "command")]
3023 | |     Command(CommandConfiguration),
     | |     ------- found signature defined here
3024 | |     #[serde(rename = "command")]
3025 | |     Command(CommandTileConfiguration),
     | |___________^ expected due to this

This looks like it was added in #20981. cc @yang-hai-feng @heaths
I possible fix would be to update:
    "CommandTileConfiguration": {
      "description": "Configuration specifying options for a command tile",
      "x-ms-discriminator-value": "command",

to:
    "CommandTileConfiguration": {
      "description": "Configuration specifying options for a command tile",
      "x-ms-discriminator-value": "commandTile",

This would need to be updated in the backend as well.


User returning error in slack message.

On line 22 of slack.php     $adminuser = "ilham"; this should be the admin username we have on our own system so configuration needs to mention this.
Because otherwise we will have Error for the user section of the message.

 Thank you for your contribution.

No longer seems to be working with these latest updates. WHMCS Activity Log shows the notification going out, but never receive it in Slack.


How to configure tasks preemption?

Hello.
I was faced with some troubles when tried to set up Cook scheduler on a small cluster.
I got successfully run Cook as Mesos framework, but I don't know how to configure tasks preemption.
Apparently, rebalancer didn't start at all, so I'd look through source code, and I had a few questions.

I saw references to TwoSigma servers in source code (rebalancer.clj → get-mesos-utilization) — does that mean that rebalancer work only with them?
When rebalancer starts and how often does it run?
Is it possible to manually check DRU values for running and waiting jobs (via REST API, for example)?
Is it possible to configure rebalanser in the same manner as Cook — using edn-config file, not datomic?

Orhideous,

I have a pull request up for this: https://github.com/twosigma/Cook/pull/85
It is currently hardcoded (every 5 min), but we should definitely have it configurable in config.edn
This is not currently available
Currently no but we are looking into standardize rebalancer configuration as well

For the 4th thing, we're working on that in #12. We should have the important preemption parameters configurable by the first week of December.

The rebalancer config options are now clearly documented, and the rebalancer is tested in Travis. Closing.


(index):37 Error: core_1.Input is not a function   Evaluating http://localhost:3000/ng2-bs3-modal/components/modal   Evaluating http://localhost:3000/ng2-bs3-modal/ng2-bs3-modal   Evaluating http://localhost:3000/app/app.module.js   Evaluating http://localhost:3000/app/main.js

Hi I am getting below error message in browser when i import the ng2-bs3-modal in app.module.ts file.
can you help me why would this happen?
(index):37 Error: core_1.Input is not a function
Evaluating http://localhost:3000/ng2-bs3-modal/components/modal
Evaluating http://localhost:3000/ng2-bs3-modal/ng2-bs3-modal
Evaluating http://localhost:3000/app/app.module.js
Evaluating http://localhost:3000/app/main.js
expecting your response

@Rameshvenkat sorry for never getting back to you on this. Feel free to reopen if you're still seeing errors.


Performance improvement on ResourceBlock OneView data request

Closes partially #428
Previously the application did 1 + N requests to retrieve the enclosures URI with valid drive enclosures, which N is the number of enclosures on OneView.
Now the application just need 1 request to retrieve this data.
These requests is performed for the Resource Block GET request.
We have an average reduction of 3 OneView requests per Resource Block GET request.
Below there is a graph comparing previous and currently performance with the elapsed time to retrieve each one of all 111 Resource Blocks on the DCS that we have:

This improvement also impacts on ResourseZoneCollection and ComputerSystemCollection.

Coverage decreased (-0.04%) to 90.19% when pulling c866afe53849d2eb2fbe5eacca561c4ab9836853 on feature/performance_resource_storage into feefd22a649b7616001985a4c325817896639c51 on master.


Update playgrounds

What does this PR do?
Minor free-programming-playgrounds.md fixes and add Swift playground.

I guess the linter doesn't check everything!


fix: wait for runtime to be ready before handling some notifications

Current dependencies on/for this PR:

main

PR #48

PR #49   👈

PR #50

This comment was auto-generated by Graphite.

@mhanberg started a stack merge that includes this pull request via Graphite.

@mhanberg merged this pull request with Graphite.


Collapse release and nightly scripts into one

1. Issue, if available:
2. Description of changes:
Collapse release.sh and nightly.sh into one
3. How was this change tested?
4. Does this change impact docs?

[ ] Yes, PR includes docs updates
[ ] Yes, issue opened: link to issue
[ ] No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Closing this for now since we both agree as it stands the separation makes more sense.


Get also labels when resource is obtained via lodlive

Currently (see second row, first column):

So the label for the resource obtained via lodlive is missing

Let us also find out if the LodLive works for other bases than the DBpedia. And then decide upon the mean of label retrieval.

I would suggest to postpone to iteration 6 and focus in iteration 5 on a simple browser window showing dereferenced URLs

@brodecva  Please assign to someone to test whether lodlive works also with other KBs then Dbpedia. Then we may decide whether to further improve or not

For now Won't fix, may be reopened after https://github.com/odalic/odalic-ui/issues/127 is solved


add my school: hak-liezen

Hello, I want to add my school.
if you need a real url: https://hak-liezen.at

@chrisimi Pull request merged. Thank you!


Link to contract missing from /ui/relationships page

As of 1.17.1 we've noticed the links to the contracts have disappeared:

Viewing the source, all of the href and HTML elements are still present with the exception of the icon itself.

It's to do with the haml version change. Thanks for fixing.


Package request: equibop

Project description
A custom Discord App (a fork of Vesktop) aiming to provide better performance and improve linux support. Equicord (an enhanced version of Vencord) is preinstalled.
Metadata

homepage URL: https://github.com/Equicord/equibop
source URL: https://github.com/Equicord/equibop
license: gpl3
platforms: linux

+1

+1

I'll try tackling this. Should be simple, in theory.

https://github.com/NixOS/nixpkgs/pull/349863 for those tracking this issue.


Added notifications-core and notifications to 2.0.

Signed-off-by: dblock<EMAIL_ADDRESS>Description
Simpler alternative to https://github.com/opensearch-project/opensearch-build/pull/1956. Requires https://github.com/opensearch-project/notifications/pull/403
Issues Resolved
Closes https://github.com/opensearch-project/opensearch-build/issues/1950.
Check List

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

As discussed in #1956 we will go with #1957 for now.
This allows us to use existing code base and functionalities to resolve the problem without changing too much for this specific use case.
Thanks.

CI was failing on checks because it tries to execute ./gradlew in notiications/core which doesn't exist. I just removed the checks for now. Really notifications/core feels like a very weird hack all around.

Codecov Report

Merging #1957 (e13dca1) into main (8522a31) will increase coverage by 5.53%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##               main     #1957      +/-   ##
=============================================
+ Coverage     94.46%   100.00%   +5.53%
=============================================
  Files           179         6     -173
  Lines          3649       105    -3544
  Branches         29        19      -10
=============================================
- Hits           3447       105    -3342
+ Misses          196         0     -196
+ Partials          6         0       -6

Impacted Files
Coverage Δ

...ts_workflow/component_opensearch_dashboards_min.py

...RunBwcTestScript_OpenSearch_Dashboards_Jenkinsfile

src/assemble_workflow/bundle_url_location.py

src/build_workflow/builder.py

tests/jenkins/jobs/SignArtifacts_Jenkinsfile

src/ci_workflow/ci_check_gradle_dependencies.py

tests/jenkins/jobs/Messages_Jenkinsfile

src/run_build.py

src/manifests/input_manifests.py

src/ci_workflow/ci_check.py

... and 163 more

Continue to review full report at Codecov.

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

I have tweaked the build.sh so it will build correctly now.

This will go in with another PR: https://github.com/opensearch-project/notifications/pull/404

Seems like notifications due to name field is not matching the repo name of notifications.
It is better to save the build scripts in build repo not notifications repo.

Seems like notifications due to name field is not matching the repo name of notifications.

I don't think so. The check for notifications-core just failed with gradlew being not found, because there's none in notifications/core. Build works because we have notifications/core/scripts.

It is better to save the build scripts in build repo not notifications repo.

Build scripts change version-to-version, so they need to be different and follow notifications branching. If you leave them in opensearch-build with these changes, 1.3.x will start failing.

@peterzhuamazon Can we add the checks back or are they still failing?

@peterzhuamazon Can we add the checks back or are they still failing?

They will not pass as notifications structure is different from any other repos.
They need to build within notifications folder, but working directory is pointing to notifications/core and notifications/notifications and those two folders does not have gradle wrapper to run the tests.

@gaiksaya fixed in https://github.com/opensearch-project/opensearch-build/pull/1959


[server] Create ERD diagram

This was merged into master, but it's not in the master. What is going on with this rebasing, @Puckoland ?


fix: uninstall anp failed and failed to upload agent cert to tenant

What type of PR is this?

/kind bug
What does this PR do?

Which issue(s) does this PR fix?

Fixes #
Special notes for your reviewer:

Does this PR introduce a user-facing change?

/lgtm


Doesn't fit inside container unless width/height are hard-coded

I'd like the Swiper to take up the full size of its parent View element. Approaches:

If I don't specify width and height attributes, the Swiper element extends outside the parent container to full-screen (gets size from device properties?).
Styling the container doesn't appear to have any effect.
If I hard-code width and height attributes it will sit inside the container, but I don't want to hard-code these numbers.

If the container is indeed flex:1, I'd expect it to expand to the parent container size rather than the full screen dimensions. Is there a way to achieve this?

I'm facing same issue

Okay, so this is horrendously ugly on multiple fronts, but depending on how many times you need to do this… This does work for me… I'm basically just measuring the parent container after it renders (plus a timeout), then just hard-coding it anyway. It's really not great. Forgive the ES6/7 notation, but it should be reasonably straightforward. Let me know if not. Or if you have a better solution.
export default class ItemSwiper extends React.Component {

  constructor(props) {
    super(props)
    this.state = { width: null, height: null }
  }

  componentDidMount() {
    setTimeout(this.measureSwiper)
  }

  storeSwiperLayout = (ox, oy, width, height, px, py) => this.setState({ width: width, height: height })

  measureSwiper = () => this.refs.sillyWrapper.measure(this.storeSwiperLayout);

  renderSwiper = () => {
    if( this.state.width > 0 ) {
      return (
        <Swiper style={styles.swiper} width={this.state.width} height={this.state.height}>
          { this.props.items.map(i => this.renderItem(i)) }
        </Swiper>
      )
    }
  }

  render() {
    return (
      <View style={styles.sillyWrapper} ref="sillyWrapper">
        { this.renderSwiper() }
      </View>
    )
  }
}

Also had to add:
  componentWillReceiveProps(props) {
    if( props.width ) this.setState({ width: props.width || width })
    if( props.height ) this.setState({ height: props.height || height })
  },

to the swiper module so that changes have an effect. Could just extend Swiper to add these.

I just changed the container style position: 'relative' to flex: 1 in index.js and Voila!

@nickmaxwell10 Haha, that's wayyyyy simpler! Oof. A month into RN now and some things that were so difficult have become so easy…

@rreusser yeah flex:1 works fine, RN have a flex-like layout system easy to fit container

I have the same issue, Could you please post a where flex:1 has to be set..?

Same problem here

Any workarounds on this ?

@rafaelcorreiapoli Haven't looked at this in a long time so not sure exactly if/what the flex/positioning fix is, but honestly my approach was to rewrite the part I needed, which was really just the page indicator: https://github.com/rreusser/react-native-paged-scroll-view It's definitely not perfect, but that was my workaround.

@rreusser  Nice! thanks, I will try it out

@rafaelcorreiapoli Disclaimer: @leecade's swiper actually works very well, but the flex issue and adding/removing items dynamically and styling things differently meant it was more straightforward to implemented the restricted subset of functionality. Suggesting mine as just another alternative depending on your needs, but not to take away from this repo. 😄  Also, it seems like I might have a small race condition going on, so I can't guarantee my approach is 100% perfect, but it worked great in production for us. Not working with RN much at the moment, but don't hesitate to let me know if you have issues with it. Good luck!

Hi,
There is another approach.
In the index.js I add onLayout event for the component View and then I can set state width and height.
setSize(){
    const w = Dimensions.get('window').width
    const h = Dimensions.get('window').height
    this.setState({width:w, height:h})
}
render() {
..
return(
<View style={[styles.container, {
        width: state.width,
        height: state.height
      }]}
        onLayout={this.setSize.bind(this)}
      >
..
)

This works for me :)

Similar to kbrk's approach, I use the following workaround.
In my code that uses the Swiper, I have the following.  Seems to work perfectly for me.
	constructor(props){
		super(props);
		this.state = {
			width: 0,
			height: 0
		};
	}

	setSize(event){
		const w = event.nativeEvent.layout.width;
		const h = event.nativeEvent.layout.height;
		this.setState({width:w, height:h});
	}

	render() {
		return (
			<View style={{flex:1}}>
				<View style={{flex:0}}>
					... Some content on the header
				</View>
				<View style={{flex:1}} onLayout={this.setSize.bind(this)}>
					<Swiper
						height={this.state.height}
						width={this.state.width}
						...
					>
						... Some content
					</Swiper>
				</View>
			</View>
		);
	}

@joehui - Your solution worked for me. Thanks


MAINT: remove unused itertools-import in scipy.interpolate._interpolate

I stumbled over this today, and wanted to double-check before we remove it.
AFAICT this couldn't have shown up in from scipy.interpolate import * due to the presence of __all__ in that module further up. I didn't test this at the time we last had this discussion, but I didn't manage to itertools to import (much less warn) through scipy.interpolate, neither in 1.11.4 nor on main.
I think we can just remove this now.

Thanks @h-vetinari ! This definitely should (even must) go. Merged.

Looks like the test was missing, but the intended behavior was
from scipy.interpolate.interpolate import itertools

DeprecationWarning: `scipy.interpolate.interpolate.itertools` is deprecated along with the `scipy.interpolate.interpolate` namespace. `scipy.interpolate.interpolate.itertools` will be removed in SciPy 1.13.0, and the `scipy.interpolate.interpolate` namespace will be removed in SciPy 2.0.0.

It's fine to take them out now, I suppose, since we're headed into 1.13.0 (even if it's earlier than expected).


Add list container and move symbol constants into atom type.

I've simplified the scope for this PR to keep it manageable in size.

Merge symbol constants into atoms.
Add type validation and validated list compilation.

I ended up taking the general-purpose recursive jype out of this version.  I want to go back to it, but it was nice to get a working model with things a bit too hard-coded than keep hammering on the nebulous part of the problem.

Summary of changes to review:

/tests/lib changes are only to AST; no review necessary
main.hoon likewise just rearranging deck chairs
/lib/jock.hoon has four kinds of changes:  the symbol merge (changes to %atom), which can be sanity checked but static typing saves us trouble; parser changes for list syntax, like +hart; +jeam of %list; and +mint of %list.


Ensure that install.yaml and install-with-argo-cd.yaml under manifests/ points to the desired ApplicationSet version.

Hmm, I guess you can open tasks via the checklist? :eyes:


ftp.c: Fix num_to_month

Your first version was an array of non-const pointers. It means it costs 4 * 12 = 48 bytes in .rodata and 4 * 12 = 48 bytes in .data, total 96 bytes.
The second one is not static and strings are not const, so it will cost 48 bytes in .data and 48 bytes in stack, and it needs code to build the array, so total is more than 96 bytes.
My commit solves the problem. It only cost 48 bytes in .rodata.
The first one may have caused a problem with psp2-fixup because pointers in .data refers to .rodata. I'll fix it as soon as possible.

Thanks for the tip!


MINOR: Support auto-incrementing offsets in MemoryRecordsBuilder

Jenkins is being a bit slow, tests passed locally. Merged to trunk.


Add an expiration date/time for an applet

Obviously the scheduling of applets is solid gold on Tidbyt, but being able to schedule an expiration of an applet would be amazing.
I love being able to schedule my applets to create the experience that I want. But sometimes I add messages/info with applets that are ephemeral. Example:

What's for dinner
What activity is today
Daily message for a specific day

And rather than having to go back to remove these applets, to prevent stale info from being on our Tidbyt, it would be even better if I could set an expiration date/time.
That way, the applet could show until I want it, and will fall off the list without having to manually mange it.

This is very similar to this request: https://github.com/tidbyt/pixlet/issues/229
Clearly being able to set a TTL on a webp that is sent to the device would be really useful.


[Feature]: Missing links to the websites in the home page in the section "suported by:"

Is your feature request related to a problem? Please describe.
When I click the icons that are under "supported by" it doesn't take me anywhere.
Describe the solution you'd like
I will be working in adding a link to each website
Alternatives
No response
Additional Context

Are you interested in contributing?

[X] I'd like to work on this issue

Code of Conduct

[X] I have used the search function to check if an issue already exists
[X] I agree to follow this project's Code of Conduct

Hey @RitaDee, thanks for wanting to contribute. This got solved in last PR, you can take up some other issue

Thank you @pranshugupta54 for your feedback.


Use atomic properties in selections

This PR contains a bit of cleaning for the selection code (4 first commits) and then implement the use of properties in selections, as discussed in #178.
The syntax used is [<property>], e.g. [is_hetatm], [chainid], etc. Properties with spaces are supported with quotes: ["why not?"]
For multiple atoms, the variable part comes after the closing bracket [chainid](#3).
Because there is no way to know whether we are parsing a property to be evaluated as a boolean, a string or a number, the parser try to find the one that matches by the context: if the property is followed by 'and' or 'or', then use it as a boolean. If it is followed by a string; == or != and then a string, use it as a string. Else use it as a number. Then, during the selection evaluation, and error is thrown if a property with this name exist but has the wrong type.
Finally, missing properties are evaluated to false for boolean properties (which prevent making a difference between missing properties and properties set to false); to an empty string for string properties; and to NaN for numeric properties. Vector3D properties are not supported.
Unresolved questions:

[ ] What should the syntax be for variables? [short](#3) and ["long prop"](#3) or [short(#3)] and ["long prop"(#3)]
[ ] Should missing numeric properties evaluate to 0 instead of NaN?

TODO

[x] Documentation
[x] Changelog

This is ready for a final round of review!

I checked this out, certainly solves #178.