Adjust the position of require File.expand_path

On Podfile:
flutter_application_path = '../flutter_module'
load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')

target 'OCProject' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for OCProject
  # install_all_flutter_pods(flutter_application_path)
  # install_flutter_engine_pod(flutter_application_path)
  # install_flutter_application_pod(flutter_application_path)
  install_flutter_plugin_pods(flutter_application_path)

end

post_install do |installer|
  flutter_post_install(installer)
end

Encountering the following error after executing pod install:
pod install

[!] Invalid `Podfile` file: undefined method `flutter_relative_path_from_podfile' for #<Pod::Podfile:0x000000010e74c520 @defined_in_file=#<Pathname:/Users/lxf/gitHub/flutter_hybrid_bug/OCProject/Podfile>, @internal_hash={}, @root_target_definitions=[#<Pod::Podfile::TargetDefinition label=Pods>], @current_target_definition=#<Pod::Podfile::TargetDefinition label=Pods>>

  relative = flutter_relative_path_from_podfile(export_script_directory)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^.

 #  from /Users/lxf/gitHub/flutter_hybrid_bug/OCProject/Podfile:17
 #  -------------------------------------------
 #    # install_flutter_plugin_pods(flutter_application_path)
 >    install_flutter_application_pod(flutter_application_path)
 #
 #  -------------------------------------------

The flutter_relative_path_from_podfile method is in flutter_tools/bin/podhelper.rb, but now flutter_tools/bin/podhelper.rb is only required in install_all_flutter_pods in podhelper.rb.tmpl.
Sometimes we only need to use the install_flutter_plugin_pods method in podhelper.rb. For example, using Shorebird in an iOS hybird app scenario, we need to build Flutter.xcframework and App.xcframework and embed them into the iOS native project. In order to avoid unnecessary conflicts, use install_flutter_plugin_pods method to install Flutter plugin pods.
Shorebird - Code Push In Hybrid Apps
So I adjust the position of require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root).
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.
[ ] 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 this PR is test-exempt.
[x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Sometimes we only need to use the install_flutter_plugin_pods method in podhelper.rb. For example, using Shorebird in an iOS hybird app scenario, we need to build Flutter.xcframework and App.xcframework and embed them into the iOS native project. In order to avoid unnecessary conflicts, use install_flutter_plugin_pods method to install Flutter plugin pods.

@jmagman this code change seems ok to me, but probably more important, is this a supported workflow?

can you explain this a bit more, I'm curious. Is the scenario that your hybrid app uses CocoaPods and needs the same pods between the native app and the Flutter module? So you'd rather pod install run only once and deal with all the version solving so they don't conflict? Or is there something else going on?

@jmagman According to the various ways to integrate the Flutter module introduced in the document, our app initially used Option A to integrate the Flutter module. When using Shorebird, it requires switching to something like Option B.
shorebird release ios-framework-alpha

When using the above command, Shorebird will use its own modified Flutter framework and engine to build  Flutter.xcframework and App.xcframework.
In my Flutter module, I use some Flutter plugins based on native third packages, such as sqflite, which relies on FMDB, and FMDB is a dependency in our native project.
Pod::Spec.new do |s|
  s.name             = 'sqflite'
  ...
  s.dependency 'FMDB', '>= 2.7.5'
  ...
end

https://github.com/tekartik/sqflite/blob/70d127224b33594963f2df51157ad4481d41a5a4/sqflite/ios/sqflite.podspec#L18
When using Option B to build xcframework, there will be FMDB.xcframework. I dragged these xcframeworks into Build Settings > Build Phases > Link Binary With Libraries.
The following error will occur when compiling.
Showing Recent Messages
Multiple commands produce '/Users/lxf/.../xxx.app/Frameworks/FMDB.framework'

And the Option B will miss some vendored_frameworks such as realm
Pod::Spec.new do |s|
  s.name                      = 'realm'
  ...
  s.vendored_frameworks       = 'realm_dart.xcframework'
  ...
end

https://github.com/realm/realm-dart/blob/47e1ee72a6182bc3d5c13c0bac588066fdc6fffb/flutter/realm_flutter/ios/realm.podspec#L33
Related feedback: https://github.com/flutter/flutter/issues/125530
I also tried to embed these vendored_frameworks through scripts, but this way is troublesome.
I have tried putting the s.dependency that the Flutter plugin depends on one by one into the Podfile of the native project, and no longer embedding these xcframeworks. This solution is not friendly, because I need to judge whether the native project already has the same dependency. If there is, it needs to be discarded.
Even if the above problem was solved, our app would crash as soon as it started. After investigation, I found that it was because connectivity_plus relied on ReachabilitySwift. I put its dependency in the Podfile of our native project, but what it requires is Reachability.xcframework.
dyld[31764]: Symbol not found: _$s12ReachabilityAAC10ConnectionO4wifiyA2DmFWC
  Referenced from: <8142F86E-4C9C-3513-AD29-D3522FC6677F> /Users/lxf/.../connectivity_plus.framework/connectivity_plus
  Expected in:     <DA318000-9A97-35AD-87EA-7C5B635DE010> /Users/lxf/.../Frameworks/Reachability.framework/Reachability

In addition, we also need to determine whether each xcframework is a static framework or a dynamic framework, otherwise it will not be installed and run on the iPhone.
Related feedback:  https://github.com/flutter/flutter/issues/122183
There were so many questions like the above, so in the end I chose to create a podspec file  to declare dependencies on the already built Flutter.xcframework and App.xcframework, and then combined with install_flutter_plugin_pods
method to integrate native third packages to solve the above problems. 😂


Object.entries/Object.values – values inference

Hey @mattpocock,
I see your reasoning under not adding Object.entries and from my understanding it's connected to the keys on an object.
But what about values?
TS defines values there as any so it feels unsafe.

Object.entries(o: {}): [string, any][];
Object.values(o: {}): any[];

I'm not sure if ts-reset should infer values or we should leave it as unknown.
In case I'm using zod when I receive data and then do some operations on it I'd prefer to have inference.

Inference for Object.values looks fine to me!
https://www.typescriptlang.org/play?#code/MYewdgzgLgBATgUwgVwDawLwwPICMBWCwUAdAG4CGqySAFAN4BQMMA9KywHoD8zMFALhgBGADR9cQgOQUA7gBM58qeJbAhAZkYBfAJRA

I guess I should've been more specific with the use case.
https://www.typescriptlang.org/play?#code/MYewdgzgLgBAHjAvDA3vAXKjMCMMC+BAUKJLAJ5JbmZo24HFEBmArmMFAJbgzNgAKAIaYo5AA4BTEM3gwAPjDFSZMcgEpURGDpgAnSVFZ6wMAPIAjAFaTOAOgBuQgDatJEYeqL4iJcNBghKn4BOE0AenCdAD0Afl8iIA

Aha, didn't see that sneaky second overload there. Yes, that's definitely worthy of our attention.


Format for display floating numbers

It seems, that currently formatting for display floating numbers (type approximation) not very convenient.
open MathNet.Symbolics

let culture = System.Globalization.CultureInfo.InvariantCulture

"0.4095999999999994*x+13.5387777776*y"
|> Infix.parseOrUndefined
|> Infix.format
|> printfn "%s" // => 0.409599999999999*x + 13.5387777776*y

I think that better round off a number to 5-6 decimals before formatting:
open System
let test_f1 = 0.409123554
let test_f2 = 0.4123

//current
test_f1.ToString(culture) |> printfn "%s" // => 0.409123554
test_f2.ToString(culture) |> printfn "%s" // => 0.4123

//one option
test_f1 |> printfn "%f" // => 0.409124
test_f2 |> printfn "%f" // => 0.412300

//second option
let round6 (v : float) = Math.Round(v, 6)
(test_f1 |> round6).ToString(culture)
|> printfn "%s" // => 0.409124
(test_f2 |> round6).ToString(culture)
|> printfn "%s" // => 0.4123

I like both options though second more usual for me

Maybe this should be customizable, along the lines of test_f1.ToString(format, culture) where format would default e.g. to "g" but could be provided by the user as e.g. "0.00".

thus, these customizable functions will receive something like configuration object as one of parameters.
It's seems, that will be not very convenient if it's will be only for output ('format') without input (parse).
Not sure I understand how difficult it is to implement.


Camera follow

Describe your problem here.
How can I make that when a note is pressed the camera moves to the direction of the note?
something like vs sonic.exe
Are you modding a build from source or with Lua?
Source
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No response

https://github.com/mayo78/PSYCHDISCUSSIONS/discussions/1108


fix: special characters in enum values

Description
I added a Helper Function to resolve ascii characters that are not numbers or letters ([0-9a-zA-Z]) and translate them to english. - becomes minus, + becomes plus ...
The function also accepts characters to be ignored and a seperator string to seperate the translated characters from the rest.
Applied this function to the enum renderer to resolve the issue
Related issue(s)
Fixes #450
Tests
In #450 a blacklisted test is mentioned

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

10 of 10 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.06%) to 93.208%

Totals

Change from base Build<PHONE_NUMBER>:
0.06%

Covered Lines:
2271

Relevant Lines:
2318

💛  - Coveralls

@panwauu you have one sonarcloud code smell :)


Missing translation - Laboratoire

Should we remove this pinning feature ? I think this is the element pinning, and we don't support it in Tchap.
@giomfo do you know ?
Check if this was present in 2.3.7

element web v.0.13.0 (which introduces pinning) uses "matrix-react-sdk": "0.11.0"
Tchap-web 2.3.7 uses matrix-react-sdk forked from element's 1.0.7 (probably)
So pinning was already present in tchap-web 2.3.7's code.
We don't know what the deployed config for 2.3.7 was because it wasn't documented, but config.sample.json in 2.3.7 contains "feature_pinning": "labs".
So pinning was probably already in Labs in 2.3.7

Keeping it in 2.5.0 for now.
We need to fix the translation.


Windows installation

Hi,
I wonder how to install the layout on windows. The README says to run setup.exe. And then, what shall be done?
Here is what I tried:

in WIndows (10) setting, reach for "Time & language", "Language"
I have two languages configured: english US and french France
I pick English, "Options"
click "Add a keyboard"
pick "French qwerty keyboard"

When looking at the options for the french France lang: the keyboard has been added there by the installer.
So now it works. I'll post this as it may help others.
PS : fabulous project, thank you!

The README says:

Download the QWERTY-fr layout, extract it, and run setup.exe.

I suggest changing it to:

Download the QWERTY-fr layout, extract it, and run setup.exe. The  "French qwerty keyboard" is now set as your current keyboard layout. If you have many layouts configured, you can run ms-settings:regionlanguage to tweak things.

@sandrock Thanks! Feel free to do a PR.


Reloading the console logs doesn't re-select the resource correctly

See GIF:

Open console logs
Select a resource
F5
The selected resource is cleared, yet the URL still shows a resource's name

Once in this state, attempts to re-select the same resource do not work. You must select something else first.

For anyone considering doing this, please wait until my imminent console logging PR is merged.

@adamint and @leslierichardson95 try reproing this

Can no longer repro this issue.


Content Length Missing Fix

There have been several issues raised concering the failure of FileUpload. The issue stems from the fact that we did not include an Override on the contentLength method on the RequestBody custom constructor when translating a RequestInformation object to an Okhttp Request object. I have also added a property on RequestInformation that is set whenever the content property is set on the RequestInformation object.  While we did include a content-length header it seems to also be a requirement that this property is set on the RequestBody otherwise we will receive an error stating that the 'content length is unknown'.
This will lead to version 1.0.3

I have refactored the code to utilize Okhttp's method RequestBody.create(Byte[], MediaType)
Using the functionality made available in Compatability.readAllBytes[] we can convert the inputStream to a byte array which we then pass to the create function, this removes the need to Overwrite any of the methods and rather use OkHttp's native implementation. Further, by converting the input stream to a byte[] array we should be able to more reliably get the length of the stream without using the available method which @andreaTP pointed out can have unwanted affects if the inputStream does not correctly implement the method. I have wrapped the ioException in a runtime exception, though that is temporary as I would like to hear everyone's thoughts as to how best we should handle this exception.

With this solution, is it no longer necessary to know the length of the InputStream in advance? The background is that in my program I first write the InputStream into a ByteArray to determine the final length, which I do not know, because I get the data from different data sources.
So far I have to set the length in the "DriveItemUploadableProperties".
If now the OkHttp method does the same, I have a doubling of the data in the memory which is not exactly resource-saving.

Hooray, it works :-)

Unfortunately I have to take back my Hooray :-(
The following error occurs with large files.
Can't write 'testfolder/jdk1.6.0_45.tgz' Range [5242880, 5242880 + 5242880) out of bounds for length 5242880
I am setting the size of the File at driveItemUploadableProperties

Ok, This is my Test code.
I have two issues with this code.

If I use the tempFilePath and the Data is smaller 4M, the method "sendPrimitive" is running on a Exception under windows "the process cannot access the file because it is being used by another process" It works well with the ByteArray tempBuffer.
If the file is larger than 4M I got the error "Can't write 'testfolder/jdk1.6.0_45.tgz' Range [5242880, 5242880 + 5242880) out of bounds for length 5242880"

public void put(final OFSFile<?> ofsFile, final String destination, final InputStream fis) throws IOException {
	try {
		connect();
	} catch (InterruptedException e) {
		throw new IOException("Interrupted");
	}
	Drive drive = this.getDrive();
	if (drive == null) {
		throw new IOException("Drive is empty");
	}
	Path tempFilePath = null;
	long streamSize = 0;
	byte[] tempBuffer = null;
	if (this.isTempFileUse()) {
		tempFilePath = Files.createTempFile("vec", ".tmp");
		try {
			Files.copy(fis, tempFilePath);
			streamSize = Files.size(tempFilePath);
		} catch (Exception e) {
			log.error("[put] " + this.getSessionId() + " Can't create tempfile '" + tempFilePath.getFileName()
					+ "' " + e.getMessage());
			throw new IOException("Can't create tempfile '" + tempFilePath.getFileName() + "' " + e.getMessage());
		} finally {
			fis.close();
		}
		streamSize = Files.size(tempFilePath);
	} else {
		tempBuffer = IOUtils.toByteArray(fis);
		streamSize = tempBuffer.length;
	}
	InputStream inputstream = null;
	try {
		if (this.isTempFileUse()) {
			inputstream = Files.newInputStream(tempFilePath, java.nio.file.StandardOpenOption.READ);
		} else {
			inputstream = new ByteArrayInputStream(tempBuffer);
		}
		IProgressCallback progressCallback = new IProgressCallback() {
			@Override
			public void report(final long current, final long max) {
				log.debug(String.format("Uploaded %d bytes of %d total bytes", current, max));
			}
		};
		if (streamSize < 4194304) {
			RequestInformation requestInformation = graphClient.drives().byDriveId(drive.getId()).items()
					.byDriveItemId("root:/" + destination + ":").content().toPutRequestInformation(inputstream);
			URI uriIncludesConflictBehavior = new URI(
					requestInformation.getUri().toString() + "?@microsoft.graph.conflictBehavior=replace");
			requestInformation.setUri(uriIncludesConflictBehavior);
			graphClient.getRequestAdapter().sendPrimitive(requestInformation, null, InputStream.class);
		} else {

			DriveItemUploadableProperties driveItemUploadableProperties = new DriveItemUploadableProperties();
			driveItemUploadableProperties.setName(FilenameUtils.getName(destination));
			driveItemUploadableProperties.setFileSize(streamSize);

			Map<String, Object> additionalData = new HashMap<>();
<EMAIL_ADDRESS>"replace");
			driveItemUploadableProperties.setAdditionalData(additionalData);

			Map<String, Object> commitData = new HashMap<>();
			commitData.put("deferCommit", false);

			CreateUploadSessionPostRequestBody uploadSessionPostRequestBody = new CreateUploadSessionPostRequestBody();
			//uploadSessionPostRequestBody.setAdditionalData(commitData);
			uploadSessionPostRequestBody.setItem(driveItemUploadableProperties);

			UploadSession uploadSession = null;
			try {
				RequestInformation test = graphClient.drives().byDriveId(drive.getId()).items()
						.byDriveItemId("root:/" + destination + ":").createUploadSession()
						.toPostRequestInformation(uploadSessionPostRequestBody);
				String xx = IOUtils.toString(test.content, StandardCharsets.UTF_8);

				uploadSession = graphClient.drives().byDriveId(drive.getId()).items()
						.byDriveItemId("root:/" + destination + ":").createUploadSession()
						.post(uploadSessionPostRequestBody);
			} catch (ApiException gse) {
				if (gse.getResponseStatusCode() == 404) {

				}
			}

			LargeFileUploadTask<DriveItemUploadableProperties> uploadTask = new LargeFileUploadTask<>(
					graphClient.getRequestAdapter(), uploadSession, inputstream, streamSize,
					DriveItemUploadableProperties::createFromDiscriminatorValue);

			try {
				UploadResult<DriveItemUploadableProperties> uploadResult = uploadTask
						.upload(this.getRetry() <= 0 ? 5 : this.getRetry(),progressCallback);
				if (uploadResult.isUploadSuccessful()) {
					log.info("[put] " + this.getSessionId() + "finished. File '" + destination
							+ "' succcessfully written");
				}
			} catch (ApiException | InterruptedException exception) {
				log.error("[put] " + this.getSessionId() + "Exception :" + exception.getMessage());
				exception.printStackTrace();
			}
		}
	} catch (Exception e) {
		log.error("[put] " + this.getSessionId() + " Can't write '" + destination + "' " + e.getMessage());
		throw new IOException("Can't write '" + destination + "' " + e.getMessage());
	} finally {
		if (tempFilePath != null) {
			Files.delete(tempFilePath);
		}
		if (inputstream != null) {
			inputstream.close();
		}
		tempBuffer = null;
	}
	return;
}


Update tutorial on SIFT

close #752

I have an issue when trying the tutorial.
ocl is returned as None line
But the unit test of the addition succeeded so I am not sure it came from my openCl installation.
The error I get is :
/usr/local/lib/python3.5/site-packages/silx/image/sift/plan.py in init(self, shape, dtype, devicetype, template, profile, device, PIX_PER_KP, max_workgroup_size, context, init_sigma)
177         else:
178             if device is None:
--> 179                 self.device = ocl.select_device(type=devicetype, memory=self.memory, best=True)
180                 if self.device is None:
181                     self.device = ocl.select_device(memory=self.memory, best=True)
AttributeError: 'NoneType' object has no attribute 'select_device'
At leas this shouldn't raise a NoneType error ?

Seems that it is working now...

LGTM


feature request: add error return value to Translate()

Translate() does not currently return an error, but there are cases in which it may panic, so we should return an error when issues are encountered.
https://github.com/grafana/thema/blob/e1d0481fa785f07a2aadac64d848e11abe5e83b6/instance.go#L152

Could you provide any specific example to reproduce this issue, please? 🙏🏻

Another case when Translate() panics is if there are no lenses defined:
    /github.com/grafana/thema/translate.cue:104:31```

