How do you make sharp composites stack?

Question about an existing feature
What are you trying to achieve?
I have a baseImage that I composite with another image on top.
let baseImage = sharp('./input.png')
baseImage.composite([
	{
		input: './assets/measure.png',
		left: 10,
		top: 0,
	}
])

I want to be able to stack composites
let baseImage = sharp('./input.png')
baseImage.composite([
	{
		input: './assets/measure.png',
		left: 10,
		top: 0,
	}
])
baseImage.composite([
	{
		input: './assets/measure.png',
		left: 30,
		top: 0,
	}
])

Only the last one is being composited. Why?

The composite operation accepts an ordered array of images to composite, so try the following:
baseImage.composite([
	{
		input: './assets/measure.png',
		left: 10,
		top: 0,
	},
	{
		input: './assets/measure.png',
		left: 30,
		top: 0,
	}
])

is there a way to stack without array?

Closing due to inactivity but please feel free to reopen with more details if further help is required.


Use the script configuration variable DISABLE_BACKUP_INSTANCE_TYPES to control whether backup instance types are enabled or disabled

Additional improvements are still needed before we can roll this feature out to the production instance.

I tested this on dev1. When the variable is set to true, the feature is hidden on the UI.

If I remove the variable from the script config, the feature reappears on the UI.

Hi @osoriano , since there are still several improvements needed for the backup instance types feature, I don’t want to enable it on the production instance just yet. This PR allows us to disable the feature by setting a script configuration variable.
Additionally, I will be out of office next Monday and Tuesday. If anyone needs to deploy the Teletraan UI to the production instance, please ensure that Rodimus deploys the latest commit first, before deploying the Teletraan UI. Also, make sure that this PR is merged and deployed.
Thank you very much.
By the way, I have already added this script config variable for the production Teletraan UI.


Fix broken stories

Updates stories with incorrect/missing attributes:

TabPanels
Truncate
BorderBox
Heading
Menu
Subhead

Is there a way we could have caught this issue in CI?

I'm not sure :(


MazeWorld tests skips when DefaultWorlds is correctly installed

Describe the bug
A check in the MazeWorld tests prevents them from running when DefaultWorlds is installed. This check is incorrectly negated:
https://github.com/BYU-PCCL/holodeck/blob/0b16b496a441d2a31008d828fe9ec4ef32c23909/tests/worlds/mazeworld/conftest.py#L26-L28
To Reproduce
Run pytest on worlds directory.
Expected behavior
These tests should run if DefaultWorlds is installed.

¯_(ツ)_/¯
On Wed, Feb 19, 2020, 15:11 Vin Howe<EMAIL_ADDRESS>wrote:

Describe the bug
A check in the MazeWorld tests prevents them from running when
DefaultWorlds is installed. This check is incorrectly negated:
https://github.com/BYU-PCCL/holodeck/blob/0b16b496a441d2a31008d828fe9ec4ef32c23909/tests/worlds/mazeworld/conftest.py#L26-L28
To Reproduce
Run pytest on worlds directory.
Expected behavior
These tests should run if DefaultWorlds is installed.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/BYU-PCCL/holodeck/issues/381?email_source=notifications&email_token=AB2OZMF4XR54E2P7RZSFA6LRDWVBZA5CNFSM4KYCWYAKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IOZFCFA,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB2OZMAKVMV4SYIB73IQS7LRDWVBZANCNFSM4KYCWYAA
.

When you see something minor like this you can just PR it directly, no need
to open an issue, especially since it was introduced so recently
On Wed, Feb 19, 2020, 15:11 Vin Howe<EMAIL_ADDRESS>wrote:

Describe the bug
A check in the MazeWorld tests prevents them from running when
DefaultWorlds is installed. This check is incorrectly negated:
https://github.com/BYU-PCCL/holodeck/blob/0b16b496a441d2a31008d828fe9ec4ef32c23909/tests/worlds/mazeworld/conftest.py#L26-L28
To Reproduce
Run pytest on worlds directory.
Expected behavior
These tests should run if DefaultWorlds is installed.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/BYU-PCCL/holodeck/issues/381?email_source=notifications&email_token=AB2OZMF4XR54E2P7RZSFA6LRDWVBZA5CNFSM4KYCWYAKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IOZFCFA,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB2OZMAKVMV4SYIB73IQS7LRDWVBZANCNFSM4KYCWYAA
.

Doesn't need to be in changelog


angular widgets

Create our widget api for angular.

Now it is a sidebar

We have a projector sidebar. No longer widgets on dashboard. So closed.


401 Error: Read-only application cannot POST.

When I try to post a new tweet this error occurs. 401 Error: Read-only application cannot POST.
Log in using the twitter api.

I figure out how it works, only for the root user.

By the way twitter images are not displaying see above image. This is what's been pass for that.
tweet.user.profile_image_url.replace('_normal', '');

I think the twitter image issue is because of this issue: https://github.com/sahat/hackathon-starter/issues/622

The related PR has been merged.  Closing this issue.


Can't save the node

Hello~
I follow the Demo Setup's video, when I save the node. Appear error message... : Node type is required.
What should I do?
Thanks.

Please don't open multiple issues for the same thing across projects.


docs: Clarification on which command to use on which Ubuntu version.

SUMMARY
Clarification on which command to use on which Ubuntu version.
ADDITIONAL INFORMATION
None.

Thanks for this contribution @kkovacs !


Feature Request: The provider support AliDNS

Hi,
I was hoping that the provider can support AliDNS, because in China, many companies use Aliyun 's service, also contain AliDNS service. Though I want to use AWS's route53, but route53 service is not supported in China region.

@tokyo2006 PR #696  was merged, it will released with the next version


Replications not replicating after remote node failure

Multiple community issues have been raised about this: https://community.influxdata.com/t/influxdb-2-2-replication/24841
Reproduce:

Start two OSS nodes with access to another
Shut down remote note (one being replicated to) or disconnect them in another way for a few minutes
queue should build up
Start remote note or re-establish connection
Data written during queue build-up not replicated to remote node

I am happy to help test this.   I have two instances located about 1000 miles apart.   I have setup replication between the two and see a number of issues.   I can provide any details or changes.   It's non-production so I can run unstable code.

The replication just seems to stop at times, but the "influx replication find" reports a 203 error code.  The queue just keeps growing.
Maybe I don't know where to look, but I don't see any details logging as to what is really going on.
I don't see any way to pause replication and restart it.

@SkyMoCo we have a fix out if you'd like give it a run?

Thanks I love to test it out
On Wed, Jun 15, 2022, 3:06 PM Sam Dillard @.***> wrote:

@SkyMoCo https://github.com/SkyMoCo we have a fix out if you'd like
give it a run?
—
Reply to this email directly, view it on GitHub
https://github.com/influxdata/influxdb/issues/23397#issuecomment-1156998946,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAPPOTWA4SCOPT6E46ZM4EDVPJHWRANCNFSM5XTMJQ7Q
.
You are receiving this because you were mentioned.Message ID:
@.***>

@SkyMoCo Originally I was thinking you just build from source to get it before the release. We will release within the next 10-16 hours, I would think.


ci: cache rust dependencies

This ensures that the cargo cache is keyed on the nix hash of the development shell, so it will be discarded if we updated the development environment. Only dependencies are cached. Basic trials appear to show an approximately 50% reduction in CI runtime.
Partial implementation of #165

Superseded by #174


Ignore hidden values in modules

It can happen that modules have hidden values.
For instance, in the following example:
module type M = sig
  val x : int
end

module type N = sig
  include M
  val x : float
end

the x value coming from include M is shadowed by the "redeclaration" of x.
The visibility of a signature item is given by the visibility value of the signature_item.
However, the API diffing currently ignores this visibility property.
This issue consists of two steps:

Exhibit in a test a bug in the diffing that is due to this "visibility oversight"
Fix it by taking the visibility into account when diffing two API.

@panglesd @NathanReb
I have a PR open for module_type support #93.
I think this issue can be a good continuation.
Is it okay if I get assigned to this?

I left you a review, let's finish your other PR before assigning you another issue! Besides, we are likely to assign you a custom medium-level issue that extends your work.

@panglesd @NathanReb  I tried to write a test for this but I wasn't able to write a correct test to detect the bug.
module type M = sig
  val x : int
end
module type N = sig
  include M
   val x : float
end

and the second is
module type M = sig
  val x : int
end
module type N = sig
  include M
end

If I run the api-diff it outputs:
  -val x : float
  +val x : int

which I believe should the correct output. However, I don't know how to test if the value is correctly shadowed. Does the test need to be comprehensive with it's own dune environment like in https://github.com/ocaml-semver/ocaml-api-watch/blob/main/tests/api-diff/project_comparison.t

I assigned you the issue. From a quick look at the code, I can see why testing like this wouldn't work.
It seems that even though we don't explicitly ignore hidden items, the implementation will in practice not treat them. Do you have an idea why is that?
If you want to write a test you'll probably have to craft a signature by hand, or at least to modify one you built using Test_helpers. You probably won't be able to test this with a cram test and write an expect test instead.


Outlined fields not showing Labels in MatAccordions

I placed some components inside an accordion, similarly to the Personal Data example at https://www.matblazor.com/ExpansionPanel. If I add Outlined="true" to any of those components (MatTextField, MatNumericUpDownField or MatDatePicker), the Label is empty until I click into the relevant component, at which point it appears.
If I use the default layout removing Outlined="true", there is no such issue.

This is a duplicate of an issue I faced #255 .
The temporary css fix should work, but yeah, it's not ideal - since there's some whitespace after the label.

Closing as a duplicate of #255


CircleCI error while using mongodb docker image

The following message occurs at container log and we cannot connect to mongodb.
2019-08-20T04:46:01.227+0000 E -        [conn1] Assertion: Location34348: cannot translate opcode 2010 src/mongo/rpc/message.h 120

Closed by #267


Add more assorted features

Do not review, this needs cleanup/splitting.

I've split this into new smaller PRs.


Support linking against prebuilt tracy client

I'm using this crate in a scenario with both rust and C++ code using the same tracy client, I'd like to be able to manually specify the tracy client to link against instead of having it hard-coded inside this crate, which would cause duplicate defined symbols.
Here I propose to add the following environment variables:

TRACY_CLIENT_LIB: when set, links against this tracy client library instead of building it
TRACY_CLIENT_LIB_PATH: when TRACY_CLIENT_LIB is set, this may contain additional library search paths

The approach is similar to https://crates.io/crates/openssl-sys , which also has a set of environment variables that control how the C/C++ code is linked/compiled

I went ahead and merged this alongside the _STATIC additions I had requested in one of the review commends in ca281d6eab216c3db7bcf96745421c8edda14a51.
Thanks for the contribution and sorry it took so long to get this landed!

Ah my bad, I forgot about the PR. Thanks for finishing it.


improve docker compose

