One cluster can't handle more than one class

I think I've found another bug related to the cluster notion.
Here's the stack trace:
com.orientechnologies.orient.core.exception.OSchemaException: Cluster with id 16 already belongs to class Human
	at com.orientechnologies.orient.core.metadata.schema.OSchemaShared.checkClusterCanBeAdded(OSchemaShared.java:485)
	at com.orientechnologies.orient.core.metadata.schema.OClassImpl.addClusterIdInternal(OClassImpl.java:2114)
	at com.orientechnologies.orient.core.metadata.schema.OClassImpl.addCluster(OClassImpl.java:1079)
	at orientdb.OrientDbTest.lambda$addingClassesToTheClusterShouldWorkWithoutExceptions$3(OrientDbTest.java:133)
	at orientdb.OrientDbTest$$Lambda$2/1269773610.accept(Unknown Source)
	at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
	at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
	at orientdb.OrientDbTest.addingClassesToTheClusterShouldWorkWithoutExceptions(OrientDbTest.java:131)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:78)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)

And here's the test method. You can run it with mvn test -Dtest=orientdb.OrientDbTest#addingClassesToTheClusterShouldWorkWithoutExceptions.
I expected that OrientDB could handle this use case, but it couldn't. What I'm trying to do is to attach two classes to the single cluster so I'd be able to query each of them by, like so:
SELECT FROM CLUSTER:<cluster_name> WHERE @class = <class>

or truncate all records from the particular cluster:
TRUNCATE CLUSTER <cluster_name>

hi @maseev
from OrientDB 2.0 is not possible to have two classes in one cluster.
See here
http://orientdb.com/docs/2.0/orientdb.wiki/Concepts.html#class

So, If I understood you correctly, you mean I have to attach a base class to the Cluster and then save all objects which would have some derivative types by specifying the cluster name, right?

You shouldn't attach classes to clusters.
The engine does that job for you.
You should only create classes and inheritance between them.
For your example i see that you have model
Human
Person
Employee
Citizen
You can just let
Employee extends Human.
Citizen extends Human
Then you can do this query
select from Human where @class = <class>
or if you are interested only in Employee
select from Employee

Now I see what you mean. Unfortunately, this isn't my case. What I'm trying to do is to logically separate data among let say, different users. So, for example, we'd have a Human class and an Employee class. The Employee class extends the Human class. Now I'd like to separate two records of class Employee from each other. If I could attach more than one class to a single cluster that would have resolved my problem. I would simply query the Employee class like that:
select from cluster:<cluster> where @class = <class>

But now I have to add some id field that would be used instead of this thing with clusters.

Now I'd like to separate two records of class Employee from each other.

Can you explain what this means a bit more?
Scott

@maseev  if you want to separate records of Employee class you can
use multiple clusters.

It simply means that one user can only see only a subset of data. At first, I thought that I could solve this problem by creating this cluster for each user and attaching classes to them, but it turned out that OrientDB doesn't work that way.

@maggiolo00 I would have to create a cluster for each entity class that is used in my application. Isn't it a waste of space?

So, you are trying to create a form of multi-tenancy?
Scott

@maseev
OrientDB has limits on cluster number (32,767)
http://orientdb.com/docs/2.1/Limits.html#limits
Maybe is not eh better strategy. If you want to allow a user to see a subset of data you could use Record level Security
http://orientdb.com/docs/2.1/Database-Security.html

@smolinari yep, that's correct.

I think I'll try the approach with the id field that would describe a specific user to which an entity belongs.
So I could query a specific class by specifying an additional id field like so:
select from <class> where user_id = <id>

Ok. You might be better off using a tenant-id.
The other choice is using the record level security that @maggiolo00 mentioned.
http://orientdb.com/docs/2.1/Database-Security.html#record-level-security
That means you give your tenants their own user to access the database and ODB will take care of the rest.
Scott

@smolinari, @maggiolo00 Ok, I'll have a look. Thank you guys for your help. I think we can close this ticket.

You can close it yourself. :smile: Look next to the Comment button.
Scott

Oh snap! You're right :laughing:


webpack + react + node-zillow

Have you tried using the module along with webpack and react? i'm getting this obscur error when requiring the module:
index_bundle.js:36577 Uncaught Error: define cannot be used indirectmodule.exports @

I haven't tested this module with webpack, so I'd have to look into that error.  I can get to it next weekend or I welcome a tested PR.  Thanks for bringing this up.


injection "modalContext" not found.

Hi!
Very exited about this modal library for inertia 👌
I've tried implementing it as instructed in the docs. I've tried the method of adding ModalRoot to the render method in app.ts and the other approach where I simply add it to my BaseLayout, but I get the same error, when I wrap my page in the Modal component.
[Vue warn]: injection "modalContext" not found.

...

@inertiaui_modal-vue.js?v=e87c9b02:4944 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'value')
    at setup (@inertiaui_modal-vue.js?v=e87c9b02:4944:16)
    at callWithErrorHandling (chunk-ZJU3A6B3.js?v=e87c9b02:2477:19)
    at setupStatefulComponent (chunk-ZJU3A6B3.js?v=e87c9b02:8949:25)
    at setupComponent (chunk-ZJU3A6B3.js?v=e87c9b02:8910:36)
    at mountComponent (chunk-ZJU3A6B3.js?v=e87c9b02:6439:7)
    at processComponent (chunk-ZJU3A6B3.js?v=e87c9b02:6405:9)
    at patch (chunk-ZJU3A6B3.js?v=e87c9b02:5921:11)
    at ReactiveEffect.componentUpdateFn [as fn] (chunk-ZJU3A6B3.js?v=e87c9b02:6549:11)
    at ReactiveEffect.run (chunk-ZJU3A6B3.js?v=e87c9b02:1770:23)
    at setupRenderEffect (chunk-ZJU3A6B3.js?v=e87c9b02:6677:5)

When I remove the Modal component and inspect the app with Vue devtools, I see that the ModalRoot should be in play.

It would be a good idea if you could show your code. That's the quickest way we can see where things are out of order. From what I have discovered, it could either be you haven't used ModalLink on where you are clicking to open the modal. Either you have just used Inertia Link or something else. You should use
<ModalLink
as="button" :href="route(your route name to the Modal)">
Open Modal
</ModalLink>

NB: You don't have to make the ModalLink as="button" attribute, but I just like it so that I don't show paths to the user when they hover over the link.

Thank you @MotionPhix! I was just trying to reload the original route - and didn't realise this would result in an exception.


Resource limits: fixup

@hashbang/administrators This is a hotfix for #183, please review ASAP.

@RyanSquared Thanks for the quick review.
@hashbang/administrators I also deployed the limits for all logged-in users:
$ ansible shell_servers -m shell -a 'for PAM_USER in $(who | cut -f1 -d" "); do export PAM_USER; sh /etc/security/limits.sh; done'

da1.hashbang.sh | SUCCESS | rc=0 >>
sf1.hashbang.sh | SUCCESS | rc=0 >>
ny1.hashbang.sh | SUCCESS | rc=0 >>
to1.hashbang.sh | SUCCESS | rc=0 >>


Help with /var/www/html error

