CTE Recursive Query LIMIT & ORDER conflicted with initial and recursive queries

I have this error:
2021/11/25 06:44:50 driver.Query: query=WITH RECURSIVE `undeleted`(`id`, `parent_id`) AS (SELECT `files`.`id`, `files`.`parent_id` FROM `files` WHERE `files`.`parent_id` IS NULL AND `files`.`deleted` = ?  ORDER BY `deleted` ASC LIMIT 2 ORDER BY `id` ASC LIMIT 1) SELECT `files`.`name` FROM `files` JOIN `undeleted` ON `files`.`id` = `undeleted`.`id` args=[false false]
--- FAIL: TestExample_RecursiveTraversal (0.00s)
panic: near "ORDER": syntax error [recovered]
	panic: near "ORDER": syntax error

goroutine 19 [running]:
testing.tRunner.func1.2({0x70caa0, 0xc00020c0f0})
	/home/vzool/.local/app/go/src/testing/testing.go:1209 +0x24e
testing.tRunner.func1()
	/home/vzool/.local/app/go/src/testing/testing.go:1212 +0x218
panic({0x70caa0, 0xc00020c0f0})
	/home/vzool/.local/app/go/src/runtime/panic.go:1038 +0x215
entgo.io/ent/examples/fs/ent.(*FileSelect).StringsX(...)
	/home/vzool/Workspace/ent/examples/fs/ent/file_query.go:868
entgo.io/ent/examples/fs.TestExample_RecursiveTraversal(0x0)
	/home/vzool/Workspace/ent/examples/fs/example_test.go:95 +0xc52
testing.tRunner(0xc000107520, 0x737760)
	/home/vzool/.local/app/go/src/testing/testing.go:1259 +0x102
created by testing.(*T).Run
	/home/vzool/.local/app/go/src/testing/testing.go:1306 +0x35a
FAIL	entgo.io/ent/examples/fs	0.008s
FAIL

[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

When I want to set a LIMIT and ORDER BY in CTE, I can't do that. and there is no order for them which is which for initial or recursive query. So, if I set LIMIT & ORDER for initial & recursive queries all LIMIT & ORDERS for different query will come one after another, like different SELECT query, Here is the test case for that:
// Copyright 2019-present Facebook Inc. All rights reserved.
// This source code is licensed under the Apache 2.0 license found
// in the LICENSE file in the root directory of this source tree.

package main

import (
	"context"
	"fmt"
	"log"
	"testing"

	"entgo.io/ent/dialect/sql"
	"entgo.io/ent/examples/fs/ent"
	"entgo.io/ent/examples/fs/ent/file"

	_ "github.com/mattn/go-sqlite3"
)

func TestExample_RecursiveTraversal(t *testing.T) { /*[UPDATED-LINE]*/
	client, err := ent.Open("sqlite3", "file:ent?mode=memory&cache=shared&_fk=1")
	if err != nil {
		log.Fatalf("failed opening connection to sqlite: %v", err)
	}
	defer client.Close()
	ctx := context.Background()
	// Run the auto migration tool.
	if err := client.Schema.Create(ctx); err != nil {
		log.Fatalf("failed creating schema resources: %v", err)
	}

	// Add multiple files in the following tree structure:
	//
	//	a/
	//	├─ b/
	//	│  ├─ ba
	//	│  ├─ bb
	//	│  └─ bc (deleted)
	//	├─ c/ (deleted)
	//	│  ├─ ca
	//	│  └─ cb
	//	└─ d (deleted)
	//
	a := client.File.Create().SetName("a").SaveX(ctx)
	b := client.File.Create().SetName("b").SetParent(a).SaveX(ctx)
	client.File.Create().SetName("ba").SetParent(b).SaveX(ctx)
	client.File.Create().SetName("bb").SetParent(b).SaveX(ctx)
	client.File.Create().SetName("bc").SetParent(b).SetDeleted(true).SaveX(ctx)
	c := client.File.Create().SetName("c").SetParent(a).SetDeleted(true).SaveX(ctx)
	client.File.Create().SetName("ca").SetParent(c).SaveX(ctx)
	client.File.Create().SetName("cb").SetParent(c).SaveX(ctx)
	client.File.Create().SetName("d").SetParent(a).SetDeleted(true).SaveX(ctx)

	// Query undeleted files:
	//
	//	a/
	//	└─ b/
	//	   ├─ ba
	//	   └─ bb
	//
	names := client.Debug().File.Query(). /*[UPDATED-LINE]*/
		Where(func(s *sql.Selector) {
			t1, t2 := sql.Table(file.Table), sql.Table(file.Table)
			with := sql.WithRecursive("undeleted", file.FieldID, file.FieldParentID)
			with.As(
				// The initial `SELECT` statement executed once at the start,
				// and produces the initial row or rows for the recursion.
				sql.Select(t1.Columns(file.FieldID, file.FieldParentID)...).
					From(t1).
					Where(
						sql.And(
							sql.IsNull(t1.C(file.FieldParentID)),
							sql.EQ(t1.C(file.FieldDeleted), false),
						),
					).
					OrderBy(sql.Asc(file.FieldID)).Limit(1). /*[UPDATED-LINE]*/
					// Merge the `SELECT` statement above with the following:
					UnionAll(
						// A `SELECT` statement that produces additional rows and recurses by referring
						// to the CTE name (e.g. "undeleted"), and ends when there are no more new rows.
						sql.Select(t2.Columns(file.FieldID, file.FieldParentID)...).
							From(t2).
							Join(with).
							On(t2.C(file.FieldParentID), with.C(file.FieldID)).
							Where(
								sql.EQ(t1.C(file.FieldDeleted), false),
							).
							OrderBy(sql.Asc(file.FieldDeleted)).Limit(2), /*[UPDATED-LINE]*/
					),
			)
			// Join the root `SELECT` query with the CTE result (`WITH` clause).
			s.Prefix(with).Join(with).On(s.C(file.FieldID), with.C(file.FieldID))
		}).
		Select(file.FieldName).
		StringsX(ctx)
	fmt.Printf("%q\n", names)

	// Output:
	// ["a" "b" "ba" "bb"]
	t.FailNow() /*[UPDATED-LINE]*/
}

Above code will generate this SQL:
WITH RECURSIVE `undeleted`(`id`, `parent_id`) AS (
    SELECT
        `files`.`id`,
        `files`.`parent_id`
    FROM
        `files`
    WHERE
        `files`.`parent_id` IS NULL
        AND `files`.`deleted` = ?

    ORDER BY
        `deleted` ASC
    LIMIT
        2
    ORDER BY
        `id` ASC
    LIMIT
        1
)
SELECT
    `files`.`name`
FROM
    `files`
    JOIN `undeleted` ON `files`.`id` = `undeleted`.`id` args = [false false]

Expected Behavior 🤔

I think the generated SQL should be like the following:
WITH RECURSIVE `undeleted`(`id`, `parent_id`) AS (
    (
        SELECT
            `files`.`id`,
            `files`.`parent_id`
        FROM
            `files`
        WHERE
            `files`.`parent_id` IS NULL
            AND `files`.`deleted` = ?
        ORDER BY
            `id` ASC
        LIMIT
            1
    )
    UNION
    ALL
    (
        SELECT
            `files`.`id`,
            `files`.`parent_id`
        FROM
            `files`
            JOIN `undeleted` ON `files`.`parent_id` = `undeleted`.`id`
        WHERE
            `files`.`deleted` = ?
        ORDER BY
            `deleted` ASC
        LIMIT
            2
    )
)
SELECT
    `files`.`name`
FROM
    `files`
    JOIN `undeleted` ON `files`.`id` = `undeleted`.`id` args = [false false]

Note: Extra parentheses is required for database engine like PostgreSQL and maybe MySQL too. But, PostgreSQL doesn't support Limit on Recursive queries while it support only on initial one.
Steps to Reproduce 🕹

Steps:

Fork this repo.
Update this file  ent/examples/fs/example_test.go like example above.
Run the unit test.
 This option is not documented well in entgo.io and I think it should be improved there.
Regarding your expected query - I'm pretty sure it's invalid, as ORDER BY and LIMIT clauses can't come before a compound-operator (e.g. UNION ALL). I tried executing it manually and it returned a syntax error. Please, see the expected grammar in the SQLite website and let me know what do you think.
https://www.sqlite.org/syntax/select-stmt.html
https://www.sqlite.org/lang_with.html.

Found now:

The initial-select may be a compound select, but it may not include an ORDER BY, LIMIT, or OFFSET

The recursive-select is allowed to include an ORDER BY, LIMIT, and/or OFFSET but may not use aggregate functions or window functions.

Removing the ORDER BY/LIMIT from the initial-select should solve your problem:
// ....
Where(func(s *sql.Selector) {
	t1, t2 := sql.Table(file.Table), sql.Table(file.Table)
	with := sql.WithRecursive("undeleted", file.FieldID, file.FieldParentID)
	with.As(
		// ....
		UnionAll(
			// ...
			sql.Select(t2.Columns(file.FieldID, file.FieldParentID)...).
				// ....
				OrderBy(sql.Asc(file.FieldID)).Limit(2),
		),
	)
})
// ...

Closing, as it works as expected. Please, feel free to reopen or continue the discussion if you still need help or you have any problems. Thanks 🙏

Hmm, so we reached the limit of SQLite capabilities, it looks like the problem is with PostgreSQL now, because I thought it will be the same as SQLite. I found this bug while I'm testing with PostgreSQL and the same example won't work there. As I know PostgreSQLon initial-query it supports LIMIT & ORDER, but for recursive-query, it only supports ORDER without LIMIT. And the parentheses are required by the PostgreSQL database engine. Correct me if I'm wrong.
I think if an update is made to reach the point of the following query, both databases will be covered:
WITH RECURSIVE `undeleted`(`id`, `parent_id`) AS (
    (
        SELECT
            `files`.`id`,
            `files`.`parent_id`
        FROM
            `files`
        WHERE
            `files`.`parent_id` IS NULL
            AND `files`.`deleted` = ?
        ORDER BY
            `id` ASC
        LIMIT
            1
    )
    UNION
    ALL
    (
        SELECT
            `files`.`id`,
            `files`.`parent_id`
        FROM
            `files`
            JOIN `undeleted` ON `files`.`parent_id` = `undeleted`.`id`
        WHERE
            `files`.`deleted` = ?
        ORDER BY
            `deleted` ASC
        LIMIT
            2
    )
)
SELECT
    `files`.`name`
FROM
    `files`
    JOIN `undeleted` ON `files`.`id` = `undeleted`.`id` args = [false false]

What do you think?

Closing, as it works as expected. Please, feel free to reopen or continue the discussion if you still need help or you have any problems. Thanks 🙏

I don't know how to re-open this issue from my side, may you re-open it from your side? Thanks ^_^

Here is the same error with PostgreSQL:
Running tool: /home/vzool/.local/app/go/bin/go test -timeout 30s -run ^TestExample_RecursiveTraversal$ entgo.io/ent/examples/fs

2021/11/26 05:38:23 driver.Query: query=WITH RECURSIVE "undeleted"("id", "parent_id") AS (SELECT "files"."id", "files"."parent_id" FROM "files" WHERE "files"."parent_id" IS NULL AND "files"."deleted" = $1 UNION ALL SELECT "files"."id", "files"."parent_id" FROM "files" JOIN "undeleted" ON "files"."parent_id" = "undeleted"."id" WHERE "files"."deleted" = $2 ORDER BY "deleted" ASC LIMIT 2 ORDER BY "id" ASC LIMIT 1) SELECT "files"."name" FROM "files" JOIN "undeleted" ON "files"."id" = "undeleted"."id" args=[false false]
--- FAIL: TestExample_RecursiveTraversal (0.04s)
panic: ERROR: syntax error at or near "ORDER" (SQLSTATE 42601) [recovered]
	panic: ERROR: syntax error at or near "ORDER" (SQLSTATE 42601)

goroutine 6 [running]:
testing.tRunner.func1.2({0x797980, 0xc00022c0f0})
	/home/vzool/.local/app/go/src/testing/testing.go:1209 +0x24e
testing.tRunner.func1()
	/home/vzool/.local/app/go/src/testing/testing.go:1212 +0x218
panic({0x797980, 0xc00022c0f0})
	/home/vzool/.local/app/go/src/runtime/panic.go:1038 +0x215
entgo.io/ent/examples/fs/ent.(*FileSelect).StringsX(...)
	/home/vzool/Workspace/ent/examples/fs/ent/file_query.go:868
entgo.io/ent/examples/fs.TestExample_RecursiveTraversal(0x0)
	/home/vzool/Workspace/ent/examples/fs/example_test.go:101 +0xd12
testing.tRunner(0xc0000b2ea0, 0x80d0e8)
	/home/vzool/.local/app/go/src/testing/testing.go:1259 +0x102
created by testing.(*T).Run
	/home/vzool/.local/app/go/src/testing/testing.go:1306 +0x35a
FAIL	entgo.io/ent/examples/fs	0.040s
FAIL

Current Behavior for PostgreSQL 😯

// Copyright 2019-present Facebook Inc. All rights reserved.
// This source code is licensed under the Apache 2.0 license found
// in the LICENSE file in the root directory of this source tree.

package main

import (
	"context"
	"database/sql"
	"fmt"
	"log"
	"testing"

	"entgo.io/ent/dialect"
	"entgo.io/ent/examples/fs/ent"
	"entgo.io/ent/examples/fs/ent/file"

	entSQL "entgo.io/ent/dialect/sql"
	_ "github.com/jackc/pgx/v4/stdlib"
)

func TestExample_RecursiveTraversal(t *testing.T) {

	db, err := sql.Open("pgx"<EMAIL_ADDRESS>	if err != nil {
		log.Fatalf("failed opening connection to PostgreSQL: %v", err)
	}
	driver := entSQL.OpenDB(dialect.Postgres, db)
	client := ent.NewClient(ent.Driver(driver))

	defer client.Close()
	ctx := context.Background()
	// Run the auto migration tool.
	if err := client.Schema.Create(ctx); err != nil {
		log.Fatalf("failed creating schema resources: %v", err)
	}

	// Add multiple files in the following tree structure:
	//
	//	a/
	//	├─ b/
	//	│  ├─ ba
	//	│  ├─ bb
	//	│  └─ bc (deleted)
	//	├─ c/ (deleted)
	//	│  ├─ ca
	//	│  └─ cb
	//	└─ d (deleted)
	//
	a := client.File.Create().SetName("a").SaveX(ctx)
	b := client.File.Create().SetName("b").SetParent(a).SaveX(ctx)
	client.File.Create().SetName("ba").SetParent(b).SaveX(ctx)
	client.File.Create().SetName("bb").SetParent(b).SaveX(ctx)
	client.File.Create().SetName("bc").SetParent(b).SetDeleted(true).SaveX(ctx)
	c := client.File.Create().SetName("c").SetParent(a).SetDeleted(true).SaveX(ctx)
	client.File.Create().SetName("ca").SetParent(c).SaveX(ctx)
	client.File.Create().SetName("cb").SetParent(c).SaveX(ctx)
	client.File.Create().SetName("d").SetParent(a).SetDeleted(true).SaveX(ctx)

	// Query undeleted files:
	//
	//	a/
	//	└─ b/
	//	   ├─ ba
	//	   └─ bb
	//
	names := client.Debug().File.Query(). /*[UPDATED-LINE]*/
						Where(func(s *entSQL.Selector) {
			t1, t2 := entSQL.Table(file.Table), entSQL.Table(file.Table)
			with := entSQL.WithRecursive("undeleted", file.FieldID, file.FieldParentID)
			with.As(
				// The initial `SELECT` statement executed once at the start,
				// and produces the initial row or rows for the recursion.
				entSQL.Select(t1.Columns(file.FieldID, file.FieldParentID)...).
					From(t1).
					Where(
						entSQL.And(
							entSQL.IsNull(t1.C(file.FieldParentID)),
							entSQL.EQ(t1.C(file.FieldDeleted), false),
						),
					).
					OrderBy(entSQL.Asc(file.FieldID)).Limit(1). /*[UPDATED-LINE]*/
					// Merge the `SELECT` statement above with the following:
					UnionAll(
						// A `SELECT` statement that produces additional rows and recurses by referring
						// to the CTE name (e.g. "undeleted"), and ends when there are no more new rows.
						entSQL.Select(t2.Columns(file.FieldID, file.FieldParentID)...).
							From(t2).
							Join(with).
							On(t2.C(file.FieldParentID), with.C(file.FieldID)).
							Where(
								entSQL.EQ(t1.C(file.FieldDeleted), false),
							).
							OrderBy(entSQL.Asc(file.FieldDeleted)).Limit(2), /*[UPDATED-LINE]*/
					),
			)
			// Join the root `SELECT` query with the CTE result (`WITH` clause).
			s.Prefix(with).Join(with).On(s.C(file.FieldID), with.C(file.FieldID))
		}).
		Select(file.FieldName).
		StringsX(ctx)
	fmt.Printf("%q\n", names)

	// Output:
	// ["a" "b" "ba" "bb"]
}

Expected Behavior 🤔
Explained above.

Steps to Reproduce 🕹

Steps:

Run PostgreSQL docker instance

docker run -p 5432:5432 \
        --name postgres \
        -e POSTGRES_PASSWORD=postgres \
        -d postgres:14-alpine

Update this file ent/examples/fs/example_test.go like example above.
Run the unit test.
I hope you meet the bug.

Your Environment 🌎

Tech
Version

Go
1.17

Ent
0.9.1

Database
PostgreSQL

Driver
github.com/jackc/pgx/v4/stdlib


Double.Min|Max values do not trigger an error for integer type property

Hi,
I have applied your fix for int32|int64 formats. Works great now.
Now about doubles :) I have spotted in tests that the following instance (magic number is Double.Max):
{
    "prop" : 1.7976931348623157E+308
}

is validated successfully against the schema:
  {
    "type" : "object",
    "properties" : {
      "prop" : {
        "type" : "integer"
      }
    }
  }

expected result is failure on validation. The similar issue exists for Double.Min.

I'm unsure about this since the validator currently validates numbers against the integer type successfully if they are whole. This relates to the same question whether { "prop": 1.0 } should validate, which is the case right now. There has been quite the discussion about this in the past, see here. I think I'd prefer to stick with the current behaviour. Do you have any objections?

No objections, thanks. It was my fault. The current behavior is correct.
On Tue, May 9, 2017 at 7:57 AM, Edgar Müller<EMAIL_ADDRESS>wrote:

I'm unsure about this since the validator currently validates numbers
against the integer type successfully if they are whole. This relates to
the same question whether { "prop": 1.0 } should validate, which is the
case right now. There has been quite the discussion about this in the past,
see here https://github.com/json-schema/json-schema/issues/27. I think
I'd prefer to stick with the current behaviour. Do you have any objections?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/eclipsesource/play-json-schema-validator/issues/111#issuecomment-299973484,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADyZVbISB-GMyn_sZbejWDTVoU6UTiCUks5r33OygaJpZM4NRziU
.


Upgrading to version 2.23.0 / 3.21.2 (Chart version) will result in broken Terrakube application

Bug description 🐞
After upgrading our cluster to the latest version we are confronted with a broken Terrakube cluster. The Organizations aren't visible anymore and endpoints become unreachable as well to gain access to the state files ect.
Logs file from the API Container

30-9-2024, 08:19:23.320
2024-09-30T06:19:23.318Z ERROR 1 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] threw exception
30-9-2024, 08:19:23.320
java.lang.IllegalArgumentException: Can not set boolean field org.terrakube.api.rs.team.Team.manageState to null value
30-9-2024, 08:19:23.320
at java.base/jdk.internal.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[na:na]
30-9-2024, 08:19:23.320
30-9-2024, 08:19:23.320
at java.base/jdk.internal.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[na:na]
30-9-2024, 08:19:23.320
at java.base/jdk.internal.reflect.UnsafeBooleanFieldAccessorImpl.set(Unknown Source) ~[na:na]
30-9-2024, 08:19:23.320
at java.base/java.lang.reflect.Field.set(Unknown Source) ~[na:na]
30-9-2024, 08:19:23.320
at org.hibernate.property.access.spi.SetterFieldImpl.set(SetterFieldImpl.java:57) ~[hibernate-core-6.5.3.Final.jar:6.5.3.Final]
30-9-2024, 08:19:23.321
java.lang.IllegalArgumentException: Can not set boolean field org.terrakube.api.rs.team.Team.manageState to null value