That specific issue is similar to what I referenced https://github.com/grafana/thema/issues/152 (though when I opened that issue I wasn't getting a panic, just silent failure - I'm not sure what was different but I'll include a repro if it comes up again)

if there are no lenses defined:

yup, it's another invariant that needs checking. "Lens completeness" is its whole own invariant area. I'm guessing we'll be able to write checkers in stages. From where we are now, the following two checks are clearly necessary (but not sufficient):

In lenses, there must exist exactly one lens for each expected pair of version numbers
In each lens result, there must exist at least one "assignment" for every field in the to schema? (handwave handwave optional fields)


Apart from EdgeRemover, is there a default Windows app remover?

Run in PowerShell as an administrator
Get-AppxPackage | ?{ !$_.NonRemovable -and !$_.IsFrameWork} | Out-GridView -PassThru | Remove-AppxPackage

Did Out-GridView -PassThru show this window in your screenshot?
Can it be filtered manually by mouse again, such as to keep something still needed, then click OK will run Remove-AppXPackage?


No Redis telemetry from Agent 6

Output of the info page (if this is a bug)
Since the https://help.datadoghq.com/hc/en-us/articles/203764635-Agent-Status-and-Information link no longer works (in the issue template) i created a flare instead
Your logs were successfully uploaded. For future reference, your internal case id is 154809

Describe what happened:
I'm not getting any Redis telemetry after upgrading to 6.x agent
2018-07-05 09:10:33 UTC | WARN | (check.go:244 in Configure) | could not get a check instance with the new api: __init__() takes at least 4 arguments (4 given)
2018-07-05 09:10:33 UTC | WARN | (check.go:245 in Configure) | trying to instantiate the check with the old api, passing agentConfig to the constructor
2018-07-05 09:10:33 UTC | WARN | (check.go:270 in Configure) | passing `agentConfig` to the constructor is deprecated, please use the `get_config` function from the 'datadog_agent' package (redisdb).
2018-07-05 09:10:33 UTC | WARN | (check.go:244 in Configure) | could not get a check instance with the new api: __init__() takes at least 4 arguments (4 given)
2018-07-05 09:10:33 UTC | WARN | (check.go:245 in Configure) | trying to instantiate the check with the old api, passing agentConfig to the constructor
2018-07-05 09:10:33 UTC | WARN | (check.go:270 in Configure) | passing `agentConfig` to the constructor is deprecated, please use the `get_config` function from the 'datadog_agent' package (redisdb).
2018-07-05 09:10:33 UTC | WARN | (check.go:244 in Configure) | could not get a check instance with the new api: __init__() takes at least 4 arguments (4 given)
2018-07-05 09:10:33 UTC | WARN | (check.go:245 in Configure) | trying to instantiate the check with the old api, passing agentConfig to the constructor
2018-07-05 09:10:33 UTC | WARN | (check.go:270 in Configure) | passing `agentConfig` to the constructor is deprecated, please use the `get_config` function from the 'datadog_agent' package (redisdb).
2018-07-05 09:10:33 UTC | WARN | (check.go:244 in Configure) | could not get a check instance with the new api: __init__() takes at least 4 arguments (4 given)
2018-07-05 09:10:33 UTC | WARN | (check.go:245 in Configure) | trying to instantiate the check with the old api, passing agentConfig to the constructor
2018-07-05 09:10:33 UTC | WARN | (check.go:270 in Configure) | passing `agentConfig` to the constructor is deprecated, please use the `get_config` function from the 'datadog_agent' package (redisdb).
(...)
2018-07-05 09:22:14 UTC | INFO | (processes.go:16 in getProcesses) | Error fetching info for pid 11792: user: unknown userid 999
2018-07-05 09:22:14 UTC | INFO | (processes.go:16 in getProcesses) | Error fetching info for pid 11974: user: unknown userid 999
2018-07-05 09:22:14 UTC | INFO | (processes.go:16 in getProcesses) | Error fetching info for pid 12329: user: unknown userid 999
2018-07-05 09:22:14 UTC | INFO | (processes.go:16 in getProcesses) | Error fetching info for pid 12630: user: unknown userid 999

Describe what you expected:
No warnings / errors
Steps to reproduce the issue:
My /etc/datadog-agent/conf.d/redisdb.d/conf.yaml
---
instances:
- host: <IP_ADDRESS>
  port: 6383
  tags:
  - service:api-geo-redis
- host: <IP_ADDRESS>
  port: 6386
  tags:
  - service:api-redis
- host: <IP_ADDRESS>
  port: 6385
  tags:
  - service:seatgeek-redis
- host: <IP_ADDRESS>
  port: 6379
  tags:
  - service:sears-redis

