Updated Version.java path from server to libs in version.yml

Description
Updating Version.java path in version.yml from server/src/main/java/org/opensearch/Version.java to libs/core/src/main/java/org/opensearch/Version.java
Related Issues
Resolves #[Issue number to be closed when this PR is merged]

Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[x] Commits are signed per the DCO using --signoff
[x] Commit changes are listed out in CHANGELOG.md file (See: Changelog)

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.

@vibrantvarun Can you please describe what you are trying to achieve in the description section of the PR?

Thanks @vibrantvarun I assume the sed logic still works with the file buildSrc/src/main/java/org/opensearch/gradle/Version.java.

@andrross sure, taking a look into it.

@vibrantvarun Can you please describe what you are trying to achieve in the description section of the PR?

Looks like these changes were missed here.

@vibrantvarun Can you please describe what you are trying to achieve in the description section of the PR?

Looks like these changes were missed here.

Thanks. I was looking for this context :)

Thanks @vibrantvarun I assume the sed logic still works with the file buildSrc/src/main/java/org/opensearch/gradle/Version.java.

@vibrantvarun Can you run the sed commands manually against the correct file and verify it still works? @kotwanikunal please chime in if there's a better way to test this.

That's the only way. @vibrantvarun You can test this by cloning OpenSearch and running this script from the root folder -
https://gist.github.com/kotwanikunal/91f33eeced50f6aa93701e91a2e93a6b

@kotwanikunal
The output of running above script on local
TAG=2.9.0
BASE=2.9
BASE_X=2.x
CURRENT_VERSION=2.9.0
CURRENT_VERSION_UNDERSCORE=V_2_9_0
NEXT_VERSION=2.9.1
NEXT_VERSION_UNDERSCORE=V_2_9_1
NEXT_VERSION_ID=2090199
Incrementing 2.9.0 to 2.9.1
version.sh: line 32: .ci/bwcVersions: No such file or directory
sed: 1: "buildSrc/version.proper ...": undefined label 'uildSrc/version.properties'
Adding V_2_9_1 after V_2_9_0

It works.

@kotwanikunal The output of running above script on local
TAG=2.9.0
BASE=2.9
BASE_X=2.x
CURRENT_VERSION=2.9.0
CURRENT_VERSION_UNDERSCORE=V_2_9_0
NEXT_VERSION=2.9.1
NEXT_VERSION_UNDERSCORE=V_2_9_1
NEXT_VERSION_ID=2090199
Incrementing 2.9.0 to 2.9.1
version.sh: line 32: .ci/bwcVersions: No such file or directory
sed: 1: "buildSrc/version.proper ...": undefined label 'uildSrc/version.properties'
Adding V_2_9_1 after V_2_9_0

It works.

I can see errors on the output. Did you test it against the OpenSearch repo cloned code base?

@kotwanikunal Okay I debugged the issue with the script. Actually in mac os the sed command looks like
sed -i -e "s/opensearch        = $CURRENT_VERSION/opensearch        = $NEXT_VERSION/g" buildSrc/version.properties
We have to add -e in the command
So after I added -e below is the output
TAG=2.9.0
BASE=2.9
BASE_X=2.x
CURRENT_VERSION=2.9.0
CURRENT_VERSION_UNDERSCORE=V_2_9_0
NEXT_VERSION=2.9.1
NEXT_VERSION_UNDERSCORE=V_2_9_1
NEXT_VERSION_ID=2090199
Incrementing 2.9.0 to 2.9.1
Adding V_2_9_1 after V_2_9_0

@vibrantvarun Please resolve all conversations before we can merge this in.

@kotwanikunal resolved all conversations

Hey @vibrantvarun this only runs when a new tag is cut which takes in the tag information https://github.com/opensearch-project/OpenSearch/blob/main/.github/workflows/version.yml#L24. So to re-produce one way is to delete and re-create tag which is no right thing to do now, please raise a manual PR for 2.9.1 similar to 2.8.1 and lets keep monitoring for the next patch version increment.
Thank you


add how to test section to PR template

Reference Issues or PRs
No issue

What does this implement/fix?
Put a x in the boxes that apply

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds a feature)
[ ] Breaking change (fix or feature that would cause existing features not to work as expected)
[ ] Documentation Update
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build related changes
[X] Other (please describe):

Testing

[ ] Did you test the pull request locally?
[ ] Did you add new tests?

How to test
This is the test :P

Any other comments?

@dcmcand - Thanks for this PR. All the templates are originally maintained in the https://github.com/nebari-dev/.github repo, and synced across all other repos with a GitHub action. So, I've moved your changes in this PR to that repo with https://github.com/nebari-dev/.github/pull/31, and will close this one. :)


Simplify list-group borders in cards

Consolidates some CSS and beefs up the selector to account for inherited border styles. Fixes #30793, a regression from v4.4.1 that shipped in #30497.

Adding the comment from the issue so that we triple check before merging https://github.com/twbs/bootstrap/issues/30793#issuecomment-628354971


Merge should examine all candidate keys in a row

@simonbjohnson reported unexpected merge behaviour in https://github.com/HXLStandard/hxl-proxy/issues/75 — the problem was that he expected the second matching column to be used in the merge, while (counterintuitively) the merge filter stops after the first matching column.

Harder than expected -- keys are pre-calculated for fast matching.  Pushed to Later.


added one developer from MicroFocus for making a release

Description
added one developer from MicroFocus for making a release

Submitter checklist for changing permissions

Always

[ ] Add link to plugin/component Git repository in description above

For a newly hosted plugin only

[ ] Add link to resolved HOSTING issue in description above

For a new permissions file only

[ ] Make sure the file is created in permissions/ directory
[ ] artifactId (pom.xml) is used for name (permissions YAML file).
[ ] groupId / artifactId (pom.xml) are correctly represented in path (permissions YAML file)
[ ] Check that the file is named plugin-${artifactId}.yml for plugins

When adding new uploaders (this includes newly created permissions files)

[ ] Make sure to @mention an existing maintainer to confirm the permissions request, if applicable
[x] Use the Jenkins community (LDAP) account name in the YAML file, not the GitHub account name
[x] All newly added users have logged in to Artifactory at least once

Build failed; the context from the latest run is:
Expand to view
	at groovy.json.JsonBuilder$toPrettyString$0.call(Unknown Source)
	at io.jenkins.infra.repository_permissions_updater.ArtifactoryPermissionsUpdater$_generateApiPayloads_closure1.doCall(ArtifactoryPermissionsUpdater.groovy:194)
	at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)
	at groovy.lang.Closure.call(Closure.java:414)
	at groovy.lang.Closure.call(Closure.java:430)
	at org.codehaus.groovy.runtime.ResourceGroovyMethods.eachFile(ResourceGroovyMethods.java:1070)
	at org.codehaus.groovy.runtime.ResourceGroovyMethods.eachFile(ResourceGroovyMethods.java:1088)
	at org.codehaus.groovy.runtime.dgm$936.invoke(Unknown Source)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
	at io.jenkins.infra.repository_permissions_updater.ArtifactoryPermissionsUpdater.generateApiPayloads(ArtifactoryPermissionsUpdater.groovy:135)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
	at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite$StaticMetaMethodSiteNoUnwrapNoCoerce.invoke(StaticMetaMethodSite.java:151)
	at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.callStatic(StaticMetaMethodSite.java:102)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:56)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:194)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:214)
	at io.jenkins.infra.repository_permissions_updater.ArtifactoryPermissionsUpdater.main(ArtifactoryPermissionsUpdater.groovy:318)
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Archive)
[Pipeline] archiveArtifacts
Archiving artifacts
[Pipeline] archiveArtifacts
Archiving artifacts
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline

GitHub has been notified of this commit’s build result

ERROR: script returned exit code 1
Finished: FAILURE

Powered by the Comment Logger

@casz  can you look into this for providing the access to maintain accurev plugin

sure @casz  i will be working on one RPI and i will make a pull request soon

There are checkboxes in the PR template for a reason. Please complete all that apply. Thanks

ok. i will do that.

OK, I believe we can close this for now. Please comment here so we reopen when people have gained legitimacy to get release access.
Or please correct me if I misunderstood the current status, happy to reopen.
Thank you


502 Bad Gateway of web viewer

Hi, there
I follow the installation instruction and I ran the first train model, when I try to visit the web ui, the problem occurs:
0: I run this on my server and the train process has been done
1: I forward the port by ssh both for 7007 and 7018
ssh -L 7018:localhost:7018 -p xxxx<EMAIL_ADDRESS>2: I visit the url in chrome
https://viewer.nerf.studio/versions/23-03-9-0/?websocket_url=ws://localhost:7018
3: the chrome shows:
502 Bad Gateway

And also for pure http visit shows:

hey, i have encountered the same problem today, and it can work before.

I encountered it just now, and it worked fine this afternoon. idk why

https://viewer.nerf.studio/ is down, looking into it

Should be back up now.

Yes, the webpage is back, while I see nothing, even I retrained the model @tancik

Is this training on a local or remote server? If remote, do you have port 7007 forwarded? Have you tried refreshing the page?

Thanks for that, seems termius is not fit for the port forward, I use the native windows terminal and ssh command line, now it works fine.


*: support store statistic heartbeat.

@ngaut @disksing @BusyJay @qiuyesuifeng

Coverage increased (+0.3%) to 81.945% when pulling 634fbe9408dd497d185219a6ea31eec85359e691 on siddontang/store-heartbeat into 4256d75ed88e9e6682b8fddcbacd5b6514af2d4c on master.

Coverage increased (+0.4%) to 81.988% when pulling 6ae34f7fd95c3ec85a43bb40d5ad46d58d6cfbb9 on siddontang/store-heartbeat into c5846cc4c22ff0a3e9ae56cc4df93c39f5e0082b on master.

LGTM

LGTM

PTAL

LGTM

LGTM


Compilation errors with Scala 1.12.0-M4

Compiling ScalaCheck 1.13.0 with Scala 1.12.0-M4 results in a lot of errors like these:
[error] src/main/scala/org/scalacheck/Cogen.scala:25: missing parameter type
[error]     Cogen((seed, s) => perturb(seed, f(s)))
[error]            ^
[error] src/main/scala/org/scalacheck/Cogen.scala:25: missing parameter type
[error]     Cogen((seed, s) => perturb(seed, f(s)))

These errors are introduced by M4, compilation with M3 works fine. Additionally, M4 works fine with ScalaCheck 1.11 and 1.12.

Ouch. The 2.12.x community build has scalacheck pinned at 1.11.6: https://github.com/scala/community-builds/blame/2.12.x/common.conf#L66

Cogen is SAM (single abstract method) type, and there are some overload methods.
def apply[T](implicit ev: Cogen[T]): Cogen[T] = ev

def apply[T](f: (Seed, T) => Seed): Cogen[T] =

https://github.com/rickynils/scalacheck/blob/1.13.0/src/main/scala/org/scalacheck/Cogen.scala

similar discussion? https://github.com/scala/scala/pull/4971#issuecomment-202977627

attn @adriaanm, here's another example of overloading trouble involving SAM support

That's a fun one! The smallest source-compatible hack I can think of is def apply[T](implicit ev1: Cogen[T], ev2: Cogen[T]): Cogen[T] = ev1... Don't tell anyone I recommended that, though :sunglasses:
Sadly, I don't see how we can improve overload resolution to fix this without pushing it over the complexity brink that it's teetering.

@adriaanm So ScalaCheck follows its tradition of torturing scalac... The workaround works, but I guess I must either bump the ScalaCheck version or create a separate branch for M4.