2024-09-30T06:25:14.385Z ERROR 1 --- [ task-9] c.y.e.j.DefaultJsonApiExceptionHandler : Error or exception uncaught by Elide
30-9-2024, 08:25:14.388
30-9-2024, 08:25:14.388
org.hibernate.PropertyAccessException: Null value was assigned to a property [class org.terrakube.api.rs.team.Team.manageState] of primitive type: 'org.terrakube.api.rs.team.Team.manageState' (setter)
30-9-2024, 08:25:14.388
at org.hibernate.property.access.spi.SetterFieldImpl.set(SetterFieldImpl.java:63) ~[hibernate-core-6.5.3.Final.jar:6.5.3.Final]

Steps to reproduce
Upgrade to Helm chart version 3.21.2 this issue will occur.
When reverting the version back this will be gone and working correctly.
Expected behavior
No response
Example repository
No response
Anything else?
It might seem to have relation to the changes created in the state management that were introduced. But I might be wrong here.
We are using:
Azure Kubernetes Services
Azure SQL Server / Database
Azure Storage Account
Build-in Redis of Terrakube

I think the script to update all the old values inside the teams table to "false" is missing, I will check today

I fixed this issue, I will create a hotfix once I fixed this other issue related to the new permission https://github.com/AzBuilder/terrakube/issues/1342

This is fixed in version 2.23.1

Thanks for the quick fix I just tested the upgrade and it is working properly now!


Support for Index bluetooth radios' serial port

Set the /dev/ttyACMx permissions for any tty with USB parent attributes of 28de + 2102 -> 0666 so anyone can write to it.
Otherwise, only those in uucp or dialout on some distros can write to it.

What practical effect does the ability to read/write this serial port have?

It allows SteamVR to talk to the BLE radio on the Index using a usermode driver that talks over serial. This allows SteamVR to power manage the lighthouses.

Does it let users change the firmware of the device?

It can be used to update the firmware of the lighthouses, but I have not enabled this functionality yet as I have not had time to test it. (Also might lighthouses are up to date).
__
I updated my PR to use 0660 + uaccess instead.

It can be used to update the firmware of the lighthouses, but I have not enabled this functionality yet as I have not had time to test it.

Right, my question was more about "what's the worst that a malicious local user could do with this device access?" rather than what genuinely works in Steam today.

I updated my PR to use 0660 + uaccess instead.

Thanks, I think that's the most appropriate thing we can do from udev rules.

@TTimo, if Valve is happy with enabling the functionality described in https://github.com/ValveSoftware/steam-devices/pull/44#issuecomment-1451869694 for any active (foreground) local user of a potentially multi-user system, then we can merge this.