Additional environment details (Operating System, Cloud provider, etc):
Distributor ID:	Ubuntu
Description:	Ubuntu 14.04.5 LTS
Release:	14.04
Codename:	trusty

ii  datadog-agent                               1:6.3.1-1                                  amd64        Datadog Monitoring Agent

$ datadog-agent version
Agent 6.3.1 - Commit: 156bed9 - Serialization version: 4.7

2018-07-05 09:22:14 UTC | INFO | (processes.go:16 in getProcesses) | Error fetching info for pid 11792: user: unknown userid 999
2018-07-05 09:22:14 UTC | INFO | (processes.go:16 in getProcesses) | Error fetching info for pid 11974: user: unknown userid 999
2018-07-05 09:22:14 UTC | INFO | (processes.go:16 in getProcesses) | Error fetching info for pid 12329: user: unknown userid 999
2018-07-05 09:22:14 UTC | INFO | (processes.go:16 in getProcesses) | Error fetching info for pid 12630: user: unknown userid 999

My redis instances do run with this uid (inside docker) - could it be related to me not getting any telemetry?

This appears to have been solved by configuring the correct host and ports in the redis integration's configuration. Closing.
Feel free to open another support case if this occurs again.

@jippi after solving this, do you still get these warnings? I'm not talking about errors, just warnings


Tool Builder - Self Check Responses (FRONT-END)

Notion ticket link

[Tool Builder] Self Check Response

Implementation description

Used array of breakpoints
Each breakpoint has a component attached to it
The component is created using the data from the breakpoint data in the array
Creates the new breakpoint by setting the lower as the last breakpoint's upper + 1

Steps to test

Open http://localhost:3000/admin/dashboard/tools
Create or edit an existing tool
Go to Self Check tab
Click Response
Explore! You can try to add new breakpoints, change the screen size, set the min and max of the breakpoints, add questions, etc. Note that you will have to create questions for the self check that are either multiple choice or multiselect to be able to play around with this functionality.

NOTE: the back-end will be done in another PR.

What should reviewers focus on?

Error checking
Functions to compute the selected questions titles... Should I use an array with the useState hook to keep track of the number for the questions that are added? Would have to sort these though Just realized that I still have to sort them (or add them in sorted order)..
Any other suggestions to make the code better! :)
Let me know if there's something I forgot with this ticket!

Checklist

[x] My PR name is descriptive and in imperative tense
[x] My commit messages are descriptive and in imperative tense. My commits are atomic and trivial commits are squashed or fixup'd into non-trivial commits
[x] I have run the appropriate linter(s)
[x] I have requested a review from the PL, as well as other devs who have background knowledge on this PR or who will be building on top of this PR

Hey @ChinemeremChigbo @jennifer-lu @chamod-gamage, I fixed up the bugs and added the suggestions you guys had! Feel free to take a look again :) (Hopefully it'll be all good this time).

I have a product-related question that maybe @chamod-gamage can also answer. The minimum score for multiple choices seems to be the lowest option value. Would using 0 instead be better since a user might not answer the question?

@jennifer-lu talked with @chamod-gamage and Jenna about this. Seems like all the questions are required so I just left it like it is.
Also added a delete button not part of the designs but discussed with PMs.

@jennifer-lu @chamod-gamage just thought I should remind you guys about this PR! please review it whenever you get the time :)!


Ability to specify multiple parsing formats to DatePicker

What problem does this feature solve?
Since @onlyann described it really well in ant-design/ant-design#13148, I'm going to go ahead and copy his description:
When a user enters a date manually, they have to enter it in the exact same format than the format used to display the date.
It would be useful to be able to support parsing the entered date using a list of accepted formats and to use one of the formats for display.
i.e. a user can enter a date in the format DD/MM/YYYY or D/M/YY . Both are accepted. Once focus is lost, the date is reformatted in the format DD/MM/YYYY.
What does the proposed API look like?
<nz-date-picker [nzFormat]="['DD/MM/YYYY','D/M/YY']" ...>

When an array is provided, the first value is used for rendering the date while all values are accepted for parsing the input value.

How does (or should) this behave with multiple, conflicting formats, such as DD/MM/YYYY and MM/DD/YYYY?

Since the original issue proposed a solution using moment, it should probably work analogously:

Prefer formats resulting in valid dates over invalid ones.
Prefer formats that parse more of the string than less and use more of the format than less, i.e. prefer stricter parsing.
Prefer formats earlier in the array than later.