You can make it both source-compatible and binary compatible like this:
// binary compatible
private[enclosingpackage] def apply[T](ev: Cogen[T]): Cogen[T] = ev
// source compatible
def apply[T](implicit ev: Cogen[T], dummy: DummyImplicit): Cogen[T] = ev

I've implemented the workaround so master now builds with Scala 2.12.0-M4. I've also released a new version of ScalaCheck (1.13.1, both JVM and JS versions), built with Scala 2.10, 2.11 and 2.12-M4.


List containers by App

[ ] acorn containers -h shows acorn container [flags] [APP_NAME...], where passing in an actual app name would result in$ acorn containers little-water
Error: containers.api.acorn.io "little-water" not found

I guess it should be acorn container [flags] [CONTAINER_NAME...]

[ ] It would still be nice to have a way to filter the acorn containers list output by app name, e.g. via a flag acorn containers --app APP-NAME or by having some --filter options, similar to the docker filters

Tested with acorn version v0.5.1-82-g652e22e7+652e22e7
Able to list containers by apps and container names now.
%acorn app test1
NAME      IMAGE          HEALTHY   UP-TO-DATE   CREATED   ENDPOINTS                                                         MESSAGE
test1     b1ef5ce44c21   1         1            19m ago   http://frontend-test1-80c87462.local.on-acorn.io => frontend:80   OK

% acorn containers test1
NAME                                      APP       IMAGE                                                                     STATE     RESTARTCOUNT   CREATED   MESSAGE
test1.frontend-8584688cbc-9wdt8           test1     sha256:ee451425b88b30205998e298b96470bacb7a9eaa75d9124f759d9cf314af8ba8   running   0              10m ago
test1.frontend-8584688cbc-9wdt8.sidecar   test1     nginx                                                                     running   0              10m ago

% acorn containers test1.frontend-8584688cbc-9wdt8
NAME                              APP       IMAGE                                                                     STATE     RESTARTCOUNT   CREATED   MESSAGE
test1.frontend-8584688cbc-9wdt8   test1     sha256:ee451425b88b30205998e298b96470bacb7a9eaa75d9124f759d9cf314af8ba8   running   0              10m ago

We are not able to list sidecar containers by their names which is tracked in https://github.com/acorn-io/acorn/issues/1269


Add GPTBot, a serverless Slack bot with GPT-4 support

GPTBot is the only Slack Bot we know of which has GPT-4 support and can do full conversation mode too. It is using the serverless framework and deploys to AWS. It was officially released today. Thanks for your consideration!

Thank you!


Support non blocking transports, added RequestCallback

Codecov Report

Merging #10 into master will decrease coverage by 0.39%.
The diff coverage is 90.47%.

@@             Coverage Diff             @@
##             master      #10     +/-   ##
===========================================
- Coverage     90.62%   90.23%   -0.4%
- Complexity     1651     1660      +9
===========================================
  Files            98      100      +2
  Lines          4085     4116     +31
  Branches        600      600
===========================================
+ Hits           3702     3714     +12
- Misses          213      232     +19
  Partials        170      170

Impacted Files
Coverage Δ
Complexity Δ

...ed/coap/transport/udp/DatagramSocketTransport.java
85.52% <ø> (ø)
23 <0> (ø)
:arrow_down:

...m/mbed/coap/server/internal/CoapTransactionId.java
100% <ø> (ø)
15 <0> (ø)
:arrow_down:

...d/coap/transport/udp/MulticastSocketTransport.java
84.61% <ø> (ø)
9 <0> (ø)
:arrow_down:

...ap/transport/javassl/SSLSocketClientTransport.java
68.08% <ø> (-4.26%)
8 <0> (-1)

...com/mbed/coap/transport/InMemoryCoapTransport.java
91.66% <ø> (ø)
16 <0> (ø)
:arrow_down:

...in/java/com/mbed/coap/server/CoapServerBlocks.java
83.2% <100%> (+0.12%)
33 <0> (ø)
:arrow_down:

.../java/com/mbed/coap/packet/BasicHeaderOptions.java
95.73% <100%> (ø)
210 <0> (ø)
:arrow_down:

.../mbed/coap/server/internal/CoapServerAbstract.java
100% <100%> (+7.69%)
11 <1> (-1)
:arrow_down:

...com/mbed/coap/server/internal/CoapTransaction.java
85.13% <100%> (+3.44%)
25 <4> (+3)
:arrow_up:

...com/mbed/coap/transport/BlockingCoapTransport.java
100% <100%> (ø)
2 <2> (?)

... and 10 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 2004607...8e7e1b4. Read the comment docs.


Bug(mat-tab): Tab Content height snaps between tabs of different heights.

Bug, feature request, or proposal:
Bug
What is the expected behavior?
When changing tabs with different heights the content div should slide in or out with an animation.
What is the current behavior?
The content div snaps to the new height.
What are the steps to reproduce?
StackBlitz  example.
What is the use-case or motivation for changing an existing behavior?
Material design specifies elements should never snap to new positions.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 6.0.8
Is there anything else we should know?
This is a related issue, though it is requesting a different solution.

This can already be done using the dynamicHeight input on the tap group, see the docs site here


Allow multiple namespaces to be part of the same federation

What would you like to be added:
I'd like the ability to specify multiple namespaces to be part of the same federation. So instead of a federation scoped to one namespace, we would have the ability to specify a namespace selector with the contract that namespaces selected by that selector are to be federated (i.e. replicated to the federated clusters).
We can assume that if multiple federation control planes are running in the same cluster, the set of namespace identified by the namespace selectors will not be overlapping.
Why is this needed:
Allows for more flexible and dynamic configuration. Today in order to solve for the described scenario, one would have to create  a federation control plane per namespace and watch for the creation/removal of namespaces consequently add/remove the corresponding federation control plane.

/kind feature

I think this requirement duplicates what is captured by the first bullet of #612.  If you agree, please close this issue.

I think this is not duplicated with #612.
This ticket asks for a federation control plane for a set of namespaces. It also asks for multiple federation control planes installation for different namespace sets.
#612 is only prefer cache optimization. Though it may limit namespace by selector to a federation control plane, it does not mention multiple control planes case.

@xunpan I think this issue is only requesting the implementation of option 1 of #612. So long as a control plane can be limited to a subset of available namespaces, there is no implementation required to support running multiple control planes that target mutually-exclusive subsets of namespaces.

@marun @xunpan thanks for considering this request. Yes the objective is to be able to run multiple federations the same cluster targeting non overlapping namespace sets identified via label selector.
And this is where my knowledge of federation is blurry and probably why my message was a bit confusing. Why do I actually need multiple federation control planes? Can't a federation control plane manage multiple federations? Ideally the federation control plane listen on a CRD and if multiple CRs exists for that CRD it should be able to manage them.
Is the federatedcluster CRD what identifies a federation? Can I have multiple of them managed by the same control plane?

I don't think a federation control plane that can manage multiple federations is justified.  Implementing such a change would incur an implementation cost and maintenance burden, and the same effective result can be achieved with the current code by running multiple control planes (assuming support for label selection of target namespaces).

A FederatedCluster resource identifies a cluster that is a member of a federation.  There is no single resource defining a 'federation'.  Instead, a 'federation control plane' consists of the following resources (in the host cluster unless otherwise identified):

A StatefulSet running the controller manager
The set ofFederatedCluster resources (and their related Cluster and Secret resources) residing in the same namespace as the controller manager
The service account and rbac roles and bindings allowing the controller manager to access federated resources
The service accounts and rbac roles and bindings in member clusters


UIKitView will always be on top of any other widget.

Hello, Flutter Team.
I'm using a package called flutter_unity_view_widget, which launches Unity inside Flutter.
I want to layer buttons and dialogs on top of this widget, but I couldn't do that.
I'm hoping that this will solve this problem as this widget uses a UIKitView internally.
I don't have time for this as I have a contest coming up in two months.
I would like to ask for your help.

Hi @sinano1107
Are you experiencing this issue?
If not,
Can you please provide your flutter doctor -v and a complete reproducible minimal code sample including flutter code and native code
Thank you

Yes, probably the same.
And I tried the solution you provided in that issue, but it didn't work.
Create a code sample.
Please wait a moment.

import 'package:flutter/material.dart';
import 'package:flutter_unity_widget/flutter_unity_widget.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> with SingleTickerProviderStateMixin {
  AnimationController _controller;

  @override
  void initState() {
    _controller = AnimationController(vsync: this);
    super.initState();
  }

  @override
  void dispose() {
    _controller.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('Sample'),
        ),
        body: Stack(
          children: <Widget>[
            Center(
              child: Container(
                height: 200,
                width: 200,
                child: UnityWidget(
                  onUnityViewCreated: (controller) => print('get controller'),
                ),
              ),
            ),

            Positioned(
              top: 250,
              left: 50,
              child: Container(
                height: 100,
                width: 100,
                color: Colors.red,
              ),
            ),

          ],
        ),
      ),
    );
  }
}

This is the result of the above code.
The UnityWidget(UIKitView) is now on top.
Also, the UIKitView will be displayed above the Dialog.

Hi @sinano1107
Thanks for confirming, i have edited the title of the known to better to fit the described issue
Closing as duplicate of https://github.com/flutter/flutter/issues/59751


UI error after user password reset

See on rancher/rancher:master-head 3499046
After creating a user with the must reset password option, I log in with that user and after changing the password I get the error you can see in the screenshot. However, you can navigate to the /dashboard and you are already logged in with that user. You can also log out and log in again with the new password, so it's actually changed in the backend.

Verified on v2.6-head - 4b6af95
Steps taken to see the issue is fixed:

From admin account, created a standard user with **Ask user to change their password on next login ** option.
Logged in with the new user, and changed password as directed
Successfully logged in with NO error messages.


Reg fixes

This change is

Reviewed 4 of 4 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Document iteration function code structure we intend to use

Summary
Document the format we intend to have for our keeper iteration functions which allows for optmization and reuse outside of the keeper.
The format decided on was implemented for IterateClientStates in this pr. See the top comment:

After discussion with @chatton, we decided every key/value set in our stores should have a corresponding Iterate function. That is IterateClientStates, IterateConsensusStates, etc. These should take in a prefix to determine the starting point of the iteration (allows to limit unnecessary iterations) and a callback which can accrue the desired values and exit iteration early based on optimizations. This PR renames IterateClients to IterateClientStates and adds the prefix necessary for optimized iteration

The idea is that for every key path we store, there should be an associated iteration function. This function should take in a prefix and a callback. It should begin iteration at the top level of the store. It should parse any necessary information from the key and value and then perform a callback (given a provided function by the caller). This will allow for optimized iteration in a generic enough format that the caller can perform specific iteration (such as iterating over a client type) without adding an additional function into the keeper
Each function should look similar to:
func (k Keeper) Iterate<KeyName>(ctx sdk.Context, prefix []byte, cb func(key Key, value Value) bool) {
	store := ctx.KVStore(k.storeKey)
	iterator := sdk.KVStorePrefixIterator(store, PrefixedStoreKey(prefix))

	defer iterator.Close()
	for ; iterator.Valid(); iterator.Next() {
		path := string(iterator.Key())
		if !strings.Contains(path, <KeyName>) {
			// skip non non matching keys
			continue
		}

		key := host.MustParseKeyh(path)
		value := k.MustUnmarshalValue(iterator.Value())

		if cb(key, value) {
			break
		}
	}
}

For Admin Use

