Increase a timeout for installing yarn dependencies as they might encounter a network problems and do not finish properly

Ref job: https://github.com/containers/podman-desktop-extension-bootc/actions/runs/9280080676/job/25533749951
Error:
 Installing dependencies of podman-desktop
yarn install v1.22.22
[1/5] Validating package.json...
[2/5] Resolving packages...
warning Resolution field<EMAIL_ADDRESS>is incompatible with requested version<EMAIL_ADDRESS>[3/5] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error Error<EMAIL_ADDRESS>ESOCKETTIMEDOUT
    at ClientRequest.<anonymous> (C:\Users\rhqp\tools\node-v20.11.1-win-x64\node_modules\yarn\lib\cli.js:142037:19)
    at Object.onceWrapper (node:events:632:28)
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
    at ClientRequest.emit (node:events:518:28)
    at TLSSocket.emitRequestTimeout (node:_http_client:840:9)
    at Object.onceWrapper (node:events:632:28)
    at TLSSocket.emit (node:events:530:35)
    at Socket._onTimeout (node:net:589:8)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)
Building podman-desktop to run e2e from extension repo
yarn run v1.22.22
$ cross-env NODE_ENV=development MODE=development DEBUG=pw:browser npm run build
'cross-env' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Fixed by: https://github.com/odockal/pde2e-runner/commit/b59a37d94d88fbebc0f8c7d5680d638ce962b6ee


Some skeleton bones missing in the viewport

Godot version:

3.0
OS/device including version:

macOS High Sierra 10.13.3
Issue description:

I have a simple scene with only one mesh and one skeleton.

the skeleton has two bones, but only one bone is displayed in viewport.
the missing bone looks like that in Blender:

To prove the the missing bone functionally works,   I changed the pose matrix and the mesh deformed correctly, so it may be a bug with bone display.

Steps to reproduce:
open the tscn I attached
Minimal reproduction project:

just_armature.tscn.zip

I'm seeing this same issue in 3.1 alpha 1. Further, creating a physical skeleton also only creates nodes for the visible bones.
4 bones in blender

Only 3 bones are visible in Godot and only 3 physical bones are created for the skeleton

When Godot imports the skeleton it is missing the information of last bone tip, so it's impossible to know the length so draw it it's not possible.
This doesn't mean that last bone doesn't exist, it exist and can deform the mesh.

You can't create a physical bone for the missing bone. That makes using ragdolls difficult. Are you saying that this isn't a bug? Seems like it should be possible to draw all the bones.

Nothing stop you to add manually a physical bone to the last bone, you know the correct size to use for the last bone.
From Godot prospective it's possible to create a physical bone and / or draw the last bone with a fixed size, but it should be discussed.
Said that, I really don't like this behaviour but seems that collada format doesn't have this information.

The collada file in my upload does seem to have all of the info for four bones. But only 3 show up in Godot.

upload it please

I did. It's here in this bug with my original comment: https://github.com/godotengine/godot/issues/18443#issuecomment-417731294
It's in the zip file. I used the better collada exporter.

Yes you right, so collada is not the problem. The problem is on how godot store it.
Add another transform is not the best solution I need to check the skeleton code again

I really appreciate you looking at this. Thank you!

Hello :) There seem to be two problems discussed in this issue.

Does the last bone actually export and is accessible in Godot, in the imported Skeleton node? I confirmed with John's data and this part works as expected, today. Maybe it failed earlier in the year?

Does the last bone appear in the Viewport, providing important visual feedback to the user? I was also surprised by this issue a few weeks back. I've reviewed how Blender and Godot define a bone. In Blender, a bone is defined as two points in space. This inherently gives a length to the bone. In Godot, a bone is defined as a transform in space, so there isn't this idea of how long a bone is. This "bone-length" information is rebuilt in Godot when a bone has children, but isn't generated for end bones. As @AndreaCatania mentioned: this length information is necessary to draw the bone reliably.

The COLLADA file format also defines a bone as a transform in space, so the 'bone-length' information isn't available in the standard file format for the importer. There's different ways that this situation can be improved with more data, but it would require more user input and/or changes to the Blender COLLADA exporter. More importantly, the way Godot draws bones would have to change as well.
@akien-mga I suggest this issue should be labeled : "featurerequest" and "topic:editor".