(source: https://momentjs.com/docs/#/parsing/string-formats/)


received critical error from subsystem: error getting confirmation: EOF

2023-10-25 15:44:05.443 [INF] RPCS: Starting RPC Server
2023-10-25 15:44:05.443 [INF] RPCS: RPC server listening on <IP_ADDRESS>:10029
2023-10-25 15:44:05.444 [INF] CONF: Starting HTTPS REST proxy listener at <IP_ADDRESS>:8089
2023-10-25 15:44:05.444 [INF] RPCS: gRPC proxy started at <IP_ADDRESS>:8089
2023-10-25 15:44:05.445 [INF] SRVR: Taproot Asset Daemon fully active!
2023-10-25 15:44:05.446 [ERR] SRVR: Shutting down because error in main method: received critical error from subsystem: error getting confirmation: EOF
2023-10-25 15:44:05.446 [INF] RPCS: Stopping RPC Server
2023-10-25 15:44:05.446 [INF] SRVR: Shutdown complete
received critical error from subsystem: error getting confirmation: EOF

Thanks for the report. It looks like the lnd node the daemon is connected to was restarted. Is that the case? Then this is expected.

We have a similar situation today. We run tapd within docker enviroment on linux and the lnd is still up and running.

Interesting, sounds like tapd was stuck trying something in a loop. Do you still have that log and see a repeating pattern of what it was doing?
Was the container maybe OOM killed by docker?

{"log":" },\n","stream":"stdout","time":"2023-10-26T08:01:00.352457078Z"}
{"log":" (universe.BaseRoot) {\n","stream":"stdout","time":"2023-10-26T08:01:00.352459978Z"}
{"log":"  ID: (universe.Identifier) issuance-c07641b7fd65736ed6950ab18d6749f3328cc187c0ca1d2f4ab0186a69f2108a,\n","stream":"stdout","time":"2023-10-26T08:01:00.352462878Z"}
{"log":"  Node: (*mssmt.BranchNode)(0xc00554aba0)({\n","stream":"stdout","time":"2023-10-26T08:01:00.352465878Z"}
{"log":"   nodeHash: (*mssmt.NodeHash)(0xc01103e900)((len=32 cap=32) 73e0a4f555c657e865020c445977cf552ea223fcc1ff72a2ed44650cf24eba20),\n","stream":"stdout","time":"2023-10-26T08:01:00.352468878Z"}
{"log":"   sum: (*uint64)(0xc039cd66f8)(1),\n","stream":"stdout","time":"2023-10-26T08:01:00.352471978Z"}
{"log":"   Left: (mssmt.Node) \u003cnil\u003e,\n","stream":"stdout","time":"2023-10-26T08:01:00.352477678Z"}
{"log":"   Right: (mssmt.Node) \u003cnil\u003e\n","stream":"stdout","time":"2023-10-26T08:01:00.352480778Z"}
{"log":"  }),\n","stream":"stdout","time":"2023-10-26T08:01:00.352483778Z"}
{"log":"  AssetName: (string) "",\n","stream":"stdout","time":"2023-10-26T08:01:00.352486678Z"}
{"log":"  GroupedAssets: (map[asset.ID]uint64) \u003cnil\u003e\n","stream":"stdout","time":"2023-10-26T08:01:00.352489678Z"}
This text is repeated again and again in the log.

Thanks, that's very helpful. This looks like a stray spew.Sdump() call that attempts to dump a whole MS-SMT tree which would also explain the high CPU usage. We'll go look for it. What's the log level (--debuglevel=?) you're using?

Our log level is "debuglevel=trace"

I got the full log from @TaprootFreak in Slack. This is actually the log message that logs the full tree after a sync event. Until we adjust this, it can be avoided by running with --debuglevel=debug for now.

Other information that may be important:
I have set the log level to "info" and run the tapd for several hours now. The VM load went back up to 6-7 times overload. While doing this I also saw that the tapd is running at 100%-120% CPU and also the lnd node is running at 100%-120% CPU.
After I stopped the tapd Docker image, the VM load is back to normal and the lnd node is back to about 20% CPU.

That's weird indeed. Could you enable profiling (--profile=localhost:6060) and pull a CPU profile for about 1 minute (/debug/pprof/profile?seconds=60) please?
That would be super useful to see what's going on.

OK, I have started the docker image with the (--profile) option (tapd --configfile=/home/tap/tapd.conf --profile=localhost:6060) and tried to the "debug" information but get the following response:
--2023-10-27 08:43:00--  http://localhost:6060/debug/pprof/profile?seconds=60
Resolving localhost (localhost)... <IP_ADDRESS>
Connecting to localhost (localhost)|<IP_ADDRESS>|:6060... connected.
HTTP request sent, awaiting response... No data received.
Retrying.

Or did you mean something else by (/debug/pprof/profile?seconds=60)?

I saw during the test that the load was OK at the beginning. After some time, many messages appeared in the log and the load went up.
This is the log information:
2023-10-27 08:49:20.253 [INF] UNIV: Root for issuance-80c54d7861162b3809d757f19fe3c24d52bb5a1dea268fbe15961748276ba5d8 matches, no sync needed
2023-10-27 08:49:20.255 [INF] UNIV: Root for issuance-38d105c6072dce42415c957d4407781b557dffa2d2c37a237f70a8646ef7192f matches, no sync needed
2023-10-27 08:49:20.315 [INF] UNIV: Root for issuance-6b14d62904e3467556d08a1070d426352e2087dbfdfc145cf51103bfa81eb0cc matches, no sync needed
2023-10-27 08:49:20.324 [INF] UNIV: Root for issuance-c560fa8678e4325fd8bcac941ccc0ac301ed72b654766687d277269d6a5331da matches, no sync needed
2023-10-27 08:49:20.334 [INF] UNIV: Root for issuance-becd2ec1f0f856dad7ce7e9c8e48135f9abfcb7edeee8a20bd05b91501a25e59 matches, no sync needed
2023-10-27 08:49:20.344 [INF] UNIV: Root for issuance-22ca29b5ea0c917275c8b8cfc143a2e3e898ef655623bcd3f1b0b7f7ccc0aef4 matches, no sync needed
2023-10-27 08:49:20.394 [INF] UNIV: Root for issuance-02274ef06bb22621e88395e1497064b655554e575c1a5500c782e85737caa11d matches, no sync needed
2023-10-27 08:49:20.405 [INF] UNIV: Root for issuance-234e8f43e15ad74028145dcc960cc825f7c8d5d598352371f1f085b8e94e18bd matches, no sync needed
2023-10-27 08:49:20.424 [INF] UNIV: Root for issuance-3b5ceb4ff23f534977cc093b6b3844aa04b9243180891fb5a217c089e95b89ed matches, no sync needed
2023-10-27 08:49:20.425 [INF] UNIV: UniverseRoot(issuance-c148f9709e620988ad8945c94802f07144f12c2b49ed6c8b994207ade62bd02b) diverges, performing leaf diff...
2023-10-27 08:49:21.991 [INF] UNIV: UniverseRoot(issuance-c148f9709e620988ad8945c94802f07144f12c2b49ed6c8b994207ade62bd02b): diff_size=1436
2023-10-27 08:49:41.898 [INF] UNIV: UniverseRoot(issuance-c148f9709e620988ad8945c94802f07144f12c2b49ed6c8b994207ade62bd02b): Inserting 200 new leaves (200 of 1436)
2023-10-27 08:49:41.899 [INF] UNIV: Verifying 200 new proofs for insertion into Universe
2023-10-27 08:49:41.899 [INF] UNIV: Inserting 0 verified group anchor proofs into Universe
2023-10-27 08:50:59.454 [INF] UNIV: Inserting 200 verified proofs into Universe

There are many lines "[INF] UNIV: Root for issuance-..." reported

It depends on where you run the pprof command. If that is on the docker host, then you might also need to expose the port 6060 on the tapd container. But yes, that URL is what I'm interested in.
The log also looks useful. Could you check if this specific asset is synced multiple times?
Meaning, does this exact line appear very often in the log?
UniverseRoot(issuance-c148f9709e620988ad8945c94802f07144f12c2b49ed6c8b994207ade62bd02b) diverges, performing

We do see a LOT of sync events on the server side, so maybe the client is running amok for some reason during sync.

Here is the profile output:
profile-60s.gz

There are currently all "UniverseRoot" entries:
{"log":"2023-10-27 08:48:49.501 [INF] UNIV: UniverseRoot(issuance-4a0268c6dc8ffe86a441712880eb2089d8564d2bb0026b45a0a7b52a103a9219) diverges, performing leaf diff...\n","stream":"stdout","time":"2023-10-27T08:48:49.511323263Z"}
{"log":"2023-10-27 08:48:51.870 [INF] UNIV: UniverseRoot(issuance-4a0268c6dc8ffe86a441712880eb2089d8564d2bb0026b45a0a7b52a103a9219): diff_size=7009\n","stream":"stdout","time":"2023-10-27T08:48:51.870693975Z"}
{"log":"2023-10-27 08:49:10.738 [INF] UNIV: UniverseRoot(issuance-4a0268c6dc8ffe86a441712880eb2089d8564d2bb0026b45a0a7b52a103a9219): Inserting 200 new leaves (200 of 7009)\n","stream":"stdout","time":"2023-10-27T08:49:10.745026885Z"}
{"log":"2023-10-27 08:49:20.425 [INF] UNIV: UniverseRoot(issuance-c148f9709e620988ad8945c94802f07144f12c2b49ed6c8b994207ade62bd02b) diverges, performing leaf diff...\n","stream":"stdout","time":"2023-10-27T08:49:20.425503034Z"}
{"log":"2023-10-27 08:49:21.991 [INF] UNIV: UniverseRoot(issuance-c148f9709e620988ad8945c94802f07144f12c2b49ed6c8b994207ade62bd02b): diff_size=1436\n","stream":"stdout","time":"2023-10-27T08:49:21.991443297Z"}
{"log":"2023-10-27 08:49:41.898 [INF] UNIV: UniverseRoot(issuance-c148f9709e620988ad8945c94802f07144f12c2b49ed6c8b994207ade62bd02b): Inserting 200 new leaves (200 of 1436)\n","stream":"stdout","time":"2023-10-27T08:49:41.898444536Z"}
{"log":"2023-10-27 09:00:16.663 [INF] UNIV: UniverseRoot(issuance-d5393f523e21a0ab017c1a257c5aba8701d5a5da026a600e2384c93751f36c86) diverges, performing leaf diff...\n","stream":"stdout","time":"2023-10-27T09:00:16.664096263Z"}
{"log":"2023-10-27 09:00:16.834 [INF] UNIV: UniverseRoot(issuance-d5393f523e21a0ab017c1a257c5aba8701d5a5da026a600e2384c93751f36c86): diff_size=1\n","stream":"stdout","time":"2023-10-27T09:00:16.834714291Z"}
{"log":"2023-10-27 09:00:17.045 [INF] UNIV: UniverseRoot(issuance-d5393f523e21a0ab017c1a257c5aba8701d5a5da026a600e2384c93751f36c86): Inserting 1 new leaves (1 of 1)\n","stream":"stdout","time":"2023-10-27T09:00:17.054479955Z"}
{"log":"2023-10-27 09:00:21.920 [INF] UNIV: UniverseRoot(issuance-997e28940f643b41a3d937bcc842b01c3ba863d66dbd365db015d62a79dd32fc) diverges, performing leaf diff...\n","stream":"stdout","time":"2023-10-27T09:00:21.920766127Z"}
{"log":"2023-10-27 09:00:23.736 [INF] UNIV: UniverseRoot(issuance-997e28940f643b41a3d937bcc842b01c3ba863d66dbd365db015d62a79dd32fc): diff_size=3563\n","stream":"stdout","time":"2023-10-27T09:00:23.742452012Z"}
{"log":"2023-10-27 09:00:45.795 [INF] UNIV: UniverseRoot(issuance-d5393f523e21a0ab017c1a257c5aba8701d5a5da026a600e2384c93751f36c86): Inserted 1 new leaves (1 of 1)\n","stream":"stdout","time":"2023-10-27T09:00:45.795495677Z"}
{"log":"2023-10-27 09:00:45.813 [INF] UNIV: Universe sync for UniverseRoot(issuance-d5393f523e21a0ab017c1a257c5aba8701d5a5da026a600e2384c93751f36c86) complete, 1 new leaves inserted\n","stream":"stdout","time":"2023-10-27T09:00:45.814041305Z"}
{"log":"2023-10-27 09:00:45.814 [INF] UNIV: Sync for UniverseRoot(issuance-d5393f523e21a0ab017c1a257c5aba8701d5a5da026a600e2384c93751f36c86) complete!\n","stream":"stdout","time":"2023-10-27T09:00:45.814178906Z"}
{"log":"2023-10-27 09:00:49.997 [INF] UNIV: UniverseRoot(issuance-c148f9709e620988ad8945c94802f07144f12c2b49ed6c8b994207ade62bd02b) diverges, performing leaf diff...\n","stream":"stdout","time":"2023-10-27T09:00:50.002269106Z"}
{"log":"2023-10-27 09:00:50.891 [INF] UNIV: UniverseRoot(issuance-c148f9709e620988ad8945c94802f07144f12c2b49ed6c8b994207ade62bd02b): diff_size=1436\n","stream":"stdout","time":"2023-10-27T09:00:50.90012705Z"}
{"log":"2023-10-27 09:00:54.570 [INF] UNIV: UniverseRoot(issuance-997e28940f643b41a3d937bcc842b01c3ba863d66dbd365db015d62a79dd32fc): Inserting 200 new leaves (200 of 3563)\n","stream":"stdout","time":"2023-10-27T09:00:54.572506621Z"}
{"log":"2023-10-27 09:01:14.258 [INF] UNIV: UniverseRoot(issuance-c148f9709e620988ad8945c94802f07144f12c2b49ed6c8b994207ade62bd02b): Inserting 200 new leaves (200 of 1436)\n","stream":"stdout","time":"2023-10-27T09:01:14.259115111Z"}
{"log":"2023-10-27 09:08:40.253 [INF] UNIV: UniverseRoot(issuance-997e28940f643b41a3d937bcc842b01c3ba863d66dbd365db015d62a79dd32fc) diverges, performing leaf diff...\n","stream":"stdout","time":"2023-10-27T09:08:40.253619957Z"}
{"log":"2023-10-27 09:08:41.809 [INF] UNIV: UniverseRoot(issuance-997e28940f643b41a3d937bcc842b01c3ba863d66dbd365db015d62a79dd32fc): diff_size=3563\n","stream":"stdout","time":"2023-10-27T09:08:41.809705245Z"}
{"log":"2023-10-27 09:08:56.353 [INF] UNIV: UniverseRoot(issuance-87225111b8571dcd09e00116238f61c71091485538801b2d6b6457a75119861e) diverges, performing leaf diff...\n","stream":"stdout","time":"2023-10-27T09:08:56.353860697Z"}
{"log":"2023-10-27 09:08:57.068 [INF] UNIV: UniverseRoot(issuance-87225111b8571dcd09e00116238f61c71091485538801b2d6b6457a75119861e): diff_size=3051\n","stream":"stdout","time":"2023-10-27T09:08:57.068944704Z"}
{"log":"2023-10-27 09:09:06.524 [INF] UNIV: UniverseRoot(issuance-997e28940f643b41a3d937bcc842b01c3ba863d66dbd365db015d62a79dd32fc): Inserting 200 new leaves (200 of 3563)\n","stream":"stdout","time":"2023-10-27T09:09:06.526916839Z"}
{"log":"2023-10-27 09:09:15.968 [INF] UNIV: UniverseRoot(issuance-87225111b8571dcd09e00116238f61c71091485538801b2d6b6457a75119861e): Inserting 200 new leaves (200 of 3051)\n","stream":"stdout","time":"2023-10-27T09:09:15.974845845Z"}
{"log":"2023-10-27 09:19:06.151 [INF] UNIV: UniverseRoot(issuance-4ebbd5a0557e9b682dd4670378b5f938a44882fe63aaff208611477981752856) diverges, performing leaf diff...\n","stream":"stdout","time":"2023-10-27T09:19:06.158160308Z"}
{"log":"2023-10-27 09:19:06.349 [INF] UNIV: UniverseRoot(issuance-4ebbd5a0557e9b682dd4670378b5f938a44882fe63aaff208611477981752856): diff_size=1\n","stream":"stdout","time":"2023-10-27T09:19:06.349170074Z"}
{"log":"2023-10-27 09:19:06.539 [INF] UNIV: UniverseRoot(issuance-4ebbd5a0557e9b682dd4670378b5f938a44882fe63aaff208611477981752856): Inserting 1 new leaves (1 of 1)\n","stream":"stdout","time":"2023-10-27T09:19:06.539691035Z"}
{"log":"2023-10-27 09:19:20.941 [INF] UNIV: UniverseRoot(issuance-c148f9709e620988ad8945c94802f07144f12c2b49ed6c8b994207ade62bd02b) diverges, performing leaf diff...\n","stream":"stdout","time":"2023-10-27T09:19:20.949550421Z"}
{"log":"2023-10-27 09:19:22.563 [INF] UNIV: UniverseRoot(issuance-c148f9709e620988ad8945c94802f07144f12c2b49ed6c8b994207ade62bd02b): diff_size=1436\n","stream":"stdout","time":"2023-10-27T09:19:22.563740581Z"}
{"log":"2023-10-27 09:19:29.727 [INF] UNIV: UniverseRoot(issuance-4ebbd5a0557e9b682dd4670378b5f938a44882fe63aaff208611477981752856): Inserted 1 new leaves (1 of 1)\n","stream":"stdout","time":"2023-10-27T09:19:29.727514912Z"}
{"log":"2023-10-27 09:19:29.727 [INF] UNIV: Universe sync for UniverseRoot(issuance-4ebbd5a0557e9b682dd4670378b5f938a44882fe63aaff208611477981752856) complete, 1 new leaves inserted\n","stream":"stdout","time":"2023-10-27T09:19:29.727605713Z"}
{"log":"2023-10-27 09:19:29.727 [INF] UNIV: Sync for UniverseRoot(issuance-4ebbd5a0557e9b682dd4670378b5f938a44882fe63aaff208611477981752856) complete!\n","stream":"stdout","time":"2023-10-27T09:19:29.727680114Z"}
{"log":"2023-10-27 09:19:37.867 [INF] UNIV: UniverseRoot(issuance-87225111b8571dcd09e00116238f61c71091485538801b2d6b6457a75119861e) diverges, performing leaf diff...\n","stream":"stdout","time":"2023-10-27T09:19:37.867304619Z"}
{"log":"2023-10-27 09:19:39.203 [INF] UNIV: UniverseRoot(issuance-87225111b8571dcd09e00116238f61c71091485538801b2d6b6457a75119861e): diff_size=3051\n","stream":"stdout","time":"2023-10-27T09:19:39.203177317Z"}
{"log":"2023-10-27 09:19:40.287 [INF] UNIV: UniverseRoot(issuance-c148f9709e620988ad8945c94802f07144f12c2b49ed6c8b994207ade62bd02b): Inserting 200 new leaves (200 of 1436)\n","stream":"stdout","time":"2023-10-27T09:19:40.287997872Z"}
{"log":"2023-10-27 09:19:56.523 [INF] UNIV: UniverseRoot(issuance-87225111b8571dcd09e00116238f61c71091485538801b2d6b6457a75119861e): Inserting 200 new leaves (200 of 3051)\n","stream":"stdout","time":"2023-10-27T09:19:56.523940192Z"}
{"log":"2023-10-27 09:28:39.697 [INF] UNIV: UniverseRoot(issuance-97ff9989da600a2960a5b6f6a1da70d64bca6f33c0c2b5464683fcf58d68d0d2) diverges, performing leaf diff...\n","stream":"stdout","time":"2023-10-27T09:28:39.705772702Z"}
{"log":"2023-10-27 09:28:39.876 [INF] UNIV: UniverseRoot(issuance-97ff9989da600a2960a5b6f6a1da70d64bca6f33c0c2b5464683fcf58d68d0d2): diff_size=1\n","stream":"stdout","time":"2023-10-27T09:28:39.876431064Z"}
{"log":"2023-10-27 09:28:40.046 [INF] UNIV: UniverseRoot(issuance-97ff9989da600a2960a5b6f6a1da70d64bca6f33c0c2b5464683fcf58d68d0d2): Inserting 1 new leaves (1 of 1)\n","stream":"stdout","time":"2023-10-27T09:28:40.046900324Z"}
{"log":"2023-10-27 09:28:49.292 [INF] UNIV: UniverseRoot(issuance-997e28940f643b41a3d937bcc842b01c3ba863d66dbd365db015d62a79dd32fc) diverges, performing leaf diff...\n","stream":"stdout","time":"2023-10-27T09:28:49.292765389Z"}
{"log":"2023-10-27 09:28:50.727 [INF] UNIV: UniverseRoot(issuance-997e28940f643b41a3d937bcc842b01c3ba863d66dbd365db015d62a79dd32fc): diff_size=3563\n","stream":"stdout","time":"2023-10-27T09:28:50.728164003Z"}
{"log":"2023-10-27 09:29:00.153 [INF] UNIV: UniverseRoot(issuance-97ff9989da600a2960a5b6f6a1da70d64bca6f33c0c2b5464683fcf58d68d0d2): Inserted 1 new leaves (1 of 1)\n","stream":"stdout","time":"2023-10-27T09:29:00.15348371Z"}
{"log":"2023-10-27 09:29:00.153 [INF] UNIV: Universe sync for UniverseRoot(issuance-97ff9989da600a2960a5b6f6a1da70d64bca6f33c0c2b5464683fcf58d68d0d2) complete, 1 new leaves inserted\n","stream":"stdout","time":"2023-10-27T09:29:00.153626811Z"}
{"log":"2023-10-27 09:29:00.153 [INF] UNIV: Sync for UniverseRoot(issuance-97ff9989da600a2960a5b6f6a1da70d64bca6f33c0c2b5464683fcf58d68d0d2) complete!\n","stream":"stdout","time":"2023-10-27T09:29:00.153711513Z"}
{"log":"2023-10-27 09:29:09.555 [INF] UNIV: UniverseRoot(issuance-87225111b8571dcd09e00116238f61c71091485538801b2d6b6457a75119861e) diverges, performing leaf diff...\n","stream":"stdout","time":"2023-10-27T09:29:09.556195213Z"}
{"log":"2023-10-27 09:29:10.309 [INF] UNIV: UniverseRoot(issuance-87225111b8571dcd09e00116238f61c71091485538801b2d6b6457a75119861e): diff_size=3051\n","stream":"stdout","time":"2023-10-27T09:29:10.317520358Z"}
{"log":"2023-10-27 09:29:17.443 [INF] UNIV: UniverseRoot(issuance-997e28940f643b41a3d937bcc842b01c3ba863d66dbd365db015d62a79dd32fc): Inserting 200 new leaves (200 of 3563)\n","stream":"stdout","time":"2023-10-27T09:29:17.443640413Z"}
{"log":"2023-10-27 09:29:39.043 [INF] UNIV: UniverseRoot(issuance-87225111b8571dcd09e00116238f61c71091485538801b2d6b6457a75119861e): Inserting 200 new leaves (200 of 3051)\n","stream":"stdout","time":"2023-10-27T09:29:39.061923809Z"}

Thanks. Yeah, it looks like it's actually just syncing.
Could you let it run for a while and observe the log? There's a lot to sync (3563, 3051, 1436 proofs each for the three largest assets). Will the CPU calm down once these syncs are completed? (Check the log for Inserting 200 new leaves (XXXX of 3563) where XXXX is close to the final number).
Or will it try over and over again?

OK, I'll let it run for a few hours now and then look at the log data

This is the "Inserting new leaves" extract of the current log:
InsertingNewLeaves.zip

Do you see any other errors or warn logs across the set of logs?

Y'all can run this command to shift sync modes:
  tapcli universe federation config global --proof_type=issuance --allow_insert=false

Then you can insert a local sync config for only the assets you care about.


How to force Background to be behind widgets?

Sorry if a dumb question, new to Rainmeter, but how can I force the background to always be behind the widgets? I got the SysDash skin set up and running great, but when I rebooted, all but CPU Temp were behind the background making them look greyed out. I've simply turned it off for the moment, but it looks so much better with the contrast the background provides.
Thanks for this great skin, I'm loving it!

If you haven't figured it out by now, open the Manager for Rainmeter,, open the SysDash Background to highlight the background.ini file. The settings on the right side should populate, change Position to Bottom.

Problem seems to be fixed, closing issue.


Add a log on renaming field to help future beginner

Hello !
Problem
I was looking for adding a @map or @@map for 10 minutes but when I was doing prisma introspect, it just erase the @map without any information (no warning or error)
Suggested solution
It would be great to have a message that say somethings like
These fields have unknow `@map` column from the previous Prisma schema.
- Model "salesImport", field: "updateDate"

Alternatives
Just say that it remove some field because they were not actual columns
Additional context
update_date            Int
update_date            Int                  @map("updateDate") // don't work but just remove the `@map`
updateDate             Int                  @map("update_date") // that was expected

Thanks a lot
Have a good day :)