[ ] Not duplicate issue
[ ] Appropriate labels applied
[ ] Appropriate contributors tagged/assigned

Going to close as stale. Issue hasn't arisen since we ran into this


Create single page html for use on ebook readers

Hi!
A version suitable for ebook readers, eg. a single page HTML, or an epub file would be great.
I have created a proof of concept, which I could transfer to my kindle using Calibre, and seems to work fine.
It is done as a quick hack, with the tools I'm familiar with, just sharing it as a conversation starter. Maybe it could be done even simpler using pandoc better, I have just used it for the first time :)
now I just need pandoc and gnu make installed, and issue make in the ebook folder.

@xuhcc I'm afraid it is not in that quality yet. At least I should add some README to make it usable for others.
If you think the feature is useful, and should be added to the docs repo, then I'll clean this up, and add some docs to it. I'd stick to pandoc, but instead of make+shell tools I'd rewrite it with python to align with the rest of the repo/project.

Yes I think it's useful. I think we can publish it along with the rest of the documentation site to https://beancount.github.io/docs/


Unable to create Microsoft.EventHub/namespaces due to bad errors from CLI and linter

Describe the bug
Currently our bi cep is creating a event hub like this:
resource evhnssplunk 'Microsoft.EventHub/namespaces@2022-10-01-preview' ...
I got an error saying it was old, the handy bicep intellisense told me latest was 2024-01-01, great! Tried that and get this error:
ERROR: {"status":"Failed","error":{"code":"DeploymentFailed","target":"/subscriptions/ef5f5f98-119a-40a0-8bae-d4b10bd13a96/resourceGroups/rg-test-eventhub-splunk-eus2/providers/Microsoft.Resources/deployments/create_eventhub_eastus2-","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"NoRegisteredProviderFound","message":"No registered resource provider found for location 'eastus2' and API version '2024-01-01' for type 'namespaces'. The supported api-versions are '2017-04-01, 2018-01-01-preview, 2021-01-01-preview, 2021-06-01-preview, 2021-11-01, 2022-01-01-preview, 2022-10-01-preview, 2023-01-01-preview, 2014-09-01, 2015-08-01'. The supported locations are 'australiacentral, australiaeast, australiasoutheast, brazilsouth, canadacentral, canadaeast, centralindia, centralus, eastasia, eastus, eastus2, francecentral, germanywestcentral, israelcentral, italynorth, japaneast, japanwest, jioindiawest, koreacentral, koreasouth, northcentralus, northeurope, norwayeast, polandcentral, qatarcentral, southafricanorth, southcentralus, southeastasia, southindia, swedencentral, switzerlandnorth, uaenorth, uksouth, ukwest, westcentralus, westeurope, westindia, westus, westus2, westus3'."}]}}
Ok... so maybe i need to use 2023-01-01-preview since that's the latest from that error... try that and this is the error i get...
/home/vsts/work/1/s/infra-as-code/bicep/modules/eventHubs/eventHubs.bicep(11,53) : Error use-recent-api-versions: Use more recent API version for 'Microsoft.EventHub/namespaces'. '2023-01-01-preview' is a preview version and there is a more recent non-preview version available. Acceptable versions: 2024-01-01 [https://aka.ms/bicep/linter/use-recent-api-versions]
So now i'm in a catch22, i can't deploy this because of these errors. On top of all that, the official site doesn't even show 2023 or 2024 versions...
https://learn.microsoft.com/en-us/azure/templates/microsoft.eventhub/namespaces?pivots=deployment-language-bicep
I'm going to look at disabling our linter rules but this just seems wrong and isn't the first time the bicep linter gave me a newer version that the CLI tolerated or existed in documentation but this is the first time that the reverse also happened and blocked me...

Ok... i'm starting to think this may be due to the ubuntu-latest image not having the latest CLI installed... so i'm trying to figure out how to run an update of CLI and see if that will fix it... but it's still a pain that this isn't documented well and if you run this command it doesn't even show 2024 as valid even after updating CLI
az provider show --namespace Microsoft.EventHub --query "resourceTypes[].{ResourceType:resourceType, ApiVersions:apiVersions}"
[
{
"ApiVersions": [
"2023-01-01-preview",
"2022-10-01-preview",
"2022-01-01-preview",
"2021-11-01",
"2021-06-01-preview",
"2021-01-01-preview",
"2018-01-01-preview",
"2017-04-01",
"2015-08-01",
"2014-09-01"
],
"ResourceType": "namespaces"
},

I am experiencing the same issue but in North Europe. We've had to change the use-recent-api-versions Bicep linting rule from error to warn to work around this but it would be good if we can switch this back soon.


bundles sometimes put in wrong hour's bundlegroup

seems to be more common with sites that have more id collisions.. likely because of using an incorrect date for sessions that bridge 2 utc dates

fixed in #74 and #77


Passing structs by value

The idiomatic way to pass a struct that isn't modified is now to pass it by value: https://ziglang.org/documentation/master/#toc-Pass-by-value-Parameters
The text in 043_pointers5.zig directly contradicts this, and there are a lot of other places where pointer parameters probably ought to be changed to value parameters.

@sporksmith I keep meaning to say "thanks" for filing this issue. I agree that the example in ex 043 should be changed. At the very least, it should demonstrate pass-by-reference only when we are modifying the struct in the function.  I'll check the other places where structs are passed.  Thanks!

 I originally was mulling over sending a PR but wasn't really sure the best way to introduce the idea, so figured I'd at least raise the issue.

 I changed Exercise 043 to use a "linked" struct so the pass by reference makes more sense. Corrected a few other minor instances in other exercises. Interestingly, most later exercises used the correct idiom. Thanks again for submitting this issue!


Timer: log messages to the chat

Requested by staff to help with timerstalling reports.
Tested and works though i'm wondering why https://github.com/Zarel/Pokemon-Showdown-Client/blob/master/js/battle.js#L6367 is not causing a double post.

.log means "add it to the roomlog but not to the room itself".

like, it'll appear double in /roomlog, so you should remove that line if you're actually using .add

After testing the client changes you requested @Zarel, without .log timer messages don't show up in chat at all. Now that i think more about it, since its a different protocal |inactive|, if were going to log we need to tell it to (which we are already). So atm i didn't make any changes. If im not getting something feel free to PM me on the sim.

I told you they appear in /roomlog. i.e. they appear in logs/chat/ when chat logging is turned on. Those are the logs you don't want doubled.

Wait, never mind, you're talking about a client .log call.


[fix] Fix type description in PrimitiveType

@BiteTheDDDDt Unit test passed. Please review it again. Thank you.


[Feature]: Migrate to go 1.20

Requirement
Go 1.20 officially released today
There's improvements on the garbage collector. It informs that its overall performace improves by up to 2% and reduces memory overheads. I guess that migrating to go 1.20 will provides improved performance, bug fixes, security enhancements and etc.
Problem
There's no problem on Jaeger.
This proposal only include a simple suggestion.
Thanks.
Proposal
Migrate to go runtime 1.20.
Open questions
No response

Files to change:
$ grep -r 1.19 .
./go.mod:3:go 1.19
./docker/Makefile:4:GOLANG_IMAGE := golang:1.19-alpine
./.golangci.yml:2:  go: '1.19'
./.golangci.yml:30:    go: "1.19"
./.github/workflows/fossa.yml:28:          go-version: 1.19.x
./.github/workflows/ci-release.yml:34:        go-version: 1.19.x
./.github/workflows/ci-unit-tests.yml:33:        go-version: 1.19.x
./.github/workflows/ci-docker-build.yml:34:        go-version: 1.19.x
./.github/workflows/ci-build-binaries.yml:51:        go-version: 1.19.x
./.github/workflows/ci-crossdock.yml:34:        go-version: 1.19.x
./.github/workflows/ci-elasticsearch.yml:46:        go-version: 1.19.x
./.github/workflows/ci-grpc-badger.yml:27:        go-version: 1.19.x
./.github/workflows/ci-hotrod.yml:33:        go-version: 1.19.x
./.github/workflows/ci-protogen-tests.yml:29:        go-version: 1.19.x
./.github/workflows/ci-all-in-one-build.yml:33:        go-version: 1.19.x
./.github/workflows/ci-cassandra.yml:39:        go-version: 1.19.x
./.github/workflows/ci-opensearch.yml:43:        go-version: 1.19.x
./.github/workflows/ci-kafka.yml:27:        go-version: 1.19.x

PR for the issue has already been made and would be merged during the next Release Cycle.

👍

I opened #4328 to suggest partially reverting the changes on #4206 so that Jaeger remains compatible with Go 1.19 as a library. This would help the OpenTelemetry Collector project, which aims to be compatible with all officially supported Go versions.
Note that my PR only changes the go.mod file: binaries would be built with Go 1.20 which I think would fulfill the goals that @scalalang2 talks about in this issue.
Please consider my PR! :)


Modal href trigger won't work

Description
After using the right markup, initializing the modal as on the documentation seems the modal won't get fired using
Modal

I have tried upgrading Materialize and jQuery but the only thing that happend is that I got the # anchor working to go back to the top of the page
However it was working using:
 <button data-target="modal1" class="btn">Modal</button>

Tho I didn't wanted to use a <button> I just added the data-target to my  tag
modal

I thought sharing the "issue". Maybe I missed a step.
Cheers.

Initialize it: http://materializecss.com/modals#initialization

@Dogfalo have you read my comment?
 After using the right markup, initializing the modal as on the documentation
I am just pointing an issue that I had.

http://codepen.io/Dogfalo/pen/MJqKNa


modify opDeployQt5Plugins to require a destination directory

Looks good to me, just want to let @incessantier weigh in before I merge it.


Simple Image Editor

An image viewer that can make simple image processing tasks

Resize image
Rotate image
Crop image

then download the edited image to machine.

Similar tools
Image manipulation
DarkroomJS
StudioJS
Convert an Image to Grayscale with ImageMagick

Image cropper cropper.js - Source code

Darkroom looks beautiful, although it doesn't have image effects like camanjs, i wish we could merge both of them :smile:

There are many tools that could seem too big to be included but we could at least add a reference to them. See RegExr, WebGL Studio, SVG Editor here. They're great, but integrating them will be too much work for not too much value.
it'll be helpful to just list them and add a link.

it can rotate, crop, undo, redo and save result to new tab.
we still need resizing plugin for darkroomjs


OpenAPIv30Spec object has no attribute 'paths'

I upgraded the library and now I get the error

*** AttributeError: 'OpenAPIv30Spec' object has no attribute 'paths'

from openapi_core import OpenAPIv30Spec as Spec

with open(schema, "r") as f:
  Spec.create(yaml.safe_load(f))

My YAML
openapi: "3.0.0"
info:
  version: "1.0.0"
servers:
  - url: /api/v1

paths:
  /user/:
    get:
      ..

What can be?

Should be fixed with latest version


Live example on the website is broken

Describe the bug
The live generator on the website is broken.
Every key press de-focusses the input.
To Reproduce
Steps to reproduce the behavior:

Go to the website: https://www.graphql-code-generator.com/

Try to change one of the files

Expected behavior
I can do more than one key stroke without re-focussing the input.
Environment:

OS: Ubuntu
Browser: Chrome/Firefox

Additional context
N/A

Fixed :)
https://www.graphql-code-generator.com/


store.id_state does nothing

I get
Unknown InResponseTo '_68b93e494c86295ff7d21d274486ab489b429f17ed'

because id store doesn't save any id. Should I save the id manually on login action? (I have overwritten the DefaultController in a child bundle)
P.S. I don't know why, this bundle is VERY HARD to work with. The documentation is poor and the architecture is complicated. I usually spend 1-3 hours in order to find how one parameter is used, why I get an error.

I found the problem. We use user <-> webApp (forward LightSaml requests to api) <-> api (lightSaml), so on api the sessions is lost on every new request

Thank you very much for this bundle!
Because of flexible configuration and architecture, it was hard, but I managed to complete my task.

Dynamic IdP configuration loaded from db depending on current subdomain
Force persistent NameID
Do not store id state in db (store class exists but it does nothing)
Right after login_check (authentication) success, I generate an OAuth token and send it in response (via login success handler)

@arteniioleg  The id_state store is remembering the ID of the AuthnRequest you sent, so you can validate InResponseTo of the incoming Response, afterwards that ID is flushed from the store. It's a security measure used to prevent repeated responses. Since web browser sso SAML profile is in the front bearer channel - aka browser, and you have a user session both during request and response, default id state store implementation in LightSAML is the session store. If you wish you can store it somewhere else. Make a dummy implementation is strongly discouraged due to security concerns and vulnerabilities you'll get open to.

@tmilos Thank you for details. I know about id_state and it works on my side, ids are saved in memcache and the same id doesn't pass /login_check twice.
I skip IdEntry store (database entries) since on successful login I generate an OAuth token and use it in future requests (our system is an API with OAuth tokens, SAML is used only on login part, I have a separate firewall only for /saml urls)


v1 roadmap

What else should be done before releasing a v1.0 version of the package? @kasperrisager @DimitarVanguelov
API to add:

[ ] #76

PRs to conclude on:

[ ] #56

@alecloudenback, what is your expected timeline for 1.0? My only comment at this point, which is probably obvious, is that 1.0 should not be rushed since getting a package API right is crucial for usability (attracting users), long term maintenance and all that. That's not a comment on Yields' existing API (I am not fully familiar with it yet), just a general comment.

I'd also put focus on API for a 1.0 (#56 is one direction to explore, sorry for being so slow on implementation). However, I also think it would be nice with a list of features that would give rough feature parity with comparable r/py/jl packages. Not because they necessarily have to go into a 1.0, but because the 1.0 API should make them easy to add. Interpolation is a good example of this: how can we make the API flexible enough that you can stuff any interpolation in, while slick enough to feel user friendly.
I've tried browsing for a good example of another package (.jl or other) that had a solid 1.0, maybe that's a road to explore a bit more.
Anyway, I think I'll try to pick #56 back up and think of other things while I'm at it

I guess I should have outlined the rationale for tagging 1.0:
I largely agree with Tamas here, which is that:

once you start getting users and building dependecies, having the three digit semver provides more granular and meanful information to the downstream computers and users.
There's nothing super magical about 1.0. Going from 0.x to 0.x+1 is effectively the same in pre-release 0.x.x. In a lot of ways, there's more meaning to the whole semver scheme once you include the leading number.

Additionally:

I just see going 1.0 as a signal that the package's API has started to converge to a steady state. Users can learn the package without significant concern that they'll have to "re-learn" things.
Needing to go to 2.0 isn't a big deal at all IMO - Julia's Pkg and environment/dependency management means that users can easily control upgrades so I'm not super concerned about future breaking changes if they were to arise.

I've been using Yields for quite a while now and it's been a pretty stable API for a while, though admittedly in my activity I don't use the new SmithWilson-class curves.
The reason I started the issue was because aside from the things listed in the OP, I thought the remaining "issues" could likely be resolved without an API change.

Another motivating factor for trying to resolve some of the last (currently) known API design decisions: In the coming months I'd like to write an introduction to JuliaActuay packages for one or more of the Society of Actuary's digital magazines. It would be nice to have a core package (Yields) be 1.0 for that

I've tried browsing for a good example of another package (.jl or other) that had a solid 1.0, maybe that's a road to explore a bit more.

@kasperrisager what comparable packages have you seen?
Some I know of:

Quantlib, the C++ library

I've tried to run/understand in the past but the code is dense and, well C++. And examples have always been light on exposition but heavy on the details.

InterestRates.jl

(from the Yields.jl ReadMe): specializes in fast rate calculations aimed at valuing fixed income contracts, with business-day-level accuracy. Comparative comments: Yields.jl does not try to provide as precise controls over the timing, structure, and interpolation of the curve. Instead, Yields.jl provides a minimal, but flexible and intuitive interface for common modeling needs.

@alecloudenback, haven't found good examples, apart from those you mention. I was also thinking about packages of similar complexity/maturity, but no luck yet finding one (or rather, not enough time spent on my side yet, I'm sure they are there).
InterestRates.jl seems to me to have a somewhat un-Julian API design with lots of unnecessary required methods on implementations of the abstract curve type. I think it's a great strength of the current Yields.jl API that it's nimble and flexible.

I'm going to go ahead and tag v1.0.0 not in staying that things are final (they aren't), but I think that it's:

in a pretty good place
signals a degree of stableness that I think has been achieved
makes downstream compat easier

I found this package in Python which has overlap in functionality between Yields.jl and ActuaryUtilities.jl:
https://genedan.com/tmval/docs/intro.html


fix: Authoring form styling after font size change to rems [PT-185043384]

This is a sledgehammer approach to fixing the issue of the authoring form styling breaking after the bootstrap file was converted to scss and the fonts were changed to rems from px to accomodate the font-size feature.
This fix adds a second copy of the original unmodified bootstrap.css file within a :global section of the authoring.scss file.  This locallizes the original bootstrap layout to the authoring form area ensuring it lays out the same as it did before the font size update.

@scytacki I've just added the comment in a follow on comment here: https://github.com/concord-consortium/question-interactives/pull/300/commits/fb28681d3c72f1e1c0dacd018fff3f91e15f633e


Settings - Workflow settings instead of Integration Account

In order to link logic app with integration account , we go to Settings- Workflowsettings . There is no separate Integration account tab which is mentioned in this document.

Document details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: d1892f5d-9cd6-12f8-43ed-21b8d31b509b
Version Independent ID: 5158b830-2faa-e7ce-6111-2351d1f78f51
Content: Create, link, delete, or move an integration account in Azure logic apps | Microsoft Docs
Content Source: articles/logic-apps/logic-apps-enterprise-integration-create-integration-account.md
Service: logic-apps
GitHub Login: @divyaswarnkar
Microsoft Alias: LADocs; divswa

@nareshnagpal06 Thank you for your feedback! We will investigate and get back to you with our findings.

@nareshnagpal06 Thanks again for pointing this out. We have validated this issue and assigned it to the author to investigate further and take the right course of action.

@nareshnagpal06 thanks for letting us know and your observation is right. The content to link integration account to logic app is out of date. We'll update the document soon. Sorry about the inconvenience.

@nareshnagpal06 @divyaswarnkar @mike-urnun-msft
I created a work item to track work on this issue. Thank you very much for finding and opening this issue.


Rendering of description property in Field base class missing

Each FieldType in WTForms provide a description property for use as help text. Details can be found here - http://wtforms.readthedocs.org/en/latest/fields.html#the-field-base-class
I'll be be happy to submit a pull request to implement this change.

Well spotted. Yes, please do. There's a "help-block" class used in bootstrap forms for this.

I've added support for the description parameter.
Thanks


docs: fix broken cmd environment variable set and added quotes for consistency.

Please describe the changes this PR makes and why it should be merged:
Fixed broken cmd environment variable set and added quotes to linux and cmd example for consistency.
Package

discordx

check create discordx example as well


Update online_accounts_to_join.md

copied text
expanded mailing list and other accounts
added links, as much as possible

Thank you for taking care of this, LMK if something is not clear


cs: ZipSlip query

Initial push to verify the build

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Denis Levin seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

reopened from a different account


Gradio Web has issues when opened

Hello! I am very interested in your work. After following the readme tutorial to open it on two 4090 GPU, I encountered the following issue and cannot use it. What is the problem?

I'm getting the same error


git performance improvement if aliased

If git is aliased to hub the performance of the git module was very poor. The prompt was very laggy.
I replaced all occurences of git with command git and used it for a while now. Performance is back to normal and all git infos are displayed nicely.

Slightly off topic, but if you install hub from --HEAD performance is much better as it is written in Go.

This is a duplicate of #462.

This still seems like a reasonable change. Is there any reason to avoid merging this @sorin-ionescu ?

Unfortunately, there are pretty substantial conflicts in this now. If you'd still like this to be merged, please re-submit it rebased off of the master branch.


CKEditor Image Upload error

Plugins won't show browse server.

Responsive filemager 9 added. Still got problems with the correct URL.


Preset options are ignored

When I make a release of a lib in my project (using the command "npx nx version example-lib", I have the following preset:
{
  "version": {
    "executor": "@jscutlery/semver:version",
    "options": {
      "preset": {
        "name": "angular",
        "commitUrlFormat": "www.example.com/commit/{{hash}}",
        "compareUrlFormat": "www.example.com/{{previousTag}}...{{currentTag}}",
        "issueUrlFormat": "www.example.com/issues/{{id}}"
      }
    }
  }
}

When the changelog is generated, all of my settings are ignored and all the URL:s consist of just the original adress from where the repo was cloned.
Any help would be highly appreciated. :)

This is a bug that needs to be addressed, related to #639.

Just reporting that I'm having this issue as well.


Search API RefinementFilters without quotes no longer work

Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
SharePoint REST API
Developer environment
macOS
What browser(s) / client(s) have you tested

[ ] 💥 Internet Explorer
[ ] 💥 Microsoft Edge
[ ] 💥 Google Chrome
[ ] 💥 FireFox
[ ] 💥 Safari
[ ] mobile (iOS/iPadOS)
[ ] mobile (Android)
[X] not applicable
[ ] other (enter in the "Additional environment details" area below)

Additional environment details
Problem identified using the PnP Modern Search web part (v4.7). Problem reproduced, and workaround verified, using SharePoint Search query Tool v2.10.0.
Describe the bug / error
Sending a query to the search API (/_api/search/query or /_api/search/postquery) with an unquoted refinement filter has stopped working. For example, up until this month, the following query worked:
{
  "request": {
    "ClientType": "AllResultsQuery",
    "Querytext": "trafalgar",
    "SourceId": "efaea570-d6b3-45a5-992f-c43f71bfe3b5",
    "RefinementFilters": {
      "results": [
        "RefinableString113:101410"
      ]
    },
    "SelectProperties": {
      "results": [
        "RefinableString113",
        "RefinableString115",
        "RefinableString120"
      ]
    }
  }
}

Then, sometime around the end of October or beginning of November, this query stopped returning result. It doesn't error, it just returns no results.
The fix is to wrap the filter value in quotes like this:
{
  "request": {
    "ClientType": "AllResultsQuery",
    "Querytext": "trafalgar",
    "SourceId": "efaea570-d6b3-45a5-992f-c43f71bfe3b5",
    "RefinementFilters": {
      "results": [
        /* filter string wrapped in quotes */
        "RefinableString113:\"101410\""
      ]
    },
    "SelectProperties": {
      "results": [
        "RefinableString113",
        "RefinableString115",
        "RefinableString120"
      ]
    }
  }
}

This returns the expected results. The FQL documentation indicates that quotes are not required unless there is a space. Yes, they are recommended, and maybe should be required, but right now this causes some backwards compatibility issues.
Steps to reproduce
Send a postquery to the search api using a string refinement filter with no spaces, not wrapped in quotes. Similar to the example above (but with parameters modified to return results in your environment):
Expected behavior
Search results filtered by the supplied refiner value.

