Updated layout information required for RenderIndexedSemantics#99262 NEEDS-LAYOUT to calculate semantics.

Steps to reproduce
I'm using StaggeredGridView.countBuilder(
with obx list which will be updated onInit API response
staggeredTileBuilder: (index) => const StaggeredTile.fit(1),
                  mainAxisSpacing: 14,
                  crossAxisSpacing: 14,
                  crossAxisCount: 2,
                  controller: scrollController,
                  padding: EdgeInsets.zero,
                  physics: !exploreController.isFloatingTapped.value
                      ? const NeverScrollableScrollPhysics()
                      : const ScrollPhysics(),
                  itemCount: exploreDiscoverController
                          .discoverFeedItemList.isEmpty
                      ? 0
                      : exploreDiscoverController.discoverFeedItemList.length +
                          1,

Expected results
There should not be render box error as I'm getting list response from the API and updating the View based on that.
Actual results
Updated layout information required for RenderIndexedSemantics#99262 NEEDS-LAYOUT to calculate semantics.
'package:flutter/src/rendering/object.dart':
Failed assertion: line 3649 pos 12: '!_needsLayout'

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.yml

When the exception was thrown, this was the stack:
#2      RenderObject._getSemanticsForParent (package:flutter/src/rendering/object.dart:3649:12)
object.dart:3649
#3      RenderObject._getSemanticsForParent.<anonymous closure> (package:flutter/src/rendering/object.dart:3665:61)
object.dart:3665
#4      Iterable.forEach (dart:core/iterable.dart:347:35)
iterable.dart:347
#5      RenderSliverVariableSizeBoxAdaptor.visitChildren (package:flutter_staggered_grid_view/src/rendering/sliver_variable_size_box_adaptor.dart:296:29)
sliver_variable_size_box_adaptor.dart:296
#6      RenderObject.visitChildrenForSemantics (package:flutter/src/rendering/object.dart:3806:5)
object.dart:3806
#7      RenderObject._getSemanticsForParent (package:flutter/src/rendering/object.dart:3663:5)
object.dart:3663
#8      RenderObject._getSemanticsForParent.<anonymous closure> (package:flutter/src/rendering/object.dart:3665:61)
object.dart:3665
#9      RenderObjectWithChildMixin.visitChildren (package:flutter/src/rendering/object.dart:4081:14)
object.dart:4081
#10     RenderObject.visitChildrenForSemantics (package:flutter/src/rendering/object.dart:3806:5)
object.dart:3806
#11     RenderObject._getSemanticsForParent (package:flutter/src/rendering/object.dart:3663:5)
object.dart:3663
#12     RenderObject._getSemanticsForParent.<anonymous closure> (package:flutter/src/rendering/object.dart:3665:61)
object.dart:3665
#13     Iterable.forEach (dart:core/iterable.dart:347:35)
iterable.dart:347
#14     RenderViewportBase.visitChildrenForSemantics (package:flutter/src/rendering/viewport.dart:314:10)
viewport.dart:314
#15     RenderObject._getSemanticsForParent (package:flutter/src/rendering/object.dart:3663:5)
object.dart:3663
#16     RenderObject._getSemanticsForParent.<anonymous closure> (package:flutter/src/rendering/object.dart:3665:61)
object.dart:3665
#17     RenderObjectWithChildMixin.visitChildren (package:flutter/src/rendering/object.dart:4081:14)
object.dart:4081
#18     RenderObject.visitChildrenForSemantics (package:flutter/src/rendering/object.dart:3806:5)
object.dart:3806
#19     RenderIgnorePointer.visitChildrenForSemantics (package:flutter/src/rendering/proxy_box.dart:3612:11)
proxy_box.dart:3612
#20     RenderObject._getSemanticsForParent (package:flutter/src/rendering/object.dart:3663:5)
object.dart:3663
#21     RenderObject._getSemanticsForParent.<anonymous closure> (package:flutter/src/rendering/object.dart:3665:61)
object.dart:3665
#22     RenderObjectWithChildMixin.visitChildren (package:flutter/src/rendering/object.dart:4081:14)
object.dart:4081
#23     RenderObject.visitChildrenForSemantics (package:flutter/src/rendering/object.dart:3806:5)
object.dart:3806
#24     RenderSemanticsAnnotations.visitChildrenForSemantics (package:flutter/src/rendering/proxy_box.dart:4281:11)
proxy_box.dart:4281
#25     RenderObject._getSemanticsForParent (package:flutter/src/rendering/object.dart:3663:5)
object.dart:3663
#26     RenderObject._getSemanticsForParent.<anonymous closure> (package:flutter/src/rendering/object.dart:3665:61)
object.dart:3665
#27     RenderObjectWithChildMixin.visitChildren (package:flutter/src/rendering/object.dart:4081:14)
object.dart:4081
#28     RenderObject.visitChildrenForSemantics (package:flutter/src/rendering/object.dart:3806:5)
object.dart:3806
#29     RenderObject._getSemanticsForParent (package:flutter/src/rendering/object.dart:3663:5)
object.dart:3663
#30     RenderObject._getSemanticsForParent.<anonymous closure> (package:flutter/src/rendering/object.dart:3665:61)
object.dart:3665
#31     RenderObjectWithChildMixin.visitChildren (package:flutter/src/rendering/object.dart:4081:14)
object.dart:4081
#32     RenderObject.visitChildrenForSemantics (package:flutter/src/rendering/object.dart:3806:5)
object.dart:3806
#33     RenderObject._getSemanticsForParent (package:flutter/src/rendering/object.dart:3663:5)
object.dart:3663
#34     RenderObject._getSemanticsForParent.<anonymous closure> (package:flutter/src/rendering/object.dart:3665:61)
object.dart:3665
#35     RenderObjectWithChildMixin.visitChildren (package:flutter/src/rendering/object.dart:4081:14)
object.dart:4081
#36     RenderObject.visitChildrenForSemantics (package:flutter/src/rendering/object.dart:3806:5)
object.dart:3806
#37     RenderObject._getSemanticsForParent (package:flutter/src/rendering/object.dart:3663:5)
object.dart:3663
#38     RenderObject._getSemanticsForParent.<anonymous closure> (package:flutter/src/rendering/object.dart:3665:61)
object.dart:3665
#39     RenderObjectWithChildMixin.visitChildren (package:flutter/src/rendering/object.dart:4081:14)
object.dart:4081
#40     RenderObject.visitChildrenForSemantics (package:flutter/src/rendering/object.dart:3806:5)
object.dart:3806
#41     RenderObject._getSemanticsForParent (package:flutter/src/rendering/object.dart:3663:5)
object.dart:3663
#42     RenderObject._updateSemantics (package:flutter/src/rendering/object.dart:3615:41)
object.dart:3615
#43     PipelineOwner.flushSemantics (package:flutter/src/rendering/object.dart:1303:16)
object.dart:1303
#44     PipelineOwner.flushSemantics (package:flutter/src/rendering/object.dart:1308:15)
object.dart:1308
#45     RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:589:25)
binding.dart:589
#46     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:991:13)
binding.dart:991
#47     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:448:5)
binding.dart:448
#48     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1386:15)
binding.dart:1386
#49     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1311:9)
binding.dart:1311
#50     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1169:5)
binding.dart:1169
#51     _invoke (dart:ui/hooks.dart:312:13)
hooks.dart:312
#52     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:399:5)
platform_dispatcher.dart:399
#53     _drawFrame (dart:ui/hooks.dart:283:31)
hooks.dart:283
(elided 2 frames from class _AssertionError)

Code sample
Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[Paste your output here]

flutter_staggered_grid_view is a third-party package and so is getx. Any issues you face using the packages should be reported on their repo.
Closing from here as this is caused by the use of third-party packages.
Thank you


NRI dataset and initial score YAML configuration (Deprecated)

Closes #1417

Closing for a more updated PR.


can not reproduce the result in paper

Thank you for helping me solve the problem of the last bug. I would like to ask if you can provide the bash file of "run_usmle". I can't run out the results in the paper. Also, Also, what machine did you use in the paper?

In our paper, we use a RTX Titan. I'll provide the bash file of run_usmle.
To solve the issue, could you provide the log of your experiment?

newFT_path.medqa_usmle_2e-5.1e-4.1e-2.1e-1_1024.2048.16__seed1_20230427_005601.log.txt
here is my log file! Thank you so much！

Hi, I'm sorry for the late reply. Could you set your '--encoder_lr' to 6e-5 and 'epoch' to 50, 'lr_scheudle' to 'fixed', and 'fc_dim' to 512, 'transformer_dim' to 256, and 'transformer_ffn_dim' to 512?


quarkus: Project cannot be imported into IDE

Describe the bug
Importing a Quarkus project into Eclipse produces an error message and the project is not configured for editing as a Java project
To Reproduce

Generate the project with appsody

mkdir -p ~/tmp/somedir
cd ~/tmp/somedir

appsody repo add experimental	https://github.com/appsody/stacks/releases/latest/download/experimental-index.yaml

appsody init experimental/quarkus

Try and import into Eclipse IDE, as a maven project (as documented in the Quarkus guides)

Expected behavior
The project should be editable as a Java project (package view, Ctrl+click on class names navigating to other classes, etc)
Actual behaviour
The project import never completes fully and the Problems view shows:
Description	Resource	Path	Location	Type
Project build error: Non-resolvable parent POM for org.acme:getting-started:1.0-SNAPSHOT: Failure to find dev.appsody:quarkus:pom:0.1.5 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM	pom.xml	/getting-started	line 5	Maven pom Loading Problem

Environment Details (please complete the following information):

MacOS Mojave

If applicable please specify:

CLI version: appsody 0.4.7
Stack you are using (including the version):
experimental/quarkus:0.1.5

Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
It seems in some environments the dev.appsody.quarkus dependency is not added to the users .m2./repository directory. E.g. in my system I see only:
 cd ~/.m2
find repository/dev/appsody/quarkus/0.1.5

repository/dev/appsody/quarkus/0.1.5
repository/dev/appsody/quarkus/0.1.5/quarkus-0.1.5.pom.lastUpdated

On codewind, after creating the project from Codewind itself:

Using Codewind fails too, for a different reason, due to:
https://github.com/eclipse/codewind/issues/875

I suspect that the parent is not available on the host, and should be made available as part of the init. Need to take a closer look