Thanks for reporting this, I think I now understand what you mean and am able to reproduce. My more extensive reproduction of a bug caused by this:
If you start with this datamodel and deploy it:
model Simple {
  id          Int @id
  update_date            Int                  @map("updateDate") // don't work but just remove the `@map`
  updateDate             Int                  @map("update_date") // that was expected
}

Then enter this data simple{id: 1, update_date:1, updateDate:10}.

This is a bug since the column data is now matched to a different field.
I'm not sure yet what exactly would be the fix here. I would tend to already deny the initial schema since cross-mapping fields to swap their names sounds dangerous already.

I will explain a lil more.
My db as fields id and update_date (no updateDate In my bdd)
The problem was that when I do this :
model Simple {
  id          Int @id
  update_date            Int                  @map("updateDate")
}

and then introspect, it just remove @map("updateDate") because updateDate isn't a field of my db and write no error/warning message
It's just what works:
model Simple {
  id          Int @id
  updateDate             Int                  @map("update_date")
}

Ah, ok now I understand. Thanks for clarifying this.
Currently our approach when running introspect is the following:

get the state of the db schema
convert that into a new Prisma datamodel
try to detect if there is information in the previous Prisma model that cannot be represented on a db level that is still applicable to the new Prisma datamodel and apply it

In your case of @map information being present in the old datamodel that is now no longer applicable we can not distinguish between the definition in the old datamodel being wrong and you having removed the column in the database before introspecting again. This means if we introduced the warning you are asking for it would also always show if the db schema has changed. I think that would be too noisy and confusing to always produce this warning.
But your report helped to uncover a different edge case bug, so thanks a lot!


Removing references to old product board site and redirecting to roadmap