What about appending the length to the name of the bone on export, then on import Godot can use that to apply the proper length and remove that info from the name?
In the mean time, a simple workaround is to add a new bone to the end of the missing bones.
I do have a question though. This may be a bug (if it is, I'll open a new issue), but the collision shapes generated with the physical skeleton are suppose to transform with their bones, right? They're currently not but the bones are.

I do have a question though. This may be a bug (if it is, I'll open a new issue), but the collision shapes generated with the physical skeleton are suppose to transform with their bones, right? They're currently not but the bones are.
I'm afraid I'm not familiar with the feature of physical skeletons. Maybe opening a new issue would be best :)

This is not really a bug, the actual information for the last bone (and free bones) is lost in exchange formats such as Collada or GLTF.
I think the Godot -> Blender exporter could actually save a length or whether it's a free bone (which we add in Skeleton for display purposes)

@reduz, so does Skeleton node already has properties like bone length which we can use to specify the length of the last bone? or there is some work need to be done at Godot side to support it?

Is this still reproducible in 3.2 beta 5 / with the latest Blender exporter?

I downloaded the latest https://github.com/godotengine/godot-blender-exporter and installed it in Blender 2.81.16
I loaded the original fish.blend in the zip I uploaded here https://github.com/godotengine/godot/issues/18443#issuecomment-417731294
I exported from Blender using the Blender Exporter
I double clicked the exported .escn file in Godot 3.2 beta 5 (downloaded release, not built from master) and created a new inherited scene
I selected the fish skeleton in the scene tree, clicked the Skeleton button, then clicked Create physical skeleton

Result:

4 bones show up in the inspector for the skeleton just as I expected
Only the first 3 bones are visible in the viewport but I expected to see 4 bones
Only the first 3 physical skeleton bones were created but I expected 4 physical bones

@fire I guess it still affects Godot 3.2. While glTF 2.0 is now the preferred workflow, we still support Collada for now.

and 3.2.1 :(

This is not really a bug, the actual information for the last bone (and free bones) is lost in exchange formats such as Collada or GLTF.
I think the Blender -> Godot exporter could actually save a length or whether it's a free bone (which we add in Skeleton for display purposes)

According to @reduz quotes above this is working as intended. I don't expect this bug to be changed to expected behavior because information has been lost.

This is not really a bug, the actual information for the last bone (and free bones) is lost in exchange formats such as Collada or GLTF.
I think the Blender -> Godot exporter could actually save a length or whether it's a free bone (which we add in Skeleton for display purposes)

According to @reduz quotes above this is working as intended. I don't expect this bug to be changed to expected behavior because information has been lost.

So how exactly is this intended behaviour? Why do you want this to happen?

@TheContainer please read the conversation, it isn't "as we want it" but a limitation due to loss of information


Upload Profile Picture

#23

In forms.py, created a class ProfilePictureForm
In views.py, created a page options-page
In urls.py, created a url for options' page
Marked the options' page as login_required
Displaying profile at the top left corner

@AbdulRahmanMudasser Please write a proper description for the changes you made or added in this PR.
I found two major bugs :

The upload page after uploading the profile do not redirect us back to home.
If a user already has profile it was not showing it on the home page.
I fixed these two by makings some changes on views.py and welcome.html.

@AbdulRahmanMudasser Please write a proper description for the changes you made or added in this PR. I found two major bugs :

The upload page after uploading the profile do not redirect us back to home.
If a user already has profile it was not showing it on the home page.
I fixed these two by makings some changes on views.py and welcome.html.

Why would the user be redirected to the home?

@AbdulRahmanMudasser Please write a proper description for the changes you made or added in this PR. I found two major bugs :

The upload page after uploading the profile do not redirect us back to home.
If a user already has profile it was not showing it on the home page.
I fixed these two by makings some changes on views.py and welcome.html.

Why would the user be redirected to the home?

To see his posts and new profile picture. Is this not what happens when we upload our profile picture on instagram.

@AbdulRahmanMudasser Please write a proper description for the changes you made or added in this PR. I found two major bugs :

The upload page after uploading the profile do not redirect us back to home.
If a user already has profile it was not showing it on the home page.
I fixed these two by makings some changes on views.py and welcome.html.

Why would the user be redirected to the home?

To see his posts and new profile picture. Is this not what happens when we upload our profile picture on instagram.

When we upload a profile picture, we are redirected to the profile page, not the home page. There is a difference between the home page and the profile page.

@AbdulRahmanMudasser Please write a proper description for the changes you made or added in this PR. I found two major bugs :

The upload page after uploading the profile do not redirect us back to home.
If a user already has profile it was not showing it on the home page.
I fixed these two by makings some changes on views.py and welcome.html.

Why would the user be redirected to the home?

To see his posts and new profile picture. Is this not what happens when we upload our profile picture on instagram.

When we upload a profile picture, we are redirected to the profile page, not the home page. There is a difference between the home page and the profile page.
In the future, when we have a profile page, we will add the functionality of redirecting to the profile page, but for now, this will work fine.

Yes, I understand that , also when we are on our home page for now we can upload or change profile pic again but if we do not redirect to home we cannot go back to home as shown in issue #26 .


Enable it to work on full cached pages

From @hissy

Could you make it enable to work on full cached pages?
The client wants to use it but CloudFront ignores the login cookie.

@hissy
Cc: @Hmone23
Do you think the following solves the issue?
https://github.com/concrete5cojp/c5j_ratings/blob/master/blocks/c5j_rating_btn/controller.php#L22

@biplobice
protected $btCacheBlockOutput = true; means, the block will get data such as how many times rated via ajax, right?
If so, Yes, I think that solves the issue.

Yes, that's right.

@biplobice 👍

@biplobice
Oh, one more thing.
CloudFront caches all requests under /kiji but the route to get rating is like /kiji/{page_handle}/get_rating/{bID} isn't it?
If so, the issue still exists.

@hissy
Cc: @Hmone23
How about excluding the path like /kiji/*/get_rating/*?
If we can't, then we have to solve this issue by moving the get_ratings action to a route like /c5j_ratings/get_ratings.

@biplobice
Please ask @katzueno he can do it for CloudFront.
If you decide to move it, I think it's better to prepend /ccm

@Hmone23
Can you already proceed with registering a route like /ccm/c5j_ratings/get_ratings?


Something changed because this doesn't exist following the instructions

[Enter feedback here]
Visual 2, step 3. This does not exist how/where it's described.

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

ID: 1e0083e3-c11c-2462-6f0f-a166759f14c0
Version Independent ID: 927cc95e-d442-db4d-75ae-d4a2fa64ae71
Content: Tutorial: From Excel workbook to stunning report in Power BI Desktop - Power BI
Content Source: powerbi-docs/create-reports/desktop-excel-stunning-report.md
Service: powerbi
Sub-service: pbi-reports-dashboards
GitHub Login: @maggiesMSFT
Microsoft Alias: maggies

It wasn't visible because I didn't have the line chart selected, apparently. I see it now. Closing.


Initial commit of AWS Batch setup instructions

@mriffle I am going to merge this PR unless you have some other changes you would like to me make first.

Did you update the links? If not I can do it after you merge.

I will make the change to the links and make sure there are no more warnings. Then I will get it merged.


[New conversation] 2 Fixes

Input Bar Handle Issue: Clicking on an assistant preview sometimes does not fill the input bar with the handle (e.g., q-next).
Action: Ensure the input bar is populated correctly when an assistant is selected.

Scrollbar Recalculation: When a search is initiated, the scrollbar is not recomputed, leading to an empty page.
Action: Implement dynamic scrollbar recalculation upon search.

Depends on 5446
As mentioned in item 6. of the framing issue
///
Full Figma here

Done by #5448


Merge conflict resolved

fixes merge conflict, gosimple check and adds go 1.8 support.

@wallyqs can you merge this to your branch, give me any comments and then I'll get it reviewed and merged from your PR?

thanks! will take a look

Thanks @petemiron rebased and applied the commits to https://github.com/nats-io/go-nats/pull/236


FIX: convertStyleToAttrs: regexp string escaping for Important rule

so the resulting regexp will change from:
/(\s*!important(?![-(w]))?/
to:
/(\s*!important(?![-(\w]))?/

Thanks! This is already fixed.


sh test_deeplab.sh  ，How to visualize test results？

i want to get Visualized picture.
can help me?
thank you~

Hi, I refer you to this open Pull Request: #5. This contains code to input a TIF image and get a TIF output image of the predicted segmentation mask.
I will be making some additions to the master branch by the end of this week to implement this feature.

@zhenghan408 I have updated the repository with support for inference on Numpy files. I will be working on TIFF support soon.


Format multiple values

When creating the markdown, if there is a multiple value, like owners, format it is a comma separated string.

Fixed with 351c064


merge from arlac77/npm-package-template-esm-only

package.json

chore(package): add ^16.0.1 remove ^16.0.0 (devDependencies.semantic-release)

:tada: This PR is included in version 2.0.14 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[Feature request] Add switches to let rgbfix produce invalid logo and checksum

For experimental and other purposes, it may be interesting to produce ROMs where some of the following are valid and some are not:

Nintendo logo
Header checksum
Global checksum

For example, it may be desirable leave the logo untouched for use with Nanoloop One or other cartridges which allow a custom logo to be displayed by doing a ROM swap timing trick. A more esoteric use case of mine in the past has been to probe the behavior of the boot ROM of Gameboy bootleg consoles which may not check the Nintendo logo but may check the header checksum, or vice versa.
I'm suggesting a parameter for the -v flag that lets you specify a specific item to be fixed.
-v l would fix the logo.
-v h would fix the header checksum.
-v H would deliberately  trash the header checksum by inserting for example the binary inverse of the calculated value.
-v g would fix the global checksum.
-v G would deliberately trash the global checksum.
-v alone would enable all three checks like before.
These items can be combined so -v h -v l would fix the logo and the header checksum but would leave the global checksum untouched.

I agree that handling the logo and checksums separately would be useful, but the implementation you describe (where -v can be standalone or have an optional argument) isn’t possible with POSIX getopt. I would suggest a new flag with a required string argument, where the string can contain l and/or h and/or… thus allowing your example to become -v hl.
This leads to the supremely important question, “what letter should the new flag be?”

I suggest -f for fix.

Doesn't POSIX getopt support long (--foo) options? You don't need a single-letter option if you can use long ones. For something as rarely used as this feature would be, long options for each use case might suffice.

POSIX does not support long options.
I don’t think rgbfix is quite at the point where it would make sense to use long options anyway. (Frankly, I hope it never gets there—documentation for such software is a chore to read.)

No need for long options or non-POSIX parsing. My new suggestion looks like this:
-f l would fix the logo.
-f h would fix the header checksum.
-f H would deliberately  trash the header checksum by inserting for example the binary inverse of the calculated value.
-f g would fix the global checksum.
-f G would deliberately trash the global checksum.
-v alone would enable all three checks like before.
Ie, -v is always given without a parameter, whereas -f is always given with a parameter.

commit 5a4bbe4985fe9d73eafabd78a6a305aff8cff1dd
Author: Anthony J. Bentley<EMAIL_ADDRESS>Date:   Sat Mar 10 21:48:23 2018 -0700

    Add a new flag, -f, which allows independently fixing or trashing checksums.

diff --git a/src/fix/main.c b/src/fix/main.c
index bb89b9e..5877543 100644
--- a/src/fix/main.c
+++ b/src/fix/main.c
@@ -20,9 +20,9 @@
 static void print_usage(void)
 {
 	printf(
-"usage: rgbfix [-CcjsVv] [-i game_id] [-k licensee_str] [-l licensee_id]\n"
-"              [-m mbc_type] [-n rom_version] [-p pad_value] [-r ram_size]\n"
-"              [-t title_str] file\n");
+"usage: rgbfix [-CcjsVv] [-f fix_spec] [-i game_id] [-k licensee_str]\n"
+"              [-l licensee_id] [-m mbc_type] [-n rom_version] [-p pad_value]\n"
+"              [-r ram_size] [-t title_str] file\n");
 	exit(1);
 }

@@ -37,7 +37,12 @@ int main(int argc, char *argv[])
 	 */

 	/* all flags default to false unless options specify otherwise */
-	bool validate = false;
+	bool fixlogo = false;
+	bool fixheadsum = false;
+	bool fixglobalsum = false;
+	bool trashlogo = false;
+	bool trashheadsum = false;
+	bool trashglobalsum = false;
 	bool settitle = false;
 	bool setid = false;
 	bool colorcompatible = false;
@@ -61,7 +66,7 @@ int main(int argc, char *argv[])
 	int version = 0;   /* mask ROM version number */
 	int padvalue = 0;  /* to pad the rom with if it changes size */

-	while ((ch = getopt(argc, argv, "Cci:jk:l:m:n:p:sr:t:Vv")) != -1) {
+	while ((ch = getopt(argc, argv, "Ccf:i:jk:l:m:n:p:sr:t:Vv")) != -1) {
 		switch (ch) {
 		case 'C':
 			coloronly = true;
@@ -69,6 +74,14 @@ int main(int argc, char *argv[])
 		case 'c':
 			colorcompatible = true;
 			break;
+		case 'f':
+			fixlogo = strchr(optarg, 'l');
+			fixheadsum = strchr(optarg, 'h');
+			fixglobalsum = strchr(optarg, 'g');
+			trashlogo = strchr(optarg, 'L');
+			trashheadsum = strchr(optarg, 'H');
+			trashglobalsum = strchr(optarg, 'G');
+			break;
 		case 'i':
 			setid = true;

@@ -168,7 +181,9 @@ int main(int argc, char *argv[])
 			printf("rgbfix %s\n", get_package_version_string());
 			exit(0);
 		case 'v':
-			validate = true;
+			fixlogo = true;
+			fixheadsum = true;
+			fixglobalsum = true;
 			break;
 		default:
 			print_usage();
@@ -195,7 +210,7 @@ int main(int argc, char *argv[])
 	 * Write changes to ROM
 	 */

-	if (validate) {
+	if (fixlogo || trashlogo) {
 		/*
 		 * Offset 0x104–0x133: Nintendo Logo
 		 * This is a bitmap image that displays when the Game Boy is
@@ -205,7 +220,7 @@ int main(int argc, char *argv[])
 		/*
 		 * See also: global checksums at 0x14D–0x14F, They must
 		 * also be correct for the game to boot, so we fix them
-		 * as well when the -v flag is set.
+		 * as well when requested with the -f flag.
 		 */

 		uint8_t ninlogo[48] = {
@@ -217,6 +232,10 @@ int main(int argc, char *argv[])
 			0xDD, 0xDC, 0x99, 0x9F, 0xBB, 0xB9, 0x33, 0x3E
 		};

+		if (trashlogo)
+			for (int i = 0; i < sizeof(ninlogo); i++)
+				ninlogo[i] = ~ninlogo[i];
+
 		fseek(rom, 0x104, SEEK_SET);
 		fwrite(ninlogo, 1, 48, rom);
 	}
@@ -415,7 +434,7 @@ int main(int argc, char *argv[])
 		fputc(version, rom);
 	}

-	if (validate) {
+	if (fixheadsum || trashheadsum) {
 		/*
 		 * Offset 0x14D: Header Checksum
 		 */
@@ -426,9 +445,14 @@ int main(int argc, char *argv[])
 		for (int i = 0; i < (0x14D - 0x134); ++i)
 			headcksum = headcksum - fgetc(rom) - 1;

+		if (trashheadsum)
+			headcksum = ~headcksum;
+
 		fseek(rom, 0x14D, SEEK_SET);
 		fputc(headcksum, rom);
+	}

+	if (fixglobalsum || trashglobalsum) {
 		/*
 		 * Offset 0x14E–0x14F: Global Checksum
 		 */
@@ -445,6 +469,9 @@ int main(int argc, char *argv[])
 		while ((byte = fgetc(rom)) != EOF)
 			globalcksum += byte;

+		if (trashglobalsum)
+			globalcksum = ~globalcksum;
+
 		fseek(rom, 0x14E, SEEK_SET);
 		fputc(globalcksum >> 8, rom);
 		fputc(globalcksum & 0xFF, rom);
diff --git a/src/fix/rgbfix.1 b/src/fix/rgbfix.1
index f65a70d..872499a 100644
--- a/src/fix/rgbfix.1
+++ b/src/fix/rgbfix.1
@@ -14,6 +14,7 @@
 .Sh SYNOPSIS
 .Nm rgbfix
 .Op Fl CcjsVv
+.Op Fl f Ar fix_spec
 .Op Fl i Ar game_id
 .Op Fl k Ar licensee_str
 .Op Fl l Ar licensee_id
@@ -46,6 +47,30 @@ If both this and the
 flag are set,
 .Fl C
 takes precedence.
+.It Fl f Ar fix_spec
+Fix certain header values that the Game Boy checks for correctness.
+Alternatively, intentionally trash these values by writing their binary inverse
+instead.
+.Ar fix_spec
+is a string containing any combination of the following characters:
+.Pp
+.Bl -tag -compact -width xx
+.It Cm l
+Fix the Nintendo logo
+.Pq Ad 0x104 Ns \(en Ns Ad 0x133 .
+.It Cm L
+Trash the Nintendo logo.
+.It Cm h
+Fix the header checksum
+.Pq Ad 0x14D .
+.It Cm H
+Trash the header checksum.
+.It Cm g
+Fix the global checksum
+.Pq Ad 0x14E Ns \(en Ns Ad 0x14F .
+.It Cm G
+Trash the global checksum.
+.El
 .It Fl i Ar game_id
 Set the game ID string
 .Pq Ad 0x13F Ns \(en Ns Ad 0x142
@@ -104,12 +129,8 @@ overlapping portion of the title.
 .It Fl V
 Print the version of the program and exit.
 .It Fl v
-Validate the header and fix checksums: the Nintendo character area
-.Pq Ad 0x104 Ns \(en Ns Ad 0x133 ,
-the header checksum
-.Pq Ad 0x14D ,
-and the global checksum
-.Pq Ad 0x14E Ns \(en Ns Ad 0x14F .
+Equivalent to
+.Fl f Cm lhg .
 .El
 .Sh EXAMPLES
 Most values in the ROM header are only cosmetic.

Did you accidentally post the patch here instead of actually committing it...?

Not accidental.

Fixed in https://github.com/rednex/rgbds/commit/5a4bbe4985fe9d73eafabd78a6a305aff8cff1dd


Windows & Mac signing should be optional

I would like the ability to run nightly builds without having to sign the Windows and Mac binaries. I think this should be an optional step similar to what was done for test and installers. I can see in the Windows builds a separate sign_build is called (which I can't see). It appears on Mac it happens during compilation[1].
[1] https://github.com/AdoptOpenJDK/openjdk-build/blob/master/build-farm/platform-specific-configurations/mac.sh#L53-L62

@gdams Can you clarify the macos story here? I had a recollection that it wasn't possible (or desirable for notarization purposes?) to have some aspects of this switched off completely?

On my end it won't be feasible to sign Mac nightlies (at the moment) so we'll need this configurable for the compile as well as the installer.


[HELP WANTED] Dynamic insert based on scheme

Hello,
is it possible to do dynamic inserts with Bun? Unfortunately I can't find anything in the documentation.
I imagine the following, which I know from other JS frameworks:

given is the table name. Based on this I get the schema of the table
the schema of the table contains all fields including their data types as well as if it is an association etc.
now I can build my insert dynamically on it.

Does Bun support this? Commands how to get the schema would be very helpful.
The idea is to make it as dynamic as possible without having to know the model.
Thanks in Advance
Nils

The closes thing Bun has is support for map[string]interface{} - see https://bun.uptrace.dev/guide/query-insert.html#maps

@vmihailenco  Thank you! But how do I know what the interface looks like?
So I only know the table name.

Unfortunately, not a public one.
The idea is to generate data quite dynamically.
Let's assume I have the table "User". This consists of:
id: String,
name: String,
age: Int
Now, for example, for the simple generation of test data, I want to give only the table name "User" as well as the ID as a field to my rest point.
A post request could for example look like this:
{ "tableName": "User",
"values": [
{"id": "ABC"}
]
}
Now the program should automatically read the table User, know that there are still the fields name and age and generate them independently. For ID the given ID should be used. The generation of data is no problem.
But for this I need to know how the table schema is. In other projects with JS the ORM framework could give me exactly this information. Of course you could add the table schema manually. But the goal would be to have a completely dynamic implementation, which can be used in every project.
I hope it is now more understandable.

@nilskasseckert  When does the generation of data would occur ?  If it is when you insert data into the table, then you can set default values for each column of your table directly in your schema / table definition.
If you need those fields in your Go struct before doing an insert, then maybe you could, at your application startup, insert a dummy struct instance in your DB to capture the default values, and store that struct in a global variable.  When you need to process a new instance, you can copy fields from the global variable as needed.
Something like
var defaultUser User

func init() {
  db.NewSelect().Model(&defaultUser)  // pseudo-code.... the idea here is to get the default values in defaultUser
}

func someHandler(w, r) {
  user := User{}
  // copy values from defaultUser as needed into user

Not sure if this fits your need, I was just passing by...


WIP Init script

todos from feedback

[x] optional overwrite of existing .simpspector.yml
[x] optional overwrite when gadget config file already exists
[x] default enable question to no, if binary missing
[x] enable feedback (same line, new line?)

Does anybody have sample config files for one of our Gadgets, they would like to see to be used? @simpspector/core

@simpspector/core I think this is in a state to be merged - opinions?
I would suggest doing additional DefaultConfigFiles after merging this. Currently we have one Gadget supporting this as a proof of concept that the process works.

@simpspector/core anything more? Ready to merge?

:+1: LGTM


Wrong LINK to download program!!!

Hi, I was having a problem to download program - release 1.9.1 for windows, and found that you have wrong link there.
It should be with underscores, but you have with hyphens:
https://github.com/heliomarpm/udemy-downloader-gui/releases/download/v1.9.1/udeler.Setup.1.9.1.Win-x64.exe

should be:
https://github.com/heliomarpm/udemy_downloader_gui/releases/download/v1.9.1/udeler.Setup.1.9.1.Win-x64.exe

You might want to correct it.

Thanks @michaelmiscanuk ;


fix return type of Celery's app.control.inspect method as they can al…

…l return None

Thank you!


nodeos shutdown after 25625786 blocks replayed

2018-11-22T21:14:20.667 thread-0   controller.cpp:276            init                 ] 25625786 blocks replayed
2018-11-22T21:14:20.788 thread-0   controller.cpp:289            init                 ] 0 reversible blocks replayed
2018-11-22T21:14:20.788 thread-0   controller.cpp:293            init                 ] replayed 25625786 blocks in 582002 seconds, 22.71159666489839779 ms/block
2018-11-22T21:14:21.184 thread-0   mongo_db_plugin.cpp:1283      ~mongo_db_plugin_imp ] mongo_db_plugin shutdown in process please be patient this can take a few minutes
2018-11-22T21:14:30.760 thread-1   mongo_db_plugin.cpp:426       consume_blocks       ] process_applied_transaction,  time per: 5502, size: 2086, time: 11478140
2018-11-22T21:14:30.760 thread-1   mongo_db_plugin.cpp:412       consume_blocks       ] draining queue, size: 675
2018-11-22T21:14:31.546 thread-1   mongo_db_plugin.cpp:621       get_abi_serializer   ] 3015016 unsupported_abi_version_exception: ABI has an unsupported version
ABI has an unsupported version
    {}
    thread-1  abi_serializer.cpp:108 set_abi
2018-11-22T21:14:31.546 thread-1   mongo_db_plugin.cpp:621       get_abi_serializer   ] n: eosforumdapp
2018-11-22T21:14:31.548 thread-1   mongo_db_plugin.cpp:621       get_abi_serializer   ] 3015016 unsupported_abi_version_exception: ABI has an unsupported version
ABI has an unsupported version
    {}
    thread-1  abi_serializer.cpp:108 set_abi
2018-11-22T21:14:31.548 thread-1   mongo_db_plugin.cpp:621       get_abi_serializer   ] n: eosforumdapp
2018-11-22T21:14:33.456 thread-1   mongo_db_plugin.cpp:426       consume_blocks       ] process_applied_transaction,  time per: 3994, size: 675, time: 2696158
2018-11-22T21:14:33.456 thread-1   mongo_db_plugin.cpp:412       consume_blocks       ] draining queue, size: 0
2018-11-22T21:14:33.456 thread-1   mongo_db_plugin.cpp:474       consume_blocks       ] mongo_db_plugin consume thread shutdown gracefully
2018-11-22T21:15:05.494 thread-0   main.cpp:130                  main                 ] 3020000 fork_database_exception: Fork database exception
reversible block database is inconsistent with fork database, replay blockchain
    {"head":25625786,"unconfimed":25626122}
    thread-0  controller.cpp:307 init

    {}
    thread-0  chain_plugin.cpp:672 plugin_startup