Add configure clickhouse service in docker-compose.yml

I think don't need that in tests


Possible BUG, regarding the self.epoch parameter

Hi,
I found that self.epoch may not be updated, which causes the _update_weight function to not work.
Am I missing something? How can I reproduce the experiment correctly?
Thank you very much for taking the time to help.

A brief additional note:
The parameter self.epoch is used here, but it is not updated anywhere else. I am trying to update self.epoch within the training loop (here) to reproduce the original result.
Is there any problem with this? Thanks a lot.


F* doesn't build right on Linux with F# 4.0

F* doesn't build right on Linux [and Cygwin] with the newly released F# 4.0. The build seems to work (although with some warnings):
[hritcu@detained pub]$ make -C src
make: Entering directory '/home/hritcu/Projects/fstar/pub/src'
fsharpc  --optimize+ --debug:full --nologo -g -O --mlcompatibility  -a -o ../bin/basic.dll -r System.Runtime.Serialization.dll -r System.Xml.dll -r ../bin/FSharp.PowerPack.dll -r ../bin/FSharp.PowerPack.Compatibility.dll -r ../bin/FSharp.PPrint.dll  basic/prims-fake.fs basic/profiling.fs basic/util.fsi basic/util.fs basic/bytes.fsi basic/bytes.fs basic/range.fsi basic/range.fs basic/getoptsimple.fsi basic/getoptsimple.fs basic/platform.fsi basic/platform.fs basic/options.fs basic/unionfind.fsi basic/unionfind.fs
fsharpc --optimize+ --debug:full --nologo -g -O --mlcompatibility  -a -o ../bin/format.dll -r System.Runtime.Serialization.dll -r System.Xml.dll -r ../bin/FSharp.PowerPack.dll -r ../bin/FSharp.PowerPack.Compatibility.dll -r ../bin/FSharp.PPrint.dll  format/format.fsi format/format.fs
fsharpc  --optimize+ --debug:full --nologo -g -O --mlcompatibility  -a -o ../bin/absyn.dll -r System.Runtime.Serialization.dll -r System.Xml.dll -r ../bin/FSharp.PowerPack.dll -r ../bin/FSharp.PowerPack.Compatibility.dll -r ../bin/FSharp.PPrint.dll -r ../bin/basic.dll absyn/syntax.fs absyn/const.fs absyn/visit.fs absyn/util.fs absyn/print.fs absyn/ssyntax.fs

/home/hritcu/Projects/fstar/pub/src/absyn/print.fs(104,32): warning FS0044: This construct is deprecated. please use List.item

/home/hritcu/Projects/fstar/pub/src/absyn/print.fs(105,28): warning FS0044: This construct is deprecated. please use List.item

/home/hritcu/Projects/fstar/pub/src/absyn/print.fs(216,57): warning FS0044: This construct is deprecated. please use List.item

/home/hritcu/Projects/fstar/pub/src/absyn/print.fs(216,91): warning FS0044: This construct is deprecated. please use List.item

/home/hritcu/Projects/fstar/pub/src/absyn/print.fs(216,125): warning FS0044: This construct is deprecated. please use List.item

/home/hritcu/Projects/fstar/pub/src/absyn/print.fs(217,53): warning FS0044: This construct is deprecated. please use List.item

/home/hritcu/Projects/fstar/pub/src/absyn/print.fs(219,78): warning FS0044: This construct is deprecated. please use List.item

/home/hritcu/Projects/fstar/pub/src/absyn/print.fs(219,115): warning FS0044: This construct is deprecated. please use List.item

/home/hritcu/Projects/fstar/pub/src/absyn/print.fs(221,36): warning FS0044: This construct is deprecated. please use List.item

/home/hritcu/Projects/fstar/pub/src/absyn/print.fs(221,103): warning FS0044: This construct is deprecated. please use List.item

/home/hritcu/Projects/fstar/pub/src/absyn/print.fs(223,63): warning FS0044: This construct is deprecated. please use List.item

/home/hritcu/Projects/fstar/pub/src/absyn/print.fs(380,40): warning FS0044: This construct is deprecated. please use List.item

/home/hritcu/Projects/fstar/pub/src/absyn/print.fs(380,106): warning FS0044: This construct is deprecated. please use List.item

/home/hritcu/Projects/fstar/pub/src/absyn/print.fs(382,67): warning FS0044: This construct is deprecated. please use List.item
fsharpc  --optimize+ --debug:full --nologo -g -O --mlcompatibility  -a -o ../bin/tc.dll -r System.Runtime.Serialization.dll -r System.Xml.dll -r ../bin/FSharp.PowerPack.dll -r ../bin/FSharp.PowerPack.Compatibility.dll -r ../bin/FSharp.PPrint.dll -r ../bin/basic.dll -r ../bin/absyn.dll tc/tcenv.fsi tc/tcenv.fs tc/recheck.fs tc/normalize.fsi tc/normalize.fs tc/errors.fs tc/rel.fsi tc/rel.fs tc/tcutil.fsi tc/tcutil.fs tc/tc.fs

/home/hritcu/Projects/fstar/pub/src/tc/tcenv.fs(385,24): warning FS0044: This construct is deprecated. please use List.item

/home/hritcu/Projects/fstar/pub/src/tc/rel.fs(1546,18): warning FS0044: This construct is deprecated. please use List.item

/home/hritcu/Projects/fstar/pub/src/tc/rel.fs(1572,30): warning FS0044: This construct is deprecated. please use List.item
fsharpc --optimize+ --debug:full --nologo -g -O --mlcompatibility  -a -o ../bin/backend.dll -r System.Runtime.Serialization.dll -r System.Xml.dll -r ../bin/FSharp.PowerPack.dll -r ../bin/FSharp.PowerPack.Compatibility.dll -r ../bin/FSharp.PPrint.dll -r ../bin/basic.dll -r ../bin/absyn.dll -r ../bin/format.dll -r ../bin/tc.dll backend/nameenv.fsi backend/nameenv.fs backend/ml-syntax.fs backend/ocaml-codegen.fsi backend/ocaml-codegen.fs backend/ocaml-asttrans.fsi backend/ocaml-asttrans.fs

/home/hritcu/Projects/fstar/pub/src/backend/ocaml-asttrans.fs(624,25): warning FS0025: Incomplete pattern matches on this expression. For example, the value '[]' may indicate a case not covered by the pattern(s).
fsharpc --optimize+ --debug:full --nologo -g -O --mlcompatibility  -a -o ../bin/extraction.dll -r System.Runtime.Serialization.dll -r System.Xml.dll -r ../bin/FSharp.PowerPack.dll -r ../bin/FSharp.PowerPack.Compatibility.dll -r ../bin/FSharp.PPrint.dll -r ../bin/basic.dll -r ../bin/absyn.dll -r ../bin/format.dll -r ../bin/tc.dll extraction/ml-syntax.fs extraction/env.fs extraction/util.fs extraction/ocaml-codegen.fsi extraction/ocaml-codegen.fs extraction/extracttyp.fs extraction/extractexp.fs extraction/extractmod.fs
fsharpc  --optimize+ --debug:full --nologo -g -O --mlcompatibility  -a -o ../bin/parser.dll -r System.Runtime.Serialization.dll -r System.Xml.dll -r ../bin/FSharp.PowerPack.dll -r ../bin/FSharp.PowerPack.Compatibility.dll -r ../bin/FSharp.PPrint.dll -r ../bin/basic.dll -r ../bin/absyn.dll -r ../bin/tc.dll parser/ast.fs parser/parseutil.fs parser/parse.fs parser/lexhelp.fs parser/lex.fs parser/dsenv.fsi parser/dsenv.fs parser/desugar.fsi parser/desugar.fs parser/parseit.fsi parser/parseit.fs parser/driver.fs
fsharpc  --optimize+ --debug:full --nologo -g -O --mlcompatibility  -a -o ../bin/tosmt.dll -r System.Runtime.Serialization.dll -r System.Xml.dll -r ../bin/FSharp.PowerPack.dll -r ../bin/FSharp.PowerPack.Compatibility.dll -r ../bin/FSharp.PPrint.dll -r ../bin/basic.dll -r ../bin/absyn.dll -r ../bin/tc.dll tosmt/term.fsi tosmt/term.fs tosmt/z3.fs tosmt/splitcases.fs tosmt/encode.fs

/home/hritcu/Projects/fstar/pub/src/tosmt/term.fs(274,16): warning FS0044: This construct is deprecated. please use List.item

/home/hritcu/Projects/fstar/pub/src/tosmt/term.fs(366,9): warning FS0044: This construct is deprecated. please use List.item

/home/hritcu/Projects/fstar/pub/src/tosmt/term.fs(388,13): warning FS0025: Incomplete pattern matches on this expression. For example, the value '[]' may indicate a case not covered by the pattern(s).

/home/hritcu/Projects/fstar/pub/src/tosmt/encode.fs(54,24): warning FS0044: This construct is deprecated. please use List.item

/home/hritcu/Projects/fstar/pub/src/tosmt/encode.fs(2027,17): warning FS0025: Incomplete pattern matches on this expression. For example, the value 'Caption (_)' may indicate a case not covered by the pattern(s). However, a pattern rule with a 'when' clause might successfully match this value.
fsharpc  --optimize+ --debug:full --nologo -g -O --mlcompatibility  -o ../bin/fstar-mono.exe -r System.Runtime.Serialization.dll -r System.Xml.dll -r ../bin/FSharp.PowerPack.dll -r ../bin/FSharp.PowerPack.Compatibility.dll -r ../bin/FSharp.PPrint.dll -r ../bin/basic.dll -r ../bin/format.dll -r ../bin/absyn.dll -r ../bin/backend.dll -r ../bin/extraction.dll -r ../bin/parser.dll -r ../bin/tc.dll -r ../bin/tosmt.dll fstar.fs main.fs
cp ../bin/fstar-mono.sh ../bin/fstar.exe
make: Leaving directory '/home/hritcu/Projects/fstar/pub/src'

The obtained fstar.exe binary doesn't work well though:
[hritcu@detained pub]$ bin/fstar.exe empty.fst

Unexpected error; please file a bug report, ideally with a minimized version of the source program that triggered the error.
An exception was thrown by the type initializer for <StartupCode$tosmt>.$Microsoft.FStar.ToSMT.Encode

[hritcu@detained pub]$ bin/fstar.exe empty.fst --trace_error