I am trying to use this stack to deploy my own artifacts and run my site with this stack.  I continue to run into this issue where it complains about not being able to see /var/www/html.  I don't have a /var/www/html on my OS and I can't find where the container mounts it.  I'm not as worried about the db connectivity, as I can figure that out.  It is the /var/www/html that has me perplexed.

I have tried adding RUN usermod -u 1000 www-data to my Dockerfile and doing a docker-compose build with no luck.  Any help/guidance would be greatly appreciated!
Ubuntu 20.04 is the OS I am using.

Hi @armandojs ,
Thank you so much for taking the time to respond to my issue!!!  I will give this a shot.

For the database connectivity issue:
Hey, I had a similar issue getting database connection fatal errors which took me a long time to realize and resolve (as a beginner). The fix was easy once you know it, of course. I am putting this here in case it helps anyone.
If you can't connect to mysql via localhost or <IP_ADDRESS> inside php container that is because there is no mysql installed in the php container. You must connect via the container name of your database. Or docker inspect your mysql container and get the container IP address.

I agree. Once using the docker assigned IP address, connectivity was a breeze. Thanks for all of the help!

Hi great to hear the community was able to help you.
Please let us know if we can describe database related things better in the readme. I'm open to pull requests regarding this, since the database questions are popping up quite often.


Integrated Browser

It would be really helpful if we can integrate any browser with the Terminal (in a different tab maybe). That will avoid having to go to another Window to test the application (for example).

Oh man, I tried doing this about a year ago. This is what started #1080. As it turn out, we can't use a WebView with the system XAML Islands, so we actually can't do anything like this until WinUI 3.0 lands, and we can use that implementation of XAML Islands.
It's a perfectly great idea, so I'm gonna throw it in the #4000 pile.

I'm inclined to NAK this one, actually. We will never be able to host a browser, even as an extension, that is going to be viable for use as a browser with all the right navigation and UI/UX affordances. I don't even think that it's right for an extension author to go down this road, and I don't think we should encourage that by leaving this issue open as even a suggestion.
Browsers serve an incredibly specific purpose, and that purpose overlaps not even a little with that of a terminal emulator.

I think what's really desired here is simply the ability to combine browser tabs with Terminal tabs like was originally happening with Sets. An extension that supported this would be ideal. If this occurred, the use-case above (a very common one at that) would simply be a matter of switching the tab instead of window. The keybinding for switching tabs would ideally also be supported in this scenario, though that should be left to the browser to decide, not Terminal (which I believe just follows normal Windows conventions by default).

But, like... Terminal is one component of a development environment. It's an important one, yes, but it's not going to grow to encompass typescript compilation or project workboard management or team chat or any number of other things that there are very good dedicated tools to do. Browsers are incredibly diverse and divisive, and we're better served by letting users choose (and mixing and matching) the components of their development environments than by trying to be the be-all end-all tool.
Even VSCode, which does purport to handle a bunch of those things, doesn't seem to have an ordained browser preview extension -- and it's literally a browser with a text editor inside it!

So, I'm gonna close this but I'm not going to lock it. Let's continue the discussion.
My word is not, and cannot ever be, truly final :smile:

Zawinski's law of software envelopment: Every program attempts to expand until it can read mail. Those programs which cannot so expand are replaced by ones which can.


Not a bug, just a question about WebGL template

Hi,
Hi could you please tell me, which parts in Agora2020 template (index.html) are essential for working. I need to change this template to have application stretched on full size (not fullscreen) and make custom loader. If somebody could please give sample for that changes it would be great.
Tried to use this: https://github.com/greggman/better-unity-webgl-template, but it is not working with Agora_Unity_WebGL
Thanks in advance.

@tomaszwozniak123 did you figure this out? Can you share your solution if there is one?

Yes, finally https://github.com/greggman/better-unity-webgl-template worked. Somehow I merged it with Agora 2020 template - it is not tricky, I just made some rookie mistakes at the beginning.


Typescript types

There are no types, so constructing an error this way in a project with types is still a type error. The needed type is:
interface Error {
  new (reason: string, options?: { cause?: unknown }): Error;

  cause: unknown;
}

Are there any existing examples of how to handle types correctly for both pure (const { Error } = require('error-cause')) and impure (require('error-cause/auto')) usages?

The type for Error is built into TypeScript. It’d be great if you wanted to make a PR to DefinitelyTyped to add types for this package.
Note that there is no import available from the main - you’re looking for require('error-cause/Error'). The type for that should be the same as the type for the global error after auto is used.

Ah ok. I wasn't saying the Error type isn't built into typescript, that's just the syntax TS uses to extend builtin types.

Ah and I was mistaken about the type. It should be:
interface Error {
  cause: unknown;
}

interface ErrorConstructor {
  new (reason: string, options?: { cause?: unknown }): Error;
}

Please add me as a reviewer if you make a DT PR.
(Types are best shipped separately, so as not to conflate the semver of the implementation with that of the types)

Mmm gotta love that megarepo. And I need a newer git in WSL Ubuntu to do a sparse checkout... Maybe I should have built from sources instead? Seems to work though.

SyntaxError: Unexpected token } in JSON at position 191
    at JSON.parse (<anonymous>)
    at /home/conartist6/dev/repos/DefinitelyTyped/node_modules/dtslint/bin/util.js:40:21
    at Generator.next (<anonymous>)
    at fulfilled (/home/conartist6/dev/repos/DefinitelyTyped/node_modules/dtslint/bin/util.js:24:58)

It wouldn't even be javascript development if you weren't hampered by the problem you're out to fix while developing the solution.

ERROR: 6:1  expect<EMAIL_ADDRESS>expected type to be:
  'Error'
got:
  "Error"

Thank you so helpful.

Also I'm not allowed to add reviewers and there are apparently two test scripts with different requirements.
Checker 1 (local):
Fails if I don't extend "dtslint/dtslint.json"
Checks some additional properties on tsconfig.json (agrees with docs)
Checker 2 (CI):
Fails if I don't extend "dtslint/dt.json", (agrees with the docs)
Checks some additional properties on tsconfig.json (undocumented)
Oh and though the docs don't say it if you're adding a package you make a directory but you also need to add it to your sparse checkout or else it will disappear.

I know you don't really care about all this since I'm taking care of it for you, but that's kind of my point. We go tell other devs "oh just go do this thing" and it's almost never remotely that simple or we'd have done it ourselves. Now I know you've made a name for yourself and have lots of important responsibilities, but stuff like this costs me the time (and more importantly the sanity) I'd be using to do the work that would make a name for myself.

Error: At 1:1 : Expected /\/\/ Type definitions for (non-npm package )?/

Another instance of an error message without the crucial runtime data needed to interpret and fix it. Good thing I'm good at guesswork. But that's why I'm doing this I guess.

Hmm ok some more unspecified things that have to go in tsconfig. They couldn't be warned on earlier because apparently the parser just blows up if it doesn't find certain things it's hoping for. Oh and prettier isn't set up to strip trailing commas from json files, though all the parsers treat them as errors.
WHHHHHHHHHHHHHHHHEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
So my question to you is this? How do you go into development in good faith and not end up incredibly bitter? Is it me? Am I the problem? Also I know what I'm doing! I can't imagine how infuriating this would be for someone who didn't have all the knowledge I have that lets me get to the bottom of these issues pretty rapidly without help.