Did it crash? or gracefully shutdown?

mongo_db_plugin shutdown gracefully, but nodeos need replay again.

Disk space exhausted?

more than 1 TB available.
I deleted backup data-dir/blocks-2018xxxxx folder, is that the reason?
nodeos could not find backup blocks, so it crashed.

Nodeos doesn't reference dated block folders unless it has been launched with the --hard-replay-blockchain argument.  Once replay is complete or fails, nodeos is unaware of any previous backup directory.  If you deleted the backup directory while replay was still proceeding, I would expect an eventual crash.  If that's what happened, please close this issue.

Thanks. @jgiszczak

remove revesible dir and restart nodeos with --hard-replay-blockchain, it will start sync with last replayed block.


I can see if a resource supports GET or PUT or both

As an OSS Concourse User when I go to https://concourse.github.io/dutyfree/ I can see if a resource supports GET or PUT or both.
So that I can see if the resource supports my requirements.
Acceptance Criteria
When I go to https://concourse.github.io/dutyfree/
I can see whether a resource supports GET or PUT tag or both. These tags will display on the resource tile and also the resource detail page.
PM Notes: GET / PUT tags to be added to the resources.yml file by @Pivotal-Kevin-Curley .
Check with design for look and location of GET & PUT tags

Accepted by @Pivotal-Kevin-Curley. Behaviour is as per the acceptance criteria.

Didn't notice at acceptance that this hadn't been added to the details page. Will accepted story again once it has been added to the details page.
Placement for the GET/PUT tag should be 25 pixels below the description aligned to the left with the description title and description text.

Pushed change to branch https://github.com/concourse/dutyfree/tree/freeze-1 while waiting for today's interviews. Will move to Ready to accept once merged

merged into master and published

The font size on the get/put tags doesn't match the prototype (it's larger) but I'm accepting the story because the way it's implemented is an improvement over the design.


How to add time series chart and image display in the circle scenario example in python ?

I'm trying to add a time series chart and image (video) visualisation in the python example.
Here are the changes I made so far
in circle.py add the stream definition
         (builder.stream("/vehicle/velocity")
                 .category(xviz.CATEGORY.TIME_SERIES)
                 .type(xviz.SCALAR_TYPE.FLOAT)
                 .unit('m/s'))

             (builder.stream("/vehicle/acceleration")
                 .category(xviz.CATEGORY.TIME_SERIES)
                 .type(xviz.SCALAR_TYPE.FLOAT))

             (builder.stream("/camera/front")
                .category(xviz.CATEGORY.PRIMITIVE)
                 .type(xviz.PRIMITIVE_TYPES.IMAGE)
                )

and some sample data
        builder.time_series('/vehicle/velocity').timestamp(timestamp).value(5.0)
        builder.time_series('/vehicle/acceleration').timestamp(timestamp).value(0.1)
        with open("image.png", "rb") as img_data:
            builder.primitive("/camera/front").image(data=img_data.read())

These stream appears in the stream tree of the UI but the chart nor the image as shown below

How to make them show up in the GUI ?

@jrabary - were you able to resolve this? I am seeing the same issue.

I have some more information as to what is going on.
on my fronend I am using the following code:
https://github.com/uber/streetscape.gl/tree/master/examples/get-started
for the backend, i am using the same code as the author based on this example (plus a single image stream):
https://github.com/uber/xviz/blob/master/python/examples/scenarios/circle.py
When I print the data for my stream for the image on the front end the data is there.
However, I did notice that the python api does not specify the image type (jpg/png) - could this be the source of issues?

Can anyone provide some guidance on how to add camera data via the python api?

Let me dig into this and get back to you.
On Tue, Aug 4, 2020, 14:33 aalibasic<EMAIL_ADDRESS>wrote:

I have some more information as to what is going on.
on my fronend I am using the following code:
https://github.com/uber/streetscape.gl/tree/master/examples/get-started
for the backend, i am using the same code as the author based on this
example (plus a single image stream):
https://github.com/uber/xviz/blob/master/python/examples/scenarios/circle.py
When I print the data for my stream for the image on the front end the
data is there.
However, I did notice that the python api does not specify the image type
(jpg/png) - could this be the source of issues?
[image: image]
https://user-images.githubusercontent.com/36416255/89347350-30b3ea80-d670-11ea-8ecc-c322565f9225.png
Can anyone provide some guidance on how to add camera data via the python
api?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/uber/xviz/issues/607#issuecomment-668836488, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AALUBXGPCBGZGNHOU2BBF4TR7B5EPANCNFSM4PGEZ63A
.