This functionality is already live in SteamVR beta and only working for people on some distros so we need to get this merged.

Yeah that sounds fine we should merge this.

This was included in steam-launcher beta <IP_ADDRESS>, which will be promoted to general availability when it has had more testing.

This was included in steam-launcher beta <IP_ADDRESS>, which will be promoted to general availability when it has had more testing.

Now promoted.


(git.install) Creates spurious Shims?

I have a shim for Git-2.13.0-32-bit.exe in c:\ProgramData\Chocolatey\bin\ - While not really harmful, probably not intended ;)

Yeah, that is not intended. However the installers should have been removed after the install was completed, did you by any chance install the package without running the install script?
In that case shims would be created because the installers aren't removed after install.

In a fashion Remove-Item -Force $filePath32, $filePath64 -ea 0 which means that for some reason they might not get removed and there will be no error message (which IS good, better to have spurious shim then fail the install). Perhaps we could change that into Remove-Item -Force $filePath32, $filePath64 -ea Continue so that error shows but package doesn't fail ? It wouldn't really solve the problem.
I guess we can't add rm's that delete any eventual shims in case they are created as that happens after the script. We could use some mumbo jumbo tricks like removing them in Task Scheduler after several seconds but...

Or perhaps replace this line with something like this which would solve it.
$filePath32, $filepath64 | { rm $_ -ea 0; if (Test-Path $_) { touch "$_.ignore" }


Improve levels preprocessing

Instead of using a forward loop to generate levels, we now backtrack in order to figure out the adequate level a segment should live in.

This makes sure that segments are moved up if to the point where it detects an overlapping seg. Otherwise it'll get moved up to the top since it did not detect overlapping segs.


Updated instructions for installing cmake to newer version

The available version of cmake for Ubuntu 12.04 is too old.
The PPA listed does not currently work so the official
cmake webisite is a more reliable source to get cmake.
Signed-off-by: Mark Charlebois<EMAIL_ADDRESS>

Cherry-picked on master, thanks!


Hilighlight undo ?

do really it support HIGLIGHT UNDO now?

Hey, sorry, I should have precised before closing the ticket.
No, I don't, I've found that there already exist plugins that make it nicely (https://github.com/tzachar/highlight-undo.nvim or https://github.com/yuki-yano/highlight-undo.nvim) so I prefer not to implement this in Yanky.


Django migrate

Haven't been able to fix this yet, but apparently python manage.py migrate does not apply this package migrations automatically

Fixed on commit: 08d3a92e665595ebb07aa79591159fd0c3274ec1


Debug output limited to 100 - Chrome or Phpconsole?

Debugging an array of > 100 items, Chrome debug limits to 100 and displays i.e. ...: "(displayed 100 of 108)"
Any advice on removing the limit?

See https://github.com/barbushin/php-console/blob/master/examples/features/debug_vars.php#L36

Thanks


Fonts don't work/html parsed incorrectly with "

I am testing with the latest https://github.com/RazrFalcon/resvg/releases/download/v0.32.0/viewsvg-win64.zip for evaluation before using this library in a project.
I am unable to get system fonts to load with this program. I have verified that the required font is installed to C:\Windows\Fonts and the SVG contains no @font-face which I know is not supported by resvg (https://github.com/RazrFalcon/resvg/issues/541). With the system font installed, the SVG renders correctly in chromium. With the system font installed, it renders in resvgviewer with the default font and not the specified font.
With the system font removed, both chromium and resvg use the default font as expected.

test_svg_and_font.zip
here is the svg in question and font to install on the system for you to test

figured out the bug
your parser is unable to interpret the quoted font text
<text style="font-family: "Product Sans Black"; font-size: 299.1px; white-space: pre; filter: url(#drop-shadow-filter-5);"

this " is valid html syntax so you should definitly correct that

Is the format of my svg file incorrect? I currently have about a dozen SVGs with the same issue that were created in https://boxy-svg.com/ by @botspot . If it is incorrect formatting according to SVG spec we can ask for it to be fixed in boxy-svg software

It has already been reported in boxy-svg. apparently the issue comes from chromium's xmlserializer
https://boxy-svg.com/bugs/152/quotation-marks-handling-with-font-names

When it comes to "web standards", there are no such thing as correct. Most apps do support this, so we have to as well.
As for the SVG itself, it's very browser-oriented. If you care only about Chrome (aka 99%) then you will be fine. Batik and Inkscape fail to rasterize the effects on text.
The only weird part here is that it relies on SVG 2 features, but still uses SVG 1 emulation of drop shadows, which are native in SVG 2.

Pinging @jarek-foksa

also incase @jarek-foksa , you wouldn't happen to be willing to share what method you are using for exporting the image from boxy-svg? From what I can gather, you aren't having the browser render the image at the output resolution and then creating the png, it seems like you must be rasterizing the svg into something larger and then downscaling to the output resolution. Either that or there is some sort of anti-aliasing method or post-processor being used.

As far as I know SVG documents containing " are valid, but these escape codes look just plain ugly. I will try to make Boxy SVG replace them with more elegant single quotes in the next update.

The only weird part here is that it relies on SVG 2 features, but still uses SVG 1 emulation of drop shadows, which are native in SVG 2.

Boxy SVG supports both the old and the new syntax for drop shadows (you can toggle them with the "Set as SVG 2 filter function" checkbox in the filter settings). The old syntax is used by default though.

also incase @jarek-foksa answers, you wouldn't happen to be willing to share what method you are using for exporting the image from boxy-svg? From what I can gather, you aren't having the browser render the image at the output resolution and then creating the png, it seems like you must be rasterizing the svg into something larger and then downscaling to the output resolution. Either that or there is some sort of anti-aliasing method or post-processor being used.

I'm rasterizing the SVG image at the output resolution, you can read the rasterization code here. Note that it uses the UPNG library to perform quantization/encoding.

Also, I'm injecting the following style into the SVG document to disable anti-aliasing during rasterization, I guess this might be the reason why the output looks differently:
<style>* {shape-rendering: crispEdges !important;}</style>

@theofficialgman If you use resvg CLI tool, you can pass --shape-rendering crispEdges to disable shapes antialiasing. There is no CSS injection in resvg yet (#277). It's surprisingly hard to implement.

Also, I think you should adjust your expectations a bit. resvg is pretty good, but it's not a browser. SVG spec is endlessly complicated. Same with CSS, XML and so on.
CSS support in particular is very basic.

@RazrFalcon I'm not expecting perfection. I'm honestly just impressed that for me you have already exceeded all other software out there (not including browsers) for svg rendering.

If you exclude browsers, specifically Chrome, then yes - resvg is probably the best. But there are still an endless amount of work left.


Issues with moving to this service

Hi,
I just switched to your library after using https://github.com/arivera12/BlazorCurrentDevice, because of https://github.com/arivera12/BlazorCurrentDevice/issues/5.
I've gotten it working but I had a couple of issues. They were:

In the readme, it says @using CurrentDevice but it should be @using BlazorCurrentDevice
I was using the service in two components. If I called the service twice to see if it's a mobile device or not, the first time it calls fine without issue. After that it throws an exception saying the key (Android) is already added. I got around this by only making the call once and then pusing the "IsMobileDevice" parameter through to the components I wanted.

Otherwise, looks like it's working well. Thanks!

For anyone interested, my PR to switched between libraries: https://github.com/ledpup/ClimateExplorer/pull/407

Oh let me fix that real quick, thanks for reporing

Hopefully this fixes it.


Update Anthropic Manifold Pipeline to v0.1.2

Added:

Image upload support for Claude 3.5

Fixed:

Anthropic system message handling
Document handling

This update enhances the Anthropic Manifold Pipeline by adding support for image uploads when using Claude 3.5. It also corrects the handling of system messages to ensure proper integration with the Anthropic API. These changes improve the pipeline's functionality and compatibility with the latest Anthropic models.
System prompt:

Image handling:

Document RAG:

Resolves:
#84, #114, #117, #121, #122
Co-authored-by: Patrick Boos<EMAIL_ADDRESS>Co-authored-by: Peter Shkumatov<EMAIL_ADDRESS>

Thank you! Tested this and it worked fine with a system message as well as image input. 👍

Thanks! 🤩

thx


Migrate to new nomenclature

In the last nomenclature paper we have introduced some changes to the nomenclature, namely making the insertion, substitution and multiple substitution syntaxes all the same

single substitution: A123V -> does not change
multiple substitution: APL-123-VVV -> APL123VVV
insertion: A123-VVV -> A123AVVV (putting the aminoacid after which the insertion happens before and after)

Required tasks:

[x] #76 -> @kimrutherford
[x] #78 -> @manulera
[x] #79 -> @kimrutherford
[x] #80 -> @manulera
[x] #81 -> @manulera

I think we are done with this one @kimrutherford!


feat: allow forwarding ref to the content editable component

Allows ref to be passed to the ContentEditable component

@acywatson fixed


refactor: Support any PostgreSQL database

[x] read the CONTRIBUTING guidelines
[ ] raised a GitHub issue or discussed it on the projects chat beforehand
[ ] added unit tests
[ ] added integration tests
[ ] updated documentation if needed
[ ] updated CHANGELOG.md

We wanted to use CockroachDB with headscale, which was not possible with the current config options. This PR adds support to directly input a Postgres dialect URL

Just curious, what options did cockroachDB require that aren't currently provided? What does the db url string you use look like?

Hi! as part of #1473, we have reorganised a lot of the code.
To clear PRs that needs to be rebased or redone, we are closing open PRs that will require significant code change to be merged.
In addition, the issue of the PR might in some cases have been fixed, change or no longer relevant, so it would be great if this is considered as well.
Thank you for your contribution!
If it is still relevant and the PR is reopened, we will aim at getting the changes into the next release after the reorg if accepted.


0.11.0G Node cannot join Bitcoin Cash Fork

My node gets stuck on block 478558 and flags any nodes that seemingly want to send me the rightful block as Misbehaving:
2017-08-01 18:13:08 received compactblock<PHONE_NUMBER>00000000651ef99cb9fcbe0dadde1d424bd9f15ff20136191a5eec from peer=229 2017-08-01 18:13:08 received compactblock<PHONE_NUMBER>00000000651ef99cb9fcbe0dadde1d424bd9f15ff20136191a5eec from peer=681 2017-08-01 18:13:09 Misbehaving: <IP_ADDRESS>:8333 (0 -> 20) 2017-08-01 18:13:09 Misbehaving: <IP_ADDRESS>:8333 (0 -> 20) 2017-08-01 18:13:10 received compactblock<PHONE_NUMBER>00000000651ef99cb9fcbe0dadde1d424bd9f15ff20136191a5eec from peer=233 2017-08-01 18:13:11 Misbehaving: <IP_ADDRESS>:8333 (0 -> 20) 2017-08-01 18:13:11 receive version message: /Bitcoin ABC:0.14.6(EB8.0)/: version 70015, blocks=478558, us=[2002:4e2e:6d7c::4e2e:6d7c]:50631, peerid=2716, ipgroup=2405:6580:2220:3300:822:fcac:64cb:cfb8 2017-08-01 18:13:11 receive version message: /bitnodes.21.co:0.1/: version 70015, blocks=478558, us=<IP_ADDRESS>:59293, peerid=2717, ipgroup=<IP_ADDRESS> 2017-08-01 18:13:12 receive version message: /bitnode.lee/: version 70015, blocks=478601, us=<IP_ADDRESS>:3009, peerid=2718, ipgroup=<IP_ADDRESS> 2017-08-01 18:13:13 receive version message: /bitnodes.lee.co:0.1/: version 70015, blocks=478601, us=<IP_ADDRESS>:53634, peerid=2719, ipgroup=<IP_ADDRESS> 2017-08-01 18:13:14 received compactblock<PHONE_NUMBER>00000000651ef99cb9fcbe0dadde1d424bd9f15ff20136191a5eec from peer=235 2017-08-01 18:13:14 Misbehaving: <IP_ADDRESS>:8333 (0 -> 20)
After restarting the node, it still gets stuck on the same block and I still get Misbehaving messages (it seems to fail on the block header already?)
I noticed this: 2017-08-01 16:36:02 reassembled thin block for<PHONE_NUMBER>0000000019f112ec0a9982926f1258cdcc558dd7c3b7e5dc7fa148 (272502 bytes) 2017-08-01 16:36:02 ERROR: ContextualCheckBlock: UAHF fork block must exceed 1000000, but this block is 272502 bytes
So I made an invalidateblock on that hash just to be sure. Seems like it was successful but it does not solve the problem.

Seems like I got the block header but not the actual block?
`D:\bitcoin-xt-0.11.0-G\bin>bitcoin-cli -datadir=D:\bitcoindataxt getblock 000000
000000000000651ef99cb9fcbe0dadde1d424bd9f15ff20136191a5eec
error: {"code":-32603,"message":"Can't read block from disk"}
D:\bitcoin-xt-0.11.0-G\bin>btc getblockheader<PHONE_NUMBER>00000000651ef99cb9fcbe0dadde1d424bd9f15ff20136191a5eec
D:\bitcoin-xt-0.11.0-G\bin>bitcoin-cli -datadir=D:\bitcoindataxt getblockheader<PHONE_NUMBER>00000000651ef99cb9fcbe0dadde1d424bd9f15ff20136191a5eec
{
"hash": "000000000000000000651ef99cb9fcbe0dadde1d424bd9f15ff20136191a5eec",
"confirmations": -1,
"height": 478559,
"version": 536870912,
"merkleroot": "c896c91a0be4d3eed5568bab4c3084945e5e06669be38ec06b1c8ca4d84baaab",
"time":<PHONE_NUMBER>,
"mediantime":<PHONE_NUMBER>,
"nonce":<PHONE_NUMBER>,
"bits": "18014735",
"difficulty":<PHONE_NUMBER>36.2223,
"chainwork": "00000000000000000000000000000000000000000074489ee978b0489ded1f20",
"sizelimit": 0,
"sizelimitvote": 0,
"previousblockhash": "0000000000000000011865af4122fe3b144e2cbeea86142e8ff2fb4107352d43"
}
D:\bitcoin-xt-0.11.0-G\bin>`

Thanks for reporting this issue with useful details. Can you test https://github.com/bitcoinxt/bitcoinxt/pull/236 ?
I found out that one of my nodes was also stuck and this patch solved it. Nodes that had enough of the transactions in their mempool at fork time were unaffected by this bug.

Fixed in current release (tag v0.11G).


Fwdport 7.4 master

Pull request template
Description
Motivation and context
Why is this change required? What problem does it solve?
Related issues
Please use the following link syntaxes #600 to reference issues in the
current repository
Checklist
Add tests to cover the changes
New tests added or existing tests modified to cover all changes
Code conforms with the style guide
Sign your work
In order to contribute to the project, you must sign your work
https://github.com/scality/Guidelines/blob/master/CONTRIBUTING.md#sign-your-work
Thank you again for contributing! We will try to test and integrate the change
as soon as we can.

PR has been updated. Reviewers, please be cautious.

http://ci.ironmann.io/gh/scality/Integration/19120#build-parameters end to end success here!


Multiple Image QA Model

Hello @sshh12,
I wanted to express my gratitude for your incredible work! I've been searching around and couldn't find any model that supports multiple image inference, but I came across your idea in the suggestion section. If I want to begin working on it based on your work, where should I start? Do you have any suggestions?
Thank you!

You can see https://github.com/sshh12/multi_token/blob/main/scripts/imagebind_build_llava_finetune_dataset.py for getting the dataset into the correct format to match the example above.


move cluster cache code to a separate file

Move cluster cache related code to cluster_cache.go similar to route_cache

Minor revive lint fixes

[ ] Configuration Infrastructure

[ ] Docs

[ ] Installation

[X] Networking

[ ] Performance and Scalability

[ ] Policies and Telemetry

[ ] Security

[ ] Test and Release

[ ] User Experience

[ ] Developer Infrastructure

@ramaraochavali: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

lint_istio
85a5905da73fe4eaf7bba79926c99dec7b365a38
link
true
/test lint_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@ramaraochavali: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

lint_istio
85a5905da73fe4eaf7bba79926c99dec7b365a38
link
true
/test lint_istio

integ-security-multicluster_istio
702978289a48942faec969d81d1e3d07ba6adf20
link
true
/test integ-security-multicluster_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test integ-security-multicluster_istio


Cluster role global false still deploying cluster role

What happened?
Hi there the problem I am experiencing an issue when I try to deploy multiple version of the camel-k operator on my cluster. To do this I need to ensure the cluster role for the given operator is not set to global - this appears be a configurable property in the helm chart .Values.operator.global. However, when I set this to helm property to "false" the cluster role is still deployed.
Steps to reproduce

Camel K version
2.3.0

Hi @jarredmcginty !
Just to confirm: is this about the camel-k:edit clusterrole ? It is the only one I can see created.

Hi @jarredmcginty ! Just to confirm: is this about the camel-k:edit clusterrole ? It is the only one I can see created.

Hi @gansheer yes that is correct. The situation I am experiencing is that I had multiple environments on a single cluster, each with the a deployment of the camel-k:edit cluster role. Due to multiple deployments of this cluster role there is a conflict from a global perspective. The way I understand the helm chart is that setting the operator.global to "false" should have resolved this issue.
If I am misunderstanding the helm chart please let me know.

Having some global kubernetes objects are expected. The Camel K operator comes with Custom Resource Definitions (CRD), which are cluster-wide objects. So in a way we can't avoid having some Kubernetes objects installed on a global perspective, ie cluster-wide. To access these CRDs we create a cluster role. Even if you install multiple version of the operator, you will have one version of the CRDs on the cluster.
That being said, compared to other installation procedures this clusterrole is a clearly more permissive in its definition.
In the default configuration files that https://github.com/apache/camel-k/tree/main/pkg/resources/config/rbac we mainly install an applicative cluster role for access to the CRDs (operator-cluster-role-custom-resource-definitions.yaml). You can also find the additional camel-k-edit which is a role to add the CR permissions to "admin" and "edit" roles (user-cluster-role.yaml). There are also some additional feature specific cluster roles (knative and registry).
I think it might be better to have RBACs similar to default configuration files.

I think my question may be better phased in terms of understanding of the helm chart.
When the value in the helm chart .Values.operator.global is set to "true", we should deploy a cluster role. But if this value is set to "false" it should not deploy this cluster role as described in the helm chart below.

However, when the value is set to "false" the cluster role is still deployed


Add code examples for methods of Option

For the methods get, getOrElse, orElse, getOrElseThrow, filter, filterNot, flatMap, map, fold, peek and transform code examples are added so that all methods except iterator and the methods in the implementations of Some and None have code examples.

Thanks @mincong-h  for checking the code for me, something I should definitely have done myself...
I applied all your suggestions and the examples should be working now. I checked with java 8, please let me know if any of the examples are still producing errors so I can fix them.

Codecov Report

Merging #2496 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #2496   +/-   ##
=========================================
  Coverage     95.07%   95.07%
  Complexity     5402     5402
=========================================
  Files            89       89
  Lines         12821    12821
  Branches       1598     1598
=========================================
  Hits          12189    12189
  Misses          454      454
  Partials        178      178

Impacted Files
Coverage Δ
Complexity Δ

src/main/java/io/vavr/control/Option.java
100% <ø> (ø)
46 <0> (ø)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3a1a7ed...a306c3f. Read the comment docs.

You're welcome, @pepijno. The code looks good to me. I don't have the permission to merge your PR though. I will let @vavr-io/vavr-core maintainers to handle it. 😀

Hi @pepijno,
sorry for the slight delay 😅
Could you replace the System.out.println(ABC) examples with just ABC?
Then I will merge it.
Many thanks!

I will merge it now as-is! (I delayed it, soory)


Building Client not possible

Hallo,
Since a few Days i try to build the Client but without success.
On 64bit Virtual Machines Debian und Ubuntu i got massive Errors while Compiling and had no success
Raspberry 4 (Bullseye) crashes during Compiling
Raspberry 2 (Buster) crashes
32bit Virtual Machine Debian (Bullseye) crashes also
Cygwin on Win10 also not work
I had only limitated Knowledge of Linux.
Why is it not possible to distribute a precompiled Version of Fluxengine for Users who are not familiar in the process of Compiling?
Greets Trekinfo

What errors are you getting? Please make sure you have all the dependencies installed from here: http://cowlark.com/fluxengine/doc/building.html#building-the-client
There is a Windows precompiled binary, but distributing precompiled versions for Linux is difficult because there are so many Linux variants.

Oh,
if there is a Windows Version, then everything is fine.
I thought i must compile the Windows version on a Linux machine.
Greets Trekinfo

The Windows version, sadly, must be built on a Windows machine... anyway, good to know there's no problem. Closing. Please reopen if you have any other issues.


Release v1.46.0

Release Notes
Another day, another release. These are the release notes for the version v1.46.0.
Bug Fixes

fix: cdk v3 feature flag (#1560) (jonathan stewart)(57876bc7)

:whale: Docker Image
docker pull lacework/lacework-cli

Stahp


1.9 → 1.10 DB migration raises AttributeError: 'NoneType' object has no attribute 'find'

Issue Summary
1.9 → 1.10 DB migration raises AttributeError: 'NoneType' object has no attribute 'find'
Steps to Reproduce
what I did :
pip install -U wagtail
./manage.py migrate

Cannot migrate. Website is stuck down, raising migration error on gunicorn start.
Technical details

Python 3.5.2
Python/Django/Wagtail packages :

Django==1.11.1
django-appconf==1.0.2
django-compressor==2.1.1
django-el-pagination==3.0.1
django-extensions==1.7.8
django-modelcluster==3.1
django-taggit==0.22.1
django-treebeard==4.1.0
djangorestframework==3.6.3
wagtail==1.10
wagtail-nesting-box==0.2.1
wagtail-simple-gallery==0.3.6
wagtailatomicadmin==0.1.2
wagtailmedia==0.1.3
wagtailtinymce==<IP_ADDRESS>

Stack Trace
(cocoliv.es) cocolives@cocoliv ~/cocolives @ ./manage.py migrate
Traceback (most recent call last):
  File "./manage.py", line 12, in <module>
    execute_from_command_line(sys.argv)
  File "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/django/core/management/__init__.py", line 363, in execute_from_command_line
    utility.execute()
  File "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/django/core/management/__init__.py", line 355, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/django/core/management/base.py", line 283, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/django/core/management/base.py", line 327, in execute
    self.check()
  File "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/django/core/management/base.py", line 359, in check
    include_deployment_checks=include_deployment_checks,
  File "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/django/core/management/commands/migrate.py", line 62, in _run_checks
    issues.extend(super(Command, self)._run_checks(**kwargs))
  File "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/django/core/management/base.py", line 346, in _run_checks
    return checks.run_checks(**kwargs)
  File "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/django/core/checks/registry.py", line 81, in run_checks
    new_errors = check(app_configs=app_configs)
  File "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/wagtail/wagtailadmin/checks.py", line 65, in get_form_class_check
    if not issubclass(edit_handler.get_form_class(cls), WagtailAdminPageForm):
  File "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/wagtail/wagtailadmin/edit_handlers.py", line 318, in get_form_class
    widgets=cls.widget_overrides())
  File "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/wagtail/wagtailadmin/edit_handlers.py", line 65, in get_form_for_model
    return metaclass(class_name, (form_class,), form_class_attrs)
  File "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/wagtail/wagtailadmin/forms.py", line 274, in __new__
    new_class = super(WagtailAdminModelFormMetaclass, cls).__new__(cls, name, bases, attrs)
  File "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/modelcluster/forms.py", line 192, in __new__
    new_class = super(ClusterFormMetaclass, cls).__new__(cls, name, bases, attrs)
  File "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/django/forms/models.py", line 252, in __new__
    opts.field_classes)
  File "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/django/forms/models.py", line 170, in fields_for_model
    formfield = formfield_callback(f, **kwargs)
  File "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/wagtail/wagtailadmin/forms.py", line 255, in formfield_for_dbfield
    return db_field.formfield(**kwargs)
  File "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/wagtail/wagtailcore/fields.py", line 19, in formfield
    defaults = {'widget': get_rich_text_editor_widget(self.editor)}
  File "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/wagtail/wagtailadmin/rich_text.py", line 60, in get_rich_text_editor_widget
    return import_string(editor['WIDGET'])()
  File "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/wagtailtinymce/rich_text.py", line 66, in __init__
    self.kwargs = self.getDefaultArgs()
  File "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/wagtailtinymce/rich_text.py", line 59, in getDefaultArgs
    'language': translation.to_locale(translation.get_language()),
  File "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/django/utils/translation/__init__.py", line 207, in to_locale
    return _trans.to_locale(language)
  File "/home/cocolives/.virtualenvs/cocoliv.es/lib/python3.5/site-packages/django/utils/translation/trans_real.py", line 68, in to_locale
    p = language.find('-')
AttributeError: 'NoneType' object has no attribute 'find'

WIll be good put in a warning section.

For future readers that don't want to disable tinymce to perform migrations.
The problem in tinymce is that a default language is not selected for the translation module tinymce is using. This can be fixed by sub-classing the TinyMCERichTextArea class and adding the necessary line in there:
from django.utils import translation
from wagtailtinymce.rich_text import TinyMCERichTextArea
from django.conf import settings

class CustomTinyMCE(TinyMCERichTextArea):
    def __init__(self, *args, **kwargs):
        translation.trans_real.activate(settings.LANGUAGE_CODE)
        super(CustomTinyMCE, self).__init__(*args, **kwargs)

In the settings you then need a LANGUAGE_CODE setting, and you need to point wagtail to use the subclass you just wrote:
LANGUAGE_CODE = 'en-uk'

WAGTAILADMIN_RICH_TEXT_EDITORS = {
    'default': {
        'WIDGET': 'xxx.yyy.CustomTinyMCE'
    },
}

where xxx.yyy is that path to your class.
Once I had performed these steps I was able to migrate normally.


Add support for smath::log(), smath::logX()

Add support for smath::log(), matches std::log()
Add support for smath::log10(), matches std::log10()
Add support for smath::log2(), matches std::log2()

I forgot to mention this, but the implementation is not perfect.
Due to the fact that templates can only recurse so low, the Taylor series expansion can only be run so deep. Thus, I had to use an approximation method where-in you use x = A * 10^n and ln(x) = ln(A) + n * ln10.
The numbers are close, but not perfect (they're not within a single epsilon :-1:).

The problem is that for big numbers, it starts going too deep into the step count of the constexpr for the compilers.

Hum, ok. I will merge it as is for now and you can always come back later with improvements if you feel like it anyway :)

Yeah, it became more of an academic thing. I can't use the library anyway, thanks to MSVC.

Maybe someday in the future :p
Just to be curious: what did you want to use it for?

Just better math in my thesis work.

Oh, ok. It's not the first time someone contributes to the library, but except for the most basic integer functions, I never needed to do math at compile time either, so I've always wondered why people found the library either. I guess that it might be for same reason too.


No valid Downloadable variant exists in master playlist

I get this error when I try to download a master playlist containing:
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=662000,RESOLUTION=640x360
http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=4845944941001&videoId=4845938708001
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=862000,RESOLUTION=854x480
http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=4845945059001&videoId=4845938708001

My playlistURL is http://c.brightcove.com/services/mobile/streaming/index/master.m3u8?videoId=4845938708001&pubId=68348640001

Thanks for the report I will take a look on it and try to resolve it by this weekend

@kieste Fix landed on develop branch. Need to test more. Plan to publish it by today. As the whole module is rewritten to **ES2015 ** and some breaking changes happened on requiring this I am planning to publish version 2.0.0.

@kieste New version of this module has been published with fix of this bug. If you face any issue. feel free to comment or open a new issue.

Wow, that was a quick fix. Thanks. I will test the new version later this week.
Regards
Steffen
Am 25. April 2016 um 10:03 schrieb Nur Rony<EMAIL_ADDRESS>@kieste New version of this module has been published with fix of this bug. If you face any issue. feel free to comment or open a new issue.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub


[Feature request] Multi cursor editing & box selection of text

Suggested controls
Holding alt when clicking somewhere in the text field should add another cursor at that location so that when you type, text appears at all cursors at once.
You should also be able to Hold alt when selecting/hightlighting text, so say if you already have some text highlighted and hold down alt and drag over some text that isnt highlighted yet - it will get added to the current selection rather than replace the current selection/highlight.
And finally, MMB drag could act as a box selection
This is how multi cursor editing works in VS Code ;)

https://github.com/JasonStein/Notepads/issues/1088

https://github.com/JasonStein/Notepads/issues/1017


Reuse common CI scripts between repos

Utilize existing scripts/lib.sh from Collector repo for common tasks.

Closing this since #233 already implemented common scripts.


gdcmSerieHelper.h not found on Ubuntu 18.04 despite ITKGDCM module enabled

Description
Installing ITK 5.0.1 via conda leads to a compilation problem when using gdcm IO despite a system gdcm being present. See https://github.com/conda-forge/libitk-feedstock/issues/42
This seems to say that in whatever way ITK was built for conda, it doesn't find the system GDCM. Nevertheless, /home/sirfuser/miniconda3/lib/cmake/ITK-5.0/ITKConfig.cmake sets ITK_MODULES_ENABLED to include ITKGDCM.

Steps to Reproduce
conda install libitk-dev
sudo apt install libgdcm2-dev
git clone https://github.com/UCL/STIR.git
mkdir build; cd build; cmake ../STIR; make

Actual behavior
output
In file included from /home/sirfuser/devel/STIR/src/IO/ITKImageInputFileFormat.cxx:41:0:
/home/sirfuser/miniconda3/include/ITK-5.0/itkGDCMSeriesFileNames.h:25:10: fatal error: gdcmSerieHelper.h: No such file or directory
 #include "gdcmSerieHelper.h"
          ^~~~~~~~~~~~~~~~~~~
compilation terminated.

This is despite /usr/include/gdcm-2.8/gdcmSerieHelper.h existing.
Reproducibility
always
Versions
5.0.1

Environment
Ubuntu 18.04, cmake version 3.13.1

Additional Information

ITK provides GDCM by default, and a quick glance at the conda libitk recipe indicates that this GDCM is used in the conda recipe.
Where is the relevant find_package(ITK [...] of the dependent project?

Are you using windows?

There are some know issues with Conda not fixing up the paths in the CMake files correctly, but that is known to only happen on windows:
https://github.com/conda-forge/libitk-feedstock/issues/43
It may be working grep-ing around the installation director as done in the above issue to see if something similar is occurring on your platform.

thanks for picking this up. I'll try to reproduce this with current conda on Ubuntu 18.04 using our VM https://doi.org/10.5281/zenodo.3552234
Our find_package  is quite simple :-)
   find_package(ITK QUIET)
   if (ITK_FOUND)
      include(${ITK_USE_FILE})
   endif()

We use target_link_libraries here but this is a compilation error, so I guess that line is irrelevant.

It looks like you are including "itkGDCMSeriesFileNames.h" in the project, which includes "gdcmSerieHelper.h".  This does not follow best practices of encapsulation, this PR #1768 addressed that issue.
The Conda-forge has two packages, libitk and itk-devel. I believe the GDCM "Headers" component used by GDCM. This PR should address it:
conda-forge/libitk-feedstock#44

@blowekamp both PRs look good to me. thanks a lot!
@rijobro, maybe we can try the new const itk-devel package once that PR is merged.

That PR is merged. Reopen if it didn't fix the issue.


add multi file upload support

tho how does it work on the django side?

We don't support this. We should update the JS code to require the HTML input element doesn't allow multiple, and have the JS code only take the 0'th FileList element.


xmp: 4.1.0 -> 4.2.0

Description of changes
Upstream release: https://github.com/libxmp/xmp-cli/releases/tag/xmp-4.2.0
Package distribution has moved to GitHub.
Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[x] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

The commit message and the PR title should be xmp: 4.1.0 -> 4.2.0 according to the format.

Updated the PR and commit titles.

Result of nixpkgs-review pr 238164 run on x86_64-linux 1

1 package built:

xmp


Is installation by helm supported ?

Bug Report
helm chart doesn't contain
Policy Manager Deployment
Host Policy Manager Deployment
etc
there is no instruction installin by helm on site
General Information
I know nowdays there is popular to install by downloaded binary or sh script.
is helm chart installation method being supported ?
Expected behavior
install by helm chart

is helm chart installation method being supported ?

No, It's not supported as of now. The recommended method of installation for getting started is karmor install
Having said that, there was a discussion of adding helm support in one of the community meetings.

Yes, we discussed on making helm a first class citizen that involves following tasks:

fixing helm charts to deploy all required components
ensuring we have enough tests in GH actions to validate the helm support such that a future PR does not unknowningly break it.


Colorize files, lines and functions.

I added support for colorizing files, lines and functions in the stack trace. I think this makes important information easier to find.

I would like to keep the reference printer simple. You are free to use your own printer and/or your own fork of backward of course. This library is not really intended to be depended upon, but integrated into your source code, were you can modify it at will.
Note: Some operating systems uses / as path separators and accepts \. Some others accept both / and \ as path separators. Note sure if you can ever be 100% able to detect the basename unless you know what platform the code was built on (which could be different than the one used to run it).


Add SimpleSpan::splat

SimpleSpan::splat creates a SimpleSpan from a single offset using it as both the start and end. Only works for types which are Clone. Meant to be more convenient for creating an EOI span than duplicating the argument for SimpleSpan::new.

Thanks!

Looks like it needs a cargo fmt.

Looks like it needs a cargo fmt.

I had ran one, seems I invalidated it after. It added a trailing comma and did some whitespace fixes.


It shouldn't be possible to kill other org’s GP instance.

Parent issue
Story
Yarn with ACLs provide that kind of security.

merge this into parent issue. #1247


no such table error when creating a pivot object by attach

Describe the bug
no such table error when creating a pivot object by attach
To Reproduce
final class Branch: Model, Content {
    static let schema = "t_branch"

    @ID(key: .id)
    var id: UUID?

    @Field(key: "name")
    var name: String

    @Siblings(through: BranchPerson.self, from: \.$branch, to: \.$person)
    var persons: [Person]

    init() { }

    init(id: UUID? = nil, name: String) {
        self.id = id
        self.name = name
    }
}

final class Person: Model, Content {
    static let schema = "t_person"

    @ID(key: .id)
    var id: UUID?

    @Field(key: "name")
    var name: String

    @Siblings(through: BranchPerson.self, from: \.$person, to: \.$branch)
    var branches: [Branch]

    init() { }

    init(id: UUID? = nil, name: String) {
        self.id = id
        self.name = name
    }
}

final class BranchPerson: Model, Content {
    static let schema = "t_branch_person"

    @ID(key: .id)
    var id: UUID?

    @Parent(key: "branchId")
    var branch: Branch

    @Parent(key: "personId")
    var person: Person

    init() { }

    init(id: UUID? = nil, branch: Branch, person: Person) throws {
        self.id = id
        self.$branch.id = try branch.requireID()
        self.$person.id = try person.requireID()
    }
}

struct CreateBranchPerson: AsyncMigration {
    func prepare(on database: Database) async throws {
        try await database.schema("t_branch_person")
            .id()
            .field("branchId", .uuid, .required, .references("branch", "id", onDelete: .cascade))
            .field("personId", .uuid, .required, .references("person", "id", onDelete: .cascade))
            .unique(on: "branchId", "personId") // 不允许重复的关系
            .create()
    }

    func revert(on database: Database) async throws {
        try await database.schema("t_branch_person").delete()
    }
}

public func configure(_ app: Application) throws {
    app.middleware.use(FileMiddleware(publicDirectory: app.directory.publicDirectory))
    app.views.use(.leaf)

    app.databases.use(.sqlite(.file("db.sqlite")), as: .sqlite)
    app.migrations.add(CreateBranch())
    app.migrations.add(CreatePerson())
    app.migrations.add(CreateBranchPerson())

    try routes(app)
}

struct PersonWatchOnBranchController: RouteCollection {
    func boot(routes: RoutesBuilder) throws {
        routes.post("person", ":personId", "watchOn", ":branchId",  use: createPersonWatchOnBranchHandler)
    }

    func createPersonWatchOnBranchHandler(req: Request) async throws -> HTTPStatus {
        guard let person = try await Person.find(req.parameters.get("personId"), on: req.db),
              let branch = try await Branch.find(req.parameters.get("branchId"), on: req.db)
        else {
            throw Abort(.notFound)
        }

        // 只有当关系不存在时才附加
        try await person.$branches.attach(branch, method: .ifNotExists, on: req.db)
        //try await branch.$persons.attach(person, method: .ifNotExists, on: req.db)

        return .ok
    }
}

Steps to reproduce the behavior:

Add package with configuration '...'

let package = Package(
    name: "ipas",
    platforms: [
       .macOS(.v12)
    ],
    dependencies: [
        // 💧 A server-side Swift web framework.
        .package(url: "https://github.com/vapor/vapor.git", from: "4.67.1"),
        .package(url: "https://github.com/vapor/fluent.git", from: "4.5.0"),
        .package(url: "https://github.com/vapor/fluent-sqlite-driver.git", from: "4.2.0"),
        .package(url: "https://github.com/m-barthelemy/vapor-queues-fluent-driver.git", from: "3.0.0-beta1"),
        .package(url: "https://github.com/vapor/leaf.git", from: "4.2.2"),
    ],
    targets: [
        .target(
            name: "App",
            dependencies: [
                .product(name: "Fluent", package: "fluent"),
                .product(name: "FluentSQLiteDriver", package: "fluent-sqlite-driver"),
                .product(name: "QueuesFluentDriver", package: "vapor-queues-fluent-driver"),
                .product(name: "Leaf", package: "leaf"),
                .product(name: "Vapor", package: "vapor")
            ],
            swiftSettings: [
                // Enable better optimizations when building in Release configuration. Despite the use of
                // the `.unsafeFlags` construct required by SwiftPM, this flag is recommended for Release
                // builds. See <https://github.com/swift-server/guides/blob/main/docs/building.md#building-for-production> for details.
                .unsafeFlags(["-cross-module-optimization"], .when(configuration: .release))
            ]
        ),
        .executableTarget(name: "Run", dependencies: [.target(name: "App")]),
        .testTarget(name: "AppTests", dependencies: [
            .target(name: "App"),
            .product(name: "XCTVapor", package: "vapor"),
        ])
    ]
)

Send request with options '...'

POST http://<IP_ADDRESS>:8080/person/D9B06675-532F-45A8-BD93-CA10241DDA7B/watchOn/8F25A197-1BC8-4679-BC28-E4AC3F1CDAF7

See error

[ INFO ] POST /person/D9B06675-532F-45A8-BD93-CA10241DDA7B/watchOn/8F25A197-1BC8-4679-BC28-E4AC3F1CDAF7 [request-id: EF168AC8-6511-4E7B-9F59-11C40A1176DA] (Vapor/RouteLoggingMiddleware.swift:13)
[ DEBUG ] query read t_person filters=[t_person[id] = D9B06675-532F-45A8-BD93-CA10241DDA7B] limits=[count(1)] [database-id: sqlite, request-id: EF168AC8-6511-4E7B-9F59-11C40A1176DA] (FluentKit/QueryBuilder.swift:293)
[ DEBUG ] No available connections on this event loop, creating a new one (AsyncKit/EventLoopConnectionPool.swift:202)
[ DEBUG ] Connected to sqlite db: db.sqlite (SQLiteNIO/SQLiteConnection.swift:112)
[ DEBUG ] PRAGMA foreign_keys = ON [] (SQLiteNIO/SQLiteConnection.swift:161)
[ DEBUG ] SELECT "t_person"."id" AS "t_person_id", "t_person"."name" AS "t_person_name", "t_person"."email" AS "t_person_email", "t_person"."telephone" AS "t_person_telephone", "t_person"."dingTalkId" AS "t_person_dingTalkId" FROM "t_person" WHERE "t_person"."id" = ? LIMIT 1 ["D9B06675-532F-45A8-BD93-CA10241DDA7B"] [database-id: sqlite, request-id: EF168AC8-6511-4E7B-9F59-11C40A1176DA] (SQLiteNIO/SQLiteConnection.swift:161)
[ DEBUG ] query read t_branch filters=[t_branch[id] = 8F25A197-1BC8-4679-BC28-E4AC3F1CDAF7] limits=[count(1)] [database-id: sqlite, request-id: EF168AC8-6511-4E7B-9F59-11C40A1176DA] (FluentKit/QueryBuilder.swift:293)
[ DEBUG ] SELECT "t_branch"."id" AS "t_branch_id", "t_branch"."name" AS "t_branch_name" FROM "t_branch" WHERE "t_branch"."id" = ? LIMIT 1 ["8F25A197-1BC8-4679-BC28-E4AC3F1CDAF7"] [database-id: sqlite, request-id: EF168AC8-6511-4E7B-9F59-11C40A1176DA] (SQLiteNIO/SQLiteConnection.swift:161)
[ DEBUG ] query read t_branch_person filters=[t_branch_person[personId] = D9B06675-532F-45A8-BD93-CA10241DDA7B, t_branch_person[branchId] = 8F25A197-1BC8-4679-BC28-E4AC3F1CDAF7] limits=[count(1)] [database-id: sqlite, request-id: EF168AC8-6511-4E7B-9F59-11C40A1176DA] (FluentKit/QueryBuilder.swift:293)
[ DEBUG ] SELECT "t_branch_person"."id" AS "t_branch_person_id", "t_branch_person"."branchId" AS "t_branch_person_branchId", "t_branch_person"."personId" AS "t_branch_person_personId" FROM "t_branch_person" WHERE "t_branch_person"."personId" = ? AND "t_branch_person"."branchId" = ? LIMIT 1 ["D9B06675-532F-45A8-BD93-CA10241DDA7B", "8F25A197-1BC8-4679-BC28-E4AC3F1CDAF7"] [database-id: sqlite, request-id: EF168AC8-6511-4E7B-9F59-11C40A1176DA] (SQLiteNIO/SQLiteConnection.swift:161)
[ DEBUG ] query create t_branch_person input=[[branchId: 8F25A197-1BC8-4679-BC28-E4AC3F1CDAF7, personId: D9B06675-532F-45A8-BD93-CA10241DDA7B, id: 265A29D6-8205-48B1-B225-E838BCDA3E63]] [database-id: sqlite, request-id: EF168AC8-6511-4E7B-9F59-11C40A1176DA] (FluentKit/QueryBuilder.swift:293)
[ DEBUG ] INSERT INTO "t_branch_person" ("branchId", "personId", "id") VALUES (?, ?, ?) ["8F25A197-1BC8-4679-BC28-E4AC3F1CDAF7", "D9B06675-532F-45A8-BD93-CA10241DDA7B", "265A29D6-8205-48B1-B225-E838BCDA3E63"] [database-id: sqlite, request-id: EF168AC8-6511-4E7B-9F59-11C40A1176DA] (SQLiteNIO/SQLiteConnection.swift:161)
[ WARNING ] error: no such table: main.person [request-id: EF168AC8-6511-4E7B-9F59-11C40A1176DA] (Vapor/Middleware/ErrorMiddleware.swift:42)

Expected behavior
create a pivot (BranchPerson) successfully without any error.
Environment

Vapor Framework version:

{
      "identity" : "vapor",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/vapor/vapor.git",
      "state" : {
        "revision" : "0eacdf3c7eab6df493ce328f2e97c2873b3e1c1e",
        "version" : "4.67.1"
      }
    }

Vapor Toolbox version: toolbox: 18.6.0
OS version: 12.6 (21G115)

You're reference points to person but the table name is t_person

wow. I misunderstood. Thank you very much.

wow. I misunderstood. Thank you very much.


fixed the alignment issue for toggle button

[Bug]: Dark and light mode alignment issue #941

Title :
[Bug]: Dark and light mode alignment issue
Issue No. :
#941
Close #941
Code Stack :
Close #<941>

Video (mandatory)
[
https://github.com/user-attachments/assets/af85b442-c150-4c78-820e-f2e9358c4797
](url)
Checklist:

[X] I have mentioned the issue number in my Pull Request.
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have created a helpful and easy to understand README.md
[X] I have gone through the  contributing.md file before contributing

Additional context (Mandatory )
Are you contributing under any Open-source programme?

[X] I'm a GSSOC'24 contributor

Hi @apu52 ,
Thank you for your feedback on the toggle button design. I appreciate your input and understand the importance of maintaining consistency with the existing website design.I’m open to further discussions and iterations to ensure we achieve the best possible outcome for the project. If you have any specific aspects of the current toggle button design that you’d like to retain, I would be happy to integrate those elements into the new pr.

Hi @apu52 ,
Thank you for your feedback on the toggle button design. I appreciate your input and understand the importance of maintaining consistency with the existing website design.I’m open to further discussions and iterations to ensure we achieve the best possible outcome for the project. If you have any specific aspects of the current toggle button design that you’d like to retain, I would be happy to integrate those elements into the new pr.

I can suggest u some UI design of the toggle button . but I just want to u can provide me here some of the other designs u have matching with the website

sure we can work on that, we'll provide you with the designs as soon as possible.


Feature/mas 1563 history filtering

Adjustments to history plugin to include

additional filtering out of duplicate action data
proper insertion of fio actions that do not provide new owner public key
added support for xferaddress

@aaroncox this look good to you?


Adding Elestio as deployment option

Hey team,
I am Kaiwalya, Developer Advocate at Elestio. Elestio has been providing options of fully deploying and managing ChangeDetection application as shown here. I think it would be a great idea if we can add it to official readme/documentation here.
🔔 In addition to this, if you are interested we provide partnership opportunities with tools we support by revenue share upon addition of this method in docs. If you would like to collaborate, just shoot me an email at<EMAIL_ADDRESS>:)

@kaiwalyakoparkar Please be very aware of our https://github.com/dgtlmoon/changedetection.io/blob/master/COMMERCIAL_LICENCE.md if you are reselling changedetection.io as a hosted platform and do not have an agreement we will persue all legal avenues

Also the version in the screenshot is very old and contains many critical security issues


icon indentetion is wrong

files seems belong to folder which is in the same path/dept.  You can see in the image, my index.html is not under the node modules. I think there is an indentetion problem with icons.

VSCode Version: Code 1.6.0 (e52fb0bc87e6f5c8f144e172639891d8d8c9aa55, 2016-10-10T18:37:40.189Z)
OS Version: Windows_NT ia32 10.0.14393
Extensions: abotteram.typescript-react-snippets-0.1.9, atefth.ruby-on-rails-snippets-0.0.1, CraigMaslowski.erb-0.0.1, g3ortega.crystal-0.1.8, rebornix.Ruby-0.9.0

Steps to Reproduce:

activate seti icons
add a folder and file to root. and see result.

https://github.com/Microsoft/vscode/issues/11762


hypophysis/pituitary development terms

-hypophysis development
--[p]hypophysis morphogenesis
---[p]hypophysis formation
--[p]adenohypophysis development
---[p]adenohypophys morphogenesis
----[p]adenohypophys formation
--[p]neurohypophysis development
---[p]neurohypophysis morphogenesis
----[p]neurohypophysis formation
forebrain development (GO:0030900)
--[p]neurohypophysis development
---[p]neurohypophysis morphogenesis
----[p]neurohypophysis formation
gland development (GO:0048732)
--[i]hypophysis development
endocrine system development (GO:0035270)
--[p]hypophesis development
hypophysis development
exact synonym: pituitary gland development
exact synonym: pituitary developoment
def: The process whose specific outcome is the
progression of the hypophysis over time, from its
formation to the mature structure.
hypophysis morphogenesis
exact synonym: pituitary gland morphogenesis
exact synonym: pituitary morphogenesis
def: The process by which the anatomical structures
of hypophysis are generated and organized.
Morphogenesis pertains to the creation of form.
hypophysis formation
exact synonym: pituitary gland formation
exact synonym: pituitary formation
def: The process that gives rise to the hypophysis.
This process pertains to the initial formation of a
structure from unspecified parts.
adenohypophysis development
exact synonym: anterior pituitary development
exact synonym: anterior pituitary gland development
def: The process whose specific outcome is the
progression of the adenohypophysis over time, from its
formation to the mature structure.
adenohypophysis morphogenesis
exact synonym: anterior pituitary morphogenesis
exact synonym: anterior pituitary gland morphogenesis
def: The process by which the anatomical structures
of adenohypophysis are generated and organized.
Morphogenesis pertains to the creation of form.
adenohypophysis formation
exact synonym: anterior pituitary formation
exact synonym: anterior pituitary gland formation
def: The process that gives rise to
adenohypophysis. This process pertains to the initial
formation of a structure from unspecified parts.
neurohypophysis development
exact synonym: posterior pituitary development
exact synonym: posterior pituitary gland development
def: The process whose specific outcome is the
progression of the neurohypophysis over time, from its
formation to the mature structure.
neurohypophysis morphogenesis
exact synonym: posterior pituitary morphogenesis
exact synonym: posterior pituitary gland morhogenesis
def:  The process by which the anatomical structures
of neurohypophysis are generated and organized.
Morphogenesis pertains to the creation of form.
neurohypophysis formation
exact synonym: posterior pituitary formation
exact synonym: posterior pituitary gland formation
def:  The process that gives rise to
neurohypophysis. This process pertains to the initial
formation of a structure from unspecified parts.
Reported by: cerivs
Original Ticket: "geneontology/ontology-requests/3323":https://sourceforge.net/p/geneontology/ontology-requests/3323

thanks www.movied.org


Explain incompatibility with self signed issuers

Signed-off-by: Charlie Egan<EMAIL_ADDRESS>

/lgtm
/approve


Add git sources to tracked_paths

Automatically track all cloned git repo paths. Many code generators operate within their own repository and do not provide an option for where the generated code is placed. For these synth scripts, the user can use the git and shell tools to run the codegen process. The output files need to be in a tracked path or they cannot be found and the user should not be setting _tracked_paths themselves.
This PR makes #27 unnecessary.

Thanks, @chingor13!


weird bug

Describe the bug
pressed export error i got is below
Error message
Traceback (most recent call last):
File "fnf_converter.py", line 529, in exportAsOsz
File "site-packages\pydub\audio_segment.py", line 685, in from_file
File "site-packages\pydub\utils.py", line 274, in mediainfo_json
File "subprocess.py", line 800, in init
File "subprocess.py", line 1207, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
Screenshots:
none
Program version:
1.1.2
Plateform:
Windows 10

Duplicate of #6


Allow specification of http.Client

We should expose specification of the http.Client to use in our various clients (llms, tools, vectorstores).
We have "WithHTTPClient" in some options but this should be pervasive.

I belive this is now implemented everywhere.


Update firestore index ensurer to use configured CollectionNamePrefix

What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #1580
Does this PR introduce a user-facing change?:

NONE

👍
/lgtm


Removed the option to enter the app's name in the form and instead us…

…ed the name given in the event.json file to generate the event folder. Also fixed some code indenting issues.
Solves the issue #836.
@mariobehling
Test the app here
http://fierce-brushlands-59495.herokuapp.com/
Please review. Thanks.

Current coverage is 38.89% (diff: 3.29%)

Merging #862 into development will decrease coverage by 1.41%

@@           development       #862   diff @@
=============================================
  Files                6          6
  Lines              784        815    +31
  Methods             83         88     +5
  Messages             0          0
  Branches           128        136     +8
=============================================
+ Hits               316        317     +1
- Misses             468        498    +30
  Partials             0          0

Powered by Codecov. Last update a098936...2f407a7

Good job. Thank you!


Object-C mixed with swift Hud display exception

Mixed swift in object-c, open the app, and the first prompt box pops up sometimes appears abnormal. Later, it will be ok.
Two cases have been found so far:

The full screen is black, and the text to be displayed is missing
The text does not match the border. There is a screenshot of this


[mle] check router ID match when sending Child Id Response

This commit updates the SendChildIdResponse() to check in the case
that the child already has a previously assigned RLOC16 that it
matches the current router ID of the parent and if not we assign a new
RLOC16 to it in the "Child ID Response".

Should help address https://github.com/openthread/openthread/issues/7366.

Thanks to @simonlingoogle for verifying this fix (https://github.com/openthread/openthread/issues/7366#issuecomment-1044676619).


Ingress using the wrong api

I am trying to set up the localstack s3 service with an ingress. On a clean installation, I run into following problem:
(v0.2.3)
helm install localstack-test localstack-charts/localstack --set startServices=s3 --set ingress.enabled=true
>> Error: unable to build kubernetes objects from release manifest: unable to recognize "": no matches for kind "Ingress" in version "networking.k8s.io/v1beta1"

(v0.3.0)
helm install localstack-test localstack-charts/localstack --set startServices=s3 --set ingress.enabled=true
>> Error: unable to build kubernetes objects from release manifest: unable to recognize "": no matches for kind "Ingress" in version "networking.k8s.io/v1"

I have seen that @kristapsstrals  on PR #26 update the ingress, but I tested it for both version v0.3.0 and v0.2.3 which failed.
BTW:
I am running on
kubectl version
>> Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.1", GitCommit:"632ed300f2c34f6d6d15ca4cef3d3c7073412212", GitTreeState:"clean", BuildDate:"2021-08-19T15:38:26Z", GoVersion:"go1.16.6", Compiler:"gc", Platform:"darwin/amd64"}
>> Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.1", GitCommit:"632ed300f2c34f6d6d15ca4cef3d3c7073412212", GitTreeState:"clean", BuildDate:"2021-08-19T15:39:34Z", GoVersion:"go1.16.7", Compiler:"gc", Platform:"linux/amd64"}

Thanks for reporting @miaucl . This is largely a community-maintained repo, the LocalStack maintainers are currently not really following up on the issues created in here. Do you think you could contribute a pull request to get this fixed for both API versions? Thanks for your help! 🙏

I am quite new to kubernetes and helm and just figuring stuff out as I am moving my setup from docker compose to k8s.
I can try 😃
If I find a solution, surely I will post it!

Coming back with a more specific error:
Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(Ingress.spec.rules[0].http): missing required field "paths" in io.k8s.api.networking.v1.HTTPIngressRuleValue

I guess the problem is that the ingress yaml definition in the template folder is mal-formed.
I have it almost running on my machine and will post a PR soonish.

Hello
This version of the localstack helm chart is currently broken for k8s >= 1.19. There are three PRs to fix this problem as well as other bugs concerning the mounted volumes and tests.

#31
#32
#33

Thanks so much for digging into these issues @miaucl ! 🙏 Changes look awesome - merged the PRs, new chart releases are currently being triggered by the CI pipeline.. Thanks for your help!

Perfect, happy to help :)


Minor: Inaccuracy in documentation, FMs number

In part 3.1. Model Creation of the md documentation, it seems to be:
corresponding layer ([30, 40, 40, 50]
instead of
corresponding layer ([15, 20, 25, 30]
Thanks Carol for noticing.
Kostas

Fixed in branch "refactorCnn1"
Kostas

Merged to master. Closing.


No leader using prevote feature

We use Etcd raft lib in our system, and we not change the etcd raft lib code.
Today I test a scenario with prevote,the cluster will no leader.
The follow test case will be failed

func TestPreVoteWithLeaderNetworkPartition(t *testing.T) {
	n1 := newTestRaft(1, []uint64{1, 2, 3}, 10, 1, NewMemoryStorage())
	n2 := newTestRaft(2, []uint64{1, 2, 3}, 10, 1, NewMemoryStorage())
	n3 := newTestRaft(3, []uint64{1, 2, 3}, 10, 1, NewMemoryStorage())

	n1.becomeFollower(1, None)
	n2.becomeFollower(1, None)
	n3.becomeFollower(1, None)

	n1.preVote = true
	n2.preVote = true
	n3.preVote = true

	n1.checkQuorum = true
	n2.checkQuorum = true
	n3.checkQuorum = true

	nt := newNetwork(n1, n2, n3)
	nt.send(pb.Message{From: 1, To: 1, Type: pb.MsgHup})

	sm := nt.peers[1].(*raft)
	if sm.state != StateLeader {
		t.Errorf("peer 2 state: %s, want %s", sm.state, StateFollower)
	}

	// simulate leader down. followers start split vote.
	nt.isolate(1)
	sm = nt.peers[2].(*raft)
	if sm.state != StateFollower {
		t.Errorf("peer 2 state: %s, want %s", sm.state, StateFollower)
	}

	nt.send(pb.Message{From: 2, To: 2, Type: pb.MsgHup})
	nt.send(pb.Message{From: 3, To: 3, Type: pb.MsgHup})
	sm = nt.peers[3].(*raft)
	if sm.state != StateLeader {
		t.Errorf("peer 2 state: %s, want %s", sm.state, StateLeader)
	}
}

I think in becomePreCandidate function should set r.lead to None
func (r *raft) becomePreCandidate() {
	// TODO(xiangli) remove the panic when the raft implementation is stable
	if r.state == StateLeader {
		panic("invalid transition [leader -> pre-candidate]")
	}
	// Becoming a pre-candidate changes our step functions and state,
	// but doesn't change anything else. In particular it does not increase
	// r.Term or change r.Vote.
	r.step = stepCandidate
	r.votes = make(map[uint64]bool)
+       r.lead = None
	r.tick = r.tickElection
	r.state = StatePreCandidate
	r.logger.Infof("%x became pre-candidate at term %d", r.id, r.Term)
}

and then in Step() function, r.lead is set by  becomePreCandidate function to None, inLease will be false. Otherwise, inLease will be true high possibility, the node will ignore MsgPreVote, and result in no node will get the quorum grant votes.
func (r *raft) Step(m pb.Message) error {
	// Handle the message term, which may result in our stepping down to a follower.
	switch {
	case m.Term == 0:
		// local message
	case m.Term > r.Term:
		if m.Type == pb.MsgVote || m.Type == pb.MsgPreVote {
			force := bytes.Equal(m.Context, []byte(campaignTransfer))
			//!!! r.lead is None, inLease will be false
			//othersize, inLease will be true high possibility
			inLease := r.checkQuorum && r.lead != None && r.electionElapsed < r.electionTimeout
			if !force && inLease {
				// If a server receives a RequestVote request within the minimum election timeout
				// of hearing from a current leader, it does not update its term or grant its vote
				r.logger.Infof("%x [logterm: %d, index: %d, vote: %x] ignored %s from %x [logterm: %d, index: %d] at term %d: lease is not expired (remaining ticks: %d)",
					r.id, r.raftLog.lastTerm(), r.raftLog.lastIndex(), r.Vote, m.Type, m.From, m.LogTerm, m.Index, r.Term, r.electionTimeout-r.electionElapsed)
				return nil
			}
		}

I think this makes sense, especially when there are two pre-candidates from leader isolation. And leader steps down anyway when becomePreCandidate gets called. Defer to @bdarnell @xiang90

There is an open PR with this change: #8334.
In https://github.com/coreos/etcd/pull/8334#pullrequestreview-58441620 I suggested that part of CheckQuorum is redundant when PreVote is enabled and we may want to disable the inLease check when both are enabled. (In CockroachDB, we use PreVote without CheckQuorum)


Screenshot is not saved when test case throws an Error

Following this FAQ, we took screenshots of our test cases on version 1.8.0.
But on upgrading to the lastest version, the screenshot stopped to work on test cases which throw erros.
We used this to abort the test when one expectation can invalidate the complete test case, evicting a cascading failure.
To illustrate this scenario, I made a simple git project, with three test cases:

one wich fails a expectation and a screenshot is successfully taken;
one wich fails with an error, but no screenshot is taken, or an empty image is generated;
one wich is ignored, but if you enable it, the second case will have a correct screenshot taken.

The problem seems to be that the protractor process is closed before the file is completely saved, but I'm not sure.

Yes, this is because the runner process has finished, so Protractor is cleaning up without knowing to wait. (See https://github.com/angular/protractor/blob/master/lib/launcher.js#L257). I'm not sure if this counts as a bug, or just an annoying side effect - usually, we do want to make sure that the process quits and doesn't hang unexpectedly. Additionally, when running in one process (which we do if there's no sharding requested, and which is desirable for debugging), we actually can't wait on the process to exit because we've got other waits and things we need to do.
The easy way around this is to have a onCleanUp or afterLaunch task which flushes all of your outputs and returns a promise when that's all done.
We should mention this in the FAQ example. Changing the type of this issue to 'docs'.

Closing as dupe of https://github.com/angular/protractor/issues/1938


Problem installing

Hello,
I try to install Hermes but there seems to be a problem with blackfriday
[nalkema@prdexp1 src]$ go get -u -v github.com/matcornic/hermes
github.com/matcornic/hermes (download)
github.com/Masterminds/sprig (download)
github.com/Masterminds/goutils (download)
github.com/Masterminds/semver (download)
github.com/google/uuid (download)
github.com/huandu/xstrings (download)
github.com/imdario/mergo (download)
github.com/mitchellh/copystructure (download)
github.com/mitchellh/reflectwalk (download)
github.com/spf13/cast (download)
get "golang.org/x/crypto/bcrypt": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at //golang.org/x/crypto/bcrypt?go-get=1
get "golang.org/x/crypto/bcrypt": verifying non-authoritative meta tag
golang.org/x/crypto (download)
get "golang.org/x/crypto/blowfish": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at //golang.org/x/crypto/blowfish?go-get=1
get "golang.org/x/crypto/blowfish": verifying non-authoritative meta tag
get "golang.org/x/crypto/scrypt": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at //golang.org/x/crypto/scrypt?go-get=1
get "golang.org/x/crypto/scrypt": verifying non-authoritative meta tag
get "golang.org/x/crypto/pbkdf2": found meta tag get.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at //golang.org/x/crypto/pbkdf2?go-get=1
get "golang.org/x/crypto/pbkdf2": verifying non-authoritative meta tag
github.com/jaytaylor/html2text (download)
github.com/olekukonko/tablewriter (download)
github.com/mattn/go-runewidth (download)
github.com/ssor/bom (download)
get "golang.org/x/net/html": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at //golang.org/x/net/html?go-get=1
get "golang.org/x/net/html": verifying non-authoritative meta tag
golang.org/x/net (download)
get "golang.org/x/net/html/atom": found meta tag get.metaImport{Prefix:"golang.org/x/net", VCS:"git", RepoRoot:"https://go.googlesource.com/net"} at //golang.org/x/net/html/atom?go-get=1
get "golang.org/x/net/html/atom": verifying non-authoritative meta tag
github.com/russross/blackfriday (download)
package github.com/russross/blackfriday/v2: cannot find package "github.com/russross/blackfriday/v2" in any of:
        /usr/local/go/src/github.com/russross/blackfriday/v2 (from $GOROOT)
        /users/nalkema/go/src/github.com/russross/blackfriday/v2 (from $GOPATH)
github.com/vanng822/go-premailer (download)
github.com/PuerkitoBio/goquery (download)
github.com/andybalholm/cascadia (download)
github.com/vanng822/css (download)
github.com/gorilla/css (download)

Same issue, I tried this workaround:
go mod edit<EMAIL_ADDRESS><EMAIL_ADDRESS>
but go mod tidy still complains:
[...]
go<EMAIL_ADDRESS>used for two different module paths (github.com/russross/blackfriday/v2 and gopkg.in/russross/blackfriday.v2)

I'm using the latest go version:
go version
go version go1.14 darwin/amd64

Hello @NielsA , it's written in the README. If you use gomodules, run go get -u github.com/matcornic/hermes/v2 and if not, you have to use a dependency manager and choose v1.2.0 tag

First install the package:
go get -u github.com/matcornic/hermes/v2
Starting from release v2.0.0, Hermes uses Go modules. The latest version of Hermes requires at least Go 1.11 with gomodules enabled. You can still use an Hermes release compatible with prior Go versions by using v1.2.0 release

@matcornic

First install the package:
go get -u github.com/matcornic/hermes/v2

This not work
go get -u -v github.com/matcornic/hermes/v2
github.com/matcornic/hermes (download)
package github.com/matcornic/hermes/v2: cannot find package "github.com/matcornic/hermes/v2" in any of:
	/usr/lib/go/src/github.com/matcornic/hermes/v2 (from $GOROOT)
	/home/xxx/Go/src/github.com/matcornic/hermes/v2 (from $GOPATH)


Refresh docs

add missing docs & tests for refresh method

Coverage increased (+0.3%) to 88.446% when pulling db584033eff7f877db9273a53a09397ec2e52459 on mSOHU:refresh-docs into f9edc6f5a87c076ab4776d1cec575a38fa848fb6 on jplana:master.

LGTM


[update-add] liber/init_repo.sh Makefile: features

[update-add] liber/init_repo.sh Makefile: add some feature to the makefile creation; update ~/liber to ~/.liber because we dont want this folder to be visible with a simple 'ls'

t'es trop fort bordel

main non


Add dispatchers

Codecov Report

Merging #120 (79b36d6) into av/preferences (7f0426f) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@                Coverage Diff                 @@
##           av/preferences     #120      +/-   ##
==================================================
+ Coverage           74.04%   74.07%   +0.02%
==================================================
  Files                  41       42       +1
  Lines                1826     1828       +2
  Branches              254      254
==================================================
+ Hits                 1352     1354       +2
  Misses                356      356
  Partials              118      118

Impacted Files
Coverage Δ

...nyo/composelife/dispatchers/ClockTestExtensions.kt
100.00% <ø> (ø)

.../composelife/dispatchers/ComposeLifeDispatchers.kt
0.00% <ø> (ø)

...poselife/dispatchers/TestComposeLifeDispatchers.kt
100.00% <100.00%> (ø)

...omposelife/dispatchers/di/TestDispatchersModule.kt
100.00% <100.00%> (ø)

...yo/composelife/preferences/PreferencesDataStore.kt
84.61% <100.00%> (+1.28%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7f0426f...79b36d6. Read the comment docs.


Add check for "green" status for Hudson

Hudson and Jenkins have extremely similar APIs, one of the main differences is that Jenkins uses "blue" but Hudson uses "green" for a successful last build.  Adding the option to check for "green" status allows the Jenkins checks to also work for checking Hudson jobs.
Jenkins does not use green as a color: https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/model/BallColor.java

@JeanFred you ok with this?

I'll clean this up and have only the relevant changes


[GHSA-j8x2-2m5w-j939] Amazon CloudWatch Agent for Windows has Privilege Escalation Vector

Updates

Affected products

Comments
Make affected products versions SEMVER compliant

Hi there @sky333999! A community member has suggested an improvement to your security advisory. If approved, this change will affect the global advisory listed at github.com/advisories. It will not affect the version listed in your project repository.
This change will be reviewed by our highly-trained Security Curation Team. If you have thoughts or feedback, please share them in a comment here! If this PR has already been closed, you can start a new community contribution for this advisory


Add  ghaake/stay-home-snackbar to open-source-projects

I have not found a corresponding category and therefore created a new one.

@ghaake Add the repo under Packages and Scripts.


added latest Zanata translations for jbpm-designer 6.3.x

please merge this PR before the tag for 6.2.ER5

you're absolutely right.
I will remove this PR and create a new one, without


jest dynamodb testing alternative

Summary
mention another option for testing, not java dependant
Test plan
This PR only updates a readme.md file, no need for any tests ( I believe )

Codecov Report

Merging #11736 (0547bd4) into master (fdc74af) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #11736   +/-   ##
=======================================
  Coverage   69.01%   69.01%
=======================================
  Files         312      312
  Lines       16335    16335
  Branches     4734     4734
=======================================
  Hits        11273    11273
  Misses       5034     5034
  Partials       28       28

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fdc74af...0547bd4. Read the comment docs.

Hey @sigveio, is this OK to merge?

just some heads up here, wondering if there is anything else needed for merge, thanks


[UI] use gestures for pullToRefresh

I'm playing around with pullToRefresh. With a few minor tweaks I was able to use PHRefreshRecognizer (I think that's what Pierre dubbed it) to clean out the EGO code in RKAbstractTableController.
It means the controller doesn't need to know anything about the scroll view header. It needs some polish and tests before I merge it.

I took a look at that project, it looks really slick. Looking forward to this being merged.

Rather than institute a bunch of extra attributes or methods to pass along for pull down view customization, I'm thinking about just using UIAppearance.  That way, if someone wants to change the fonts or colors, or the image, they can do so with something like this before instantiating it:
    [[RKPullToRefreshView appearance] setTitleColor: [UIColor darkGrayColor]];
    [[RKPullToRefreshView appearance] setArrowImage: [UIImage imageNamed:@"betterArrow"];

I use a management class that does all the UIAppearance customizations for me at startup.  Granted, this is iOS 5 only, but I can cook up some definitions in the RK headers that will conditionally apply the  protocol based on availability in the SDK.

Hey @ecordell ... have a look at this ... it allows you to use UIAppearance quickies for styling it up...
https://github.com/grgcombs/RestKit/tree/502-PullToRefreshGestures