Investigate why cargo check is doing double-work

Often when I run cargo check, it rebuilds dependencies deep down the dependency chain, e.g. egui. Why? This is slowing me down a lot.

I isolated one pattern with deterministic & unnecessary rebuilds

do a change
cargo rerun
just py-build
cargo rerun <- will build winit again

Looking at it with CARGO_LOG=cargo::core::compiler::fingerprint=trace I found
[2023-09-21T11:25:03Z INFO  cargo::core::compiler::fingerprint] dependency on `winit` is newer than we are<PHONE_NUMBER>.541226352s ><PHONE_NUMBER>.936536278s "/Users/andreas/.cargo/git/checkouts/egui-5e4507fa4153be06/d949eaf/crates/egui-winit"
[2023-09-21T11:25:03Z INFO  cargo::core::compiler::fingerprint] dependency on `winit` is newer than we are<PHONE_NUMBER>.541226352s ><PHONE_NUMBER>.096291254s "/Users/andreas/.cargo/git/checkouts/egui-5e4507fa4153be06/d949eaf/crates/eframe"

which seems to imply an issue with our current egui patches

We have a lot of build.rs files following this pattern:
fn main() {
    re_build_tools::rebuild_if_crate_changed("re_data_source");
    re_build_tools::export_env_vars();
}

we do this in order to get correct and up-to-date build info.
I wonder if we really need this though. Sure we want good build info for build from CI, but who really cares about the commit hash when you are building locally?
I added it originally for when working on the web-viewer, since it wasn't always obvious if the web-viewer that e.g. a notebook was serving was the latest built one (either due to bugs in the build.rs script that should trigger a rebuild of the web-viewer, or because of browser-side caching). In any case: this could be solves somehow else, e.g. with something opt-in.

Running cargo codegen over and over will rebuild every times. That can't be right.

Running cargo codegen over and over will rebuild re_types_builder every time. That can't be right.

It's the same underlying problem as the roundtrip test suite execution time regression:

https://github.com/rerun-io/rerun/pull/3474

This issue was opened before the PR that caused the bug fixed by #3474. There are more improvements to be had.

Right now I'm leaning towards something like this:

opt-in to most of our build.rs-shenanigans using an environment variable
when unset, we don't show things like commit hash in the viewer (since it is unreliable without the environment variable)

This means you'd most often need to run cargo codegen manually, unless you turn on that environment variable.

The problem that Andreas reported still remain on main:
> cargo rerun --version
…
> just py-build
…
> cargo rerun --version
   Compiling objc-sys v0.2.0-beta.2
   Compiling objc2-encode v2.0.0-pre.2
   Compiling objc2 v0.3.0-beta.3.patch-leaks.3
   Compiling winit v0.28.7
   Compiling accesskit_macos v0.7.1
   Compiling accesskit_winit v0.14.1
   Compiling egui-wgpu v0.23.0
   Compiling egui-winit v0.23.0
   Compiling eframe v0.23.0
   Compiling re_ui v0.10.0-alpha.6+dev (/Users/emilk/code/rerun/rerun/crates/re_ui)
   Compiling re_viewer_context v0.10.0-alpha.6+dev (/Users/emilk/code/rerun/rerun/crates/re_viewer_context)
   Compiling re_data_ui v0.10.0-alpha.6+dev (/Users/emilk/code/rerun/rerun/crates/re_data_ui)
   Compiling re_space_view v0.10.0-alpha.6+dev (/Users/emilk/code/rerun/rerun/crates/re_space_view)
   Compiling re_space_view_text_document v0.10.0-alpha.6+dev (/Users/emilk/code/rerun/rerun/crates/re_space_view_text_document)
   Compiling re_space_view_time_series v0.10.0-alpha.6+dev (/Users/emilk/code/rerun/rerun/crates/re_space_view_time_series)
   Compiling re_space_view_bar_chart v0.10.0-alpha.6+dev (/Users/emilk/code/rerun/rerun/crates/re_space_view_bar_chart)
   Compiling re_space_view_spatial v0.10.0-alpha.6+dev (/Users/emilk/code/rerun/rerun/crates/re_space_view_spatial)
   Compiling re_time_panel v0.10.0-alpha.6+dev (/Users/emilk/code/rerun/rerun/crates/re_time_panel)
   Compiling re_space_view_text_log v0.10.0-alpha.6+dev (/Users/emilk/code/rerun/rerun/crates/re_space_view_text_log)
   Compiling re_space_view_tensor v0.10.0-alpha.6+dev (/Users/emilk/code/rerun/rerun/crates/re_space_view_tensor)
   Compiling re_viewport v0.10.0-alpha.6+dev (/Users/emilk/code/rerun/rerun/crates/re_viewport)
   Compiling re_viewer v0.10.0-alpha.6+dev (/Users/emilk/code/rerun/rerun/crates/re_viewer)
   Compiling rerun v0.10.0-alpha.6+dev (/Users/emilk/code/rerun/rerun/crates/rerun)
   Compiling rerun-cli v0.10.0-alpha.6+dev (/Users/emilk/code/rerun/rerun/crates/rerun-cli)
    Finished dev [optimized + debuginfo] target(s) in 13.23s
     Running `target/debug/rerun --version`

This makes me wonder if the feature flags are changing somehow. eframe has some feature flags in Cargo.toml and some other in crates/re_viewer/Cargo.toml - I wonder what happens if I make them the same…

objc-sys is the first crate being rebuilt. Maybe something is wrong in https://github.com/madsmtm/objc2/blob/master/crates/objc-sys/build.rs ? Or different feature flags are enabled on objc-sys?


Lazy attributes with fake factories some times fails.

Hi.
Some times my builds fails with integrity error like this: https://travis-ci.org/proofit404/codeflame/builds/67279773
Here is model definition caused this problem: https://github.com/alex/django-taggit/blob/develop/taggit/models.py#L87-L90
And here is my factory for it: https://github.com/alex/django-taggit/blob/develop/taggit/models.py#L87-L90
I try to wrote it both with LazyAttribute and with Sequence. Result is pretty much the same. Build will randomly fails with integrity error.
Since there is Faker integration in the upcoming factory_boy release I think this issue will apply to it too.
Do you know any workaround to this problem?

@proofit404 I'll need your factory definition, looks like you've mistyped the URL :)

Factory: https://github.com/proofit404/codeflame/blob/564740ee26d586c6ee62f5a848224e9201fc2824/src/tags/tests/factories.py#L10-L17
Model: https://github.com/alex/django-taggit/blob/ac5b7ef403aebcd20850bd809b00825b4c2e49bc/taggit/models.py#L92-L95

I'm getting a 404 for your Factory definition. Can you post an updated link?

Sorry, I've deprecate this project. Here is updated link to the factory.

Thanks, but I'm getting a Bitbucket login screen which means it's not a public repo... Can you make it public?

class TagFactory(factory.DjangoModelFactory):

    name = factory.Sequence(lambda num: fake.word())
    slug = factory.LazyAttribute(lambda obj: obj.name)

    class Meta:

        model = 'taggit.Tag'

@proofit404 If I read your factory correctly, you're using a random value in a unique field.
Depending on the values generated by your random generator, this can produce the same value twice, thus leading to the IntegrityError you're encountering.
You could probably fix this by replacing your sequence with name = factory.Sequence(lambda n: '%s %d' % (fake.word(), n)).

@rbarrois Actually I already append sequence number to fake.word result. I create this issue because of new build-in faker integration which can cause the same error.

I suspect this is because the fake.word() generator pulls values from the Lorem corpus. If so, the Lorem corpus has multiple duplicate words, and so isn't actually unique, despite what the Faker docs imply.
I got bit by something similar and submitted a PR to them over a year ago: https://github.com/joke2k/faker/pull/177 I'd appreciate if you leave a note over on that PR mentioning that you got bit by the issue as well.
Closing as this isn't an issue with Factory Boy.


Proof corrections

Addresses https://github.com/openjournals/joss-reviews/issues/2436#issuecomment-694118587
TODOs:

[x] Jake middle name inital
[x] Check english spelling (UK)
[x] Read and correct typos and misspellings
[x] Check references
[x] Check links

Done


[main] Upgrade to latest dependencies

core repositories are cut -creydr
/cc knative-extensions/eventing-writers
/assign knative-extensions/eventing-writers
Produced by: knative-extensions/knobots/actions/update-deps

/easycla

/easycla


Add DEVxHUB International University

@SuMon-DevXHub file/lib/domains/com/devxhub.txt: this request has an incorrect file path format, please ensure that you are familiar with     this repository rules located at the bottom of this page and change     your request accordingly. If you don't know how to change request, close it and open a new one.     If you are not able to make the pull request according the instructions, please send us an email to<EMAIL_ADDRESS>Please mention this request URL in the message.

@SuMon-DevXHub I am sorry, this domain represents a commercial company, not a specific single university or a college. If you are a student, please apply for free educational license with an official document, which proves that you are a student. You can do it using "OFFICIAL DOCUMENT" tab at https://www.jetbrains.com/shop/eform/students.
I have to close the request without merging.
Thank you for your understanding!


Throw build error when Docusaurus finds broken links

Fix broken links mostly by removing version > 0.10 from the releases notes
The build will now fail when we have broken links:
https://github.com/okteto/docs/pull/282/files#diff-a038096cbdea434999e1dce5ab497212f1fe18204dde1a027ce3bdd663261a2aR14-R15

Yes!


MINOR: Reduce impact of trace logging produce request hot path

The impact of trace logging is normally small, however this adds up with trace is called multiple times per produce request in the produce request hot path.
This PR adds a conditional check for trace logging in the produce request code hot path.

@divijvaidya , thanks for the PR. Do you think we can add the check in kafka.utils.Logging#trace?

Hey @showuon
That would not prevent serialization of string which is passed as an argument e.g. at

trace(s"Socket server received response to send to $connectionId, registering for write and sending data: $response")

the response object is serialized to string before passing the parameter to trace().
This is an old problem with loggers and slf4j have solved it in Java world with parameterised logging but I am not sure how to fix it in scala world.

@divijvaidya Is string interpolation accounted for with the graphic included in the description? Forgive me, I'm not familiar with the tooling used to generate it. It might also help to see a before+after with this change applied to demonstrate its performance improvements.

Hi @C0urante @showuon
I didn't find much difference in CPU usage after this optimization (thanks to Chris's tip on adding after/before profile), hence I am aborting this PR. It is concerning that checking for log levels takes significant ~2% of the CPU during a produce request workload but that is something which will perhaps be fixed when we move to log4j2.


WCF service interception is not supported

WCF service won't be hosted if it has an interceptor.
Using: Windsor 3.4.0, .Net 4.6.1.
Here is how WCF service is created:
[ServiceContract]
public interface IEmployeeService
{
  [OperationContract, WebInvoke(Method = "GET", UriTemplate = "/get/{value}")]
  string GetData(string value);
}

public class EmployeeService : IEmployeeService
{
  public string GetData(string value)
  {
    return $"You entered: {value}";
  }
}