@twojtasz - Have you been able to find anything on this front?
Is there information I can provide or something else that I can do the help out with?

Did you add the declarative UI bindings for the chart to those data
streams? That is probably all that is missing.  Let me get an example for
you.
On Mon, Aug 10, 2020, 07:40 aalibasic<EMAIL_ADDRESS>wrote:

@twojtasz https://github.com/twojtasz - Have you been able to find
anything on this front?
Is there information I can provide or something else that I can do the
help out with?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/uber/xviz/issues/607#issuecomment-671396510, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AALUBXE72QJZATSWCXTHNHTSAABGFANCNFSM4PGEZ63A
.

@twojtasz - an example would be awesome - I was not able to find documentation on how to add these bindings.
If I can get your example working, maybe I will add a specific example via a PR on how to get the camera image going so it is more clear to others in the future.

The python Declarative UI bindings is recent.  I have an example but it's
in a different repository.  I'll verify it today and let you know.
On Mon, Aug 10, 2020 at 9:13 AM aalibasic<EMAIL_ADDRESS>wrote:

@twojtasz https://github.com/twojtasz - an example would be awesome - I
was not able to find documentation on how to add these bindings.
If I can get your example working, maybe I will add a specific example via
a PR on how to get the camera image going so it is more clear to others in
the future.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/uber/xviz/issues/607#issuecomment-671448609, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AALUBXATTMKH34PATI4DN6DSAAMA5ANCNFSM4PGEZ63A
.

@aalibasic @jrabary I have an example Jupyter notebook in another repo
https://github.com/twojtasz/twojtasz.github.io/blob/master/jupyter-notebooks/XVIZ Simulated Scenario.ipynb
I don't have documentation for this yet, and it expects the latest 0.1.0a4 release for xviz-avs.
Let me know if you run into problems or have questions.

@twojtasz - is there a way to do it without using the declarative ui?
We are using the javascript based ui with the python xviz server. Or is there an example you can point me to?

has anyone gotten this working.  When I attempt it I get an error
xviz: Unexpected time_series duplicate: /vehicle/velocity
(anonymous) @ 34632506-5d4c-4ddd-9556-23e16f5c6ddf:8
(anonymous) @ 34632506-5d4c-4ddd-9556-23e16f5c6ddf:8
(anonymous) @ 34632506-5d4c-4ddd-9556-23e16f5c6ddf:8
t.parseStreamTimeSeries @ 34632506-5d4c-4ddd-9556-23e16f5c6ddf:8
(anonymous) @ 34632506-5d4c-4ddd-9556-23e16f5c6ddf:17
t.default @ 34632506-5d4c-4ddd-9556-23e16f5c6ddf:17
y @ 34632506-5d4c-4ddd-9556-23e16f5c6ddf:8
d @ 34632506-5d4c-4ddd-9556-23e16f5c6ddf:8
t.parseXVIZMessageSync @ 34632506-5d4c-4ddd-9556-23e16f5c6ddf:8
t.onmessage @ 34632506-5d4c-4ddd-9556-23e16f5c6ddf:8
only the first vehicle/velocity is plotted and speed does not change?

has anyone gotten this working.  When I attempt it I get an error
xviz: Unexpected time_series duplicate: /vehicle/velocity
(anonymous) @ 34632506-5d4c-4ddd-9556-23e16f5c6ddf:8
(anonymous) @ 34632506-5d4c-4ddd-9556-23e16f5c6ddf:8
(anonymous) @ 34632506-5d4c-4ddd-9556-23e16f5c6ddf:8
t.parseStreamTimeSeries @ 34632506-5d4c-4ddd-9556-23e16f5c6ddf:8
(anonymous) @ 34632506-5d4c-4ddd-9556-23e16f5c6ddf:17
t.default @ 34632506-5d4c-4ddd-9556-23e16f5c6ddf:17
y @ 34632506-5d4c-4ddd-9556-23e16f5c6ddf:8
d @ 34632506-5d4c-4ddd-9556-23e16f5c6ddf:8
t.parseXVIZMessageSync @ 34632506-5d4c-4ddd-9556-23e16f5c6ddf:8
t.onmessage @ 34632506-5d4c-4ddd-9556-23e16f5c6ddf:8
only the first vehicle/velocity is plotted and speed does not change?

# Build your metadata message with the UIBuilder.

            ui_builder = xviz_avs.builder.XVIZUIBuilder()
            graphs = ui_builder.panel('Metrics')
            graphs.child(ui_builder.metric(["/vehicle/velocity"], title="Metrics", description="Vehicle Velocity"))
            ## Add more children for more graphs.
            ui_builder.child(graphs)
            builder = xviz_avs.XVIZMetadataBuilder()
            builder.stream('/vehicle/velocity').category(xviz_avs.CATEGORY.TIME_SERIES).type(xviz_avs.SCALAR_TYPE.FLOAT).unit('km/h')

Is working for me.
The UIBuilder declarative UI is hooking up to the ReactComponent
          <XVIZPanel log={log} name="Metrics" />

At least in the "getting started" lab/examples, hooking in your own data requires you to declare the stream_id <-> Metric.name portions as part of the process.
I also found it confusing how I had to do both react and seemingly python declarative UI, but it's like a container in a container.
GL

How to add a time series chart and image (video) visualization in the python example, can anyone share sample example code for at least one time series chart with proper documentation/explanation.


Flask Admin doesn't work with host_matching = True

I Googled to see if there was some workaround for this but couldn't find any mention of host matching in the documentation for Flask Admin. After looking at the source briefly, I'm not sure how to proceed.
I have an application that requires that I set app.url_map.host_matching = True so I can route different domain requests appropriately. When I do this the basic Flask Admin example here stops working. I'm assuming that this is because the admin URL is now unmatched.
Edit
I've been looking at the routes that are created when I run admin = Admin(app, name='microblog', template_mode='bootstrap3') they look like this:
In [3]: app.url_map
Out[3]:
Map([<Rule '/admin/' (OPTIONS, HEAD, GET) -> admin.index>,
 <Rule '<host>.bar.io|/static/<filename>' (OPTIONS, HEAD, GET) -> secure_file.static>,
 <Rule '/admin/static/<filename>' (OPTIONS, HEAD, GET) -> admin.static>,
 <Rule '<host>.derp.com|/foo' (OPTIONS, HEAD, GET) -> secure_file.foo>,
 <Rule '<host>.foo.com|/' (OPTIONS, HEAD, GET) -> bonus.index>,
 <Rule '<host>.bar.io|/' (OPTIONS, HEAD, GET) -> secure_file.index>])

As you can see there is no <host>| rule to match so the URLs never get matched and don't route. Perhaps when instantiating Admin if app.url_map.host_matching = True the user should provide a host paramater to be added to the route?

After some further hacking around in base.py I confirmed that adding a host='foo.bar' parameter to the add_url_rule function indeed makes the route work. It's not so easy to use a pattern like <host> though because none of the downstream functions are expecting that so things break.
In addition flask itself is broken, when it makes static routes it also doesn't take into account the host parameter as per this issue which has been open for 15 months. So instead you have to manually register the static file route like so:
app.add_url_rule('/static' + '/<path:filename>', endpoint='secure_file.static',
                 view_func=app.send_static_file, host=host_pattern)

Hope all this helps...

@blark I found similar, adding host='foo.bar' makes the route work, except all the flask-admin static files are not found. Did you find some way to overcome this?

Is there any prioritisation/scope for fixing this?

I have provisionally put up a patch that should add basic host matching support (ie a single explicit host; no Werkzeug URL variables): https://github.com/pallets-eco/flask-admin/compare/master...samuelhwilliams:flask-admin:add-host-support
Will try and flag this on pallets-eco to get some discussion and think about a PR.


Apply clang format

First cut of applied Clang format.  There's quite a lot, and I think we still need to tune this.

Reopened with just the clang format rules.  Will create a new PR with some files converted.


Story 1265616: [SDK] Disallow spaces in connection-fields name values

Add tests for connection field name validation
Add regex validation for connection field name

Hi, @saugatt! Thanks for opening this PR!

In the file connector-packager/tests/test_xsd_validator.py:

Line 200:1: W293 blank line contains whitespace
Line 200:1: W391 blank line at end of file
Line 198:1: W293 blank line contains whitespace
Line 193:1: W293 blank line contains whitespace
Line 189:121: E501 line too long (121 > 120 characters)

For reference: Error Code Reference, PEP8, Python code style


fixing some errors