Error: error-cause: Only index.d.ts may be listed explicitly in tsconfig's "files" entry.
Other d.ts files must either be referenced through index.d.ts, tests, or added to OTHER_FILES.txt.

FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

Error: Unused file ./types/error-cause/error-cause-tests.ts (used files: ["index.d.ts","tsconfig.json","tslint.json"])

So far about four hours of a process about as therapeutic as banging my head on a desk to check in some code that took about half an hour to write.
Isn't this just a self-perpetuating system? Like, I could try to fix all these problems that I've encountered, but I down own that stuff but:

It isn't my responsibility
There are things I am responsible for
I've already used 300% of the time I had to spend on this

Error: Expected file 'tests/auto.test.ts' to be named 'error-cause-tests.ts' or to be inside a './types/error-cause/test/' directory

Yeah but not enough to document it. Maybe alcohol will help me! Let's find out.

Error: Unused file ./types/error-cause/test/Error.test.ts (used files: ["auto.test.ts","pure.test.ts"])

Ah yes a file is not used when it is used by a file that is used. Because of course it isn't.

@ljharb https://github.com/DefinitelyTyped/DefinitelyTyped/pull/56086
IT IS COMPLETE.
If you read all this, I'm sorry.

lol, thanks.
to add people as reviewers in DT, you add their names inside the "Definitions By" section.

Types package is published.


Secure Cookies

See #145 for initial discussion
We would like to give users the ability to flag all cookies as secure: https://www.owasp.org/index.php/SecureFlag

I'll drop 1.9.3 in the next major release, but for now please make travis happy.

Woot. I'll release this with https://github.com/twitter/secureheaders/pull/232 tomorrow.

:beers:


PHP 5 backwards compatibility

return ($this->client::VERSION[0] == "5"); doesn't work on PHP 5.6. It triggers the syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM) error.

@dennie170 - thanks for this.
We'll add a PHP 5.6 to our test environment to check for these types of issues in the future.


NoSuchBucket error during AVM deployment

I created an S3 bucket but still getting the error below. There is no logs to trace where the issue is

AccountBuilderLambda
CREATE_FAILED
Error occurred while GetObject. S3 Error Code: NoSuchBucket. S3 Error Message: The specified bucket does not exist (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: 72eddeb5-9db9-41a7-809b-d77e3c2a5463)

Faced the same issue. You've to change the bucket name in few places inside the yaml codes. Otherwise just go with the default bucket provided in the CFN template.

Adding to the response by @praveenchaks.
The code works as expected for the default Amazon S3 bucket provided in the solution. If you want to use your own S3 bucket, upload the resources in this repo to your bucket, and make the required changes in your AWS CloudFormation template where the default bucket is referenced.
Considering this issue closed, please reopen if you continue to face issues.


Fix timestamps for PR project

Context
According to this issue https://github.com/rfcx/arbimon-uploader/issues/228 and reported from user https://rfcx.slack.com/archives/C03FD1WD02J/p1719236645555979 that the Uploader uploaded the AM files with UTC configuration wrong (uploaded with the site timezone), we will have to fix the timestamps for this project.
Project: https://arbimon.org/project/puerto-rico-island-wide/audiodata/recordings
@rassokhina-e Please share your site list in this sheet and I will ask for the list from user as well so that we can double check the we cover all of them.

The site I'm working on now GUI08. My plan is to fix this problem, then Noon will review the site, if the timestamps are okay, we will fix all related sites.


fix: makefile error, wget zlib-1.2.12 file not found - http 404

fix up wget file not found error, wget https://zlib.net/zlib-1.2.12.tar.gz http response 404, update version to zlib-1.2.13.tar.gz

Thank you!


Position Encoding of EVA-2

Hi, I found the EVA-2 adopts both learnable positional embedding and rotary embedding at the same time. Why do you choose such design? Thanks.

Hi, how do I modify this rotary embedding when my image input shape is not H == W?


[Candidate 1v1 Kinky Fields ZH v1] Should this map be ranked?

Issue Description
Map displays caged woman with screams. Looks inappropriate. Should it be ranked?
Expected behavior
Map is removed from candidate maps.
Screenshots

Killing fields is an official map and is one of the worst maps ever. This is a remake of that and with the idea to make it fun. It fits all requirements and should become RANKED. It will bring joy and laughter to those that play it.

Imo it still shouldnt be a RANKED map its unfinished bad/inappropiat looking with annoying sounds.

I am in favor of removing this map. It does not fit the professional style of other ranked maps. And it might be offending to female audiences.

There has been no further input on this matter. Map will be moved to backlog.


Yeoman and Brunch

What the difference between Yeoman and Brunch ?

My 2 cents about Grunt, Brunch, Yeoman and pure NPM based solutions: http://you-have-ruined-build-systems.surge.sh/


When I run gui.bat i get this error.

