Subscriptions on threads segfault on exit

Minimal repro:

ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]
google-cloud-core (0.21.1)
google-cloud-pubsub (0.23.2)
google-protobuf (<IP_ADDRESS>)
googleapis-common-protos (1.3.5)
grpc (1.1.2)

require 'google/cloud/pubsub'
s = Google::Cloud::Pubsub::Service.new("czi-dev", Google::Cloud::Credentials.default)
t = Thread.new { puts s.pull("test.walter.pull").inspect }
t.join
# Hit ctrl-C while waiting for pull to return

Crash:
Exception Type:        EXC_BAD_ACCESS (SIGABRT)
Exception Codes:       KERN_INVALID_ADDRESS at 0x00007000089af808

VM Regions Near 0x7000089af808:
    Stack<PHONE_NUMBER>8ac000-00007000088b2000 [   24K] rw-/rwx SM=COW  thread 1
-->
    Stack<PHONE_NUMBER>b39000-0000700008b3b000 [    8K] rw-/rwx SM=PRV

...
5   libruby.2.3.0.dylib           	0x000000010f9fe754 sigsegv + 68
6   libsystem_platform.dylib      	0x00007fffb5e50bba _sigtramp + 26
7   ???<PHONE_NUMBER>00000000 0 + 0
8   grpc_c.bundle                 	0x0000000110405c54 grpc_exec_ctx_flush + 84
9   grpc_c.bundle                 	0x0000000110414313 grpc_call_cancel_with_status + 323
10  grpc_c.bundle                 	0x00000001104140e8 grpc_call_destroy + 376
11  grpc_c.bundle                 	0x00000001103f3ddb 0x1103f1000 + 11739
12  libruby.2.3.0.dylib           	0x000000010f953ff0 finalize_list + 64 (gc.c:2678)
13  libruby.2.3.0.dylib           	0x000000010f947ef8 rb_gc_call_finalizer_at_exit + 1272 (gc.c:2842)
14  libruby.2.3.0.dylib           	0x000000010f931c61 ruby_cleanup + 721 (eval.c:224)

It appears that c->cb points to unallocated address space here: https://github.com/grpc/grpc/blob/46357c882df1afc28f7a5228c40fde522093fa32/src/core/lib/iomgr/exec_ctx.c#L76
Perhaps a cleanup issue similar to #1096?

Thanks for the issue, and especially the repro, @wrs! This is great.
@swcloud Is this something that you can escalate to the GRPC team?

Adding @apolcyn

Sounds similar to root cause of #1096. When the process terminates before gRPC connection  is able to terminate properly (ctrl C before thr.join returns in this case) results in connection leak and segfault.

@hxiong388 When the pull completes, the join returns and there's a normal process exit.