A bit more info... it turns out the problem only occurs if the value is a number. i.e. This works fine:
"results": [
  "RefinableString113:Test"
]

So, it looks like the API is converting the value into a number which then doesn't match when filtering a string property. Seems reasonable to me. The FQL documentation already advises to quote all strings to avoid conflicts with reserved words. But it doesn't require it, so this is stall a backwards compatibility issue.


[silx.io.dictdump] h5todict does not keep original types

Hi, I currently use dicttoh5 and h5todict to easily store and restore dictionaries to/from disk. Unfortunately, I find very annoying that h5todict returns always numpy.ndarray types, no matter is the original saved type. My expected behavior would be that h5todict should try restoring the same type of data, at least for simple strings. Here a minimal working example:
import tempfile
import numpy as np
from silx.io.dictdump import dicttoh5, h5todict
a = "my string"
b = np.arange(10)
ftmp = tempfile.mktemp(prefix='test', suffix='.h5')
dout = dict(a=a, b=b)
dicttoh5(d, ftmp)
print(f"data saved to disk ({ftmp})")
print(f"a: {type(dout['a'])},\nb: {type(dout['b'])}")
dback = h5todict(ftmp)
print(f"data read back from disk")
print(f"a: {type(dback['a'])},\nb: {type(dback['b'])}")

with output
data saved to disk (/tmp/testba3k_ofy.h5)
a: <class 'str'>,
b: <class 'numpy.ndarray'>
data read back from disk
a: <class 'numpy.ndarray'>,
b: <class 'numpy.ndarray'>

If I read directly the HDF5 file with silx viewer, the sting type is read correctly

Is there a way to improve the behavior of h5todict? or should I prefer JSON over HDF5 dumping?

Is there a way to improve the behavior of h5todict? or should I prefer JSON over HDF5 dumping?

It seems there is a systematic call to this function in dictdump.py
def _prepare_hdf5_write_value(array_like):
    """Cast a python object into a numpy array in a HDF5 friendly format.
    :param array_like: Input dataset in a type that can be digested by
        ``numpy.array()`` (`str`, `list`, `numpy.ndarray`…)
    :return: ``numpy.ndarray`` ready to be written as an HDF5 dataset
    """
    array = numpy.asarray(array_like)
    if numpy.issubdtype(array.dtype, numpy.bytes_):
        return numpy.array(array_like, dtype=vlen_bytes)
    elif numpy.issubdtype(array.dtype, numpy.str_):
        return numpy.array(array_like, dtype=vlen_utf8)
    else:
        return array

@vasole the data are stored correctly into the HDF5:
import h5py
ftmp = "/tmp/testba3k_ofy.h5"
with h5py.File(ftmp) as h5:
    for k, v in h5.items():
        print(f"{k}: {type(v[()])}")

which gives:
a: <class 'bytes'>
b: <class 'numpy.ndarray'>

Is reading back that is wrong, in my opinion

h5py do not allow anymore to read strings transparently.
That is why i guess you have this behaviour.
But this could be patched by h5todict. It's a cost, but this API was not designed for efficiency anyway.

h5py do not allow anymore to read strings transparently. That is why i guess you have this behavior.

The way h5py reads strings is fine to me and I expect h5todict acting the same. I do not see the point of converting everything to numpy.ndarray. In fact, having a bytes type for a string is fine and very simple to decode, while having  numpy.ndarray for a string is difficult to know if it should be converted to a string or not.
Could h5todict return the same types as h5py does?

Here is how you are supposed to write and read string in h5py. Notice i dont know why the type is |O, it means there is a problem somehow.
In [30]: import h5py
    ...: import numpy
    ...: with h5py.File("foo", "w") as f:
    ...:     utf8_type = h5py.string_dtype('utf-8')
    ...:     f["aaa"] = numpy.array(u"bbb", dtype=utf8_type)
    ...:     print(f["aaa"])
    ...:     print(f["aaa"].asstr()[()])  # python string
    ...:     print(f["aaa"][()])  # raw data
    ...:
<HDF5 dataset "aaa": shape (), type "|O">
bbb

So the same way you get the h5py API. See that you have to use [()], same as h5py.
In [46]: import tempfile
    ...: import numpy as np
    ...: from silx.io.dictdump import dicttoh5, h5todict
    ...: a = "my string"
    ...: b = np.arange(10)
    ...: ftmp = tempfile.mktemp(prefix='test', suffix='.h5')
    ...: dout = dict(a=a, b=b)
    ...: dicttoh5(dout, ftmp)
    ...: print(f"data saved to disk ({ftmp})")
    ...: print(f"a: {type(dout['a'])},\nb: {type(dout['b'])}")
    ...: dback = h5todict(ftmp)
    ...: print(f"data read back from disk")
    ...: print(f"a: {dback['a'][()]} ({type(dback['a'][()])})")

data saved to disk (/tmp/testk05oc16v.h5)
a: <class 'str'>,
b: <class 'numpy.ndarray'>
data read back from disk
a: my string (<class 'numpy.str_'>)

@vallsv thanks for the tip! I did not know that using [()] would return a numpy.str type.  I am using the following workaround now:
import tempfile
import numpy as np
from silx.io.dictdump import dicttoh5, h5todict
a = "my string"
b = np.arange(10)
ftmp = tempfile.mktemp(prefix='test', suffix='.h5')
dout = dict(a=a, b=b)
dicttoh5(dout, ftmp)
print(f"data saved to disk ({ftmp})")
print(f"a: {type(dout['a'])},\nb: {type(dout['b'])}")
dback = h5todict(ftmp)
for k, v in dback.items():
    if isinstance(v[()], np.str):
        dback[k] = np.array_str(v)
print(f"data read back from disk")
print(f"a: {type(dback['a'])},\nb: {type(dback['b'])}")

and it works as expected:
data saved to disk (/tmp/tests0o__swl.h5)
a: <class 'str'>,
b: <class 'numpy.ndarray'>
data read back from disk
a: <class 'str'>,
b: <class 'numpy.ndarray'>

this trick solves my problem. Please, feel free to close the issue if no action is required on dicttoh5.

@vasole  @vallsv My final solution to correctly restore str and float when loading a dict with h5todict is:
import copy
import numpy as np
def _restore_from_array(dictin):
    """restore str/float from a nested dictionary of numpy.ndarray"""
    for k, v in dictin.items():
        if isinstance(v, dict):
            _restore_from_array(v)
        else:
            if isinstance(v[()], np.str):
                dictin[k] = np.array_str(v)
            if isinstance(v[()], np.float):
                dictin[k] = copy.deepcopy(v.item())

I think it would be very beneficial for every user to include something like this (probably coded more efficiently) directly in h5todict.

h5todict has an asarray argument (True by default) and I think what you are after here is to use asarray=False:
https://github.com/silx-kit/silx/blob/a2cc33e0331fe409bc35a697f17395d074fd517c/src/silx/io/dictdump.py#L569-L570
It was added in PR #2692. asarray is True by default to keep the behavior compatible with previous versions.
By using h5todict(..., asarray=False), you get:
In [35]: import tempfile
    ...: import numpy as np
    ...: from silx.io.dictdump import dicttoh5, h5todict
    ...: a = "my string"
    ...: b = np.arange(10)
    ...: ftmp = tempfile.mktemp(prefix='test', suffix='.h5')
    ...: dout = dict(a=a, b=b)
    ...: dicttoh5(dout, ftmp)
    ...: print(f"data saved to disk ({ftmp})")
    ...: print(f"a: {type(dout['a'])},\nb: {type(dout['b'])}")
    ...: dback = h5todict(ftmp, asarray=False)
    ...: print(f"data read back from disk")
    ...: print(f"a: {type(dback['a'])},\nb: {type(dback['b'])}")
data saved to disk (/tmp/testqwetp5th.h5)
a: <class 'str'>,
b: <class 'numpy.ndarray'>
data read back from disk
a: <class 'str'>,
b: <class 'numpy.ndarray'>

@t20100 thank you very much indeed for your help. Yes, indeed using asarray=False solves this issue.


Adding support for new planner: problems parsing pddl files

Hello,
I am working on adding support for the Symk planner to PlanSys2, mainly because I need a planner that supports derived predicates.
I created a ros package and a plansys plugin for the planner: https://github.com/Rezenders/symk_ros
And I am trying to apply it to SUAVE exemplar with the following setup: https://github.com/Rezenders/suave_planning
However, I am having some problems with the parsing of my PDDL files. The derived predicates in the domain file don't get parsed, and some predicates in the problem file are also not getting parsed. I can check this by looking into the domain and problem files created in the /tmp folder.
For example, the suave_domain_created.pddl domain file is outputted as:
(define (domain suave)
(:requirements :adl
 :derived-predicates :negative-preconditions
 :strips
 :typing
 )

(:types
        pipeline
        robot
        action
)

(:constants
 a_search_pipeline a_inspect_pipeline - action
    internal_error_string in_error_fr_string in_error_component_string in_error_nfr_string false_string false_boolean water_visibility recovered_string true_boolean
)

(:predicates
		(c_status ?x ?y)
		(component ?x)
		(fd_efficacy ?x ?y)
		(fd_error_log ?x ?y)
		(fd_realisability ?x ?y)
		(fg_status ?x ?y)
		(function ?x)
		(functiondesign ?x)
		(functiongrounding ?x)
		(hasnfr ?x ?y)
		(hasqaestimation ?x ?y)
		(hasqavalue ?x ?y)
		(hasvalue ?x ?y)
		(inferred-c_status ?x ?y)
		(inferred-component ?x)
		(inferred-fd_efficacy ?x ?y)
		(inferred-fd_error_log ?x ?y)
		(inferred-fd_realisability ?x ?y)
		(inferred-fg_status ?x ?y)
		(inferred-function ?x)
		(inferred-functiondesign ?x)
		(inferred-functiongrounding ?x)
		(inferred-hasnfr ?x ?y)
		(inferred-hasqaestimation ?x ?y)
		(inferred-hasqavalue ?x ?y)
		(inferred-hasvalue ?x ?y)
		(inferred-inconsistent)
		(inferred-isqatype ?x ?y)
		(inferred-lessthan ?x ?y)
		(inferred-o_always_improve ?x ?y)
		(inferred-o_status ?x ?y)
		(inferred-o_updatable ?x ?y)
		(inferred-objective ?x)
		(inferred-qa_comparison_operator ?x ?y)
		(inferred-qa_critical ?x ?y)
		(inferred-qavalue ?x)
		(inferred-qualityattributetype ?x)
		(inferred-requiresc ?x ?y)
		(inferred-requireso ?x ?y)
		(inferred-solvesf ?x ?y)
		(inferred-solveso ?x ?y)
		(inferred-typef ?x ?y)
		(inferred-typefd ?x ?y)
		(isqatype ?x ?y)
		(o_always_improve ?x ?y)
		(o_status ?x ?y)
		(o_updatable ?x ?y)
		(objective ?x)
		(qa_comparison_operator ?x ?y)
		(qa_critical ?x ?y)
		(qavalue ?x)
		(qualityattributetype ?x)
		(requiresc ?x ?y)
		(requireso ?x ?y)
		(solvesf ?x ?y)
		(solveso ?x ?y)
		(typef ?x ?y)
		(typefd ?x ?y)
        (action_requires ?a - action ?f1 ?f2)
        (fd_available ?fd)
        (pipeline_found ?p - pipeline)
        (pipeline_inspected ?p - pipeline)
        (robot_started ?r - robot)
)

(:action start_robot
      :parameters (?r - robot)
      :precondition (and
      )
      :effect (and
        (robot_started ?r)
      )
    )
(:action search_pipeline
      :parameters (?a - action ?p - pipeline ?r - robot ?fd1 ?fd2)
      :precondition (and
        (= ?a a_search_pipeline)
        (exists (?f1 ?f2)
          (and
            (action_requires ?a ?f1 ?f2)
            (function ?f1)
            (function ?f2)
            (functiondesign ?fd1)
            (functiondesign ?fd2)
            (solvesf ?fd1 ?f1)
            (solvesf ?fd2 ?f2)
            (not (inferred-fd_realisability ?fd1 false_boolean))
            (not (inferred-fd_realisability ?fd2 false_boolean))
          )
        )
        (robot_started ?r)
      )
      :effect (and
        (pipeline_found ?p)
      )
    )
(:action inspect_pipeline
      :parameters (?a - action ?p - pipeline ?r - robot ?fd1 ?fd2)
      :precondition (and
        (= ?a a_inspect_pipeline)
        (exists (?f1 ?f2)
          (and
            (action_requires ?a ?f1 ?f2)
            (function ?f1)
            (function ?f2)
            (functiondesign ?fd1)
            (functiondesign ?fd2)
            (solvesf ?fd1 ?f1)
            (solvesf ?fd2 ?f2)
            (not (inferred-fd_realisability ?fd1 false_boolean))
            (not (inferred-fd_realisability ?fd2 false_boolean))
          )
        )
        (robot_started ?r)
        (pipeline_found ?p)
      )
      :effect (and
        (pipeline_inspected ?p)
      )
    )
)