Exception: Error: [1000] Message:       Font file could not be found
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Program Files\Python312\Lib\site-packages\dearpygui\dearpygui.py", line 1905, in font_registry
yield widget
File "C:\Users\Administrator\Downloads\host\python-files/host.py", line 24, in
with dpg.font("font.ttf", 20) as font1:
File "C:\Program Files\Python312\Lib\contextlib.py", line 137, in enter
return next(self.gen)
^^^^^^^^^^^^^^
File "C:\Program Files\Python312\Lib\site-packages\dearpygui\dearpygui.py", line 1878, in font
widget = internal_dpg.add_font(file, size, label=label, user_data=user_data, use_internal_label=use_internal_label, tag=tag, pixel_snapH=pixel_snapH, parent=parent, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError:  returned a result with an exception set
During handling of the above exception, another exception occurred:
Exception: Error: [1009] Message:       No container to pop.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Administrator\Downloads\host\python-files/host.py", line 23, in
with dpg.font_registry():
File "C:\Program Files\Python312\Lib\contextlib.py", line 158, in exit
self.gen.throw(value)
File "C:\Program Files\Python312\Lib\site-packages\dearpygui\dearpygui.py", line 1907, in font_registry
internal_dpg.pop_container_stack()
SystemError:  returned a result with an exception set
Press any key to continue . . .

Please make sure you extract all files in the correct order, and make sure you don't miss any files. You can make a new folder, and extract all files in there

Update: try to move theme and font.ttf files into the same folder you have your .bat files, as some versions of python may open the files in the wrong directory

Latest release should fix this issue. https://github.com/dsinkerii/messedup-settings/releases/tag/1.1F


Hotfix/v1.1.1 -> master

Closes #551

this has somehow more changes than it should have?

this has somehow more changes than it should have?

That is weird.

I've merged #483, but somehow after that, dev got merged into the hotfix branch, see: https://github.com/OpenEnergyPlatform/ontology/network
No idea, what I've done wrong.

No idea, what I've done wrong.

Hm, I've resolved a conflict in CONTRIBUTING.md but this shouldn't have merged the whole dev branch into the hotfix branch. At least in my understanding what git(hub) should do...

I'll just push the changes from #554 here too as it will cause the same problem

Somehow we should exclude the addition of the sensitivity analysis class as the hotfix should fix the problem with the version numbers in all of the files.

Somehow we should exclude the addition of the sensitivity analysis class as the hotfix should fix the problem with the version numbers in all of the files.

@l-emele I removed it, this should be fine now

I close this without merging as we do now the 1.2.0 release instead of a hotfix 1.1.0 release.


vcnc-rest: a new rethink.js module manages database schema revisions

Fulfills #7
I used a shorter table name ('about' rather than 'about-this-database').  Also threw in some new environment variables for commonly-overridden configuration items.

I made some comments to this code.

Thanks for your comments, Yefim.  I believe I've answered all your comments, so I'm going to go ahead and merge this.  But, if you strongly disagree with what I am doing and think I am making a mistake, please continue to comment in this pull request and your concerns will be addressed.

Spoke with Yefim and while he's not crazy about all of this, he has no objections.  Merging to master.


Happy birthday :gift:

https://github.com/solnic/virtus/pull/348

Ok, closing it as #348 was first.


PHP - Retry conformance in Google\Cloud\Storage\StorageClient breaks streaming large files using registerStreamWrapper

Code:
$storage = new StorageClient([
	'projectId' => ...,
	'keyFile' => ...,
]);
$storage->registerStreamWrapper();
$f = fopen('gs://path/to/very/large/file', 'r');

Before commit a8211f2:
code runs fast (<1s, regardless file size or connection speed). $f is referencing a readable stream and can be used without fully downloading the file
After commit a8211f2:
code runs slow (depending on file size and connection speed), the file is fully downloaded on the client machine. $f is referencing a readable stream  from the local file
Possible cause: in vendor/google/cloud-storage/src/Connection/Rest.php:350
Utils::copyToStream($fetchedStream, $resultStream);
makes a full download of the stream, since registerStreamWrapper doesn't manage ['restOptions']['headers']['Range']

Thank you for filing this issue, and for your thorough research into the problem. I will take a look at this and see if I can't identify the issue.

@bogdanstoik I created a fix here. You can install it with composer by doing something like:
composer require google/cloud: dev-fix-storage-streamwrapper as 0.500.0

It will be in this week's release or next week, but we'd love to have you test it first to ensure it fixes your issue specifically!

I can confirm the patch fixes my specific issue. Thank you so much for the quick response!

@bogdanstoik thank YOU for notifying us of the problem and providing such a detailed issue as to make it easier to track down.

This is now fixed in google/cloud-storage: 1.42.1


How to realize the waterRipples effect on the latest version？

Issue details
As the title,I can realize waterRipples effect on The Old version,but How to realize the waterRipples effect on the latest version？Thanks in advance
Version of LibGDX and/or relevant dependencies
1.9.7
Please select the affected platforms

[ ] Android

Please use the forum or the irc channel for these sorts of questions.
https://libgdx.badlogicgames.com/documentation/help/Community Help.html


Improve wait time calculations

The current wait time is a 75% confidence interval with a hardcoded expected avgHelpTime = 10 (minutes) divided by the number of staff available. Empirically we've found that this causes the interval to fluctuate a little too much. To see this, try varying the number of online assistants. We should develop a better way of calculating this and perhaps estimating parameters based on data instead of magic numbers.

By "based on data instead of magic numbers", is this suggesting that we keep track of times taken to help students in the past and basing avgHelpTime off of that?

I can try to help with this one


jdk17_headless still installs Zulu v16 jdk on aarch64-darwin

Describe the bug
On Darwin, trying to install jdk17_headless still installs Zulu version 16
Steps To Reproduce
Steps to reproduce the behavior:
(on aarch64-darwin)
nix-shell -p jdk17_headless --command "java --version"
openjdk 16.0.1 2021-04-20
OpenJDK Runtime Environment Zulu16.30+19-CA (build 16.0.1+9)
OpenJDK 64-Bit Server VM Zulu16.30+19-CA (build 16.0.1+9, mixed mode)

Expected behavior
Openjdk17 should be installed instead of the v16 Zulu jdk
Output on linux for example:
nix shell nixpkgs/nixos-unstable#jdk17_headless
$ which java
/nix/store/y1g3vianvjp9jf25785bkjngzbrziq2n-openjdk-headless-17.0.1+12/bin/java

Additional context
OpenJDK 17 should install, as it has native m1 support: https://openjdk.java.net/jeps/391
Notify maintainers

@edwtjo
@asbachb
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
- system: `"aarch64-darwin"`
 - host os: `Darwin 21.1.0, macOS 12.0.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.5pre20211007_844dd90`
 - channels(shauryasingh): `"darwin"`
 - channels(root): `"nixpkgs-21.11pre327990.4789953e5c1"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

the entry in all-packages.nix is
  openjdk17 =
    if stdenv.isDarwin then
      callPackage ../development/compilers/openjdk/darwin { }
    else
      callPackage ../development/compilers/openjdk/17.nix {
        openjfx = openjfx15;
        inherit (gnome2) GConf gnome_vfs;
      };

and openjdk/darwin is still at 16 for some reason https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/openjdk/darwin/default.nix @marsam

Fixed by #143836:
$ nix-shell -p jdk17_headless --command "java --version"
openjdk 17.0.3 2022-04-19 LTS
OpenJDK Runtime Environment Zulu17.34+19-CA (build 17.0.3+7-LTS)
OpenJDK 64-Bit Server VM Zulu17.34+19-CA (build 17.0.3+7-LTS, mixed mode, sharing)


Add tutorials to the About page

Describe the bug
CEQ is ready to make the screenshot tutorials available on the About page. See screenshots for design / copy.
To Reproduce
Steps to reproduce the behavior:

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

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

Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

@vim-usds we should probably add the file sizes and type in a parenthetical:
Download the CEJST tutorial (.pdf 9.6 MB)
Download the spreadsheet tutorial (.pdf 5.4 MB)
thank you!


Changing the administrator list of a Kyma clusters doesn't update the role-bindings accordingly

Description
A change of the administrator list of a Kyma cluster (Gardener cluster) has to change the cluster-role bindings accordingly.
This modification is supported via the BTP cockpit. See also the documentation in SAP Help portal.
Steps to update the administrators of a Kyma Kubernetes cluster:

Click on Manage environment instance in BTP cockpit

Navigate to Environments and select Kyma

Click on View current configuration and edit the JSON and update the list of administrators

Alternatively, edit in the wizard the field Administrators

Expected result
Changes in the administrator list leads to adjusted ClusterRoleBinding resources in the Kyma Kubernetes cluster.
Actual result
Changing the adminstrator list ist not reflected in the available ClusterRoleBindings.
Steps to reproduce

Troubleshooting

@marco-porru : could we clarify with the customer whether this is a real bug or just a misunderstanding?

Yes: operations executed

add administrator in the Kyma environment json
update
opt out from it after some time because migrating to custom IDP management, again from the Kyma environment json

cluster role bindings like the one in the screenshot have never been removed:

API gateway of affected cluster: https://api.c-7c8f9e5.stage.kyma.ondemand.com/

@marco-porru I cannot reproduce the problem. Provisioner correctly removes, and adds cluster role bindings.

Adding, and removing administrator's bindings works in the Provisioner as expected. The described behaviour is caused by the Kyma Environment Broker. If the administrators list in the request to the KEB is empty, it will pass the list fetched from the database. As a result the bindings will be removed, and created by the Provisioner.

@PK85 : can you please take over and finally clarify what the right behaviour should be? From our analysis it's behaving as expected.


fix: Small fix for DustMagnet 5210i

this PR is to add some code checks to partially support the DustMagnet 5210i, apparently this device has less sensors/features and it's failing to get discovered with the error: retrying setup: pm1.
This solution is not great because home assistant will show those sensors as "Unknown" but it's better than nothing. I don't have a way to test the changes with other devices but I've tested it with DustMagnet 5210i and seems working fine.

thanks for helping me understand this problem, I pulled some safety code from another integration here https://github.com/dahlb/blueair_api/commit/501b60bcd741430478bf50bcfd696e11d4c7f2b9 and will try to avoid the unknown in the ha repo

https://github.com/dahlb/ha_blueair/commit/09851048630bdcec0b3e7b863a6d6b0707b9178f should handle hiding the sensors instead of them showing as unknown in version 1.7.2

Thanks!
I've tested the changes and it's failing retrieving the germshield state, I guess it's only a matter of using:
        self.germ_shield = safely_get_json_value(states, "germshield", bool)

instead of
        self.germ_shield = states["germshield"]

if you prefer I can create a PR for this

Sorry, I should've safety check all of them, thanks for following up and I'll push a fix with all the retrieval safety checked in a couple hours during lunch

updated and released in ha_blueair 1.7.3, if it works this time please ping https://github.com/dahlb/ha_blueair/issues/5 . if it needs another fix let me know here :) thanks again


Limiting Space Usage in LeanStore

Hi there,
Thanks for the continued great work on LeanStore.
I was wondering if it's possible to limit the space used on disk. I'm currently using the MVCC branch with the following YCSB command.
./build/frontend/ycsb --ssd_path=/mnt/ssd/ycsb --ssd_gib=900 --ycsb_insert_threads=40 --ycsb_payload_size=1024 --ycsb_read_ratio=100 --ycsb_tuple_count=10000000 --run_for_seconds=30 --wal=true --wal_fsync=true --wal_pwrite=true --worker_threads=40 --isolation_level=si --dram_gib=5 --pp_threads=20 --wal_log_writers=8 --wal_offset_gib=500 --recover=false --persist=true --persist_file=./ls.json
During the run after the fill, the Space entry of the statistics shows 19.3GB. I'm unsure if this directly relates to the space on disk, as it seems to be related to the buffer manager too. If it's displaying the space used on disk, would it be possible to limit the space used on disk to, for example, 15GB? Considering that the raw dataset size is around 10GB in this example.
I've tried reducing ssd_gib, but an assertion will fail as a page beyond the limit is allocated. After looking through the code, I also tried with --xmerge=true, as it seems to open up a path to reclaiming pages, but the results were similar.
Thank you.

Some insights:
LeanStore right now does not allow values to be separated on multiple pages.
The default PageSize of LeanStore is 4 KB.
Because you set ycsb_payload_size to 1024 the size of each value in a key/value pair is 1 KB-> the pair is bigger than 1 KB.
Therefore in best case only 3 pairs fit into one page, giving the total size of the leaf nodes:
10 000 000/3 * 4KB = 12.7GB
Worst case: 2 pairs / page:
10 000 000 / 2 * 4 KB = 19.1 GB
Because we use a B-Tree we have to add the size of some internal nodes.
You might take a look at the "written pages" given by
cout << "Inserted volume: (pages, MiB) = (" << written_pages << ", " << mib << ")" << endl; in frontend/ycsb/ycsb.cpp, line 137.
With this you can calculate (roughly) the average pairs/page.
What can you do?
Decrease value size, therefore more pairs fit into a leaf node, giving you a better fill factor.
Increase PageSize (same result).
I hope this helps.

@itodnerd thank you for the response. I was able to limit space usage using your suggestions.


Mappings verification

Description
[Describe what this change achieves]
Issues Resolved
[List any issues this PR will resolve]
Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

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

@sbcd90 , can you please review / close if this is no longer required.


Add Mihir's details

Add my personal details.

the request is accepted but my name is not getting displayed


Update behavior to match new workflow

Instead of checking off items, moves cards from column to column.

(it worked for me from picking up the story and moving them to each list 🌟 )

Thank you @kinopyo! 🕐


CovalentCoreModule not available

This repository's issues are reserved for feature requests and bug reports.
Do you want to request a feature or report a bug?
Report a Bug
Bug Report
After installing yo aspnetgenerator-spa I am trying to add CovalentCoreModule.
But getting unmet error:
UNMET PEER DEPENDENCY<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>| `-- UNMET PEER DEPENDENCY<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>Which version of Angular and Material, and which browser and OS does this issue affect?
Did this work in previous versions of Angular / Material?
Please also test with the latest stable and snapshot versions.
Other information
My dependencies are:
"dependencies": {
"@angular/animations": "^4.1.3",
"@angular/common": "^4.1.3",
"@angular/compiler": "^4.1.3",
"@angular/compiler-cli": "^4.1.3",
"@angular/core": "^4.1.3",
"@angular/forms": "^4.1.3",
"@angular/http": "^4.1.3",
"@angular/material": "^2.0.0-beta.6",
"@angular/platform-browser": "^4.1.3",
"@angular/platform-browser-dynamic": "^4.1.3",
"@angular/platform-server": "^4.1.3",
"@angular/router": "^4.1.3",
"@covalent/core": "1.0.0-beta.4",
"@covalent/dynamic-forms": "1.0.0-beta.4",
"@covalent/highlight": "1.0.0-beta.4",
"@covalent/http": "1.0.0-beta.4",
"@covalent/markdown": "1.0.0-beta.4",
"@types/node": "7.0.18",
"angular2-template-loader": "0.6.2",
"aspnet-prerendering": "^2.0.5",
"aspnet-webpack": "^1.0.29",
"awesome-typescript-loader": "3.1.3",
"bootstrap": "3.3.7",
"css": "2.2.1",
"css-loader": "0.28.1",
"es6-shim": "0.35.3",
"event-source-polyfill": "0.0.9",
"expose-loader": "0.7.3",
"extract-text-webpack-plugin": "2.1.0",
"file-loader": "0.11.1",
"hammerjs": "^2.0.8",
"html-loader": "0.4.5",
"isomorphic-fetch": "2.2.1",
"jquery": "3.2.1",
"json-loader": "0.5.4",
"less": "^2.7.2",
"less-loader": "^4.0.4",
"preboot": "4.5.2",
"raw-loader": "0.5.1",
"reflect-metadata": "0.1.10",
"rxjs": "5.4.0",
"style-loader": "0.17.0",
"to-string-loader": "1.1.5",
"typescript": "^2.3.4",
"url-loader": "0.5.8",
"webpack": "2.5.1",
"webpack-hot-middleware": "2.18.0",
"webpack-merge": "4.1.0",
"zone.js": "0.8.10"
},
Please help me with installing CovalentCoreModule.
Thank you

You need material beta.5. The CovalentCoreModule was removed in the beta.4 release. Since then developers have to import the modules that they need individually. In the docs there is more information related to this topic.

I looked at your package.json file
you have "@angular/material": "2.0.0-beta.6",
so do I (I made the change and remove the ^)
but still getting the same error.

Yea the dependency for material was incorrect. This was fixed a couple of hours ago. Run npm install --save @angular/material@2.0.0-beta,5 to install the correct version of material

Thank you.
That worked!

No worries :ok_hand:, consider closing the issue if solved


[pt run] apps don't launch proper folder

From #3422, a user requested copy file path, we have open containing folder however.
When trying out "word", this actually opens up the LNK folder, not the exe folder.
Example: I search for word and i get C:\ProgramData\Microsoft\Windows\Start Menu\Programs
In reality it should be: "C:\Program Files\Microsoft Office\root\Office16"

Afaik, this is the same behavior as the built-in search bar of Windows 10. At least, for me it is.

But what if ... we could do better :)