This bug indeed looks within grpc, and it does looks similar to #1096.
This repros every time on OS X with this plain grpc repro:
tweaking the greeter_client.rb(https://github.com/grpc/grpc/blob/master/examples/ruby/greeter_client.rb) example main to:
def main
  stub = Helloworld::Greeter::Stub.new('localhost:50051', :this_channel_is_insecure)
  user = ARGV.size > 0 ?  ARGV[0] : 'world'
  t = Thread.new do
    message = stub.say_hello(Helloworld::HelloRequest.new(name: user)).message
    p "Greeting: #{message}"
  end
  t.join
end

and change the greeter_server.rb "greeter handler" to:
# GreeterServer is simple server that implements the Helloworld Greeter server.
class GreeterServer < Helloworld::Greeter::Service
  # say_hello implements the SayHello rpc method.
  def say_hello(hello_req, _unused_call)
    sleep 10
    Helloworld::HelloReply.new(message: "Hello #{hello_req.name}")
  end
end

and then ctrl-c client while the server handler.
This sort of thing should be probably be handled within grpc though - can't be easily avoided by joining threads. cc @murgatriod99
(again, it looks like thread is getting garbage collected before the call on it completes. then references on that thread's stack get invalidly uses it when call objects GC function is called).

I have to ask: how important is it really that gRPC exits cleanly when the process is interrupted in the middle of execution? Does it really matter, as long as it exits in a timely manner?
It may be possible to correct this in gRPC, depending on what exactly is happening here. It looks like the thread's stack is getting deallocated while something has a reference to it. If that is indeed the case, fixing this is just a matter of allocating some things on the heap instead of the stack. But if Ruby is deallocating objects without running destructors, or something like that, there may not be much we can do about it.

Well, there's "not exiting cleanly", and then there's segfaulting! I don't think having services that core dump when you stop them with a simple SIGINT is a normal or reasonable situation.

@apolcyn Nice example, very easy to repro the leak. On my Ubuntu machine, the example doesn't produce a segfault, but I still get the "connection leaked" error message.
Besides termination with SIGINT, I'm also experiencing the connection leak with other thread terminations. For example, if we tweak the greeter_client.rb example with a t.kill:
def main
  stub = Helloworld::Greeter::Stub.new('localhost:50051', :this_channel_is_insecure)
  user = ARGV.size > 0 ?  ARGV[0] : 'world'
  t = Thread.new do
    message = stub.say_hello(Helloworld::HelloRequest.new(name: user)).message
    p "Greeting: #{message}"
  end
  t.run
  sleep 1
  t.kill
  t.join
end

The child thread would return normally in this example. But when the process exits, the "connection leak" error message is still thrown.

Just on the feasibility though, it looks like the crash on invalid stack reference might be doable to fix, but it looks like getting read of the connection leaked error would be complicated

I'm not sure how that would work…if you trap the SIGINT then how would grpc know it was supposed to be exiting?

@apolcyn I tried the trap approach and tried to explicitly terminate/destroy the grpc connection. The closest destructor I could find was grpc_stub.instance_variable_get(:@ch).close, assuming this would close the active communication channel. But the connection still leaks. Do you happen to know a better way to close the grpc connection without waiting for it to complete?

@hxiong388 there isn't such an API if you're making the call through the standard high-level stub.
but https://github.com/grpc/grpc/pull/10306#pullrequestreview-28975934 should fix this crash anyways, once that is in.

@apolcyn Is it possible to get that released in a 1.2.1.pre2 gem to make it easier for folks to verify?

To be clear, the "connection leaked" message is just a warning from gRPC. It's pretty much unavoidable if you're forcibly killing the process, and it shouldn't cause any problems. Any open sockets will still be closed by the kernel when the process dies.

@blowmage I think that can be done soon.

@blowmage personally I'd tentatively think that the pre2 with that can be made on monday or early next week

@hxiong388 @blowmage the grpc-1.2.1-pre2 was just published with the fix for this

@wrs Can you upgrade to grpc 1.2.1-pre2 and let us know if it addresses this issue?

@apolcyn FWIW, I'm no longer seeing a segfault when using grpc 1.2.1-pre2. 👍

@apolcyn 1.2.1.pre2 no longer faults in my test program or in my actual program. :) 👍


duration is now in frames + tab user and fps labels according to Natron nodes

Hi,
Duration is now in frames.
I have update labels to according audiocurve node to other natron node

@MrKepzie had fixed some bug in python plugins stack, so we can now adjust some warning (absent file, incorrect return from audiocurve executable,....) and split executable to test arch. I'll test them with audio2ascii, and will assign you when all work well. The last a2a version has an 'update to current frame' for 'start at frame'. After several tests, it's a speed cool function so....

Nice, will be available to work on audiocurve tomorrow after work.

New version 1.7 of audio2ascii.
I have added:

A reset curve button (i don't know why reset with it (a simple PyPlug function) is faster than with the "Remove animation..." right menu ? )
Manage some user 'error' (principally forgotten file paths) l
I have added a possibility to launch a windows executable of audiocurve ;)

Take a look at it and take what you want for AudioCurve.py


[javascript mode] style metaproperty as keyword

Add a mechanism for styling metaproperties, which should be simple to extend
if new ones are added in the future.

Eh, there's a bit more work needed on this, as seen in https://twitter.com/caitp88/status/656351079358054400 (and some more work needed on template literals, too). I guess I'll make an attempt to fix it.

I've merged your test as 71ac921c4385 and provided my own implementation in 457468315e817. Let me know whether it works for you.


fix docs typo 'migrations' -> 'schemas'

The docs are correct, we dont declare this as type in schema because its already an embed.


New Project to improving tests

Is your feature request related to a problem? Please describe.
No exactly problem,I have suggest to generate random objects to use in tests. ex.:
I have a User class and I have class who will generate instances with random data in all properties, but insetad of create a class to generate instances, we could use annotation processor to generate this classes.
Describe the solution you'd like
Look at my repository
https://github.com/juniorjrjl/jfaker/
docs.:
https://github.com/juniorjrjl/jfaker/wiki
I create a projetc who using annotation processor to create Bot class, this bot class will generate instances with random data and a data provider is a datafaker, I suggest a new project who will use a datafaker.
feel free to use my code and improve it to create a new project
Introduction
What is a JFaker
JFaker is a lib who use annotation processor to create bot class who create instances of your project class with random  data for you worry only to create your test, follow a test example with and without JFaker:
imagine you be testing a class who maps some object to another
code example without JFaker (fixed data)
// configuraçoes da sua classe com sua lib de testes
void mapTest(){
    var entity = new UserEntity();
    entity.setId(1);
    entity.setName("name");
    var dto = testClass.toDTO(entity);
    //asserções do seu código
}

code example with JFaker (with random data to make your test more dynamic)
// configuraçoes da sua classe com sua lib de testes
void mapTest(){
    var entity = UserEntityBot
        .builder()
        .build();
    var dto = testClass.toDTO(entity);
    //asserções do seu código
}

The best part about this is who the UserEntityBot class is generated each time you will do a build using a simple configuration
Starting with JFaker
Make a follow steps
1- For use JFaker in your project, just add a follow dependencies:
JFaker use a Datafaker lib in bots for generate random data ( for more informations how Datafaker works here have a link for Datafaker's documentation)
2 - Extends a class net.datafaker.Faker from Datafaker lib and we will start a configure your bots
//imports

@FakerInfo(
    botsConfiguration = {
        @AutoFakerBot(
            generatedInstance = "br.com.sample.UserEntity",
            packageToGenerate = "br.com.sample.bot",
            botBuildStrategy = @BotBuildStrategy(
                setterStrategy = @SetterStrategy
            )
        )
    }
)
public class MyCustomFaker extends Faker {

}

In a previous code we say to generate a bot for UserEntity class in a package br.com.sample.bot and the bot will input data using setters class method.
Now you are ready to use your UserEntityBot who will have a code looks like a follow code:
// imports omitidos
public class UserEntityBot extends AbstractBot<UserEntity> {
    private MyCustomFaker faker = new MyCustomFaker();

    private Supplier<Long> id = () -> (long) faker.number().positive();
    private Supplier<String> name = () -> faker.lorem().word();

    public BookModelBot withId(final Supplier<Long> id) {
        this.id = id;
        return this;
    }

    public BookModelBot withName(final Supplier<String> name) {
        this.name = name;
        return this;
    }

    public BookModel build() {
        var userEntity = new br.com.sample.UserEntity();
        userEntity.setId(id.get());
        userEntity.setName(name.get());
        return userEntity;
    }
}

Is possible to populate your instance using other strategies (check in a documentation a section where we say about @BotBuildStrategy )
How you looks like our bot allow to define a fixed data for tests where we need some specific information in a class property, for this we use a with methods
All generated bots by defaul extend a class AbstractBot to provide some methods. A build method without arguments for create a single instance with random data and a overload who receive a long argument and generate a list with X instances, where X is a number input in build argument ( for more informations about AbstractBot class click )

See also:

https://github.com/datafaker-net/datafaker/issues/675
https://github.com/datafaker-net/datafaker/pull/754

that is cool! I don't knew about this. But my idea is litle different, this annotation is used in runtime, my project use annotation processor to generate bot class, you don't need annotate model class and "dirty" it, annotation processor will generate a class to build instances and allow you configure providers for each class properties, create extensions for generate your bot and store it in a database ( for exemple).
I thing many things to make project very extendable and flexible, but thank you for space to show it :)

That's great @juniorjrjl , thank you for sharing! What's your intention with JFaker? Do you want to keep it a separate project and use Datafaker as a potential data provider? Or would you consider a tighter integration between the 2? I think we would be open to any kind of approach, and if we should make changes to make JFaker + Datafaker easier, let us know, happy to discuss!

Thanks for sharing this

But my idea is litle different, this annotation is used in runtime, my project use annotation processor to generate bot class, you don't need annotate model class and "dirty" it, annotation processor will generate a class to build instances and allow you configure providers for each class properties, create extensions for generate your bot and store it in a database ( for exemple).

we were thinking about similar approach however we faced a couple of limitations

How to generate an object with different locale
How to generate an object with different seed
How to generate several different objects (one with Japanese locale and seed 1, another with Japanese locale and seed 10, the third one with French locale and seed 10 and the fourth one with French locale and seed 1000)?

How do you solve this with such configuration?

@bodiam I think about integration is good, I believe this suggest have a great potential and could be very interesting to help a create tests were developer write less code to generate object instances and care more about tests's scenary.

@snuyanzin  about your questions
1 I my actual code I didn`t think about, but I think it's possible make some changes
// imports omitidos
public class UserEntityBot extends AbstractBot<UserEntity> {
    private MyCustomFaker faker = new MyCustomFaker();

    private Supplier<Long> id = () -> (long) faker.number().positive();
    private Supplier<String> name = () -> faker.lorem().word();

    public BookModelBot withId(final Supplier<Long> id) {
        this.id = id;
        return this;
    }

    public BookModelBot withName(final Supplier<String> name) {
        this.name = name;
        return this;
    }

    public BookModel build() {
        var userEntity = new br.com.sample.UserEntity();
        userEntity.setId(id.get());
        userEntity.setName(name.get());
        return userEntity;
    }
}

this code is a class example generated by my code, for solve this problem we could change a moment where faker instance is created (instantiate in build method for example) and pass a locale by param
2 - In this code is possible, all generated bots extend a class AbstractBot, but is possible configure bots to use another class, you need create a another class inherits AbstractBot and put in this class a method who returns a bot instance after save it on database, I create a wiki in this repository explain some resources https://github.com/juniorjrjl/jfaker/wiki (sorry if my english is bad in this wiki) and in this topic have a solution of this question https://github.com/juniorjrjl/jfaker/wiki/9---Customize-your-Bots
3 - For this we need think about faker object is instantiate ( like I explain in answer 1)
this code is a first version, We can think about improve it and include more features.

thanks for explanation
i was asking since all 3 cases are now covered by datafaker existing functionality and locale/seed should be just specified via annotation or method call (both are possible)
no need for other changes

Is any action required for this ticket?

i don't think so
i would consider it like FYI


EF Core Add Migration Issue

I have this issue with adding migration. I tried to clear nuget cache. reinstalled all the packages.
there's nothing in output window.

Try with -Verbose

@ErikEJ  Hi, Erik, thank you for the response, I have tried with -Verbose, but unsuccessfully ...

Where is the project? There is no project selected.

@ralmsdeveloper  I Hide it.

I want to talk in the Package Manager Console

@ralmsdeveloper  I erased Project From There .....

All right, now it makes sense!


feat(OperatorNorm,Multilinear): add lemmas, golf

Analysis/NormedSpace/OperatorNorm

Add ContinuousLinearMap.isLeast_op_norm, ContinuousLinearMap.op_nnnorm_le_iff,
and ContinuousLinearMap.isLeast_op_nnnorm.
Golf some proofs.
Drop RingHomIsometric assumption here and there.

Analysis/NormedSpace/Multilinear

Add ContinuousMultilinearMap.isLeast_op_norm, ContinuousMultilinearMap.isLeast_op_nnnorm, ContinuousMultilinearMap.le_mul_prod_of_le_op_norm_of_le, ContinuousMultilinearMap.op_norm_le_iff, ContinuousMultilinearMap.op_nnnorm_le_iff, ContinuousMultilinearMap.op_nnnorm_prod, ContinuousMultilinearMap.op_nnnorm_pi.
Golf/move some proofs.
Change implicit/explicit arguments in some lemmas.

[ ] depends on: #7301

bors merge


Bug: Wallet Disconnected state is not stored.

When user enters the page:

previous connected state is restored
previous selected address is restored
previous disconnected state is not restored

Therefore the wallet reconnects, even if the user decided to disconnect.
DApp should also store if wallet was disconnected by intention.

This appears to be fixed already


Move queue to database

Move DelayedVirtyalMachine entity to database, Queue works via database now (Store Queue in the database)
Refactor tests (refactor-tests)
Refactor core/sessions/make_request wait cycle (fix-ugly-fragment)
Fix git-hooks/run-10-flake8.sh issue (git-hooks HEAD-fix)

!test

Refer to this link for build results (access rights to CI server needed):
http://jenkins.2gis.local/job/vmmaster.staging.regression/197/
Test FAILed.

https://github.com/2gis/vmmaster/pull/76


How can I get the best order and seasonal_order when AutoArima completes

Question
I can set the parameter trace to True, and it print the model list for ARIMA fit. But is there any explicit method that I can use to tell me what's the best order and seasonal_order that fill the model?
Versions (if necessary)

Darwin-18.2.0-x86_64-i386-64bit
Python 3.6.8 |Anaconda, Inc.| (default, Dec 29 2018, 19:04:46)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]
pmdarima 1.2.1
NumPy 1.16.2
SciPy 1.2.1
Scikit-Learn 0.20.3
Statsmodels 0.9.0

It returns a fitted ARIMA model. If the model is named model, just call model.order or model.seasonal_order.
Pro-tip, in python you can call the dir function on an object to get it's attributes.

It returns a fitted ARIMA model. Just call model.order or model.seasonal_order, where model is the returned ARIMA.
Pro-tip, in python you can call the dir function on an object to get it's attributes.

Thanks @tgsmith61591, I got the parameter values by model.model_


[Issue-1171] - check tenancy on invalidate content jobs if tenancy is turned on

fixes #1171

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR/274/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR/276/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR-trafficops-test/232/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR-trafficops-test/234/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR/277/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR-trafficops-test/235/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR/296/

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR-trafficops-test/255/


Update default PathMatchType in HTTPRoute to be prefix.

This patch changes the default PathMatchType in HTTPRouteMatch from Exact to Prefix.
This should fix #254 .

I signed it

/ok-to-test

Thanks!
/lgtm
/assign @bowei

/approve
/lgtm


Spaces after usernames

[ ] In the user list, groups of users are separated by " , ". Remove the space before the comma.
[ ] In the user detail view, groups of users are separated by " , ". Remove the space before the comma.
[ ] In the list of submitters, there is a space after the username of a submitter

a good place to start may be
OpenSlides/openslides-client/client/src/app/site/users/components/user-list
and perhaps the "groupsCell" class.
Within it, "<span *ngIf="!last">," defines the symbol (so long as not the last item)

Update : This was the right location.
The issue being some linting tool transforming
"<span *ngFor="let group of getUserGroups(user); let last = last"> {{ group.getTitle() | translate }}<span *ngIf="!last">,"
which does not cause problems, into a prettier version which causes formatting to be interpreted as empty space.

Please specify in which area of the application "In the list of submitters, there is a space after the username of a submitter" takes place.


Need an Other Option for Extensions (or Suppress Indicator for Options)

Scenario
I have a rating of Hot, Warm, Cold.
I only want an indicator on Hot or Warm.
I set both Hot and Warm up as Extensions, and they display fine.
But Cold shows as a "ghost indicator" (text and no colours).
I tried entering an Extension as Rating Other with a Priority of 99 and contains text as * and that doesn't work (the * must be literal, not wildcard).
Entering a FALSE value doesn't work because Cold is still a valid value.
An "Other" option is needed to supress the Indicator.
Another Scenario
I have a Picklist of Active with values Yes or No (not a good field setup choice at all though).
I want an indicator to appear for Contains Yes. but no Indicator to appear for Contains No (or any other option that might be added later, or blank).
I can "work around" this by creating a boolean Formula Field for Is Active, but the excellent point of the Extensions is to not have to create a heap of formula fields.
NOTE: We can set the default Icon to show in all cases, but sometimes you don't want to show an icon at all.
Also, I don't want to have to enter an Extension for each and every picklist value as it is too hard to maintain when I add more picklist values. So I just want an "for anything else, suppress the indicator" option for Extensions.

OK, this is working nicely now.
If you want a Default Icon then enter the Indicator Icon Configuration for Default.
If you don't want a Default Icon then leave both the default and blank configuration empty.


french-fries-eric

drawings of hackclub themed french fries

Nice! This is a cute drawing. I think Blot worthy!
You can order your Blot here.
We're still sorting out shipping logistics so be patient but we're really excited to get the machine to you and hear your experiences with it.

alright, thank you!


chore: Use Bun package manager & runner

Initially I wanted to use Bun for all the things:

Package manager (bun install instead of npm i)
Command runner (bun run or bunx instead of npm run or npx)
Runtime (bun run --bun instead of node)
Bundler (bun build instead of tsc)
Single-executable (bun build --compile instead of pkg)
Test runner (bun test instead of vitest)

In practice - it turned out to be a pretty big effort, so I'll try to split this into separate PRs, starting with:

Package Manager
Command runner

Mostly went smooth, except bun pkg.js which seemed to fail during Node binary fetch, so I still use node pkg.js in the release.yml workflow

CI gains:

Install went down from around ~12s to ~0-1s
Build takes ~1s less
Setup Bun is ~2s faster than Setup Node (and not using cache so less teardown)

Awesome initiative!
While digging inside CLI I noticed we use js extensions in imports.
Is that the recommended way? It doesn't make much sense.
Should we switch to extension-less import? Or to ts extension import?

@luixo

While digging inside CLI I noticed we use js extensions in imports.
Is that the recommended way?

I believe it actually is.
I couldn't find a good summary, but this StackOverflow answer might do it well enough.

It doesn't make much sense.

I agree.

Should we switch to extension-less import? Or to ts extension import?

This would require compilerOptions.allowImportingTsExtensions: true which also requires noEmit: true or declarationOnly: true, which implies not using tsc to build.
So I'd say when we stop using tsc to build our .js output - we could also change the imported extension to .ts, but also I feel this weirdness is unfortunately already pretty much "accepted" by the ecosystem (auto imports do the "right" thing, etc).

@luixo

As you still deep in the context of all the operations needed for CLI, I suggest adding CONTRIBUTING.md with explanation of whatever is needed to contribute / test / generate / build / release the CLI.

Agreed, will follow-up in a separate PR though.


Updates to use Python2 and Python3 at same time

NOTE: Requires ESMA_cmake v3.4.0 to fully work (see https://github.com/GEOS-ESM/ESMA_cmake/pull/159)

@bena-nasa Warning. When this goes in these bits in GEOSadas will need to change:
Applications/GAAS_App/run_all.csh
23:setenv PYTHONPATH $ESMADIR/$ARCH/lib/Python

Applications/GAAS_App/l2a_all.csh
24:setenv PYTHONPATH /opt/epd/lib/python2.6/site-packages/:$ESMADIR/$ARCH/lib/Python

Applications/GAAS_App/ana_aod.j.tmpl
42:setenv PYTHONPATH $FVROOT/lib/Python

I missed some F2PY in GMAO_Shared that is used only by GEOSadas. I need to convert and test it as well.


Email user when email address or password changes

As a user, when I update my email address or password, I should receive an email informing me of the change.
In the case of an email address change, I'm not sure whether the email should be sent to the old address, the new one, or both...

Hi, can I work on this? If so, any what should the text of the emails be?

yes, definitely! thanks! my suggestions for text:
password change, email to address on file:
Hello!

We are emailing because you have an ODK Central data collection account, and somebody has just changed its password. If this was you, please feel free to ignore this email. Otherwise, please contact your local ODK system administrator immediately.

email change, email to old address only:
Hello!

We are emailing because you have an ODK Central data collection account, and somebody has just changed the email address associated with the account from this one you are reading right now ($OLDADDRESS) to a new address ($NEWADDRESS). If this was you, please feel free to ignore this email. Otherwise, please contact your local ODK system administrator immediately.

Great, thanks!


added sample code for instance methods

Fixes #107 (it's a good idea to open an issue first for discussion)

[ ] Tests and linter pass
[ ] Code coverage does not decrease (if any source code was changed)
[ ] Appropriate docs were updated (if necessary)

@jabubake: It turns out that async/await is not allowed in samples, since node.js v6 does not support that feature.  We'll have to revert to using the older style.

I actually have no problem with using async/await in samples :)  I think most of our customers are running node.js 8 or greater (with the exception of GCF), so I say async away.

Please update the top-level README.md with a link to this sample.

@kolodny, I think that this is ready for review.

@kolodny and @jabubake, I think that all of the comments were addressed.  PTAL

LGTM


Add history to the CLI

When you use the CLI in toplevel mode :
$ sherlodoc search

You can type search queries and get results. However, you might want to type a query, and then modify it.
You can copy paste the query, but this is not very practical.
We should implement search history were you can access previous queries by using the up arrow key.
For now, I do not want to store the history between session, there is no need to write it to a file.

(In the mean time, I personally use the command rlwrap sherlodoc search which relies on the well-known(?) rlwrap utility to add line-edition and history to any program... so we could also document this trick in the readme :-°)

I looked up which library would work well to implement this, as art-w told me the getting the arrows keypresses might be hard.
I found one : https://ocaml-community.github.io/lambda-term/3.1.0/lambda-term/LTerm/index.html, but it is indeed quite complicated to get keypresses, it also requires using Lwt, so I am bumping this to a large issue.


aws-sdk-cpp: 1.4.78 -> 1.4.82

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/aws-sdk-cpp/versions.
meta.description for aws-sdk-cpp is: '"A C++ interface for Amazon Web Services"'.

Checks done (click to expand)

built on NixOS

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.4.82 with grep in /nix/store/8clg99h5jr2mq4qq2yawah4m5gay40qm-aws-sdk-cpp-1.4.82

directory tree listing: https://gist.github.com/86431df10ea278435e4b71f5f3086065

du listing: https://gist.github.com/0aebeed8e2f147eabdccccb1aeef111d

Test this build with Cachix (click to expand)

One time setup in nixpkgs Git checkout:
cachix use r-ryantm
git remote add r-ryantm https://github.com/r-ryantm/nixpkgs.git

Test this build:
git fetch r-ryantm && git checkout f891715b002de8ee668cac79aacfe0b64cea47cb && nix-shell --pure -I nixpkgs=. -p aws-sdk-cpp

cc @edolstra for testing.

Failure on x86_64-linux (full log)
Attempted: aws-sdk-cpp
Partial log (click to expand)
[ 12%] Building CXX object aws-cpp-sdk-cloudfront/CMakeFiles/aws-cpp-sdk-cloudfront.dir/source/model/QueryStringCacheKeys.cpp.o
[ 12%] Linking CXX shared library libaws-cpp-sdk-cloudhsm.so
[ 12%] Building CXX object aws-cpp-sdk-cloudfront/CMakeFiles/aws-cpp-sdk-cloudfront.dir/source/model/Restrictions.cpp.o
[ 12%] Building CXX object aws-cpp-sdk-cloudfront/CMakeFiles/aws-cpp-sdk-cloudfront.dir/source/model/S3Origin.cpp.o
[ 12%] Built target aws-cpp-sdk-cloudhsm
Scanning dependencies of target aws-cpp-sdk-cloudhsmv2
[ 12%] Building CXX object aws-cpp-sdk-cloudhsmv2/CMakeFiles/aws-cpp-sdk-cloudhsmv2.dir/source/CloudHSMV2Client.cpp.o
[ 12%] Building CXX object aws-cpp-sdk-cloudfront/CMakeFiles/aws-cpp-sdk-cloudfront.dir/source/model/S3OriginConfig.cpp.o
building of ‘/nix/store/g67qjfbiw3br9sqri740lqgfbmchl212-aws-sdk-cpp-1.4.82.drv’ timed out after 1800 seconds
error: build of ‘/nix/store/g67qjfbiw3br9sqri740lqgfbmchl212-aws-sdk-cpp-1.4.82.drv’ failed

Failure on aarch64-linux (full log)
Attempted: aws-sdk-cpp
Partial log (click to expand)
separating debug info from /nix/store/7lksssa20czhnh5kavwvsdd6d8nyhz55-aws-sdk-cpp-1.4.82/lib/libaws-cpp-sdk-batch.so (build ID 47d562d75ad601edfd272ce2c2589db54c6bdeb5)
separating debug info from /nix/store/7lksssa20czhnh5kavwvsdd6d8nyhz55-aws-sdk-cpp-1.4.82/lib/libaws-cpp-sdk-autoscaling-plans.so (build ID b99c5289566493156419c44d1d115e8f4d7af58f)
separating debug info from /nix/store/7lksssa20czhnh5kavwvsdd6d8nyhz55-aws-sdk-cpp-1.4.82/lib/libaws-cpp-sdk-autoscaling.so (build ID 0087d56eb7396bc94e3bf514dae92d070b408040)
separating debug info from /nix/store/7lksssa20czhnh5kavwvsdd6d8nyhz55-aws-sdk-cpp-1.4.82/lib/libaws-cpp-sdk-athena.so (build ID 0d8d7abfcd77e6e93b934983a4a11c761200c997)
separating debug info from /nix/store/7lksssa20czhnh5kavwvsdd6d8nyhz55-aws-sdk-cpp-1.4.82/lib/libaws-cpp-sdk-appsync.so (build ID 6e0616052256bb5b1090a2a26ce2bc562e40044d)
separating debug info from /nix/store/7lksssa20czhnh5kavwvsdd6d8nyhz55-aws-sdk-cpp-1.4.82/lib/libaws-cpp-sdk-appstream.so (build ID 367c8ea4eef87a287ceada71f97f8ce305365198)
separating debug info from /nix/store/7lksssa20czhnh5kavwvsdd6d8nyhz55-aws-sdk-cpp-1.4.82/lib/libaws-cpp-sdk-application-autoscaling.so (build ID 09dc326353b507c3db557b059b9291645b6903ee)
separating debug info from /nix/store/7lksssa20czhnh5kavwvsdd6d8nyhz55-aws-sdk-cpp-1.4.82/lib/libaws-cpp-sdk-apigateway.so (build ID 0e86d29f1afbd5b03482ed393834c549dbed0fdd)
building of '/nix/store/jrkyrpirbp21y33n0ms6bfx1i97gzx9d-aws-sdk-cpp-1.4.82.drv' timed out after 3600 seconds
error: build of '/nix/store/jrkyrpirbp21y33n0ms6bfx1i97gzx9d-aws-sdk-cpp-1.4.82.drv' failed

Failure on x86_64-darwin (full log)
Attempted: aws-sdk-cpp
Partial log (click to expand)
[  9%] Building CXX object aws-cpp-sdk-cloudformation/CMakeFiles/aws-cpp-sdk-cloudformation.dir/source/CloudFormationErrorMarshaller.cpp.o
[  9%] Building CXX object aws-cpp-sdk-cloudformation/CMakeFiles/aws-cpp-sdk-cloudformation.dir/source/CloudFormationErrors.cpp.o
[  9%] Building CXX object aws-cpp-sdk-cloudformation/CMakeFiles/aws-cpp-sdk-cloudformation.dir/source/model/AccountGateResult.cpp.o
[  9%] Building CXX object aws-cpp-sdk-cloudformation/CMakeFiles/aws-cpp-sdk-cloudformation.dir/source/model/AccountGateStatus.cpp.o
[  9%] Building CXX object aws-cpp-sdk-cloudformation/CMakeFiles/aws-cpp-sdk-cloudformation.dir/source/model/AccountLimit.cpp.o
[  9%] Building CXX object aws-cpp-sdk-cloudformation/CMakeFiles/aws-cpp-sdk-cloudformation.dir/source/model/CancelUpdateStackRequest.cpp.o
[  9%] Building CXX object aws-cpp-sdk-cloudformation/CMakeFiles/aws-cpp-sdk-cloudformation.dir/source/model/Capability.cpp.o
[  9%] Building CXX object aws-cpp-sdk-cloudformation/CMakeFiles/aws-cpp-sdk-cloudformation.dir/source/model/Change.cpp.o
building of '/nix/store/jffllghhiql4my6cd7l32z27a7vgr4xh-aws-sdk-cpp-1.4.82.drv' timed out after 1800 seconds
error: build of '/nix/store/jffllghhiql4my6cd7l32z27a7vgr4xh-aws-sdk-cpp-1.4.82.drv' failed

Successfully built Nix with this change.


Implementing line number offset.

Implemented:

Numbering offset - ability to start line numbers from some value other than 1;
Ability to skip some code blocks (to leave them unnumbered).

Changed README explains usage.

Thank you man!

@wcoder Thanks!


Error: Cannot find module 'webpack' on production environment

Why is it webpack needed for production environment even after I build for production? Steps to reproduce:

mern init foo
cd foo
npm install
npm start // => runs OK
npm run build
npm run build:server
rm -rf node_modules
npm install --production
npm run start:prod
error

I believe those are the steps to deploy in production mode and npm install --production is what we should do, but that render the app unusable. If that's not the case then webpack and its plugins should be in dependencies and not in devDependencies in package.json.

Same issue found, anyone could help?


Blank screen again. antix 19 new issue

Hi. Since new update 0.38 this issue is fixed:https://github.com/lbryio/lbry-sdk/issues/2626
Thanks for that. However, now it goes blank if i click on my video and same if i try to watch a video.
Big problem. I cant edit my posted video because of this issue.
I got 2 little demo video here:
https://open.lbry.com/lbry-issue-2019-12-21_14.48.05#efa06655f83ed65f971bc6e1159152073603fe58
https://open.lbry.com/lbry-issue2-2019-12-21_14.58.14#61dae9cd16eef371efe3a2463895d209b7c11049
Also, this video does not work on lbry.tv and its the same type file MP4:
(No compatible source was found for this media.)
https://open.lbry.com/How-To-MuWire-Chat-Functionality-Demo#1253fd30b901a1bea613ff4daf1be36f4b4e9bd1

Sorry for the trouble. We'll need to look why that may be failing for you. Can you press ctrl-shift-I to open the console and then try entering the page. Any errors there? If not, we can do a remote session together - contact me at @jiggytom on chat.lbry.com.
Going to close this for now since it belongs in the desktop app repo and may be something specific to your install.

As far as the video, try one with the mp4 extension to see if that works. If not, it may be an issue with a nonstandard resolution.

Ok. I've opened the console and clicked on one of my video. Heres the result:
https://open.lbry.com/lbry-issue-testing-console-2019-12-21_15.39.20#9555dbc1283577bcb1616dd974c06ea0a8625ec8
'try one with the mp4 extension' Whats that?

Also, i cant fetch rewards

Both issues might be related to the keychain password - did you not get prompted? It may not work well with your OS + the startup minimized setting. Try disabling that and then also quitting the app with Ctrl-Q and then restart it.

'Try disabling that'
Disabling what? Explain a bit more. Im not an IT guy.

The option at the bottom of settings for starting minimized.

Nah, same with the starting minimized disable. And i did not had any keyring, the app just opened normally

Even after quitting with Ctrl-q and restarting?
There will be a patch out later today, maybe you can try again with that one.

Ya i did ctrl + q
Ok will try. Thanks!
Note: I know its antix the problem. LBRY not the only app that im having issue with on antix. Im just letting you guys know about it. I'll change OS, antix not for a noob like me

I forgot to mention that i cant sing in. For the first time that im trying to add my email it doesnt work, thats really funny. Im clicking on continue but nothing is happening.

All those problems are related to the same issue with your keyring.

Hi. Same with 0.38.2

Can i create a new account from lbry.tv and link it to my existent anonymous lbry desktop account, from lbry.tv?
I would really like to be able edit my posted video lol. Can we edit our posted videos from lbry.tv?

No, that's not possible without the email, sorry.
So have you already tried disabling the start minimized setting to see if that helps? Are you not prompted for a keyring password if you quit the app with ctrl-Q and restart?
Maybe you can install Seahorse and then clear out the keychain. You won't loose anything locally.
The other option is to copy your wallet file to a new PC and sign in there. See Help page to find where it's located.

Hi. Im now running MX Linux (MX-19) and LBRY finally working.
This video doesnt work with the LBRY app but it does work on lbry.tv
https://lbry.tv/@Danrobi:b/How-To-MuWire-Chat-Functionality-Demo:1

Glad it's up and running. The m4v issue should be fixed in the next patch...which is already up on the web.

Great, thanks. Merry Christmas :)


Allow to configure the default number of bundles for new namespaces

Motivation
By default namespaces are currently created with a single bundle.
In many examples, we need then to explain how to specify a number of bundles (and explaining what bundles are and what they mean).
Bundles are meant to be a very internal concept that in the overweeningly number of cases user shouldn't need to be aware of.
Apart from auto-splitting, which is currently disabled, we need to ensure to start with a reasonable default of bundles that will allow to spread traffic across multiple broker immediately.
Modifications

Added a configuration setting in broker to set the default number of bundles
When a namespace is created, it will use that value unless something different is specified by the user

Result
A small step towards hiding the bundles from user sight.

creating more bundles will increase shutdowntime of broker because broker unloads topic in parallel  but unloading bundle happens sequentially. Using load-balancer we can always split eligible bundle but we can't merge bundle once we split. So, should we keep this number lower than 16.??

creating more bundles will increase shutdowntime of broker because broker unloads topic in parallel but unloading bundle happens sequentially. Using load-balancer we can always split eligible bundle but we can't merge bundle once we split. So, should we keep this number lower than 16.??

That's a good point, though I suspect it won't make any difference outside Yahoo 😄
We could lower the default to something like 4, if 16 poses concerns. The goal here is to have the traffic on partitioned topics to be immediately distributed to at least few machines.
In any case, for the shutdown time, probably a better option could be to throttle based on number of topics per bundle.
Instead of shutting down bundles 1 by 1, we could keep shutting down bundles in parallel until a certain threshold of topics is reached. (eg: a semaphore with max 1K topics)
That would remove any disadvantage in having more bundles with fewer topics.

We could lower the default to something like 4, if 16 poses concerns.

Sure, initially we can start with 4 bundles so, topics can be distributed in multiple brokers and then let load-balancer take care further splitting.

retest this please

retest this please


Allow to return a base64 encoded string for an image

This extends the writer to return an image as base64 encoded
string (in the given format) instead of writing it to a file.
Currently it is only supported without the frame description.
fixes https://github.com/creativescala/doodle/issues/77

Awesome! Thanks!


Test for callbacks called upon errors

Already commented here, but I suppose this deserves an entry here.
Two platforms (rusticl and pocl) had the same issue, both not calling callbacks upon error status. I really think a conformance test shall be added to check it.

The test was added in #2028, so this issue can be closed (as discussed in the August 27th teleconference).


Support for 5.1.1 on linux

Output of the ue4-docker info command:
ue4-docker version:         0.0.106 (latest available version is 0.0.106)
Operating system:           Linux (Linux Mint 20.1, 5.4.0-131-generic)
Docker daemon version:      20.10.21
NVIDIA Docker supported:    Yes
Maximum image size:         No limit detected
Available disk space:       896.09 GiB
Total system memory:        754.53 GiB physical, 0 bytes virtual
CPU:                        56 physical, 56 logical (x86_64)

Additional details:

Are you accessing the network through a proxy server? No

With the same configuration (ubuntu20.04 and cuda11.8), I managed to build 4.27.2 and 5.0.3 but failed to build the image with 5.1.1

I am not sure this is a ue4-docker problem (maybe ue4 or a DNS problem ?).

I tried multiple times and it always fail on the same resource.

Full output here logs.txt

Did someone manage to build 5.1.1 on linux ?

It is either your network issue or something temporary bad with Epic Games CDN. 5.1.1 builds perfectly fine on Linux.

The CDN was always failing during docker build but Setup.sh was successful on the host. I used advanced build option source_mode=copy to fix the problem:
ue4-docker build 5.1.1 --target minimal --opt source_mode=copy --combine -layout /tmp/layout
cd /tmp/layout/combined
mkdir ue4 && cd ue4 && git init && git remote add origin "https://github.com/EpicGames/UnrealEngine.git" && git fetch --progress --depth 1 origin "5.1.1-release" && git checkout FETCH_HEAD && ./Setup.sh --exclude=Android --exclude=Mac --exclude=Win32 --exclude=Win64
cd -
docker build --build-arg BASEIMAGE=[custom_base_image] --build-arg SOURCE_LOCATION=ue4


AMD example

Hi! Could someone please make an AMD example for me? I just can't get it to work. :-(

Sure, I can submit a PR for this

Here are two examples:

AMD Modules (code and live demo)
Load Vue as an AMD dependency from CDN (code and live demo)

I'll add another one real quick that shows usage of the named-exports extra, which can also be really important for AMD interop.

Also see the AMD Dependencies example (code and live demo).

Thanks a lot!

How about we add a file that explains the different role of the src and lib directories, add a hint comment to the top of all src files, and symlink it into each and lib directory as `how_to_build.md'?

Your first example code link is broken

I updated my comment

How about we add a file that explains the different role of the src and lib directories, add a hint comment to the top of all src files, and symlink it into each and lib directory as `how_to_build.md'?

I don't think this is needed. Running npm run build is an industry standard way of building code with npm. Also, a lib directory consistently means "compiled code" and src means "uncompiled code" in the NodeJS community. We did not create those conventions and they have existed for several years. For those unfamiliar with those conventions, looking at the scripts inside of package.json and then running npm run build is a very reasonable thing to expect users to do.

Seems like I missed that convention all the years. Thanks for pointing it out!


Markdown support

I've wanted Cucumber to support Markdown as an alternative syntax to Gherkin for a while. I think it could be beneficial in several areas:

Ability to embed images alongside scenarios (UI mockups, various sketches and diagrams)
Markdown has a lot of mindshare

This PR currently has a start of an implementation. It's surprisingly easy to add thanks to the modular architecture - just a new TokenMatcher implementation!
There aren't any automated tests yet, but there is a manual one:
mvn compile && bin/gherkin-generate-ast ../testdata/good/minimal.md | jq "."

Some thoughts about reporting results from Cucumber if we go forward with this. Each markdown documents would get rendered to a HTML file in a reports directory. Results would be written as a JavaScript file, appended into the same HTML file at the end. This JavaScript would modify the DOM:

Results: add css classes for status (success/failed/pending/undefined/skipped)
Stack traces: add dom nodes when a step fails
Attachments/embedded data: add <img> tags

In order to do this, the HTML nodes must have information about line number. This can be added when the Markdown is rendered (before scenarios run). We'd use an existing Markdown processor and post-process the generated HTML by scanning both the markdown source and the generated HTML - should be fairly easy.
I'm excited about this!

Can you explain, with an example, how you'd express a scenario in markdown? It's not clear to me from reading the code.

@mattwynne Oops here you go: 30d5f6ff30a54fe6b2123dd6c9b601e6601aac3c

@aslakhellesoy I think it would make a lot more sense to use an existing Markdown parser to get an AST of the Markdown. And then just implement a 'pickles' interface for that AST.
Markdown has so many variations...
# headline

## headline

 * item 1
 * item 2

headline
========

headline
--------

 - item 1
 - item 2

…or consider multiline list items...
*   This is a list item with two paragraphs.

    This is the second paragraph in the list item. You're
only required to indent the first line. Lorem ipsum dolor
sit amet, consectetuer adipiscing elit.

*   Another item in the same list.

@muhqu I'm not sure every language has good markdown parsers that produce ASTs. I suspect many of them will just produce HTML text. We should make design decisions that are easy to port to a new language.
I think it would be easy to support different header styles (event the underlined ones), and we don't need to support multiline bullet lists. We can also say we only support the ## style headers.

I have a more general comment, now I've seen the syntax.
I've thought about this quite a bit in the past, and what I'd really like to see is a way to mark up any kind of regular prose as executable.
For example:
# Shouting to multiple listeners

When multiple listeners are involved, all of them will receive the shout.

For example: Suppose Sean is stood 50 metres from Lucy, and another user named Larry is 10 metres away from Sean. So overall they're spaced like this:

<link to image>

When Sean shouts "Hello everyone", then we'd expect that both Lucy and Larry will hear Sean's message.

We could use links to mark the parts of the prose that are executable steps. Perhaps something like this:
For example: Suppose [Sean is stood 50 metres from Lucy](cucumber://step), and another [user named Larry is 10 metres away from Sean](cucumber://step). So overall they're spaced like this:

@mattwynne great example. I like the idea of the using markdown-markup to highlight what actually is the test data. :clap:
:bulb: You can even go a step further and just use a regular markdown-html processor and then use a CSS selector like a[href="cucumber://step"] to extract all the steps... a post-processor would then be able to add class names like passed, skipped, failed, ignored to the <a> elements.

That's interesting @mattwynne! Would this mean that the format we parse should really be the HTML? I mean, people could use Asciidoc if they want - we just parse the resulting HTML?
Have you thought about what would be scenario delimiters? Headers?
Any thoughts about DataTables and DocStrings? Can you give an example?

@aslakhellesoy scenario delemiters, could be easily found by

find all <a href="cucumber://step">
for each of them bubbling up the DOM until you find a sibling <h1> or <h[1-5]> element.
group steps (<a>) by their matched headline element...

i'm sure some nodejs wizkid would be able to do that in a single line of jQuery ;-)

I would be hesitant to describe it as HTML format, since HTML is not a nice syntax for writing in, but yeah, you could think about it that way.
http://concordion.org/ was one of the things that inspired this line of thinking.
What I've heard from Concordion users is that the way their glue is implemented (inline attributes in HTML) is a maintenance nightmare, but people love the readability of the docs.

To your other points Aslak, yes I think a header (containing executable steps) could be used as the scenario delimiter. I haven't thought about DocStrings or DataTables at all.

How about Markdown with something like the Maruku meta-data syntax? http://maruku.rubyforge.org/proposal.html

I'm not suggesting that users write HTML, but I still think it might make sense that the parser reads HTML. This gives us a lot of flexibility - the HTML can be generated with Markdown, Asciidoc, Wysiwyg editors, whatevs!
I'm starting to think basing the parser on Markdown (as I've done in this PR) is not ideal.
Parsing the HTML serverside is easy - there are tons of good libs out there with excellent css selector/xpath support.
So: the good parts of concordion and none of the bad parts.
Thoughts on that?

Steve, how would you see Maruku working for steps in arbitrary prose exactly? Could you give an example?

I think the idea of using HTML as the actual parsed language is interesting - there are many different ways of producing HTML so it's easy to support multiple markup object.
I think links will work great for steps - it makes sense as it becomes possible for the report API to have clickable links showing the code behind the steps.
I'm not sure about using H2 to mean TestCase though, and we will need a way to link tables / text as DataTable / DocString. Maybe something like the maruku extensions could add this metadata?
# Using markdown to specify behaviour

Markdown allows for far more natural language to be used when
specifying the behaviour of a system. Encouraging teams to actually
think about the language without constraining them with `Given`,
`When`, `Then`.

## Examples

### DocStrings are linked using metadata {: data-cucumber=scenario}

[The following text will be used as a DocString for this step](cucumber://step):

  > This is some multiline text of arbitary length, following the markdown format.
  > We will need to decide how we specify line breaks - following HTML or preformatted
  > conventions... but that could be based on the type of block element used?
  {: data-cucumber=docstring }

BTW: You're not limited to maruko if you're going to use ruby. kramdown supports this as well. You may want to abstract that markdown thing away and use some abstraction library like tilt instead.


Add mac0 support

Adds COSE_Mac0 support and tests for it.

So we'll have t_cose_sign_sign() + t_cose_sign_verify() and t_cose_encrypt_enc() + t_cose_encrypt_dec(). Maybe t_cose_mac_auth() + t_cose_mac_validate()? Or maybe t_cose_mac_mac() + t_cose_mac_check()? Would like to separate MAC from sign.

Would like to separate MAC from sign.

What about these:

t_cose_mac_compute()
t_cose_mac_verify()

The naming is borrowed from from psa/crypto.h but  I think they are quite descriptive.

I like t_cose_mac_compute()! Maybe t_cose_mac_validate() just so it is distinct from COSE_Sign? There's a general naming plan write up here: https://github.com/laurencelundblade/t_cose/blob/dev/inc/t_cose/t_cose_common.h Been implementing multiple signers with COSE_Sign with this plan and it is mostly OK, but might need some adjustments as the names are getting long.


Purposefully made seo_title indexed by default

seo_title came in model, accessible, by default. It could be indexable in app model like:
    search_fields = Page.search_fields + [
        index.SearchField('seo_title'),
    ]

so why isn't such search-assist field being indexed for search by default? As I guess, because cls.promote_panels  might be something modifiable, as I didn't take much effort to take a look at it.
also, I didn't see this practice in wagtail/guide, as I tried it in my own project, it works well, and given better search result
sorry, as I couldn't check if this really work in this PR, might need more discussion

Thank you @hUwUtao! I think it might have been better for you to open an issue first so we could discuss why there’s a reason that this might not be the case already, but oh well :)
Do you intend to do further work on this PR? To me it seems like a solid improvement but I’d assume we would need unit tests, maybe documentation changes.


az cli issue

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

Related command

Describe the bug

To Reproduce

Expected behavior

Environment summary

Additional context

Please provide detailed CLI command and error log for us to help you.


Canvas doesn't seem to be working

Environment
NodeJS v22
Reproduction
const image = await renderPageAsImage(pdf, i, {
    width: 1700,
    canvas: () => import("canvas"),
  });

Describe the bug
Error processing PDF: TypeError: _canvas.createCanvas is not a function
    at Object._createCanvas (webpack-internal:///(rsc)/./node_modules/unpdf/dist/index.mjs:125:24)
    at Object.create (webpack-internal:///(rsc)/./node_modules/unpdf/dist/index.mjs:130:29)
    at renderPageAsImage$1 (webpack-internal:///(rsc)/./node_modules/unpdf/dist/index.mjs:102:29)

Additional context
No response
Logs
No response

I have the same issue

Huh, that's weird. I will have to investigate.

Any update on this issue, I have the same issue using Node.js 20 environment

I don't have the resource to work on this at the moment. A quick solution didn't seem in reach when I debugged it. PR welcome!

I am able to fix this issue, so my problem was I used in Azure Devops different kind of agent pool to build my module, because I updated the pdfjs-dist version 2.15.349 NPM package to use unpdf version 0.12.1, and in the meantime I updated the node version as well from 18.18.0 to 20.18.0, and during this update there were many breaking change between the different versions, but I could handle it well.
So I used ubuntu:22.04 agent and node.js 18.18.0 accidentally to build my node.js module, and I run my integration test on a different ci docker agent pool, which is used node.js 20.18.0, and I got the same error what is mentioned above. So I fixed this little mistake and now everything works fine.
Currently I used this NPM install command:
npm ci --arch=x64 --platform=win32 --target_arch=x64 --target_platform=win32 --target_libc=unknown

My NPM dependencies currently:
 "canvas": "2.11.2
 "unpdf": "0.12.1",


websockify is broken after latest update

The latest updated brought in python 3.11 which seems it broke websockify - the VNC server is still funcional via VNC client but not through the web browser

fixed in b4d415e14e11c694a36721a08d574f425c467b7e


Automate release notes

Context
AI/ai-sdk-java-backlog#94
We need release notes now that we have an initial version publicly available. For this, I copied the way Cloud SDK is doing their release notes:

There is now a release-notes.md file in under docs/release-notes. In a PR, you can add something to this file. This file functions as a collection of all release notes since the last (minor or major) release.
(Once a new minor or major version is published) There is a file named release-notes-0-to-14.mdx under docs/release-notes that captures all the release notes since the last major release. After every 15 minor releases, a new file is used to not avoid making this file too long (the next files will then be called release-notes-15-to-29.mdx and so on).
In the Prepare Release workflow, content from release-notes.md is copied to the appropriate release-notes-X-to-Y.mdx file. After the release version is created, a new (empty) release-notes.md is created for the next version.

Feature scope:

[x]  GitHub release contains release notes (GA itself can be a one time manual job)

To make this work for the GA, we could add release note into release-notes.md.

[x] Process is automated (At least the step of collecting the release notes for the current release should be automated)
[x] Concept for how diff between latest release and current status can be viewed

This can be seen in the release-notes.md file.

Definition of Done

[x] Functionality scope stated & covered
[ ] ~Tests cover the scope above~
[ ] ~Error handling created / updated & covered by the tests above~
[ ] ~Aligned changes with the JavaScript SDK~
[ ] ~Documentation updated~
[ ] ~Release notes updated~

Successful run in my fork: https://github.com/Jonas-Isr/ai-sdk-java-test/pull/16


Downstream project test: include esmangle and JSCS.

Refs #1023

:+1: we might want to make a custom command to pass the local bin directly to JSCS


[engsys] upgrade dev dep rollup-plugin-visualizer version to ^5.5.2

to be consistent the version used in the repo
Issues associated with this PR
resolves #19239

API change check
API changes are not detected in this pull request.


Init non-bootstrap stage0-posix tools

Description of changes

Non-bootstrapped packages of stage0-posix intended for external use/prototyping
Related #227914
Things done

Built on platform(s)

[x] i686-linux
[x] x86_64-linux
[x] aarch64-linux
[ ] riscv32-linux
[ ] riscv64-linux

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

@picnoir Thanks for the kudos and review. Appreciate it!


fix: sorted options in contribution filter aphabetically

resolves #63

Great work @tanya17-05.
LGTM @uniqueg, fixing conflicts & merging.


ru_ru.lang update

Just an update, nothing more.

Hey @Chubzik1, I'm currently in the process of relicensing Goblin Traders. I would like your permission to relicense your contributions to Goblin Traders under MIT. Thank you.

I dont mind, you can do what you need


Allow specifying the username for RabbitMQ when using the component

The current RabbitMQ component allows for providing a password but guest  is hardcoded   as the username. It would be good to also be able to specify the username so that it matches what is defined elsewhere for example a Dapr pubsub yaml configuration

@wtulloch Do you want to send a pull request for this?

@davidfowl Happy to take a shot at it.

This appears to be fixed in Eric's commit on 3/20/2024: Make username and password defaults consistent (#3023)
RabbitMQServerResource.cs
$"amqp://{UserNameReference}:{PasswordParameter}@{PrimaryEndpoint.Property(EndpointProperty.Host)}:{PrimaryEndpoint.Property(EndpointProperty.Port)}");

Great, we can close this.


ESP8266 D1 mini pro not connecting to firebase!

hello everyone,
my code cannot connect to firebase.
i used library : "https://github.com/FirebaseExtended/firebase-arduino"
i tried to change fingerprint:
"B6 F5 80 C8 B1 DA 61 C1 07 9D 80 42 D8 A9 1F AF 9F C8 96 7D"
"6F D0 9A 52 C0 E9 E4 CD A0 D3 02 A4 B7 A1 92 38 2D CA 2F 26"
"E2 34 53 7A 1E D9 7D B8 C5 02 36 0D B2 77 9E 5E 0F 32 71 17"
but still same, cannot connect to firabase.
Everyone's who can help me how to fix this issue. thanks !
This my code:
#include <ESP8266WiFi.h>
#include <FirebaseArduino.h>
#define FIREBASE_HOST ".firebaseio.com"
#define FIREBASE_AUTH "2MxjeR1XVtlvMWXTfdOv"
#define WIFI_SSID ""
#define WIFI_PASSWORD "*************"
String fireStatus = "";
int led = 14;
void setup() {
Serial.begin(9600);
delay(1000);
pinMode(LED_BUILTIN, OUTPUT);
pinMode(led, OUTPUT);
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
Serial.print("waitting...");
Serial.print(WIFI_SSID);
while (WiFi.status() != WL_CONNECTED) {
Serial.print(".");
delay(500);
}
Serial.println();
Serial.print("connect to ");
Serial.println(WIFI_SSID);
Serial.print("IP  : ");
Serial.println(WiFi.localIP());
Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);
Firebase.setString("LED_STATUS", "OFF");
}
void loop() {
Firebase.setString("STATUS","TEST 11");
fireStatus = Firebase.getString("LED_11");
if (fireStatus == "ON" || fireStatus == "on") {
Serial.println("LED SANG");
digitalWrite(LED_BUILTIN, LOW);
digitalWrite(led, HIGH);
}
else if (fireStatus == "OFF" || fireStatus == "off") {
Serial.println("LED TAT");
digitalWrite(LED_BUILTIN, HIGH);
digitalWrite(led, LOW);
}
else {
Serial.println("Cannot conect");
}
}

I am getting same issue ,my code with d1 mini was woking properly but from 24-feb or 25-feb,it is not connected with firebase.

google has changed there certificate in february
this Line will fix it:
static const char kFirebaseFingerprint[] =
"03:D6:42:23:03:D1:0C:06:73:F7:E2:BD:29:47:13:C3:22:71:37:1B"; // 2020-02
~Arduino/libraries/firebase-arduino-master/src/FirebaseHttpClient.h

Now It is working ,Thanks @tinoschroeter

Thanks  @tinoschroeter,
So, kFirebaseFingerprint is not static, sometimes change

thanks @tinoschroeter,
it mean kFirebaseFingerprint is not static, sometimes change ?

@SmartTVVN yes, this will change after google set up a new certificate for this host...
now its valid until: Feb 18 19:36:06 2021 GMT
you can check this by using openssl (HOSTNAME is your project name)
echo | openssl s_client -showcerts -servername HOSTNAME.firebaseio.com -connect HOSTNAME.firebaseio.com:443 2>/dev/null | openssl x509 -inform pem -noout -text
or find the fingerprint:
openssl s_client -connect HOSTNAME.firebaseio.com:443 < /dev/null 2>/dev/null | openssl x509 -fingerprint -noout -in /dev/stdin

@tinoschroeter thanks

@SmartTVVN yes, this will change after google set up a new certificate for this host...
now its valid until: Feb 18 19:36:06 2021 GMT
you can check this by using openssl (HOSTNAME is your project name)
echo | openssl s_client -showcerts -servername HOSTNAME.firebaseio.com -connect HOSTNAME.firebaseio.com:443 2>/dev/null | openssl x509 -inform pem -noout -text
or find the fingerprint:
openssl s_client -connect HOSTNAME.firebaseio.com:443 < /dev/null 2>/dev/null | openssl x509 -fingerprint -noout -in /dev/stdin

Hello, the password has already changed, I do not understand the process to obtain the new password and I cannot find it anywhere

https://www.grc.com/fingerprints.htm


Can't use quickstart app or use custom application based Spring

Prerequisites
Please check the FAQ, and search existing issues for similar questions before creating a new issue.YOU MAY DELETE THIS PREREQUISITES SECTION.

[X] I have checked the FAQ, and issues and found no answer.

What version of pinpoint are you using?
2.0.1
Describe your problem**
First of all, I am using kubernetes, I converted the official docker files to the yaml used by kubernetes.
The deployment process seems to have worked correctly, I can access the UI but it goes blank, I can access url / configuration.pinpoint and url / error, where I can see the attached image.
I access my application correctly via the web. But in pinpoint I have not been able to attach the agent, or make it capable of detecting the application.
Pastebin with dockerfile and deployment file because bad format here
What have you done?
Steps you have taken to trigger the problem, for example:

Deploy PinPoint on kubernetes
Make custom image spring application
Tried attaching agent to custom application

Screenshots

Logs
No errors on hbase log
Agent log
sed -i '/profiler.transport.module=/ s/=.*/=GRPC/' /pinpoint-agent/pinpoint.config sed -i '/profiler.transport.module=/ s/=.*/=GRPC/' /pinpoint-agent/profiles/release/pinpoint-env.config sed -i '/profiler.collector.ip=/ s/=.*/=pinpoint-collector/' /pinpoint-agent/pinpoint.config sed -i '/profiler.collector.tcp.port=/ s/=.*/=/' /pinpoint-agent/pinpoint.config sed -i '/profiler.collector.stat.port=/ s/=.*/=/' /pinpoint-agent/pinpoint.config sed -i '/profiler.collector.span.port=/ s/=.*/=/' /pinpoint-agent/pinpoint.config sed -i '/profiler.transport.grpc.collector.ip=/ s/=.*/=pinpoint-collector/' /pinpoint-agent/pinpoint.config sed -i '/profiler.transport.grpc.collector.ip=/ s/=.*/=pinpoint-collector/' /pinpoint-agent/profiles/release/pinpoint-env.config sed -i '/profiler.transport.grpc.agent.collector.port=/ s/=.*/=9991/' /pinpoint-agent/pinpoint.config sed -i '/profiler.transport.grpc.metadata.collector.port=/ s/=.*/=9991/' /pinpoint-agent/pinpoint.config sed -i '/profiler.transport.grpc.stat.collector.port=/ s/=.*/=9992/' /pinpoint-agent/pinpoint.config sed -i '/profiler.transport.grpc.span.collector.port=/ s/=.*/=9993/' /pinpoint-agent/pinpoint.config sed -i '/profiler.sampling.rate=/ s/=.*/=1/' /pinpoint-agent/profiles/release/pinpoint-env.config sed -i '/level value=/ s/=.*/="INFO"\/>/g' /pinpoint-agent/profiles/release/log4j.xml exec tail -f /dev/null
Collector log
`
org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed after attempts=36, exceptions:
Tue May 12 13:15:01 UTC 2020, null, java.net.SocketTimeoutException: callTimeout=60000, callDuration=68624: row 'ApplicationTr
aceIndex,,00000000000000' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=pinpoint-hbase-7bffbfd84f-smv82,4
3665,1589277589497, seqNum=0
2020-05-12 12:36:07 WARN  Session 0x0 for server zoo1:2181, unexpected error, closing socket connection and attempting reconnect
java.lang.IllegalArgumentException: Unable to canonicalize address zoo1:2181 because it's not resolvable
at org.apache.zookeeper.SaslServerPrincipal.getServerPrincipal(SaslServerPrincipal.java:65)
at org.apache.zookeeper.SaslServerPrincipal.getServerPrincipal(SaslServerPrincipal.java:41)
at org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:1001)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1060)
`
Web log
`2020-05-12 13:42:20 WARN  An internal object pool swallowed an Exception.
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
`
and lot of...
Tue May 12 13:44:20 UTC 2020 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Additional context
Add any other context about the problem here, such as affected library for agents, how your collector/web/hbase is set up if applicable.

hi @sruizdegopegui
If we look at the log you posted, Pinpoint collector and web seem to fail to connect Hbase and Zookeeper.
I think it will be ok if you solve the reason why they can not connect Hbase and Zookeeper.
thanks

Hi @koo-taejin
I have modified the displays to try to know how to connect with each other, and now the errors are as follows
`collector log
2020-05-13 07:04:10 WARN  hconnection-0x42a2cbdb0x0, quorum=<IP_ADDRESS>:2181, baseZNode=/hbase Unable to get data of znode /hbase/meta
-region-server
org.apache.hadoop.hbase.shaded.org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/meta-region-server
at org.apache.hadoop.hbase.shaded.org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
2020-05-13 07:04:10 ERROR hconnection-0x42a2cbdb0x0, quorum=<IP_ADDRESS>:2181, baseZNode=/hbase Received unexpected KeeperException, re
-throwing exception
org.apache.hadoop.hbase.shaded.org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/meta-region-server
at org.apache.hadoop.hbase.shaded.org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
at org.apache.hadoop.hbase.shaded.org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
at org.apache.hadoop.hbase.shaded.org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1155)
at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.getData(RecoverableZooKeeper.java:354)
2020-05-13 07:04:10 WARN  Failed to warmup for Table:AgentEvent. message:Can't get the locations
org.apache.hadoop.hbase.client.RetriesExhaustedException: Can't get the locations
at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.getRegionLocations(RpcRetryingCallerWithReadReplicas.java:319)
Web log
2020-05-13 07:08:30 WARN  Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.hadoop.hbase.shaded.org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.hadoop.hbase.shaded.org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
2020-05-13 07:08:31 WARN  Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
2020-05-13 07:08:49 ERROR hconnection-0x20cea4620x0, quorum=<IP_ADDRESS>:2181, baseZNode=/hbase Received unexpected KeeperException, re
-throwing exception
org.apache.hadoop.hbase.shaded.org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/meta-region-server
at org.apache.hadoop.hbase.shaded.org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
at org.apache.hadoop.hbase.shaded.org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
`
When deploying containers, should something be created in the volumes?
I have seen that mysql has several tables created, but how can I know if they are all necessary? in the documentation I have not known to find it

@sruizdegopegui
Log that you posted is not related with Mysql Table.
If we look at it, It seems to fail to find location of the Hbase region where the AgentEvent "table is stored.
Please, dig in the Hbase further.
thanks :)

Hi @koo-taejin
When i building collector deploy i added ip hbase to test it, but in log appears their hostname.
I have this error on collector log now...
Caused by: java.net.SocketTimeoutException: callTimeout=60000, callDuration=68521: row 'ApiMetaData,,00000000000000' on table 'hbase:meta' at region=hbase:meta,,1.1588230740 , hostname=pinpoint-hbase-7bffbfd84f-smv82,43665,1589277589497, seqNum=0                                                                                at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:169)                                                                               at org.apache.hadoop.hbase.client.ResultBoundedCompletionService$QueueingFuture.run(ResultBoundedCompletionService.java:65)                                                   ... 3 more                                                                                Caused by: java.net.UnknownHostException: pinpoint-hbase-7bffbfd84f-smv82
No errors on web.
Hbase log now:
`
2020-05-14 08:20:48,788 WARN  [NIOServerCxn.Factory:<IP_ADDRESS>/<IP_ADDRESS>:2181] server.NIOServerCnxn: caught end of stream exception
EndOfStreamException: Unable to read additional data from client sessionid 0x17208537293001a, likely client has closed socket
at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:228)
at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:208)
at java.lang.Thread.run(Thread.java:745)
2020-05-14 08:21:00,357 WARN  [NIOServerCxn.Factory:<IP_ADDRESS>/<IP_ADDRESS>:2181] server.NIOServerCnxn: caught end of stream exception
EndOfStreamException: Unable to read additional data from client sessionid 0x17208537293001b, likely client has closed socket
at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:228)
at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:208)
at java.lang.Thread.run(Thread.java:745)
`


fix: correctly handle debounce error

Should fix https://github.com/tannerlinsley/react-form/issues/355.

Hey all! Any chance of this being released to npm soon?


Fix #24 Table not updating after tree has changed

This commit fixes the issue of the table not
updating as the tree passed to it changed.
This is done by implementing OnChanges and
rerunning initialization code after the tree
has changed

Tested this out locally, and it works really well.
One thing I did notice, and maybe I am doing something wrong, is that when data is updated, it will revert back to the default isExpanded, i.e. if a row is closed when new data is emitted, the entire row will re-open. Is there a way to set the isExpanded to default to closed either in html or programatically?

Hey @peterjester , thanks for the feedback. I should have some time to properly implement this at some point in the next few days, I'll make sure to include appropriate testing for what you mentioned as well.


Attachment handling: Content-Disposition and page navigation

Attachment handling improvements:

When detecting attachments, the disposition type should match "attachment" case-insensitively.
I had a few websites that had "Content-Disposition: Attachment" and HtmlUnit failed to detect it.
Reference: https://tools.ietf.org/html/rfc6266
When attachment is handled by user-defined handler, the WebClient should stay on the same page. Navigating to the attachment "page" result in non-HTML page loaded to the client, preventing it from running any additional HTML commands.

Staying on the same page if the next page is sent to an attachment handler would make sense, and would be an easier set up for downloading attachments. Or if this could be toggled via an attachmenthandler or a config setting in htmlunit itself.
Using HtmlUnit to download attachments actually is one of the benefits when comparing to other Selenium supported browsers, as we can directly work with the streams, detect when they are finished while also preventing a deadlock if the stream is stuck (Can't close Firefox via Selenium if a download is "active", even when stuck. And its really hard to set destinations of downloaded files, requiring to implement a more complex logic)
So seeing any suggestions for these cases as a HtmlUnit enthusiast is really nice :)

Hi Alex, hi skyhirider,
have implemented a (hopefully) more backward compatible and flexible solution.
Please have a look at my commit and provide feedback.

Just made a new snapshot build available containing my version of this. Hope you like it. If not - reopen this.

Looks good rbri!
Thank you for looking into this & adapting this suggestion!


[posix] fix unused private variables

This commit fixes the unused private variable kKeyCalibratedPower error when OPENTHREAD_CONFIG_PLATFORM_POWER_CALIBRATION_ENABLE isn't enabled.
This commit also eliminates some unnecessary member variables.

The error:
In file included from /Users/runner/work/ot-br-posix/ot-br-posix/src/posix/platform/configuration.cpp:29:
/Users/runner/work/ot-br-posix/ot-br-posix/src/posix/platform/configuration.hpp:119:31: fatal error: private field 'kKeyCalibratedPower' is not used [-Wunused-private-field]
    const char               *kKeyCalibratedPower      = "calibrated_power";


Split Audio

How I can use this library to split audio into chunks
for example, I have an audio file with a size of 100 seconds
I need to cut that into small files from as following
a file contains the audio from second 0 to second 5
a file contains the audio from second 23 to second 40
a file contains the audio from second 80 to second 90
I use the following code but I got an error message
`from pyAudioAnalysis import audioTrainTest as aT
from pyAudioAnalysis import audioBasicIO
from pyAudioAnalysis import ShortTermFeatures
from pyAudioAnalysis import audioSegmentation as aS
[Fs, x] = audioBasicIO.read_audio_file("C:/Test/HelloDialog.wav")
F, f_names = ShortTermFeatures.feature_extraction(x, Fs, 0.005Fs, 0.9Fs)`
is this correct ?

maybe better to use sox command line tool for such tasks

maybe better to use sox command line tool for such tasks

Indeed u can use sox, or ffmpeg command line (check may article here for some examples https://medium.com/behavioral-signals-ai/basic-audio-handling-d4cc9c70d64d)
also there are plenty of examples in this library that show how u can do this programmatically using wavwrite (e.g. check the silence removal function wrapper that also saves the non-silence segments to wav files).

Indeed u can use sox, or ffmpeg command line (check may article here for some examples https://medium.com/behavioral-signals-ai/basic-audio-handling-d4cc9c70d64d)
also there are plenty of examples in this library that show how u can do this programmatically using wavwrite (e.g. check the silence removal function wrapper that also saves the non-silence segments to wav files).


Custom message attribute is not considering with instance in logs in automation.log

Not getting custom message in logger file in automation.log
Below are the steps to reproduce issue.

setup:

Create domain, namespace, class and instance pointing to method

testSteps:

Navigate to automate > automation > simulation page
Fill values for attribute/value pairs of namespace, class, instance and add message attribute with any value and click on submit.
See automation.log

expectedResults:

Custom message attribute should be considered with instance in logs

Reproducer build: <IP_ADDRESS>.20210223202812_caa005c


Configuration from CSS variables

allow configuration provided by CSS to override configuration on the <img tag.
This is done in 2 patches, the first only implements this for aspect ratio, the second for all configuration items. I don't know what is preferred by the lazysizes developers.

I'll note that CSS variables can be used to pass all sorts of options through, not just the aspect ratio. It might be wise at this point to add a prefix to the variable so that perhaps later the collection of these options can be centralised.
e.g. --ls-aspect-ratio

hmm, the documentation here: http://afarkas.github.io/lazysizes/rias/ is wrong until the .min file gets rebuilt. Perhaps better to not use the minified files there?

actually the problem is that we should have used the master branch not the gh-pages branch. I use the gh-branch to reflect the current stable version and the master is the branch where the active dev happens.
I don't expect to many people using this feature though (i.e.: no ie11/edge support). (Btw.: I heavily use the css content property to configure JS modules/widgets.)


Some commits that makes AudioPlayer usable for us

Hello,
Here is a set of commit that you could merge. These are useful to us so maybe it can be to others :)
Regards

Hi @PhilippeBridant
Thank you for your contribution! I added a comment for the flag you added because I'd like to understand what's wrong, and if possible use another existing flag - maybe I forgot a place where I should check it.


DM sizes fix

This change is

It is your project, you chose what you prefer ;)
But please make it a commit suggestion in file diff instead of a comment, so that I don't have to reopen every thing.

Won't accept this PR, as I don't want "if" in update functions.


pydeck: Minor spelling corrections

Description
Minor misspellings on docs page: Installing pydeck.
"Jupyter Lab" -> "JupyterLab"
"Google Collab" -> "Google Colab"

Addressed in #4496


Update credentials to support fish shell

source credentials does not work in fish:
credentials (line 4): Unsupported use of '='. In fish, please use 'set WALLET_NAME "edd"'.
from sourcing file credentials
source: Error while reading file “credentials”

By switching the credentials.template over to use the format set VAR "value" we support both bash and fish, while currently we only support bash*.
* the inferior shell

Thanks for the 🐛 report, I'll spin off a branch and get you to test this for us if you're happy to be my test subject 🙏

Thanks for the 🐛 report, I'll spin off a branch and get you to test this for us if you're happy to be my test subject 🙏

Just testing this in zsh and I'm not sure it works as you suggest, I'll search for a xplat solution, fallback I'll add a section on this to troubleshooting

Just testing this in zsh and I'm not sure it works as you suggest, I'll search for a xplat solution, fallback I'll add a section on this to troubleshooting

A possible solution is something like this, but then that's maybe harder to deal with for newbie users. Since I dont have fish, please can you review/test the best solution?

A possible solution is something like this, but then that's maybe harder to deal with for newbie users. Since I dont have fish, please can you review/test the best solution?

Fish is the least common of three I suspect, so let’s just leave it and awkward people like me can figure it out for themselves

Fish is the least common of three I suspect, so let’s just leave it and awkward people like me can figure it out for themselves


NativeModule.RNPermissions is null when using Expo

Expo version: 36.0.0
React-Native version: 0.61.4
React-Native-Permissions version: 2.0.9
I am trying to build an app using expo and throws this error:
"if (RNPermissions == null) {
throw new Error(react-native-permissions: NativeModule.RNPermissions is null. To fix this issue try these steps: • Run \react-native link react-native-permissions` in the project root.
• Rebuild and re-run the app.
• If you are using CocoaPods on iOS, run `pod install` in the `ios` directory and then rebuild and re-run the app. You may also need to re-open Xcode to get the new pods.
• Check that the library was linked correctly when you used the link command by running through the manual installation instructions in the README.