public interface IWcfInterceptor: IInterceptor { }

public class WcfInterceptor : IWcfInterceptor
{
  // implementation goes here
}

// ...........
// 0. Create windsor container, add wcf facility;
// 1. Register the interceptor component;
// 2. Register the WCF service;
Component.For<IEmployeeService>()
  .ImplementedBy<EmployeeService>()
    .AsWcfService(new RestServiceModel()
      .AddBaseAddresses("http://localhost:30115/employee")
      .AddEndpoints(WcfEndpoint.ForContract<IEmployeeService>()
      .BoundTo(new WebHttpBinding())
      .At("rest"))
    )
    .AsWcfService(new DefaultServiceModel()
      .AddBaseAddresses("http://localhost:30115/employee")
      .AddEndpoints(WcfEndpoint.ForContract<IEmployeeService>()
      .BoundTo(new WSHttpBinding())
      .At("soap")).PublishMetadata(o => o.EnableHttpGet())
    )
    .Interceptors<IWcfInterceptor>() // this is not supported

@johnsky - did you try this?

// ...........
// 0. Create windsor container, add wcf facility;
// 1. Register the interceptor component;
// 2. Register the WCF service;
Component.For<IEmployeeService>()
  .ImplementedBy<EmployeeService>()
    .AsWcfService(new RestServiceModel()
      .AddBaseAddresses("http://localhost:30115/employee")
      .AddEndpoints(WcfEndpoint.ForContract<IEmployeeService>()
      .BoundTo(new WebHttpBinding())
      .At("rest"))
    )
    .AsWcfService(new DefaultServiceModel()
      .AddBaseAddresses("http://localhost:30115/employee")
      .AddEndpoints(WcfEndpoint.ForContract<IEmployeeService>()
      .BoundTo(new WSHttpBinding())
      .At("soap")).PublishMetadata(o => o.EnableHttpGet())
    )
    .Interceptors<WcfInterceptor>() // changed from interface to implementing type

Also, make sure you have registered your interceptor. I cannot see it in your sample.

@fir3pho3nixx  Yes, I did. You make me doubt, I'll check it once more carefully and let you know

I added a test that failed for me (as expected): https://github.com/johnsky/Windsor/commit/04b930a6a2ea5b9c2993cfc0356a0aaa3689c9f1
These tests are similar CanCreateServiceHostAndOpenHost CanCreateServiceHostAndOpenServiceHostWithInterceptor, the only difference between tests is that interceptor configured for the second.
Is the test valid or not?

Hi,
I changed your test to be the following:

[Test]
public void CanCreateServiceHostAndOpenServiceHostWithInterceptor()
{
	using (new WindsorContainer()
		.AddFacility<WcfFacility>(f => f.CloseTimeout = TimeSpan.Zero)
		.Register(
		Component.For<ServiceInterceptor>(), // <-- Removed interface as service type for interceptor
		Component.For<IOperations>()
			.ImplementedBy<Operations>()
			.DependsOn(new { number = 42 })
			.AsWcfService(new DefaultServiceModel().AddEndpoints(
				WcfEndpoint.BoundTo(new NetTcpBinding { PortSharingEnabled = true })
					.At("net.tcp://localhost/Operations"))
			)
			.Interceptors<ServiceInterceptor>()
		))
	{
		var client = ChannelFactory<IOperations>.CreateChannel(
new NetTcpBinding { PortSharingEnabled = true }, new EndpointAddress("net.tcp://localhost/Operations"));
		Assert.AreEqual(42, client.GetValueFromConstructor());
	}
}

public class ServiceInterceptor : IInterceptor
{
	public void Intercept(IInvocation invocation)
	{
		invocation.Proceed(); // <-- Made sure the invocation proceeds
	}
}

@johnsky - If this has helped you are you OK to close the issue?

@fir3pho3nixx Thank you for the help! It was unexpected to me that Winsor does not resolve a component by service type as interceptor when ComponentRegistration.Interceptors<TService>() is called. =)


GroupBy Date Bug?

In JS/TS:
var dts = [new Date("1/1/19"), new Date("1/2/19"), new Date("1/1/19"), new Date("1/2/19"), new Date("1/3/19"), new Date("1/4/19")];
Enumerable.From(dts).GroupBy(e => e).Count(); // Get 6 expected 4

In C#:
var dts = new DateTime[] { new DateTime(2019, 1, 1), new DateTime(2019, 1, 1), new DateTime(2019, 1, 2), new DateTime(2019, 1, 2), new DateTime(2019, 1, 3), new DateTime(2019, 1, 4) };
dts.GroupBy(e => e).Count(); // Get 4 expected 4

I'd imagine there are reasons for this variation due to how each language compares dates, however I wanted to see how we can circumvent this to get the same result as C#?

I do not think this should be fixed by the library. Used in each respective language it produces expected results. If you need consistence between languages you should provide custom comparer.


VM instructions don't allow addressing >256 registers or >256 constants

Each instruction is 32-bits, and has an 8-bit opcode, and 3 8-bit fields (a, b, c).
Instructions use just one of these fields to index into the registers on the stack, and the local constants table, which limits the maximum addressable registers and constants.
One approach to extend this to 65536 registers/constants would be to add special Move opcodes that can move to/from registers >256, by combining two of the fields to make one 16-bit address. This is the approach that Dalvik does.
You'd need a "Move from high (16-bit) to low" and a "Move from low (16-bit) to high" instruction unfortunately. I guess you could also meet in the middle and add one that splits up the 3 fields into 2 12-bit register indices (a destination and source), which would allow moving between registers two registers (0-4095) in a single instruction, as an optimization.
Similarly, the Imm instruction uses only (a, b) -- you could make (b, c) represent a single 16-bit offset into the constants table.
I guess if you really needed to index many (>65536) registers, you could fall back to indirect addressing -- like, "Move from the register indexed at this register"

I've made some improvements in this area to unblock some sample code I've been looking at. 8e6d2ac7b21d72cc85c63c3a98c17be30ae6bf7d relieves some of the pressure by splitting symbols (like API and field names) out from the constants table and moving script references out of the Call instruction into the constant table, 0f72e8a65f4de4aa13b2f1aa121eaf6ebd247e08 fixes a bug that led to high register usage in some cases, and 64cbd695f99811e105ff0d4a6e6f4d2cbc281fef increases the field width for the Const instruction (recently renamed from Imm).
It seems unlikely so far that we will need >256 registers (and it looks like Lua has a similar maximum), but if that happens then wide Move opcode(s) plus some spill/fill logic in the register allocator is probably the next step there. There may also be ways to reduce register pressure with better codegen.
Another possibility for symbols, if we start hitting that limit again, might be to add support for naming them indirectly via a register, which could then be loaded with a wide Const instruction. Instructions using symbols would either need to be duplicated, or have an extra bit stolen from somewhere to indicate whether their operand(s) are symbols vs registers.


Support the same key at 2 places within the same segment group for BAPLIE

Hello @shogg
Thank you for creating this package. I use this one in my project to read data from BAPLIE file
I have a situation that I have the same key, "LOC", at 2 places within the same segment group, "SG2" for my BAPLIE specification
Unfortunately, I could not read the value using the duplicated key.
I debugged and found my case that there is no "path" for the "specNode" value that use for looking up value from h.decodeTree in "handler.go" file
I have tried many setups, but they didn't work
So, could you please help to verify my specification is correct or the package requires to add some logic to support this case
baplie-specification
var BAPLIE = spec.Msg("BAPLIE",
	spec.S("UNB", spec.C, 1),
	spec.S("UNH", spec.M, 1),
	spec.S("BGM", spec.M, 1),
	spec.S("DTM", spec.M, 1),
	spec.S("RFF", spec.C, 1),
	spec.S("NAD", spec.C, 9),
	spec.SG("SG1", spec.C, 1,
		spec.S("TDT", spec.M, 1),
		spec.S("LOC", spec.M, 9),
		spec.S("DTM", spec.M, 99),
		spec.S("RFF", spec.C, 1),
		spec.S("FTX", spec.C, 1),
	),
	spec.SG("SG2", spec.C, 9999,
		spec.S("LOC", spec.M, 1),
		spec.S("GID", spec.C, 1),
		spec.S("GDS", spec.C, 9),
		spec.S("FTX", spec.C, 9),
		spec.S("MEA", spec.M, 9),
		spec.S("DIM", spec.C, 9),
		spec.S("TMP", spec.C, 1),
		spec.S("RNG", spec.C, 1),
		spec.S("LOC", spec.C, 9),
		spec.S("RFF", spec.M, 9),
		spec.SG("SG3", spec.C, 9,
			spec.S("EQD", spec.M, 1),
			spec.S("EQA", spec.C, 9),
			spec.S("NAD", spec.C, 1),
		),
		spec.SG("SG4", spec.C, 9999,
			spec.S("DGS", spec.M, 1),
			spec.S("FTX", spec.C, 1),
		),
	),
	spec.S("UNT", spec.M, 1),
	spec.S("UNZ", spec.M, 1),
)

structs
type VesselDetails struct {
	TransportDet     string      `edifact:"SG1/TDT+20+065E+++COS:172:ZZZ+++VRIV3:103:ZZZ:?"`
	PlaceOfDeparture string      `edifact:"SG1/LOC+5+?"`
	NextPortOfCall   string      `edifact:"SG1/LOC+61+?"`
	Containers       []Container `edifact:"SG2"`
}

type Container struct {
	ISO             string `edifact:"SG2/SG3/EQD+CN+?+?"`
	ContainerName   string `edifact:"SG2/SG3/EQD+CN+?"`
	PortOfLoading   string `edifact:"SG2/LOC+9+?"`
	PortOfDischarge string `edifact:"SG2/LOC+11+?"`
	Stowage         string `edifact:"SG2/LOC+147+?"`
	WeightInKg      string `edifact:"SG2/MEA+WT++KGM:?"`
	SlotOperator    string `edifact:"SG2/SG3/NAD+CA+?"`
	IMDGCode        string `edifact:"SG2/SG4/DGS+IMD+?"`
	Description     string `edifact:"SG2/SG4/FTX+AAD+++?"`

function
func ParseEdifactFile(baplieMsg string) dtos.VesselDetails {
	document := strings.NewReader(baplieMsg)
	var vesselDetails dtos.VesselDetails
	if err := edifact.Unmarshal(document, &vesselDetails); err != nil {
		panic(err)
	}

	return VesselDetails
}

testing
var testMsgWith1Container = `
	UNB+UNOA:2+SEACOS+PUBLIC+210118:1038+31033627+++++UNKNOWN'
	UNH+SEACOSA3627+BAPLIE:D:95B:UN:SMDG22'
	BGM++R0C55E2211C418+9'
	DTM+137:2101181038:201'
	TDT+20+010E+++:172:20+++A8VP5:103:ZZZ:'
	LOC+5+GBLGP:139:6'
	LOC+61+DEHAM:139:6'
	DTM+133+test'
	LOC+147+0050106::5'
	MEA+VGM++KGM:24600'
	LOC+9+AAAA'
	LOC+11+BBBB'
	RFF+BM:1'
	EQD+CN+GRMU9201350+22T6+++5'
	UNT+18142+SEACOSA3627'
	UNZ+1+31033627'`

func TestParseEdifactFile(t *testing.T) {
	spec.Add("BAPLIE", BAPLIE)
	result := ParseEdifactFile(testMsgWith1Container)
	assert.Equal(t, "AAAA", result.Containers[0].PortOfLoading)
	assert.Equal(t, "BBBB", result.Containers[0].PortOfDischarge)
}

The above test will fail because "PortOfLoading" and "PortOfDischarge" are empty

I relaxed the lookup where to set a value in the target data structure. More than one segment with identical tag in a segment group works now.


Add Kokoro CI config

It's expected that the Java 9/10 builds fail. The fixes for those are in #204

Wow, you got lucky! This worked on the first try!

Ha, no, I force pushed over all my empty test commits :)