I see an easier way to recreate the problem.
Open a terminal, cd to the project directory, then
./mvnw quarkus:list-extensions
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.acme:quarkus-microservice:1.0-SNAPSHOT: Failure to find dev.appsody:quarkus:pom:0.1.5 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 5, column 13
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.acme:quarkus-microservice:1.0-SNAPSHOT (/Users/nastacio/codewind-workspace/quarkus-microservice/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for org.acme:quarkus-microservice:1.0-SNAPSHOT: Failure to find dev.appsody:quarkus:pom:0.1.5 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 5, column 13 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

Found the workaround, which tells me success depends on people having done this in their own envs long ago:
 appsody extract --target-dir=tmp
cd tmp
user-app/mvnw install


CI: Refactor curl / wget test helpers with retries

It'd be nice if we have a test helper wrapper for curl and wget which has retries built in. These retries should only be applied to commands that are expected to be used for connection with the outside / world.
For example:
testhelpers.CurlWithRetries(..., retries int, ...)

This would eliminate the need for one-off PRs like https://github.com/cilium/cilium/pull/11797 and https://github.com/cilium/cilium/pull/11993. These types of PRs are prone to accumulate tech debt as the number of retries could be incosistent across the code base, etc.. Also, issues like missing a place where retries would be needed, could be eliminated.

I can take this. Please assign it to me.

@christarazi I made a draft, for CurlWithRetries() function under the circumstances:
CurlFail() CurlFailNoStats()  CurlWithHTTPCode() may expect --retry flag, so it turns out something like this CurlWithRetries(CurlFail(...), retries), CurlWithRetries() function has to handle the string does it contain curl command, if true it means there have a command, the developer wants it to have retry feature, so just add --retry flag in the tail, otherwise developer just only wants --retry flag, so generate the command with --retry exclusive another flag at the end of the function.
Is this your expectation?
func CurlWithRetries(endpoint string, retries int, optionalValues ...interface{}) string {
	if len(optionalValues) > 0 {
		endpoint = fmt.Sprintf(endpoint, optionalValues...)
	}
	if strings.Contains(endpoint, "curl") {
		if strings.Contains(endpoint, "--retry") {
			return endpoint
		}
		return fmt.Sprintf(`%s --retry %d `, endpoint, retries)
	}
	return fmt.Sprintf(
		`curl --path-as-is -s  -D /dev/stderr --output /dev/stderr --retry %d %s`,
		retries, endpoint)
}

@JieJhih That sounds like a great idea! Would you mind PRing your changes?

@JieJhih That sounds like a great idea! Would you mind PRing your changes?

No problem. I already sent a pull request. Please take a look.


Stop Youtube when modal is closed

How to stop youtube embeded video in modal when the modal is closed?

daisyUI only provides CSS style.
You can handle video playing functionalities using JS.  Use JS to stop the video when modal checkbox is getting unchecked.


Generator

Modification to use generator, memory leak fix, multi observation and multi header lines supported.

I've managed to breaks things by 'resolving' the conflicts.


Different date format (by region?)

The normal script asks for YYYY-MM-DD but my client requires DD-MM-YYYY
Here is a grab of the form - https://gyazo.com/7a10e0d44089c2956c470cef03370b5a
The 3 date elements are part of one larger element. Each is clickable and can be altered by either typing or using a set of arrows that appear onscreen. The URL is https://club.pokemon.com/us/pokemon-trainer-club/sign-up/ which would imply a "US" site.
If you submit a DOB and then return to the first page without completing the account setup, the format becomes YYYY-MM-DD as so - https://gyazo.com/658a4143a31b9cf3ddc5d8996aaa3c76 and is greyed out requiring you to change the readonly attribute of the field.

Does YYYY-MM-DD work when you submit it with your page, or does the website throw an error? (@Kitryn)

It is not possible to input YYYY-MM-DD without completely altering the element to a standard text box.
"US version"
<input class="" id="id_dob" name="dob" readonly="readonly" title="yyyy-mm-dd" type="text" value="1989-08-16" data-emoji_font="true" style="font-family: Roboto, arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol", Symbola, EmojiSymbols !important;">
"UK Version"
<input id="id_dob" name="dob" class="datepicker" type="date" value="2016-08-16">
If you replace the UK version of the element with the US version and of course delete the readonly attribute (you can even just edit the element value) and submit the form, then it appears to work fine. No errors thrown by the website.
I suppose you could also just alter the "value" of the "UK" version as it has the same date format.

I just pushed commit fb7a857; could you help me test that to see if that works? The new commit works on YYYY-MM-DD format pages, but I can't find a way to test on the UK version. Thanks a lot!

Works great.


Provide diagnostic metrics of project lock wait time

It's likely that the stricter project access will lead to performance regressions in certain builds. We should add some internal metrics of the time spent waiting on project locks during a build to help diagnose these.
Could be an internal flag or some debug logging or whatever.

I took a first (simple) stab at this here: https://github.com/gradle/gradle/pull/7431
This basically gathers up the total accumulated time that stuff is waiting on project locks.  This might be ok for measuring improvement, but could be misleading for insight - for instance, if it reports 4000ms, that doesn't mean we wasted 4000ms of the total build time waiting for locks, it could be 2 tasks blocked concurrently on the same project for 2000ms or 40 tasks blocked for 100ms.
We should think about what information might be more informative/diagnostic here.  For instance, would it make sense to have this broken down by project?  Or should we try to measure "real" waiting time instead of total time (i.e. 2 tasks blocked concurrently for 1s is measured as 1s, not 2s)?

Are there any other kind of locks we might hold that should be tracked too?
Would a counter on the number of lock/unlock actions that occur on a per-thread? per-operation? per-something be a useful metric too?  e.g., if when executing a task in a single project build, it would be weird to see 1000's of lock/unlocks.
Could we wrap this into build operations only when the flag is enabled so we could use the operation trace to see these as separate events and attach things like number of things waiting?

Yeah, I think we eventually want to go the build operation route with this.  I kind of held off on making this one simply because I was thinking a simple metric that could be compared across changes would be more useful in the short term.  But overall, I definitely think having an operation that could be visualized and a "what's waiting on me?" metric would be immensely helpful.


build  android error

when I completed build，I open  the android example with android studio,there is a error.

I do not know why.

You need to open the android/ folder as a project. The samples are subprojects.

You need to open the android/ folder as a project. The samples are subprojects.

The sample-gltf-viewer of example is not run. Other examples can run. This is error: the variable of animationCount,the
functions of  applyAnimation and updateBoneMatrices not found。


Input meal size different from recorded meal size

Hi! Thanks for this package, super helpful. I was wondering why the inputted meal size and the actual recorded value in the output files differ. For example in the advanced usage example, the input size of the first meal is 45, but in the out put file, it registers as 15.
From the code, it seems there is a division between meal size and sample time (= 3).
Could you give more details on this? Thanks!

Yeah, the recorded meal is a rate (g/min), so it is recorded as 15 g/min, and the sample time is 3 min, so the meal amount is 15 g/min * 3 min = 45 g. That is the area is the meal amount, not the value.
Sorry if it is a bit confusing.

Oh, I see that makes sense. This would also imply that in the basal-bolus controller, the bolus is being computed using the first 1/3 of the meal size and not the entire meal amount correct? So if a meal is 45g in total, the bolus amount is calculated using 15g (since its a third of the meal)

Yes you can understand it that way.
To be more specific, the meal info that the basal bolus controller gets is the full size (45g), I should've kept it more consistent. https://github.com/jxx123/simglucose/blob/8f6696a628543a553fd9d5aa55d935be23bd7b38/simglucose/controller/basal_bolus_ctrller.py#L30
Then the bolus is divided by the sample time here https://github.com/jxx123/simglucose/blob/8f6696a628543a553fd9d5aa55d935be23bd7b38/simglucose/controller/basal_bolus_ctrller.py#L82
So in the end you can say the bolus is based on 15g, because it is also a rate instead of the absolute amount.

That makes sense. Thank you! I will close this issue then.

I was checking this thread because I am not totally sure that the basal bolus controller gets is the full size of the meal as @jxx123 wrote in his last comment.
The meal that the Basal Bolus controller takes from the kwargs in the def policy(self, observation, reward, done, **kwargs)
https://github.com/jxx123/simglucose/blob/8f6696a628543a553fd9d5aa55d935be23bd7b38/simglucose/controller/basal_bolus_ctrller.py#L30
seems to already be in units of (g/min) and not (g).
You can check that the Step namedtuple outputted by the def step(self, action, reward_fun=risk_diff) of the T1DSimEnv class returns the meal argument as the CHO variable.
The CHO variable is computed as a running average in the for loop
https://github.com/jxx123/simglucose/blob/8f6696a628543a553fd9d5aa55d935be23bd7b38/simglucose/simulation/env.py#L78
However, I printed these values, and two out of three times the tmp_CHO variable is always 0. An example print:
_
tmp_CHO  = 64
tmp_CHO = 0
tmp_CHO = 0
CHO  = 21.333333333333332
_
The CHO variable is then added to the CHO_hist variable
https://github.com/jxx123/simglucose/blob/8f6696a628543a553fd9d5aa55d935be23bd7b38/simglucose/simulation/env.py#L88
and, as I was previously mentioning, apparently returned in units of (g/min) and not (g)
https://github.com/jxx123/simglucose/blob/8f6696a628543a553fd9d5aa55d935be23bd7b38/simglucose/simulation/env.py#L112
Do you also see this issue happening @jxx123 ?
I think that an easy fix would be to multiply back the CHO  variable by self.sample_time if the goal is to have the kwargs.get('meal') in units of (g).
Clearly, let me know if I misanderstood something.


fix typo

Thanks for your contribution! This plugin has been moved into the Next.js monorepo: https://github.com/zeit/next.js/tree/canary/packages/next-mdx

I've updated the readme there: https://github.com/zeit/next.js/commit/8cc60713476dd5c67f8b298676099814f8889c04


[QUESTION v6] Review and Remove Unnecessary Dependencies

In version 6, several new dependencies were added to the project. However, it has come to our attention that some of these dependencies are deprecated. We need to evaluate whether all of the newly added dependencies are necessary for the project.
@babel/plugin-proposal-object-rest-spread
@babel/plugin-proposal-class-properties

Related discussion, particularly this comment: https://github.com/styled-components/styled-components/issues/4064#issuecomment-1643720699

These dependencies were removed in recent versions


Support eslint v4.

do we still want v2? Fixes #266

Coverage remained the same at 99.576% when pulling cbf1c916b685504a1438d4221af9ecc022e39ed9 on eslint4 into 7dbcfb1c05aa02ec941d49b8410f9e869d04e738 on master.

sounds good, filed ticket #268 to take care of that

When will be the next release?

https://github.com/benmosher/eslint-plugin-import/pull/871#issuecomment-310628861

https://github.com/evcohen/eslint-plugin-jsx-a11y/issues/269


Error on "make"

Hi,
I followed the installation process an the "make vendor" steps. Everything worked.
Then I started to run plain "make" and got the following error:
$ make
rm -rf manifests
./scripts/build.sh main.jsonnet
+ set -o pipefail
+ rm -rf manifests
+ mkdir manifests
+ jsonnet -J vendor -m manifests main.jsonnet
+ xargs '-I{}' sh -c 'cat {} | gojsontoyaml > {}.yaml; rm -f {}' -- '{}'
./scripts/build.sh: line 15: jsonnet: command not found
Makefile:12: recipe for target 'manifests' failed
make: *** [manifests] Error 127

Here is my OS info:
$ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
HYPRIOT_OS="HypriotOS/armhf"
HYPRIOT_OS_VERSION="v2.0.1"
HYPRIOT_DEVICE="Raspberry Pi"
HYPRIOT_IMAGE_VERSION="v1.9.0"

Here is my k8s info:
Client Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.2", GitCommit:"17c77c7898218073f14c8d573582e8d2313dc740", GitTreeState:"clean", BuildDate:"2018-10-24T06:54:59Z", GoVersion:"go1.10.4", Compiler:"gc", Platform:"linux/arm"}
Server Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.2", GitCommit:"17c77c7898218073f14c8d573582e8d2313dc740", GitTreeState:"clean", BuildDate:"2018-10-24T06:43:59Z", GoVersion:"go1.10.4", Compiler:"gc", Platform:"linux/arm"}

What am I doing wrong?

Fixed in https://github.com/carlosedp/prometheus-operator-ARM/commit/2d042dcd501e750a0fdf16b0c3e340b5d0e17703.
Now the Makefile installs the required utilities (jsonnet, jsonner-bundler, gojsontoyaml) if not present.
You need Go installed.

Tested on a Raspbian 10 Lite.

I am having a problem with the make vendor command. I am getting the message
root@k3sserverpi:/home/pi/cluster-monitoring# make vendor
Installing jsonnet-bundler
package github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@latest: can only use path@version syntax with 'go get' make: *** [Makefile:52: /bin/go/bin/jb] Error 1
I installed go and try to install it on PI 4 bullseye
I have K3S installed and in the vars.jsonnet k3s is enabled, also maste rIP and SuffixDomain is entered.
What am I missing?
With the command go env the GOPATH is set correctly i guess
Here is the output:
root@k3sserverpi:/# go env
GO111MODULE="on" GOARCH="arm64" GOBIN="" GOCACHE="/root/.cache/go-build" GOENV="/root/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="arm64" GOHOSTOS="linux" GOINSECURE="" GOMODCACHE="/bin/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/bin/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/usr/lib/go-1.15" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/lib/go-1.15/pkg/tool/linux_arm64" GCCGO="gccgo" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="/dev/null" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build434279315=/tmp/go-build -gno-record-gcc-switches"
Any help apreciated.


[Docs] Anonymous twig components

Q
A

Bug fix?
no

New feature?
no

Tickets
none

License
MIT

Add documentation for the recently added support of anonymous twig components https://github.com/symfony/ux/pull/802

Related PR is merged - the final tweaks on this are ready to be done :)