this is an enhancement, would love if someone could help out here but we are moving out of stability release due to not being an actual bug


Investigate how we can remove the IView/IView<'> situation in inline components

With the introduction of inline components in #220 I couldn't find a way to properly accept only IView<Inline> for the inlines property of the RichTextBlock. It's not a big deal, but it could be great if we could fix this to first of all avoid passing wrong props to the component and also to get rid of the needed :> IView cast in the first inline component.

I've also looked into this and there is no solution apparently (that I'm aware of).


Added calculated score for results

I added calculated score for the results returned. Fortunately this meant an almost total rewrite. If you feel this is not heading in the direction you want Doug, just let me know, and I'll release it as a separate function instead.
I also took the liberty of adding myself as a co-author of the function in the comment-based help :) Feel free to remove if you want to, I won't mind.

That's great! I think your's deserves to stand on it's own. I've seen fuzzy search approaches using edit distance algorithms. One of the reasons I posted mine was it returned the same results from a search that Visual Studio Code did and in only a handful lines of PowerShell.
I think there should be a collection of PS "modules" that folks can choose/learn from.

Sure thing Doug. I'll create my own repository for it then :) Just wanted to work with your code first, as I'm sure you have noticed on Twitter, there are people in the community vocal about not creating something that have already been created by others. I don't want to step on anyone toes :D
I'll close this PR. Thanks for the fast input!