Unexpected error
An exception was thrown by the type initializer for <StartupCode$tosmt>.$Microsoft.FStar.ToSMT.Encode
  at Microsoft.FStar.FStar.tc_prims () [0x00000] in <filename unknown>:0
  at Microsoft.FStar.FStar.batch_mode_tc (Microsoft.FSharp.Collections.FSharpList`1 filenames) [0x00000] in <filename unknown>:0
  at Microsoft.FStar.FStar.go[Unit] (Microsoft.FSharp.Core.Unit _arg1) [0x00000] in <filename unknown>:0
  at Microsoft.FStar.FStar.main[Object] () [0x00000] in <filename unknown>:0

[hritcu@detained pub]$ z3 --version
Z3 version 4.3.2

Did anyone try F# 4.0 on Windows?

Tried to reproduce this on Windows, but then run into this problem:
https://plus.google.com/+SteveGilham/posts/hYp7ujeA9eX

@catalin-hritcu To fix that issue on Windows, you need to install Microsoft Build Tools 2015. See https://github.com/fsharp/fsfoundation/issues/470.
AFAIK F# 4.0 hasn't been released on Mono yet. What's your F# and Mono version on Linux?

To fix that issue on Windows, you need to install Microsoft Build Tools 2015. See fsharp/fsfoundation#470.

@dungpa  This indeed fixed the F# 4.0 installation issue on Windows, thank you. I've tried using F# 4.0 to build F* on Windows from Cygwin and the problem seems the same as on Linux:
hritcu@W7-VBox /cygdrive/c/Users/hritcu/Desktop/FStar
$ bin/fstar.exe empty.fst

Unexpected error; please file a bug report, ideally with a minimized version of the source program that triggered the error.
The type initializer for '<StartupCode$tosmt>.$Microsoft.FStar.ToSMT.Encode' threw an exception.

$ bin/fstar.exe empty.fst --trace_error

Unexpected error
The type initializer for '<StartupCode$tosmt>.$Microsoft.FStar.ToSMT.Encode' threw an exception.
   at Microsoft.FStar.ToSMT.Encode.get_solver()
   at Microsoft.FStar.FStar.tc_prims() in C:\Users\hritcu\Desktop\FStar\src\fstar.fs:line 40
   at Microsoft.FStar.FStar.batch_mode_tc(FSharpList`1 filenames) in C:\Users\hritcu\Desktop\FStar\src\fstar.fs:line 206
   at Microsoft.FStar.FStar.go[a](a _arg1) in C:\Users\hritcu\Desktop\FStar\src\fstar.fs:line 276
   at Microsoft.FStar.FStar.main[a]() in C:\Users\hritcu\Desktop\FStar\src\fstar.fs:line 288

I'll try to also reproduce this from VS, but for that I need to (at least locally) update the projects to use F# 4.0. Any idea how to do this easily?

AFAIK F# 4.0 hasn't been released on Mono yet. What's your F# and Mono version on Linux?

mono 4.0.2 and F# <IP_ADDRESS> (build from the source release here without any problem: https://github.com/fsharp/fsharp/releases)
[hritcu@detained pub]$ fsharpc
F# Compiler for F# 4.0 (Open Source Edition)
Freely distributed under the Apache 2.0 Open Source License

error FS0207: No inputs specified