A microsoft employee must use /azp run to validate using the pipelines below.
WARNING:
Comments made by azure-pipelines bot maybe inaccurate.
Please see pipeline link to verify that the build is being ran.
For status checks on the main branch, please use TransportPackage-Foundation-PR
(https://microsoft.visualstudio.com/ProjectReunion/_build?definitionId=81063&_a=summary)
and run the build against your PR branch with the default parameters.

/azp run


Confusing error message when both an attr descriptor and a property are defined w/ the same name

Not sure that's really fixeable, but it took me a while to detect this bug in my code:
from attr import attributes, attr

@attributes
class Foo(object):
    a = attr()
    @property
    def a(self):
        return "yolo"

Foo("value")

raises
Traceback (most recent call last):
  File "failure.py", line 13, in <module>
    Foo("value")
TypeError: __init__() takes exactly 1 argument (2 given)

¯_(ツ)_/¯
No idea what to do save starting an FAQ…

class SeriousCoordinates(object):

	def __init__(self, x):
		self.x = x

	@property
	def x(self):
		return "sdkjh"

print(SeriousCoordinates(1))

gives
Traceback (most recent call last):
  File "issue30_001.py", line 10, in <module>
    print(SeriousCoordinates(1))
  File "issue30_001.py", line 4, in __init__
    self.x = x
AttributeError: can't set attribute

Maybe here too we can have something similar.

@infinite-Joy this is standard python behavior and not related to attrs at all. The @property decorator is typically used to provide a mechanism for hiding an internal field, and providing a getters and setters to dictate what can and cannot be done with said field. The method name decorated with @property becomes a field name (in your case, SeriousCoordinates.x, which already exists in __init__). Field names generated by the @property-decorator cannot be assigned to directly, which is why an AttributeError is raised.

fixed in #370


Hub&Spoke setup is failing - free subscription quotalimit

Hello together,
thanks for providing such a nice plattform for learning azure stuff. 😄
The setup for the hub&spoke environment is failing because the setup is exceeding the quota for the free subscription. Would it be possible to update the setup-template that the deployment is not failing?

Best regards
Philipp Kosiol

Thanks Philip! Apologies for the slow response.
I've reviewed the code and it looks as if there's only one public IP for the load balancer?
If your subscription has already exhausted the quota of 3 then you could always remove one of the others to get the template to deploy.
Note that you can delete a VM's public IP and it will continue to run and should still be able to access the internet and Azure endpoints.
I'll close this issue.


Auto Create Incident on application Status page when a monitor(s) does down

Feature Request:
Auto Create Incident on application Status page when a monitor(s) does down. Possibly create a custom "Uptime Kuma" notification which does this.
Is it a duplicate question?
I am not seeing it when I search without filters
Is your feature request related to a problem? Please describe.
I think it would be great to auto create incidents when a monitor has been down for X amount of min/X amount of retries
Describe the solution you'd like
Auto Create Incident on application Status page when a monitor(s) does down. Possibly create a custom "Uptime Kuma" notification which does this.
Describe alternatives you've considered
I have Notifications going to discord, but I thought it would be nice for INCs to show up in the status page.
I suppose if there is a published API page, I can use my AppRise instance to accomplish this.
Additional context
N/A

+1
And that will be also an option to choose whether to activate maintenance mode or to create an Incident


[Adding] Middle element of the Singly LInked-list

Hey ,Greeting's of the day
I want to add a new code file which calculates the middle element of the linked list .. to the repository  .i.e .
LearnCPP/P-Problem Statements & Solution/1-Level 1/MiddleElement_Singly_LInkedlist.cpp
........
Plss assign this issue to me .. under  ###  GSSOC'22
Thank's regard :crossed_fingers:

hi  @Vikash-8090-Yadav  thanks for reaching out but problem statements are not accepted in this project as GSSOC'22 contribution cause anyone you know can copy a problem from leetcode , paste solution in PR and can create such PR's which won't be a valid contribution , you can see what are the issues in the accepted issues , they have a algorithm dedicated , so i recommend you come up with something else .
you can contribute this issue to the repo if you want to but it won't be counted in your point for GSSOC'22 but i recommend you contribute this issue instead of closing because you'll learn from it.
Happy Coding !!

Ok. ...no issue.
Yes I will complete this when ever I get free from gssoc''22.

/assign


pjax doubles the target content

Hi there is a little problem with the pjax addon.
With the following, pjax doubles the
 box on submit so that I get a second
 box but without my class="site-index"

<?php Pjax::begin(['id'=>'marker', 'linkSelector'=>'.slider_inner_slide a']); ?>
<?php Pjax::end(); ?>

generates this browser code:

...

...

But when I bind it to the class like that Pjax::begin(['class'=>'site-index', 'linkSelector'=>'.slider_inner_slide a']); it works properly also when I add the id="marker"
So my problem is solved and I can change the bindings but why is it doubling the div? Maybe I oversee something in my understanding.

this is expected behavior as you have created two containers with the same ID.


iphone4 7.1.2 can't download apps from appstore they require ios8.

Hey there and thank you for using React Native!
React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.
Do the checklist before filing an issue:

[ ] Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome.
[ ] Have a usage question? Ask your question on StackOverflow. We use StackOverflow for usage question and GitHub for bugs.
[ ] Have an idea for a feature? Post the feature request on Product Pains. It has a voting system to surface the important issues. GitHub issues should only be used for bugs.

None of the above, create a bug report
Make sure to add all the information needed to understand the bug so that someone can help. If the info is missing we'll add the 'Needs more information' label and close the issue until there is enough information.

[ ] Provide a minimal code snippet / rnplay example that reproduces the bug.
[ ] Provide screenshots where appropriate
[ ] What's the version of React Native you're using?
[ ] Does this occur on iOS, Android or both?
[ ] Are you using Mac, Linux or Windows?

Hello @phara168! Looking at this issue I don't see anything that describes what issue with React Native you are actually having. Could you provide more detail around what issue you are running into that you think is a bug within React Native?
Thanks!

@facebook-github-bot label Needs more information

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/iphone4-712-cant-download-apps-from-appstore-they-require-ios8
ProductPains helps the community prioritize the most important issues thanks to its voting feature.
It is easy to use - just login with GitHub.
Also, if this issue is a bug, please consider sending a PR with a fix.
We're a small team and rely on the community for bug fixes of issues that don't affect fb apps.

@facebook-github-bot label Icebox

@facebook-github-bot close


Audio changes not reflected while game is running

Godot version
4.2-dev5
System information
Windows 11
Issue description
When modifying the audio bus levels, changes are not reflected in-game if you have the scene running.
I'm referring to these:

This does not seem to be consistent with the general design of the editor, where changing most properties instantly updates it in your running game.
The same applies to other audio things, like editing an effect's properties. Godot's audio system, especially the bus, is very intuitive and works great, however, it is difficult to mix and master your game's audio without the game running.
Steps to reproduce

Create a new project and add an AudioStreamPlayer and AudioListener
Add an AudioStream to the AudioStreamPlayer and set it to autoplay
Run the scene
Tab out of the scene and return to the editor, then try to change any of the settings on the "Audio" tab at the bottom of Godot.
Nothing happens

Minimal reproduction project
N/A

Thanks for the report! Consolidating in https://github.com/godotengine/godot-proposals/issues/1186.


MySQL 8 compatibility

Fixes #736
Replaces #1168
Note that this PR includes some long overdue refactoring of the database container tests - it made sense to do this as I was adding another test class, and doing so without refactoring would have worsened duplication.
The actual substance of the change is quite small, and visible in the MySQLContainer class.
Quoting the rationale:

Testcontainers has the driver as a runtime dependency, not transitive, so it's completely up to the user to choose which driver they need.

I've just tried this out, modifying our jdbc tests to use the newer driver, and found a few things:

The v8 driver seems to be backwards compatible (as you'd hope!) with 5.5, 5.6, 5.7.
With the v8 driver, MySqlContainer still chokes when connecting to mysql:8, throwing SQLNonTransientConnectionException: Public Key Retrieval is not allowed

However, this can be fixed by adding allowPublicKeyRetrieval=true to the query string params, as we already do with useSSL=false.

The allowPublicKeyRetrieval option goes back as far as MySql 5.1, (which predates Docker Hub) and seems to be compatible with any pre-8 image that we'd want to test.

Thus, I now have the following test code working without problems:

for (String tag : asList("5.5", "5.6", "5.7", "8")) {
    try (final MySQLContainer container = new MySQLContainer<>("mysql:" + tag)) {
         container.start();
    }
}

Thanks @kiview - will merge!

When will you publish a release with this?

This was released in 1.11.4 🎉


using the word client as a key in the locals breaks template rendering

I have run into a very strange bug when rendering templates using a key of client as one of the locals variables.  I have narrowed it down to the following breaking test:
const EmailTemplate = require('email-templates').EmailTemplate;
const path = require('path')

var templateDir = path.join(__dirname, 'clienttest')

var newsletter = new EmailTemplate(templateDir)
var locals = {client: 'Joe'}

newsletter.render(locals, function (err, result) {
  if (err) {
    throw err;
  }
  console.log(result.html);
})

and the following ejs files:
clienttest/html.ejs
<%- include('./includedFile'); %>

Hello World

clienttest/includedFile.ejs
Included File Success

You get an error of
TypeError: /Users/testuser/dev/testapp/clienttest/html.ejs:1
 >> 1| <%- include('./includedFile'); %>
    2|
    3| Hello World
    4|

include is not a function
    at eval (eval at <anonymous> (/Users/testuser/dev/testapp/node_modules/ejs/lib/ejs.js:495:12), <anonymous>:49:16)

The error is erroneous as it has nothing to do with the include as you can see by changing the key from client to anything else (like cats, or unicorns).

I think client is a reserved key by jade, not sure if it is still anymore, anyways v3.x is released, see the README of this repo


Error in filterAndTrim

Error when running snakemake --use-conda -p --cores all --latency-wait 10 on branch https://github.com/iobis/PacMAN-pipeline/tree/r_fixes, seems to be related to https://github.com/benjjneb/dada2/issues/212.
Rscript ./workflow/scripts/Dada2_FilterAndTrim.R     results/TRIAL2/runs/ARMS_4_SAMPLES/     200     150     2     0     0     Inf     20     0     0     Inf     True     None     False     \\s     None     True     True     100000     True     False     results/TRIAL2/runs/ARMS_4_SAMPLES/02-cutadapt/ERR3460466/ERR3460466_1P.fastq.gz results/TRIAL2/runs/ARMS_4_SAMPLES/02-cutadapt/ERR3460467/ERR3460467_1P.fastq.gz results/TRIAL2/runs/ARMS_4_SAMPLES/02-cutadapt/ERR3460468/ERR3460468_1P.fastq.gz results/TRIAL2/runs/ARMS_4_SAMPLES/02-cutadapt/ERR3460469/ERR3460469_1P.fastq.gz results/TRIAL2/runs/ARMS_4_SAMPLES/02-cutadapt/ERR3460470/ERR3460470_1P.fastq.gz results/TRIAL2/runs/ARMS_4_SAMPLES/02-cutadapt/ERR3460471/ERR3460471_1P.fastq.gz
Activating conda environment: /Users/pieter/Desktop/PacMAN-pipeline/.snakemake/conda/a59d18aac41574aa21b46815dc13d85b
Loading required package: Rcpp
Warning message:
package ‘Rcpp’ was built under R version 4.0.5
[1] "Sample ERR3460466 will be analysed" "Sample ERR3460467 will be analysed"
[3] "Sample ERR3460468 will be analysed" "Sample ERR3460469 will be analysed"
[5] "Sample ERR3460470 will be analysed" "Sample ERR3460471 will be analysed"
Error in filterAndTrim(filesForw, filtFs, filesRev, filtRs, truncLen = c(truncLen_F,  :
  These are the errors (up to 5) encountered in individual cores...
Error in validObject(.Object) :
  invalid class “SRFilterResult” object: superclass "Mnumeric" not defined in the environment of the object's class
Error in validObject(.Object) :
  invalid class “SRFilterResult” object: superclass "Mnumeric" not defined in the environment of the object's class
Error in validObject(.Object) :
  invalid class “SRFilterResult” object: superclass "Mnumeric" not defined in the environment of the object's class
Error in validObject(.Object) :
  invalid class “SRFilterResult” object: superclass "Mnumeric" not defined in the environment of the object's class
Error in validObject(.Object) :
  invalid class “SRFilterResult” object: superclass "Mnumeric" not defined in the environment of the object's class
In addition: Warning message:
In mclapply(seq_len(n), do_one, mc.preschedule = mc.preschedule,  :
  all scheduled cores encountered errors in user code
Execution halted
[Wed Jul  7 22:56:25 2021]
Error in rule dada2_filter:
    jobid: 33

Seems to be fixed by explicitly adding r-matrix=1.3-2 dependency.


docs: add FAQ about hotkeys in use

Solution for https://github.com/p0deje/Maccy/issues/736

Thank you!


Input file row values not read correctly if missing values

If a row in the input summary stats has missing values, wrong columns can be read in.
Example:
Input summary stats is missing an rsid:

#chrom
pos
ref
alt
rsids
nearest_genes
pval
mlogp
beta
sebeta
af_alt
af_alt_cases
af_alt_controls
n_hom_cases
n_hom_ref_cases
n_het_cases
n_hom_controls
n_hom_ref_controls
n_het_controls

5
44887686
AAAC
AAACAACAAC

MRPS30
6.43e-12
11.1916
-0.10338
0.01505
0.558
0.534
0.56
3354.58
2556.47
5661.95
42627.59
26442.58
66417.83

Meta-analysis output (column mlogp was used as p-value because of the missing rsids field (and other wrong fields as well)):

#CHR
POS
REF
ALT
SNP
FINNGEN_beta
FINNGEN_sebeta
FINNGEN_pval
FINNGEN_af_alt
FINNGEN_af_alt_cases
FINNGEN_af_alt_controls
FINNGEN_rsids
UKBB_beta
UKBB_sebeta
UKBB_pval
UKBB_low_confidence_EUR
all_meta_N
all_inv_var_meta_beta
all_inv_var_meta_sebeta
all_inv_var_meta_p
all_inv_var_het_p

5
44887686
AAAC
AAACAACAAC
5:44887686:AAAC:AAACAACAAC
1.50e-02
5.58e-01
1.12e+01
0.534
0.56
3354.58
MRPS30
NA
NA
NA
NA
1
1.50e-02
5.58e-01
1.12e+01
NA

Solution: When parsing rows, handle missing values

Problem seems to be this part:
https://github.com/FINNGEN/META_ANALYSIS/blob/1e3f24ced531574b7f9814837dd3abc5486d7c16/scripts/meta_analysis.py#L396-L403
If running with param --dont_allow_space, the missing values are parsed correctly, without it, the column is stripped out as whitespace:
>>> l
'1\t123\tAAA\tC\tABBA\t\t0.01\n'
>>> l.rstrip()
'1\t123\tAAA\tC\tABBA\t\t0.01'
>>> l.rstrip().split()
['1', '123', 'AAA', 'C', 'ABBA', '0.01']
>>> l.rstrip().split('\t')
['1', '123', 'AAA', 'C', 'ABBA', '', '0.01']

yea by default don't allow space exactly for this reason!
If space separated then missing value needs to be coded differently.
Actually can you check that the number of columns equals the number of header items and error out if not?

all our data is tab separated right?

yea by default don't allow space exactly for this reason!
If space separated then missing value needs to be coded differently.
Actually can you check that the number of columns equals the number of header items and error out if not?

all our data is tab separated right?

I guess would be good to set as default to not allow spaces since that's probably a very rare occasion there is space-separated data, at least I haven't seen any other other than tab-separated data?
But definitely let's add the check for the columns. Quick add and helps avoid these little mishaps.


PayService Error

The pay service is constantly failing with error
{"status":"error","data":{"errorCode":400,"errorMessage":"Description can't be blank"}}
I have checked and confirmed the description variable is not empty kindly check on this.

resolved by upgrading to the latest version using composer


Settings persist between jobs

This line
                source "$i/config"

reads settings into the current shell. Anything that's not set will retain whatever settings were applied by the previous job.
Perhaps run each job in a new subshell?

yeah that could be a problem if not configured properly.
i am not sure what you mean by subshell

also i would like to add to further suggestions about fixing possible issues because of misconfiguration and other non code specific bugs. maybe this would sound dumb but i dont want to increase the amount of code in awecron file to create error detection (not prevention) because i want the code to be as minimal as possible. I could though create another bash script that would be called debugger and would look for non code specific bugs like: permissions, missing files, missing configuration variables, etc.

also i think it is possible to make "modular features" that would be bash scripts in different files that add any functionality to the cron and can be easily removed if not in use

i am not sure what you mean by subshell

A sub-shell is a separate process created by putting ( and ) around a group of commands. Any changes to the shell context within that process won't affect the outer process; in particular that means that setting variables, changing directory, opening & closing filedescriptors, or setting the umask will be independent of the main process.

An alternative - and in this case probably preferable - approach would simply be to set some default values (possibly "unset") before sourcing the file, so that anything that's not set will have a predictable value rather than a random one from the previous command invocation.

This was implemented.
Closing.


jem2: remove os.dupterm from boot.py and do that on connection

It screws up the serial repl

done


Feature Request: Support cmake find_package

Firstly, thank you for sharing this library. It's wonderful that you've provided folks like me (who are stuck on C++14 for a while more) access to the these C++17 library facilities.
At the moment, while installation is supported, installation does not provide the requisite hooks to consume the library by way of CMake's find_package intrinsic.
I would be happy to provide this functionality if pull requests are welcome.

Thanks @apmccartney, I'd welcome that contribution.


how to filter test method call hierarchy Visual studio

in any method ,right click and click call hierarchy, but some test method also display.

how to hide these test method

VSCOde itself doesn't know what these results mean and any filtering should be done by the extension providing the data. In this case the Java extensions
/extJava


Firebase_auth Docs Error

The method provided in the ReadMe that use signInWithGoogle does not exist/work anymore.
I use the one:
  Future<String> _testSignInWithGoogle() async {
    final GoogleSignInAccount googleUser = await _googleSignIn.signIn();
    final GoogleSignInAuthentication googleAuth =
        await googleUser.authentication;
    final AuthCredential credential = GoogleAuthProvider.getCredential(
      accessToken: googleAuth.accessToken,
      idToken: googleAuth.idToken,
    );
    final FirebaseUser user = await _auth.signInWithCredential(credential);
    assert(user.email != null);
    assert(user.displayName != null);
    assert(!user.isAnonymous);
    assert(await user.getIdToken() != null);

    final FirebaseUser currentUser = await _auth.currentUser();
    assert(user.uid == currentUser.uid);

    return 'signInWithGoogle succeeded: $user';
  }

Maybe you need to make the change un the plugin

@Arkangel12
The issue at https://github.com/flutter/flutter/issues/27431 has been closed and moved here. Future collaboration on this issue will be done here.

Hi @Arkangel12
If are you still experiencing this issue
with the latest version of Flutter and FlutterFire plugin
can you please provide your flutter doctor -v
and your and your flutter run --verbose/flutter build --verbose ?
Also, to better address the issue, would be helpful
if you could post a self contained app on github
or the steps to reproduce it.
Thank you

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact descriptions what happens, logs and the output of 'flutter doctor -v'  please.
All system setups can be slightly different so its always better to open new issues and reference related issues.


Anyway to use this with RequestDelegateRouteBuilderExtensions

In .NetCore v2 MS are providing extensions here https://github.com/aspnet/Routing/blob/dev/src/Microsoft.AspNetCore.Routing/RequestDelegateRouteBuilderExtensions.cs and usable as shown here - https://www.strathweb.com/2017/01/building-microservices-with-asp-net-core-without-mvc/. Would there be a way to use Swashbuckle if these extensions were used?

I'm not sure what you're asking here? Can you elaborate with some code examples?

Closing due to inactivity


Bump zip from 1.1.4 to 2.2.0

This PR manually bumps zip from 1.1.4 to 2.2.0 because renovate seems to have a problem with updating this crate (https://github.com/uutils/coreutils/pull/6426).

i would prefer this issue is fixed before upgrading:
https://github.com/zip-rs/zip2/pull/247

Changes since last push:

fixed merge conflict
bumped zip from 2.2.0 to 2.2.1 (the issue mentioned in https://github.com/uutils/coreutils/pull/6873#issuecomment-2485065470 is still open)

Changes since last push:

bumped zip from 2.2.1 to 2.2.2


Logspam in 1.7: [Server thread/INFO]: NATURAL

From http://dev.bukkit.org/bukkit-plugins/gringotts/tickets/39-server-thread-info-natural/
I've confirmed by removing and re-adding all my plugins that Gringotts 2.0 beta 5 is spamming my console with "[Server thread/INFO]: NATURAL" messages every second.  It stops when I remove Gringotts.
I'm using 1.7 craftbukkit builds.
The plugin still works great, but it's very hard to read my console via web.

waiting for feedback on bukkitdev


Expose editor as a reusable control

Hi ,
I have been working on an application where i need to have a code editor with intellisense for C#.
RoslynPad does exactly the same and in fact more . However, it is a standalone application.
It would be really nice to have it as a custom control which can be plugged in other wpf application.
Please consider adding this feature if possible.
Regards,
Nish26

Thanks for the suggestion. Some work has already been done in #43. But it will take me a while to complete this feature.

Having at least the line numbering on the left would also nice for other tool windows.

The following packages have been published:

RoslynPad.Roslyn: Includes all exposed Roslyn services
RoslynPad.Roslyn.Windows: WPF UI elements for RoslynPad.Roslyn
RoslynPad.Roslyn.Avalonia: Avalonia UI elements for RoslynPad.Roslyn
RoslynPad.Editor.Windows: WPF (AvalonEdit) implementation of RoslynCodeEditor and services
RoslynPad.Editor.Avalonia: Avalonia (AvaloniaEdit) implementation of RoslynCodeEditor and services

RoslynPad.Roslyn* package versions will correspond to Roslyn's.
There's also a sample that shows how to implement REPL using RoslynCodeEditor.

@aelij is it possible to update the nuget packages?

I will update them as soon as the new version is ready.


updating the list of required services

from https://wiki.egi.eu/w/index.php?title=NGI_services_in_GOCDB&oldid=112084
removed the links to that page

I will bypass the gitleaks report for now (already did too many unrelated fixes), we may wait for https://github.com/github/super-linter/issues/3407 to be fixed to make use of this feature.


Fix error message for unavailable wasm-pack binary

Running cargo xtask deploy on an operating system and architecture that does not have a wasm-pack binary available results in the following error:
Error: no wasm-pack binary available for bool and bool
This PR fixes the error message to actually print the os and arch, e.g.:
Error: no wasm-pack binary available for macos and aarch64

Thanks!


Workspace

Codecov Report

Merging #2 (55ed22d) into master (e868669) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master        #2   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            6         6
  Lines          335       335
=========================================
  Hits           335       335

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


[Bug] Dialogs and sheets cannot coexist

Description
While attempting to use both, the dialog and sheet components within the same view, the sheet component behaves like a dialog instead of opening on the designated side.
To Reproduce
Render a dialog and a sheet component within the same page, as evidenced in this example or here.
The components don't necessarily have to be side-by-side. As long as they are rendered in the same view, the issue arises.
Expected Behavior:
I expected the dialog component to open as a modal in the center of the view, while the sheet component should open on the designated side (right, left, top, or bottom).
Actual Behavior:
Instead, the sheet component behaves like a dialog and opens in the middle of the view, overlapping the dialog component (or vice-versa, the dialog behaves like a sheet).
This behavior is inconsistent with the intended functionality of the components.

I checked the documentation and examples, but I did not come across any explicit mention of this particular limitation. Pardon me if I overlooked this information. Thanks in advance!

-const Sheet = SheetPrimitive.Root
+const Sheet = ({
+  ...props
+}: React.ComponentProps<typeof SheetPrimitive.Root>) => (
+  <SheetPrimitive.Root {...props} />
+)

And in your example you messed up sheet content with dialog content https://github.com/lucas-patron/shadcnui-sheet-dialog/blob/4c54e0c81dcdacea3e96f2af149caae06eb29351/src/pages/index.tsx#LL38C8-L38C8

And in your example you messed up sheet content with dialog content https://github.com/lucas-patron/shadcnui-sheet-dialog/blob/4c54e0c81dcdacea3e96f2af149caae06eb29351/src/pages/index.tsx#LL38C8-L38C8

Whoops, silly mistake. Didn't notice the use of dialog content. Oddly enough, while it fixed it in the minimal example, it didn't in my own project.

-const Sheet = SheetPrimitive.Root
+const Sheet = ({
+  ...props
+}: React.ComponentProps<typeof SheetPrimitive.Root>) => (
+  <SheetPrimitive.Root {...props} />
+)

Anyway, this fixed it for me - It's worth noting that this bit isn't included in the official code.
Thanks!

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.


Update storage-files-redundancy-premium-zrs.md

Added South Central US to ZRS Premium regions

@gayatrikishore : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@tamram,
Can you review the proposed changes?
IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge. Thanks.

#sign-off


This Pr closes #36

Added arithmetic plus and minus for num class.

can someone update on this?

@passsy

Fantastic work 👍


Don1760/cherry pick toolkit doc updates into vnext

This is the cherry pick to merge the Qt toolkit doc overhaul into the v.next branch.
The following squashed commits are being merged:

https://github.com/Esri/arcgis-maps-sdk-toolkit-qt/commit/1b4c4fe8e286d43134a49621783c97961a771fed
https://github.com/Esri/arcgis-maps-sdk-toolkit-qt/commit/6f6c20e039d9de31309f3259a517006308cd1446

Hi @ldanzinger @JamesMBallard,
The other day, James requested that I port the new Qt toolkit doc overhaul changes into the v.next branch.
I used the cherry-pick method to bring in the 2 PR's that were merged earlier today.
Please let me know if I need to do anything else. I will do QA/Verification to make sue that changes are appearing in v.next after this PR is merged.
Thanks,
-don

QUESTION:
The one thing that I noticed when doing the cherry pick when conflicts occurred that GitHub GUI did not seem to handle the deletion of this file uitools/README.md.
Should I manually delete this file and add it as a commit to this Cherry Pick PR?

@dkemlage yes that sounds good. There may need to be some manual wrangling of the files for a merge this size.

Thanks @JamesMBallard for the confirmation. I manually deleted the uitools/README.md file as this commit: https://github.com/Esri/arcgis-maps-sdk-toolkit-qt/pull/663/commits/362be0fe90c58f44cff05d5b731bb560620b7168

The file count of 40 files modified/added/deleted now matches the cherry pick merges!


fix game over

css general text styling was breaking the labels
just added ids for the labels, and general text classes for regular text
changed game over font
Issue #75

LGTM


rust-analyzer: 2021-12-13 -> 2021-12-27

Motivation for this change
Regular version bump.
https://rust-analyzer.github.io/thisweek/2021/12/20/changelog-108.html
https://rust-analyzer.github.io/thisweek/2021/12/27/changelog-109.html
Tested via neovim.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[x] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

@ofborg build rust-analyzer


Getting Error: TypeError: undefined is not an object (evaluating 'PermissionsIOS.requestPermission')

I'm getting the above error from the iOS Simulator and VSCode is saying "Could not find a declaration file for module 'react-native-qrcode-scanner'. '/Users/richoid/Code/PWR/PWR-V-RN/pwr-v-rn/node_modules/react-native-qrcode-scanner/index.js' implicitly has an 'any' type.
Try npm install @types/react-native-qrcode-scanner if it exists or add a new declaration (.d.ts) file containing declare module 'react-native-qrcode-scanner';ts(7016)"
This is using the sample code verbatim.
Latest version of react-native-qrcode-scanner. I tried updating react-native-camera but it didn't fix it.

Add this modules to Libraries in Xcode

I had the same problem and noticed that this library uses the react-native-permissions in the version 1.1.1, while my project was using the version 2.
Downgrading the react-native-permissions version fixed the problem.

@dqhung311: Thanks for your help its working fine to me.

Hi! I am having the same issue building for iOS-- I am building through expo and not explicitly using XCode as my IDE, how do I handle this issue?

Also, do I need to explicitly request permission still or does the qrcode scanner handle this under the hood?

And what's about using VScode and expo ?
How to fix it ?

The readme for this repo doesn't even state that react-native-permissions is needed. That's an extra step not documented.  Please add it to the main repo README if this is required thanks.

Correction. It appears this is mentioned in linking. But many of us are on manual or cocoapods and require some work to get that working.

@dqhung311 Worked perfectly, thank you!

The issue you're seeing is coming from the dependency on react-native-permissions.
It comes from the react-native-permissions not being properly linked, since it seems there is an issue with the linking.
There's a few ways to correct this issue.

because there is a podspec:
you can run pod install
if you prefer manually linking:
Right click Libraries in your xcode.proj and add the ReactNativePermissions.xcodeproj
then add a linked binary under your Build Phases to libReactNativePermissions.a

Install the react-native-camera by using following command:
yarn: yarn add react-native-camera<EMAIL_ADDRESS>OR
npm: npm install --save react-native-camera<EMAIL_ADDRESS>### This worked for me!!!

@sharadkatre19 Use the npm released version not the github.  If you're using EDGE thats a pretty poor solution.

I had the same problem and noticed that this library uses the react-native-permissions in the version 1.1.1, while my project was using the version 2.

This issue should be closed.  It is not an issue with react-native-qrcode-scanner but rather package dependency configuration.  The fix is outlined above as well.

I'm facing the same issue using the new<EMAIL_ADDRESS>Anyone found a solution for this? Downgrading the react-native-permissions it's not an option.

There's a pull request for this issue. You can take the changes from this commit if you can't wait till it will be merged.
https://github.com/moaazsidat/react-native-qrcode-scanner/pull/202/commits/1a842ef69eda9b920533a4332bf3ffa0be35ecf5

Using react-native 0.61.1, react-native-qrcode-scanner 1.2.3 and<EMAIL_ADDRESS>Manually linking as suggested above doesn't work anymore, a hopeful pod install doesn't work aswell. Should I really touch the source code as @dcosmin2003 suggested? Is this my only option right now?

Using react-native 0.61.2, react-native-qrcode-scanner 1.2.3 and<EMAIL_ADDRESS>Manually linking as suggested above doesn't work anymore, a hopeful pod install doesn't work aswell. Should I really touch the source code as @dcosmin2003 suggested? Is this my only option right now?
I met this problem too as ferdiamg.
who can help me for this?
Thank you

@ferdiamg @uros-matejic38
I was able to get that same QR scanner setup working by:

Adding the following line to {projectRoot}/ios/Podfile

  pod 'ReactNativePermissions', :podspec => '../node_modules/react-native-permissions/ReactNativePermissions.podspec'

Running pod update from the ios folder

Hi, Thanks for your kindly answer.
BTW, should I downgrade react-native-permissions version?
I am using react-native-permissions 2.0.2 now.
Could you help me with this version?

@uros-matejic38 check out my answer here: https://github.com/moaazsidat/react-native-qrcode-scanner/issues/201#issuecomment-542656120
I downgraded to react-native 0.61.0 since 61.1 and 61.2 somehow break manual and autolinking for some npm packages and I couldn't get it figured out for days. 0.61.0 is fine enough and I got the qr-scanner aswell as Bluetooth ble-plx working. But there are some hacks that you should make use of which are stated in the link that I mentioned in the beginning. Good luck!

I'm closing this one as it seems to be duplicated by #201


Time format/parse treat week numbers inconsistently

Using Sunday-based week and day-of-week numbers, the format and parse methods treat week zero inconsistently. This can cause round-tripping of a date to fail. Based on the documentation, my understanding is that week one commences with the first Sunday of the year, and days prior to that lie in week zero. If so, it looks like the format method is buggy.
d3.timeFormat('%Y %U %w')(new Date(2012, 0, 1)) // "2012 00 0" -> should be "2012 01 0"?
d3.timeParse('%Y %U %w')('2012 00 0').toLocaleString() // "12/25/2011, 12:00:00 AM"
d3.timeParse('%Y %U %w')('2012 01 0').toLocaleString() // "1/1/2012, 12:00:00 AM"

d3.utcFormat('%Y %U %w')(new Date(Date.UTC(2012, 0, 1))) // "2012 00 0"
d3.utcParse('%Y %U %w')('2012 00 0').toUTCString() // "Sun, 25 Dec 2011 00:00:00 GMT"

Using Monday-based week and day-of-week numbers exhibits the same problem:
d3.timeFormat('%Y %W %u')(new Date(2018, 0, 1)) // "2018 00 1" -> should be "2018 01 1"?
d3.timeParse('%Y %W %u')('2018 00 1').toLocaleString() // "12/25/2017, 12:00:00 AM"
d3.timeParse('%Y %W %u')('2018 01 1').toLocaleString() // "1/1/2018, 12:00:00 AM"

d3.utcFormat('%Y %W %u')(new Date(Date.UTC(2018, 0, 1))) // "2018 00 1"
d3.utcParse('%Y %W %u')('2018 00 1').toUTCString() // "Mon, 25 Dec 2017 00:00:00 GMT"

I believe the error stems from the use of timeSunday and timeMonday:

locale.js#L527
locale.js#L541

For example:
function formatWeekNumberSunday(d, p) {
  return pad(timeSunday.count(timeYear(d), d), p, 2);
}

In most cases the flooring performed inside timeSunday.count shifts the starting date value to the prior Sunday (the week zero boundary). However, if the first day of the year is itself a Sunday, the starting date value gets floored to the week one boundary instead, resulting in an off-by-one-week error. One solution might be to add logic that suitably prepares the first argument to count so that it maps to the week zero boundary.
(Similar reasoning then applies for Monday-based weeks.)

This certainly looks like a bug! Thanks for the report.

Test cases as a notebook: https://observablehq.com/d/d1cc30312fd3d256
I agree that d3.timeFormat looks wrong here; 2012-01-01, a Sunday, should be considered week 1. d3.timeParse appears to be parsing the week number correctly.
Strangely, though, I think d3.utcParse is showing a separate error. I would expect d3.utcParse("%Y %U %w")("2012 01 0") to return Sunday 2012-01-01, but it returns Monday 2012-01-02.


GH2146: Enabled initializer syntax for all collection properties

Fixes #2146
Only eleven properties needed to be changed! I had run into four of them in real life.

Rebased, ping for review? The TeamCity build failed, but I can't see details.

@jnm2 your changes have been merged, thanks for your contribution 👍

@devlead Thanks for helping!


Add labs for NYC Gen AI event.

A couple of minor changes to the embeddings notebook, which looks great!

renamed title and notebook filename for SEO and clarity
added hyperlinks to open notebook in Colab, Workbench, Github
added sections for Colab auth for consistency across other notebooks
clarified some markdown explanations for readability
cleared output from cells

@holtskinner Would you mind reviewing the other notebook?
search/retrieval-augmented-generation/examples/rag_google_documentation.ipynb

A few minor comments on style/readability.
Some more general comments:

Is there a reason you're doing a local vector store instead of Vertex AI Vector Search (Matching Engine)?
Some of this code could also likely be simplified using LangChain (but this is entirely optional)

A few minor comments on style/readability.
Some more general comments:

Is there a reason you're doing a local vector store instead of Vertex AI Vector Search (Matching Engine)?
Some of this code could also likely be simplified using LangChain (but this is entirely optional)

Using a local vector search because (1) this is a live lab and standing up Vertex Vector Search takes time and (2) in this lab I'm trying to illustrate a lot of the underlying concepts without any abstractions to give users a deep understanding of how they work, which is also why I didn't use LangChain.

Makes sense to me!
Only issue I see is that the URL.txt file is not included. Did you want to commit that so that it is included with the notebook?

Makes sense to me!
Only issue I see is that the URL.txt file is not included. Did you want to commit that so that it is included with the notebook?

Oops thank you! Just added


Hari/duplicate commitment

This closes #336 .
The issue was because all available commitments are greater than target value and hence commitsLessThanTargetValue.length was zero .
In this scenario , sortedCommits[commitsLessThanTargetValue.length] and sortedCommits [0] return same commitment , the one with index 0.
This is fixed by returning first two sortedCommits , ie; sortedCommits [0] and sortedCommits [1] values if commitsLessThanTargetValue.length is zero.

To recreate the original issue , run npm run duplicate-test  by commenting out line #423 in nightfall-client/src/services/commitment-storage.mjs
if (commitsLessThanTargetValue.length === 0) return [sortedCommits[0], sortedCommits[1]]; and note that the same commitment is picked both times for double transfer. Attaching a screenshot for reference

To review the PR with fix , uncomment the line #423 and run npm run duplicate-test. The commitments chosen will be different as you can see in attached screenshot reference.

An extra check  commitments.length < 2  is done for double transfer to exit if 2 commitments are not available.
Additionally , this PR also fixes duplicateNullifier check in optimist in transaction-checker.mjs . Only double transfer (case 2 ) need the check since other 3 cases fail if nullifier[1]  is non zero.

Has your fix been tested by replicating this situation as described in the issue description?

Successfully tested by recreating the scenario mentioned in issue #336

Could you provide instructions for a reviewer to test it please?

To test , please do npm run duplicate-test
This test create four ERC20 deposits of value 1000 each and then create a block with two ERC20 transfers of value 5 each.
The commitments picked are different.
The issue #336 , To replicate this error, create a block with two ERC20 deposits of value 1000 each and then create a block with two ERC20 transfers of value 5 each. .  If only 2 deposits of value 1000 are committed , client can do only one transfer in same block because after the first double transfer commitments  that are on-chain are zero.

Considering we can't do a gist for test file as suggested above, let us test it with the duplicate test as you have suggested already, then please submit a new PR after this merge such that this new PR removes this test file.

Pushed new PR after removing issue specific test file.


Automate post-actions after mbedtls update

The hardcoded serialized mbedtls session contains library version. To keep up with the current mbedtls version I decided to generate that mbedtls session fixture during the test.

All checks are green! I'm not sure it is stable, but at least now it is possible :)


[config:read-releases] Fetch exact branch

We're using ghapi's list_files method which calls get_branch
which fetches the first matched branch with given prefix (!!)
So in my case when I pointed doozer to my fork and said fetch me openshift-4.7,
it returned "openshift-4.7-cachito" branch.
This is pretty alarming behavior, so let's not use methods that depend on get_branch()
Test
(I had to delete the openshift-4.7-cachito branch to unblock my failing job, but
the original behavior should be reproducible)

doozer --data-path=https://github.com/thegreyd/ocp-build-data --group=openshift-4.14@disable_ptp config:read-releases --yaml

Isn't it a good idea for us to add a new function like get_branch_exact like

Define a new class that subclasses GhApi
class MyGhApi(GhApi):
def get_branch_exact(self, branch=None):

I think probably we need to avoid using those convenience methods. https://docs.github.com/en/rest/repos/contents?apiVersion=2022-11-28#get-repository-content should be preferred to get file content for it.

@vfreex You're right we shouldn't rely on convenience methods. I remember your errata_tool rant :)  , we should put that in art-docs for guide to api packages use.
In this case if you see https://github.com/fastai/ghapi they have provided some convenience methods and others methods are generated from openapi spec. So I'd say let's use only the official methods (get_ref and get_tree are). I'll check out the contents endpoint, maybe it's better

repos.get_content works as expected with ref=branch/commit/tag, I've replaced it now.
But this breaks some of the current expectations we have for data-path like local paths.. so we should think of a long term solution for this in runtime.initialize