Changing Ivs resets the refines

If you select a refine and then change the units ivs in the damage calc the refine always resets to none
edit: also happens when merge level is changed

https://github.com/winsomniak/kagero-calc/pull/86 Will be fixed with this... I left a function where it shouldn't have been.

Fixed.


Update k8s-install-etcd-operator.rst

The docs may not up-to-date "Add cilium-operator;  Change etcd-xxx to cilium-etcd-xxx".

Signed-off-by: John Zheng<EMAIL_ADDRESS>
Please ensure your pull request adheres to the following guidelines:

[x] For first time contributors, read Submitting a pull request
[ ] All code is covered by unit and/or runtime tests where feasible.
[ ] All commits contain a well written commit description including a title,
description and a Fixes: #XXX line if the commit addresses a particular
GitHub issue.
[ ] All commits are signed off. See the section Developer’s Certificate of Origin
[ ] Provide a title or release-note blurb suitable for the release notes.
[ ] Thanks for contributing!

Fixes: #issue-number
<!-- Enter the release note text here if needed or remove this section! -->

Coverage increased (+0.01%) to 45.603% when pulling c6aa97b96e6d893844bf2a4c01d2e39a5992e97a on johnzheng1975:patch-1 into 36c6b78f2948669c46d042a707f06d7540f7d4a8 on cilium:master.

test-docs-please


Failure on load - Could not load file or assembly Community.VisualStudio.Toolkit

Describe the bug
When I open a solution, I get a prompt that RainbowBracesPackage did not load correctly.
To Reproduce
Steps to reproduce the behavior:

Open VS 2022 and choose Create a new project
Select 'Class Library' with C#. Next.
Keep defaults. Next.
Keep .NET 6.0. Create.
After a short time, screenshot appears.

Expected behavior
Package should load without errors.
Screenshots

Additional context
Rainbow Braces v1.0.37
ActivityLog.xml
<entry>     <record>1431</record>     <time>2022/09/29 15:28:50.087</time>     <type>Error</type>     <source>VisualStudio</source>     <description>CreateInstance failed for package [RainbowBracesPackage]Source: 'mscorlib' Description: Could not load file or assembly 'Community.VisualStudio.Toolkit, Version=17.0.430.0, Culture=neutral, PublicKeyToken=79441d341a79572c' or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException: Could not load file or assembly 'Community.VisualStudio.Toolkit, Version=17.0.430.0, Culture=neutral, PublicKeyToken=79441d341a79572c' or one of its dependencies. The system cannot find the file specified.
File name: 'Community.VisualStudio.Toolkit, Version=17.0.430.0, Culture=neutral, PublicKeyToken=79441d341a79572c'
   at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)
   at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
   at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)
   at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
</description>     <guid>{8EB8A1E7-610C-47EC-B867-A8B500937F99}</guid>
0x80004005 - E_FAIL
     <errorinfo></errorinfo>   </entry>

That looks like an installation issue. Is it fixed if you uninstall and reinstall the extension?

You are absolutely correct.  I think I did it to myself while trying to figure out some designer issues 😳.  Thanks for your help!


Feature/migrate to me/messenger profile

#194

Coverage decreased (-0.09%) to 93.954% when pulling b2120a515744dc74afbc9011229371dce8b65327 on feature/migrate-to-me/messenger_profile into 9edd0cfb85ffa1c1c0ee34b55544840d283159fa on develop.


fix default JIT value

The install process was misbehaving and attempts to initialize the jit column in the glpi_plugin_phpsaml_configs table entry with an empty string rather an integer.
This results in inability to update the plugin configuration and shows empty values every time an update is executed.
my setup: Glpi 10.0.3, phpsaml 1.2.1
fixes #101 #98 #86 (at least the main issue mention in either one of them)

the added commit 97c8021 should fix #100
tested and working in envrionment:

glpi==10.0.3, php==7.4, phpsaml==1.2.1  with keycloak==19.0.2


How to use this plugin with cordova/ionic 2

Hi, is there any example to use this with cordova/ionic 2?