The closing tag is not good:
</twig:primary>

You should put:
</twig:Button:Primary>

Thank you @weaverryan for your help

Gorgeous 😍 - great work Marie!


rshift of Ket and DM returns scalar if no Hilbert spaces

Right-shifting two components so that no wires are left, like Coherent([0], 1.0) >> Vacuum([0]).dual, now returns a scalar, which as Jacob points out is more intuitive.
This is a tricky thing to do in code because it's easier if the return type of a method (__rshift__ here) is always the same and not dependent on context. However, I think I did things carefully and I kept the behaviour confined to the >> operator: Coherent([0], 1.0) @ Vacuum([0]).dual returns a components with no wires and scalar representation. This way we can still use @ internally and not worry about scalars being introduced.
There is one (possibly rare) edge case that is not possible to handle: things like Coherent([0], 1.0) >> Vacuum([0]).dual >> Coherent([0], 1.0), which should just return a rescaled coherent state now gives a nonsensical result, because the __rshift__ of the array resulting from the first >> gets called first and we cannot avoid that. If the scalar comes after the circuit component then it works.

looks good! I can't comment on what users would find more intuitive, but I think this makes sense. I'm generally hesitant to have functions return different types with different inputs, but with sufficient docs/examples that should be fine

I 100% agree. Now there exist edge cases (probably not too relevant, see explanation above), but still. We need to be careful going forward.

Nice! I'm a bit confused about how batch dimensions and typing will work here.

Batch dimension is kept:
(Coherent([0], 1.0) + Coherent([0],[-2.0]) >> Vacuum([0]).dual)
# array([0.6065+0.j, 0.1353+0.j])

There is one (possibly rare) edge case that is not possible to handle: things like Coherent([0], 1.0) >> Vacuum([0]).dual >> Coherent([0], 1.0), which should just return a rescaled coherent state now gives a nonsensical result, because the rshift of the array resulting from the first >> gets called first and we cannot avoid that. If the scalar comes after the circuit component then it works.

Would (Coherent([0], 1.0) >> Vacuum([0]).dual) * Coherent([0], 1.0) work? If so, I think that's good. We wouldn't want the >> to also mean multiplication by a scalar right?

Nice! I'm a bit confused about how batch dimensions and typing will work here.

Batch dimension is kept:
(Coherent([0], 1.0) + Coherent([0],[-2.0]) >> Vacuum([0]).dual)
# array([0.6065+0.j, 0.1353+0.j])

Is this what we expect? If a user wants to make a superposition of two coherent states, then start taking inner products of that (displaced) cat state, wouldn't we want that to return a scalar?

Nice! I'm a bit confused about how batch dimensions and typing will work here.

Batch dimension is kept:
(Coherent([0], 1.0) + Coherent([0],[-2.0]) >> Vacuum([0]).dual)
# array([0.6065+0.j, 0.1353+0.j])

Is this what we expect? If a user wants to make a superposition of two coherent states, then start taking inner products of that (displaced) cat state, wouldn't we want that to return a scalar?

You are right, in that case we would want a scalar. I wanted to keep the batch dimension to allow users to do what they want, but we can also assume they always want to sum the inner products. I can change that.


python311Packages.spglib: 2.3.1 -> 2.4.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python311Packages.spglib is: Python bindings for C library for finding and handling crystal symmetries
meta.homepage for python311Packages.spglib is: https://spglib.github.io/spglib/
meta.changelog for python311Packages.spglib is: https://github.com/spglib/spglib/raw/v2.4.0/ChangeLog
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2.4.0 with grep in /nix/store/7njzyjjas4f1bhchlb63y7454kdi002x-python3.11-spglib-2.4.0
found 2.4.0 in filename of file in /nix/store/7njzyjjas4f1bhchlb63y7454kdi002x-python3.11-spglib-2.4.0

Rebuild report (if merged into master) (click to expand)

13 total rebuild path(s)

13 package rebuild(s)

First fifty rebuilds by attrpath
python311Packages.atomman
python311Packages.boltztrap2
python311Packages.phonopy
python311Packages.pymatgen
python311Packages.seekpath
python311Packages.spglib
python311Packages.sumo
python312Packages.atomman
python312Packages.boltztrap2
python312Packages.phonopy
python312Packages.pymatgen
python312Packages.seekpath
python312Packages.spglib

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/7njzyjjas4f1bhchlb63y7454kdi002x-python3.11-spglib-2.4.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python311Packages.spglib https://github.com/r-ryantm/nixpkgs/archive/f677e392367bb05ee084f851f78786326dc023de.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/f677e392367bb05ee084f851f78786326dc023de#python311Packages.spglib

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/7njzyjjas4f1bhchlb63y7454kdi002x-python3.11-spglib-2.4.0
ls -la /nix/store/7njzyjjas4f1bhchlb63y7454kdi002x-python3.11-spglib-2.4.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

6 packages failed to build:

python312Packages.atomman
python312Packages.atomman.dist
python312Packages.boltztrap2
python312Packages.boltztrap2.dist
python312Packages.pymatgen
python312Packages.pymatgen.dist

20 packages built:

python311Packages.atomman
python311Packages.atomman.dist
python311Packages.boltztrap2
python311Packages.boltztrap2.dist
python311Packages.phonopy
python311Packages.phonopy.dist
python311Packages.pymatgen
python311Packages.pymatgen.dist
python311Packages.seekpath
python311Packages.seekpath.dist
python311Packages.spglib
python311Packages.spglib.dist
python311Packages.sumo
python311Packages.sumo.dist
python312Packages.phonopy
python312Packages.phonopy.dist
python312Packages.seekpath
python312Packages.seekpath.dist
python312Packages.spglib
python312Packages.spglib.dist

Maintainer pings
cc @PsyanticY for testing.

Already on master.


notebook fixes

This is my initial pass at the search notebooks, with an eye towards consistency. Unfortunately it is impossible to review diffs of notebooks, so below is a quick list of the changes that I've made:
00-quick-start.ipynb

Removed pin on sentence-transformers
Removed device argument when initializing the sentence transformer, as it is optional and the default is appropriate.
Moved the index delete that was at the bottom to the section in which the index is created.
Removed all uses of the deprecated body argument.
Print a "no results" message in the pretty_response() function.
Fixed issues with the term filter and a hyphenated text field.

01-keyword-querying-filtering.ipynb

Removed unused dependencies
Added a note indicating that this notebook uses the index created in the quick start.

02-hybrid-search.ipynb

Remove instructions to create the index and refer people to the quickstart instead.
Print a "no results" message in the pretty_response() function.

03-ELSER.ipynb

No changes, since this is actively being edited in another PR.

04-multilingual.ipynb

Removed all uses of the deprecated body argument.
Removed dataset from the notebook and relocated it to a articles.json file. (I left a temporary URL to help with reviews, will remove before merging)
Print a "no results" message in the pretty_response() function.
Minor reorganization of the search section.

05-query-rules.ipynb

Print a "no results" message in the pretty_response() function.

00-quick-start.ipynb

suggestion: simplify the filtering section, remove the advanced filtering example
suggestion: remove the hybrid search section, thats cover in the hybrid search notebook
suggestion: combine the filtering and example keyword filtering example into one. lean on the querying filtering notebookto introduce more examples.

01-keyword-querying-filtering.ipynb

Currently this uses the dataframe example. Update it to use the pretty_response_transform example
filtering should include an example of using a term query

Okay! Made the simplifications requested. Let me know what you think.

00-quick-start
One thing i missed was the filtering example should use a keyword type subfield, which is accessible via publisher.keyword. We are using the term query so should be targeted on the raw unanalyzed value, which is in the keyword field. publisher is a text field and gone through an analyzer. This means if you use the text field, you may include documents which contain Addison. Using a keyword, it must match exactly.

Okay, a few more changes on notebooks 00 and 01 to always use keyword fields in term filters.

looks good!
Only last thought is with 01-filters - we introduce straight into boolean clause and dont explain the common filter activities like term, range (numeric + date) and jump into talking about combining multiple filters. Should we add additional context here?


Request to add mongosh package

Project description
The MongoDB Shell
Metadata

homepage URL: https://github.com/mongodb-js/mongosh
source URL: https://github.com/mongodb-js/mongosh
license: APACHE LICENSE, VERSION 2.0
platforms: linux, darwin

I will like to have it on nixpkgs too but fyi there is a NUR package.
https://nur.nix-community.org/repos/afreakk/
https://github.com/nix-community/nur-combined/blob/master/repos/afreakk/pkgs/mongosh/default.nix#L12