AI Code Review is in progress (usually takes <3 minutes unless it's a very large PR).

Changelist by Bito
This pull request implements the following key changes.

Key Change
Files Impacted

Bug Fix - Database Parameter Type Corrections and Session Management

- add_cart_s-information.php - Fixed parameter types in database queries and added session management

- logincheck_users.php - Added order ID handling

Feature Improvement - UI Asset and Layout Updates

- collection.svg - Updated collection icon SVG with new design

- order_his.svg - Updated order history icon SVG with new design

- index.php - Modified icon sizing from width to height-based

- menu.php - Removed redundant 'Recommended Dishes' heading


Label is clickable with checkbox

Normally if you use checkbox you can click anywhere in form-control include label.
I want to separate click behavior to just only checkbox.
I want to add more icon to click and with label.
Can I do that?

I hope I understand correctly. You want this code:

    Remember me
    <input type="checkbox" checked="checked" class="checkbox">

but you don't want the checkbox to change when you click the Remember me text.
In that case, you can use a
 instead of

    Remember me
    <input type="checkbox" checked="checked" class="checkbox">

Let me know if you have any questions

I hope I understand correctly. You want this code:

    Remember me
    <input type="checkbox" checked="checked" class="checkbox">

but you don't want the checkbox to change when you click the Remember me text. In that case, you can use a
 instead of

    Remember me
    <input type="checkbox" checked="checked" class="checkbox">

Let me know if you have any questions

That's do the job. Thank you!


Extremely slow running: presumably too many objects created

Running is absurdly slow, even when the population size is a few thousand.
Possible Diagnosis
This is caused by a combination of

creating objects for differentiable functions (by itself this is fine)
passing the methods that create such objects using call by name
as a result, a whole bunch of new differentiable function objects are created every time the function is to be applied, i.e. for every element in the population.
this is slow, and also creates garbage so rapidly that the system starts crawling.

Example

suppose we have

  val f = ...
  val a : DiffbleFunction...

  def m = movefn(f)
  val b = vsum(a, m)

Then vsum is an operation to which m is passed by name, i,e,, not computed and passed but passed as a definition.
This definition involves creation of a new object every time a method (such as apply) of m is called, i.e., for every term.
We can avoid some cases like this with a val, but as we have iterated sums, we will be passing defs, and so creating a lot of objects.

Solution

Avoid the call by name recursion (which happens when we use the DiffbleFunction constructor).
Instead have separate case classes for moves, sums etc, (or an eager constructor for Diffble Functions).
Use some other method for islands, when we get to it - the problematic method was used for enough generality to easily include islands.

Addendum
Using repeated summing for a bigsum of differentiable functions is needlessly inefficient. There should just be a big sum case class.

Naively switching to call by value did not solve the problem.

The above may miss the key point. There are probably too many objects being created, because differentiable functions are created repeatedly. But the real cause may be because the apply method is a def (as it needs to be) in terms of given functions, which are in terms of apply methods of other objects. This means the other objects are created every time. Namely, we have
	trait DiffbleFunction[A, B] extends Any{self =>
      def apply(a: A): B

    	def grad(a: A) : B => A
...
}

We should instead have values func and grad
trait DiffbleFunction[A, B]{
   val func: A => B

   val grad : A => B => A

   def apply(a: A) = func(a)
...
}

with these being lazy in many concrete sub-classes. This should avoid objects being repeatedly created (can check by logging on creating objects).

Sample REPL seesion
Illustrates that

def creates new objects on each call
val does only on construction
lazy val does only on first call.

@ case class Fn(func: Int => Int)
defined class Fn
@ case class Fn(func: Int => Int){
  println("object created")
  }
defined class Fn
@ Fn((x: Int) => x *2).func(2)
object created
res6: Int = 4
@ Fn((x: Int) => x *2).func(3)
object created
res7: Int = 6
@ val D = Fn((x: Int) => x *2)
object created
D: Fn = Fn(<function1>)
@ D.func(2)
res9: Int = 4
@ D.func(3)
res10: Int = 6
@ val f = Fn((x: Int) => x *2).func
object created
f: Int => Int = <function1>
@ f(2)
res12: Int = 4
@ f(3)
res13: Int = 6
@ def g(a: Int) = Fn((x: Int) => x *2).func(a)
defined function g
@ g(2)
object created
res15: Int = 4
@ g(3)
object created
res16: Int = 6
@ lazy val h = Fn((x: Int) => x *2).func
h: Int => Int = <lazy>
@ h(2)
object created
res18: Int = 4
@ h(3)
res19: Int = 6

Avoided most defs - only ones remaining are those of the implicit conversion from AtomicMoves. Runs slowly still. Should correct this, but  also investigate running behaviour in detail (example - use futures, log).

Nothing uses defs now, but still runs slowly.

Maybe we should do a proper runtime profiling of the code. Figure out which function calls take up the most time? I don't know about scala profiling tools, but we could try and use visualvm. That way, we can figure out if the bottleneck is because of the defs, or something else.

Yes, we should. I have never used tools like these. I will also try just
varying various things and logging while running concurrently.
On Mon 6 Jul, 2015 6:12 pm Sayantan Khan<EMAIL_ADDRESS>wrote:

Maybe we should do a proper runtime profiling of the code. Figure out
which function calls take up the most time? I don't know about scala
profiling tools, but we could try and use visualvm. That way, we can figure
out if the bottleneck is because of the defs, or something else.
—
Reply to this email directly or view it on GitHub
https://github.com/siddhartha-gadgil/ProvingGround/issues/33#issuecomment-118842279
.

I'm getting some compiler warning about the method apply being deprecated in DiffbleFunction. Is that expected behaviour?

Yes. You should use func.
On Mon 6 Jul, 2015 6:35 pm Sayantan Khan<EMAIL_ADDRESS>wrote:

I'm getting some compiler warning about the method apply being deprecated
in DiffbleFunction. Is that expected behaviour?
—
Reply to this email directly or view it on GitHub
https://github.com/siddhartha-gadgil/ProvingGround/issues/33#issuecomment-118849047
.

It seems that this particular method AbstractSeq.equals() is taking up roughly 40 to 50% cpu time.

This will happen when comparing whether two sequences of moves are equal or
not, when adding together two finite distributions. We even get this while
applying moves, as moves may not be injective. So the population is
converted to a sequence, mapped by moves and then flattened, with
Weighted(a, x) and Weighted(a, y) joined together.
The number of such comparisons is the square of the population being
constructed - actually the square of the raw population, i.e., without
merging. This is large - while evolving to 3 steps, the population size is
more than 2000, so about 5 million comparisons need to be made.
This seems inevitable as a nature of the problem, not a limitation of code.
We can manage this by pruning populations (or selecting sub-populations on
which to make moves). We can also run in parallel to speed up.
For the present, I see even 3 steps should give interesting results for
learning. I'll write about this in the wiki.
On Mon, Jul 6, 2015 at 6:50 PM Sayantan Khan<EMAIL_ADDRESS>wrote:

It seems that this particular method AbstractSeq.equals() is taking up
roughly 40 to 50% cpu time.
—
Reply to this email directly or view it on GitHub
https://github.com/siddhartha-gadgil/ProvingGround/issues/33#issuecomment-118852471
.

Inevitable is an overstatement - for forward propagation at least, when
the moves are injective, we can use Sequences or Vectors instead of sets to
avoid the comparison slowing. Vectors are good for sampling too. But when
we compute a feedback we do need to fold a finite distribution, i.e.,
aggregate elements, so we do not have much gain directly.
In the longer run, we should abstract finite distributions with sets as one
representation.
On Tue, Jul 7, 2015 at 6:46 AM Siddhartha Gadgil <
<EMAIL_ADDRESS>wrote:

This will happen when comparing whether two sequences of moves are equal
or not, when adding together two finite distributions. We even get this
while applying moves, as moves may not be injective. So the population is
converted to a sequence, mapped by moves and then flattened, with
Weighted(a, x) and Weighted(a, y) joined together.
The number of such comparisons is the square of the population being
constructed - actually the square of the raw population, i.e., without
merging. This is large - while evolving to 3 steps, the population size is
more than 2000, so about 5 million comparisons need to be made.
This seems inevitable as a nature of the problem, not a limitation of
code. We can manage this by pruning populations (or selecting
sub-populations on which to make moves). We can also run in parallel to
speed up.
For the present, I see even 3 steps should give interesting results for
learning. I'll write about this in the wiki.
On Mon, Jul 6, 2015 at 6:50 PM Sayantan Khan<EMAIL_ADDRESS>wrote:

It seems that this particular method AbstractSeq.equals() is taking up
roughly 40 to 50% cpu time.
—
Reply to this email directly or view it on GitHub
https://github.com/siddhartha-gadgil/ProvingGround/issues/33#issuecomment-118852471
.

Alternatively, at least for the case classes we have, we could override equality with a faster implementation using hashes. Since all our data structures are immutable, we can compute the hash value only once, when the data structure is first constructed, and subsequently compare the hash values instead of comparing the actual sequence. This will be amortized O(1) instead of O(n) and could speed things up.

And for sequences where order is not important (like finite distributions), we combine the hash values of the elements of the FD using a commutative operator to get the hash value for the FD. On the other hand, where the order is important, like sequences of moves, we combine the hash values using a non commutative operator.

That will help, but not solve the main problem. This is not slowness in
comparing sequences, but rather the large number of pairs of sequences that
need to be compared. As we compare all pairs, this scales by the square of
the population, which grows fast (without pruning or selecting at some
stage). Speeding up each comparison will reduce the scale factor, but we
are already seeing a slowdow with sequences of length 3 or 4.
On Tue, Jul 7, 2015 at 11:09 AM Sayantan Khan<EMAIL_ADDRESS>wrote:

And for sequences where order is not important (like finite
distributions), we combine the hash values of the elements of the FD using
a commutative operator to get the hash value for the FD. On the other hand,
where the order is important, like sequences of moves, we combine the hash
values using a non commutative operator.
—
Reply to this email directly or view it on GitHub
https://github.com/siddhartha-gadgil/ProvingGround/issues/33#issuecomment-119078749
.

In that case we should probably make sure this runs well in parallel. What changes will we need to make in the code to make it run in parallel?

I can think of some things based on the conjecture that most of the time is
spent in Weighted.flatten, which involves grouping together various
elements. This is by no means the only way to parallelize, but the best I
could think of for now.

Firstly, we have an explicit bigsum (over moves in our case) rather than
iterated sums, so we have more control.
We split each sequence (a sequence corresponds to a move) into groups
based on hash code (or some more semantic invariant), so that only elements
in the same group can be equal. This can be done in parallel for the
different groups.
For each sequence, we flatten together those in a group. Again different
groups can be done in parallel.
We then fold together corresponding classes of the different sequences,
again in parallel.
Finally, we can concatenate sequences without any need to flatten.
All this can be done idiomatically by flatMapping futures, without any
need for explicitly sequencing the steps.
We should probably be using vectors rather than sequences.
In the actual HoTT case, we can naturally split by types.
Even if there is no a priori spltting, we can do a flattening after first
splitting a sequence (vector will be much better) by indices, and then
doing the above.

On Tue, Jul 7, 2015 at 6:21 PM Sayantan Khan<EMAIL_ADDRESS>wrote:

In that case we should probably make sure this runs well in parallel. What
changes will we need to make in the code to make it run in parallel?
—
Reply to this email directly or view it on GitHub
https://github.com/siddhartha-gadgil/ProvingGround/issues/33#issuecomment-119194435
.

The parallelization mentioned above assumes the internal representation for
Finite Distributions is not a set as at present, but a vector/sequence.
On Tue, Jul 7, 2015 at 7:11 PM Siddhartha Gadgil <
<EMAIL_ADDRESS>wrote:

I can think of some things based on the conjecture that most of the time
is spent in Weighted.flatten, which involves grouping together various
elements. This is by no means the only way to parallelize, but the best I
could think of for now.

Firstly, we have an explicit bigsum (over moves in our case) rather than
iterated sums, so we have more control.
We split each sequence (a sequence corresponds to a move) into groups
based on hash code (or some more semantic invariant), so that only elements
in the same group can be equal. This can be done in parallel for the
different groups.
For each sequence, we flatten together those in a group. Again different
groups can be done in parallel.
We then fold together corresponding classes of the different sequences,
again in parallel.
Finally, we can concatenate sequences without any need to flatten.
All this can be done idiomatically by flatMapping futures, without any
need for explicitly sequencing the steps.
We should probably be using vectors rather than sequences.
In the actual HoTT case, we can naturally split by types.
Even if there is no a priori spltting, we can do a flattening after
first splitting a sequence (vector will be much better) by indices, and
then doing the above.

On Tue, Jul 7, 2015 at 6:21 PM Sayantan Khan<EMAIL_ADDRESS>wrote:

In that case we should probably make sure this runs well in parallel.
What changes will we need to make in the code to make it run in parallel?
—
Reply to this email directly or view it on GitHub
https://github.com/siddhartha-gadgil/ProvingGround/issues/33#issuecomment-119194435
.

The above method I sketched is needlessly complicated. All we have to do is:

Use a Vector for the pmf for Finite Distributions, not Set (so scala does
not try to flatten).
Flatten explicitly and only when needed.
When flattening:

Group by hash code of the element modulo N, for N parallel streams.
Flatten each one separately (as a Future)
When all futures are ready, fold using concatenation (there is a
Future.sequence method we can use).

On Tue, Jul 7, 2015 at 8:01 PM Siddhartha Gadgil <
<EMAIL_ADDRESS>wrote:

The parallelization mentioned above assumes the internal representation
for Finite Distributions is not a set as at present, but a vector/sequence.
On Tue, Jul 7, 2015 at 7:11 PM Siddhartha Gadgil <
<EMAIL_ADDRESS>wrote:

I can think of some things based on the conjecture that most of the time
is spent in Weighted.flatten, which involves grouping together various
elements. This is by no means the only way to parallelize, but the best I
could think of for now.

Firstly, we have an explicit bigsum (over moves in our case) rather
than iterated sums, so we have more control.
We split each sequence (a sequence corresponds to a move) into groups
based on hash code (or some more semantic invariant), so that only elements
in the same group can be equal. This can be done in parallel for the
different groups.
For each sequence, we flatten together those in a group. Again
different groups can be done in parallel.
We then fold together corresponding classes of the different sequences,
again in parallel.
Finally, we can concatenate sequences without any need to flatten.
All this can be done idiomatically by flatMapping futures, without any
need for explicitly sequencing the steps.
We should probably be using vectors rather than sequences.
In the actual HoTT case, we can naturally split by types.
Even if there is no a priori spltting, we can do a flattening after
first splitting a sequence (vector will be much better) by indices, and
then doing the above.

On Tue, Jul 7, 2015 at 6:21 PM Sayantan Khan<EMAIL_ADDRESS>wrote:

In that case we should probably make sure this runs well in parallel.
What changes will we need to make in the code to make it run in parallel?
—
Reply to this email directly or view it on GitHub
https://github.com/siddhartha-gadgil/ProvingGround/issues/33#issuecomment-119194435
.


Update the DG: user stories, glossary, NFRs, use cases

Add the following to the DG, based on your project notes from the previous weeks.
Some examples of these can be found in the AB3 Developer Guide.
Target user profile, value proposition, and user stories: Update the target user profile and value proposition to match the project direction you have selected. Give a list of the user stories (and update/delete existing ones, if applicable), including priorities. This can include user stories considered but will not be included in the final product.
Use cases: Give use cases (textual form) for a few representative user stories that need multiple steps to complete. e.g. Adding a tag to a person (assume the user needs to find the person first)
Non-functional requirements: Note: Many of the given project constraints can be considered NFRs. You can add more. e.g. performance requirements, usability requirements, scalability requirements, etc.
Glossary: Define terms that are worth recording.

User Stories: Wang Bin
NFR and Glossary: Teng Hon
Use Cases: Pei Yuan
Target user profile, value proposition: Calvin

Done NFR and Glossary

Done Use Cases


Fix. Properties name and key should be under databaseExternal.urlFromExistingSecret

Thanks for submitting a PR! Please check the boxes below:

[x] I have run pre-commit or manually with
npx pretty-quick to check linting
[x] I have filled in the "Changes" section below?

Changes
Substitute databaseExternal.name with databaseExternal.urlFromExistingSecret.name
Substitute databaseExternal.key with databaseExternal.urlFromExistingSecret.key
This properties should be under urlFromExistingSecret. I attempted a helm install with them as per the current docs and my command file. After setting them up correctly, everything ran smoothly.
They are also correctly referenced in the same docs page

Great thanks for the contribution!


Okavango use case

Proposed changes
Creation of a Wetland Inundation and Vegetation Dynamics notebook.
Closes issues

Closes Issue #216

Checklist (replace [ ] with [x] to check off)

[ ] Remove any unused Python packages from Load packages
[ ] Remove any unused/empty code cells
[ ] Remove any guidance cells (e.g. General advice)
[ ] Ensure that all code cells follow the PEP8 standard for code. The jupyterlab_code_formatter tool can be used to format code cells to a consistent style: select each code cell, then click Edit and then one of the Apply X Formatter options (YAPF or Black are recommended).
[ ] Include relevant tags in the final notebook cell and re-use tags if possible
[ ] Clear all outputs, run notebook from start to finish, and save the notebook in the state where all cells have been sequentially evaluated

Hi @kmfundisi, started a notebook and tested water extent mapping for a small area in Okavango. Thoughts are welcome. Will continue to experiment with more land cover types.

@fangfy can we migrate this notebook into its own folder in the Use_cases/ directory? All the necessary data (shapefiles, results etc) can also be stored there, following the model of the Lake Baringo use case

@fangfy Just trying to get up to speed. Can you point me to the folder where the notebook is contained?

@mhalabisky the notebook is here


[ci] android tests

Just throwing up an issue to track some issues with Android CI flakiness;

Detox sometimes fails to install APK / start app (times out)

https://circleci.com/gh/react-native-community/react-native-netinfo/343

Potential workaround: I think this is just down to lack of host gpu support on Circle CI & gpu emulation being slow - could increase the timeout

Tests process does not exit after running tests; continues until Jest times out and reports that it failed to exit (still a test success)

https://circleci.com/gh/react-native-community/react-native-netinfo/328 (see end of  Run Tests (API 28) logs)

Potential fix: Add a Jest afterAll() global and a await device.terminateApp(); or process.exit(0)

I can take a look at these sometime next week; unless someone beats me too it 🙃

Closing this as the Android tests are now working as expected.


Link broken on Carbon Motion page

Detailed description

Describe in detail the issue you're having.
I noticed that the link to the IBM Motion Package on the Carbon Motion page (https://www.carbondesignsystem.com/guidelines/motion/basics) gives me a 404 error from Github.

Is this issue related to a specific component?
Not a component, the Carbon website

What did you expect to happen? What happened instead? What would you like to see changed?
I think it should go to this page instead: https://github.com/carbon-design-system/carbon/tree/master/packages/motion

What browser are you working in?
Chrome

Steps to reproduce the issue

Go to this page: https://www.carbondesignsystem.com/guidelines/motion/basics
Click on "IBM Motion Package"

Additional information

Thanks for finding this, we will get it updated on the website asap! The motion package is now part of our mono-repo, https://github.com/carbon-design-system/carbon/tree/master/packages/motion


fix grafana dashboard for keycloak 23.0.7 / keycloak-spi-metrics 5.0.0

What

Put grafana dashboard under version control
Fix dashboard for keycloak 23.0.7 / keycloak-metrics-spi  5.0.0

Changes:

switch from graph (angular js deprecated) to timeseries in several widgets
in widget and in variables, fix field names : usually needed to add total :

keycloak_logins -> keycloak_logins_total
keycloak_response_errors -> keycloak_response_errors_total
keycloak_registrations -> keycloak_registrations_total
keycloak_failed_login_attempts -> keycloak_failed_login_attempts_total
keycloak_registrations_errors -> keycloak_registrations_errors_total
...

in widgets, update description to state it's for all instances when there is no instance filter

Checklist
I had to manipulate a little bit the dashboard before publishing it as we have specificities that I needed to strip out. Consequently the version I pushed here is not 100% error proof.
Additional Notes
On openshift, replace kubernetes_pod_name by pod_names

thanks @ptrovatelli


cephfs: specify monitors explicitly

Being able to override monitors via secrets makes it not the best idea to store them in the ceph config file - things can get out of sync.
This PR makes it so that the monitor list is always passed explicitly to all ceph/mount calls instead of storing it in the ceph.conf. As a bonus, ceph.conf is now generated and stored only once.

a few minor fixes where wrong ceph user IDs were passed, which led to errors when cleaning unused keyrings ("file not found")

PTAL @rootfs

@gman0 Can keyring file switch to key? Does it work for ceph-fuse?

let's pick this up.

@rootfs ah cool! AFAIK that didn't work with ceph-fuse Luminous. I'll cook up another PR with this, thanks for the suggestion! The only problem here is stripping the keys from the logs.


READMEs: Update + fix typos + reformat

(I didn't update the SLAVE instructions, just the MASTER ones.)

FYI: I'm merging this so we can archive this repo in a somewhat better state.


"Sălătrucu", "Văleni" are listed in the drop-down menu

Description:
When user writes "Sălătrucu", "Văleni" the locations appear in the drop-down menu next to the comune and the county witch is a part according to the law
Precondition:
The website is up an running.

Step 1
Write in the search bar "Sălătrucu"

Expected results
The location appears in the drop-down menu as "Sălătrucu, Argeș (Sălătrucu)"

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.


feat(editors/ied): Changed icon of IED Editor

It is a bit strange that the second commit is the whole snapshot file. I would have guessed that only the icon name is changed. Did you not have the snapshot on your machine?
Closes #467 .


Add system activation type

Ah, I forgot about those (I have the automatic SnoozeAndDismiss covered via ToastActionsSnoozeAndDismiss, but I forgot the individual options on the buttons themselves). Thanks for noticing that they're missing!
I would prefer to add these in a way that abstracts the implementation away from the API. If we just added the activation type "System", then the API would allow people to generate invalid payloads (for example, if you use "system", then you have to set the arguments to either "snooze" or "dismiss", and if you choose "snooze", you also have to provide a hint-inputId that maps to a SelectionBox... there's too many pitfalls if we just added the enum. I'm working on adding these like follows...
new ToastButtonDismiss();
new ToastButtonDismiss("my dismiss content");

new ToastButtonSnooze(mySelectionId);
new ToastButtonSnooze("my snooze content", mySelectionId);

"snooze" also requires those selection items to have ID's in the format of minutes... I don't think the API will be able to validate that, but at least using the method above, it's much less likely for the API user to generate something incorrectly.

I just added snooze and dismiss like I talked about above
new ToastButtonDismiss();
new ToastButtonDismiss("my dismiss content");

new ToastButtonSnooze();
new ToastButtonSnooze("my snooze content");
new ToastButtonSnooze("my snooze content")
{
    SelectionBoxId = "snoozeTime"
};

This is certainly a nice solution!


Add dataset: odeuropa_smell_objects

A URL for this dataset
https://doi.org/10.5281/zenodo.6367776
Dataset description
From the Zenodo page:

This dataset is released as part of the Odeuropa project. The annotations are identical to the training set of the ICPR2022-ODOR Challenge.
It contains bounding box annotations for smell-active objects in historical artworks gathered from various digital connections.
The smell-active objects annotated in the dataset either carry smells themselves or hint at the presence of smells.
The dataset provides 15484 bounding boxes on 2116 artworks in 87 object categories.
An additional csv file contains further image-level metadata such as artist, collection, or year of creation.

Object detection datasets are time consuming to collect and there are relativlely few datasets for object detection that use LAM data. Those that do exist often use the output of one of the various YOLO models which may be of some interest but often includes categories which are unlikely to be particularly useful for research/curation of LAM collections. This dataset, in contrast, includes categories related to smell: a topic of interest to both art historians and social historians. As a result, this dataset offers a much richer exploration of the possibilities of using object detection with historical paintings.
Dataset modality
Image
Dataset licence
Creative Commons Attribution 4.0 International
Other licence
No response
How can you access this data
Other
Confirm the dataset has an open licence

[X] To the best of my knowledge, this dataset is accessible via an open licence

Contact details for data custodian
No response

Happy to help anyone who wants to work on this. I have a WIP loading script for another COCO formatted dataset: https://huggingface.co/datasets/biglam/nls_chapbook_illustrations

Also, I really want to call this dataset smelly_objects...

I'd love to work on this! Will be a good change from the text datasets so far. #self-assign

#self-assign

Awesome, and don't worry if you can't finish this before you go away. It can wait until you're back too 🙂

Hopefully, I should be able to get it done. From the Zenodo page:

Due to licensing issues, we cannot provide the images directly, but instead provide a collection of links and a download script.

Should the dataset just contain the links to the images then?

Hopefully, I should be able to get it done. From the Zenodo page:

Due to licensing issues, we cannot provide the images directly, but instead provide a collection of links and a download script.

Should the dataset just contain the links to the images then?

Yes I think that would be best for this one. We can provide example code for downloading the images in the datacard.

@davanstrien This dataset has a lot of associated metadata
       ['File Name', 'Artist', 'Title', 'Query', 'Part', 'Earliest Date',
       'Latest Date', 'Margin Years', 'Genre', 'Material', 'Medium',
       'Height of Image Field', 'Width of Image Field', 'Type of Object',
       'Height of Object', 'Width of Object', 'Diameter of Object',
       'Position of Depiction on Object', 'Current Location',
       'Repository Number', 'Original Location', 'Original Place',
       'Original Position', 'Context', 'Place of Discovery',
       'Place of Manufacture', 'Associated Scenes', 'Object Categories',
       'Related Works of Art', 'Type of Similarity', 'Inscription',
       'Text Source', 'Bibliography', 'Photo Archive', 'Image URL',
       'Details URL', 'Additional Information']

Should they all be included in the dataset? Most of them are missing, from a cursory glance at the data. Current Location, Earliest Date, Latest Date, Genre, Material and Medium are populated for most of the images. I was thinking some of the fields like Material and Medium could be used for classification, maybe

@davanstrien This dataset has a lot of associated metadata
       ['File Name', 'Artist', 'Title', 'Query', 'Part', 'Earliest Date',
       'Latest Date', 'Margin Years', 'Genre', 'Material', 'Medium',
       'Height of Image Field', 'Width of Image Field', 'Type of Object',
       'Height of Object', 'Width of Object', 'Diameter of Object',
       'Position of Depiction on Object', 'Current Location',
       'Repository Number', 'Original Location', 'Original Place',
       'Original Position', 'Context', 'Place of Discovery',
       'Place of Manufacture', 'Associated Scenes', 'Object Categories',
       'Related Works of Art', 'Type of Similarity', 'Inscription',
       'Text Source', 'Bibliography', 'Photo Archive', 'Image URL',
       'Details URL', 'Additional Information']

Should they all be included in the dataset? Most of them are missing, from a cursory glance at the data. Current Location, Earliest Date, Latest Date, Genre, Material and Medium are populated for most of the images. I was thinking some of the fields like Material and Medium could be used for classification, maybe

My own feeling would be to include as much as possible. One option if things are often missing would be to put some of this metadata in an additional metadata column as a dictionary? This way it doesn't get lost but also is slightly less distracting than having a lot of columns with mostly missing data?

Yeah, I was building out the features as follows:
features = datasets.Features(
                {
                    "id": datasets.Value("string"),
                    "url": datasets.Value("string"),
                    "annotations": datasets.Value("string"),
                    "date": datasets.Value("string"),
                    "genre": datasets.Value("string"),
                    "material": datasets.Value("string"),
                    "metadata": {
                        "artist": datasets.Value("string"),
                        "query": datasets.Value("string"),
                        "title": datasets.Value("string"),
                        "height": datasets.Value("string"),
                        "width": datasets.Value("string"),
                    }
                }
            )

I'll probably get back to this in about two weeks, after I come back from vacation

I'll probably get back to this in about two weeks, after I come back from vacation

Have a great vacation!

@davanstrien I'm back to working on this dataset, but it seems like the URLs aren't accessible
Example from the first image in the metadata document:
URL: http://www.sigecweb.beniculturali.it/images/fullsize/ICCD50007114/ICCD4644613_SBAS RM 223305.jpg

@shamikbose hey, hope you had a good break!
I'll try and take a look at this too but also tagging @kiymetakdemir who works on this project and might be able to help with this.

Hi @shamikbose, can you check it again? Now I tried to download the images with the given script but I haven't encountered any error, it downloaded successfully.

@kiymetakdemir I was able to download them today. Thanks!

@kiymetakdemir I get an error for this URL (http://<IP_ADDRESS>/download/07876601/flc0596164z_p?Expires=1610722060&Signature=SX15SE0B~KbZ7yvkTJtis1rsKysZddvhsxJzZSZ7oZoxqd~NNsKp22iYZGBQViGXMy7zwTDCYxu-Qan2O0aq2QxizENey~CF4WIV5-~bHwEZZjrmCoBdWDEeS0Y6XNajZ6DYzWQolxkiGWoqLs~Bw0j4GSrQef7QvgQciIWDlTE_&Key-Pair-Id=APKAJGHHKKX2FHRP63AQ) It's not accessible


How can I combine this with slider?

Small images with sliding and bigger images on click with slider.

There's a demo for exactly that.

For those, who want to create a slider with thumbnails and a slider with big images, you should separately
init .slick() for small slider and .slickLightbox() for fullscreen version.


Add https://everid.net/

now points to https://everest.org/ which is included in the readme

Fixed by 00c7b009f6f1e33d5984abfc027b21c09bc96e9f


display-managers: fix pam_env.so usage

Fixed usage of pam_env.so PAM module in lightDM and GDM.

Looks good thanks.


Revert uploading of rundir artifacts to bucket

Reverts #496.

/hold
Awaiting merge of https://github.com/ppc64le-cloud/kubetest2-plugins/pull/182

/hold cancel


Why use module.exports over export

In app.ts is there a reason to use
module.exports = {}

over Typescript's
export {}

Well, “exports” itself is never returned! It is just a reference to module.exports; a convenience variable to help module authors write less code.

@aaroncolaco
I've added PR with TS2.7 and ECMA script modules support enabled: #85

@peterblazejewicz awesome! Thanks.


#28 - restarting quizzes

What's in the PR

optional button that restarts quizzes (one or many Hanzi)
show fadeout/fadein of canvases when restarting quizzes
update readme

How to test manually

create maobi cards with one and/or multiple Hanzi
add restart quiz button
complete some/all/none strokes of Hanzi and click restart button

Documentation

[x] PR updates documentation

It looks nice, but when I try to restart during a reveal, nothing happens. Is it possible to let restart restart even during reveal?

It is not easily possible without any side effects. I quickly tested two variants.
(1) Allow invoking character-reveal even when there is a reveal animation currently in progress. Unfortunately, I do not see any cancel-animation method in HanziWriter. I tried several things including setCharacter (which is supposed to cancel quizzes and cancel animations). HanziWriter seemingly keeps some internal state, which make the next animation flicker and cancel unexpectedly. This is easily reproducible.
(2) I also tried restarting quizzes while an animation is in progress (as suggested). This works better, likely also because for a restart the whole HanziWriter container div is re-created. Still, repeatedly using reveal character animations and then cancelling them with restart-quiz causes similar flicker effects and canceled animations. It is more difficult to reproduce.
I would probably keep it as-is in favor of stability and less unexpected behavior.

What's the bug related to flickering and messing up on the next animation? Could you open an issue in the hanzi-writer repo? Would be happy to fix the issue!
Calling writer.showCharacter() or writer.hideCharacter() should cancel any running animations. It's also not a problem to add a writer.cancelAnimation() method to HanziWriter if needed, but I'm not sure what the method should do - ex, immediately show the whole character or immediate hide the character? There's also a writer.pauseAnimation() method which will stop the currently running animation until resumed.

Thanks for your input and for creating the HanziWriter library!
I will try to come up with a minimal example that reproduces the issue outside of Maobi and file a bug soon when I have more information about it.

I have investigated the problem more closely. Good news, it was not related to HanziWriter! I was not able to reproduce it with a minimal example outside of Maobi. HanziWriter behaves as expected, and my guess that there might be some internal state that is not fully cleared turned out to be not true.
The bug was in our implementation for the onComplete callback that is passed to HanziWriter.animateCharacter. The callback is not only invoked after finishing the animation, but also when the animation is cancelled. We call different methods of the current HanziWriter instance after a timeout, and not properly handling cancelled animations led to unexpected behavior.
To avoid similar issues in the future, we should refactor the JS code of Maobi to better deal with asynchonous behavior and animation states. The JS part has grown quite a bit with the new features without being restructured.
I resolved the issue and have implemented the suggested changes by @jcklie. Thanks again to @chanind for triggering this investigation.

Looks good, should we merge it now?

Looks good, should we merge it now?

Yes, thanks!


Add Template workflows for [repo name]

To add GitHub Actions workflows to your repository:

create this issue
add a new comment with the content below
replace [repo name] with your repository name in the format owner/repo, e.g. BSData/test.

/template-workflows-pr ghulteam/wh40k-ragnarok

/template-workflows-pr ghulteam/wh40k-ragnarok


Strongly requested to cancel.Import

The.Import 3.0 resource import is strongly requested to cause the editor to be very slow, and no global settings, and can not load external resources, greatly limiting the scalability of the engine
No global settings, resulting in many resources requiring manual settings
Why do you want to import in advance? Some resources are only for reference, or why do you need to import the tests automatically? What the engine needs most is the excellent packaging tools to update the game version

Your issue is a a bit hard to understand as a whole, it seems you request several things at once. Consider opening a separate issue for each.

As explained in the other issue, the main problem is that importing images is very slow. This will be fixed by doing background import eventually


improved foreground text in widgets without focus

For widgets' default state, use primaryColor with less opacity, instead of primaryTextColor.
Issue #85

Hi, this looks fine to me. I see another problem (at least, it was one for me): The styles of several widgets are entered twice (wit different settings):
QDateEdit,
QDateTimeEdit,
QSpinBox,
QDoubleSpinBox,
QTextEdit,
QLineEdit,
QPushButton {
  color: {{primaryColor}};
  background-color: {{secondaryDarkColor}};
  border: 2px solid {{primaryColor}};
  border-radius: 4px;
  height: {{36|density(density_scale, border=2)}}px;
}

QDateEdit,
QDateTimeEdit,
QSpinBox,
QDoubleSpinBox,
QTreeView,
QListView,
QLineEdit,
QComboBox {
  color: {{primaryTextColor}};
  padding-left: {{16|density(density_scale)}}px;
  border-radius: 0px;
  border-radius: 0px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  height: {{36|density(density_scale, border=2)}}px;
  background-color: {{secondaryColor|opacity(0.75)}};
  border: 2px solid {{secondaryTextColor|opacity(0.2)}};
  border-width: 0 0 2px 0;
}

@YeisonCardona This looks like a very important patch. Any possibility of merging? :)

Hmm wait a minute @gustavo-iniguez-goya ... Any idea why your original text looked like that (dark text on dark theme)? Is it a Qt library change maybe? Because the official screenshot for this theme shows that dark mode is working for the theme author, there's no color problem there:
https://github.com/UN-GCPDS/qt-material?tab=readme-ov-file#qt-material

Yeah @Arcitec . It seems a change from 2.12 to 2.14 https://github.com/UN-GCPDS/qt-material/issues/85#issuecomment-1429518785


Could provide Azure Storage examples?

I know we have supported Azure Storage, could provide Azure Storage examples?

I will try this weekend.


[Feature request] Add blog title to top bar

I'd like to ask if it is possible to add option to enable/disable blog title to top grey bar on the blog's main site.

Thank you for your feature request. I appreciate your interest in customizing the Zolarwind theme.
To add the blog title from the configuration file above the menu bar, you can modify the theme to suit your preferences. Here’s a simple way to do it:

Open the file /themes/zolarwind/templates/partials/header.html.
Insert the following code after line 10:<div class="pt-4 text-2xl font-bold text-gray-200">
  {{ config.extra.title | default(value="My Blog Title") }}
</div>

This will display the blog title above the menu bar, making it more personalized.
While I love the clean look of the menu bar as it is and don't plan to modify the Zolarwind theme myself, I strongly encourage you to tailor the theme to your needs and preferences. Customizing your blog will make it truly unique and reflective of your style.

Thank you for the hint and explaining of your motivation. I'd like to see blog title justified to right margin but I'll try to do it on my own :)

I'm closing this issue for now. If you have any further questions or suggestions, either reopen this issue or post a new one.


fx2trt converters aten::slice,aten::select and aten::matmul

Description
Fixes #1709
Fixed #1714

cc @wushirong for review.

In general, this diff is too big and includes multiple fixing purpose. This would make code sync on Meta side very likely to fail. Let't split this into a series of small diffs and make sure you only do one thing within a diff, i.e adding one converter and correspondent unit test.
Also I noticed you are trying to move existing code pieces around, the intention was good but we would likely to avoid this. New features or converters is welcomed.

Hi @wushirong, thanks for the review.


rootStaticFiles

Instead of directly serving the whole static folder at /:path*:
https://github.com/ream/ream/blob/d96bae0f853a37b1d2955994f9ce1c73da92b24a/packages/ream-core/lib/index.js#L157-L165
We should still copy static to output folder and add an option rootStaticFiles to serve files in output folder to root path, eg:
/_ream/favicon.ico will also be served as /favicon.ico when you have rootStaticFiles: ['favicon.ico']

Furthur changes for folder serving strategy:

public will be served through http server as /public (not sure why we need this)
static will be copied to dist/static instead of dist, then you can access it via /_ream/static
Importing static file in your app will generate files in dist/assets instead of dist/static

In short, ./static/foo.txt on your disk will be available at http://localhost:5000/_ream/static/foo.txt, and with option: rootStaticFiles: ['foo.txt'], it will be hoisted to http://localhost:5000/foo.txt

We now hoist all files in static folder to root path.


feat: Add an option to bootstrap a T3 app's auth for Web 3.0 apps

Is your feature request related to a problem? Please describe.
Authenticating a user on the Web 3.0 is a hard, but solved problem. However it requires lots of setup code for something that is crucial to the workflow of any application and I believe is something that could be useful to a lot of devs in the coming years, given the traction the Web 3.0 space is gaining.
Describe the solution you'd like to see
I'd like to work on adding an option or template to the CLI that includes an integration for siwe (Sign in with Ethereum), which integrates very well with NextAuth in case there's the interest of supporting this feature.
The current scenario of Web 3/Blockchain development has lots of end-to-end type-safe support, and integrates well with the tooling used by the T3 stack through hardhat and typechain. For example, on my app I have typings and interfaces automatically generated and connected for all of my smart contracts, available on my frontend through a package that uses react-query under the hood, wagmi
Given how well described, and aligned with the Type Safety paradigm of the T3 stack, I'd like to know if supporting this is in the interest of the maintainers, and would love to build it myself as a contribution to the ecossystem
Describe alternate solutions
We could add a reference link on the docs to the siwe/web 3 integration as reference if a fully integrated setup is not interesting
Additional information
No response

No


add psroi_align\psroi_pooling and light_head_rcnn

loss_bbox is not converge, other loss(loss_cls,loss_rpn_cls,loss_rpn_bbox) is converge.


Magnified image is frozen when portal placement set to 'over'

To reproduce:

Go to this code sandbox
Hover cursor over the image. The magnified image is locked into the left corner
Make any change in the code, e.g. change some dimensions slightly.
Somehow the zooming works properly after hot reload 🤔
Refresh the embedded sandbox browser
Zooming is broken again.

This behaviour was first observed in my local development environment, so it's not a problem with the sandbox. The zoomed image is also frozen in bundled code. This is currently blocking our migration from the original library to this new one.
Example component:
export default function App() {
  return (
    <div className="App">
      <ReactImageMagnify
        imageProps={{
          alt: "Wristwatch by Ted Baker London",
          src: "https://picsum.photos/id/1018/200"
        }}
        magnifiedImageProps={{
          width: 525.5 * 4,
          height: 397.202 * 4,
          src: "https://picsum.photos/id/1018/800"
        }}
        portalProps={{
          placement: "over"
        }}
      />
    </div>
  );
}

Might be related to https://github.com/gooftroop/react-image-magnify/issues/3

Hi @KrohnicDev, thanks for the report and investigation! I'm away on some personal issues, but I'll take a look at this as soon as I'm free again.

quick update - I'll be looking into this starting today

Any progress yet? Our users are running to this issue in production, despite the re-render after 10 ms. We will try a larger delay, but of course a fix would be more ideal.

Hi @KrohnicDev I wasn't able to make much progress - I've been out on family leave but I'm going to try and set aside some dedicated time to look into this more. If you have found any solution or fix please feel free to create a PR so we can get the fix in!

@gooftroop or @KrohnicDev any updates on this issue? I've also run into the same issue with the InPlaceMagnifyContainer; just wanted to check if either of you were able to find a fix/workaround.


Wait 5 seconds to let pod connect before rolling next pod

During a rolling update we don't want Kubernetes to go as fast as it can across nodes, because each node will have a short interruption as iptables rules are recreated.
I think this will also have the effect of slowing down a first install, but hopefully people can wait a few extra seconds.
I picked 5 seconds somewhat arbitrarily; the setting may need more experimentation.
Note we don't specify a readiness check at the moment, so Kubernetes equates "running" with "ready".  If the pod crashes immediately it will not be ready.

I don't think it'll slow down an initial install, when we deploy weave for the first time, all pods are created immediately - it's only when it's doing a rolling update does it start caring that they're up for long enough before it destroys the next pod


Upgrade Unstated and await setState

We can now await setState which simplifies a lot of code \o/

Very nice


[ll] Fix missing methods in RenderPass Encoder

There are some commands allowed in RenderPass mode are missing.

[X] set_descriptor_sets
[x] set_viewports
[x] set_scissors
[x] set_blend_constants
[x] set_stencil_reference
~set_line_width~ (move to another PR)
~set_depth_bounds~  (move to another PR)
~set_depth_bias~  (move to another PR)
~set_stencil_compare_mask~  (move to another PR)
~set_stencil_write_mask~  (move to another PR)

A large chunk of these are only dynamic states in vulkan but baked into the PSO on d3d12. So we need to expose dynamic PSO features and corresponding feature flags.

@msiglreith
OK, I’ll move these dynamic states to another PR for implementation. I think we can do pso caching in dx12 backend to emulate dynamic states.

Thanks!
bors r+


Add Apte Sanskrit-Hindi dictionary

See file comments for details.
Test plan: loaded on dev.

Fixes #35.

24h, so landing


migrations are still using South

Hello,
Running a manage.py migrate with django 1.8 does not apply the migration provided here, because it seems to have been generated with South.

@nim65s I'm fixing it here: #5

Fixed in zinnia-wysiwyg-tinymce v1.3

Thanks :)


Create CODE_OF_CONDUCT.md

Feel free to close this PR

Sorry, code of conducts like these are pointless. Everyone already knows how to behave and no one reads these things anyway. It's only used by toxic moderators, so they can ban anyone they dont like.
The only policy you need is:
"Do not spam. Do not post NSFW content. Do not talk negative about a person in a repeatitive way. ".


Testing continue working on: dialog for cloning repo

Testing #167433
When cloning a repo to continue working on, I get this dialog:

I found it sort of odd that "cancel" wasn't the last option. And what exactly does "open" do? Is that like "Open here"? I felt like it took a little thinking to process this dialog 😅

cc @lszomoru as that dialog is from the git extension. In this scenario I think it is appropriate that "Open" is the default option, since presumably the user wants to open the repo they just cloned. I think "Open" refers to opening in the current window but that would be pretty verbose to spell out in full.

That's true.  I think it's the ordering that throws me off a little, since I expect cancel to be off to one of the sides and all of the "non-cancel" stuff to be together. But that does make sense.

yes, what @lszomoru states is correct. Windows has a different ordering and since @andreamah is typically on Windows, I'm guessing that's why this expectation is there. The ordering in the image appears to be correct for the platform.


Add conversion support for nalgebra

What problem does this solve or what need does it fill?
Using bevy together with https://github.com/dimforge/nalgebra, e.g. because using Rapier (https://rapier.rs/) via https://github.com/dimforge/bevy_rapier/, means one has to constantly convert between bevy's Vec2 and nalgebra's Point.
What solution would you like?
Implement From for Vec2/3 hidden behind a feature flag so that bevy users that use nalgebra can simply enable the feature flag and use .into() in their code.
What alternative(s) have you considered?
Implementing conversion traits inside bevy_rapier.

We can't add these impls, they would have to be either added in nalgebra or glam (or std, but that doesn't count) due to the orphan rules. nalgebra being more complicated, I'd be inclined to think that nalgebra should be the ones adding these impls.

We can't add these impls, they would have to be either added in nalgebra or glam (or std, but that doesn't count) due to the orphan rules. nalgebra being more complicated, I'd be inclined to think that nalgebra should be the ones adding these impls.