Totally appreciated. Let me know when you create it and if you tweet it.


Errors in doc's code

Describe the bug
Errors in doc's code
You will have errors, if you copy this code: https://stripe.com/docs/payments/accept-a-payment?platform=react-native&ui=payment-sheet-custom#:~:text=before displaying the payment sheet%2C your checkout page should

If you don't use TypeScript, you have to rewrite this:

into this:
const [paymentMethod, setPaymentMethod] = useState({
image: '',
label: '',
});
Also here you have Button and code written into title(!):

change it to this:

Also 'paymentSheetEnabled' isn't declared in previous point. I simply removed it. May be it will be needed further
And styles are used but not specified. I found them in different files in docs, here they are:
const styles = StyleSheet.create({
section: {
marginTop: 40,
},
row: {
flexDirection: 'row',
alignItems: 'center',
marginBottom: 20,
},
text: {
marginLeft: 12,
},
image: {
width: 26,
height: 20,
},
});

To Reproduce
Steps to reproduce the behavior:
Install stripe-react-native and try to use it, following this docs:
https://stripe.com/docs/payments/accept-a-payment?platform=react-native&ui=payment-sheet-custom#:~:text=before displaying the payment sheet%2C your checkout page should%3A
Expected behavior
I expect that code should work in RN, if it is written for RN.

Thanks for this! Updating the docs now. BTW- the code written for the title prop on a Button does work, so it may be that you're on an older version of React Native?


orahost: 'facter_os' is undefined

The following error is shown during 1st execution of orahost role on some systems:
TASK [orahost : Install packages required by Oracle on OL/RHEL version 6 and 7] *******************************************************************************************************************fatal: [dbfs161]: FAILED! => {"msg": "The conditional check 'facter_os.release.major is version('7', '<=')' failed. The error was: Version comparison: 'facter_os' is undefined\n\nThe error appears to be in '/home/vagrant/git/ansible-oracle/roles/orahost/tasks/main.yml': line 13, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n  # OL8/RHEL8 has all needed RPMs in orahost role!\n  - name: Install packages required by Oracle on OL/RHEL version 6 and 7\n    ^ here\n"}
Please reexecute the role until fix is availible.

fixed by #51


Raise minimum dependency versions to enforce using a newer nix

Doing this for 0.3.x is not possible due to a raise in the MSRV.
Closes #70

r? @nastevens
(rust-highfive has picked a reviewer for you, use r? to override)

bors r=posborne


S3 service definition does not declare timestamp formats

Describe the bug
I maintain Amazonka, an unofficial AWS SDK for Haskell. Its service bindings are generated by parsing botocore service definitions. While investigating https://github.com/brendanhay/amazonka/issues/879, we discovered that S3's service-2.json does not declare a "timestampFormat" on its timestamp shapes, but seems to require RFC822-format dates on many of its inputs. Example:
https://github.com/boto/botocore/blob/73d72c93034061a99ac687a8dfe7ee0a0ec1bd3f/botocore/data/s3/2006-03-01/service-2.json#L5454
We have added our own overrides in https://github.com/brendanhay/amazonka/pull/881 but I'm reporting it here in case it's useful to feed it back up to the service teams.
Expected Behavior
We expected to read type information that said to generate RFC822-format timestamps.
Current Behavior
We read type information that said to generate ISO8601-format timestamps, based on internal heuristics about the service.
Reproduction Steps
On https://github.com/brendanhay/amazonka/pull/881, open a nix-shell, run scripts/generate s3 and notice in the git diff that the date formats have changed.
Possible Solution
Declare "timestampFormat": "rfc822" on any shapes in S3's service-2.json, where AWS specifically requires that format.
Additional Information/Context
No response
SDK version used
Amazonka 2.0 from branch main.
Environment details (OS name and version, etc.)
NixOS GNU/Linux

Thanks @endgame for reporting this — I have passed along the issue and context as you described to the S3 team for further investigation. Since those service models are implemented upstream by service teams like S3, they are the ones who would need to address issues like this.
I will share any updates with you going forward and feel free to check back in here as well. But because this isn't something the boto3/botocore team can address directly, I'm going to close this issue.

Shapes bound to headers for the rest-xml protocol have an implicit timestamp format of rfc822. You can probably infer a mapping between these JSON files and what Smithy defines to understand the protocol (Smithy is the IDL AWS maintains publicly that deprecates what you see in botocore). You could also implement protocol tests to ensure the generator is correct.

https://smithy.io/2.0/aws/protocols/aws-restxml-protocol.html
https://smithy.io/2.0/spec/http-bindings.html#httpheader-serialization-rules
https://github.com/smithy-lang/smithy/tree/main/smithy-aws-protocol-tests/model/restXml


Test graphql endpoint

adds a bit of documentation to the todos app for quick lookups of interacting the the graphql endpoint and todos schema.

cleans up and consolidates tests.

Closes issue ncrmro/ango#5


Fullscreen with HTML5 video broken

Expected behaviour
When I watch a movie 16:9 in fullscreen on a 21:9 display, there should be a black bar on the left and right side.
Actual behaviour
No black bars, and the video is cut-off at the bottom

Steps to reproduce

Go to https://plyr.io/
Click on the fullscreen icon

Environment

Browser: Google Chrome
Version: 75
Operating System: macOS
Version: Mojave

Worked fine with 3.5.2