If you are getting this error while unit testing you need to mock the native module. Follow the guide in the README.
If none of these fix the issue, please open an issue on the Github repository: https://github.com/react-native-community/react-native-permissions`);
} "

The app works fine when I build it without using expo.
Any ideas?
Thanks

HI i get this error even with out expo..RN version     "react-native": "^0.59.8",
"react-native-permissions": "^2.0.9",

@BasilJohn everyone gets this error when the module is not linked in correctly. You must have a project config / module install issue of some sort.

@BasilJohn everyone gets this error when the module is not linked in correctly. You must have a project config / module install issue of some sort.

Thank you..I am checking

@BasilJohn everyone gets this error when the module is not linked in correctly. You must have a project config / module install issue of some sort.

Thank you..I am checking

I encountered the same problem and the same version number as you, did you solve it?

Here is the solution


issue with creating a bootstrap issue code, everything is right on the output but the program doesnt like my code

Challenge Create a Bootstrap Headline has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

jQuery Playground

@erikarntson thanks for the issue but if you get stuck or have questions with a challenge in the future, please first ask questions to the Help Room.
Hint: the tests that are failing are
Your h3 element should be colored by applying the class text-primary and
Your h3 element should be centered by applying the class text-center.
The new changes need to be applied to the h3 element directly.
Closing as not an issue with the site. Happy coding!