Hi @Cempakers87, I have the same question 👍
A little research shows that the default FirechatUI depends heavily on jQuery (#29, #40, #46),
and jQuery conflicts with Angular which is integrated into Ionic.
So the tasks may be

Get rid of FirechatUI from Firechat
Build the Ionic version of FirechatUI
Connect the two above

From Firechat docs:

To get started with a new UI layer, create a directory for your new interface under the layouts directory, using the name of your new interface.
Next, create a primary JavaScript interface for your UI using the name firechat-ui.js, and add styles, layouts, and templates following the same convention as the default layout.
Lastly, begin hooking into the Firechat API, detailed below, using the exposed methods and defined bindings.


feat: add poll interval arg

add poll interval arg fix #229

#253 is not descrisive enough. I don' understand. Let's go with the current version now.


Download from COMIC page using XNAT

When loading this page:
http://mirc.uzleuven.be/comic/site/VESSEL12/Download
Show a list of files which are in an XNAT project.
When clicking any of the files, offer download of this file via XNAT. Preferably without being redirected to a new page, just offer a save dialog at first click

Wontfix


Downloading Trained Models

Is it possible to download trained models outside of the tool, perhaps just a web url?

Classifier: wget -O Classifier.pt https://getfile.dokpub.com/yandex/get/https://yadi.sk/d/rAhl2u7WeIUGYA
Segmentator: wget -O Segmentator.pt https://getfile.dokpub.com/yandex/get/https://yadi.sk/d/9m5e3C0q0HKbuw
RecurrentCNN: wget -O RecurrentCNN.pt https://getfile.dokpub.com/yandex/get/https://yadi.sk/d/1IrXRWDWhANqKw

Classifier: wget -O Classifier.pt https://getfile.dokpub.com/yandex/get/https://yadi.sk/d/rAhl2u7WeIUGYA
Segmentator: wget -O Segmentator.pt https://getfile.dokpub.com/yandex/get/https://yadi.sk/d/9m5e3C0q0HKbuw
RecurrentCNN: wget -O RecurrentCNN.pt https://getfile.dokpub.com/yandex/get/https://yadi.sk/d/1IrXRWDWhANqKw


use playwright sync api inside

Error using plugin
REASONING:  Using the web_interaction plugin and API calls will allow us to gather the necessary information to develop an effective marketing plan and engage with potential customers on social media.
PLAN:
-  Use 'start_browser' command to open a browser window for web interaction
-  Use 'go_to_website' command to navigate to the business's website and gather information on competitors' websites
-  Use 'make_api_call' command to gather data on the target market and competitors
-  Develop a comprehensive marketing plan that highlights the unique value proposition of the business and targets the ideal customer base
-  Use 'post_tweet' command to share marketing messages and engage with potential customers on social media
CRITICISM:  We need to ensure that the information we gather is accurate and relevant to the business's target market. We also need to be careful not to overwhelm potential customers with too many marketing messages.
NEXT ACTION:  COMMAND = start_browser ARGUMENTS = {}
  Enter 'y' to authorise command, 'y -N' to run N continuous commands, 's' to run self-feedback commands, 'n' to exit program, or enter feedback for ...
  Asking user via keyboard...
Input:y
-=-=-=-=-=-=-= COMMAND AUTHORISED BY USER -=-=-=-=-=-=-=
SYSTEM:  Command start_browser returned: Error: It looks like you are using Playwright Sync API inside the asyncio loop. Please use the Async API instead.

I have seen the same problem. AutoGPT has absolutely no idea how to use the Web-Interaction plugin. It appears the plugin, itself, has not provided sufficient instructions for its own use. It gets stuck in an infinite loop trying to start the Playwright Sync API.
My recommendation to the developer would be to thoroughly test these plugins before publishing them to the AutoGPT third-party repository. Otherwise, many people will be burning through their API budgets, especially if on continuous mode. This plugin spent $1 trying to boot itself up, and it never got anywhere. I am going to say it was probably never functional.

I recommend following the instructions, and runnning pip install playwright before actually trying to use the plugin.

I recommend following the instructions, and runnning pip install playwright before actually trying to use the plugin.

Playwright is installed by pip as part of the requirements.txt that is picked up by Docker. You have not answered the question.

It is functional. I've been using it, and so have tens of other people.

Could you please provide logs, or use python -m pip install playwright to install playwright into your current Python? It's a common issue.

I think you don't need to run pip install playwright but instead playwright install to get the correct browsers downloaded.
AutoGPT runs external python scripts inside a docker container, so all deps need to be placed in requirements.txt anyway


fix compile failure cause by missing jetty-util and servlet-api

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.liuke seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


vscode-extensions.ms-python.python fails to build

Steps To Reproduce
Steps to reproduce the behavior:

build vscode-extensions.ms-python.python

Build log
> nix build -L "github:NixOS/nixpkgs/cfb43ad7b941d9c3606fb35d91228da7ebddbfc5"\#vscode-extensions.ms-python.python
python3.10-jedi-language-server> Sourcing python-remove-tests-dir-hook
python3.10-jedi-language-server> Sourcing python-catch-conflicts-hook.sh
python3.10-jedi-language-server> Sourcing python-remove-bin-bytecode-hook.sh
python3.10-jedi-language-server> Sourcing pip-build-hook
python3.10-jedi-language-server> Using pipBuildPhase
python3.10-jedi-language-server> Using pipShellHook
python3.10-jedi-language-server> Sourcing pip-install-hook
python3.10-jedi-language-server> Using pipInstallPhase
python3.10-jedi-language-server> Sourcing python-imports-check-hook.sh
python3.10-jedi-language-server> Using pythonImportsCheckPhase
python3.10-jedi-language-server> Sourcing python-namespaces-hook
python3.10-jedi-language-server> Sourcing python-catch-conflicts-hook.sh
python3.10-jedi-language-server> Sourcing pytest-check-hook
python3.10-jedi-language-server> Using pytestCheckPhase
python3.10-jedi-language-server> unpacking sources
python3.10-jedi-language-server> unpacking source archive /nix/store/ahg859mn19r57xj2pkwm5pqqizrl9gbc-source
python3.10-jedi-language-server> source root is source
python3.10-jedi-language-server> setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/tests/test_data/symbol/symbol_test1.py
python3.10-jedi-language-server> patching sources
python3.10-jedi-language-server> configuring
python3.10-jedi-language-server> no configure script, doing nothing
python3.10-jedi-language-server> building
python3.10-jedi-language-server> Executing pipBuildPhase
python3.10-jedi-language-server> Creating a wheel...
python3.10-jedi-language-server> WARNING: The directory '/homeless-shelter/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
python3.10-jedi-language-server> Processing /build/source
python3.10-jedi-language-server>   Running command Preparing metadata (pyproject.toml)
python3.10-jedi-language-server>   Preparing metadata (pyproject.toml) ... done
python3.10-jedi-language-server> Building wheels for collected packages: jedi-language-server
python3.10-jedi-language-server>   Running command Building wheel for jedi-language-server (pyproject.toml)
python3.10-jedi-language-server>   Building wheel for jedi-language-server (pyproject.toml) ... done
python3.10-jedi-language-server>   Created wheel for jedi-language-server: filename=jedi_language_server-0.40.0-py3-none-any.whl size=31749 sha256=e094284e3b8db32ebd57bf457e46a034c2993a996832446dfa053582d0d7c882
python3.10-jedi-language-server>   Stored in directory: /build/pip-ephem-wheel-cache-ssh5_q5k/wheels/79/4b/9b/fc24941d75fdb959a71ee80195b2c89d6ae9389f9f0f80fb22
python3.10-jedi-language-server> Successfully built jedi-language-server
python3.10-jedi-language-server> Finished creating a wheel...
python3.10-jedi-language-server> /build/source/dist /build/source
python3.10-jedi-language-server> Unpacking to: unpacked/jedi_language_server-0.40.0...OK
python3.10-jedi-language-server> Repacking wheel as ./jedi_language_server-0.40.0-py3-none-any.whl...OK
python3.10-jedi-language-server> /build/source
python3.10-jedi-language-server> Finished executing pipBuildPhase
python3.10-jedi-language-server> installing
python3.10-jedi-language-server> Executing pipInstallPhase
python3.10-jedi-language-server> /build/source/dist /build/source
python3.10-jedi-language-server> Processing ./jedi_language_server-0.40.0-py3-none-any.whl
python3.10-jedi-language-server> Requirement already satisfied: docstring-to-markdown<1.0.0 in /nix/store/fwyrwkvx09jk966pyjb2mssjvwjn6r6b-python3.10-docstring-to-markdown-0.11/lib/python3.10/site-packages (from jedi-language-server==0.40.0) (0.11)
python3.10-jedi-language-server> Requirement already satisfied: pydantic<2.0.0,>=1.9.1 in /nix/store/mvgqj7vgfibn4ddj8734wv6vnnk3pfmc-python3.10-pydantic-1.10.4/lib/python3.10/site-packages (from jedi-language-server==0.40.0) (1.10.4)
python3.10-jedi-language-server> ERROR: Could not find a version that satisfies the requirement lsprotocol>=2022.0.0a9 (from jedi-language-server) (from versions: none)
python3.10-jedi-language-server> ERROR: No matching distribution found for lsprotocol>=2022.0.0a9
python3.10-jedi-language-server>
error: builder for '/nix/store/asankkrhcf7gd7ycp9i9mbfbp2zfs55p-python3.10-jedi-language-server-0.40.0.drv' failed with exit code 1;
       last 10 log lines:
       > Finished executing pipBuildPhase
       > installing
       > Executing pipInstallPhase
       > /build/source/dist /build/source
       > Processing ./jedi_language_server-0.40.0-py3-none-any.whl
       > Requirement already satisfied: docstring-to-markdown<1.0.0 in /nix/store/fwyrwkvx09jk966pyjb2mssjvwjn6r6b-python3.10-docstring-to-markdown-0.11/lib/python3.10/site-packages (from jedi-language-server==0.40.0) (0.11)
       > Requirement already satisfied: pydantic<2.0.0,>=1.9.1 in /nix/store/mvgqj7vgfibn4ddj8734wv6vnnk3pfmc-python3.10-pydantic-1.10.4/lib/python3.10/site-packages (from jedi-language-server==0.40.0) (1.10.4)
       > ERROR: Could not find a version that satisfies the requirement lsprotocol>=2022.0.0a9 (from jedi-language-server) (from versions: none)
       > ERROR: No matching distribution found for lsprotocol>=2022.0.0a9
       >
       For full logs, run 'nix log /nix/store/asankkrhcf7gd7ycp9i9mbfbp2zfs55p-python3.10-jedi-language-server-0.40.0.drv'.
error: 1 dependencies of derivation '/nix/store/gyaqib3j5k54m2y9fp3afgrszr7qbwfy-vscode-extension-ms-python-python-2022.19.13351014.drv' failed to build

Additional context
First noticed on cfb43ad7b941d9c3606fb35d91228da7ebddbfc5
Notify maintainers
@jraygauthier
@jfchevrette
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.89, NixOS, 23.05 (Stoat), 23.05.20230120.cfb43ad`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.12.0`
 - channels(root): `""`
 - nixpkgs: `/etc/nix/path/nixpkgs`

Likely a duplicate of https://github.com/NixOS/nixpkgs/issues/211215

Yes it is, good find.


chore(actions): run docs actions on Node 16 to conform with the project

SUMMARY

Some dependabot PRs were passing CI because they were running on node 18 instead of 16. These installs ought to fail on node 16, but weren't. This should make things fail when they ought to.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

I pushed a dummy commit touching the docs/ folder to trigger that CI step


cleanup: logging message typo fix

Signed-off-by: Guangming Wang<EMAIL_ADDRESS>Please provide a description for what this PR is for.
And to help us figure out who should review this PR, please
put an X in all the areas that this PR affects.
[x] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

Hi @ethan-daocloud. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.

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.

@googlebot I signed it!

/ok-to-test

@ethan-daocloud: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

integ-new-install-k8s-presubmit-tests-master
f773226f73096f45bd826a9913c7708e535ee075
link
/test integ-new-install-k8s-presubmit-tests-master

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.

/retest

@ethan-daocloud: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

integ-new-install-k8s-presubmit-tests-master
f773226f73096f45bd826a9913c7708e535ee075
link
/test integ-new-install-k8s-presubmit-tests-master

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.

/retest

@ethan-daocloud: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

integ-new-install-k8s-presubmit-tests-master
f773226f73096f45bd826a9913c7708e535ee075
link
/test integ-new-install-k8s-presubmit-tests-master

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.

/retest


Embed QT Widgets into Flutter as PlatformView

Hi,team:
I am thinking about how can we embed QT Widgets into flutter as a PlatformView.

Hi @imiskolee
This issue doesn't seem to describe a bug or a feature request. Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you


Parallel forced alignment

This PR solves "ERROR [+7031] during forced_alignment.py" as dicussed in #293.
List of changes:

Alignment in parallel on multiple chunks of data (checks the "DNN_NUM_PARALLEL" environment variable and uses 8 by default). Speeds up alignment on multi-core machines but also helps with numerical issues on larger datasets (seems to occur already with e.g. 4k sentences)
Per-speaker normalisation fix (creates new "normaliser" per speaker instead of once)
Outputs "logprob.txt" containing sentence likelihoods
"work_dir" and "HTKDIR" can also be passed as commandline arguments instead of sed replacement, compatibility to sed replacement was retained though
"-a" command line parameters enables multi-speaker normalization

I've tested the latest script in my environment with a 4000 sentence corpus, please report if this breaks any example scripts, which could happen for some sed reasons (pun intended).

Hello @m-toman,
I'm getting the follow error, when trying to run script ./02_prepare_labels, with your forced_alignment.py file.
forced-alignment using HTK tools...
Traceback (most recent call last):
  File "/home/tts/merlin/misc/scripts/alignment/state_align/forced_alignment.py", line 414, in <module>
    work_real_dir = sys.argv[1]
IndexError: list index out of range
ls: cannot access 'database/labels/label_state_align': No such file or directory
Force-alignment unsucessful!! Please check /home/tts/merlin/misc/scripts/alignment/state_align/forced_alignment.py
Copying labels to duration and acoustic data directories...
cp: cannot stat 'database/labels/label_state_align': No such file or directory
cp: cannot stat 'database/labels/label_state_align': No such file or directory
ls: cannot access 'database/labels/label_state_align': No such file or directory
ls: cannot access 'database/labels/label_state_align': No such file or directory
done...!

Any thoughts?
Thanks in advance,

@m-toman must have done it so well that he also replaces the ugly sed-based arguments replacement by proper command line arguments :)
@martedva: if you can't wait for his update, just have a look at the lines right below "if name == 'main':" in forced_alignment.py and pass the directories as argument in scripts/run_state_aligner.sh

Hello @gillesdegottex and @m-toman!
It seems that the bug for me was in line 414:
    if (len(sys.argv)) >= 1:
This line deemed it impossible to run the script without giving it a command-line argument. I changed both line 414 and 419 to:
 414   if len(sys.argv) > 1:
 418   if len(sys.argv) > 2:

You are right, I forgot that python holds the script name in argv[0] when I added then len() ifs.
Would be nice to replace it with getopts (but you know, interspeech deadline and all that ;)).
Thanks for the fix.
I tried to name the hacky temporary variables below that so that they are not hit by the sed replace but the script still works without parameters.
Regarding the speaker adaptation script, I think this should work with the new version:
https://github.com/CSTR-Edinburgh/merlin/blob/master/egs/speaker_adaptation/s1/scripts/run_state_aligner.sh#L47-L51

Hey @m-toman!
Thanks, I will try the run_state_align fix. However, I run into the following error message, when I try to run the run_aligner script in the merlin/misc/scripts/alignment/state_align folder. It looks as if it is right after the feature normalisation, when I reach the "--making proto" step.
---feature_normalisation
Fri Mar 23 19:37:05 2018
---making proto
  ERROR [+2019]  HCompV: Training data file name expected
 FATAL ERROR - Terminating program /home/tts/merlin/tools/bin/htk/HCompV
Traceback (most recent call last):
  File "forced_alignment.py", line 430, in <module>
    aligner.prepare_training(file_id_list_name, wav_dir, lab_dir, work_real_dir, multiple_speaker)
  File "forced_alignment.py", line 262, in prepare_training
    self._make_proto()
  File "forced_alignment.py", line 61, in _make_proto
    '-M', self.cur_dir, self.proto])
  File "/home/tts/anaconda2/lib/python2.7/subprocess.py", line 186, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/tts/merlin/tools/bin/htk/HCompV', '-f', '0.01', '-C', '/home/tts/merlin/misc/scripts/alignment/state_align/config/cfg', '-S', '/home/tts/merlin/misc/scripts/alignment/state_align/config/train.scp', '-M', '/home/tts/merlin/misc/scripts/alignment/state_align/model/hmm0', '/home/tts/merlin/misc/scripts/alignment/state_align/config/proto']' returned non-zero exit status 227
tts@tts:~/merlin/misc/scripts/alignment/state_align$ ./setup.sh
Path to Merlin and other tools configured in config.cfg
setup done...!