The suave_problem_created.pddl problem file becomes:
( define ( problem problem_1 )
( :domain suave )
( :objects
	pipeline - pipeline
	bluerov - robot
)
( :init
	( qualityattributetype water_visibility )
)
( :goal
	( and
		( robot_started bluerov )
		( pipeline_found pipeline )
		( pipeline_inspected pipeline )
	))
)

I will work on this the following week and propose a PR when I solve these problems. I opened this issue to let you know and check if anyone has insights on how to solve this.
I guess the problem of the derived predicates not being parsed is related to the parseDerived method https://github.com/PlanSys2/ros2_planning_system/blob/c063ce54cf86f46594e9bda160e01dc8c40d4de5/plansys2_pddl_parser/include/plansys2_pddl_parser/Domain.h#L102
But I still need to figure out why the problem file predicates are not parsed. Would anyone happen to have any ideas?

PR #318 solves the problem of the derived predicates not being parsed.
However, I still get errors with not expressions of the form (not (= ?y ?z)) such as in:
(:derived (inferred-Inconsistent )
		(exists (?x ?y ?z)
 			(and
				(inferred-C_status ?x ?y)
				(inferred-C_status ?x ?z)
				(not (= ?y ?z))
			)
		)
 	)

Error:
Error parsing PDDL:  does not name a known token
Error parsing PDDL:  does not name a known token

This error occurs because it is not possible to cast  CompositeExpression to Ground *. Thus, cond results in a nullptr.
https://github.com/PlanSys2/ros2_planning_system/blob/c063ce54cf86f46594e9bda160e01dc8c40d4de5/plansys2_pddl_parser/src/plansys2_pddl_parser/Not.cpp#L31-L35
I don't really know how to fix this problem as I don't fully understand what the Ground class does.
Just brainstorming: what if we make Expression a derived class of ParamCond?


UnknownHostException for created storage account

Describe the bug
As my understanding, when data is large, Kusto Spark Connector will create a temporary storage to write csv file.
But in my case, it somehow can't reach the created storage account.
It will raise the exception:
reactor.core.Exceptions$ReactiveException: java.net.UnknownHostException: *****.blob.core.windows.net: Name or service not known
To Reproduce
I am not sure the reason it happened.
The Kusto cluster is in other subscription which enables only allowing VPN to connect to.
And our Synapse is in a private virtual network.
Expected behavior
It should be okay to read the data through Kusto Spark Connector.
Desktop (please complete the following information):

OS: Windows 11
Version 23H2

Additional context
Spark 3.4 with "com.microsoft.azure.kusto" %% "kusto-spark_3.0" % "5.0.8".

Please refer : https://github.com/Azure/azure-kusto-spark/issues/385 and https://github.com/Azure/azure-kusto-spark/issues/390
and see  if these provide pointers.

Thank you. It seems that I can do nothing if I would like to continues using this library.
Because the Kusto cluster is not under our management, the storage account is blocked by network rules.
Also, the SAS token is forbidden to use by the compliance, so the transient storage is not working for us as well.

Hello @ChingChuan-Chen, Thanks for the comment. So if I understand it right you want to bring in your own storage for ingestion ? Is that a fair understanding ?
There are a specific set of storages that are used per Kusto cluster ( they do not change in the lifetime of the cluster ), I can provide a walkthrough of it if needed.

Thank you. It seems that I can do nothing if I would like to continues using this library.
Unfortunately, this is the way the connector was designed, a lot of customers who use the lib do not want seperate storage (except in case of read where they want to reuse data) , ingestion should work as-is
The  library just uses the Queued Ingestion where it uses the blob to ingest data.

If you have a question , happy to take it forward . you can reach me at ramacg at ms dot com


Give Infura the pillow

Infura has failed us.
Kill all reference and dependencies on it's service and go all in on Alchemy.
 Still metamask uses underneath but we can strangle this out to only use it for transactions and not loading of data

I don't think we have to go that far, if Infura is used by MetaMask then that's fine. Just wanted to get rid of our dependency on it, only so much we can do if users wallets are using certain endpoints. Infura is expected to be operational now.


[.NET Core 3][VB.NET][WPF] error BC30149: Class 'Application' must implement 'Sub InitializeComponent()' for interface 'IComponentConnector'.

When building a WPF application using VB.NET on .NET Core 3, you get the following error
obj\Debug\net462\Application.g.vb(45,16): error BC30149: Class 'Application' must implement 'Sub InitializeComponent()' for interface 'IComponentConnector'.
This is due to VB.NET applications using Application.xaml as the ApplicationDefinition item by default, instead of App.xaml like C#.
The workaround is to add the following into the .vbproj file:
<ItemGroup>
  <ApplicationDefinition Include="Application.xaml" Condition="'$(EnableDefaultApplicationDefinition)' != 'false' And Exists('$(MSBuildProjectDirectory)/Application.xaml')" />
  <Page Remove="@(ApplicationDefinition)" />
</ItemGroup>

cc @diverdan92 @fabiant3 @vatsan-madhavan

This is related to https://github.com/dotnet/cli/issues/10106. We should consider updating the default logic in the SDK for VB.NET to incorporate Application.xaml as the default for Preview 2.
cc @dotnet/wpf-developers

I expected the following to work, but it does not:
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
  <PropertyGroup>
    <TargetFramework>netcoreapp3.0</TargetFramework>
    <OutputType>WinExe</OutputType>
    <UseWPF>true</UseWPF>
    <!-- Don't make ApplicationDefinition for me -->
    <EnableDefaultApplicationDefinition>false</EnableDefaultApplicationDefinition>
  </PropertyGroup>

  <ItemGroup>
    <!-- This is my application definition -- I should be able to call it whatever I want -->
    <ApplicationDefinition Include="Application.xaml" />
  </ItemGroup>
</Project>

So there are two issues here:

Default application definition for VB doesn't match VB tradition
If you opt out of EnableApplicationDefinition, but not EnabledDefaultPageItems, you have to remove your own ApplicationDefinition from pages yourself.

I think this is a simpler workaround if you're going to paste it into your project and not a targets file trying to light-up on Application.xaml  presence and different values of EnableDefaultApplicationDefinition.
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
  <PropertyGroup>
    <TargetFramework>netcoreapp3.0</TargetFramework>
    <OutputType>WinExe</OutputType>
    <UseWPF>true</UseWPF>
+    <EnableDefaultApplicationDefinition>false</EnableDefaultApplicationDefinition>
  </PropertyGroup>

  <ItemGroup>
+    <ApplicationDefinition Include="Application.xaml" />
+    <Page Remove="@(ApplicationDefinition)" />
  </ItemGroup>
</Project>

It is basically what I expected to work + the Page remove as a workaround for bug (2).
I wonder if it's worth making the targets have different defaults for VB or C#. Another solution would be for default to try App.xaml first and fall back Application.xaml (based on existence), irrespective of language. That feels less surprising to me. If I were porting something from VB to C# or vice versa, I'd get very confused otherwise.

I wonder if it's worth making the targets have different defaults for VB or C#. Another solution would be for default to try App.xaml first and fall back Application.xaml (based on existence), irrespective of language. That feels less surprising to me. If I were porting something from VB to C# or vice versa, I'd get very confused otherwise.

I like the idea of treating both App.xaml and Application.xaml as default candidates for ApplicationDefinition.

I agree. Supporting both App.xaml and Application.xaml for both languages seems sensible.

In App.xaml, remove the StartupURI element in  tag.
Change App.xaml.vb as below.