[REQUEST] .anom to .loli

I have some .anom files but they are not being detected. Is there a way to convert them to .loli

Change the extension

how to change extention

how to change extention

rename from .anom to .loli

I still got an invalid data exception error when I changed the extension to .loli


Set default for SamplingParams.max_tokens in OpenAI requests if unset

What this PR does / why we need it:
This PR basically does the same as https://github.com/vllm-project/vllm/pull/6954. The issue is vllm/engine/output_processor/multi_step.py requires SamplingParams.max_tokens to be set. And so, the vLLM engine crashes when --num-scheduler-steps > 1 and max_tokens is undefined.
So this PR sets a default for max_tokens if it is not set by the client.
Which issue(s) this PR fixes:
Fixes #3971
Type of changes

[x] Bug fix (non-breaking change which fixes an issue)

Feature/Issue validation/testing:
Please describe the tests that you ran to verify your changes and relevant result summary. Provide instructions so it can be reproduced.
Please also list any relevant details for your test configuration.

[x] Added test_vllm_chat_completion_facebook_opt_model_should_set_correct_max_tokens in test_vllm_model.py

Checklist:

[x] Have you added unit/e2e tests that prove your fix is effective or that this feature works?
[x] Has code been commented, particularly in hard-to-understand areas?

Release note:
Set default for SamplingParams.max_tokens in OpenAI requests if unset

/lgtm
/approve


how to save model for tensroflwo serving for lstm in tensorflow/contrib/timeseries/examples/lstm.py

Please go to Stack Overflow for help and support:
https://stackoverflow.com/questions/tagged/tensorflow
If you open a GitHub issue, here is our policy:

It must be a bug or a feature request.
The form below must be filled out.
It shouldn't be a TensorBoard issue. Those go here.

Here's why we have that policy: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
TensorFlow installed from (source or binary):
TensorFlow version (use command below):
Python version:
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:
GPU model and memory:
Exact command to reproduce:

You can collect some of this information using our environment capture script:
https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh
You can obtain the TensorFlow version with
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
Describe the problem
when I run lstm in tensorflow/contrib/timeseries/examples/lstm.py, I tried to add methods to save model into savedModel, but it gives back errors.
File "/Users/yang/.local/lib/python3.4/site-packages/tensorflow/python/estimator/estimator.py", line 504, in export_savedmodel
serving_input_receiver = serving_input_receiver_fn()
File "/Users/yang/.local/lib/python3.4/site-packages/tensorflow/contrib/timeseries/python/timeseries/estimators.py", line 133, in _serving_input_receiver_fn
self._model.initialize_graph()
TypeError: initialize_graph() missing 1 required positional argument: 'input_statistics'
The issue I guess is that, in self._model.initialize_graph(), no parameters are given, but in
def initialize_graph(self, input_statistics):
    """Save templates for components, which can then be used repeatedly.
    This method is called every time a new graph is created. It's safe to start
    adding ops to the current default graph here, but the graph should be
    constructed from scratch.
    Args:
      input_statistics: A math_utils.InputStatistics object.
    """
    super(_LSTMModel, self).initialize_graph(input_statistics=input_statistics)
    with tf.variable_scope("", use_resource=True):
      # Use ResourceVariables to avoid race conditions.
      self._lstm_cell = tf.nn.rnn_cell.LSTMCell(num_units=self._num_units)
      # Create templates so we don't have to worry about variable reuse.
      self._lstm_cell_run = tf.make_template(
          name_="lstm_cell",
          func_=self._lstm_cell,
          create_scope_now_=True)
      # Transforms LSTM output into mean predictions.
      self._predict_from_lstm_output = tf.make_template(
          name_="predict_from_lstm_output",
          func_=functools.partial(tf.layers.dense, units=self.num_features),
          create_scope_now_=True)

one param input_statistics is asked. But how to fix this issue
Source code / logs
serving_input_receiver_fn = estimator.build_raw_serving_input_receiver_fn()
estimator.export_savedmodel(
    "../model",
    serving_input_receiver_fn
)

Could you please tell me how to fix this issue or, what I can do to get the correct version? Because I wanna put this model into savedModel or savedBundle.

Getting the fix code reviewed is taking a bit longer than I was thinking. Here's the patch:
diff --git a/tensorflow/contrib/timeseries/examples/lstm.py b/tensorflow/contrib/timeseries/examples/lstm.py
index c834430b9..630f4fc05 100644
--- a/tensorflow/contrib/timeseries/examples/lstm.py
+++ b/tensorflow/contrib/timeseries/examples/lstm.py
@@ -20,12 +20,14 @@ from __future__ import print_function

 import functools
 from os import path
+import tempfile

 import numpy
 import tensorflow as tf

 from tensorflow.contrib.timeseries.python.timeseries import estimators as ts_estimators
 from tensorflow.contrib.timeseries.python.timeseries import model as ts_model
+from tensorflow.contrib.timeseries.python.timeseries import state_management

 try:
   import matplotlib  # pylint: disable=g-import-not-at-top
@@ -70,7 +72,7 @@ class _LSTMModel(ts_model.SequentialTimeSeriesModel):
     self._lstm_cell_run = None
     self._predict_from_lstm_output = None