Could you output the parameters for HCompV before the call here https://github.com/m-toman/merlin/blob/master/misc/scripts/alignment/state_align/forced_alignment.py
and see if the paths look correct and actually point to stuff?
Thanks, I'll also re-run it to see if I can reproduce it.

Hello @m-toman!
How do i find the parameters for HCompV?
I have run the prepare_labels_from_text.sh script, and the next script is now forced_alignment.
Best Regards,

@martedva I just meant something simple as:
       ## make vFloors         print ("HCompV: " + str(self.cfg) + " " + str(self.train_scp) + " " + str(self.cur_dir))         check_call([self.HCompV, '-f', F, '-C', self.cfg,                     '-S', self.train_scp,                     '-M', self.cur_dir, self.proto])
the error above sounds to me as if the file self.train_scp points to is not a list of files as expected.
Then either the path constructed in forced_alignment is wrong because I the sed-replacing in the outer scripts does not cooperate with my version, or there's some other issue.

Hello @m-toman!
Sorry for the late response. I have been trying to fix the issues. It seems that it is indeed the sed replacements, that was culprit. I used a fixed path instead and fixed it.
Thanks,

@martedva great, so is there something I can do in this PR or was that a fix in the outer scripts?

sorry to bother in 2019, I just come across the same issue with HcomPv and I can't understand the comments. what's sed replacements mean?  which fixed path did you use to fix the issue and how to modify this path?
I'm just a undergraduate and new to merlin，I'm sorry if these questions are obviously stupid

I can't find this part of code in forced_alignment.py , should I just add it ?(add to where?)
    work_dir = "/home/tts/merlin/misc/scripts/alignment/state_align"
    work_real_dir = work_dir
if len(sys.argv) > 2:
    htk_dir = sys.argv[2]
else:
    #this HTK path
    HTKDIR = "/home/tts/merlin/tools/bin/htk"
    htk_dir = HTKDIR
#this wav path
wav_dir = "/home/tts/merlin/egs/speaker_adaptation/s1/database/wav"


[api-minor] Remove the forceClamped-functionality in the Streams (issue 14849)

As it turns out, most of the code-paths in the PDFImage-class won't actually pass the TypedArray (containing the image-data) to the ColorSpace-code. Hence we generally don't need to force the image-data to be a Uint8ClampedArray, and can just as well directly use a Uint8Array instead.
In the following cases we're returning the data without any ColorSpace-parsing, and the exact TypedArray used shouldn't matter:

https://github.com/mozilla/pdf.js/blob/b72a4483276d65bef32cff269eb40923c1363f2d/src/core/image.js#L714
https://github.com/mozilla/pdf.js/blob/b72a4483276d65bef32cff269eb40923c1363f2d/src/core/image.js#L751

In the following cases the image-data is only used internally, and again the exact TypedArray used shouldn't matter:

https://github.com/mozilla/pdf.js/blob/b72a4483276d65bef32cff269eb40923c1363f2d/src/core/image.js#L762 with the actual image-data being defined (as Uint8ClampedArray) further below
https://github.com/mozilla/pdf.js/blob/b72a4483276d65bef32cff269eb40923c1363f2d/src/core/image.js#L837

Please note: This is tagged api-minor because it's API-observable, given that some image/mask-data will now be returned as Uint8Array rather than using Uint8ClampedArray unconditionally. However, that seems like a small price to pay to (slightly) reduce memory usage during image-conversion.

/botio test

/botio test


PolySynth on iPhone, Chrome/Safari causing clipping/popping noises

Hello,
I am trying to use PolySynth on iPhone to play a chord. Here is a simple version of my code. Whenever I have more than 2 or three effects on the chain I start getting clipping/popping noises. It's similar to this issue but I am not using Freeverb: https://github.com/Tonejs/Tone.js/issues/558
<script<EMAIL_ADDRESS><div>
<button>Play Chain 0</button>
<button>Play Chain 1</button>
<button>Play Chain 2</button>
<button>Play Chain 3</button>
<button>Play Chain 4</button>
<button>Play Chain 5</button>
<button>Play Chain 6</button>
<button>Play Chain 7</button>
<button>Play Chain 8</button>
</div>

document.querySelectorAll('button').forEach((button, index) => {
    let initialization;
    const playSound = () => {
        if (!initialization) {
            initialization = new Promise(resolve => {
                const doNodeCreation = () => {
                     window.sound = new Tone.PolySynth(3, Tone.Synth, {
                        'oscillator': {
                            'type': "sawtooth"
                        },
                        'envelope': {
                            'attack': 0.5,
                            'decay': 0.0,
                            'sustain': 1.0,
                            'release': 1.0
                        },
                        'volume': -24
                    });
                    const filter = new Tone.Filter();
                    const chorus = new Tone.Chorus();
                    const jcReverb = new Tone.JCReverb();
                    const reverb = new Tone.Reverb();

                    window.chains = [
                        () => sound.chain(filter, Tone.Master), // no clipping,
                        () => sound.chain(jcReverb, Tone.Master), // some clipping, very rare,
                        () => sound.chain(chorus, Tone.Master), // causes clipping
                        () => sound.chain(reverb, Tone.Master), // causes clipping
                        () => sound.chain(filter, chorus, Tone.Master), // causes clipping
                        () => sound.chain(filter, jcReverb, Tone.Master), // no clipping
                        () => sound.chain(filter, reverb, Tone.Master), // no clipping
                        () => sound.chain(filter, chorus, jcReverb, Tone.Master), // causes clipping, even with one voice
                        () => sound.chain(filter, chorus, reverb, Tone.Master), // causes clipping, even with one voice
                    ];
                    reverb.generate().then(resolve);
                };
                Tone.start().then(doNodeCreation);
            });;
        }
        initialization.then(() => {
            const connect = window.chains[index];
            window.sound.disconnect();
            connect();
            window.sound.triggerAttackRelease(["C4", "E4", "A4"], "1n");
        });
    };
    button.addEventListener('click', playSound);
    button.addEventListener('touchdown', playSound);
});

If I use 1 voice instead of 3 then there is no clipping in most of the chains.
Is there something I am doing wrong? or expected behavior for iPhone? or a bug perhaps?
Tone.js: 13.8.25
iPhone Xs, OS 13.3.1
Browser: Google Chrome 80.0.3987.95
Browser: Safari 13.3.1
Thank you so much for making this wonderful library, I am really enjoying it other than this issue.
https://jsfiddle.net/s7Lco41v/5/

Freeverb and JCReverb both use arrays of CombFilters which seems to be what Safari is having an issue with, so i'd say this is probably the same issue as #558


badge info removed

[x] I have followed (at least) the PR section of the contributing guide. and done the changes for PR

@hbjORbj you can review this PR


Fixing the work directory path

The work directory path was mistakenly pointing to the token file. It is actually supposed to be pointing to the parent folder.

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

#label:"aq-pr-triaged"

Hi @ksurjan -- Since you're the listed author and this is in the public repo, you'll have to sign off yourself in order to get this merged. Thank you and sorry for the extra step...

#sign-off

@ksurjan: I'm sorry - only the author of this article, @ManikaDhiman, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

@ManikaDhiman you may need to approve the change. Thanks.

Sorry about that, I guess Manika is the listed author!

#sign-off

#sign-off


[Question] Is the web version secure?

I checked some opened and closed issues and seems this question wasn't asked before. It seems related with #111 but the solutions showed there are not sufficient:
The old problem with web applications with handle crypto is that browsers check signatures only from the server, not from the code (more info). Trying to implement some JavaScript based verification, like MEGA did, don't solve the problem as can be tampered if the servers which host it get attacked.
I imagined some solutions for this problem like applying a sign verification script, allowing users to read the source code of this verification script, audit it and/or verify this authenticity, also disabling auto-updates on this script (implemented here, but discontinued) or on the whole application (implemented here). Those examples were too simplistic and because that I think those don't apply well to real applications like this one.
I don't want you to create other Cryptocat, which started as a web application then turned into a browser extension (IIRC) following the solutions from the linked article. I think is good to have a web version, even with those risks. Maybe a warning like the one from TweetNaCl could alert users about the limitations of the web version (it is subject to attacks) and the application itself (if it was reviewed or not).

So, you are speaking about the risk of servers (particularly github pages) being attacked?
First, this risk is very low (however the possibility is not zero).
As a solution, you offer sort of code signing for web. Well, this made be done in 2 ways:

Some user-script which will check the app hash after updating - but I think it must be a side-script, not mine. Do you know any existing solutions?
Check on appCache update: now the app is just downloading new version and installs it to cache, until manifest is updated; in theory, we can check if the new version is okay and only after it use it, otherwise continue with old one. This has an advantage that the user don't have to install anything, but of course this will work only on updates, not for new users;
Pinging of with periodic checks that the content is original - in cobmination with 2. it will give also more secure versions for new users.

Closing as the question seems to be answered. I've put down the idea of webapp self-checking to Random Ideas page.


Core | Container: Moving svgDefs update to updateContainer

Fixes https://github.com/f5/unovis/issues/440
Moving svgDefs update to updateContainer from _render, because prevConfig can be reassigned multiple times before render happens leading to config and prevConfig to be the same

@rokotyan I can merge this right?

@lee00678 Yes, we've already released 1.4.5 with it


[feature] provide ValidatingAdmission for CRD

Perform basic verification on CRD to ensure that key fields are filled in correctly

close this issue now, will give a new proposal.


stacktrace when using from the command line

It is relatively rare, but is irritating when segmenting a large corpus:
java.lang.NullPointerException
at net.loomchild.segment.srx.SrxTextIterator.next(SrxTextIterator.java:216)
at net.loomchild.segment.ui.console.Segment.performSegment(Segment.java:604)
at net.loomchild.segment.ui.console.Segment.createAndSegment(Segment.java:493)
at net.loomchild.segment.ui.console.Segment.segment(Segment.java:193)
at net.loomchild.segment.ui.console.Segment.run(Segment.java:115)
at net.loomchild.segment.ui.console.Segment.main(Segment.java:88)
These are the 'lines of text' that cause a crash:
problems.zip

Thank you very much for bug report, I will look into this ASAP.

The issue is not in the .srx; it does this with the built-in srx as well. It does so with both Dutch and English.

Hm, I can't reproduce the issue.
Could you share how do you exactly reproduce the issue? When I run below script for each file, I don't have any errors:
bin/segment --buffer-length=1000000 -i <file-name>
What's weird is that I don't see how I can get an NullPointerException in line 216 of SrxTextIterator.java:
start = 0;
That suggests that you are using old or modified version of Segment. Could you please share the version you are using or the source code?

I did not add the buffer=length parameter. Why should I?

I added it since I had 'Buffer too short' error. The buffer is not dynamic, it's fixed. By default it's just 64K and it needs to be as long as the longest segment. In the texts that you shared there was no separator, so the buffer was not large enough.
In latest unreleased version I improved the error message to make it more clear, since another user was a bit confused. I will increase the default buffer size and make a release.