Oh I didn't realize they weren't actually defined in bevy but came from glam, thanks for pointing that out! I guess no point in keeping this issue open.

Oh I didn't realize they weren't actually defined in bevy but came from glam, thanks for pointing that out! I guess no point in keeping this issue open.


question: wait for input in (neo)vim plugin

[x] I have read through the manual page (man fzf)
[x] I have the latest version of fzf
[x] I have searched through the existing issues

Info

OS

[x] Linux
[ ] Mac OS X
[ ] Windows
[ ] Etc.

Shell

[ ] bash
[ ] zsh
[x] fish

Problem / Steps to reproduce
When I call fzf#run it immediately forks and the main execution continues without waiting for user input. Is it possible to block until the user has made a choice?

Isn't this better asked in the plugin repository issues?

@RaZ0rr-Two This repository provides fzf#run, so this is the right place to ask.
Having said that, I don't understand the question. It is not clear what you mean by fork and main execution? You should probably provide some code snippets or screenshots.

My vimscript isn't that great, please bear with me
let foo = 0
call fzf#run({'source' : {1,2,3} 'sink':{d->foo=d})
echo too " immediately echoes 0 without waiting for choice

fwiw I figured out how to do what I wanted, still nice to know how to block for simple tasks

I see. fzf runs in a terminal buffer of Vim thus it is not possible to block the execution of Vimscript, which would block single-threaded Vim altogether. You have to reorganize your code so that the execution resumes in the sink callback function.

I see, thanks!


Bratseth/instances in deployment xml rebased take 3

Missed one

@jonmv clicked the wrong reviewer

Not rotations, but code that is run on prod deployments in any case.

Removed that test ^^