-  def initialize_graph(self, input_statistics):
+  def initialize_graph(self, input_statistics=None):
     """Save templates for components, which can then be used repeatedly.

     This method is called every time a new graph is created. It's safe to start
@@ -168,12 +170,15 @@ class _LSTMModel(ts_model.SequentialTimeSeriesModel):

 def train_and_predict(
-    csv_file_name=_DATA_FILE, training_steps=200, estimator_config=None):
+    csv_file_name=_DATA_FILE, training_steps=200, estimator_config=None,
+    export_directory=None):
   """Train and predict using a custom time series model."""
   # Construct an Estimator from our LSTM model.
   estimator = ts_estimators.TimeSeriesRegressor(
       model=_LSTMModel(num_features=5, num_units=128),
-      optimizer=tf.train.AdamOptimizer(0.001), config=estimator_config)
+      optimizer=tf.train.AdamOptimizer(0.001), config=estimator_config,
+      # Set state to be saved across windows.
+      state_manager=state_management.ChainingStateManager())
   reader = tf.contrib.timeseries.CSVReader(
       csv_file_name,
       column_names=((tf.contrib.timeseries.TrainEvalFeatures.TIMES,)
@@ -192,6 +197,28 @@ def train_and_predict(
   predicted_mean = numpy.squeeze(numpy.concatenate(
       [evaluation["mean"][0], predictions["mean"]], axis=0))
   all_times = numpy.concatenate([times, predictions["times"]], axis=0)
+
+  # Export the model in SavedModel format.
+  if export_directory is None:
+    export_directory = tempfile.mkdtemp()
+  input_receiver_fn = estimator.build_raw_serving_input_receiver_fn()
+  export_location = estimator.export_savedmodel(
+      export_directory, input_receiver_fn)
+
+  # Predict using the SavedModel
+  with tf.Graph().as_default():
+    with tf.Session() as session:
+      signatures = tf.saved_model.loader.load(
+          session, [tf.saved_model.tag_constants.SERVING], export_location)
+      saved_model_output = (
+          tf.contrib.timeseries.saved_model_utils.predict_continuation(
+              continue_from=evaluation, signatures=signatures,
+              session=session, steps=100))
+      # The exported model gives the same results as the Estimator.predict()
+      # call above.
+      numpy.testing.assert_allclose(
+          predictions["mean"],
+          numpy.squeeze(saved_model_output["mean"], axis=0))
   return times, observed, all_times, predicted_mean

diff --git a/tensorflow/contrib/timeseries/examples/lstm_test.py b/tensorflow/contrib/timeseries/examples/lstm_test.py
index 3cace5672..ca56e38ca 100644
--- a/tensorflow/contrib/timeseries/examples/lstm_test.py
+++ b/tensorflow/contrib/timeseries/examples/lstm_test.py
@@ -36,7 +36,8 @@ class LSTMExampleTest(test.TestCase):
   def test_periodicity_learned(self):
     (observed_times, observed_values,
      all_times, predicted_values) = lstm.train_and_predict(
-         training_steps=100, estimator_config=_SeedRunConfig())
+         training_steps=100, estimator_config=_SeedRunConfig(),
+         export_directory=self.get_temp_dir())
     self.assertAllEqual([100], observed_times.shape)
     self.assertAllEqual([100, 5], observed_values.shape)
     self.assertAllEqual([200], all_times.shape)

Awesome

It's OK to create a savedModel, however, I still confused on what's the inputs and outputs for the savedModel. Let's assume that, someone saved the model, for me, I don't know what's the exactly input or output segment is, in this condition, how can I get the result?

The inputs and outputs are exercised in saved_model_utils (called from the LSTM example): https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/timeseries/python/timeseries/saved_model_utils.py
I made a change last week which makes it easier to cold-start from a SavedModel; until that lands in the next push (should be today?) you need the output of an Estimator to get started like in the examples, or to feed in state manually (ugly / not recommended). Is that the issue?

It's synced: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/timeseries/examples/lstm.py#L239
There's no intermediate state saved with the model, so it does need a sequence as input in order to start making sensible predictions. Alternatively you could save the state spit out by Estimator.evaluate() if you know you'll be predicting starting from the end of the evaluation data.


Write tutorial for local container testing

Write tutorial for running container testing process locally, so other developers can run it before merging branches.

Tutorial writed and can be found: https://github.com/Cast2023/notes/blob/master/container-testing-tutorial.md


Adding Persistence to Scaffold DbContext Dialog

Changes allow for persistence of the DbContext fields between reloads. Support mentioned in https://github.com/seclerp/rider-efcore/issues/54. Once entered and OK is pressed, values are saved for the next scaffolding. Build option was shared between dialog screens, so that was untouched.

@t3mp0ralflux sorry for the late response - currently I'm working on the large refactoring of dialog core data loading logic, after that, it will be easier to add persistence for all types of dialogs, including Scaffold DbContext.
After finishing I'll let you know, including instructions and best practices to finish your PR without issues.
You could track progress on the branch feature/54-dialog-persistance.

Oh you're good,  sir. Just didn't want me doing stuff wrong and causing a mess was all.

It's more about making a data-binding more clear, decoupling UI logic from data-related properties, and so on, but it will also make things much easier to implement features like that 😃

Hey @t3mp0ralflux, thanks for waiting. I created a documentation entry with some sort of helpful pieces to help you and others interested in data persistence between dialogs.
I think this PR could be abandoned and a better idea is to start from scratch :)

Noted.  I'll close this out and open a new one with the updated docs.  Thanks for the update!


Is there a version for IONIC V1

Hi,
Is there a plan to recreate it in ionic v1. If not, is there a way to use the same in ionic v1

No, Ionic v1 is not supported, and we don't plan on supporting it. I believe there are other modules out there that provide similar functionality.


Mechanism to communicate 3PID binding updates or deletions to homeservers

Documentation: https://docs.google.com/document/d/1LPHBfJQ6x5iOkm2_ZYPNHNjyAzJ4hWNdOGcPGpnEb14

As discussed in PM with @maxidor, part of this proposal shoud be reworked to be compliant with spec HS 3.5 which states that bindings on ISs and bindings on HSs are independant, therefore we shouldn't consider changes regarding one to have direct consequences upon the other.

@babolivier Is this still needed?  It seems like it's going in the opposite direction from the privacy work that was done last year.


Problem with onboarding on the original Helium network after they were added to solana devnet.

I accidentally added 2 RAK miners to SOL devnet! I know transactions can not be reversed, just wondering what the best course of action would be. thanks for your help!
Hotspots got have these names: "FORMAL CLOTH DOVE" and "SPECIAL SAGE CAT"
addresses of the miners:
11cuuwgghMdhaRbhjSLR1f32g5zZyqZmnrc8r3ssHmcvw8a9nWT
112TptZGehwTx3gWXkt9bKdRrEdGuedCo1Ky9qc8BW93XE1cAw1z
This is the testnet/solana wallet address:
48x19ybJKHe8K1bbXcsVaKhkuk1MSiwRDCTPn7HgS9aR
This is the real helium wallet address:
13JGnMwFCSgM11dEt78chTsUsZaa5CbJy8KFWz2E4f2EDMaRbsj

Additional information:
Im not sure how the onboarding works technically, is it possible that some hash or address is stored where the swarm key gets stored after onboarding? Because its impossible for me to onboard these miners on the helium network
[MORE INFO]
Here are some transactions that have failed:
https://api.helium.io/v1/pending_transactions/Tz9P5r8dl6Q6IMG8Q9VEiYehopKFsPpMvXbyfRDl3T0
https://api.helium.io/v1/pending_transactions/rQENdMvFqHncXT1XNkk0cAZd4fvovhUDWOpmd3ooZPU
https://api.helium.io/v1/pending_transactions/gRywIx2HH-kiK84NXpqsnv5WfYna-a4a2khodQa4rQI
Last try:
https://api.helium.io/v1/pending_transactions/aYkVR8LOrJzuODcf8EpWA6dKSXur-49eDWWVGhJxZPA

Please delete issue. Problem was due to insufficient funds on the payer account of calchip connect.


OpenSSL License still applied for some source files

Found in OpenSSL 3.2.1 and master branch.
The following files

include/openssl/hpke.h
crypto/hpke/hpke.c
crypto/ec/asm/ecp_sm2p256-armv8.pl
crypto/chacha/asm/chacha-loongarch64.pl

still seem to be released under the OpenSSL License instead of the Apache 2 license.
Is this intentional or can the files be released under Apache 2.0 as well?
Right now I assume that formally the OpenSSL license applies for OpenSSL 3 as well.

This is an error. All files should be released under Apache 2.0

@schuetzle-vector @t8m @mattcaswell - I've rolled out the fix for this. please review - #23576


Unable to start elasticsearch

elasticsearch stop working after less tha 20 seconds, so grafana can not load data
that's my doker compose
version: '3.5'
services:
parsedmarc:
build: ./parsedmarc/
volumes:
- ./files:/input:ro
- ./output_files:/output
command: parsedmarc -c /parsedmarc.ini /input/* --debug
depends_on:
- elasticsearch
restart: on-failure
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.5
environment:
- discovery.type=single-node
volumes:
- ./elastic_data:/usr/share/elasticsearch/data
grafana:
build: ./grafana/
ports:
- 3000:3000
user: root
environment:
GF_INSTALL_PLUGINS: grafana-piechart-panel,grafana-worldmap-panel
GF_AUTH_ANONYMOUS_ENABLED: 'true'
and that's my parsedmarc.ini
[general]
save_aggregate = True
save_forensic = True
output = /output/
[elasticsearch]
hosts = elasticsearch:9200
ssl = False

The elastic_data dir needs to be owned by uid 1000 as that is the userid that is run as in the container.
chown -R 1000:root elastic_data/


Broken pipe (os error 32)

Occasionally while making some changes the dev server will response with Changes couldn't be sent to browser due "Broken pipe (os error 32)"

This may help, denoland/deno#6319.

Yep. This is something that started to happen in the latest versions and I had to use a try/catch to avoid to die. Maybe I can catch the error in silence, without log anything.

I finally found the bug that causes all these errors and released v0.10.8 with a fix. Run lume --ugprade to update to the latest version.

I finally found the bug that causes all these errors and released v0.10.8 with a fix. Run lume --ugprade to update to the latest version.


First row slideout preview

Fixes #50

nice work!! could you make this version available via npm? I want to push an update of my app in a couple of hours and it would be awesome if we could push this as well :)

@basdvries done! Let me know if you have any issues
v0.3.0 :)

Its possible to have preview for both sides?


OpenVPN - Please add option to change keepalive checks, change inactivity timeouts and increase buffer sizes.

[X] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
[X] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue

Is your feature request related to a problem? Please describe.
I'm supporting a number of users across the US and one datacenter has issues that are remedied with these fixes.
I'm a user of both PFSense and OPNsense and PFSense supports most of these settings.
Disabling compression is unclear. It should be denoted as "Disabled".
There is an option for disabling LZO - "Legacy - Disabled LZO algorithm"
I only found this out after reading the code. I believe I've found the correct way to remedy this.
Changing the keepalive check period is needed for lossier networks, PFSense supports this and it
remedies the problem.
The current default is:
keepalive 10 60
I would like the ability to change it to:
keepalive 5 30
Increasing the buffer sizes helps maintain thruput, PFSense supports this and adds the following configuration:
sndbuf 2097152
rcvbuf 2097152
There is an additional tweak which increases the buffer settings on the client:
push "sndbuf 512000"
push "rcvbuf 512000"
Currently there is no inactivity timeout option, I'd like to be able to set it to 20 minutes, this is the config output:
inactive 1200
Describe alternatives you considered
Currently I can change some of these options via the "Advanced" textbox, however this is un ideal since typos in the config can cause problems/outages.

I just sent in a pull request that will add some of this.
Glad I was able to do that.


Pdf.js can't open 1.1G pdf file in Chrome

Attach (recommended) or Link to PDF file here: Any file larger than 1G
Configuration:

Web browser and its version: chrome 69.0.3497.100
Operating system and its version: windows 10
PDF.js version: PDF.js v1.10.100 (build: ea29ec83)
Is a browser extension: no

PDF.js v1.10.100 (build: ea29ec83)
信息：Invalid typed array length:<PHONE_NUMBER>
No problem in Firefox

Closing since the required PDF file is not provided. Moreover, this should probably be reported to the Chrome issue tracker since it seems like a browser limitation (as you don't have the issue with Firefox).


RESTful webservice to receive notifications of artifact uploads

Expected result:

The plugin exposes a webservice endpoint to receive artifact upload notifications.
Notifications come in a form of HTTP POST requests with artifact coordinates and target repository as a payload.
Notifications are received in a non-blocking way. Processing is asynchronous.
The endpoint support authentication.
The webservice requires authorizarion. Access control goes through the usual Nexus facilities.

@alekseysemenov please check if a large (few GB) artifact replication that takes few minutes is handled well. If it does - this task is to be closed.
Fully asyncronous replication has been moved to #19.

@alekseysemenov Please verify the cases

A Nexus instance receives so many uploads in time so thread pool for notification senders is exhausted. What's happening when another upload arrives? Does it cause a message processing lock?
A peer Nexus instance is down. What's happening with the primary instance when uploads come?

It appeared that:

Nexus message processing is blocked when there are more ongoing replications than the thread pool size.
Nexus message processing is blocked on each upload when number of peers is larger than thread pool size.

Given that this task can be considered "done" if:

Notification sending does not block message processing thread in any way. I.e. a task to send a notification is queued first and then goes to a thread for execution.
If the queue is full, an exception is thrown, an error is logged but nothing is blocked on that.

What do you mean by message processing? And what are the consequences for Nexus in general?

Pull request #28 was merged. Conditions mentioned in "Given that this task can be considered..." are satisfied so issue can be resolved.


(packaging) Update version for 2.10.3

Confirmed that this matches the version specified for release in PA 1.10.0.

Going to check for anything that needs to be in the changelog.


Extension marketplace teams should not be allowed to call themselves "VSCode"

Issue Type: Bug
The vscode-icons extension is listed as being authored by the "VSCode Icons Team". I am not sure if this means that it's a first-party extension, from the authors of VSCode, or an unrelated group that decided to take the same name.
Just like Apple does not permit apps in the App Store to masquerade as being from Apple when they're not, it should be clearer in the app store if extensions are authored by the VSCode core team.
VS Code version: Code 1.41.0 (9579eda04fdb3a9bba2750f15193e5fafe16b959, 2019-12-11T17:58:38.338Z)
OS version: Darwin x64 18.7.0

IMHO I would not do anything here. This should be covered via verified publishers https://github.com/microsoft/vsmarketplace/issues/39


JS: Private fields

This PR adds support for JS's new private field by highlighting the # as an operator.
Example

I made it an operator because I wanted some highlighting but looking at this it might have been the wrong choice.

# is part of the name

The spec.
Maybe a new token (e.g. sigil) is the best solution?
Anyhow, I have to update this PR because I didn't consider private async function.

If it's part of the name, then maybe it shouldn't be highlighted separately? Especially if it's supposed to be part of the name as the "mental model", we'd be do a disservice to that way of thinking by highlighting it separately.
Not in love with a new token, unless you're suggesting aliasing it to operator?

we'd be doing a disservice to that way of thinking by highlighting it separately.

That's true.
Since it's not clear yet as to whether and how we should highlight the #, I'll remove the highlighting for now. We can always add it in the future may the need arise.
The PR is not closed because the function and function variables tokens have to be adjusted (see new test).

Re-reviewed and adjusted JS Extras. I think it's ready.


[FLINK-13814][hive] HiveTableSink should strip quotes from partition …

…values

What is the purpose of the change
Strip quotes from partition value in order to get proper string values.
Brief change log

Strip quotes when we get partition spec from the planner
Added test to verify string partition values are properly handled
Migrated some existing tests to TableEnvHiveConnectorTest since the planner has now supported PartitionableTableSink

Verifying this change
Added test case
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @Public(Evolving): no
The serializers: no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: no
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature? no
If yes, how is the feature documented? NA

cc @xuefuz @bowenli86 @zjuwangg

PR updated to get unquoted partition values in RichSqlInsert, so that we don't have to do it in HiveTableSink.
@danny0405 better if you can also take a look. Thanks.

@xuefuz Do you have any further comments?

No. It looks good to me. Thanks.

LGTM, merging

The following test is failing on my machine:
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR]   TableEnvHiveConnectorTest.testStaticPartition:203->verifyHiveQueryResult:253 expected:<[2	1'1	1.1, 1	1'1	1.1]> but was:<[2	'1''1'	1.1, 1	'1''1'	1.1]>
[INFO]
[ERROR] Tests run: 235, Failures: 1, Errors: 0, Skipped: 0

@bowenli86 I can't reproduce the error you mentioned. Rebase to trigger travis again.

Seems the latest Travis build passed.
@bowenli86 Could you please retry the failed test on your side, and make sure the sql-parser is built with this PR?


docs: update rational for specs non-interactive defaults

Overview
WIP and not ready for review
closes: #1606
Checklist

[ ] New and updated code has appropriate documentation
[ ] New and updated code has new and/or updated testing
[ ] Required CI checks are passing
[ ] Visual proof for any user facing features like CLI or documentation updates
[ ] Linked issues closed with keywords

closing in favor of #1905


added subscript docs to sqrt page

I noticed it was missing a notice on the sqrt doc page that subscripts are available

Would it be possible/wanted to automatically add this to the docs when there is an entry to that primitve in the subscripts doc page? That would make it impossible to change docs in one place and forget to change it in another

Would it be possible/wanted to automatically add this to the docs when there is an entry to that primitve in the subscripts doc page? That would make it impossible to change docs in one place and forget to change it in another

Hmm, maybe I could add support for a primitive's docs to specifically have un/under/fill/subscript sections that would automatically get added at the appropriate places.


[Discussion Needed] Proper naming to interfaces

From #607, I've changed interfaces name but reverted for initiating discussion about it.
MultiKeyBinaryRedisPipeline -> MultiKeyBinaryCommandsPipeline
There're lots of inconsistent interface names because of not having prefix / postfix rules or conventions.
I've mentioned earlier about it by https://groups.google.com/d/msg/jedis_redis/r1axS6Lckfg/npldlkX2-i4J .
But it didn't get any opinions, and @marcosnils agrees that we can change improper interface names, so I've posted to github issue again.
So please refer Google Groups link and show your opinions.
Thanks!

As a really new contributor, I think it would be nice to refactor the packages. If the project was structured in a more "logic" way, it would be easier to understand.
Having proper packages that represent not only the major domains(redis.clients.jedis, redis.clients.jedis.exception, redis.clients.jedis.util) but also the subdomains(connection, data structure, etc.) makes the understanding easier and it can also help us to define boundaries. For instance, the class X in the connection package can only be used by this package. This helps us because when we change something, we know what's the affected domain.

@nykolaslima
I already talked re-structure, about 1 years ago.
https://groups.google.com/d/msg/jedis_redis/r1axS6Lckfg/Ylur-RRXiQoJ
Seems like preparing major release is a chance to go on? :)

Yes! Let's do it for the next 3.0.

@nykolaslima
We're going to move interfaces to new packages - #1085 .
Hope that will be a good starting point of repackaging.
Your idea would be greatly appreciated!
@xetorthio @marcosnils @nykolaslima
Next movement is renaming interfaces. I think it's time to discuss naming convention for interfaces.


[BUG] index out of range [0] with length 0

Running the example in from the readme outputs this:
> rescope -u hackerone.com/security -o burpscope.json
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/root4loot/rescope/internal/bbaas/hackerone.Scrape({0xc000014180, 0x16})
        C:/Users/User/go/pkg/mod/github.com/root4loot/rescope@v0.0.0-20221006170311-507297bd1931/internal/bbaas/hackerone/hackerone.go:55 +0x645
github.com/root4loot/rescope/internal/url.BBaas({0xc000050f80?, 0x1?, 0x647408?}, {0x0, 0x0, 0x0}, {0x0, 0x0, 0x0})
        C:/Users/User/go/pkg/mod/github.com/root4loot/rescope@v0.0.0-20221006170311-507297bd1931/internal/url/url.go:60 +0x4a2
main.main()
        C:/Users/User/go/pkg/mod/github.com/root4loot/rescope@v0.0.0-20221006170311-507297bd1931/main.go:78 +0xcb

Same as #12. Fixed temporarily by refreshing tokens. Working on a permanent solution.


feat: public DIDs in Accept Invitation & Accept Request

For  Accept Exchange Request and  Accept Invitation,

added public DID in controller API for below endpoints
added public DID and label for client & service
closes #871

Signed-off-by: sudesh.shetty<EMAIL_ADDRESS>

Please ignore the codecov, I have covered all scenarios except unmarshal failures of requests which is hard to cover.


Create site using static site generator

How about creating the site with a static site generator? You could use Pelican or  that other program you ran into.

http://gohugo.io/overview/introduction/


What version of snappy should I install for building HB from source?

Summary
I am trying to build HB from source,  when i use the make -j8 command from the work dir, i get the following error :
(base) root@recall-gpu-01:/HybridBackend# make -j8
mkdir -p /root/projects/tmp/HybridBackend/arrow/build/
ARROW_INSTALL=/root/projects/tmp/HybridBackend/arrow/dist \
ARROW_BUILD=/root/projects/tmp/HybridBackend/arrow/build \
ARROW_OSX_TARGET= \
USE_CXX11_ABI=0 \
WITH_ARROW_HDFS=ON \
WITH_ARROW_S3=ON \
SIMD_LEVEL=AVX2 \
OS=Linux \
bash arrow/build.sh
-- Building using CMake version: 3.16.3
-- Arrow version: 5.0.0 (full: '5.0.0')
-- Arrow SO version: 500 (full: 500.0.0)
-- clang-tidy not found
-- clang-format not found
-- Could NOT find ClangTools (missing: CLANG_FORMAT_BIN CLANG_TIDY_BIN)
-- infer not found
-- Found cpplint executable at /root/projects/tmp/HybridBackend/arrow/src/cpp/build-support/cpplint.py
-- System processor: x86_64
-- Arrow build warning level: PRODUCTION
Using ld linker
Configured for RELEASE build (set with cmake -DCMAKE_BUILD_TYPE={release,debug,...})
-- Build Type: RELEASE
-- Using CONDA approach to find dependencies
-- Using CONDA_PREFIX for ARROW_PACKAGE_PREFIX: /root/miniconda3
-- Setting (unset) dependency *_ROOT variables: /root/miniconda3
-- ARROW_ABSL_BUILD_VERSION: 0f3bb466b868b523cf1dc9b2aaaed65c77b28862
-- ARROW_AWSSDK_BUILD_VERSION: 1.8.133
-- ARROW_AWS_CHECKSUMS_BUILD_VERSION: v0.1.10
-- ARROW_AWS_C_COMMON_BUILD_VERSION: v0.5.10
-- ARROW_AWS_C_EVENT_STREAM_BUILD_VERSION: v0.1.5
-- ARROW_BOOST_BUILD_VERSION: 1.75.0
-- ARROW_BROTLI_BUILD_VERSION: v1.0.9
-- ARROW_BZIP2_BUILD_VERSION: 1.0.8
-- ARROW_CARES_BUILD_VERSION: 1.17.1
-- ARROW_GBENCHMARK_BUILD_VERSION: v1.5.2
-- ARROW_GFLAGS_BUILD_VERSION: v2.2.2
-- ARROW_GLOG_BUILD_VERSION: v0.4.0
-- ARROW_GRPC_BUILD_VERSION: v1.35.0
-- ARROW_GTEST_BUILD_VERSION: 1.10.0
-- ARROW_JEMALLOC_BUILD_VERSION: 5.2.1
-- ARROW_LZ4_BUILD_VERSION: v1.9.3
-- ARROW_MIMALLOC_BUILD_VERSION: v1.7.2
-- ARROW_ORC_BUILD_VERSION: 1.6.6
-- ARROW_PROTOBUF_BUILD_VERSION: v3.14.0
-- ARROW_RAPIDJSON_BUILD_VERSION: 1a803826f1197b5e30703afe4b9c0e7dd48074f5
-- ARROW_RE2_BUILD_VERSION: 2021-02-02
-- ARROW_SNAPPY_BUILD_VERSION: 1.1.8
-- ARROW_THRIFT_BUILD_VERSION: 0.13.0
-- ARROW_THRIFT_BUILD_MD5_CHECKSUM: 38a27d391a2b03214b444cb13d5664f1
-- ARROW_UTF8PROC_BUILD_VERSION: v2.6.1
-- ARROW_XSIMD_BUILD_VERSION: e9234cd6e6f4428fc260073b2c34ffe86fda1f34
-- ARROW_ZLIB_BUILD_VERSION: 1.2.11
-- ARROW_ZSTD_BUILD_VERSION: v1.5.0
-- Boost include dir: /usr/include
-- Boost libraries: Boost::system;Boost::filesystem
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find Snappy (missing: Snappy_LIB Snappy_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
  cmake_modules/FindSnappy.cmake:55 (find_package_handle_standard_args)
  cmake_modules/ThirdpartyToolchain.cmake:235 (find_package)
  cmake_modules/ThirdpartyToolchain.cmake:948 (resolve_dependency)
  CMakeLists.txt:515 (include)

-- Configuring incomplete, errors occurred!
See also "/root/projects/tmp/HybridBackend/arrow/build/CMakeFiles/CMakeOutput.log".
See also "/root/projects/tmp/HybridBackend/arrow/build/CMakeFiles/CMakeError.log".
make: *** [arrow/Makefile:8: /root/projects/tmp/HybridBackend/arrow/build/install_manifest.txt] Error 1

I have install libsnappy-dev and can found it from /usr/local/include/snappy.h and /usr/local/lib/libsnappy.a, but that error still exists, so how should I install the correct snappy version for building HB?
I also tryed the docker images from registry.cn-shanghai.aliyuncs.com/pai-dlc/hybridbackend:developer-tensorflow1.15-manylinux_2_27-py3.6-cu114, same error exists.
Installation environment

GPU model and memory:
OS Platform: "20.04.3 LTS (Focal Fossa)"
Docker version:
GCC/CUDA/cuDNN version: 11.4
Python/conda version:  Python 3.8.10/ conda 4.10.3
TensorFlow/PyTorch version: 1.15.5+deeprec2201

Willing to contribute
Yes

Thanks for the reply.
The missing environment variable of snappy disappeared, but other missing dependencies for apache arrow still existed, the dependencies management for makefile and Cmake puzzles me, have the developer considered adding Bazel building system support for HB? That may bring better collaboration with TensorFlow and DeepRec.

Thanks for the reply. The missing environment variable of snappy disappeared, but other missing dependencies for apache arrow still existed, the dependencies management for makefile and Cmake puzzles me, have the developer considered adding Bazel building system support for HB? That may bring better collaboration with TensorFlow and DeepRec.

Not in near future. bazel brings much more problems than it try to resolve if one library need to work with different versions of TensorFlow.
For building with DeepRec, you can see developer docker file for DeepRec.
For building with Ubuntu20.04, you can see developer docker file for NVTF22.01


Implement UI Changes for Seamless Scrolling of Top Elements on Programs Screen

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
When we navigate to the programs screen where projects are displayed, we want the top elements like the year, filter, etc., to scroll as well. To achieve this, we need to make changes to the UI so that users can easily see all the projects and organizations.
https://github.com/andoriyaprashant/OpSo/assets/121665385/d015e076-5468-4ff7-9bfa-30970998df36
Record

[X] I agree to follow this project's Code of Conduct
[ ] I'm a GSSOC'24 contributor
[ ] I want to work on this issue

Hello @andoriyaprashant ,
Can I work on this issue

@andoriyaprashant please assign this to me i am GSSOC'24 contributor and have 2+ years of experience in flutter

@andoriyaprashant i am getting a error Error: Entrypoint isn't within the current project normally i resolved this issue many times but this time it is not resolved can you help me ?


Toggle Mouse Button Editor Switching

I already made a feature request for this however I don't think I described what I was saying properly and as a result gave out the wrong meaning of what I said.
In Visual Studio Code, mouse button 4 and 5 switch between open editors, which can be an issue for people who use these buttons for other reasons. The ability to toggle this feature would be extremely helpful.
According to this issue https://github.com/Microsoft/vscode/issues/8641 these buttons are bindable in Windows at least.
This may also be helpful: https://github.com/jostrander/mouse-forward-back

@ShadowRanger Is not this a duplicate of #56627?

@sandy081 As I said, I did already make one for this however I don't believe I provided the correct information and I also received no response on it either so I thought I would make a new one with more clarification on the request.

I do not think it will be helpful if you create a duplicate. Moreover you might loose the context or any discussion that already happened. I would recommend to continue discussion in the original issue.


Can I use Paginated reports with type A Embedded SKU as described here

Can I use Paginated reports with type A Embedded SKU as described here
](https://learn.microsoft.com/en-us/power-bi/paginated-reports/paginated-reports-faq)
if yes, please fix the current article, because it says only P and EM SKUs can be used for embedding Paginated reports.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: d53eef67-91ce-691f-5e29-515d553023f6
Version Independent ID: f6723c69-a08d-42af-6a74-33f22bc55fba
Content: Embed paginated reports in your Power BI embedded analytics application - Power BI
Content Source: powerbi-docs/developer/embedded/embed-paginated-reports.md
Service: powerbi
Sub-service: powerbi-developer
GitHub Login: @mberdugo
Microsoft Alias: monaberdugo

Thanks for your comment, @ed7257. This issue has been assigned to the doc author for review.

Thanks, for your question, @ed7257.
It depends on the scenario. Step 2 - Create a capacity has two tabs. The "Embed for your customers" tab explains that you can use A SKUs and Power BI Embedded. If you're embedding for your organization, you need Power BI Pro or Premium which means you must use either an EM or P capacity.
I hope this helps.


Added Serendipity company and SmartFinder tool

Added Serendipity company and SmartFinder tool
Note: we add .gitignore because it was not present.

I have to reject this pull request, because Serendipity is not a JavaFX development tool, which is the idea behind the "tools" category. It would be a good fit for the "real world apps" section, don't you think?

Ok  I will submit a new pull request with SmartFinder in the "real world apps" section.


the codes for the "Heat Equation"?

Hi, maziarraissi! Thanks for the nice repo.
I am interested in the example of the heat quation, but I couldn't found the responding codes. Could you please share to me?

Yes you are missing the k.m function that is called in a couple of places including likelihood.


Triple-click to select all text in a TextField

This is a draft
@justinmc I'm unaware of process to submit a draft PR so I can start a discussion and get feedback. Is there a preferred channel to discuss the overall implementation for text selection in a TextField?
This is a rough start at implementing TextSelectionGestureDetector.onTripleTapDown and linking that up to a rough RenderEditable.selectParagraph(...) It's a step toward resolving #63576.
I opted to copy the current structure of the code so I'm not refactoring and modifying behavior at the same time.
Here's a video of it in action:
https://user-images.githubusercontent.com/220686/114961643-d4c07900-9e2e-11eb-8e68-39679701c776.mov
The test "in a series of rapid taps, onTapDown and onDoubleTapDown alternate" is now failing. What is the purpose of this test? At least from testing on a Mac and Chrome, it doesn't seem like there's anything past a triple-click. Any further clicks appear to be ignored.
Text selection behavior
I was getting confused by all the states so I drew a diagram to help better reason about the text selection behavior:
Text selection flow chart

These correspond to the following situations:

Tap once to place a caret (+ drag to extend caret selection, or continue to double tap)
Double tap to select a word (+ drag to extend word selection, or continue to triple tap)
Triple tap to select a paragraph (+ drag to extend paragraph selection)

Drag to extend bug
I noticed some incorrect behavior that may be worth correcting in a future PR. (Let me know if you think this should be a separate issue or if we want to increase the scope of this existing PR.)

If you double-click a word and drag, it doesn't keep the original word as part of the selection. Instead it uses the last tap down position.
If you triple-click a paragraph drag, it doesn't keep the original paragraph as part of the selection. Instead it uses the last tap down position.

I believe this is because, in the onDragSelectionStart and onDragSelectionUpdate handlers, we use selectPositionAt, which only supports a from and to point.
We may need to introduce something like extendSelection which take a from starting selection and to point. As you drag, this selection would get extended based on where the mouse cursor is.
Before (TextSelectionGestureDetectorBuilder):
  @protected
  void onDragSelectionStart(DragStartDetails details) {
    // ...
    renderEditable.selectPositionAt(
      from: details.globalPosition,
      cause: SelectionChangedCause.drag,
    );
  }

  @protected
  void onDragSelectionUpdate(DragStartDetails startDetails, DragUpdateDetails updateDetails) {
    // ...
    renderEditable.selectPositionAt(
      from: startDetails.globalPosition,
      to: updateDetails.globalPosition,
      cause: SelectionChangedCause.drag,
    );
  }

After (TextSelectionGestureDetectorBuilder):
  @protected
  void onDragSelectionStart(DragStartDetails details) {
    // ...
    renderEditable.setInitialDragSelection();
  }

  @protected
  void onDragSelectionUpdate(DragStartDetails startDetails, DragUpdateDetails updateDetails) {
    // ...
    renderEditable.extendDragSelection(
      to: updateDetails.globalPosition,
      cause: SelectionChangedCause.drag,
    );
  }

Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I signed the CLA.
[x] I listed at least one issue that this PR fixes in the description above.
[ ] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt.
[ ] All existing and new tests are passing.

As someone who has worked with the TextField code for the first time, I have a high level thought on the architecture.
There are a lot of areas in the code with case statements on the target platform.
As more platforms are added, this will increase the size of the code further, making it even harder to reason about. For example, I'm looking at concepts like force press, toolbars, handles, etc, that have nothing to do with desktop text selection. This means that, I have to process this unrelated code and worry about breaking the nuances of other platforms when I make a change.
One proposal would be to start breaking apart a TextField into smaller parts that we can compose. For example:

Text selection
Text editing (intents/actions/shortcuts)
Toolbars/menus
Text calculations (words, paragraphs, next word, etc)

(I haven't thought deeply about the subsystems above, just brainstorming to make a point.)
Depending on the platform, we could compose a different implementation of a TextField.

One proposal would be to start breaking apart a TextField into smaller parts that we can compose. For example:
Text selection
Text editing (intents/actions/shortcuts)
Toolbars/menus
Text calculations (words, paragraphs, next word, etc)

I think this is actually something we're working on atm. This may not happen very soon unfortunately because it's difficult to make these changes while avoiding breaking user code.

I have started experimenting with double-triple click then drag to extend the selection.
The following is causing some friction with the current code:

All of the platform logic is mixed together. This makes it harder to refine the desktop behavior without breaking others. For example, on desktop the onTapDown immediately places a cursor somewhere. And while the mouse is down, it doesn't blink until the mouse is released. I'm not sure of the priority of this, but I believe a high impact refactor would be to have a different TextSelectionGestureDetector for each platform. This way, I could focus on web/macos behavior without injecting a bunch of conditionals throughout the code.

There is no notion of the current selection type. If I single-click and drag, it should extend to the closest character. If I double-click and drag it should extend to the closest word boundary. If I triple-click, it should extend to the closest paragraph boundary. The initial selection needs to be preserved, so if my mouse is inside of the selection, the initial selection should still be selected.

Code on extending a selection
getBoundary could can return a position, a word boundary, or paragraph boundary, depending on whether there was a single, double, or triple click.
TextSelection _selectionExtendedTo({
  required TextSelection from,
  required TextPosition to,
  required TextRange Function(TextPosition position) getBoundary,
}) {
  final int positionOffset = to.offset;
  final int baseOffset = from.baseOffset;
  final int extentOffset = from.extentOffset;

  if (positionOffset > extentOffset) {
    // Expand the from selection to the right
    final TextRange range = getBoundary(to);
    return TextSelection(baseOffset: baseOffset, extentOffset: range.end);
  } else if (positionOffset < baseOffset) {
    // Expand the from selection to the left
    final TextRange range = getBoundary(to);
    return TextSelection(baseOffset: range.start, extentOffset: extentOffset);
  } else {
    // The minimum selection we can have is the starting selection
    return from;
  }
}

Here's a video of how it looks:
https://user-images.githubusercontent.com/220686/115615027-082e5800-a2b4-11eb-91c0-8c1a59bc51ae.mov
Any thoughts on each point as it relates to the scope of this PR?

Update: I have a prototype of single/double/triple click to drag.

Single-click then drag: extends the selection from a point as before
Double-click then drag: extends by word
Triple-click then drag: extends by paragraph

https://user-images.githubusercontent.com/220686/115641886-979d3080-a2df-11eb-8881-49a778949137.mov
The implementation works around some limitations of the existing design, so I can share the workarounds I had to deal with to get this working. The scope of this PR has grown, but these were the parts of the desktop text selection user that were bothering me the most. If desired, we could get a subset of this merged and issue a separate PR.

I tested these on iOS:

double-tap a paragraph, and triple tap: the selection extends from the selected word to the entire paragraph.
tap a paragraph in quick succession for 3+ times: the paragraph is selected (and remains selected if I keep tapping), and the text selection toolbar remains visible.
tap a paragraph in quick succession for 3+ times, wait for a few seconds, then tap again: the paragraph remains selected, but the text selection toolbar disappears after the last single tap.

(PR triage) @venkatd Do you still have plans to come back to this PR?

@chunhtai sorry for the delay, we ended swapping all of our TextField widgets with a 3rd party solution which has this form of text selection (https://github.com/superlistapp/super_editor) so this is not an immediate priority for us.
If someone else wants to pick it up again, happy to guide them. Or I might be able to get back to it in a few months once our internal priorities clear up.

(PR triage) @venkatd Thanks, I'll close this for now until somebody has time to pick it up again. Looks like we have https://github.com/flutter/flutter/issues/63576 filed to track the issue.


Update commands to remove defaults.

Update to remove some defaults. Also "interval" now needs a unit (s, m, h, etc.), but "5m" is the default.

Also, the osv certifier is now under "guacone certifier", so add that.

I'll create a PR to use the new guacsec/guac image and pull in the CLI changes.


Functions Refactoring and Historical Financial Data Retrieval Fixes

The objective of this pull request is to incorporate the changes suggested in issue/proposal #10. By updating Leboursier's endpoints, refactoring get_isin(), introducing minor changes, and providing test suites for most of these modifications, the PR accomplishes its objectives. As a consequence of these modifications, StocksMA is now operational, albeit only to a certain extent. The ensuing paragraphs shall provide a succinct explanation of the reasoning behind the modifications this PR has implemented.
To start with, The constant COMPANIES has undergone numerous modifications. Firstly, its data type has been updated from a dictionary to a MappingProxyType. This change was deemed necessary due to the significance of the information it holds. By using a MappingProxyType instead of a Dict, inadvertent data overwrites by users or at run time can be prevented. In addition, the use of named tuples as the value of each key-value pair has enhanced the readability and usability of the COMPANIES constant. Furthermore, this mapping object now includes the ISIN of all the companies it supports, as a matter of fact, the total count of companies stored in the mapping object has risen by eight, resulting in a new total of 77 companies.
In addition, the functions that are dependent on Leboursier's API have been rectified owing to the updates made to the endpoints utilized by these functions, along with the refactoring of get_isin(). Thanks to the modifications made to the COMPANIES constant, get_isin() is now capable of getting the ISIN of a given company without relying on any external data sources. It is noteworthy to highlight that the exception MultipleCompaniesFoundException is no longer utilized by the get_isin() function. This modification is due to the revamped structure of the COMPANIES constant, which guarantees the absence of duplicate tickers, names, or ISINs by means of appropriate testing.
Speaking of end endpoints, it should be noted that those related to https://bourse.gbp.ma/bcp/api?{Query String} are no longer operational. As a result, certain functions are currently non-functional; therefore, a warning shall be issued each time these functions are invoked: get_price_sector(), get_data_sector(), get_data_sectors() and get_sector_intraday(). On the other hand, the endpoints provided by MarketWatch and WSJ remain dependable and robust, and the functions that utilize them are operating as designed.
Regarding the minor alterations implemented by this pull request, a new file named constants.py has been included. This file comprises all the constants employed by the package. Additionally, it is worth noting that the test directory now includes a new file called test_consts.py. This file comprises several tests that pertain to the recently introduced MappingProxyType and CompanyInfo, as well as a dedicated test class for testing get_isin(). Furthermore, get_tickers() now allows the option of returning its outcomes as a DataFrame.
Finally, it is to be hoped that the given explanations will effectively portray the modifications implemented by this pull request and facilitate its review process. Should you have any questions or suggestions about this PR, @s0v1x, please do not hesitate to share them with me.
Closes #10
Fixes #9

@Ahmed-Z-D, if the functions get_price_sector(), get_data_sector(), get_data_sectors(), and get_sector_intraday() are no longer working due to the endpoints being non-functional, it would be advisable to remove those functions from the code entirely. Additionally, it is important to update the readme file to reflect the changes and inform users about removing these non-functional functions.
Thanks again !

Hi @s0v1x
As per your request, I have removed the non-performing functions from the code, including check_sector_existence. Moreover, I have updated the readme file accordingly. I would greatly appreciate it if you could let me know if there are any further changes that need to be made in order to facilitate the prompt merging of this PR.


Maximize group: focus is not in group when restored

Steps to Reproduce:

have 2 groups side by side
focus group 1
maximise it
hit Ctrl+2
group 2 becomes visible

=> 🐛 focus is still in group 1

Unable to reproduce with the mentioned steps

we also do not set focus when maximizing a group which is not active. Looking into it


Not working with decimals?

Steps to reproduce

Go to the Demo JS Fiddle: https://jsfiddle.net/ValentinH/954eve2L/
Go to the $scope.minRangeSlider
Change minValue to 0.1, maxValue to 1, floor to 0.1 and ceil to 1, steps to 0.1
Run it, won't work.

Expected behaviour
The slider should increase in steps of 0.1 from 0.1, being the smallest allowed value, up to 1, being the greatest.
Actual behaviour
You can't drag the slider.

You need to set the precision option.


add  Alertmanager Webhook: WorkWechat Bot

add  Alertmanager Webhook: WorkWechat Bot

The alertmanager natively supports WeChat: https://prometheus.io/docs/alerting/configuration/#wechat_config
Is this something else?

thanks to reply.
this is work wechat(企业微信), not wechat,  it send message to chat group of user create .
(https://work.weixin.qq.com/api/doc#90000/90136/91770)
I think it will help some company to use

It sounds like the on-prem version of WeChat, the WeChat notifier has an api_url configuration field so I'd presume it's also covered.

my bad,Not explained clearly
wechat and work wechat  not same product,  and have different api ,different users
wechat like Twitter (Just for explanation),for use talk
work wechat like slack, for developer or company ,support robot

This looks like the same API to me: https://work.weixin.qq.com/api/doc#90000/90003/90487

very sorry ,I didn't look at the document carefully
you are right, alertmanager support work wechat (I thought it was WeChat.) with create app.
but there is two thing too.
custom app: https://work.weixin.qq.com/api/doc#90000/90136/91770
rebot: https://work.weixin.qq.com/api/doc#90000/90003/90487
but I don't want explained, it hard to me😂
if someone really need it, he(she) will find this


Make the access to UserAppServer resilient.

UAserver is essential for application and user operation. We do have one UAServer per DB node, but the way we were setup to access it, we would not that advantage of that redundancy. This patch creates an NGINX configuration on each host to load-balance across all the available UAServer, allowing thus to tolerate the loss of few (in case we have enough redundancy of course). At this time we don't use yet haproxy for this.


Improve tw locale

Just some minor adjustments ;)

added to my fork
logs : https://chatgpt.btz.sh/#/changelog


rclone: fusermount not in PATH

Describe the bug
A clear and concise description of what the bug is.
rclone mount fails as fusermount isn't in the PATH (in pure nix-shells, or when directly using ${pkgs.rclone}/bin/rclone).
To Reproduce
Steps to reproduce the behavior:

nix-shell -p rclone
rclone mount remote:path /some/path
You should get failed to mount FUSE fs: fusermount: exec: "fusermount": executable file not found in $PATH.

Expected behavior
A clear and concise description of what you expected to happen.
I expect rclone mount to just work the way it's supposed to.
Notify maintainers

@danielfullmer
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

system: "x86_64-linux"
host os: Linux 5.4.58, NixOS, 20.03post-git (Markhor)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.3.6
nixpkgs: /nix/store/96pn32ivdpxaz8d8cq765jhllvb334xl-source

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute: rclone

I can confirm this, any workarounds?

workaround for now from https://discourse.nixos.org/t/fusermount-systemd-service-in-home-manager/5157/3:
when running rclone as a systemd service, add this to its config:
Environment = [ "PATH=/run/wrappers/bin/:$PATH" ];


Handle negative temperatures

It seems like negative temperatures are not handled correctly, and they end up being reported as uint16 overflowed, e.g. 6548.6 C

What device do you use to measure temperature?

What device do you use to measure temperature?

ah, sorry, I forgot to mention, Xiaomi MJ_HT_V1

ah, sorry, I forgot to mention, Xiaomi MJ_HT_V1

Thanks for the report! Should be fixed now.

Thanks for the report! Should be fixed now.

Thank you very much!

Thank you very much!

@devbis just tested, it works, thanks!

@devbis just tested, it works, thanks!


Linux Compatibility

I don't think this PR should have been accepted. It was already fixed for Linux in a better way I think. I know I'm partial because I did the first fix, but my fix was made to follow Arduino naming conventions ...


[Bug]: Salesforce query method returns an unknown (null) data type

Connector Name
module/salesforce (Salesforce)
What happened?
Description
The Salesforce (SF) client query method always returns an unknown (null) data type instead of returning stream or error types. This assigned value is not identified in Ballerina, and trying to use the given value anywhere (Eg: trying to print the value) throws a Java exception.
Refer to the sample code below:
    string query = string `SELECT Id FROM Lead`;
    stream<record{}, error?>|error sfResult = sfEp->query(query);
    io:println(sfResult);

OS, DB, other environment details and versions

Ballerina Swan Lake 2201.3.2 (Update 3)
ballerinax/salesforce 7.2.0

Relevant log output
error: java.lang.NullPointerException
	at ballerina.lang.error.0:toString(error.bal:124)
	   ballerina.io.1.PrintableClassImpl:toString(print.bal:109)
	   ballerina.io.1:externPrintln(print.bal:147)
	   ballerina.io.1:println(print.bal:65)
	   test:main(test.bal:45)

Closing since this was fixed via https://github.com/ballerina-platform/module-ballerinax-sfdc/pull/276
Choreo issue: https://github.com/wso2-enterprise/choreo/issues/17969
Released a patch ballerinax/salesforce 7.2.1 with the fix


C++11

I got a compilation error at MacOS. To fix it compile with c++11 (at least) to support initializer list syntax in pyrl.
setup.py:
ext_modules=[
         Extension(
             'rlplay.engine.utils.plyr', [
                 'rlplay/engine/utils/plyr/plyr.cpp',
                 'rlplay/engine/utils/plyr/validate.cpp',
                 'rlplay/engine/utils/plyr/operations.cpp',
                 'rlplay/engine/utils/plyr/apply.cpp',
             ], include_dirs=[
                 'rlplay/engine/utils/plyr/include'
             ], extra_compile_args=[
                 '-O3', '-Ofast', '-std=c++11'
             ], language='c++',
         ),
     ],

I have decided that vendoring an independently useful nested container mapper in rlplay is suboptimal. About a month ago i forked plyr into a dedicated package https://gtihub.com/ivannz/plyr, which is also available on pypi. Development of plyr in rlplay has been discontinued, and will soon be completely removed from this package.


distsql, ui: query count metrics

PR: https://github.com/cockroachdb/cockroach/pull/17050

New distributed SQL-focused metrics in the UI, @Amruta-Ranade. Not sure if you'll need to document them for 1.1. Depends on the user stories/questions you end up deciding to answer.

As per discussion with Diana, not to be documented for 1.1

This should be covered in Amruta's general Admin UI reference doc.

As per discussion with @couchand, not to be documented for 1.1

We are not documenting distsql for 2.0. Moving to 2.1

We are not documenting distsql yet. Punting this issue until we do.

@Amruta-Ranade, will there be some engineering changes tied to our decision to document this? If so, you can close this issue and count on a future issue getting created by our release script.

I don't know yet - it depends on the scope of the "document DistSQL plans" project. And the scope of that project hasn't been defined yet. I am okay with closing this issue for now and revisiting it as and when we get to the DistSQL plans project.


After editing resources in swagger definition, resources are not updated unless refresh the page

Have to refresh the resources page to display changed, newly added or deleted resources after editing the swagger definition.

This behavior is not visible in the latest build.