Closing the issue - I released a new version with clearer error message and increased default buffer size.


receiveVerificationSMS is giving me  undefined is not a function

receiveVerificationSMS is giving me  undefined is not a function.  I'm running on Hermes engine, hope that is fine. I just followed your same example

Thanks for identifying this. What react native version are you on?

hi @jgkiano  I'm currently using 0.70.6

@jgkiano thank you , hope you will fix it asap

Im experiencing the same compatibility issues with newer versions of React Native. Will work on a fix for this. Till then I'll leave this issue open.

hi jgkiano, have you fixed the issue?

Hello @jgkiano have you got the chance to work on the fix ?


python38Packages.cftime: 1.5.0 -> 1.5.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python38Packages.cftime is: "Time-handling functionality from netcdf4-python"
meta.homepage for python38Packages.cftime is: ""
meta.changelog for python38Packages.cftime is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

Warning: a test defined in passthru.tests did not pass

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 1.5.1 with grep in /nix/store/lkb8jd7lv68by98pl4m91crjvak64zzn-python3.8-cftime-1.5.1

found 1.5.1 in filename of file in /nix/store/lkb8jd7lv68by98pl4m91crjvak64zzn-python3.8-cftime-1.5.1

directory tree listing: https://gist.github.com/ee4cd2c92681393c5bdb3a23a439a0a6

du listing: https://gist.github.com/9b1f45d67f525a7bc98e0bddc10766b4

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

94 total rebuild path(s)

24 package rebuild(s)

24 x86_64-linux rebuild(s)
24 i686-linux rebuild(s)
24 x86_64-darwin rebuild(s)
22 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
python38Packages.arviz
python38Packages.boltztrap2
python38Packages.cftime
python38Packages.datashader
python38Packages.h5netcdf
python38Packages.meshio
python38Packages.netcdf4
python38Packages.pygmt
python38Packages.pymc3
python38Packages.sfepy
python38Packages.sunpy
python38Packages.wrf-python
python39Packages.arviz
python39Packages.boltztrap2
python39Packages.cftime
python39Packages.datashader
python39Packages.h5netcdf
python39Packages.meshio
python39Packages.netcdf4
python39Packages.pygmt
python39Packages.pymc3
python39Packages.sfepy
python39Packages.sunpy
python39Packages.wrf-python

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/lkb8jd7lv68by98pl4m91crjvak64zzn-python3.8-cftime-1.5.1 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

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

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/lkb8jd7lv68by98pl4m91crjvak64zzn-python3.8-cftime-1.5.1
ls -la /nix/store/lkb8jd7lv68by98pl4m91crjvak64zzn-python3.8-cftime-1.5.1/bin

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

4 packages marked as broken and skipped:

python38Packages.arviz
python38Packages.pymc3
python39Packages.arviz
python39Packages.pymc3

20 packages built:

python38Packages.boltztrap2
python38Packages.cftime
python38Packages.datashader
python38Packages.h5netcdf
python38Packages.meshio
python38Packages.netcdf4
python38Packages.pygmt
python38Packages.sfepy
python38Packages.sunpy
python38Packages.wrf-python
python39Packages.boltztrap2
python39Packages.cftime
python39Packages.datashader
python39Packages.h5netcdf
python39Packages.meshio
python39Packages.netcdf4
python39Packages.pygmt
python39Packages.sfepy
python39Packages.sunpy
python39Packages.wrf-python

Maintainer pings

Result of nixpkgs-review pr 139372 at 7d4a548a run on aarch64-linux 1

2 packages marked as broken and skipped:

python38Packages.pygmt
python39Packages.pygmt

4 packages skipped due to time constraints:

python38Packages.arviz
python38Packages.pymc3
python39Packages.arviz
python39Packages.pymc3

16 packages built successfully:

python38Packages.boltztrap2
python38Packages.cftime
python38Packages.h5netcdf
python38Packages.meshio
python38Packages.netcdf4
python38Packages.sfepy
python38Packages.sunpy
python38Packages.wrf-python
python39Packages.boltztrap2
python39Packages.cftime
python39Packages.h5netcdf
python39Packages.meshio
python39Packages.netcdf4
python39Packages.sfepy
python39Packages.sunpy
python39Packages.wrf-python

4 suggestions:

warning: python-include-tests
Consider adding a checkPhase for tests, or if not feasible, pythonImportsCheck.
Near pkgs/development/python-modules/cftime/default.nix:39:0:
   |
39 |     description = "Time-handling functionality from netcdf4-python";
   | ^

warning: unused-argument
Unused argument: python.
Near pkgs/development/python-modules/cftime/default.nix:8:3:
  |
8 | , python
  |   ^

warning: maintainers-missing
Package does not have a maintainer. Consider adding yourself?
Near pkgs/development/python-modules/cftime/default.nix:38:3:
   |
38 |   meta = {
   |   ^

warning: license-missing
Package is missing a license.
Near pkgs/development/python-modules/cftime/default.nix:38:3:
   |
38 |   meta = {
   |   ^

1.5.1 already in master, see https://github.com/NixOS/nixpkgs/commit/a3082f83ed5985150fd49b1365fe5b3cd1b34e09


[CAMEL-21235] Cannot run k8s app in namespace other than default

https://issues.apache.org/jira/browse/CAMEL-21235

Is this already fixed on main branch


Porcupine Issue: react native IOS archive failure

Expected behaviour
Archive to execute without error
Actual behaviour
I've imported picovoice etc and have the app running in the emulator and via usb on IOS, however when I do an Archive to send the app to testflight, I get the following error:
ld: framework not found PvPorcupine  clang: error: linker command failed with exit code 1 (use -v to see invocation)
Steps to reproduce the behaviour
Follow steps for react native integration, then attemp to archive the application
(Include enough details so that the issue can be reproduced independently.)

Are you sure you are on the latest commit?

@johnbowdenatfacet  I am closing this due to inactivity. If you still experience the issue please re-open

@kenarsa @laves from package json:
"@picovoice/picovoice-react-native": "^1.1.5",
"@picovoice/porcupine-react-native": "^1.9.5",
"@picovoice/react-native-voice-processor": "^1.0.3",
"@picovoice/rhino-react-native": "^1.6.5",

@kenarsa @laves Apologies for the delay in responding... I've subscribed to this as well now and will endeavor to followup if you have further queries, @johnbowdenatfacet is on leave at the moment.

@eoghanatfacet we can't reproduce this issue on our side. Can you provide a private repo with the issue isolated?

Thanks @laves just waiting on John to return from leave to re-confirm and action this

I was able to get the archive working by not embedding and signing the PvProcupine and PvRhino frameworks.  Though in the example repo these were set to embed and sign.  Will test that voice commands still work.


Framework runs out of memory when run in a docker container via marathon

I've deployed the kafka framework on Mesos 0.23, using Marathon 0.9 and docker 1.7.1 on CentOS 7. Initially I gave the container 256MB of memory (based on this).
On a cluster with ~100 slaves, I observed it quickly ran out of memory and the container was killed. Increasing the memory to 2GB, helps (after 30minutes docker stats reports that the container is using ~750MB), but I'm curious if there is some way to better gauge how much memory it might need based on the number of slaves, or perhaps there's a memory leak.

There are a bunch of more reasonable defaults for not just simple local testing that can be updated in the README and some of the other configurations and settings, agreed.

Perhaps, this is highly dependent on the broker's usage scenario. If deploying on prod, you, probably, should consult kafka-related docs, stating about recommended heap settings.


Add parallelism to MylistAssistant

Ref: https://github.com/PONzu-0529/cron-contRef:

I will stop development.
Merge to Develop.


Does not show the correct value for Last Year and Life Time in Telephone

Hello
Thank you for this plugin.
In Log Dispaly Homebridge  show good value: all,   but in Homekit when I have more 10000 (LUX = KW) I see in Homekit only 10000, not more. In my case, it concerns the Last Year and Life Time where I have:
lifeTimeData: { energy: 10450523, revenue: 3768.1284 },
lastYearData: { energy: 10448918 }

Unfortunately, this is a limitation in the way that Apple's homeKit represents a LUX value over 10,000 -- It just rounds the value up to the next thousand.  After 100,000 it rounds to just the hundred thousands (so 138,432 = 100,000).


Servo calibration tool

It can be a very complicated process to assemble and calibrate the robot.
It would be nice to have a tool that can help calibrate the servos to ensure the correct positions of each actuator

I want to be able to control each servo in realtime. I want to control:

Resolution
Frequency
Lower PWN limit
Upper PWM limit
Whether a servo is enabled
Whether a servos direction is inverted

Further i want to find the actual PWN to degree ratio, which make the real robot movement more precise


v4: TouchableOpacity styles not working

Nativewind v4.0.8, Expo 49
In 4.0.8 you cannot style TouchableOpacity even though it seems to be configured here: https://github.com/marklawlor/nativewind/blob/35b47ec552c730758f446708f824f5ed6e0516e6/packages/react-native-css-interop/src/core-components.ts#L109
Here's an example repo: https://github.com/robcaldecott/nativewind-4-issues
You can workaround this using cssInterop:
cssInterop(TouchableOpacity, { className: { target: "style" } });

Here's the full code:
import * as React from "react";
import { Text, TouchableOpacity, View } from "react-native";
import { cssInterop } from "nativewind";
import "./globals.css";

// Uncomment to fix the TouchableOpacity issue
// cssInterop(TouchableOpacity, { className: { target: "style" } });

export default function App() {
  return (
    <View className="flex-1 bg-white items-center justify-center gap-8">
      <TouchableOpacity className="p-4 bg-yellow-300">
        <Text>TouchableOpacity</Text>
      </TouchableOpacity>
    </View>
  );
}

Without cssInterop:

With cssInterop:

Note that uncommenting out cssInterop makes it work and if you comment it out again it stays working until you perform a full app refresh, which is a little confusing.
Also, what are the chances of having out-of-the-box className support for some Expo components (expo-image for example), the popular SafeAreaView from react-native-safe-area-context, etc.? I am using cssInterop for these as well.
And as some general guidance where do you recommend we use cssInterop in our code? Slap them all in a file and import in our main App.tsx? Thanks!

4.0.9 contains fixes for TouchableOpacity and other native components (e.g. SafeAreaView)
Note that TouchableOpacity is deprecated by react-native. You can get the similar behaviour with <View className="active:opacity-20 transition" />.
I've had a late minute realisation on how to improve cssInterop which I'll be working on this week and I'll be updating the docs about its usage. Ideally the average user should never have to use cssInterop


Replace hand-typed js<->record converters with BS generated ones

There are multiple functions which convert between JS objects and records in the codebase. Thanks to the new feature they can be removed.

I meant objects rather than the variants.

sorry, misreading 😉 anyway, I still want to do that :)

I am going to take care of this.
I can easily migrate polymorphic variants. But for normal variant, bs can't help as it's converting to int.
I am still new to reason so here is a noob question: should we use polymorphic variants everywhere?

IMO it's best to use normal variants everywhere (unless there's a good reason to have row polymorphism). Normal variants provide better error messages.