Imports System.Windows
''' <summary>
''' Interaction logic for App.xaml
''' </summary>
Partial Public Class App
    'Inherits Application
    Public Shared Sub Main()
        Dim app As Application = New Application()
        app.Run(New MainWindow())
    End Sub
End Class

Add "StartupObject" in the vbproj file as below.

<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">

  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>netcoreapp3.0</TargetFramework>
    <UseWPF>true</UseWPF>
    <StartupObject>Sub Main</StartupObject>
  </PropertyGroup>
</Project>

Error BC30149 will go off and the project will compile fine.

This issue was moved to dotnet/wpf#1971


SCPD fails when an allowedValueRange maximum is an empty string

In trying to set up a system with a friend's router (so I am unable to rigorously test), I found that when parsing StateVariables when calling service.scpd(), I got this error: Invalid response: cannot parse integer from empty string
Turns out, in their WANIPConn1 service, the Uptime state variable had no maximum defined. Specifically:
<stateVariable sendEvents="no">
  <name>Uptime</name>
  <dataType>ui4</dataType>
  <defaultValue>0</defaultValue>
  <allowedValueRange>
    <minimum>0</minimum>
    <maximum/>
    <step>1</step>
  </allowedValueRange>
</stateVariable>

When parsing, maximum here causes the parsing to fail.
The specific router is a TP-Link TD-W9970, model number 4.0.
It also reproduces on the TP-Link Archer VR1600v (unknown model version)
I'm not sure how this would best be represented, but if informed how to I'm happy to do a PR myself.
The specific error location is in scpd::state_variable::range_from_xml() when parsing maximum by calling utils::parse_node_text().

As a note, I realize that having maximum as empty is outside of spec for allowedValueRange, but I'm not sure how I'm meant to handle it here, as this seems to apply to every TP-Link router I can find.

I think a missing maximum can be reasonably treated as having no maximum, even if it's not in the spec.
It's been a while since I've looked at the code but I think you could change change these lines
https://github.com/jakobhellermann/rupnp/blob/1ff4881a315f7a2ddee62d79267720bd1cb429f9/src/scpd/state_variable.rs#L188-L189
to
    let minimum = utils::parse_node_text(minimum).unwrap_or(i32::MIN);
    let maximum = utils::parse_node_text(maximum).unwrap_or(i32::MAX);

The way, if it fails to parse the empty string as a number it will just fallback to allowing everything.
I'd be happy to merge a PR if you want to fix it.

I'll need to peek at it closer as it'll need type info passed to get reasonable minimums/maximums based on the field type (currently not acknowledged by the underlying type used for range) but I'll see what I can do. I'll gladly send a PR later this week when I get some time.
-------- Original Message --------
On 20 Feb 2022, 23:42, Jakob Hellermann wrote:

I think a missing maximum can be reasonably treated as having no maximum, even if it's not in the spec.
It's been a while since I've looked at the code but I think you could change change these lines
https://github.com/jakobhellermann/rupnp/blob/1ff4881a315f7a2ddee62d79267720bd1cb429f9/src/scpd/state_variable.rs#L188-L189
to
let
minimum
=
utils
::
parse_node_text
(minimum).
unwrap_or
(
i32
::
MIN);
let
maximum
=
utils
::
parse_node_text
(maximum).
unwrap_or
(
i32
::
MAX);
The way, if it fails to parse the empty string as a number it will just fallback to allowing everything.
I'd be happy to merge a PR if you want to fix it.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

@jakobhellermann Since as is default is using String, should I just change range to do strings? I can then do valid defaults based on the output without worry. I'd need to switch RangeInclusive<> to a tuple or struct, but then I can either leave the string blank and let the user handle it, or fall back to a parsed default based on the data type, as currently it doesn't seem like the library actually parses out the state variable's type to the correct underlying type (which includes fixed point ints and floats, as well as complex date/time/timezone data)


k8s: bookinfo driver script

add an independent driver script for the bookinfo sample - so it can be re-used by both k8s and istio testing, as well as being used for driving the bookinfo demo.
to run the script:
./tests/bookinfo/bookinfo.sh start

rerun skydive-functional-tests-backend-orientdb


ScratchJr crash (after running out of tracks)

Tapping logo to go back to the lobby (projects list), after creating a new project, crashed the system. Here's the logcat from right before it started rebooting.
03-23 15:37:12.798 15057 15140 D ScratchJr.DBManager: query 'select name,thumbnail,id,isgift from projects where deleted = ? AND version = ? AND gallery IS NULL order by ctime desc', [NO, iOSv01]
03-23 15:37:12.836 15057 15140 I ScratchJr.JSDirect: Application is done loading
03-23 15:37:15.411 15057 15057 W BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 15057
03-23 15:37:15.598 15057 15057 E ScratchJr: JavaScript log, :0, Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.
03-23 15:37:15.901 15057 15140 I ScratchJr.JSDirect: Splash screen done loading

The splash screen didn't load properly (corrupted screen), and the system rebooted.
The new project was missing a thumbnail image on reopening, but was able to load, and create a thumbnail after loading.

closing stale issue (also suspect it's related to the other problem)


Added new remote work sources

For jobs it shouldn’t go on the main table

Maybe keep line 148 and revert the other two changes?

sure I'll keep 148 only, will make a new PR


Add npm package manager distribution

why: make it so that prospective users can just npx typst instead of going through complicated install instructions.
while im sure javascript nodejs people are not your primary audience, there are a lot of web-related and web-adjacent developers who may want to try typst and probably find it easier to use npx typst as opposed to other install/run methods like Docker or cargo install.
i also notice that there's already some other package managers listed in the readme. i think npm could be added to that list:

this pr would:

add an npm/ folder that has a package.json to run a postinstall script which will download the corresponding lockstep release (currently 0.10.0) from GitHub Releases
add a npm/main.js file that will correspond to the npx typst package default binary. this will download the typst binary if not already (if postinstall script was skipped/disabled) and then run it.
copy-paste the README.md and LICENSE (unsure if you want any readme changes. the npm/README.md file will be displayed at https://www.npmjs.com/package/typst
add a npm-publish.yml workflow which (you guessed it) runs npm publish on manual dispatch. unsure if you want to add an automagic trigger or anything.

you can now run this in your terminal to use typst!
npx typst --help

yes this works! the typst package is published; just not officially.
this npx solution works very similar to other efforts by Deno https://www.npmjs.com/package/deno-bin and Bun https://www.npmjs.com/package/bun.
note: to make the npm-publish.yml workflow work you'll need to add an NPM_TOKEN secret to the repo.
sidenote: i'd very much like to transfer ownership of the typst npm package and @typst npm organization to actual @typst members instead of just me (some random guy)

complicated install instructions

Surely this is more complicated than the existing options? I don't understand why typst should be on a package manager for JavaScript

This makes it easy to use as a dependency for JS based projects, e.g. one could use it for generating documentation PDFs as part of the build system for a app or make server-side PDF generation an easy to add option for a Node based server package.

From what I've read, this does not provide Typst bindings to JS though. Rather, it is a way to install the CLI via npm. Personally, I'm not sure how much sense that makes, but I see how some might find it useful if they don't use another package manager.
However, we don't maintain any of the package manager distributions (brew, etc.) ourselves. The only exceptions of things that live in this repo are the Nix flake and the Dockerfile and I already don't like that to be honest because I have no idea how they work. This is probably not the response you've been looking for, but unfortunately we don't have the bandwidth to maintain such things ourselves.

typst npm package is now sourced from https://github.com/typst-community/typst.js for anyone who was interested or stumbles on this pr from google


[Docs]: Create how-to guides for linking grafana and prometheus into your ephemeral environments

Where did you see an issue in our documentation?
https://docs.kurtosis.com
Description of the issue
It's not obvious that Kurtosis is easy and clear to use for adding grafana and prometheus into ephemeral environments using Kurtosis

I have written the code and @leeederek is writing this so giving it to him :-)
Happy unblocking you anyway @leeederek


Is it possible to search for properties?

Let's say I would like to perform a lookup search to find the property areaTotal (https://dbpedia.org/ontology/areaTotal), is there any way to use this tool with this purpose?

sure.
this is a very simple example config that indexes everything that has a label from the dbpedia ontology.
https://github.com/dbpedia/dbpedia-lookup/commit/fdfa975532564c58b0559d686ef52f90979d935e
but you can also build more advance keyword-based term searches with lookup
see a prototype here http://tools.dbpedia.org:8765/
but there is also a new project (still experimental) that uses a semantic search with vector embeddings
https://github.com/dbpedia/archivo-term-search-POTS independent of lookup instead using weaviate
the keyword  prototype uses the following fields
 - fieldName: label
      resourceName: term
      query: >
        SELECT DISTINCT ?term ?label  WHERE {
          ?term <http://www.w3.org/2000/01/rdf-schema#label> | <http://www.w3.org/2004/02/skos/core#prefLabel> | <http://purl.org/dc/elements/1.1/title> | <http://purl.org/dc/terms/title> ?label .
          FILTER (lang(?label)="en" || lang(?label)="de" || lang(?label)="")
        }
    - fieldName: definition
      resourceName: term
      query: >
        SELECT DISTINCT ?term ?definition WHERE {
          ?term <http://purl.obolibrary.org/obo/IAO_0000115> ?definition .
        }
    - fieldName: type
      resourceName: term
      query: >
        SELECT DISTINCT ?term ?type WHERE {
          ?term <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?type .
        }
      fieldType: string
    - fieldName: comment
      resourceName: term
      query: >
        SELECT DISTINCT ?term ?comment WHERE {
          ?term <http://www.w3.org/2000/01/rdf-schema#comment> ?comment .
        }
    - fieldName: altLabel
      resourceName: term
      query: >
        SELECT DISTINCT ?term ?altLabel WHERE {
          ?term <http://www.w3.org/2004/02/skos/core#altLabel> | <http://purl.obolibrary.org/obo/IAO_0000118> ?altLabel .
        }
    - fieldName: description

and the following search
 exactMatchBoost: 5
  prefixMatchBoost: 2
  fuzzyMatchBoost: 1
  fuzzyEditDistance: 2
  fuzzyPrefixLength: 2
  maxResults: 100
  format: JSON
  queryFields:
    - fieldName: label
      weight: 8.0
      highlight: true
      queryByDefault: true
    - fieldName: altLabel
      weight: 6.0
      highlight: true
      queryByDefault: true
    - fieldName: definition
      weight: 1.0
      highlight: true
      queryByDefault: true
    - fieldName: description
      weight: 0.9
      highlight: true
      queryByDefault: true
    - fieldName: comment
      weight: 0.8
      highlight: true
      queryByDefault: true
    - fieldName: type


"Load more" or infinite scroll

Hello!
I'd like to create a "Load more" feature for long lists (e.g. 2000 items) and still have List.js filter/sort options.
Has this been done with List.js; any examples? Or is another approach better?
Searching here and Google for List.js + "load more" or "infinite scroll", doesn't bring up any results.

Also interested in this!

any solution to dynamic content?

Since I could not find anything on infinite scrolling with list.js besides this 2 year old closed issue, I decided to create one.  Here is a rough example for anyone else who wants to use infinite scrolling instead of using pagination
https://gist.github.com/Alfa-Q/d7bbcf7d0727a90c6f0dae3bd05ec846
I apologize in advance if it is rude to comment on closed issues, I am pretty new to using github outside of school.


Debug: Debugging VS Code breaks down

I've just hit a scenario in which debugging VS Code stops working all of a sudden and breaks down UI.
Sorry for the complicated repro steps, but I can't seem to narrow it down more than this:
Repro

Create an empty test folder. Then, inside create a file grandfather/father/son.txt, creating the respective folders.
Check out vscode 9a7d52b769d82d413422fbd5cec3dbaa21a08b2b and start yarn watch.
Start debugging and open the folder created in the first step.
Expand grandfather, you should now see a compressed grandfather/father folder along with one son.txt child.
Press Explorer Refresh action until grandfather collapses.
Put a breakpoint in asyncDataTree.ts#647
Expand grandfather. You'll hit the breakpoint and :bug:

Notice the variables view is either empty or endlessly loading
None of the debug actions work any more: play, stop, continue, etc

I am force to killall code-oss and restart debugging. I can repro this 100% of the time.
I've showed this to @weinand. We tried getting output which would lead us to the problem using the trace option, but that didn't help much. He suggested to try to reproduce in the integrated Chrome DevTools and it does not reproduce.
cc @isidorn

Are you sure there isn't anything interesting in the log? If you are still set up to repro this, can you share it?

@roblourens I've simplified the repro steps. I've sent you the log via Slack.

Thanks. It looks like electron just stopped responding, and it doesn't look like the DA did anything weird. I'll try to see if there's anything we can do about it though.

This is really weird. I see it 100% of the time here but there is nothing unusual about this code. It doesn't repro just in Chrome with the web UI. It still reproes in Electron 7.
@deepak1556 any idea?

Observing the same as @roblourens  https://streamable.com/zwsw1 , electron render is actually crashing here. I will investigate further.

Using debug version of electron gave the following trace when the hang happens
abort: CSA_ASSERT failed: IntPtrGreaterThanOrEqual(case_value, IntPtrConstant(0)) [./../../v8/src/interpreter/interpreter-generator.cc:3230]

==== JS stack trace =========================================

    0: ExitFrame [pc: 0x10733f580]
    1: StubFrame [pc: 0x10750ae2a]
Security context: 0x002c504d3931 <String[#7]: file://>
    2: refreshAndRenderNode [0x2ca5ab4bc1] [file:///Users/demohan/github/vscode-vnext/out/vs/base/browser/ui/tree/asyncDataTree.js:1] [bytecode=0x2c9143f0a9 offset=0](this=0x002cacd44361 <AsyncDataTree map = 0x2cf5367379>#0#,0x002c2abc04d1 <undefined>,0x002c2abc04d1 <undefined>,0x002c2abc04d1 <undefined>)
    3: /* anonymous */ [0x2c4e256e09](this=0x002ca1a01c09 <JSGlobal Object>#1#,0x002c2abc04d1 <undefined>)
    4: StubFrame [pc: 0x10726028b]
    5: StubFrame [pc: 0x10714e9ba]
    6: EntryFrame [pc: 0x1070c1cf8]
    7: ExitFrame [pc: 0x10733fc40]
    8: StubFrame [pc: 0x1074a263e]
    9: refreshAndRenderNode [0x2ca5ab4bc1] [file:///Users/demohan/github/vscode-vnext/out/vs/base/browser/ui/tree/asyncDataTree.js:434] [bytecode=0x2c9143f0a9 offset=52](this=0x002cacd44361 <AsyncDataTree map = 0x2cf5367379>#0#,0x002c07d67521 <Object map = 0x2cf537c9a9>#2#,0x002c2abc0709 <false>,0x002c2abc04d1 <undefined>)
   10: _onDidChangeCollapseState [0x2ca5ab4e99] [file:///Users/demohan/github/vscode-vnext/out/vs/base/browser/ui/tree/asyncDataTree.js:522] [bytecode=0x2caaa86eb9 offset=88](this=0x002cacd44361 <AsyncDataTree map = 0x2cf5367379>#0#,0x002c4e240a71 <Object map = 0x2cfd6d6259>#3#)
   11: fire [0x2c0dd61189] [file:///Users/demohan/github/vscode-vnext/out/vs/base/common/event.js:461] [bytecode=0x2cabb8bba1 offset=420](this=0x002caecb3829 <Emitter map = 0x2ca325b489>#4#,0x002c4e240a71 <Object map = 0x2cfd6d6259>#3#)
   12: /* anonymous */(aka /* anonymous */) [0x2caecb2d81] [file:///Users/demohan/github/vscode-vnext/out/vs/base/common/event.js:43] [bytecode=0x2c71f7ca99 offset=31](this=0x002c2abc01d9 <null>,0x002cf733c279 <Object map = 0x2cfd6d6259>#5#)
   13: /* anonymous */(aka /* anonymous */) [0x2cf733c7d9] [file:///Users/demohan/github/vscode-vnext/out/vs/base/common/event.js:646] [bytecode=0x2c71f5b5b9 offset=23](this=0x002c2abc04d1 <undefined>)
   14: /* anonymous */(aka /* anonymous */) [0x2cf733cac1] [file:///Users/demohan/github/vscode-vnext/out/vs/base/common/event.js:659] [bytecode=0x2c71f5b489 offset=1](this=0x002c2abc04d1 <undefined>,0x002cf733c7d9 <JSFunction (sfi = 0x2c6477d779)>#6#)
   15: forEach [0x2c42d97459](this=0x002cf733bd89 <JSArray[2]>#7#,0x002cf733cac1 <JSFunction (sfi = 0x2c6477a2b9)>#8#)
   16: bufferEvents [0x2cd22700b1] [file:///Users/demohan/github/vscode-vnext/out/vs/base/common/event.js:659] [bytecode=0x2c53778a99 offset=55](this=0x002c09ff5181 <EventBufferer map = 0x2ca47306f9>#9#,0x002cf733bd39 <JSFunction (sfi = 0x2c7ab7b6a1)>#10#)
   17: setCollapsed [0x2c405cd909] [file:///Users/demohan/github/vscode-vnext/out/vs/base/browser/ui/tree/indexTreeModel.js:149] [bytecode=0x2c53778829 offset=98](this=0x002c66fc0309 <IndexTreeModel map = 0x2cf5356a79>#11#,0x002cf733b841 <JSArray[6]>#12#,0x002c2abc0709 <false>,0x002c2abc0709 <false>)
   18: setCollapsed [0x2cd9a9a5d1] [file:///Users/demohan/github/vscode-vnext/out/vs/base/browser/ui/tree/objectTreeModel.js:137] [bytecode=0x2c53778369 offset=35](this=0x002cfaffeba9 <ObjectTreeModel map = 0x2cf5366889>#13#,0x002c07d67559 <Object map = 0x2cfd6d1a29>#14#,0x002c2abc04d1 <undefined>,0x002c2abc0709 <false>)
   19: setCollapsed [0x2cd9a9ab11] [file:///Users/demohan/github/vscode-vnext/out/vs/base/browser/ui/tree/compressedObjectTreeModel.js:197] [bytecode=0x2c53777f71 offset=35](this=0x002cfaff7eb1 <CompressedObjectTreeModel map = 0x2cf5366929>#15#,0x002c07d67521 <Object map = 0x2cf537c9a9>#2#,0x002c2abc04d1 <undefined>,0x002c2abc0709 <false>)
   20: setCollapsed [0x2c10b94471] [file:///Users/demohan/github/vscode-vnext/out/vs/base/browser/ui/tree/compressedObjectTreeModel.js:335] [bytecode=0x2c53777dc9 offset=22](this=0x002cfaff6ca1 <CompressibleObjectTreeModel map = 0x2cf5366979>#16#,0x002c07d67521 <Object map = 0x2cf537c9a9>#2#,0x002c2abc04d1 <undefined>,0x002c2abc0709 <false>)
   21: onPointer [0x2cd9a9fb39] [file:///Users/demohan/github/vscode-vnext/out/vs/base/browser/ui/tree/abstractTree.js:822] [bytecode=0x2caaa91e29 offset=390](this=0x002cfaff69d1 <MouseController map = 0x2cf5366339>#17#,0x002cf733b3d1 <Object map = 0x2c1dd22a59>#18#)
   22: fire [0x2c0dd61189] [file:///Users/demohan/github/vscode-vnext/out/vs/base/common/event.js:461] [bytecode=0x2cabb8bba1 offset=420](this=0x002c7155b6d1 <Emitter map = 0x2ca325b489>#19#,0x002cf733b3d1 <Object map = 0x2c1dd22a59>#18#)
   23: /* anonymous */(aka /* anonymous */) [0x2c71563351] [file:///Users/demohan/github/vscode-vnext/out/vs/base/common/event.js:43] [bytecode=0x2c71f7ca99 offset=31](this=0x002c2abc04d1 <undefined>,0x002cf733b171 <MouseEvent map = 0x2cf537f659>#20#)
   24: fire [0x2c0dd61189] [file:///Users/demohan/github/vscode-vnext/out/vs/base/common/event.js:~443] [pc=0x1256a0f711](this=0x002c7155b709 <Emitter map = 0x2ca325b489>#21#,0x002cf733b171 <MouseEvent map = 0x2cf537f659>#20#)
   25: fn [0x2ca0948ff9] [file:///Users/demohan/github/vscode-vnext/out/vs/base/browser/event.js:9] [bytecode=0x2c91423f79 offset=13](this=0x002ca0948a11 <HTMLDivElement map = 0x2c61c8f639>#22#,0x002cf733b171 <MouseEvent map = 0x2cf537f659>#20#)
   26: InternalFrame [pc: 0x1070c1d9d]
   27: EntryFrame [pc: 0x1070c1b78]

One other thing I tried was to load the web version in a basic electron app and it didn't crash there. The only difference I can notice here is that in desktop version source maps are employed to help debug the typescript file directly whereas its not the case in web version.

Thanks @deepak1556, I was able to reduce it to code like this added somewhere in vscode:
class Foo {
	constructor() {
		document.body.addEventListener('click', () => {
			this.foo();
		});
	}

	async foo() {
		await this.foo2();
		await this.foo2();
	}

	async foo2() {
		return Promise.resolve();
	}
}

new Foo();

And the same thing happens with a bp on the first line of foo. Didn't repro in a simple electron app. Seems you need a click handler + native async await + something else from vscode.

In the above example Promise.resolve() seems to trigger the crash, is there any way we override the Promise implementation in vscode ? This might most likely be causing the same issue as the one referenced in https://github.com/electron/electron/pull/20925 , I will try with electron-7.0.x branch which has this fix.

Upstream issue raised https://github.com/electron/electron/issues/21288

The blink::PromiseRejectHandlerInMainThread is called when promise is rejected, and crash happened inside it because blink could not could a valid DOM window at current scope.
From the crash report, it seems that we need to make electron::EmitIPCEvent call JS via blink.

The upstream issue no longer repos with electron 11 and higher. Please check if this is still an issue with latest stable.


Need to update Installation Options documentation

Description:
The installation options documentation[1] is outdated for APIM 4.3.0. This documentation should be updated with the latest resources.
[1] https://apim.docs.wso2.com/en/latest/install-and-setup/install/installation-options/

Update [2024-11-14]
In https://github.com/wso2/aws-apim/ and https://github.com/wso2/ansible-apim/ repos, there are no branches for APIM 4.3.0, 4.4.0. Hence this need to be verified whether which branch should be pointed in corresponding documentation branches.
Hence keeping this on hold

Update [2024-11-20]
After a discussion with the team on 19th Nov, it was decided to remove aws-apim and ansible-apim references.
Further currently there are no 4.4 branches for kubernates and puppet apim repos. Hence the PRs were marked as drafts for now :
4.4.0 : https://github.com/wso2/docs-apim/pull/8859
master : https://github.com/wso2/docs-apim/pull/8860
4.3.0 : https://github.com/wso2/docs-apim/pull/8861

Update [2024-11-25]
4.4.0 branch was created for puppet-apim : https://github.com/wso2/puppet-apim/tree/4.4.x
it was mentioned that Kubernetes-apim repo is not being used for APIM 4.4.0 and instead, helm-apim is used.
Need to update the doc accordingly

Updated 4.4.0 and master branch PRs.
Modified 4.3.0 doc by https://github.com/wso2/docs-apim/pull/8917


Programming Components, Structure and Keywords #911

Description 📜
I have added Programming Components, Structure and Keywords in C
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
Fixes #911

Type of change 📝

[x] Documentation (Content Creation in the form of codes or tutorials)

Domain of Contribution 📊

[x] C/CPP

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

Screenshots / Gif (Optional) 📸

@Suvraneel Please review it.

All Changes have been resolved @vasu-1. Please review it once

@vasu-1 Changes has been resolved.


Is Benten still "pre-alpha"?

or shall we update https://www.commonwl.org/#Editors_and_viewers ?

@mr-c I think we can call it production ready. Thanks!


AdventureZ is incompatible with Apotheosis

Describe the bug
Crash on startup with code 2, java.lang.reflect.InvocationTargetException
Steps to reproduce

Add Apotheosis, Connector, and AdventureZ to an instance with all of their dependencies.
Change patchouli's version from 82 to 81
Set up fabric_loader_dependencies.json to fix the cloth-config2 error if encountered
Launch Minecraft

Logs
latest.log debug.log
Additional context
fabric_loader_dependencies.json

I've tracked this down Apotheosis' coremod, which replaces the method call to Enchantment#getMaxLevel() with its own hook.
AdventureZ's mixin method is an inject call, which means the injeciton could keep working as long as mixin was aware of the change in the injection target.
Unfortunately, there is nothing that can be done about this from Connector's standpoint. It is a direct conflict between the two mods. Your best best is talking to their devs and asking if there are any alternatives to their approach that would eliminate the problem.


Cannot change the camera overlay image

Microsoft PowerToys version
v0.56.2
Running as admin

[X] Yes

Area(s) with issue?
Video Conference Mute
Steps to reproduce
Uploading PowerToys 设置 2022-03-27 10-00-47.mp4…
✔ Expected Behavior
change the camera overlay image
❌ Actual Behavior
no response when the button is clicked
Other Software
No response

/dup #13215