[hritcu@detained pub]$ mono --version
Mono JIT compiler version 4.0.2 (Stable <IP_ADDRESS>/c99aa0c Mon Jul 13 18:57:35 UTC 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug
	LLVM:          supported, not enabled.
	GC:            sgen

@catalin-hritcu if you open your existing fsproj files in VS 2015, they will be compiled with the F# 4.0 compiler.  In project properties you can also toggle the FSharp.Core version you use to be <IP_ADDRESS>, the F# 4.0 version.

If you come across something that seems to be a sure compiler/runtime issue, please log the details at https://github.com/microsoft/visualfsharp/

@latkin  Thanks a lot for the hint. I've tried with my VS 2013 and I don't get F# 4.0 in that list even for a completely fresh project:

... and for the F* projects it's actually even worse, that list is completely disabled:

And idea how to fix or work around this?

@catalin-hritcu you need VS 2015 to have F# 4.0 easily accessible from the IDE.  If you have the F# 4.0 package + VS 2013 it's possible to hack around build targets and force 2013 to use the 4.0 compiler, but it's not a great solution.
See this SO post: http://stackoverflow.com/questions/31631691/target-f-runtime-grayed-out-why/  If your project file has been incorrectly modified (perhaps by nuget packages) it will prevent the toggle from appearing.  It's not too hard to get it back, though.

I just tried and couldn't reproduce this on Mac OS X with up-to-date versions of Mono and F# 4.0. If I remember well, this used to be reproducible on Mac OS X too.
I used a binary Mono installer and yesterday's F# 4.0.1 release.
$ fsharpc
F# Compiler for F# 4.0 (Open Source Edition)

$ mono -V
Mono JIT compiler version 4.2.1 (explicit/6dd2d0d Tue Nov 10 18:01:18 EST 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           normal
	SIGSEGV:       altstack
	Notification:  kqueue
	Architecture:  x86
	Disabled:      none
	Misc:          softdebug
	LLVM:          yes(3.6.0svn-mono-(detached/a173357)
	GC:            sgen

@catalin-hritcu can you try to update Mono/F# and confirm that this is still an open problem on Linux?

Yes, I can confirm that F# <IP_ADDRESS> works for me too. This seems fixed. I'll update the documentation.


add id prop to AttachFile Component

Fixes #125
add an id prop and return it on the onCancel and onDelete callbacks

LGTM


Duplicate subresource annotation in custom-types.yaml

https://github.com/Kong/kubernetes-ingress-controller/blob/main/deploy/manifests/base/custom-types.yaml
Line 427-428 is a duplicate.
Summary
When running we observe a duplicate key warning/error on line 427-428, subresource is already defined.

#997 fixed this.

#997 fixed this.


total_reviews_submitted into QoD

Let's add total_reviews_submitted metric to the quantity-of-deliverables.rb script. The metric should be the total number of code reviews submitted in all repositories together, during the time since $SINCE.

@yegor256 may I take this one?

@Yegorov please, go ahead


Device doesn't support

App Version: 2.2.0 (20)
Build Type: release
Manufacturer: Xiaomi
Model: 22087RA4DI
Device: Redmi Note 11se (India)
Light Levels: 1
Software: Android 13 (33)

Thanks for the report.
Your phone will be excluded.


review and update default enabled checkers, priorities coming with clang 5

Review also the supposed priorities based on the potential checker improvements since last check-up.
Use codechecker-checkers --details to list every checker with their severity.

We were thinking about adding preset "profiles".
We could have a JSON file to describe such profiles such as:
default, strict, style etc.
Each profile could have a separate set of checks that are enabled.

Fixed by   #910.


Spanner onetomany annotation

related to #853
This adds an annotation for marking child-collections and tests.

So happy to see this implemented quicly. Hoping to see it released soon !!would reduce our effort drastically.

@meltsufin Renamed that isChildCollection() method, also fixed instances of Spanner -> Cloud Spanner.

@ChengyuanZhao  Whats teh build version for this ? Is it avaibale in 1.1.0.BUILD-SNAPSHOT?

@vineela-gampa yes, the snapshot is always what our repo looks like at the current moment. However this PR is just adding the annotation.

That work is still in progress. The checkboxes list in #853 keep track of where the progress is for the support for parent-child relationships.


Connecting to bitcoincore.org failed: Network is unreachable. (IPV6)

Steps to reproduce:

Not have an ipv4 address
wget https://bitcoincore.org/bin/bitcoin-core-23.0/bitcoin-23.0-riscv64-linux-gnu.tar.gz

Alternative:
$ dig bitcoincore.org +noall +answer -t AAAA | wc -l
0

You probably mean your DNS providers. Alternatively you could try change the DNS settings on your host (or in the DHCP settings of your local router), to use public DNS servers like:

OpenDNS (see https://www.opendns.com/, the publish their IPv4 and IPV6 DNS servers), or
Google Publi DNS (see https://developers.google.com/speed/public-dns/docs/using for the configuration).
These DNS services support large bands, and provide their own protections against DDoS, and support requests via UDP, TCP, or DoH (DNS over HTTPS). OpenDNS also allows you to create your own settings by creating a free account, registering your public IP addresses or address block, and setup your own filters, e.g. against undesired categories of sites; it also provides also some daily statistics for you about domain resolutions initiated from your network, and if they were successful, blocked according to your preferences, or really failed). Both services do not allow redirecting you to unrelated sites without your permission (like what too many ISPs are doing, to send you to their "assistance pages that are just there to send you advertizing isntead of the expected content, even if the domain resolution just failed temporarily and those domaisn are still validly registered, but possibly just unreachable, for technical reasons (such as normal maintenance, or recent changes of servers in the last 24/48 hours still not propagated, or changes of routing peerings, or an accidentally broken physical link to be repaired via alternate routes), or because on ongoing DDoS attack against their authoritative DNS server or in one of its downstream mirrors, or because too huge traffic over one of the necessary links.

@TheBlueMatt did anything come of the nagging?

I bet you meant "anti-DDoS providers" or "DDoS protection providers", not "DDoS providers" (which we would call "attackers", not "providers").
Anyway there's now a trend with various largeband links having "accidents" or severe damages now throughout Europe around major nodes. It seems to be not just made by local sabotage but coordinated, and probably related to the ongoing war of Russia. DDoS attacks in general have been tried but have failed, however physical damages on major fiber links (underground or undersea) are growing and they impact networks for much longer time
E.g. a major attack in France 6 months ago against major interregional links required using alternate routes, and dramatically reduced the bandwidth for home users, this was repaired noly by using other routes by other long distance links, rent from other operators, but working over VPNs that are saturated: home users can still use Internet, but their bandwidth is limited, and there's a much higher rate of loss packets, especially with IPv6 that have fewer alternate routes). If fiber links are cut, the other alternatives using radio frequencies are also limited: this means that now deployment of 5G mobile networks have stalled to preserve backup resources.
Today there are annoucnements that undersea cables are now exposed and must be actively protected. And networks must review how they manage their routes and how fast they can recover by cooperating (even if they are competityors on the consumer markets).
Internet operators should now avoid building centralized networks (which seemed to be faster to deploy at major costs and deploy meshes that will be more resilient, and as well they should cooperate to build shard infrastructures with prepared agreements for recovery at lower cost for all of them and faster responses: "accidents" are now verty likely and today's Internet infrastucture is too fragile. There's a limited backup possible with satellites, but with much higher latencies (but it could still be used to backup large users of bandwidth, notably TVs and VOD: CDNs should deploy more granular streaming servers in more datacenter locations (this cannot be done easily for one-to-one communications, except by increasing the latency: online game platforms will be the most affected or will have to deploy their own CDN in more locations; the time where it was sufficient to deploy a handful of datacenters to serve the world is over, and the services will have to be paid by final customers, or will ahve to be degraded).


Fix csrf tests

This PR solves a problem in CSRF protection tests due to LOTUS_ENV and RACK_ENV variables

@AlfonsoUceda Thank you. If the CI passes, feel free to merge it yourself :)


Update load scripts to handle new data format

The new data model contains extra information on the human-selected location information. This has caused a couple changes in the data format that will need to be resolved.
https://github.com/chicago-justice-project/chicago-justice/pull/37
https://github.com/chicago-justice-project/chicago-justice/commit/39b7eee31636ad52c65988391870e0ce79480f7b

Closed by #34.


[FEATURE REQUEST] - Adjustable scan intervals

Checklist

[x] I have read the FAQ
[x] I have checked if this issue already exists (both open and closed issues)
[x] I am using the most recent version of pogom from the master branch
[ ] If this is an installation issue, I am posting my OS, OS version, python version, pip version
[ ] I'm posting the complete log
[x] I'm using a descriptive title for this issue

My Issue
Is it possible to add an adjustable variable onto the webpage so the time inbetween scans can be changed?
following code is taken from scan.py in the pogom folder
        while not self.api.is_work_queue_empty():             # Location change             if self.scan_config.RESTART:                 log.info("Restarting scan")                 self.api.empty_work_queue()             else:                 time.sleep(120)
Seems to help with getting soft bans if there's a 2 minute pause in between scans or could be just me
Also, not 100% sure what this one does but it seems from my test of 1km scan with 60 accounts they end exactly on 2mins all the time
if (not self.scan_config.SCAN_LOCATIONS or                     not config.get('ACCOUNTS', None)):                 time.sleep(120)                 continue
So will it be possible to add a box to the webpage so we can manually change the values without needing to restart the server every time we do or have it restart automatically?
Thanks
...

+1

+1 I would also like to see this feature added.


[Rendering][XAML] ChoiceSets without a Label have no accessible name

Target Platforms
UWP
SDK Version
1.5
Application Name
Dev Home
Problem Description
If a Label (Header) is not specified on a ChoiceSet (ComboBox), the resulting ComboBox will not have an accessible name. This is the same behavior that happens in direct WinUI 3, however, setting an Accessible Name directly in WinUI 3 is a lot easier than hoping each Adaptive Card host creates a custom renderer for this case. I suggest that if there is no Label, the renderer sets the Name to be the placeholder text. That way the card author can still do things the default way (set a label/header) but the control is still accessible if they do not.
https://dev.azure.com/microsoft/OS/_workitems/edit/48294659
https://dev.azure.com/microsoft/OS/_workitems/edit/48181033
Screenshots
No response
Card JSON
{
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.5",
    "body": [
        {
            "type": "Input.ChoiceSet",
            "choices": [
                {
                    "title": "Choice 1",
                    "value": "Choice 1"
                },
                {
                    "title": "Choice 2",
                    "value": "Choice 2"
                }
            ],
            "placeholder": "Placeholder text"
        }
    ]
}

Sample Code Language
No response
Sample Code
No response

I tried creating a custom renderer to set the Name property. I can change other things, but not this specifically:
public class AccessibleChoiceSet : IAdaptiveElementRenderer
{
    public UIElement Render(IAdaptiveCardElement element, AdaptiveRenderContext context, AdaptiveRenderArgs renderArgs)
    {
        var renderer = new AdaptiveChoiceSetInputRenderer();

        if (element is AdaptiveChoiceSetInput choiceSet)
        {
            // Label property corresponds to the Header dependency property on the ComboBox.
            var header = choiceSet.Label;
            var placeholderText = choiceSet.Placeholder;

            // If there is no Header, there will not be an accessible Name.
            // Use the Placeholder text as the accessible Name if possible.
            if (string.IsNullOrEmpty(header) && !string.IsNullOrEmpty(placeholderText))
            {
                var comboBox = renderer.Render(choiceSet, context, renderArgs);
                comboBox.SetValue(AutomationProperties.NameProperty, placeholderText);
                AutomationProperties.SetName(comboBox, placeholderText);
                return comboBox;
            }
        }

        return renderer.Render(element, context, renderArgs);
    }
}


Add onDidChangeModelMarkers to IEditor interface

Similar methods such as setModelLanguage have emitters:
setModelLanguage
onDidChangeModelLanguage
It would be useful to have the same for modelMarkers:
setModelMarkers
onDidChangeModelMarkers

Let's keep the issue in the monaco-editor repository, as it is about the standalone editor and does not have any impact on vscode. Microsoft/monaco-editor#313


ros_numpy: 0.0.2-0 in 'melodic/distribution.yaml' [bloom]

Add ros_numpy to melodic. It is exactly the same as in jade and kinetic as there were no releases since.
Repo link https://github.com/eric-wieser/ros_numpy

That tag won't exist until you rurun bloom
I'm going to close this as rerunning bloom will create the new PR with the correct content.


unable to install CUPY

Hello, I am trying to install cupy but I am running into a problem. I am trying to run a code using chainer and I ran into issues with cupy. (No module found). I thought installing cupy might solve a problem but it has its own issue.
pip install cupy
gives me this error message:
Downloading from URL https://pypi.python.org/packages/51/ce/9c4789dd570935c5fd8c9f71aa4e0761aaaef195ef1f017e4174e7c266dc/cupy-2.3.0.tar.gz#md5=7dcbf8d7451f7acda797f870180441ea (from https://pypi.python.org/simple/cupy/)   Running setup.py (path:/tmp/pip-build-tLYIDm/cupy/setup.py) egg_info for package cupy     Running command python setup.py egg_info     cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++     /tmp/tmpGE0opq/a.cpp:1:23: fatal error: cublas_v2.h: No such file or directory     compilation terminated.     Options: {'profile': False, 'annotate': False, 'linetrace': False, 'no_cuda': False}     **************************************************     *** WARNING: nvcc not in path.     *** WARNING: Please set path to nvcc.     **************************************************     Include directories: []     Library directories: []     command 'x86_64-linux-gnu-gcc' failed with exit status 1     **************************************************     *** WARNING: Include files not found: ['cublas_v2.h', 'cuda.h', 'cuda_profiler_api.h', 'cuda_runtime.h', 'curand.h', 'cusparse.h', 'nvrtc.h', 'nvToolsExt.h']     *** WARNING: Skip installing cuda support     *** WARNING: Check your CFLAGS environment variable     **************************************************     Traceback (most recent call last):       File "<string>", line 1, in <module>       File "/tmp/pip-build-tLYIDm/cupy/setup.py", line 32, in <module>         ext_modules = cupy_setup_build.get_ext_modules()       File "cupy_setup_build.py", line 378, in get_ext_modules         extensions = make_extensions(arg_options, compiler, use_cython)       File "cupy_setup_build.py", line 268, in make_extensions         raise Exception('Your CUDA environment is invalid. '     Exception: Your CUDA environment is invalid. Please check above error log. Cleaning up... Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-tLYIDm/cupy/ Exception information: Traceback (most recent call last):   File "/home/yejinkim/.local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main     status = self.run(options, args)   File "/home/yejinkim/.local/lib/python2.7/site-packages/pip/commands/install.py", line 335, in run     wb.build(autobuilding=True)   File "/home/yejinkim/.local/lib/python2.7/site-packages/pip/wheel.py", line 749, in build     self.requirement_set.prepare_files(self.finder)   File "/home/yejinkim/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 380, in prepare_files     ignore_dependencies=self.ignore_dependencies))   File "/home/yejinkim/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 634, in _prepare_file     abstract_dist.prep_for_dist()   File "/home/yejinkim/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 129, in prep_for_dist     self.req_to_install.run_egg_info()   File "/home/yejinkim/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 439, in run_egg_info     command_desc='python setup.py egg_info')   File "/home/yejinkim/.local/lib/python2.7/site-packages/pip/utils/__init__.py", line 707, in call_subprocess     % (command_desc, proc.returncode, cwd)) InstallationError: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-tLYIDm/cupy/

I saw that nvcc was empty. Solved the issue by installing NVIDIA toolkit.


⚠ Fetchers has degraded performance

In 646ca25, Fetchers ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 314 ms

Resolved: Fetchers performance has improved in 4cbfce3.


Feature Request - Unity Entities Components

Entitas is a great tool for building games but as it stands right now, it’s very hard to design games in it the “Unity Way”. Where you use the Unity Editor to set values and try different ideas, especially for game designers and non-programmers. Entitas fits very well for games with generated behavior but it doesn’t translate well for games with Levels, at least from my experience with Entitas. There were previous attempts like blue prints to tackle that but they didn’t work very well and soon were abandoned for different reasons. So here’s a new proposal that I think would work well but I might be wrong.
The main ideas is to use the code generator to generate Monobehaviours that you can attach to GameObjects in the Unity Editor. They have public variable based on the Entitas Component that game designers can change. When you press run there is a script that iterate through the scene hierarchy to check which GameObjects have these generated monobehaviours attached to it, it then creates new entities, add the appropriate entities components to it and then use EntityLink between the GameObject and the Entitas Entity. So basically you would create entities from Unity rather than the other way around. You could also create Prefabs with entity components. You could also attach multiple Unity Entitas Components to the same GameObject.
Here is my idea of implementation.
Step 1:
We create a new tag, lets call it [Unity] that the code generator would “understand” for example
using Entitas;

[Game, Unity]
public sealed class HealthComponent
{
	public int health;
}

Step 2:
Press Generate and the code generator would generate a new MonoBehaviour script that look like that

using UnityEngine;

public class UnityHealthComponent : MonoBehaviour
{

        public int health;
}

Step 3:
We have a script let’s call it “UnityConext”, this is the first script you attach to any Unity GameObject that you want a related entity to be generated for it.
using UnityEngine;

public class UnityContext : MonoBehaviour
{

        public EntitasContexts context
}

This is a public enum that have all the contexts currently in entitas. You choose from the editor which context you want your entity to be created.
Step 4:
You attach all the MonoBehaviour Components you want to that game object and when you press run there will be a script that loop through the hierarchy, checks if any game object have any of those generated monobehaviour components. It will create a new entity in the specified context, then add all the right components to that entity with the values specified by the designer in the Unity Editor. Plus it could use EntityLink to attach the GameObject with the newly created Entity.
Sorry but I don’t have a good implementation of how that code would work but it seems possible from my early tests.
I don’t have enough coding knowledge to implement this in a proper way, especially for the code generator but I don’t see any reason why it won’t be possible. I’m sure this approach have some cons and bad outcomes that I personally can’t see, but we can discuss that and see if it’s a good approach.
One thing I can see that might cause problems is synchronizations between the Monobehaviours and the entities components. So what happens if you change a value in an entity, should the MonoBehaviour change it’s values too or should it just be used as an initialization pattern. This is something that can decided upon seeing the pros and cons of each implementation.
Thanks for the sticking this far with the post. If anyone have any better ideas or see this as a bad pattern or design, please tell me why. I can try to implement it if people point me to the right direction but I’m sure it won’t be optimized because the way I see it, I would have to use GetComponent a lot which is not very efficient so any volunteers would be appreciated.

There is bluepring functionality for this and it has problems now in case of component change.
There is one big cons: every time you want to change component stucture (combine, split, remove/replace) designer will need to fix all prefabs too. So it's better to have custom set of mono behaviours you give to your designer and you write own logic on how to translate this data into current set of components.

I'd say coupling your entitas code to editor / unity like that isn't good.
We did a level based game (didn't hit prod yet) and we were making custom mono behaviours for the designers with the params we allowed them to tweak :)
Those MB's were creating entites / components based on the parameters set by designers - so if a breaking change/refactoring occurred - we managed to keep it all in code and unity scenes and prefabs weren't affected.
Generally - the less coupling you have, the better.

I guess those are very valid reasons not go this way. Maybe I'm just overthinking but it seems to me that there should be a generic elegant way to use Unity Editor and Entitas together and give the benefits of both instead of writing custom Mono Behaviours for each game, but I might be mistaken. Thanks 👍

@kdrzymala May you give a simple example of your approach?


Add custom hook for customizing output rendering

The EXPLORER_TRANSFORMS setting enables the developer to provide a custom template for the values in the given column, for example, to display images if the URL is retrieved from the DB:
EXPLORER_TRANSFORMS = [
    ("img", '')
]

However, this system is not very flexible.
It would be nice to:

Have the same pattern for all* columns* meeting certain criteria (e.g. ending with _img)
Have the same pattern for all values meeting certain criteria (e.g. display as mailto link, if it is formated as an email)
Make use of external variables (e.g. in displaying a deadline show it in red if it is older than the current date)

For enabling such flexibility, I would propose to add the EXPLORER_DISPLAY_CALLBACK setting which accepts a function with the following signature:
def callback(column_name: str, value: Any) -> Optional[str]:
    pass

This would be flexible enough to satisfy all of the aforementioned use-cases:
def callback(column_name: str, value: Any) -> str:
    if column_name.endswith('_img'):
        return f''
    if "@" in value:
        return f'{value}'
    if isinstance(value, date) and value < date.today():
        return f'{value}'
    return None

EXPLORER_DISPLAY_CALLBACK = calback

Returning None would instruct the system to continue on a normal path: check the EXPLORER_TRANSFORMS setting and if the column is not present there fall back to displaying the value as usual.
This would mean that the following default implementation would provide 100% backward compatible behavior.
def callback(column_name: str, value: Any) -> Optional[str]:
    return None

EXPLORER_DISPLAY_CALLBACK = calback

I would be interested in implementing that feature and preparing a PR.
What are your thoughts regarding that new API proposal?

@marksweb what are your thoughts? Seems like a solid idea to me - really like that it is backwards compatible

@lawson89 Thanks for flagging this - after assigning it I've managed to completely lose track of it! @eeriksp sorry about that! 😬
This does indeed sound like a great idea. But this is another feature I don't actually use myself - so there's a little learning involved for me as well here.

@eeriksp Did you make some progress on an implementation for this?
I'd very much like to have this capability, and would be happy to help with testing, or try to pick up from where you left off, if you've found yourself pulled away on other projects.


Implement Cloth Config & Mod Menu API

Why?

I wanted to make the gap size configurable.
I wanted to be able to change the location of the windows with a controller.
Configuration is a good thing to have moving forward.

How
By adding a ConfigHandler, we can change properties from the config.json and sync these properties in the local object. From here we call Mod.mod().onUpdateConfig() to change the necessary values.
Side Note
In order to update the window properly while out of scope of WindowMixin I implemented a reflect Method that changes the accessibility and invokes the method `Window.setMode()' in order to update the window position on a config change.
Slightly messy but it works.

I agree on the matter of neglecting to use external dependencies. I mainly did this for personal reasons, and thought it might be worth sharing a PR just in case.


New map components

[x] Infowindow (@javier): done -> some enhancements pending.
[x] Tooltip (@piensaenpixel): done .
[ ] Legends (empty).
[x] Zoom control (@piensaenpixel): done.
[x] Map loader (@piensaenpixel): done .
[x] Seach control (@piensaenpixel): style. -> review mobile.
[x] Seach infowindow (@xavijam): code.
[ ] Share/publish (empty).
[x] Attributions (@xavijam): being reviewed by @piensaenpixel. -> mobile ready \o/.

For Leaflet (no matter mobile or desktop): (i) thing.
For GMaps: (no matter mobile or desktop): (i) thing, on top of the GMaps attribution.

[ ] Full screen (empty).
[x] Logo (@xavijam): done. "Removed old logo".

States: design, style, code, reviewing, bugfixing, done.

Don't you think the transition on the searchbox is too slow? cc/ @piensaenpixel (calling the master @javierarce as well)
Looking great!

Yeah, I agree @saleiva, also we should add a loader there. In any case, our milestone is try to finish today all overlays (legend not included) and then review them in order to improve.

yes dont worry about that :)

There has been no activity on this issue for several months and that's why we are closing it (automatically). If you think this still needs to be addressed please reopen it. The good news is that we are now working on the next version of CARTO.js, stay tuned.


Fix for #47

Changes made for modpack makers...

why not just make it an empty droplist?

You would have to edit the mod on every release and ship the edited version. Could also cause problems with Curse-modpacks, because the launcher won't differentiate between an original and edited version, downloading the unedited version for the users...

no, you can make a resource pack for changing loot tables.

But the user could easily disable the resource pack, by exident :P

don't see how this is a problem, really, same thing can happen with things like configs and minetweaker scripts

How about servers, they don't have support for texture pack for all I know?

You can set a server resourcepack that can be transmitted to the clients, also loottables should work fine on a server

Just tried using a resource pack, but it didn't work... Loot tables don't update...

http://pastebin.com/4yM6QdjH
This is the new loot table (just for testing), but the gearbox still drops gold nuggets on destructon

Okay I checked online because it wasn't working for me either, and apparently they go in your world folder. I think issue #47 will need another read.

Sadly that ALT doesn't work either... tried betterwithmods/block/gearbox.json, betterwithmods/chests/gearbox.json and betterwithmods/loot_tables/block/gearbox.json

I'm sort of wondering exactly how viable the loot tables would be, myself. Maybe there should be a config option or a MineTweaker method to edit those drops, the loot tables were a sort of "quick and cheap" solution. I'll merge this anyway, it might be beneficial for modpack makers.

Could use the interaction recipes that are already in for the kiln and the turntable, but on a seperate recipe handler.


Shallow with New React Context API. Consumer not getting context

Expected behavior
// src
const Component = () => (
 <ThemeConsumer>
     {({color}) => <Text style={{color}}>Enzyme</Text>}
 </ThemeConsumer>
);

test('Should find the Text component', () => {
    const wrapper = shallow(
      <ThemeProvider value={{color: 'yellow'}}>
        <Component />
        </ThemeProvider>
      ); // Throws an error color of undefined. (ThemeConsumer doesn't have the value passed down)

     expect(wrapper.find('Component').dive().find('Text').length).toEqual(1) // Is 0
  });

Errors

The shallow throws an error that the children as a function doesn't contain the theme value. (color of undefined)

Can't find the Text component

API

[x] shallow
[ ] mount
[ ] render

Version

library
version

Enzyme
3.3.0

React
16.3.1

Adapter

[x] enzyme-adapter-react-16

I fixed it this way:
mocks
ThemeContext.js
jest.mock('../src/Component', () => {
  const ThemeProvider = require.requireActual('../src/Component').ThemeProvider;
  const theme = require.requireActual('../src/theme');

  return {
    ThemeProvider,
    ThemeConsumer: (props) => props.children({theme})
  }
});

Test
test('Should find the Text component', () => {
const wrapper = shallow();
 expect(wrapper.find('ThemeConsumer').dive().find('Text').length).toEqual(1)

});

hi,
Adding more information.
to find the provider you can add on attribute and the find by attribute:
...
<ThemeProvider themeprovider value={...}>
...

wrapper.find('[themeprovider]')

[ ]

[1. ](

**### @ #1019 **

)


training on custom dataset

@ChrisBellew @michuanhaohao  Can you please tell me how to train and validate on custom dataset.

please check the Readme.md

Readme has only instructions to train on standard datasets.
Can you please help me train on custom dataset


optimize-WIP optimize const_column to full convert

Proposed changes
before:
mysql [ssb]>select count(from_days(LO_ORDERDATE)) from lineorder_flat;
+----------------------------------+
| count(from_days(`LO_ORDERDATE`)) |
+----------------------------------+
|                                0 |
+----------------------------------+
1 row in set (4.40 sec)

after:
mysql [ssb]>select count(from_days(LO_ORDERDATE)) from lineorder_flat;
+----------------------------------+
| count(from_days(`LO_ORDERDATE`)) |
+----------------------------------+
|                                0 |
+----------------------------------+
1 row in set (4.21 sec)

Problem summary
make functions with only one argument to be automatically transformed when it's a constant column.
Checklist(Required)

[ ] Does it affect the original behavior
[ ] Has unit tests been added
[ ] Has document been added or modified
[ ] Does it need to update dependencies
[x] Is this PR support rollback (If NO, please explain WHY)

run buildall

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 34.52 seconds
stream load tsv:          474 seconds loaded<PHONE_NUMBER>9 Bytes, about 150 MB/s
stream load json:         41 seconds loaded<PHONE_NUMBER> Bytes, about 54 MB/s
stream load orc:          75 seconds loaded<PHONE_NUMBER> Bytes, about 14 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230313103324_clickbench_pr_113542.html

run buildall


resnet50_trainer.py example failed training

I need to convert my caffe2 model using fp16. I see the example resnet50_trainer.py. But I fails to train. I
use VOC0712 trainval lmdb data. This is my command and errors:
python examples/resnet50_trainer.py --train_data ~/data/VOCdevkit/VOC0712/lmdb/VOC0712_trainval_lmdb/
Ignoring @/caffe2/caffe2/contrib/nccl:nccl_ops as it is not a valid file.
Ignoring @/caffe2/caffe2/contrib/gloo:gloo_ops as it is not a valid file.
Ignoring @/caffe2/caffe2/contrib/gloo:gloo_ops_gpu as it is not a valid file.
Ignoring @/caffe2/caffe2/distributed:file_store_handler_ops as it is not a valid file.
Ignoring @/caffe2/caffe2/distributed:redis_store_handler_ops as it is not a valid file.
INFO:resnet50_trainer:Running on GPUs: [0]
INFO:resnet50_trainer:Using epoch size: 1500000
INFO:data_parallel_model:Parallelizing model for devices: [0]
INFO:data_parallel_model:Create input and model training operators
INFO:data_parallel_model:Model for GPU : 0
INFO:data_parallel_model:Adding gradient operators
INFO:data_parallel_model:Add gradient all-reduces for SyncSGD
INFO:data_parallel_model:Post-iteration operators for updating params
INFO:data_parallel_model:Calling optimizer builder function
INFO:data_parallel_model:Add initial parameter sync
WARNING:data_parallel_model:------- DEPRECATED API, please use data_parallel_model.OptimizeGradientMemory() -----
WARNING:memonger:NOTE: Executing memonger to optimize gradient memory
INFO:memonger:Memonger memory optimization took 0.0132730007172 secs
INFO:resnet50_trainer:Starting epoch 0/1000
terminate called after throwing an instance of 'caffe2::EnforceNotMet'
what():  [enforce fail at context_gpu.cu:333] error == cudaSuccess. 2 vs 0. Error at: /home/jmguo/caffe2/caffe2/core/context_gpu.cu:333: out of memory Error from operator:
input: "gpu_0/comp_6_spatbn_2" input: "gpu_0/comp_6_conv_3_w" output: "gpu_0/comp_6_conv_3" name: "" type: "Conv" arg { name: "kernel" i: 1 } arg { name: "enable_tensor_core" i: 0 } arg { name: "exhaustive_search" i: 1 } arg { name: "stride" i: 1 } arg { name: "pad" i: 0 } arg { name: "order" s: "NCHW" } arg { name: "ws_nbytes_limit" i: 67108864 } device_option { device_type: 1 cuda_gpu_id: 0 } engine: "CUDNN"
*** Aborted at<PHONE_NUMBER> (unix time) try "date -d @1508739644" if you are using GNU date ***
PC: @     0x7ff147f1f428 gsignal
*** SIGABRT (@0x3e8000010f0) received by PID 4336 (TID 0x7ff0f37fe700) from PID 4336; stack trace: ***
@     0x7ff1482c4390 (unknown)
@     0x7ff147f1f428 gsignal
@     0x7ff147f2102a abort
@     0x7ff139b4084d __gnu_cxx::__verbose_terminate_handler()
@     0x7ff139b3e6b6 (unknown)
@     0x7ff139b3e701 std::terminate()
@     0x7ff139b69d38 (unknown)
@     0x7ff1482ba6ba start_thread
@     0x7ff147ff082d clone
@                0x0 (unknown)
Aborted (core dumped)
What's wrong? How can I fixed it? My caffe2 has alread build sucessfully and work well.

I download mnist-lmdb and run resnet50_trainer.py face the same error.How can I fixed it? Thanks for help.
python examples/resnet50_trainer.py --train_data tutorials/mnist-lmdb/mnist-train-nchw-lmdb/
Ignoring @/caffe2/caffe2/contrib/nccl:nccl_ops as it is not a valid file.
Ignoring @/caffe2/caffe2/contrib/gloo:gloo_ops as it is not a valid file.
Ignoring @/caffe2/caffe2/contrib/gloo:gloo_ops_gpu as it is not a valid file.
Ignoring @/caffe2/caffe2/distributed:file_store_handler_ops as it is not a valid file.
Ignoring @/caffe2/caffe2/distributed:redis_store_handler_ops as it is not a valid file.
INFO:resnet50_trainer:Running on GPUs: [0]
INFO:resnet50_trainer:Using epoch size: 1500000
INFO:data_parallel_model:Parallelizing model for devices: [0]
INFO:data_parallel_model:Create input and model training operators
INFO:data_parallel_model:Model for GPU : 0
INFO:data_parallel_model:Adding gradient operators
INFO:data_parallel_model:Add gradient all-reduces for SyncSGD
INFO:data_parallel_model:Post-iteration operators for updating params
INFO:data_parallel_model:Calling optimizer builder function
INFO:data_parallel_model:Add initial parameter sync
WARNING:data_parallel_model:------- DEPRECATED API, please use data_parallel_model.OptimizeGradientMemory() -----
WARNING:memonger:NOTE: Executing memonger to optimize gradient memory
INFO:memonger:Memonger memory optimization took 0.0117490291595 secs
INFO:resnet50_trainer:Starting epoch 0/1000
terminate called after throwing an instance of 'caffe2::EnforceNotMet'
what():  [enforce fail at context_gpu.cu:333] error == cudaSuccess. 2 vs 0. Error at: /home/jmguo/caffe2/caffe2/core/context_gpu.cu:333: out of memory Error from operator:
input: "gpu_0/comp_12_sum_3" input: "gpu_0/comp_13_conv_1_w" output: "gpu_0/comp_13_conv_1" name: "" type: "Conv" arg { name: "kernel" i: 1 } arg { name: "enable_tensor_core" i: 0 } arg { name: "exhaustive_search" i: 1 } arg { name: "stride" i: 1 } arg { name: "pad" i: 0 } arg { name: "order" s: "NCHW" } arg { name: "ws_nbytes_limit" i: 67108864 } device_option { device_type: 1 cuda_gpu_id: 0 } engine: "CUDNN"
*** Aborted at<PHONE_NUMBER> (unix time) try "date -d @1508743508" if you are using GNU date ***
PC: @     0x7fb7d16fa428 gsignal
*** SIGABRT (@0x3e8000007e0) received by PID 2016 (TID 0x7fb77cff9700) from PID 2016; stack trace: ***
@     0x7fb7d1a9f390 (unknown)
@     0x7fb7d16fa428 gsignal
@     0x7fb7d16fc02a abort
@     0x7fb7c331b84d __gnu_cxx::__verbose_terminate_handler()
@     0x7fb7c33196b6 (unknown)
@     0x7fb7c3319701 std::terminate()
@     0x7fb7c3344d38 (unknown)
@     0x7fb7d1a956ba start_thread
@     0x7fb7d17cb82d clone
@                0x0 (unknown)
Aborted (core dumped)

I have fix the problem.I use desktop 1050Ti which total RAM of 4GB.I put the batch size down to 8, and works well.


Handle proxy dns responses correctly

There were two issues that prevented proxied dns queries from working:

The ziti connection that dns queries are sent over is not established (by design) when the first request is sent with ziti_write. The intent is to rely on ziti_write queueing the message until the connection is established, but there was a problem in ziti-sdk-c that caused crypto hash checks to fail for messages that were sent before the connection was ready. This was fixed with ziti-sdk-c 0.36.9.
The write callback associated with sending the dns query to the hosting tunneler was incorrectly treating the "length" parameter as "status", so even when a message was sent successfully, the tsdk responded to the original DNS client with SRVFAIL.

To test this I need a Ziti service that proxies DNS queries to a nameserver that's the target of a host config, correct?

You just need a service that:

uses a wildcard domain in its intercept.v1
does not use addressable terminators

Create identities that intercept and host this service, and send an MX query through the dns server of the intercepting tunneler. You can do this with the host command:
host test.wcdomain.ziti <IP_ADDRESS>

It worked for me!
I was able to build this branch with an unreleased revision of the ziti-builder image. The latest release's vcpkg checkout is tool old.
On that branch, I needed to build the builder.
docker build . -t openziti/ziti-builder:local

Then I could run  the builder with this repo's cross-building script.
ZITI_BUILDER_TAG=local ./scripts/ziti-builder.sh

With that build from this branch and the following Ziti service, I was able to reach a remote API by looking up a domain name that matched the wildcard intercept.
(set -euxo pipefail;

ZITI_SIMPLE=wildcard
ZITI_SIMPLE_CLIENT_PORT=443
ZITI_SIMPLE_HOST_PORT=443
ZITI_SIMPLE_HOST_ADDRESS=*.default.svc

ziti edge update identity "miniziti-client" \
    --role-attributes ${ZITI_SIMPLE}-clients

ziti edge update identity "miniziti-router" \
    --role-attributes ${ZITI_SIMPLE}-hosts

ziti edge delete config "${ZITI_SIMPLE}-intercept-config"
ziti edge create config "${ZITI_SIMPLE}-intercept-config" intercept.v1 \
    '{"protocols":["tcp"],"addresses":["'${ZITI_SIMPLE_HOST_ADDRESS}'"], "portRanges":[{"low":'${ZITI_SIMPLE_CLIENT_PORT}', "high":'${ZITI_SIMPLE_CLIENT_PORT}'}]}'

ziti edge delete config "${ZITI_SIMPLE}-host-config"
ziti edge create config "${ZITI_SIMPLE}-host-config" host.v1 \
    '{"protocol":"tcp", "forwardAddress": true, "allowedAddresses":["'${ZITI_SIMPLE_HOST_ADDRESS}'"],"port":'${ZITI_SIMPLE_HOST_PORT}'}'

ziti edge delete service "${ZITI_SIMPLE}-service"
ziti edge create service "${ZITI_SIMPLE}-service" \
   --configs "${ZITI_SIMPLE}-intercept-config,${ZITI_SIMPLE}-host-config"

ziti edge delete service-policy "${ZITI_SIMPLE}-bind-policy"
ziti edge create service-policy "${ZITI_SIMPLE}-bind-policy" Bind \
    --service-roles "@${ZITI_SIMPLE}-service" --identity-roles "#${ZITI_SIMPLE}-hosts"

ziti edge delete service-policy "${ZITI_SIMPLE}-dial-policy"
ziti edge create service-policy "${ZITI_SIMPLE}-dial-policy" Dial \
    --service-roles "@${ZITI_SIMPLE}-service" --identity-roles "#${ZITI_SIMPLE}-clients"

;)


Fix ROI yaw wrapping

Test data / coverage
The wrap (second commit) is successfully tested, the refactor (first commit) not, please review.
Describe problem solved by the proposed pull request
Yaw output was able to reach outside of the [-180°, 180°] range.

@bkueng Thanks for the review. I think it does but is far from perfect, sorry if it doesn't match your preference. Please tell me if and what I need to revisit.


Issue #715 Update fs.lstat.spec.js to have proper const and let instead of var and added 'use strict'

I edit the code to change some let into const and tested it again

I have changed the file, can you check it again please?


add service account annotation

to simplify deployment later.
https://github.com/istio/istio/issues/5903

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers: frankbu, sdake
If they are not already assigned, you can assign the PR to them by writing /assign @frankbu @sdake in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

install/OWNERS
samples/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/cc @wattli @diemtvu

@quanjielin: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-unit-tests.sh
c22b2cfee4ea954bd849e18586abeeddca461398
link
/test istio-unit-tests

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.

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: diemtvu
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers: frankbu, sdake
If they are not already assigned, you can assign the PR to them by writing /assign @frankbu @sdake in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

install/OWNERS
samples/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Can not download the pretrained model: ssd_300_voc_0712.zip

Are there other URL to get the model? Thanks.

Try again plz. The one is hosted on github.

Thank you, but still not accessable.
Url address not change?
https://dl.dropboxusercontent.com/u/39265872/ssd_300_voc0712.zip

You might need a vpn

I got the same problem. Can not download it. Can anyone share it?

Links fixed, plz try again.


Provide exchangeable interface adapters for the board and shift register libraries

The objective of this pull request is to design interface adapters which provide the functionality necessary for the application's use cases to interact with the input devices and the status indicators of the board.
The design shall be such that the use cases do not depend on

the implementation of the board
the implementation of libraries used for this feature
the selected framework or software development kit

This design facilitates to exchange the board, the libraries or the framework later on. This is desirable because this way we can change those details (things the application's use cases don't care about) without the need to adjust the implementation of the use cases.

I think I found an answer to the question above about whether to put modules into src or lib directory.
The PlatformIO documentation explains:

By default, PlatformIO does not build the main source code from the src_dir folder in pair with a test source code. [...] We recommend splitting the source code into multiple components and placing them into the lib_dir (project’s private libraries and components).

Although this is not the only option available for unit tests, but the recommended one.
I infer that:

there actually is at least one technical difference whether the modules are put into src or lib directory
in case unit tests are envisioned for the modules, the recommended way is to put them into the lib directory

[ ] Explain and justify the include dependency rule.

This diagram has been created with Sourcetrail using the Custom Trail function and the following settings:

From: ProcessHmiInputs
All Referenced
All nodes but 'build-in type', 'enum constant', 'non-indexed'
Edges: 'type use', 'inheritance', 'member'
this project file: souretrail-project.zip


Encryption Controller and Tools added

Finished encryption and decryption methods in the Encryption Controller File. Added a method to rotate keys if necessary in Encryption Tools, and encryption utils is now a deprecated file.
However, I am keeping encryption utils there for now so that we can easily identify areas in the code that need to be refactored. Check issue #86 for more details on running the server locally.
We can merge this into master, and refactor after merging.

Codecov Report

Merging #87 (8790c12) into master (72e6246) will not change coverage.
The diff coverage is 0.00%.

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

Codecov Report

Merging #87 (8790c12) into master (72e6246) will not change coverage.
The diff coverage is 0.00%.

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

Tested locally and with integration tests. Everything is working :)

Tested locally and with integration tests. Everything is working :)


Update de.json

Changed a few typos and made enhancements to make the expressions more smooth.

Thanks for the pull request, @trzyglow started and has been regularly maintaining the german translation, so I'd need their input before accepting any of these changes.

I don't speak german, so hopefully @trzyglow will be able to add more to the discussion but from a quick look it seems like you changed the capitalization of some of the words that are not the starting letter of the phrase (but not others?). Is that strictly needed? did you take a look at the english, reference, localization file and/or how the text looks in the menus in the program itself to check how things currently look? In the english localization some words are capitalized for aesthetic reasons (I just feel they look better that way in the menus) and the current german translation respects that so, unless its too ugly/strange for a german reader I'd like to keep all the translations adhering to that.

For the menus' text capitalization, one of my visual references is the firefox toolbar, so taking a look at what they do in the german localization could be a good starting point.

It's mostly valid:

most changes, just revert the stylistic adaptations i kept from the english original.
although i deliberately chose to use "konvertieren" instead of "umwandeln" because it's more accurately to the context.
hanging "dem selben" with "demselben" is gramatically wrong in this context (atleast in standardized high german)
there are also deletions to some segmentations i did for the sake of readability
some new sentence translations omit information present in all other translations

also: yes, i do get notified when mentioned.

I think this commit is too big and changes too many things at one time, sometimes getting away too much from the original english localization's content or some of the style. Correct me if I'm wrong, as I said I don't speak german and rely only on google translate, but I also noticed things like the translation for the File>Quit text that are more verbose that I feel they should be (quit program instead of quit) or the description of some of the tools suggesting donating to the websites it makes use to referring to the program instead of the tool, losing a bit of the original meaning... feels like some texts have been modified taking into account only the previous german translation and not the original english or the context within the program...
@al-dev112233 maybe it would be best if you closed this pull request and  discussed some of the changes you feel are more important here with @trzyglow and me, and once there are a few we all feel improve things you can make a new, smaller pull request with them, and so on. Don't know how you all feel about this approach.
By the way, I'm working on a big rewrite of the program internals and UI (which will become version 3.0) and I've made some changes to the localization files, so maybe it would be best if you waited until I update the repository to make pull requests, as I've already made some name changes and have added new entries that need translations and merging changes now will make things a bit messy on my end before that (I don't know when I'll be ready to make the current changes public, things are quite broken right now, but I'm getting slowly there).

I see, I'll wait for the new version.


Lost Frame and Failsafe Transmit packet

Add lost frame and failsafe data to the transmitted packet.

Agree, would be nice to feed also flight controllers with SBUS write function. As already discussed with Brian I am working on a solution to feed analog RSSI data from L9R into SBUS stream for my iNav flight controller.

Added support for transmitting lost_frame and failsafe flags.


Make sure all k8s related agent describe supported k8s versions

Make sure all k8s related agent describe supported k8s versions, add related doc

Deployment template file;
Documentation

please upgrade to use helm to manage your app layout.


String/Vec::replace_range(RangeArgument, IntoIterator)

Add a replace_slice method to Vec<T> and String removes a range of elements,
and replaces it in place with a given sequence of values.
The new sequence does not necessarily have the same length as the range it replaces.
Rendered.

Any reason you don't return an iterator that consumes the removed elements like splice? I'd also just call it splice for consistency.
Second, you can fall back on allocating temporary storage and copying twice if ExactSizeIterator returns the wrong length to avoid the quadratic time algorithm.

Both good points.

It looks like this functionality already exists! http://bluss.github.io/arrayvec/doc/odds/vec/trait.VecExt.html#tymethod.splice

I would like this functionality to just us vanilla size_hint, and do whatever dirty tricks it needs to do when the size_hint fails to match to make things work ok (allocating a back-up buffer seems fine).

:+1: for splice; this is exactly that functionality but better.

Do we specify that the old stream must be totally consumed first, and then the new stream is consumed (do we leave open the possibility for interleaving)?

I agree that it should accept everything Extend does.

I think this is covered in #1253, just, as commented, should be generalized to Vec as well.

I’ve updated the RFC to incorporate some feedback (rename to splice, return an iterator, fallback to allocating rather than taking quadratic time, …) and removed the implementation since I don’t have one yet that does all that. I can finish it once the exact semantics are decided.
@alexcrichton Could the libs team discuss this? Is it desired in std, and how should the unresolved questions be resolved?

This all seems pretty reasonable to me, and the libs team process for this is to:

Assign a shepherd (@aturon in this case)
When the shepherd thinks that discussion has come to a conclusion, lull, etc, or the RFC is simply actionable, the libs team discussed moving into FCP
After a week of FCP, the libs team decides whether to merge or not based on discussion so far.

So along those lines anyone can always discuss this! If @aturon or anyone else on the libs team thinks this is ready for FCP then we'll likely move it in.

Another possibility is to add this as functionality to the Drain iterator. (This was @bluss's idea when I discussed it with him). Basically having something like: vec.drain(1..5).replace(other_iter). I personally find that this will be less discoverable there.
FWIW there are quite a few languages which have this operation as a first class feature, for example,  Python (a[1:5] = b[3:5]).

Indeed, now that this new method was changed to return an iterator I think it’s equivalent to Vec::drain when the input iterator is empty.

Would this be a duplicate fn if IndexAssign is eventually accepted? In the examples in that rfc they only assigned slices to vec ranges over the same len, but I don't see any reason it couldn't accommodate this usage as well.

Would IndexAssign slicing work? Doesn’t IndexAssign need to take ownership of its parameter, which needs to be Sized?

I'm not sure which parameter you mean, but I was imagining this (I very well may be wrong here!):
Given:
trait IndexAssign<Index, Rhs> {
    /// `self[index] = rhs`
    fn index_assign(&mut self, index: Index, rhs: Rhs);
}

it would look like:
impl<R, I> IndexAssign<R, I> for Vec<T>
    where R: RangeArgument<usize>,
          I: IntoIterator<Item=T>
{
    // `vec[0..5] = (0..10);`
    ...
}

Ah, but I see splice is supposed to return the spliced-out slice. Perhaps that's just an oversight in the IndexAssign RFC.

The IndexAssign RFC doesn't actually propose adding any operations to slices using IndexAssign.

True, bit out could be revisited. It certainly seems like it's be nice.

:bell: This RFC is now entering its week-long final comment period :bell:

How about adding two methods splice() and splice_drain(), the first not returning anything and the second returning an iterator? It would mean if you don't actually want the existing elements (or there aren't any) you don't have to consume an iterator just to get the method to work.

@ollie27 In the current proposal, you don't have to consume it, you just have to drop it.

Well that's still an extra thing you have to do.

Drops are automatic. You don't have to explicitly do anything.
On Mar 3, 2016 4:43 PM, "Oliver Middleton"<EMAIL_ADDRESS>wrote:

Well that's still an extra thing you have to do.
—
Reply to this email directly or view it on GitHub
https://github.com/rust-lang/rfcs/pull/1432#issuecomment-192038004.

Ah good point, I was thinking of assigning the result to a variable for some reason.

The new flexible length semantics seem proportionally complex to me.

@bluss I don’t understand your last comment. I guess flexible length refers to the iterator of new values not having to be the same length as the range it replaces. But what does proportionally complex mean?

splice found a nice way to solve it for any iterator I think. I just mean that splice is simple for good input (exact size-ish) and a bit more involved for the fallback cases, but it's not too complex. Complexity was my main worry with the expanded scope with non-exact size iterators.

This RFC was discussed yesterday during libs triage, and the decision was to merge. We discussed whether we want APIs like this to run wild as it's unclear if the API of types like Vec will ever end, but on the other hand if we're gonna beef up types this seems like the type to beef up! Overall we concluded that this is pretty neat functionality to have now, so we're merging.
Thanks for the RFC @SimonSapin

Tracking issue: https://github.com/rust-lang/rust/issues/32310

@alexcrichton Did the libs team discuss unresolved questions? In particular, when to consume the input iterator.

@SimonSapin We didn't discuss that in depth in the meeting (and in general are OK tweaking this point prior to stabilization).
From my perspective, I think it makes the most sense to consume on drop, given that there isn't necessarily a direct relationship between the number of items being drained and those being incorporated. (That is, if you had an interleaving semantics, in general interleaving would only happen for some prefix.) It seems simpler and more consistent to just do them all at once after the drop.
For the record, I'm very slightly uncomfortable with so much of the action being tied to Drop here, just because it's subtle/clever. But I suspect over time the pattern will grow more comfortable/expected, so I'm happy to at least give it a shot (and it is a really neat trick!)

I agree that doing so much in Drop is unusual, but there is some precedent in Vec::drain / Drain.


Code Coverage Round 1

Code coverage improvements first round.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.2%) to 82.456%

Totals

Change from base Build<PHONE_NUMBER>:
0.2%

Covered Lines:
9851

Relevant Lines:
11947

💛  - Coveralls


segmentation fault when starting test

ted@ted-laptop:~$ sudo howdy test

Opening a window with a test feed

Press ctrl+C in this terminal to quit
Click on the image to enable or disable slow mode

Segmentation fault

I had to manually configure my camera, however the face detection itself works with my config.
OS: Kubuntu
Kernel: 5.11.0-38-generic
Device: Lenovo ThinkPad E15 Gen 2 AMD

I could narrow the problem down to opencv (segfaults when calling namedWindow).
I believe that the opencv version used by howdy (provided by the distribution, i suppose) is hit by this bug https://github.com/opencv/opencv-python/issues/572 . This is the test i run on my Pop_OS installation (builds upon ubuntu 20.04):
≻  python3
Python 3.9.5 (default, May 11 2021, 08:20:37)
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2 as cv
>>> cv.__version__
'4.5.4-dev'
>>> cv.__file__
'/usr/local/lib/python3.9/dist-packages/cv2/__init__.py'
>>> cv.namedWindow("test")
[1]    23573 segmentation fault (core dumped)  python3

When installing a newer version of opencv via pip and running the same commands as above, namedWindow does not segfault anymore.
≻  pip install --force-reinstall opencv-python==<IP_ADDRESS>
Defaulting to user installation because normal site-packages is not writeable
Collecting opencv-python==<IP_ADDRESS>
  Using cached opencv_python-<IP_ADDRESS>-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (60.3 MB)
Collecting numpy>=1.19.3
  Using cached numpy-1.21.4-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.7 MB)
Installing collected packages: numpy, opencv-python
  Attempting uninstall: numpy
    Found existing installation: numpy 1.21.4
    Uninstalling numpy-1.21.4:
      Successfully uninstalled numpy-1.21.4
  Attempting uninstall: opencv-python
    Found existing installation: opencv-python <IP_ADDRESS>
    Uninstalling opencv-python-<IP_ADDRESS>:
      Successfully uninstalled opencv-python-<IP_ADDRESS>
Successfully installed numpy-1.21.4 opencv-python-<IP_ADDRESS>
≻  python3
Python 3.9.5 (default, May 11 2021, 08:20:37)
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2 as cv
>>> cv.__version__
'4.5.4'
>>> cv.__file__
'/home/plafue/.local/lib/python3.9/site-packages/cv2/__init__.py'
>>> cv.namedWindow("test")
# window appears, no segfault

I frankly don't know where /usr/local/lib/python3.9/dist-packages/cv2/__init__.py comes from or how is it installed (maybe i installed manually in the past? when installing other software?) - but it being a -dev version seems to be problematic. The seemingly related package python3-opencv is not defined as a dependency on the howdy deb package (i'm not that familiar with the python ecosystem and find all the packaging/dependency resolution confusing).
I forced installing the newer version system-wide (probably strongly not recommended, but YOLO - it is a bugfix version bump) via sudo pip install --force-reinstall opencv-python==<IP_ADDRESS> and now howdy test works.

Thanks for figuring that out @plafue!

It works now so I guess this can be marked as closed. Thanks plafue.


Share the SavedModel(s) for the hand_landmark.tflite,  hand_landmark_3d.tflite and palm_detection.tflite models

I will be very interested to test the palm-detection and hand-landmark TF models.
Unfortunately it is not possible to convert the .tflite format back into frozen graphs or savedmodels.
Will appreciate a lot if you could share the original TF SavedModel(s) used to build those tflite files (e.g. https://github.com/google/mediapipe/tree/master/mediapipe/models)

@tzolov Unfortunately, we are unable to share the TF saved model files for any of our examples except object detection, which is provided in the MediaPipe model zoo. The current tflite format can be used as it is together with our MediaPipe inference pipeline examples

How about TF.JS models. We would love to build a light weight webapp without having to go through the app building process.

Thanks for the quick response @mgyong! May i as if the inability to share are due to technical or license/legal reasons?
IMO there are other (not mediapipe based) interesting use cases that could benefit from the original, pre-trained TF models. I would like to try them with Java pipelines.


Fixing batchai test

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug

There are 8 failed test cases in batchai in a recent test run. Can you have a look? Thanks!
https://clitestresultstac.blob.core.windows.net/20201018-203235-041446/index.html
https://clitestresultstac.blob.core.windows.net/20201018-203235-041446/batch.report.parallel.html
To Reproduce

Expected behavior

Environment summary

Additional context

batchai

Service is deprecated. Close the issue


Allow filtering gift cards by code

Allow filtering gift cards by code.
Extend GiftCardFilterInput with code field.

Impact

[ ] New migrations
[ ] New/Updated API fields or mutations
[ ] Deprecated API fields or mutations
[ ] Removed API types, fields, or mutations
[ ] Documentation needs to be updated

Pull Request Checklist

[ ] Privileged queries and mutations are guarded by proper permission checks
[ ] Database queries are optimized and the number of queries is constant
[ ] Database migration files are up to date
[ ] The changes are tested
[ ] GraphQL schema and type definitions are up to date
[ ] Changes are mentioned in the changelog

Task linked: SALEOR-4604 Allow filtering gift cards by code


Enhancement Request: For MacOS, add text that says “⌘+ Enter to submit lesson"

Is your feature request related to a problem? Please describe.
SUMMARY: On MacOS platform, it’s not made clear that Command+Enter can be used to submit lessons, despite the fact that this keyboard shortcut does work and is preferable. I suggest making this clear to Macbook users.
DISCUSSION:
Currently, the lessons say: Check Your Code (Ctrl + Enter). On Mac, the Ctrl key is in a slightly awkward position compared to the Command Key. The Command key is very easy and quick to hit.
This might seem like a small request, but I think that the change would be greatly appreciated and helpful to those who are (a) on Macs and (b) appreciate keyboard shortcuts.  My personal story is I "suffered" through the lessons for awhile, trying to get accustomed to Ctrl + Enter, but it was always a little bother. Once I figured out the "trick" of getting to the next page via ⌘+ Enter, I thought, "I wish I had known about that earlier!"
(Staff requested I open this as an issue: https://forum.freecodecamp.org/t/enhancement-request-text-that-says-enter-to-submit-lesson-on-mac/683217.)
Describe the solution you'd like
This could possibly be implemented in one of two ways:

Change the text on MacOS to “Check Your Code (Command + Enter)”.  Or perhaps “Check Your Code (⌘+ Enter)"

Pop up on MacOS that says “You can also use Command+Enter to check your code.” On the popup, also include a checkbox: “Don’t show this again.”

Describe alternatives you've considered
None.
Additional context
No response

I'll add my two cents here. I think we should remove the extra hint text completely and the button should just read "Check Your Code". This information can be made available in the keyboard shortcuts helper dialog that we already have available.

I disagree, Bruce. In order for people to find this modal they would need to enable it in the settings first. Then go through a couple of technical tricks to get it to show up. Which is hard for a casual user to comprehend.
This change would be for the better. I will put a Help wanted label on it!

Hi everyone! I've just submitted this PR: #54276 which should enhance labelling on "check-code" button.
My solution, at the moment, provides the following label: Check Your Code (⌘+ Enter) which was the fastest way to improve the current situation; I've also seen you talked about showing pop-up... we could think about it but I think that updating the label should be better in terms of maintaining and testing stuff
Let me know what you think about it


Handle abstract UiItemsManager

Update the @itwin/appui-react  UiItemsManager to include any providers registered to the @itwin/appui-abstract UiItemsManager while attempting to not force the abstract version to exist (so we can remove it later without breaking...

Handled by #278


Multilanguage can WRITE but not READ from DB

I can write a new translation in the DB and it works. But when it's time to read it back. It won't load the translation.
I'm on the master branch. Can anyone reproduce this behavior? This is a mission-critical feature for our project!
Thank you for your time

Ok.... took me a while to understand the mechanics of the multilanguage

When you ADD A NEW LANGUAGE


Remove dagrayvid from OWNERS

Now that the SRO team has fully ramped up on ownership of SRO, I think I can be removed from the OWNERS. I am no longer actively involved in the project and probably shouldn't be selected as a reviewer.
I am always happy to consult on this project when specific issues or questions come up where I can help!

/lgtm
Thank you for everything @dagrayvid!


Deploy Option: Auto Replace API Gateway

Summary
Option for more control over current Auto Replace API gateway behavior that can happen with a  jets deploy.
Motivation
Currently, a jets deploy can possibly replace the API Gateway.  Jets does some "Routes Change Detection". Jets computes and figures out whether or not it needs to replace the REST API as part of a deployment. Jets does this because it is sometimes the only way to deploy successfully. Otherwise, the CloudFormation stacks rollback. It also removes the need to do the blue-green deployment manually.
If the app does not yet have a Custom Domain setup, replacing the API Gateway can cause issues as the API Gateway endpoint is changed.
Guide-level explanation
The option could be config.deploy.api.auto_replace with 3 possible values:

Value
Description

nil
This is the default behavior. Jets checks if a Custom Domain is configured. If a Custom Domain is set, there is no prompt. If Custom Domain not set, then it depends on Routes Change Detection.  When an API replacement is required: it'll prompt the user, let them know that the API endpoint will change, and let the user decide.

false
Never replace the API Gateway, even if Routes Change Detection is positive.  So the CloudFormation stack will always rollback in that case.

true
Replace the API Gateway if Routes Change Detection is positive.

Note: The default nil behavior can block CI/CD setups, but it's better than causing issues post-deploy.  Maybe timeout after some time. The prompt should point users to documentation explaining their options and answering questions that they will likely have.
Reference-level explanation
Can be configured in config/application.rb. Example:
Jets.application.configure do
  config.api.auto_replace = nil # default

Note: Would also like a JETS_API_AUTO_REPLACE env variable option also that overrides the application-level config, so demo presentation won't accidentally run into the prompt.
Drawbacks

Mentioned it earlier. It can block CI/CD builds. The prompt should point users to documentation explaining their options and answering questions that they will likely have.
Can lead to users not setting up Custom Domains. Think will handle with encouraging messaging to set up a Custom Domain name.  Manual blue-green deployments quickly become an annoyance anyway.

Unresolved Questions
Can't think of any at the moment.
Related
#389

Handled in #522

Handled in #522


fix: fixing deps to arweave-js

~moving arweave-js as peer dependency (not sure about this)~
fixing warp-wasm-json-toolkit (was using imports from redstone-isomorphic)
fixing imports to bn.js (multiple packages were importing its own version)
reducing imports from arweave-js
fixed imports to bignumber.js (multiple packages were importing its own version)
esbuild version update
fixed imports to buffer-pipe (multiple packages were importing its own version)

After (before it was around 750kb):

The biggest part of the node_modules is related to VRF - it needs to be moved to a plugin - https://github.com/warp-contracts/warp/issues/248

1.2.52-beta.2


feat: adding support for adding IAM auth when admin app is enabled

Description of changes:
Adds IAM auth to the API when Admin app is enabled.
Note: This change does not change any existing functionality and doesn't require any schema definition changes.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Also a few tests are failing. I think you need to add some mocks for isAmplifyAdminApp and stateManager