So I understand we should better stop using polymorphic variants & generated bs strings helpers (so we should close this issue?)

I am curious to understand why in the first place polymorphic variants where used (a lot) :)

Next version should be more than ok about this issue


Laravel 11.x Compatibility

This is an automated pull request from Shift to update your package code and dependencies to be compatible with Laravel 11.x.
Before merging, you need to:

Checkout the l11-compatibility branch
Review all comments for additional changes
Thoroughly test your package

If you do find an issue, please report it by commenting on this PR to help improve future automation.

:warning: The latest version of Laravel has a dependency for phpunit/phpunit of ^10.5. If you would like to also upgrade your tests, you may run the PHPUnit 10 Shift for free.

:alembic: Using this package? If you would like to help test these changes or believe them to be compatible, you may update your project to reference this branch.
To do so, temporarily add Shift's fork to the repositories property of your composer.json:
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/laravel-shift/curl-converter.git"
        }
    ]
}

Then update your dependency constraint to reference this branch:
{
    "require": {
        "laravel-shift/curl-converter": "dev-l11-compatibility",
    }
}

Finally, run: composer update


std.log output goes into the debug console instead of the REPL

This might be expected behavior? Just checking.
Reproduce
log(1)

Prints to REPL
log := std.log
log(1)

Prints to console and not the REPL

It's... expected behavior, haha. It's a weird quirk of the fact that the REPL and the rest of the app runs in the same top level environment/scope, so in the REPL different definitions of log and out are used here, but the global std.log is not overridden because that would be mutating this big global variable instead of adding a local variable to this local scope.
It's probably possible to swap out std.log during the REPL execution and swap it back or something, but i haven't found it too annoying or problematic yet so I haven't fixed it.

Going to close for now as a wontfix for reasons above :) but might rethink this later. I'm not super set on it.


Basic connection causes error

This code was obtained from https://www.w3schools.com/nodejs/nodejs_mysql.asp, basic mysql module tutorial. Tried using 3 different servers, every time I receive this error:

var mysql = require('mysql');

var con = mysql.createConnection({
  host: "localhost",
  user: "yourusername",
  password: "yourpassword"
});

con.connect(function(err) {
  if (err) throw err;
  console.log("Connected!");
});

@dougwilson Wow, idk what was that but... It worked without any code changes...
Anyway, thanks for assistance!

No problem. Very strange. If there is some weird issue let us know. You mentioned electron so not sure as I have never used it so maybe there could be something going on there that we could improve.


Updated LICENSE and Repeating tasks as per Issue 460

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

Task list

[ x] This PR changes documentation
[ ] This PR changes DscResource.Template

[ ] Updated documentation as necessary in the TEMPLATE_README.md.
[ ] An descriptive entry has been added to the change log
in the TEMPLATE_README.md.

[ ] This PR changes Tests.Template

[ ] The template version number has been increased appropriately.
[ ] An descriptive entry has been added to the CHANGELOG.md under the
Tests.Template folder.

This change is

@johlju @PlagueHO please check the wording. I also made a typo in my commit message. Sorry about that.
Thanks, Tim.

Hi @johlju, just saw the Stale Bot hit this one. Tagging you to have a look when you get a chance. Thanks, Tim.


jq invocations need -e

to set the exit code in case path is incorrect

from jq's manual:

Sets the exit status of jq to 0 if the last output values was neither false nor null, 1 if the last output value was either false or null, or 4 if no valid result was ever produced. Normally jq exits with 2 if there was any usage problem or system error, 3 if there was a jq program compile error, or 0 if the jq program ran.

This makes it more complicated when all we need is "if path doesn't exist, exit 1".


Update package.json

Bump to beta 2 :D

Codecov Report

Merging #63 (5c04da6) into develop (96cde5a) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           develop     #63   +/-   ##
=======================================
  Coverage     0.00%   0.00%
=======================================
  Files            1       1
  Lines           39      39
  Branches         1       1
=======================================
  Misses          39      39

Continue to review full report at Codecov.

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


Zend_Mail SMTP Oauth2 / XOauth2

Google has stopped providing "Less secure app access" to third party applications. This means that from Zend_Mail we will no longer be able to send emails using gmail.
Does anyone have any idea how to get Zend_Mail working again with Oauth2 or XOauth2?

@icyz i have package help Zend_Mail working again with Oauth2 here https://packagist.org/packages/hungtrinh/zend-mail-oauth2

Thanks @hungtrinh, I will try it as soon as possible.
I think it's Oauth2 could be integrated in zf1-future instead use external package :-)

After install:
Fatal error: Cannot declare class Zend_Cache, because the name is already in use in /var/www/zerogestionale/trunk/zero/library/Zend/Cache.php on line 28
I will investigate

@icyz oops, look like you integrate hungtrinh/zend-mail-oauth2 with zend framework 1 full framework (library/Zend existed) => i guess that conflict with requires package zf1s/zend-mail: ^1.14 in this case may be i need move zf1s/zend-mail: ^1.14 into composer suggest section  instead of requires section

Anyone to own this and create PR, pls?

@hungtrinh if someone has initiative, I'm not against it :)

@hungtrinh btw, you are right, that we have to be very cautious here, as some changes and new function can potentially override already inherited methods. Therefore I'll make as clear as possible, that some new functionality is comping. Thanks for bringing this into the discussion.


A size-0 arrays should not be reshaped into a size-1 array

It seems the reshape() function missed a size check somewhere?
>>> import cupy as cp
>>> a = cp.zeros((0,))
>>> a.size
0
>>> a = a.reshape(())
>>> a.size
1
>>> a.shape
()

NumPy behaves as expected:
>>> import numpy as np
>>> a = np.zeros((0,))
>>> a.size
0
>>> a = a.reshape(())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: cannot reshape array of size 0 into shape ()