go/worker/executor: batch CheckTx transactions

Fixes: https://github.com/oasisprotocol/oasis-core/issues/2548
TODO:

[ ] make sure in oasis-sdk that batch-wide limits are not applied to check-tx batches - as for check-tx the scheduler cannot know the weights up-front. so the runtime should not enforce batch-wide limits

Is there any performance impact?

Yeah the single-machine accounts CI benchmarks (from oasis-sdk CI) goes from ~35 to ~150, and the new bottleneck is serially fetching accounts from storage via host (https://github.com/oasisprotocol/oasis-sdk/issues/278).  Also hitting the dispatchers BACKLOG_SIZE limit with large number of concurrent transactions is gone.


Feature Request: azure cli to enable "App Service Authentication/Authorization"

Description
Capability to use azure cli to enable App Service Authentication/Authorization.

Currently this only appears to be supported via portal interface, (as described here https://docs.microsoft.com/en-us/azure/app-service-web/app-service-web-get-started-2#authenticate-your-users)

+1
Hi,
I was just searching for an answer to this as well. Are there any other methods of achieving this in an automated way? I guess I'll be looking at RM templates to configure some parts of my infrastructure to fill in the missing gaps.
Thanks!
Ben.

@bccore Are you willing to share the other methods you found to achieve this (something about RM templates)? I would prefer to see this implemented as standard az-cli fare but I would consider expanding my knowledge of an alternative in the meantime.

@iyerusad sorry, for not responding earlier. I haven't yet a working solution for this to automate this all. It will by a combination of the graph api for azure objects and resource manager templates for the rest. We're actually looking to avoid using azure cli now so we have everything in one place. It's very much a work in progress though as the documentation is not complete...

In the interim, Here is a stackoverflow question that goes into some detail on how to do this using a Azure Resource Manager (ARM) template: https://stackoverflow.com/questions/35846300/is-it-possible-to-script-the-configuration-of-azure-app-service-authentication/41882512#41882512


goerli: The zenquencer is not rendering

Explorer Alpha build versions:
v0.17.0
Issue Description:

On scene /goto-local 74,13 the zenquencer should be present and we should be able to compose different melodies, but the scene is currently not rendering.
Evidence:

Additional Notes:

Solved with build v0.19.0


Are there any defined event handlers?

I'd like to receive an onMonthChanged(Calendar calendar) or similar event when the user swipes through months. Does anything like this exist? My API only feeds three months at a time so it would be helpful to retrieve the next three months' worth of data when the selected/ viewed month changes.

Never mind. I should look at the API. For reference:
    mCalendarView.setOnDateChangedListener(...);
    mCalendarView.setOnMonthChangedListener(...);


build information as compile time defines

there should be several defines which YOTTA generates build time:

YOTTA_BUILD_DATE
YOTTA_BUILD_TIME
YOTTA_BUILD_SCM_HASH   (GIT/HG HASH)
YOTTA_BUILD_UUID (generated by yotta)

Those are very important for example when verify that software under test is what we expect..

Looks that this affects only to this file:
https://github.com/ARMmbed/yotta/blob/master/yotta/lib/cmakegen.py#L213

The challenge here is that we don't want to re build everything every time the config header changes, so this can't be put in the config header (or on the command line).
Instead I'm thinking of putting this in a separate yotta-generated header which is not automatically included, and which you'll have to explicitly include.
If this header is generated in the root of the build directory (like the config header), then there are two options for how to include it:

yotta defines the path to the file as a -D definition, which you can then #include YOTTA_BUILD_INFO_HEADER, or similar. The challenge here is that CMake will not track the dependency on this file, so if you want the object including that header to be rebuilt on every build then you will have to add custom CMake to explicitly add that dependency.

we could require custom CMake to include the file at all (path constructed in cmake as "${CMAKE_BINARY_DIR}/yotta_build_info.h"), since you're probably going to want to do custom CMake anyway

just thinking out loud...

it's good to thinking out loud! I see your point. This is not as simple as I originally was thinking but luckily you give already two solutions :+1:


halva.vm does not update after initial

const { vm } = halva({ hello: 42 })
vm === { hello: 42 }
vm.hello = 1
vm === { hello: 42 }

i don't think there's a way to fix this. get op gets evaluated at deconstruct, never again.
if you do
const h = halva(state)
h.vm === state
h.vm.hello = 1
h.vm === { hello: 1 }

can't fix this right now - update docs accordingly


Why the number of classes is 12 in region classification task?

Hi,
Thanks for your excellent work!

I noticed that the label in region classification task range from 0~12(e.g., train_room_pano_label.txt), what's the label's mean? I've thought it was the semantic category of the region (e.g., bedroom, kitchen, patio, etc.) ,but in data_organization.md, there should be 31 classes.

What's more, I wonder that what does the last two columns mean in  panorama_to_region.txt, why line3 and line4 are both 'b' in last column, but one is 2 and the other one is 6 in penultimate column? And in different house the number in penultimate column is different for the same string?

About the first question, the 12 labels can be found in tab. 5 in the paper.
I also wonder the meaning of the penultimate column. Do you have the answer now?


ci: Fail Miri CI on first failure

Which issue does this PR close?

Closes #5159
Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

With just adding the set -e the Miri CI check fails as expected: https://github.com/apache/arrow-rs/actions/runs/7321312775/job/19941544005?pr=5243

Thank you


Update ground segmentation part

To Whom It May Concern:
Hello! thank you for this wonderful page and I'd like to do PR to update the ground segmentation sections.
In particular, I uploaded some renowned ground segmentation methods (over 100 stars)
Thank you for giving me the opportunity to contribute to this site :)

@horverno Thank you for your kind self-request, but is there another guy to check this PR? The procedure is stopped on the "1 pending reviewer"

@horverno Thank you for your kind self-request, but is there another guy to check this PR? The procedure is stopped on the "1 pending reviewer"

@LimHyungTae it is weekend you know 😅 i will review it next week

Sorry for bothering you on the weekend! I revised it. Thank you Horváth :) ~~

P.S. I guess that it is more appropriate that your urban_road_filter method is below the ground segmentation, isn't it?

Sorry for bothering you on the weekend! I revised it. Thank you Horváth :) ~~

No worries, thanks for this cool PR 👍
urban_road_filter has also similar purpose, but the goal is to extract drivable area not ground
I will consider a small reorganization in the future


feat(ui): Quantity Selector widget

Light
Light disabled
Dark
Dark disabled

Maybe now or in the future we can alter the BorderSide of the canIncrement and canDecrement states so the border colors flow a bit smoother.
A tiny UI tweak like..


Licence violations: Gson

Google Gson is provided as a jar file, but the source is not.
Either use a dependency resolution like maven #1 or provide links to the sources.

OH NO!

Seriously though, from what I've understood the Apache license doesn't require you to provide source, only a copy of the license itself.

Okay, then you should put the license into that directory. ;-)

why me? I didn't make this


The padding and margin make the News Page Heading look inconsistent and unattractive.

Description: The padding and margin make the News Page Heading look inconsistent and unattractive.
Screenshots

To Reproduce
Steps to reproduce the behavior:

Go to News Page
Open in mobile view

Expected behavior

Please assign it to me, I have PR ready

@akshitagupta15june Please assign this issue to me.