Fixed with 3.5.5 :) Thanks @sampotts !

Great! Thanks for closing this 👍


[Question] Is it possible to make the parser ignore certain parameters ?

I am using CommandLineParser on a .net core console application. The net core console applications have the possibility to specify the environment by using command line arguments (with option "--environment "), the problem is that this argument makes CommandLine.Parser.Default.ParseArguments go into error with "option environment is unknown".
For now I have solved by adding the environment as an option for verbs, yet I was wondering if there is the possibility to tell the parser to ignore some parameters.

Can you explain the use case? Why would you even want to use an --environment argument if it is not supposed to do anything?
Imo, having a CLI tool silently ignore unknown commandline parameters doesn't sound like a good idea. If --xyz is not listed in the help text of the available commandline parameters, yet a user plonks --xyz as an argument causing no effect whatsoever, it can be quite confusing for the user attempting to understand the commandline interface of such a program...

Look into the ParserSettings (e.g., through the Parser.Default.Settings property). ParserSettings has a property to set this behavior.

I tried with
CommandLine.Parser.Default.Settings.IgnoreUnknownArguments = true;
but it gives me this exception

Error Occured
System.InvalidOperationException: Operation is not valid due to the current state of the object.
at CommandLine.Infrastructure.PopsicleSetter.Set[T](Boolean consumed, T& field, T value)
at CommandLine.ParserSettings.set_IgnoreUnknownArguments(Boolean value)
at SincroADR_Batches.Program.Main(String[] args) in C:\Users\dimarco\source\repos\SincroADR\SincroADR_Batches\Program.cs:line 30

Here follows my code
      var parsed =CommandLine.Parser.Default.ParseArguments<HashingPlateOptions>(args);
      CommandLine.Parser.Default.Settings.IgnoreUnknownArguments = true;
      await parsed.WithParsedAsync<HashingPlateOptions>(opts => services.GetRequiredService<HashingBatch>().Run());

I tried also to set IgnoreUnknownArguments  at the beginning but it always give me the same exception. What can I do ?

 Sorry for my misleading comment.
Look at the first code sample at https://github.com/commandlineparser/commandline/wiki/Getting-Started
It shows two variations of using a parser. The second variation - creating a parser instance - is probably the right approach for your scenario. Note how the Parser constructor accepts a delegate (in the example given an anonymous method) through which the settings for this parser instance can be modified.

Perfect it works, I close the the ticket., thank you.


No documentation for headerMode

What is headerMode option do? I could not  find any documentation for it

@sadika9 I assume you closed this issue because you found the documentation? Could you please paste a link to the documentation?

@MrHubble https://reactnavigation.org/docs/navigators/stack#StackNavigatorConfig

@sadika9 Thanks for taking the time to respond.
I also found this example helpful.

@sadika9 that doc 404's FYI

https://reactnavigation.org/docs/en/stack-navigator.html


Cannot log into my NuGet account, and my packages are not available

When I attempt to log into NuGet, I get a white screen of death, 500 is mentioned in the URL. If I attempt to recover my password, I get a WSOD. If I attempt to install any of my known package from the Package Manager Console, I get a 500, and if I try to push a package from the command line, I get a 500.
The issue is clearly associated with my user account.

Same thing is happening right now with me

I'm having this problem for half an hour

Please check whether your visual studio have administrator rights


Internationalization and Localization

:tada: This issue has been resolved in version 1.13.0 :tada:
The release is available on:

npm package (@latest dist-tag)
Visual Studio Marketplace
GitHub release

Your semantic-release bot :package::rocket:


feat(curriculum): Create TypeScript Quiz

Checklist:

[X] I have read and followed the contribution guidelines.
[X] I have read and followed the how to open a pull request guide.
[X] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #56227

@Nycto-c05 I have already approved your quiz. It is now waiting for an approval from a second maintainer.


Reading/Writing FASL might crash Corman Lisp

There are some issues with FASL reading/writing. Right now Corman Lisp might crash when loading RDNZL. Corman Lisp tries to produce some FASLs when trying to load RDNZL at the first time. At this point, Corman Lisp might crash.
To reproduce the bug one should remove the produced FASLs and try to load the library again.

It seems that running the following function reproduces the problem.
(defun crash-cl ()
    (let* ((rdnzl-dir-path (merge-pathnames "Libraries\\rdnzl\\RDNZL-0.9.4" *cormanlisp-directory*))
           (rdnzl-load-file-path (merge-pathnames "Libraries\\rdnzl\\RDNZL-0.9.4\\load.lisp" *cormanlisp-directory*))
           (del-fasls-cmd (format nil "/c del \"~A\\*.fasl\"" (namestring rdnzl-dir-path))))
        (loop ; an infinite loop
            ;; load and compile RDNZL
            (load rdnzl-load-file-path)
            ;; delete the FASLs
            (win:shell-execute "cmd.exe" del-fasls-cmd nil))))

Starting from the commit<PHONE_NUMBER>2d66540e150005a2c43b9e301e284a the bug is not possible to reproduce by default.
To reproduce the bug comment the line     #+:cormanlisp (declare (ignore must-compile)) in 'load.lisp' in the RDNZL distribution.


Correct partition key statement and change minimum RU/s from 2,500 to 1,000

The documentation here is inconsistent. From the portal at least, you must specify a partition key when creating an unlimited container and cannot specify one when creating a fixed container. Additionally, the minimum RU/s for an unlimited container are 1,000 RU/s.

@nftw : Thanks for your contribution to the Azure documentation! The author, @mimig1, has been notified to review your proposed change.

See set-throughput.md for details on limits.


[Update Snap] MinaPortal

Checklist
All items in the list below needs to be satisfied.

[ ] Is the summary of the change documented in this ticket?
[ ] Has a MetaMask Snaps team member reviewed whether the changes need to be vetted?
[ ] If there are changes that need to be vetted, attach a description and the relevant fixes/remediations to this issue.
[ ] The corresponding pull request in this repo has been merged.

This update changes many of the API endpoint URLs and adds a type interface for getting account info: https://github.com/sotatek-dev/mina-snap/pull/237#commits-pushed-94e5e9c
The new version to allowlist is 0.1.4


Interactive

Is there a way to use a particular layer to be the receptor for interactions (mouse move and click), but have the effect be on a different layer? I ask because I want the ripples to be behind other objects, but it appears that you have to make the top most div be the one with the effects if you want interactivity.

You can listen to mouse events on a certain element and call $(selector).ripples('drop', x, y, radius, strength) manually. You'd need to experiment a bit with the values for x, y, radius and strength, though.
Something along the lines of:
var $interactiveElement = ...
var $rippleElement = ...
$interactiveElement.on('mousemove', function(e) {
  var x = e.pageX - $rippleElement.offset().left,
      y = e.pageY - $rippleElement.offset().top
  $rippleElement.ripples('drop', x, y, 20, 0.05)
})


Ability to searching a collection

Hey @Devorein,
I was wondering if we could have the ability to search a collection?
I think in notion the endpoint being used is queryCollection.
Thanks

Hey, @djibomar can you please explain a bit more about your question?
If you wanna get pages from a collection you can use the method collection.getPages based on any filters

Hey, @djibomar can you please explain a bit more about your question?
If you wanna get pages from a collection you can use the method collection.getPages based on any filters