Thanks, it should be fixed...
>>> import cupy as cp
>>> a = cp.zeros((0,))
>>> a.get()
array([], dtype=float64)
>>> a.reshape(()).get()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "cupy/core/core.pyx", line 1367, in cupy.core.core.ndarray.get
    cpdef get(self, stream=None, order='C', out=None):
  File "cupy/core/core.pyx", line 1434, in cupy.core.core.ndarray.get
    with self.device:
  File "cupy/core/core.pyx", line 1440, in cupy.core.core.ndarray.get
    a_gpu.data.copy_to_host(ptr, a_gpu.nbytes)
  File "cupy/cuda/memory.pyx", line 444, in cupy.cuda.memory.MemoryPointer.copy_to_host
    runtime.memcpy(mem.value, self.ptr, size,
  File "cupy/cuda/runtime.pyx", line 378, in cupy.cuda.runtime.memcpy
    check_status(status)
  File "cupy/cuda/runtime.pyx", line 201, in cupy.cuda.runtime.check_status
    raise CUDARuntimeError(status)
cupy.cuda.runtime.CUDARuntimeError: cudaErrorInvalidValue: invalid argument

Yeah, CUDARuntimeError happens because the data pointer for a size-0 array is NULL, while for a size-1 array is a valid one.


is.edge() not working

Running Edge 20.10240.16384.0
is.edge() reports false.

Hi @lsatdown!
This should be resolved with the is in master.


[Codegen] Remove unused NVGPU includes

A few unused includes of NVGPU dialect made its way into LLVMCPU/others after the codegen pass split.

Thanks!


Configuring for AWS - what's the format of the index_name parameter?

I'm trying to configure Geocoder for AWS. I've created what I think is a places index in AWS and assigned an api key to it. I tried to use the full ARN value of the index for index_name in the amazon_location_service config block but that doesn't work:

.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/aws-sdk-core-3.191.6/lib/seahorse/client/plugins/raise_response_errors.rb:17:in `call': 'IndexName' must match regex ^[-._\w]+$ (Aws::LocationService::Errors::ValidationException)

I also tried just the name that I gave it but that didn't work either...so what is the format of the index_name config parameter? Thanks!

Geocoder version: 1.8.2
Rails version: <IP_ADDRESS>
Database (if applicable):
Lookup (if applicable): amazon_location_service

Hmm, what's the name of your index? It looks like it can only have letters, digits, dash, underscore, and period (so an ARN wouldn't work).

Thanks for the reply!
So I think my issue was kind of a combo of errors. I configured index_name to just be the index name without any invalid characters (not the ARN value).
After that, I got an invalid key error. In AWS location services, there's a place to create an API key but I don't think this is what's actually needed. I then deleted that API key and went into IAM and created a user with full "geo" permissions as outlined here and now it works.


Use XHRLocal if origin is "null"

Without that, we end up using XHRCors with credentials true. The problem is that on the server end, when origin is null we set "Access-Control-Allow-Origin: *" which fails when credentials is true.

Ups, not here I wanted to do the PR.


Slack approvals not working in web8

Attempting to approve a user connection via slack results in an unknown error.

I can repro, looking at it.

Works fine in prod, so something specific on preview-8.


LinkFix docs (2021-10)

This PR is the result of running a Link Repair script on the included content. This script is primarily being run to clean up links to function correctly in Air Gapped Clouds (AGC). Here's a breakdown of what the script that generated the changes in this PR fixes:

docs.microsoft.com Fully Qualified Domain Name (FQDN) Links to either Relative (if in same Repo/DocSet/ContentSet) and Site Relative if not

azure.microsoft.com/documentation/articles that reflect to Docs to either Relative (if in same Repo/DocSet/ContentSet) and Site Relative if not

All known flavors of MSDN/TechNet domains (we know of 8 or 9 now) that reflect to Docs to either Relative (if in same Repo/DocSet/ContentSet) and Site Relative if not

This also includes cleanup of the appended query string for MSDN (redirectedfrom=MSDN).

Fixes articles that are redirected in .openpublishing.redirection.json and updates the link to the current final location (this has a lot of customer usability fixes).

Please note the Contributor Guide: Links has been updated with the following link-type preference order:

By order of preference, links hosted on Docs should be Relative if they are in the same repository and docset. If they are in a different docset, even if in the same repository, they should be Site Relative. Links to content hosted on Docs shouldn't use a complete URL, otherwise known as Fully Qualified Domain Names (FQDN). Using a complete URL from Docs to other content on Docs will cause that link to be non-functional in air-gap environments.

@v-kents let me know if you can help me with the build errors. Thanks!

#sign-off @v-kents I've made the requested changes, not sure how to resolve it here (still says change requested). cc @gewarren


VIRTUAL DESKTOP

Description of the new feature / enhancement
In my opinion, the excellent Power Toys project really lacks a VIRTUAL DESKTOP manager, where you can:

Direct a process/window/program to a certain virtual desktop (my OUTLOOK hypothesis when it starts must be sent to the desktop named "MAIL", while if I start Rambox it must go to the desktop named "CHAT") via real rules.
Being able to view permanently or in the form of a notification which VIRTUAL DESKTOP is active.
(You can't solve this problem by changing the desktop background, because if you use themes they win)
Transition mode between different virtual desktops beyond the current one which is very simple.
Being able to point via keyboard shortcuts to every single virtual desktop.
The settings should be linked to each individual monitor installed on the PC, read the scenario to understand

Scenario when this would be used?
At home I work smartworking with only one monitor, while I have three in the office, so from home I use virtual desktops a lot, simulating the three monitors I have in the office.
Supporting information
The idea came from Virtual Space, but in my opinion the software is a bit cumbersome, it doesn't seem well done and it takes up a bit too much memory.
Maybe pull it into the PowerToys project...
(https://github.com/newlooper/VirtualSpace/releases)

This is multiple items which makes it hard to track.  We have a 1 ask per issue request for that reason.
I feel like a lot of the asks are known via: https://github.com/microsoft/PowerToys/issues?q=is%3Aopen+is%3Aissue+label%3A"Product-Virtual+Desktop"
thoughts?  /needinfo

Ok, I split my request in different issue!

/dup #10222 and #24


Ability to comment out portions of a prompt

Sometimes when prompting I want to test something temporarily, usually I have to do this by cutting out part of the prompt and undoing the change. However sometimes I lose that change and have to retype it
Comments simplify this since the text is still in the prompt to be recovered
For now its an optional feature, you have to check Enable comments in the settings to enable it. The comments are C-style, so // comment and /* comment */ are valid

Very cool - thank you


Getcomment content API

Hi ,
I am trying to retrieve the comments for my posts and load it to my app(not just the count of comment). I've tried many method and still failed.  Is there anyway to implentment that.
Best  regards
pp

Did you try to use the conversation_id parameter ?
See : https://developer.twitter.com/en/docs/twitter-api/conversation-id
(by the way I think your question is more for the Twitter API team, not so much related to this library)

I have tried these Offical APIs and returned 401 . Have you encountered this situation before

Strange, can you make sure that all your credentials are OK ? If you face the same problem inside swagger, then the problem is not related to my library.


METRON-1338 Excluding retry files from RAT check

When Vagrant fails, it generates a *.retry file. These files are ignored by Git, but will unnecessarily fail a build because of the Rat check. This has annoyed me to no end.
For all changes:

[x] Is there a JIRA ticket associated with this PR? If not one needs to be created at Metron Jira.
[x] Does your PR title start with METRON-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
[x] Has your PR been rebased against the latest commit within the target branch (typically master)?
[ ] Have you included steps to reproduce the behavior or problem that is being changed or addressed?
[ ] Have you included steps or a guide to how the change may be verified and tested manually?
[x] Have you ensured that the full suite of tests and checks have been executed in the root metron folder via:
[ ] Have you written or updated unit tests and or integration tests to verify your changes?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] Have you verified the basic functionality of the build by building and running locally with Vagrant full-dev environment or the equivalent?
[ ] Have you ensured that format looks appropriate for the output in which it is rendered by building and verifying the site-book? If not then run the following commands and the verify changes via site-book/target/site/index.html:

+1 by inspection


Android throwing error when GoogleAnalytics dependency included

In React-native
Execution failed for task ':app:dexDebug'.

outDexFolder must be a folder

Hi @keerthanarbt. Is that the whole error message? If you have other modules in your RN project which also depends on Play Services, I'd recommend look at the troubleshooting wiki: https://github.com/idehub/react-native-google-analytics-bridge/wiki/Troubleshooting#android-build-problem


[Nox.Ui] Cryptocash.Ui show map on LatLong and preselect StreetAddress Country and Installation Country for VendingMachine

Jira: https://regusit.atlassian.net/browse/NOX-71


Kconfig: Remove blank lines at the beginning/end of files

Maybe this is some "just in case" thing that got copied around. There's
no need to have a blank line at the beginning or end of Kconfig files.

Checked the ends now too. Intense nitting.

Codecov Report

Merging #14452 into master will increase coverage by 0.13%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #14452      +/-   ##
==========================================
+ Coverage   51.98%   52.12%   +0.13%
==========================================
  Files         308      308
  Lines       45505    45523      +18
  Branches    10543    10552       +9
==========================================
+ Hits        23655    23728      +73
+ Misses      17050    16990      -60
- Partials     4800     4805       +5

Impacted Files
Coverage Δ

boards/posix/nrf52_bsim/bstests_entry.c
57.6% <0%> (-3.27%)
:arrow_down:

drivers/clock_control/nrf_power_clock.c
50% <0%> (-2.11%)
:arrow_down:

ext/hal/nordic/nrfx/hal/nrf_rng.h
100% <0%> (ø)
:arrow_up:

kernel/sched.c
84.32% <0%> (+0.31%)
:arrow_up:

drivers/timer/nrf_rtc_timer.c
92.53% <0%> (+0.6%)
:arrow_up:

boards/posix/nrf52_bsim/trace_hook.c
48.78% <0%> (+4.87%)
:arrow_up:

boards/posix/nrf52_bsim/time_machine.c
55.73% <0%> (+8.19%)
:arrow_up:

drivers/entropy/entropy_nrf5.c
89.9% <0%> (+13.71%)
:arrow_up:

drivers/timer/sys_clock_init.c
15.38% <0%> (+15.38%)
:arrow_up:

boards/posix/nrf52_bsim/argparse.c
46.98% <0%> (+15.66%)
:arrow_up:

... and 1 more

Continue to review full report at Codecov.

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


Tidy up versions menu

Aligned the Reason label when no reason is shown
Evened out spacing between Reason, Legal Start and Legal End

Before:

After:

beautiful and thank you


No ADC class in machine.pyi

@andreas-harmuth What MicroPython port do you use? Could you please point to the documentation page that describes the class you're referrring to? My quick search gave me pyb.ADC, not machine.ADC.

Hi @vlasovskikh, I'm not completely sure what you mean by port. I'm using MicroPython for ESP8266 and ESP32, and found the documentation for machine.ADC  here

@andreas-harmuth Thanks for the link! For some reason machine.ADC is not mentioned at the page about the machine module for ESP8266.
By ports I meant the CPU type of your board. It's the terminology used by MicroPython, see their project structure.

The latest version (1.10) docs page now lists ADC.   PyCharm inspection is also missing machine.PWM however, which is still not listed in the docs for machine.  (I'm using 2018.3.5, ESP8266, Python 3.7.2)

The current version of Micropython uses machine.pyi from https://github.com/hlovatt/PyBoardTypeshed which includes both ADC and PWM, if you upgrade the plugin does the problem go away?

@fablableo Thanks for finding this mistake. I fixed up this error and a couple of others that I found as a consequence of improving the error checking to find the original mistake you reported!
You can install the fixed typesheds manually, see Manually install in IDE in README on https://github.com/hlovatt/PyBoardTypeshed.

Should be fixed by #176.


After uploading the file, the key does not contain the uuid in the JSON

cookie = os.environ.get('cookie')
replace with
cookie ="your cookies"

Hey, @bigpong2527 Please check your cookie placement properly and try.

Hey, @bigpong2527 Please check your cookie placement properly and try.

My cookie is correct and the returned field does not contain a uuid

I got a similar error but for a different reason. Not sure if it's the fix, but my error was because of the cookie format. It should use this structure with the sessionKey:
sessionKey=XXXXXXXXX


[Cosmos] Update how-to-setup-rbac.md

Changes should be made to reflect the fact that the Python SDK also has the ability to use AAD authentication as of 4.3.0 release.

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

#assign:seesharprun
Hello @simorenoh,
Thank you for your contribution. I will review it shortly.


Terraform baseline - network-access-control-infrastructure

User Story
As an engineer
I expect to have consistent development environment parameters generated.
So that testing is consistent between CI testing and local development testing, we need to remove the deprecated example tfvars  and update the makefile with the new version.
Value / Purpose
Consistency - quicker onboarding - Confidence
Useful Contacts
No response
Additional Information
https://github.com/ministryofjustice/network-access-control-infrastructure
Definition of Done

[x]  README has been updated
[x]  Makefile updated with version as per example
[x] aws_ssm_get_parameters.sh copied from here and amended with params use the buildspec.yml for details of SSM Parameters required
[x] generate-env-file.sh copied from here
[x] generate-github-env.sh copied from here
[x] Another team member has reviewed
[x] Any tests are green

Baseline done.


NoMethodError for ActiveRecord::Relation

Expected behavior
Fetches location within 20 miles
Actual behavior
undefined method near' for #<ActiveRecord::Relation []>`
Steps to reproduce
GemFile ->  gem 'geocoder', '~> 1.4.4'
model.rb ->
 class Model < ActiveRecord::Base end
schema.rb ->
create_table "models", force: true do |t|     t.string   "category"     t.datetime "created_at"     t.datetime "updated_at"     t.float    "latitude"     t.float    "longitude"   end
models_controller.rb ->
def index
@models = Model.all
@models = @models.where('category like ?', '%#{params[:category]}#%') if
params[:category].present?
@models = @models.near(' [?] 20', params[location])
@models
end
where params = {category: 'sample', params: 20.234, -40.312}
Environment info

Geocoder version: 1.4.4
Rails version: 4.1
Database (if applicable): Postgres

If I cannot call the near method on a relation, how can i achieve the same please?

You need to have a geocoded_by statement in your model. Please see the readme for more details.

@alexreisner - do I need to add the geocoded_by statement when I am providing the latitude and longitude separately please?


Add FlatList method - scrollToIndex

Hi! Thanks for the great React Native binding.
I added a scrollToIndex method in FlatList.
Thanks!

It's already in here https://github.com/rescript-react-native/rescript-react-native/blob/b1a0741b26ebd21ad1c36fdbf17b1d9cdd69d3a3/src/elements/VirtualizedListMethods.res#L23


Update DB for DCA bot and set up service

Background
DCA bot uses different columns compared to the other bots we already have live. The required columns are here https://github.com/VolumeFi/dca_bot_python_script/blob/main/bot_execute.py#L40-L51
Done when

[ ] DCA bot service is set up on server
[ ] service api includes the DCA records

getting the following when trying to run
Traceback (most recent call last):
  File "/home/rootedbox/app/dca_bot_python_script/bot_execute.py", line 150, in <module>
    asyncio.run(main())
  File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
  File "/home/rootedbox/app/dca_bot_python_script/bot_execute.py", line 145, in main
    await pancakeswap_bot(network)
  File "/home/rootedbox/app/dca_bot_python_script/bot_execute.py", line 56, in pancakeswap_bot
    res = CON.execute("SELECT * FROM fetched_blocks WHERE network_name = ? \
TypeError: execute expected at most 2 arguments, got 3
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f1f1cb87e80>

when trying to run..  I've created the following shell script to run everything
run.sh
#! /bin/sh
export PALOMA_KEY='fancy clinic exotic cactus budget duty street bag extra supply evoke shield swing job rail predict brisk orbit road cargo child swing wheat element' # paloma account mnemonic phrase'
export PALOMA_LCD=https://lcd.palomachain.com
export PALOMA_CHAIN_ID=messenger
export CODE_ID=11

python3 bot_execute.py

it's currently running from /home/rootedbox/app/dca_bot_python_script as rootedbox on ssh nest-service.palomachain.com

please look at this @webelf101