I'm closing the issue, for now. If you see that the above solution doesn't work, please reopen it.

I'm closing the issue, for now. If you see that the above solution doesn't work, please reopen it.

Hey I think getPages work.
BTW Really Nice work here. 👏👏👏

Hey I think getPages work.
BTW Really Nice work here. 👏👏👏

Appreciate the praise bud. I'm glad that that worked.

Appreciate the praise bud. I'm glad that that worked.


Skipping notes

Very basic notes :

Exported :

Read :

using Melanchall.DryWetMidi.Core;
using Melanchall.DryWetMidi.Multimedia;
using Melanchall.DryWetMidi.MusicTheory;

namespace SongActor.Runtime;

public class SongActor
{
    public void PlaySong(string midiFilePath)
    {
                var midiFile = MidiFile.Read(path);

                using var outputDevice = new OutputDevice(track);
                using var playback = midiFile.GetPlayback(outputDevice);

                playback.Play();
        }
    }

    private class OutputDevice(Track track) : IOutputDevice
    {
        public event EventHandler<MidiEventSentEventArgs>? EventSent;

        private readonly Track _track = track;

        public void Dispose()
        {
        }

        public void PrepareForEventsSending()
        {
        }

        public void SendEvent(MidiEvent midiEvent)
        {
            // Send the MIDI event to the output device
            Console.WriteLine($"Sending MIDI event: {midiEvent} for track '{_track.Name}'.");
        }
    }
}

But for some reason, the first key I receive is F5 :

And then it keeps skipping more notes.

Notice there are no F5 notes in my midi file. For some reason, Ableton is 1 octave lower than what drywetmidi says it is.
At this point, I do not care much for an octave discrepancy, I just want to see all notes print in the console.
Dialogue.mid.txt
Here is the .mid file attached, remove the .txt extension
I'm starting to think Ableton might be the culprit, its MIDI support is subpar, and I'm not happy with its limitation to only be able to export single tracks midi files ('version 0'). I will test tomorrow and try with a fresh confirmed working .mid file, and see if it has the same problem.

Hello,

But for some reason, the first key I receive is F5

What is "key"? I don't see instructions in your code that print lines like "Key: N".

For some reason, Ableton is 1 octave lower than what drywetmidi says it is.

DWM uses the convention: note number 60 = C4. Other software may use another convention. That's OK, because MIDI specification doesn't specify a strict rule for that.
I sure DWM reads the file (and plays it) as is, without any corruptions. So yes, I think the problem is with Ableton.

@AldeRoberge Any news?

Hey, I'll get back to you asap. Sorry for the delay, I have to get this fixed pretty soon.

@AldeRoberge Can the issue be closed?

Hello, yes let's mark it as closed and I'll update with further information. I acquired FL Studio to attempt a fix for the error, which DWM is probably not the cause!
Thanks for your time and great product.


feat: Add outline buttons

Hi @karishmashuklaa ,
In this PR,

Added outline type of buttons.
Added hover transition.
Disable hover and focus on disabled button.

@iamvishal345   LGTM 🚀


The editor glitched when updating.

Looks like a permissions error. Take a look at this screenshot.

Try redownloading the WiiMusicEditor from github. You can copy the settings.ini out of the folder then put it in the new folder to keep your settings.


✨ [REQUEST] Restreamer

Checked

[X] If a new addon, I have checked on  Google that such as addon doesn't already exists
[X] If a new feature, I have searched in the discussions & issues that it was not already covered

Which addon?
Restreamer
https://github.com/datarhei/restreamer
Is your feature request related to a problem? Please describe
Restreamer consumes camera/video streams and provides them to other consuming video endpoints in a very efficient and low-performance way.
In HA this is a possible solution for video streams that need to be loaded immediately within a second ("stand-by-mode"). No connecting to the cam. No active taping on the screen for activating and then waiting another time. Just getting the stream when you need it.
That short reaction time is not needed for every camera stream, but if you need it, Restreamer is a good and reliable open source choice for that issue.
Describe the solution you'd like
A simple "clone" add-on. I tried to create a local custom add-on, but failed with the data persistence of the two persistant directories /core/data and /core/config because of my lack of experience with HA addons and docker.
Restreamer has a Web-UI at "./ui/:8080" so Ingress would be the way. Ingress worked perfectly with Restreamer-Web-UI in my case.
So, it would be great if you could include Restreamer into your repo!
Thanks in advance!

A working sample without data persistence would be:
Dockerfile
`
ARG BUILD_FROM
FROM ${BUILD_FROM}
config.json{
"arch": [
"aarch64",
"amd64",
"armv7"
],
"name": "Restreamer",
"version": "2.6.0",
"slug": "restreamer",
"description": "Restreamer add-on",
"init": false,
"ports": {
"8080/tcp": 8080,
"8181/tcp": 8181,
"1935/tcp": 1935,
"1936/tcp": 1936,
"6000/udp": 6000
},
"host_network": true,
"ingress": true,
"ingress_port": 8080,
"ingress_entry": "./ui/"
}
`
build.json
{   "build_from": {     "aarch64": "datarhei/restreamer:latest",     "amd64": "datarhei/restreamer:latest",     "armv7": "datarhei/restreamer:latest"   } }
The default direct docker command would be
docker run -d --restart=always --name restreamer \    -v /opt/restreamer/config:/core/config -v /opt/restreamer/data:/core/data \    -p 8080:8080 -p 8181:8181 \    -p 1935:1935 -p 1936:1936 \    -p 6000:6000/udp \    datarhei/restreamer:latest


Error creating 2GP version in Winter '23

Describe the bug
In my specific case, we are creating a managed 2GP version with quick actions that have a dependency on record types in an unlocked 2GP. Building the package version with CumulusCI results in an error like:
Error: UNKNOWN_EXCEPTION : Can’t add component <quick action name> because it’s associated with metadata from a managed 2GP package. Managed 1GP packages can’t depend on managed 2GP packages.
I did some digging and it looks like when building with CumulusCI, the package.xml in the metadata sent in the 'Package2CreateVersionRequest' contains the 'fullName' field (with the project name in that field). I think this confuses the SFDC package validation into thinking you're creating a 1GP package, and the build fails with that error
I assume generally when generating a new 2GP version in CumulusCI that has dependencies on another 2GP, the validation fails with that error, but I've only tested/verified with the Record Type/ Quick Action metadata
Reproduction steps

Create an Unlocked 2GP that contains record types (Package A)
Create a new CumulusCI project (Package B)
Add a quick action in Package B that references a record type from Package A
Attempt to create a new package version with CumulusCI task create_package_version

Your CumulusCI and Python versions
CumulusCI version: 3.67.1
Python version: 3.10.4
Operating System
macOS 12.6
Windows environment
No response
CumulusCI installation method
pipx
Error Gist
No response
Additional information
Changing this:
https://github.com/SFDO-Tooling/CumulusCI/blob/f69f3946b94ef30c0e7953d282e6230b82b5117b/cumulusci/tasks/create_package_version.py#L212
to None resolves the issue, but I'm unsure if there are any side effects to that.

@leboff Thank you for the report and pull request. We may need to discuss this change internally, so there may be some delay in getting it reviewed.

Fixed in #3636.