Proper naming for UpEdges/DownEdges methods

Currently, we have an UpEdges method which returns the nodes directly pointing to the current node, and a DownEdges method which returns the nodes directly pointed by the current node.
However, the UpEdges / DownEdges names may not be appropriate, and we are considering using other names.
The current candidates are:

UpEdges / DownEdges:

Pros: Currently being used.
Cons: There is no academic terms for "up edges" and "down edges" of a Directed Acyclic Graph (DAG).

Referrals / References:

Pros: Closer to the domain.
Cons: The potential concern is that we have too many things named references.

Parents / Children:

Pros: Straightforward.
Cons: DAGs are not trees.

Let's brainstorm for more names and do a vote!

As we all know, naming is hard! 😋

Maybe @jdolitsky might have some nice ideas here.
Things that get attached to an image, refer to the image manifest. So these are referrers of the manifest and the API in ORAS/OCI working group are all aligning with that so that sounds reasonable.
Looking from the attachment's point of view which is the source node, the image or blob is a sink node. I hope I am not wrong here - https://cseweb.ucsd.edu//~dasgupta/papers/poly.pdf
Given that these are polytrees it is ok to maybe call these are children since the Artifact points to its own blobs and a manifest which are all children of the source node here.
I'm actually thinking that we replace DownEdges ->

Children- which are descriptors with a type. For e.g. config blob is also a child of the manifest

Manifests may be children of a ManifestList/Index.

Links - Is another possibility but children sounds more clear since its a downward link. These are polytrees and so it might be ok to use parent child is my thinking.

I considered descriptors but that makes things a bit harder when you write something like manifest.Descriptors since the manifest has a descriptor and just having a plural should not be the only differentiator.
Things get a bit harder for upEdges -
If we extend this thinking a bit more, we could consider querying a blob to find all its referrers and if it's a common layer then all manifests that points to this blob (sink nodes) is a valid scenario.
So with that is mind I'm leaning towards calling upEdges as Referrers since asking a descriptor for all elements that refers to it is what we are doing.
Hope that helps with this. Either way renaming this before cutting a tag is what I am hoping for.

Thanks @sajayantony for the insights. I've created a poll fort this - See #144 .

I'm now actually prefer Parents / Children because it is at least easy to understand for users. 😄

The issue I have with the term parent is that the referrers are not parents of the manifest. It is like saying the manifest is the parent of the blob, which it isn't. Also the signature is not a parent of the image. The image needs to exist before the signature and might seem confusing. Again my vote would for something like
func Referrers(ref string) ([] descriptors)   // query all manifests that are linked to the passed in reference.
func Children(ref string) return some array of descriptors with type information. // Query all blobs is what I am understanding.
Currently does DownEdges return all blobs including the config blob. How do you differentiate this? Is it by ordinality?

Currently does DownEdges return all blobs including the config blob. How do you differentiate this? Is it by ordinality?
Yes, the return the blobs are ordered. The first one is always config if config is not optional. Also, the layers remain the original order.

Another option is Predecessors/Successors or DirectPredecessors/DirectSuccessors, which are the academic terms for "up edges" and "down edges" of a node in a directed graph.
It's mentioned in many books such as Understand Mathematics, Understand Computing.

It is like saying the manifest is the parent of the blob, which it isn't. Also the signature is not a parent of the image.

Agreed. But is the blob a child of the manifest, when the manifest is not the parent of the blob?

I considered descriptors but that makes things a bit harder when you write something like manifest.Descriptors since the manifest has a descriptor and just having a plural should not be the only differentiator.

Combining References and Descriptors, how about ReferencedDescriptors or DescriptorReferences ? So that we have Referrers/DescriptorReferences. @sajayantony

For the last exercise of API design on another SDK we prototyped how to calls would look in a small snippet and evaluated what aligns Best with the usage of the API. I think if we did a similar exercise it might help us come to a decision faster.
Would you be able to share how you would call These APIs with some contextual code around the calling method?

Actually oras-go v2 provides two sets of interfaces based on different perspectives.
From graph perspective, every ORAS target (including repository, OCI, and file) implements the UpEdges (or Predecessors) method that returns the nodes directly pointing to the current node.
From domain perspective, the remote repository target additionally supports the Referrers method that returns the artifact referrers of the given descriptor.
Note that the remote repository target provides both UpEdges method and Referrers method. (See https://github.com/oras-project/oras-go/blob/main/registry/remote/repository.go#L323-L356)
The UpEdges and Referrers methods both can be used for implementing oras discover. For DownEdges, it is used in the Copy function, but it may not be directly used by clients.

Here are some example snippets of how to use the Referrers and the Predecessors (previously UpEdges) methods for oras discover:
Discover artifact referrers against a remote repository
func main() {
	// remote repository discover
	ref := "myregistry.azurecr.io/foobar:latest"
	artifactType := "application/vnd.oci.image.manifest.v1+json"
	repo, err := remote.NewRepository(ref)
	checkError(err)

	ctx := context.Background()
	manifestDesc, referrers, err := discoverArtifacts(ctx, repo, ref, artifactType)
	fmt.Println("manifest digest:", manifestDesc.Digest)
	for _, r := range referrers {
		fmt.Println("referrer digest:", r.Digest.String())
	}
}

func discoverArtifacts(ctx context.Context, repo *remote.Repository, ref, artifactType string) (ocispec.Descriptor, []artifactspec.Descriptor, error) {
	desc, err := repo.Resolve(ctx, ref)
	if err != nil {
		return ocispec.Descriptor{}, nil, err
	}

	var res []artifactspec.Descriptor
	if err := repo.Referrers(ctx, desc, func(referrers []artifactspec.Descriptor) error {
		for _, referrer := range referrers {
			if artifactType == "" || referrer.ArtifactType == artifactType {
				res = append(res, referrer)
			}
		}
		return nil
	}); err != nil {
		return ocispec.Descriptor{}, nil, err
	}
	return desc, res, nil
}

Discover referrers against an OCI store
func main() {
	// cached directory discover
	ref := "latest"
	rootDir := "foobar"
	cache, err := oci.New(rootDir)
	checkError(err)

	ctx := context.Background()
	manifestDesc, referrers, err := discover(ctx, cache, ref)
	fmt.Println("manifest digest:", manifestDesc.Digest)
	for _, r := range referrers {
		fmt.Println("referrer digest:", r.Digest.String())
	}
}

func discover(ctx context.Context, target oras.GraphTarget, ref string) (ocispec.Descriptor, []ocispec.Descriptor, error) {
	desc, err := target.Resolve(ctx, ref)
	if err != nil {
		return ocispec.Descriptor{}, nil, err
	}

	predecessors, err := target.Predecessors(ctx, desc)
	if err != nil {
		return ocispec.Descriptor{}, nil, err
	}

	return desc, predecessors, nil
}

@sajayantony Are you OK with renaming UpEdges to Predecessors?

Looking at that sample - nope. I honestly prefer referrers.

Had a coversation with @shizhMSFT on this. And he feels strongly that we are implementing a graph here and so
Successors means all nodes pointed to from the current node and predecessors means all nodes that are pointing to the current node.
If we use that then we should give an explanation in the functions and interfaces of what an example successor and example predecessor would be.

I'm hoping this issues makes this in before releasing a 2.0 alpha of this package.

@sajayantony Sure, I will do this after #150 is merged.


Update CHANGELOG.md

Added the date, "(2021/05/13)" for version release 0.3.0

Hi @Noah6544,
Could you please change the target so that it goes to development branch instead of master.


model fusion sounds robotic\pitchy?

hey, I followed the instructions on combining 2 voice models, and no matter what 2 types of models im combining - the new model always comes out robotic and un-usable.
i pointed the gui to right files (both .pth files of the models from the 'weight' folders), and theyre both are V1.
am i doing something wrong here?
also, the merge doesn't produce a new 'added' file, so i tried (both of) the 'added' files of the original models that ive combined - maybe this is the problem?
thank you in advance for your help!

The "if_f0"and sample_rate config should also be the same

You mean the sample_rate config when im training the original model?
and as for the if_f0 - do you mean the ‘whether the model have pitch guidance’ (Also in each model training part)?
thank you!

The "if_f0"and sample_rate config should also be the same

You mean the sample_rate config when im training the original model?
and as for the if_f0 - do you mean the ‘whether the model have pitch guidance’ (Also in each model training part)?
thank you!

The "if_f0"and sample_rate config should also be the same

You mean the sample_rate config when im training the original model? and as for the if_f0 - do you mean the ‘whether the model have pitch guidance’ (Also in each model training part)?
thank you!

yes

The "if_f0"and sample_rate config should also be the same

You mean the sample_rate config when im training the original model? and as for the if_f0 - do you mean the ‘whether the model have pitch guidance’ (Also in each model training part)?
thank you!

yes

Well u did everything you said and it still comes out robotic.
Just for clearance - i chose the .pth files of the models from the weights folders (the small ones), and not those from the ‘logs’ folder. Is that ok? or that for the fusion i need both of the models big .pth files (‘G333…’ or ‘D333…’)?

The model fusion function only supports PTH under the weights folder. If the inference performance of the fused model is poor when all configurations are correct, it may be a problem with the two models to be fused themselves.


output for time series tasks

Hi Jerry, thanks for the nice work, I'm trying to use tcn for a multi-variate time series task, suppose two data points with different sequence length are x1 = [t1, t2, t3, t4], x2 = [t1, t2, t3, t4, t5, t6], and corresponding labels for each time-step are [y1, y2, y3, y4] and [y1, y2, y3, y4, y5, y6], padding them to the same length: x1 = [0, 0, t1, t2, t3, t4], x2 = [t1, t2, t3, t4, t5, t6] for mini-batch input.
My question is, given x1 and x2, how the model output the prediction for each time-step? like for x1 we want the model output [z0, z1, z2, z3, z4, z5] and we only take [z2, z3, z4, z5] for binary cross entropy loss with it's true label [y1, y2, y3, y4].
my current approach is refer to the mnist example, by modify the models forward with:

def forward(self, inputs):
"""Inputs dimension (N, C_in, L_in)"""
seq_len = inputs.shape[2]
y1 = self.tcn(inputs)
o = torch.cat([self.linear(y1[:,:,i]) for i in range(0, seq_len)], dim=1)
return o

this will output the same length as input, but I'm not sure if this is the correct understanding for tcn model, or there should be some other approaches.
Thank you.

For MNIST you only need one label prediction, so I only took the last time step for output. But generally, as is in your case, I think you are doing it in the correct way to take [z2, z3, z4, z5] to compute the loss with the groundtruth [y1, y2, y3, y4].

yes, and in order to output for each time-step, are these two approaches the same?
y1 = self.tcn(inputs)
o = self.linear(y1.transpose(1, 2))  # refer to copy memory task
and
y1 = self.tcn(inputs)
o = torch.cat([self.linear(y1[:,:,i]) for i in range(0, seq_len)], dim=1)

They should be, except that I think the second one is slower in practice because you are not exploiting the parallelism.


Convert os.path to pathlib

Jupyter Book depends on Python >= 3.6, which means that we could assume the existence of pathlib in handling paths in general. pathlib is generally a lot nicer than os.path, so we should make this switch for the sake of simplicity!
This issue is to keep track of this switch. I've already started the process here:
https://github.com/jupyter/jupyter-book/pull/403
though the meatiest parts (create.py and build.py) are still yet to be done. Let's take it one step at a time though :-)

Closing as this should be superceded by beta.jupyterbook.org


[hotfix][doc] FlinkKafkaConsumer will be removed with Flink 1.17 instead of 1.15

What is the purpose of the change
Back port #21172  to master: Change the docs: FlinkKafkaConsumer is deprecated and will be removed with Flink 1.17 instead of 1.15 since Flink 1.16 has code freeze and will be released soon.
Brief change log

kafka.md
zh kafka.md

Verifying this change
This change is a trivial doc update without any test coverage.

Because nothing has been changed until now and the content should be synced with older releases before consensus has been reached to remove the deprecated code. If we remove the entire line for now but couldn't remove the code with 1.17, we might have to change it back.
After removing FlinkKafkaConsumer and (maybe) graduating some APIs(need discussion and voting), the content should be updated. Removing the entire line is one option but better would be pointing out that the FlinkKafkaConsumer has been removed with 1.17 to share the reference with customers, in case they are looking for FlinkKafkaConsumer and could not find it.

I use FlinkKafkaConsumer with two consumer and two partitions. But the two consumers receive the same message regardless of which partitions it is pushed to. Can you suggest me to help solve this problem?


stringifyObjects fix

More info: https://stellarfoundation.slack.com/archives/dev/p1426693959000724

:+1:


tjson: Check how we support binary and object_id

This task is a part of #683 epic.
This task should be taken after #899 is done.
🎯  The goal of this task is to check if we have a better way to work with binary and object_id data types.
💡 Tip: it might make sense to check your implementation idea and some other important details with @AlekSi.
ObjectID
Due to serialization reasons, to avoid double-serialization ObjectID is implemented in a specific way. We need to check if it's possible to get rid of the ObjectID function and make sure that we reuse test cases from bson/fjson.
Binary
Binary implementation is quite special as well. We need to check that it works correctly with our test cases.
Definition of Done:

[ ] Improvements in dealing with these data types are made (if possible).
[ ] ObjectID and Binary types are covered with tests (unit, integration, fuzz). Test cases can be (and should be) ported from fjson and bson packages.
[ ] If integration tests don't exist yet or don't cover these types, create a separate issue to add integration tests for ObjectID and Binary.

@AlekSi please check the description. The task is ready for refinement/planning.


Add a child driven focus requesting mechanism

Currently, focus nodes are top-down. Ancestors must grant focus up until a widget's parent and a focus scope node can only request focus from its parent focus scope node but not from ancestors past its parent.
Create a mechanism where setFirstFocus requests can be bubbled up the tree while each ancestor can still enforce not granting focus to children that are offstage, behind modal overlays etc.

Do you have a use case in mind for this?


Filter Returns Empty Result

I am using following versions
| PHP | 7.4
| Elasticsearch | 7.16
| Laravel | 6
| Laravel Scout | 8.6
| elastic-scout-driver | 2.0
| elastic-scout-driver-plus | 3.1
I want to search and filter data at the same time. Search from a field and filter from another field. Search string must match in that search field and filter field should contain one of the values from an array. So I am making query like
$must = Query::match()
     ->field('full_text_search') // string field to search from
     ->query($normalizedSearchString); // $normalizedSearchString is the search string

$filter = Query::terms()
    ->field('authorList') // authorList is a field of single or multiple author name string (separated with (, ) comma and a space if multiple)
    ->values($authorFilter);  // $authorFilter is an array with single or multiple values (full name of author)

$query = Query::bool()->must($must)->filter($filter);
$finalSearchResult = Product::searchQuery($query)->size(10000)->execute();
$books = $finalSearchResult->models();

This returns no result. But if I omit the filter, only search query is returning expected result.
$query = Query::bool()->must($must);
$finalSearchResult = Product::searchQuery($query)->size(10000)->execute();

Is my approach wrong? What should be the right way to query to get my expected result?

Hi @zahidhasanemon,
The term search finds documents based on the exact value match. Therefore, it's better to define authorList as a keyword type in your mapping. In addition, authorList should be indexed as an array of values and not a single string, i.e.:
public function toSearchableArray()
{
   return [
       // other fields
      'authorList' => explode(',', $this->authorList) // you probably also need to trim each value
   ];
}

I hope this will give you the right direction. I'm closing this issue, cause it's a more ES-related question and not a package bug or a feature request.

@babenkoivan thank you very much for your suggestion and I am able to solve the filter. I need one more help if you may. I am trying to sort by created_at field. I have added the field in toSearchableArray method.
public function toSearchableArray()
{
    return [
        'full_text_search' => $this->full_text_search,
        'min_price' => $this->min_price,
        'created_at' => $this->created_at->timestamp,
        'authorList' => $this->authors,
    ];
}

and trying to sort like
$listBooks = Product::searchQuery($query)->sort('created_at', 'asc')->paginate(40)->onlyModels();
but I am getting Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. and I checked in kibana created_at field is indexed as string. I am able to sort by number fields like min_price. How can I sort using created_at filed??

Hey @zahidhasanemon, you need to make sure that your index has a proper mapping. created_at must be of date type with the corresponding format. You can use this package to create indices, update mapping, etc.


Compound literal in initializer

Test case:
int main(void) {
	int a[] = {1, (int){2}};
	return a[0] != 1;
}

Instead of {1, 2}, a gets initialized to {0, 2}.

Thank you for reporting! This is fixed with 2287ab34.


Fix typeError

array_keys() expects parameter 1 to be array, object given
Doc: https://doc.nette.org/en/3.0/sessions#toc-sections
At the end of the paragraph

Okey, thanks

ping @paveljanda
Datagrid.php:2092
Your new code on PHP7.3  throws
TypeError
Argument 1 passed to iterator_to_array() must implement interface Traversable, array given
Use as i commited above.
foreach ($section as $key => $val) {     echo "$key = $val"; }


Continue from stop

Hi great plugin, but could you please note if possible to continue from a specified point or at least write a marker into the revision file to what last batch was uploaded if ftp fails to continue, I currently am syncing the vendor foler in laravel and just want to complete one sync after which my autoloads will be the only things truly getting loaded but as keeps failing and never completes a full run

Ok so it think I fix as follow, sync my git then ftp the synced files then run deploy --sync with appropriate hash for commit, meaning all three points git,local and server will have same files. but it still be nice if it just tracked its own progress within the commit it uploading.

As the file tree is read from git, tracking the progress would be a quite complicated. That's a route this plugin will probably never take.
I've run into your issue myself, especially with folders not being able to be created and the upload process failing. It started to happen when I implemented a ftp and ssh transferring library, which I'll look into for a fix.
What exactly happened while uploading? Did a file transfer fail or while creating a folder?

Hi was just bit confused then remembered you just reading the git commit, so as you know the vendor list for laravel can get pretty massive, so it would run the ftp command and all is well - File uploaded
Then it just stops and reads something like mkdir()5 - assuming this is a folder error -whatever the case may be, I wrongly assumed that even though ftp fails the .revision would maybe just mark at which file it last saved and with deploy continue from that file within the commit list.
As mentioned I solved this with forcing a sync and ftp with filezilla. So it is not possible to mark the file url that was the last success saved file?
Thank you for a very useful plugin though, it just one nuance I had but lucky it not crippling.

Yes, the mkdir() function is the one I've seen failing too and will definitely look to fix it.
The /vendor folder gets pretty massive and we're supposed to run composer install on the server. I guess you don't have ssh access in your server though.

Hi yes shared hosting, so my flow is git commit, then use maneuver to match the commits and then from local repo ftp to live server.
I think if might simply be failing because, for instance if using filezilla it re-establishes connection , but now on fail cannot call reconnect and even if did call reconnect no way to truly continue from last uploaded file since it a direct link to the commit log.


Added options for Reporting Plugins to README

Closes #491
I added usage examples for reporting plugins to example configurations and the list of available reporting plugins.
This should simplify the usage of the tool so users do not have to look in the source files of the plugins to understand how they work.

Can you please close and re-open your PR? I think that's the only way to get the actions workflow to run on it.

@denewiler it seems like the action failures in here might also be occuring in main: https://github.com/sscpac/statick/actions/runs/7732454334/job/21082413604

The same unit test is failing in main and in this PR branch. Locally I ran statick against this branch (since that step gets skipped in workflows due to the failing unit test) and it passed. I'm good merging this and fixing the unit test separately.

One addition I would like to see is an updated changelog. I'm fine if we do that ourselves before the next release.

#493 created to fix unit test.


[master] Bump Mesos to nightly master 14586d5

High-level description
This is a routine bump to the latest Mesos and mesos-modules.
Related JIRA Issues
Checklist for all PRs

[ ] Included a test which will fail if code is reverted but test is not. If there is no test please explain here:
[x] Read the DC/OS contributing guidelines
[x] Followed relevant code rules Rules for Packages and Systemd

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[x] Changelog:
https://github.com/apache/mesos/compare/22471b83a418e614b19a7ae50b73ee028dc7c363...14586d5e6ba18a5edd087a1807dec7507a20dfa2

[ ] Test Results: [link to CI job test results for component]

[ ] Code Coverage (if available): [link to code coverage report]

@mesosphere-mergebot bump-ee

This repo has @mesosphere-mergebot integration. You can interact with the following commands.
@mesosphere-mergebot merge-it
@mesosphere-mergebot bump-ee
@mesosphere-mergebot override-status
@mesosphere-mergebot label [Request For Comment |Holding |Ship It |Ready For Review |Work In Progress]

PR creators can apply one of  [Ready For Review |Work In Progress]. Owners can apply any label.

@mesosphere-mergebot bump-ee

Closed in lieu of https://github.com/dcos/dcos/pull/3042


doesnt install for m1 mac

onda create --name beakerx -c beakerx -c conda-forge python=3.7 beakerx_all
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:

python=3.7
beakerx_all

Current channels:

https://conda.anaconda.org/beakerx/osx-arm64
https://conda.anaconda.org/beakerx/noarch
https://conda.anaconda.org/conda-forge/osx-arm64
https://conda.anaconda.org/conda-forge/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org

and use the search bar at the top of the page.

you can use pip install,  see my dockerfile
https://github.com/jimmybow/docker-java-notebook/blob/master/build/Dockerfile


feat: singleton interface mode

As a follow-on to https://github.com/wasi-gfx/webidl2wit/pull/9, an alternative to the top-level getWindow() style of runtime API could be to define the top-level interface explicitly.
This PR adds a new option - singleton_interface: Option<String> which when set defines an interface that is a singleton that can be reflected as a WIT interface to be imported directly. Of course, this interface can't be a resource return for any other function when this is done. Validation should be included for that, but this PR doesn't currently include that as a simple initial implementation only.
With this approach, I'm able to use an interface name convention to define eg an interface name of navigator-gpu to mean that this interface object can be read of the global at that object position in the Jco convention, which seems like it can work well for a two-mode IDL binding convention for these different use cases, allowing the zero-runtime automatic nature of --experimental-idl-imports in Jco to also work for this convention in addition.
Feedback very welcome.

This PR also updates to the latest deps and fixes a bug where set-type was being output as set-%type


[BUG] Excel recognise the file as .txt instead of .csv

I use the plugin to do simple export like this: $('#blank').tableExport({             type: 'csv',             csvEnclosure: '"'         });. However, when I open the file in Excel, Excel recognise the file as .txt (when I use "save as"). I think because of this, when I hit "Save" on Excel, it automatically changes the format from comma to tab delimiter. Can you look into this? Thanks

@mankinchi – This TableExport is not the same plugin you are using. We use formats rather than type to specify file format.


more optimize for skip list

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

2 of 2 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.0004%) to 99.564%

Totals

Change from base Build<PHONE_NUMBER>:
-0.0004%

Covered Lines:
1141

Relevant Lines:
1146

💛  - Coveralls


Update salt

@bors-servo r+

:pushpin: Commit 33095cd has been approved by jdm

:hourglass: Testing commit 33095cde012545fe3d4ad617e326a02558dcaef9 with merge 5ac0a1705bf29e82a65829625fb3899a3d847f68...

:sunny: Test successful - checks-travis
Approved by: jdm
Pushing 5ac0a1705bf29e82a65829625fb3899a3d847f68 to master...


How to pass Query Params?

Hey guys,
I've been working on a project using Zoid for a bit now but I'm a bit hung up on how to properly pass query parameters.
Do I pass them in the URL of the page that the xcomponent is being rendered on? I'm passing them on the parent page where the component is being rendered such as: www.example.com/index.htm?make=honda&model=civic&maxprice=20000
However, I'm getting an error the make is required so doesn't seem like the props are being consumed.
What am I missing here?
Login component defined
var MyLoginXComponent = xcomponent.create({
    // The html tag used to render my component

    tag: 'my-login-component',

    // The url that will be loaded in the iframe or popup, when someone includes my component on their page

    url: xcomponent.getCurrentScriptDir() + '/login.htm',

    dimensions: {
        width: '500px',
        height: '1000px'
    },

    props: {
        make: {
            type: 'string',
            queryParam: true //<EMAIL_ADDRESS>        },

        model: {
            type: 'string',
            queryParam: true
        },

        maxprice: {
            type: 'string',
            queryParam: true
        }
    },

    scrolling: true,
    autoResize: true
});

JS File

    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-material-design/4.0.2/bootstrap-material-design.css" />
    <link rel="stylesheet" href="../../common/login.css" />

Parent Page rendering xComponent
<!DOCTYPE html>

    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-material-design/4.0.2/bootstrap-material-design.css" />
    <link rel="stylesheet" href="./common/index.less" />

Best bang for your buck | Honda Vehicles

You would need to actually pass those props when you render the component on your parent page:

Alternatively you can make these props optional, by setting:
    props: {
        make: {
            type: 'string',
            required: false,
            queryParam: true //<EMAIL_ADDRESS>        }
     }

See here for a full working example using the

Is that correct?
Also - Goodness batman with these response times. It's incredibly impressive.

You'd probably want to do something like:

(I know this is a little janky. I'm not the hugest fan of the


[static_comments] Support more metadata formats via metadata extractors

Fixes #232
It uses the metadata extractors introduced in getnikola/nikola#2861, which will be available in Nikola v8.

The main code change is in b2b1e2f207c034983c0e8009e3566f246361ee41, the other commits are copying the plugin from v7/ to v8/ (d7b12b3c1f3513e51e1d18da8607190770142401), preparation (0cbe195b948b9cf7f4ec24421a21ede2ebe45bea) and documentation and version bumping (36310dd76b3b80d7760a25557ba8d7c30e5f73c0).

Thanks for reviewing!


How to set final kernel parameters?

Thank you all for the speedy answers on the keymap issue, but one last question and I will be satisfied.
If I am understanding how ZBM works, the boot parameters set for ZBM do not affect the final boot after entering in the passphrase for the encrypted ZFS root. So then, how would one passthrough kernel parameters for the final boot?

The easiest way to do that is zfs set org.zfsbootmenu:commandline="your kernel command line" zroot and it'll set it for all boot environments.

Thank you, to be absolutely clear, does it matter if you have set previous params? will they maintain? (I assume so).
I asked because I saw that construction in the instructions for Void Linux.

The zfs set command will remove any previous options and replace them with whatever you've now entered. You can use zfs get org.zfsbootmenu:commandline zroot (or possibly zroot/ROOT, depending on where you set it last) to see what the previous value was.

Great, that is simple:

zfs get org.zfsbootmenu:commandline <root dataset> — or — cat /proc/cmdline to get all previously set params
zfs set org.zfsbootmenu:commandline "<previous options> <new options>" <root dataset> to set the new params.

Then a reboot should be fine, correct? no need to reconfigure ZBM? (though it wouldn't hurt).

Great, that is simple:
1. `zfs get org.zfsbootmenu:commandline <root dataset>` — or — `cat /proc/cmdline` to get all previously set params

2. `zfs set org.zfsbootmenu:commandline "<previous options> <new options>" <root dataset>` to set the new params.

Then a reboot should be fine, correct? no need to reconfigure ZBM? (though it wouldn't hurt).

That's exactly right, yup. Don't set the root= option, that will be filled in by ZFSBootMenu when it sets up the kexec command.
You don't need to rebuild/recreate ZBM, that value is read from the ZFS filesystem on each boot. Remember that ZFS properties are inherited and the more-specific instance takes precedence. So if you set an option on zroot/ROOT, but also set one on zroot/ROOT/be, the value on zroot/ROOT/be will be the one that is used.

Thank you, I was assuming that was the case.


Add CI for WASI threads

Not sure why the compilation on macos-latest job is failing, it works properly when I try it directly from my forked repo https://github.com/eloparco/wasm-micro-runtime/actions/runs/3713650979/jobs/6296822730.

It looks like all jobs are succeeding now, using wasi-sdk version 16 and wasi-libc with branch wasi-sdk-17  on all targets.

Actually, looking at the output (and at some tests that I was doing locally) I see a regression:
New thread ID: 1, starting parameter: 52
Updated value: 8
Thread completed, new value: 0, thread id: 0

The example is compiled in release mode so the assert assert(thread_id == data.thread_id); doesn't fail, but the value of the thread id is wrong.

@wenyongh let's wait for @loganek's feedback before merging

BTW, is there an issue to track the compilation error in https://github.com/eloparco/wasm-micro-runtime/actions/runs/3730554354/jobs/6327794669?

@eloparco Wondering why you use wasi-sdk-16.0 for the CI and use wasi-sdk-17.0 for wasi-thread sample? Why not use wasi-sdk-17.0 for all?
We are upgrading the toolkits (llvm, wasi-sdk, emsdk, binaryen and so on), and are considering upgrade wasi-sdk to 17.0 directly.

@eloparco Wondering why you use wasi-sdk-16.0 for the CI and use wasi-sdk-17.0 for wasi-thread sample? Why not use wasi-sdk-17.0 for all?

@wenyongh That's what I tried first, but it was failing on ubuntu/android: https://github.com/eloparco/wasm-micro-runtime/actions/runs/3703249930/jobs/6274621343

BTW, is there an issue to track the compilation error in https://github.com/eloparco/wasm-micro-runtime/actions/runs/3730554354/jobs/6327794669?

@lum1n0us Not yet, should I create one in this repo?

@eloparco Wondering why you use wasi-sdk-16.0 for the CI and use wasi-sdk-17.0 for wasi-thread sample? Why not use wasi-sdk-17.0 for all?

@wenyongh That's what I tried first, but it was failing on ubuntu/android: https://github.com/eloparco/wasm-micro-runtime/actions/runs/3703249930/jobs/6274621343

@eloparco are you going to fix the issue? Or should we at least have an issue to upgrade to v17?

@loganek @lum1n0us I'll create an issue to track the upgrade to v17, putting links to the failing jobs

@eloparco Wondering why you use wasi-sdk-16.0 for the CI and use wasi-sdk-17.0 for wasi-thread sample? Why not use wasi-sdk-17.0 for all?

@wenyongh That's what I tried first, but it was failing on ubuntu/android: https://github.com/eloparco/wasm-micro-runtime/actions/runs/3703249930/jobs/6274621343

Got it, I tested building wasi-libc and other wasm app with wasi-sdk-17 on Ubuntu-20.04, and got the same errors:
/opt/wasi-sdk/bin/clang: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /opt/wasi-sdk/bin/clang)
/opt/wasi-sdk/bin/clang: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /opt/wasi-sdk/bin/clang)
/opt/wasi-sdk/bin/clang: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /opt/wasi-sdk/bin/clang)

It seems that wasi-sdk-17 requires that libc-2.32 or newer version is installed, while by default in Ubuntu-20.04 libc-2.31 is installed. It may work in Ubuntu-22.04. But it seems that we had better just upgrade scripts to support wasi-sdk-16 now.


Install Successfully - Receive 500 Error

Everything has installed successfully but I receive a 500 error via Nginx. Running OpenVZ Cent OS 6 container. I followed the instructions on the site, PHP 5.6 and nginx is working fine. Currently don't have a domain connected to it, currently using an IP.
Puffer config file:
server {
listen 80;
root /srv/PufferPanel;
index index.php;
server_name my.vps.ip;

client_max_body_size 20m;
client_body_timeout 120s;

location / {
    try_files /public/router.php =404;
    fastcgi_split_path_info ^(.+?\.php)(/.*)$;
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_index router.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include /etc/nginx/fastcgi_params;
}

location /assets {
    try_files /app/$uri =404;
}

}
Logs:
PHP Notice: Undefined property: stdClass::$debugging in /srv/PufferPanel/src/core/config/jsonconfig.php$g.php on line 45" while reading response header from upstream
Sorry for posting here but you guys have no contact form on the website nor anywhere to post. Anyone help?

If you are still having issues please open a thread on https://community.pufferpanel.com. Thanks!


Boost.Utility docs show busted image next to library name

Can't reproduce either in Crome or Firefox, maybe is fixed yet?

The HTML for this part is as such:

And appears to be coming from the readme. I'll take a look at the readme–rendering code and see if there's anything I can do to correct.

This is because of the principle that the contents of a Boost library repo are mapped to libs/X where X is the repository name.  The file in question is here:
https://github.com/boostorg/utility/blob/develop/doc/logo.png

Logging here that Boost.Atomic does the same thing, with the same HTML.

This has been fixed on the front end to hide the broken image link. Setting the relative path to an absolute path should be handled by the maintainers, and can be done on a case by case basis.

The solution is never "use an absolute URL"

It should be an absolute URL, but the images would best be hosted on github alongside the readme, for long term stability.


release-1.7: Disable building Envoy filter example in CI

See https://github.com/istio/istio/issues/30484

/retest


Enter "will out of the kindness of their hearts a few philoso-phers tell me"

https://github.com/palewire/cummings.ee/blob/main/_data/poems/is-5/three-viii.yaml
https://archive.org/details/is-5-ee-cummings/page/n93/mode/2up

I'm now going with long-single lines with a standard line wrapping indent, allowed to break responsively at the device width.  The main problem here, I think, is that the find "(here the absurd" line wraps to the far left, not relative to the starting point of where the line beings.


Can't access to repository

how i can acess to this course, they are blocking when i want to clone the repo

Hello,
I'm surprised because the repository is public.
You can fork it on your github account.
Have you also tried to download it instead of cloning it?
Regards,
Dan

Bonjour,
it works if i download it directly, but "git clone" and access to git
doesn't work, thanks
Regards
Abdesselam DOUICHI
Développeur full-stack
Tel. : +33 6 59 44 55 68
Le jeu. 19 nov. 2020 à 14:22, MagierDan<EMAIL_ADDRESS>a écrit :

Hello,
I'm surprised because the repository is public.
You can fork it on your github account.
Have you also tried to download it instead of cloning it?
Regards,
Dan
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/HEIWA-IT/TripAgency/issues/8#issuecomment-730370966,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHERGJ6G7JJCZRW6YCWL7BTSQULY7ANCNFSM4T3LS2RA
.

Hello,
Happy to read that you get the code.
Others people succeeded in cloning the repository.
I think you should look with someone what went wrong with your git clone.
For instance what is the message returned by your git command?
Regards,
Dan


Update buf.yaml "default" to "STANDARD"

PR Template:
Describe your changes

Move buf push to only run when changes pushed to main.
Recommended to update default usage in buf.yaml to STANDARD

WARN	Category DEFAULT referenced in your buf.yaml is deprecated. It has been replaced by category STANDARD.

	The concept of a default rule has been introduced. A default rule is a rule that will be run
	if no rules are explicitly configured in your buf.yaml. Run buf config ls-lint-rules or
	buf config ls-breaking-rules to see which rules are defaults. With this introduction, having a category
	also named DEFAULT is confusing, as while it happpens that all the rules in the DEFAULT category
	are also default rules, the name has become overloaded.

	As with all buf changes, this change is backwards-compatible: DEFAULT will continue to work.
	We recommend replacing DEFAULT in your buf.yaml, but no action is immediately necessary.

Ticket reference (if applicable)
Fixes #
Checklist

[ ] Are the agreed upon acceptance criteria fulfilled?

[ ] Was the 4-eye-principle applied? (async PR review, pairing, ensembling)

[ ] Do your changes have passing automated tests and sufficient observability?

[ ] Are the work steps you introduced repeatable by others, either through automation or documentation?

[ ] If automation is possible but not done due to other constraints, a ticket to the tech debt sprint is added
[ ] An SOP (Standard Operating Procedure) was created

[ ] The Changes were automatically built, tested, and  - if needed, behind a feature flag - deployed to our production environment. (Please check this when the new deployment is done and you could verify it.)

[ ] Are the agreed upon coding/architectural practices applied?

[ ] Are security needs fullfilled? (e.g. no internal URL)

[ ] Is the corresponding Ticket in the right state? (should be on "review" now, put to done when this change made it to production)

[ ] For changes to the public API / code dependencies: Was the whole team (or a sufficient amount of ppl) able to review?

/lgtm


Fix #129 - Add support for alternative axis metrics in plot method

This PR partially addresses #129 by adding support for custom axis metrics in matplotlib plots (i.e. plot method).

TODO:

[X] Implement support for custom axis metric in Embedding.plot method.
[X] Add tests for custom axis metric of Embedding.plot method.
[X] Implement support for custom axis metric in EmbeddingSet.plot method.
[X] Add tests for custom axis metric of EmbeddingSet.plot method.

Backwards incompatible changes: None.

Thanks for submitting a pull request 🚀 @tttthomasssss will take a look at it as soon as possible ✨

Nice! This is a really cool feature!
I'll merge this today and I might just do a release as well. We've added a lot of features.


ImportError: cannot import name 'DetectionOntology' from 'autodistill.detection' (/mnt/scratch/sibo/autodistill/autodistill/detection/init.py)

python code:
from autodistill_grounding_dino import GroundingDINO
from autodistill.detection import CaptionOntology
Traceback (most recent call last):
File "label_visualize.py", line 8, in
from autodistill_grounding_dino import GroundingDINO
File "/mnt/home/sibo/.conda/envs/autodistill/lib/python3.7/site-packages/autodistill_grounding_dino/init.py", line 1, in
from autodistill_grounding_dino.grounding_dino_model import GroundingDINO
File "/mnt/home/sibo/.conda/envs/autodistill/lib/python3.7/site-packages/autodistill_grounding_dino/grounding_dino_model.py", line 17, in
from autodistill.detection import CaptionOntology, DetectionBaseModel
File "/mnt/scratch/sibo/autodistill/autodistill/detection/init.py", line 1, in
from autodistill.detection.caption_ontology import CaptionOntology
File "/mnt/scratch/sibo/autodistill/autodistill/detection/caption_ontology.py", line 4, in
from autodistill.detection import DetectionOntology
ImportError: cannot import name 'DetectionOntology' from 'autodistill.detection' (/mnt/scratch/sibo/autodistill/autodistill/detection/init.py)

same problem

same problem, too

This should now be fixed in autodistill==0.1.7. Please test and let us know if you run into any issues!

Is there not a pip wheel of new release?  When I did a new pull and run pip install . I get an error
D:\work\dev\github\autodistill>pip install .
DEPRECATION: Loading egg at c:\python\python311\lib\site-packages\autodistill-0.1.3-py3.11.egg is deprecated. pip 23.3 will enforce this behaviour change. A possible replacement is to use pip for package installation..
Processing d:\work\dev\github\autodistill
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "D:\work\dev\github\autodistill\setup.py", line 12, in
long_description = fh.read()
^^^^^^^^^
File "C:\Python\Python311\Lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 2399: character maps to
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

There should be. Did you pip install autodistill==0.1.10?

Apologies. We pushed a lot of updates today to resolve some issues with CSV path resolution and to add new command line flags for running autodistill in a non-interactive mode. With that said, these changes will probably not have an impact on the issue you reported. Let me investigate with the team and get back to you.

Hello there! Can you run pip install --upgrade autodistill and report back? This issue should now be solved.

Upgraded autodistill and ultralytics to compatible version.  Following code returns a circular import error.
from autodistill_grounded_sam import GroundedSAM
from autodistill_yolov8 import YOLOv8
from autodistill.detection.caption_ontology import CaptionOntology

# define an ontology to map class names to our GroundingDINO prompt
# the ontology dictionary has the format {caption: class}
# where caption is the prompt sent to the base model, and class is the label that will
# be saved for that caption in the generated annotations
base_model = GroundedSAM(ontology=CaptionOntology({"car": "car"}))

# label all images in a folder called `context_images`
base_model.label(
  input_folder="D:/work/dev/python/segmentation/test/03_split/",
  output_folder="D:/work/dev/python/segmentation/test/03_split/"
)

D:\work\dev>C:/Python/Python311/python.exe d:/work/dev/python/labeling/autodistill.py
Traceback (most recent call last):
File "d:\work\dev\python\labeling\autodistill.py", line 1, in
from autodistill_grounded_sam import GroundedSAM
File "C:\Python\Python311\Lib\site-packages\autodistill_grounded_sam_init_.py", line 1, in
from autodistill_grounded_sam.grounded_sam import GroundedSAM
File "C:\Python\Python311\Lib\site-packages\autodistill_grounded_sam\grounded_sam.py", line 17, in
from autodistill.detection import CaptionOntology, DetectionBaseModel
File "d:\work\dev\python\labeling\autodistill.py", line 1, in
from autodistill_grounded_sam import GroundedSAM
ImportError: cannot import name 'GroundedSAM' from partially initialized module 'autodistill_grounded_sam' (most likely due to a circular import) (C:\Python\Python311\Lib\site-packages\autodistill_grounded_sam_init_.py)

OK, when I run this from the root autodistill github repo locally, it works.  Thanks!


feat: add rating controller

What type of PR is this?
feat: add rating controller

What this PR does / why we need it
Which issue(s) this PR fixes

Fix: https://github.com/kubebb/core/issues/249
Special notes for your reviewer

I can release a new version v0.1.4. And you take this as the default image tag.

@0xff-dev update the image to v0.1.4


make bower export 'underscoreDB' variable, instead of using _.mixin method directly

Make browser.js export 'underscoreDB' in global scope as variable.
Before, browser.js called .mixin method directly. so the user could not choose whether '' refers to underscore or lodash.

Hi @ironhee ,
Not sure to understand.
You mean, the user could not choose whether '_' refers to underscore or lodash.
But, usually you load either lodash or underscore in the browser?

Yes. I usually load either lodash or underscore in the browser.
but I think for the sake of symmetry with node.js, bower package should export mixin variable and turn over the responsibility of calling _.mixin to user.
At least exporting mixin variable in global scope can be pursued more symmetry with node.

Unfortunately, there's no best/official practice for writing libraries for Underscore (at least not aware of).
I understand the symmetry part but other libraries just  seem to automatically use _.mixin when used in the browser. For example, https://github.com/documentcloud/underscore-contrib.
The only exception would be https://github.com/epeli/underscore.string but I guess it's because it doesn't actually depend on underscore.
So, following a principle of least surprise, I think it's better and simpler to keep:
<script src="underscore.js" type="text/javascript"></script>
<script src="underscore-db.js" type="text/javascript"></script>

If things change, I'll be happy to update the project.
Thanks again for the PR.

thank you :D.
After read your comment, I also agree about your opinion. It's better and simpler way for now.
I always conveniently use your libraries.
Thank you :D
Have a good day~~~


The application was unable to start correctly (0xc000007b).

Hi, when I run v0.4.1 with the libwinpthread-1.dll in the same directory then it will not start:
The application was unable to start correctly (0xc000007b). Click OK to close the application.
Windows 10, 64bit

@hoffmabc did you get this working? I can spin up a windows VM if necessary.

Let me check it now.

Try with this file https://github.com/OpenBazaar/openbazaar-go/releases/download/v0.4.1/libwinpthread-1.dll

@hoffmabc it works with that dll :)

Looks like we'll need a 64-bit one and 32-bit.

lol, happen to me , I tried with all dlls but nothing


how to disable zoom in and set to zoom out in spesifik action

i use this library to show image selected from galery, but on multiple select image is enabled, i wan to zoom out image preview (this library) and disable for zoom in (like instagram) please help me. how to do?

Hi, @yudikarma
First, thank you for using this library.
However, I didn't understand your problem. Can you explain more detail?

so i create some feature like instagram galery, when user click item photos i show photos in photoview use this library for make that zoomable, but, when user click button for support multiple select photos i dont know how to make that image show cant zoom, what method name for disable zoom ? , actualy i just want to make my photoview user this library can zoom only when user not enable support multiple select photos in my app. btw thanks for awesome library

I'm sorry for late replying.
If you want disable zoom, you should set setScaleEnabled(false).
If you want disable scroll, you should set setScrollEnabled(false)

big thanks @helloyako


[Question] Is it possible to implement this layout?

Hello,
I'm trying to implement this layout:

I don't find a way to implement it with this library, am I missing something or it's not possible out of the box?
Do you think it would be possible to implement it and could you point me out to a place in the source code where I could implement it myself?
Thanks! 🙏

Yes it's totally possible to implement that layout. I'm not sure what you are missing? That looks like one big element with participants at the bottom. The tricky thing is you are changing the height of the list of participants. What is that based on? The number of participants? You could change the bigPercentage as the number of participants changes. Or maybe you just want to use the bigPercentage and minBigPercentage which will choose a size for the big area that minimises the whitespace. Something like:
const layout = OT.initLayoutContainer(container, {
  bigFixedRatio: true, // Maintain the aspect ratio of the big element (not sure if you want this)
  fixedRatio: true, /// Maintain the aspect ratio of the smaller participants
  bigPercentage: 0.9,
  minBigPercentage: 0.6,
})

I must be missing something obvious because when I'm trying this config, the streams are added either on the right side or the left side, depending on bigFirst value:

Here's my config:
const options = {
  maxRatio: 9 / 16,
  minRatio: 9 / 16,
  fixedRatio: false,
  scaleLastRow: false,
  alignItems: 'center',
  bigPercentage: 0.9,
  minBigPercentage: 0.6,
  bigFixedRatio: false,
  bigScaleLastRow: false,
  bigAlignItems: 'center',
  smallAlignItems: 'center',
  maxWidth: Infinity,
  maxHeight: Infinity,
  smallMaxWidth: Infinity,
  smallMaxHeight: Infinity,
  bigMaxWidth: Infinity,
  bigMaxHeight: Infinity,
  bigMaxRatio: 9 / 16,
  bigMinRatio: 9 / 16,
  bigFirst: false,
  animate: false,
}

Do you have any idea?

Hello @aullman, I'm sorry to insist.
I still haven't figured out a way to have the elements under the big one.
Would you have any idea why?
Thank you 🙏

It automatically decides whether to put the participants on the side or the bottom depending on the dimensions of the container. If you resize it to be narrow it will put the participants on the top or bottom. If you want to force it to always be on the bottom then you should probably not use the big feature. You can probably just use eg. flexbox layout to put the big one on top and the layout container below (without big elements) if you know what I mean.

@aullman Alright, that makes sense.
I'll play with it and see if I can find the right balance using a flexbox layout.
Thank you very much :)


opt modify and enhance the feature of ranger access controller

Proposed changes

Support more data mask
Support data masks same as hive

MASK
MASK_SHOW_LAST_4
MASK_SHOW_FIRST_4
MASK_HASH
MASK_NULL
MASK_NONE
MASK_DATE_SHOW_YEAR
CUSTOM

Use USAGE priv instead of SHOW_WORKLOAD_GROUP and SHOW_RESOURCES for Resource and Workload Group

When checking the child level priv, also check its parent level priv
eg, when checking tbl level priv, also check if user has database level priv.
If user has has database level priv, he should have tbl leve priv automatically.

Further comments
This should also update the ranger-doris-plugin

run buildall

run buildall


how to upload a local excel file while Creating knowledge base

in the section "Create knowledge base", It's not clear how to pass the excel file containing all Question and Answers which is on the local path.   In API documentation also parameter 'files' is not really taking a local file. How to pass the local file to the parameter   'files': []?

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

ID: b442bbc5-80c1-c463-ddc8-9ddc6453b827
Version Independent ID: 64467bb5-b053-7720-8ffe-9dcc68024f05
Content: REST API (V4) - C# - QnA Maker - Azure Cognitive Services
Content Source: articles/cognitive-services/QnAMaker/Quickstarts/csharp.md
Service: cognitive-services
GitHub Login: @diberry
Microsoft Alias: diberry

I have also tried this way : DBFilePath = new System.Uri(@"C:\Users\vivek.jain\Desktop\Work\fuerVivek\Trainingsdatensatz").AbsoluteUri.ToString();
then passed the DBfilePath in the fileUri below:
{
"name": "QnA Maker FAQ",
"qnaList": [],
"urls": [],
"files": [
{
"fileName": "Traindataset_0.xlsx ",
"fileUri": "file:///C:/Users/vivek.jain/Desktop/Work/fuerVivek/Trainingsdatensatz"
}
]
}
still same problem persist.

@vivekjainAco Please verify the following so my test is valid: operating system is windows-based, code is C# (.Net flavor). What is the response code you are getting?

Yes.
Operating system: Windows 10
Programming language : C#
response code:  (400 code: Invalid uri or invalid uri format)

@vivekjainAco How would that work? The file has to eventually get to the service to be parsed. Where you thinking the file would be sent in the same request somehow or that it would be sent in another request?

@vivekjainAco The items in the files array array must be publicly reachable from an HTTP request. The data source concept page will make that more clear. #please-close

@vivekjainAco We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Fix crash when calling mbedtls_ssl_cache_free twice

Description
Set cache to zero at the end of mbedtls_ssl_cache_free
fixes #1104
Status
READY
Requires Backporting
Yes
Which branch?
mbedtls-2.1
mbedtls-1.3
Steps to test or reproduce
call ``mbedtls_ssl_cache_free` when session has been set to the chain

@yanesca I addressed your comments and modified accordingly

The regular Jenkins job can't check this out for some reason. Running manually on https://jenkins-internal.mbed.com/job/mbedtls-commit-tests/33/

CI https://jenkins-internal.mbed.com/job/mbedtls-commit-tests/33/ on 22360825ae64374fb897d366c39f6704a56441b4 failed only due to timing issues, ok to merge


Parameter can't be resolved for "ArgumentException"

I have:
public override object CreateInstance(ITypeDescriptorContext context, IDictionary propertyValues)
{
     throw new ArgumentException("Invalid property values", "CreateInstance");
}

and get "Parameter 'CreateInstance' can't be resolved"
I am not sure this should be a feature req. or a missing implementation.
Likewise for:
public virtual object Renderer
{
	get
	{
		return _renderer;
	}
	set
	{
		if (value == null)
		{
			throw new ArgumentNullException("Renderer", "WinFormsExtenderControl");
		}
		_renderer = value;
	}
}

Well, strictly speaking that's a misuse of the exception constructor's parameter. See MSDN:

paramName
Type: System.String
The name of the parameter that caused the current exception.

So in my opinion the analyzer is right. In your 1st example you should use propertyValues instead of CreateInstance and in your 2nd example value instead of WinFormsExtenderControl.

Allright, thank You got it.
From: Andreas Weizel
Sent: Monday, June 6, 2016 10:59 PM
To: icsharpcode/RefactoringEssentials
Cc: FickoDeLux ; Author
Subject: Re: [icsharpcode/RefactoringEssentials] Parameter can't be resolved for "ArgumentException" (#227)
Well, strictly speaking that's a misuse of the exception constructor's parameter. See MSDN:
paramName
Type: System.String
The name of the parameter that caused the current exception.
So in my opinion the analyzer is right. In your 1st example you should use propertyValues instead of CreateInstance and in your 2nd example value instead of WinFormsExtenderControl.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Update awssdk:auth, awssdk:core, ... to 2.17.140

Updates

software.amazon.awssdk:auth
software.amazon.awssdk:core
software.amazon.awssdk:regions

from 2.17.138 to 2.17.140.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "software.amazon.awssdk" } ]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #42.


just did it so people can call solo a slut

After looking at the code, i have decided to not merge your pull requrest. thanks for your attempt at contributing to our fine repository! ♥


[spawn_pedsim_agents]: service not available, waiting again...

@stephenadhi I tried to use pedsim_ros on ROS 2 Humble.
At first, I installed ros-humble-desktop-full. And, I installed pedsim_ros.
sudo apt install ros-humble-gazebo-ros ros-humble-nav2-bringup
mkdir -p dev_ws/src
cd dev_ws/src
git clone https://github.com/stephenadhi/pedsim_ros.git
cd ..
colcon build
source install/setup.bash

And, I executed the following command according to README.md.
ros2 launch pedsim_gazebo_plugin gazebo_tb3_house_demo_launch.py

But, I could not launch this demo. And, the following message was displayed. Could you give me your comment?
[spawn_pedsim_agents]: service not available, waiting again...

I executed source /usr/share/gazebo/setup.sh.
source /usr/share/gazebo/setup.sh
ros2 launch pedsim_gazebo_plugin gazebo_tb3_house_demo_launch.py

When I run this command, the error message changed.
[pedsim_simulator-5] [INFO] [1697557622.976630020] [pedsim_simulator]: Using default queue size of 10 for publisher queues...
[spawn_pedsim_agents-4] [WARN] [1697557624.172675888] [spawn_pedsim_agents]: Failed to spawn entity: 3
[spawn_pedsim_agents-4] [WARN] [1697557624.185162684] [spawn_pedsim_agents]: Failed to spawn entity: 2
[spawn_pedsim_agents-4] [WARN] [1697557624.193551533] [spawn_pedsim_agents]: Failed to spawn entity: 3
[spawn_pedsim_agents-4] [WARN] [1697557624.201229360] [spawn_pedsim_agents]: Failed to spawn entity: 2
[spawn_pedsim_agents-4] [WARN] [1697557624.209447638] [spawn_pedsim_agents]: Failed to spawn entity: 2
[spawn_pedsim_agents-4] [WARN] [1697557624.220225336] [spawn_pedsim_agents]: Failed to spawn entity: 2
[spawn_pedsim_agents-4] [WARN] [1697557624.225579223] [spawn_pedsim_agents]: Failed to spawn entity: 2
[spawn_pedsim_agents-4] [WARN] [1697557624.233726049] [spawn_pedsim_agents]: Failed to spawn entity: 2
[spawn_pedsim_agents-4] [WARN] [1697557624.242300653] [spawn_pedsim_agents]: Failed to spawn entity: 2
[spawn_pedsim_agents-4] [WARN] [1697557624.254759836] [spawn_pedsim_agents]: Failed to spawn entity: 2

Hi, thank you for the issue submission. First of all, the launch file works without error in my system and you can ignore the spawn entity warnings. If you provide the full error log I could maybe help with your issue.
source /usr/share/gazebo/setup.sh
export TURTLEBOT3_MODEL=waffle
ros2 launch pedsim_gazebo_plugin gazebo_tb3_house_demo_launch.py

After running the above commands you should see something like this:

@stephenadhi Thank you for your advice! At first time, I need to wait a few minutes for the preparation of Gazebo.


Updates for Scala 2.13.0

I think this is pretty much the minimum required to get 2.13 working.
For some reason ScalaCheck's Gen.posNum is written in such a way that it fails a lot, so I've changed some code where laws were failing with 1.14 to use Gen.chooseNum instead.

The combineAll monoid laws in StreamTests were stack-overflowing with the size at 50, so I dropped it to 25. Locally I couldn't see these errors unless I increased the size to several hundred.

Thanks!


SDFShape support for ClearMaterial

I tried to add a SphereSDF to the materials example, on the far right, using the same ClearMaterial as the regular Sphere next to it, but the result looks metallic.
Curious to know:

Is transparency expected to work with SDF shapes?
If so, any pointers on how I can go about fixing this? My first guess is something to do with Hitinfo at https://github.com/fogleman/pt/blob/master/pt/hit.go#L37, but it seems best to ask for ideas before going down the rabbit hole :-)

package main

import . "github.com/fogleman/pt/pt"

func main() {
	scene := Scene{}
	r := 0.4
	var material Material

	material = DiffuseMaterial(HexColor(0x334D5C))
	scene.Add(NewSphere(V(-2, r, 0), r, material))

	material = SpecularMaterial(HexColor(0x334D5C), 2)
	scene.Add(NewSphere(V(-1, r, 0), r, material))

	material = GlossyMaterial(HexColor(0x334D5C), 2, Radians(50))
	scene.Add(NewSphere(V(0, r, 0), r, material))

	material = TransparentMaterial(HexColor(0x334D5C), 2, Radians(20), 1)
	scene.Add(NewSphere(V(1, r, 0), r, material))

	material = ClearMaterial(2, 0)
	scene.Add(NewSphere(V(2, r, 0), r, material))
	// Added SphereSDF
	scene.Add(NewSDFShape(NewTransformSDF(NewSphereSDF(r), Translate(V(3, r, 0))), material))

	material = MetallicMaterial(HexColor(0xFFFFFF), 0, 1)
	scene.Add(NewSphere(V(0, 1.5, -4), 1.5, material))

	scene.Add(NewCube(V(-1000, -1, -1000), V(1000, 0, 1000), GlossyMaterial(HexColor(0xFFFFFF), 1.4, Radians(20))))
	scene.Add(NewSphere(V(0, 5, 0), 1, LightMaterial(White, 25)))
	camera := LookAt(V(0, 3, 7), V(0, 1, 0), V(0, 1, 0), 30)
	sampler := NewSampler(16, 16)
	renderer := NewRenderer(&scene, &camera, sampler, 960, 540)
	renderer.IterativeRender("out%03d.png", 100)
}

Yeah, try not doing that inside = false for your SDF shape. That looks like a hacky workaround I was doing.


msg sent routine never executed

Hi, I just tried the docker however it was not working.
For some reason I am not getting notification to my mobile, or better say routine after if hasIncluded and not hasExcluded: is never executed
[/etc/logs] # docker run \
> --name=qnap-pushover \
> -e TZ=America/New_York \
> -e LOG_LEVEL=DEBUG \
> -e NOTIFY_LEVEL=INFO \
> -e POLL_INTERVAL=10 \
> -e INCLUDE= \
> -e EXCLUDE= \
> -e TESTING_MODE=true \
> -e PUSHOVER_TOKEN=YYY \
> -e PUSHOVER_RECIPIENT=XXX \
> -v qnap-pushover:/data \
> -v /etc/logs/event.log:/event.log:ro \
> --restart always \
> thecatlady/qnap-pushover

 _,         _,                     ,  |)    _        _  ,_
/ |  /|/|  / |  |/\_----|/\_|  |  / \_|/\  / \_|  |_|/ /  |
\/|_/ | |_/\/|_/|_/     |_/  \/|_/ \/ |  |/\_/  \/  |_/   |/
  |)           (|      (|
https://github.com/TheCatLady/docker-qnap-pushover

INFO: NOTIFY_LEVEL is set to INFO. All system log events will trigger notifications.
INFO: Poll interval is set to 10 seconds.
INFO: Only system log events containing the following keywords will trigger notifications:
INFO: System log events containing the following keywords will not trigger notifications:
WARNING: Testing mode is enabled. The last 10 system log events will be re-queued for processing on EVERY container start.
INFO: Using Pushover application API token YYY and recipient user/group key(s) XXX.
INFO: Read the last-processed event ID from the data file. (909)
INFO: Testing mode is enabled. Re-queuing last 10 system log events for processing.
INFO: 10 new system log events detected in event.log.
INFO: Successfully processed 10 system log events.
INFO: Wrote the last-processed event ID to the data file. (909)
INFO: No new system log events detected in event.log.
INFO: Wrote the last-processed event ID to the data file. (909)
INFO: No new system log events detected in event.log.
INFO: Wrote the last-processed event ID to the data file. (909)
INFO: No new system log events detected in event.log.
INFO: Wrote the last-processed event ID to the data file. (909)

^CTraceback (most recent call last):
  File "/main.py", line 247, in <module>
    time.sleep(POLL_INTERVAL)
KeyboardInterrupt
[/etc/logs] #

When I update your script with simple pushover_client.send_message("Hello!", title="Hello") in upper section of script I am being notified.
Shame I did not have a time to troubleshoot more, do you know where is the problem that the routine of triggering the msg is skipped ? I have a plan to troubleshoot during weekend, if you do so sooner I will be glad ;-)
Thanks

@salvq Hi there!  Can you try pulling the pre-built image, and removing the INCLUDE and EXCLUDE environment variables if you aren't filtering the events?

@salvq Hi there!  Can you try pulling the pre-built image, and removing the INCLUDE and EXCLUDE environment variables if you aren't filtering the events?

@salvq Hi there!  I've pushed a bug fix to the repo.  Can you try pulling the pre-built image?    Please test the new image and let me know if you still have issues.

@salvq Hi there!  I've pushed a bug fix to the repo.  Can you try pulling the pre-built image?    Please test the new image and let me know if you still have issues.

@salvq Hi there!  I've pushed a bug fix to the repo.  Can you try pulling the pre-built image?    Please test the new image and let me know if you still have issues.

@salvq Hi there!  I've pushed a bug fix to the repo.  Can you try pulling the pre-built image?    Please test the new image and let me know if you still have issues.

Hi, just tried to pull new image and I receive a test notification however docker has been stopped after few msg received
https://github.com/TheCatLady/docker-qnap-pushover

INFO: NOTIFY_LEVEL is set to INFO. All system log events will trigger notifications.
INFO: Poll interval is set to 10 seconds.
INFO: INCLUDE keyword filter is not set.
INFO: EXCLUDE keyword filter is not set.
WARNING: Testing mode is enabled. The last 10 system log events will be re-queued for processing on EVERY container start.
INFO: Using Pushover application API token YYY and recipient user/group key(s) YYY.
INFO: Read the last-processed event ID from the data file. (921)
INFO: Testing mode is enabled. Re-queuing last 10 system log events for processing.
INFO: 10 new system log events detected in event.log.
DEBUG: Starting new HTTPS connection (1): api.pushover.net:443
DEBUG: https://api.pushover.net:443 "POST /1/messages.json?message=%3Cfont+color%3D%22grey%22%3E%3Cb%3EMultimedia+Console+enabled%3C%2Fb%3E%3C%2Ffont%3E%3Csmall%3E%3C%2Fsmall%3E&user=XXX&html=1&priority=-1&timestamp=1610490471&title=App+Center&token=YYY HTTP/1.1" 200 None
CRITICAL: 'NameError' object has no attribute 'strerror'
[~] #

When I run without test flag, also docker stopped when new msg in NAS was generated (msg has not been sent)
INFO: NOTIFY_LEVEL is set to INFO. All system log events will trigger notifications.
INFO: Poll interval is set to 10 seconds.
INFO: INCLUDE keyword filter is not set.
INFO: EXCLUDE keyword filter is not set.
INFO: Testing mode is not enabled.
INFO: Using Pushover application API token YYY and recipient user/group key(s) XXX.
INFO: Read the last-processed event ID from the data file. (921)
INFO: No new system log events detected in event.log.
INFO: Wrote the last-processed event ID to the data file. (921)
INFO: No new system log events detected in event.log.
INFO: Wrote the last-processed event ID to the data file. (921)
INFO: No new system log events detected in event.log.
INFO: Wrote the last-processed event ID to the data file. (921)
INFO: 1 new system log events detected in event.log.
CRITICAL: 'NameError' object has no attribute 'strerror'

Hi, just tried to pull new image and I receive a test notification however docker has been stopped after few msg received
https://github.com/TheCatLady/docker-qnap-pushover

INFO: NOTIFY_LEVEL is set to INFO. All system log events will trigger notifications.
INFO: Poll interval is set to 10 seconds.
INFO: INCLUDE keyword filter is not set.
INFO: EXCLUDE keyword filter is not set.
WARNING: Testing mode is enabled. The last 10 system log events will be re-queued for processing on EVERY container start.
INFO: Using Pushover application API token YYY and recipient user/group key(s) YYY.
INFO: Read the last-processed event ID from the data file. (921)
INFO: Testing mode is enabled. Re-queuing last 10 system log events for processing.
INFO: 10 new system log events detected in event.log.
DEBUG: Starting new HTTPS connection (1): api.pushover.net:443
DEBUG: https://api.pushover.net:443 "POST /1/messages.json?message=%3Cfont+color%3D%22grey%22%3E%3Cb%3EMultimedia+Console+enabled%3C%2Fb%3E%3C%2Ffont%3E%3Csmall%3E%3C%2Fsmall%3E&user=XXX&html=1&priority=-1&timestamp=1610490471&title=App+Center&token=YYY HTTP/1.1" 200 None
CRITICAL: 'NameError' object has no attribute 'strerror'
[~] #

When I run without test flag, also docker stopped when new msg in NAS was generated (msg has not been sent)
INFO: NOTIFY_LEVEL is set to INFO. All system log events will trigger notifications.
INFO: Poll interval is set to 10 seconds.
INFO: INCLUDE keyword filter is not set.
INFO: EXCLUDE keyword filter is not set.
INFO: Testing mode is not enabled.
INFO: Using Pushover application API token YYY and recipient user/group key(s) XXX.
INFO: Read the last-processed event ID from the data file. (921)
INFO: No new system log events detected in event.log.
INFO: Wrote the last-processed event ID to the data file. (921)
INFO: No new system log events detected in event.log.
INFO: Wrote the last-processed event ID to the data file. (921)
INFO: No new system log events detected in event.log.
INFO: Wrote the last-processed event ID to the data file. (921)
INFO: 1 new system log events detected in event.log.
CRITICAL: 'NameError' object has no attribute 'strerror'

@salvq Can you pull the latest image and try again?  There was a bug in the exception handling, but I suspect there's an issue with your Pushover credentials.

@salvq Can you pull the latest image and try again?  There was a bug in the exception handling, but I suspect there's an issue with your Pushover credentials.

@salvq Can you pull the latest image and try again?  There was a bug in the exception handling, but I suspect there's an issue with your Pushover credentials.  With the bug fix, you should be able to see the error message in the log output.

@salvq Can you pull the latest image and try again?  There was a bug in the exception handling, but I suspect there's an issue with your Pushover credentials.  With the bug fix, you should be able to see the error message in the log output.

@salvq Can you pull the latest image and try again?  I committed a few bug fixes in https://github.com/TheCatLady/docker-qnap-pushover/commit/42641fc1c2b58602bc8793055ae9e9de49d39c76.

@salvq Can you pull the latest image and try again?  I committed a few bug fixes in https://github.com/TheCatLady/docker-qnap-pushover/commit/42641fc1c2b58602bc8793055ae9e9de49d39c76.

@salvq Can you pull the latest image and try again? I committed a few bug fixes in 42641fc.

Hi, just tested and seems to working fine, getting messages on the mobile.
Just a quick one, what the includes / excludes really means, I am bit confused where it is being compared to in qnap log:

example system event log does includes fields like application, category, content
example system access log does includes fields like connection type or action

Thanks

@salvq Can you pull the latest image and try again? I committed a few bug fixes in 42641fc.

Hi, just tested and seems to working fine, getting messages on the mobile.
Just a quick one, what the includes / excludes really means, I am bit confused where it is being compared to in qnap log:

example system event log does includes fields like application, category, content
example system access log does includes fields like connection type or action

Thanks

@salvq The filter applies to keywords in the event description only (the "Content" column).  But you'll notice that the event description almost always has the application name at the beginning, enclosed in brackets.
Closing this issue since it has been resolved.  Please open a new issue for any other questions/problems you have!  Thanks 😸

@salvq The filter applies to keywords in the event description only (the "Content" column).  But you'll notice that the event description almost always has the application name at the beginning, enclosed in brackets.
Closing this issue since it has been resolved.  Please open a new issue for any other questions/problems you have!  Thanks 😸


[w, c, m, y, r, g, b] from spectral_upsampling(lrgb) back to srgb?

Fantastic library, thanks so much for creating it and giving it a liberal use license.
I'm really curious to use this as a 7-channel color space, modifying the w, c, m, y, r, g, and b (WCMYRGB) values and then seeing the sRGB result. I don't think I see a function to directly only convert those values back to one sRGB color? I see spectral.mix, which I think returns an array of sRGB colors.
How could I create an arbitrary set of WCMYRGB (channel?) values and convert them to just one sRGB color?
Edit: do I even want to do that? Do wonky things I might not understand result from modifying "channels" as such and then going back to XYZ, then sRGB? Re https://krita-artists.org/t/paint-like-color-mixing-kubelka-munk/78156 - "The round-trip (sRGB → spectral → XYZ → sRGB) error is 0% for any given input." - is it better to use the provided mix function with an assumed set of w, c, m, y, r, g, and b colors?
Also, are the min and max values of WCMYRGB all 0-255?
And I believe I saw in another issue that you plan to reduce the channels? To what? w, c, m, y (Effectively CMYK)?

I got a roundtrip test working (sRGB > linear RGB > reflectance > XYZ > sRGB, showing the same final value as the original sRGB value), and mofifying reflectance w, c, m, y, r, g in the mix. I didn't see drastic color changes with quite drastic (I thought) manual modifications to those values, so I suppose that has to do with my knowing nothing about the reflectance domain, or how it's used. I believe I'll approach color change with a palette of many possible mix targets to various degrees using the provided virtual pigment mix() function, thanks!


Error During SRP Authentication Using "User_SRP_Auth"

I am trying to authenticate a user using the User_SRP_Auth authflow from the repository. While following the steps provided, I encountered an error.
Steps to Reproduce:
1. Cloned the repository.
2. Use the repo by following the code.
``
import CognitoSrpHelper from "./src/cognito-srp-helper";
import { CognitoIdentityProviderClient, InitiateAuthCommand, RespondToAuthChallengeCommand } from "@aws-sdk/client-cognito-identity-provider";
const username = "xxxxxx";
const password = "xxxxxx";
const clientId = "xxxxxxxxxxxxxxxxxxxxxx";
const secretId = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
const poolId = "xxxxxxx_xxxxxxxxx";
const secretHash = CognitoSrpHelper.createSecretHash(username, clientId, secretId);
const srpSession = CognitoSrpHelper.createSrpSession(username, password, poolId, false);
async function run() {
try {
const initiateAuthRes = await CognitoIdentityProviderClient.send(
new InitiateAuthCommand(
CognitoSrpHelper.wrapInitiateAuth(srpSession, {
ClientId: clientId,
AuthFlow: "USER_SRP_AUTH",
AuthParameters: {
CHALLENGE_NAME: "SRP_A",
SECRET_HASH: secretHash,
USERNAME: username,
},
}),
),
);
const signedSrpSession = CognitoSrpHelper.signSrpSession(srpSession, initiateAuthRes);

const respondToAuthChallengeRes = await CognitoIdentityProviderClient.send(
  new RespondToAuthChallengeCommand(
    CognitoSrpHelper.wrapAuthChallenge(signedSrpSession, {
      ClientId: clientId,
      ChallengeName: "PASSWORD_VERIFIER",
      ChallengeResponses: {
        SECRET_HASH: secretHash,
        USERNAME: username,
      },
    }),
  ),
);

} catch (err) {
console.error(err);
}
}
run();
``
4. Run the code on Windows cmd
$ node <filename.js>
When I ran this (windows 10, Node.js v20.16.0), I encountered the following error:

Please guide me, in completing the SRP authentication process successfully, resulting in a valid authentication response using your repo.
I appreciate any help you can provide.
Thanks in advance.

Hey Varuna, thanks for checking out the project 🙂
Importing src/* files won't work if you're importing inside a .js file, because the project is written in TypeScript. It needs to be compiled before you can import it in JavaScript
If you build the project with npm run build then you should be able to import it by refering to the package name:
import * as CognitoSrpHelper from "cognito-srp-helper";

// . . .

Let me know if that works for you

Thank you for your response.
I tried what you suggested steps but the error is still the same. Here I attached a screenshot for your reference.

That's odd 🤔
Did you update the import statement? from:
import CognitoSrpHelper from "./src/cognito-srp-helper";
.. to ..
import * as CognitoSrpHelper from "cognito-srp-helper";

Yes, I updated it.
Now I did the following to a new clone and the error was changed. Here I attached a screenshot for your reference.

Oh, that's to do with CognitoIdentityProviderClient. You need to instantiate the client first:
const cognitoIdentityProviderClient = new CognitoIdentityProviderClient({
  region: "eu-west-2", // <-- this should be the AWS region
});

Then you can call send on the instance you created:
const respondToAuthChallengeRes = await cognitoIdentityProviderClient.send(
  // . . .
);

I ran the code applying the above changes and it runs without errors. But it does not appear to pop up or anything for the challenge. I've attached a screenshot for you to look over.

Please guide me.

Ah, you may just need to log something to the console
Since a lot of these questions are unrelated to the package itself I'll close this issue. But if any issues specific to the package does come up feel free to open up this issue again


refactoring swipes

Coverage decreased (-0.4%) to 30.782% when pulling 696e3c66730cd5e22bdfa85a119c1465178d5129 on swipe_refact into 7265f860d620d6ce7d2deb90c8d33332afbcadd0 on master.


How to change colors or theme

Hi, thanks for this great plugin.
I can't figure out how to change theme of treemux. I'm open to manually changing color codes, but I have no idea how to do that.
I'm using NvChad with Neovim, if that helps.
Thanks for any help.

Hi, the only way so far is to copy the configs/treemux_init.lua to your dotfiles directory, and change the tmux settings.
set -g @treemux-tree-nvim-init-file '~/.your_dotfiles/treemux/treemux_init.lua'


Conflicting files shown on pull request but merging without conflict

Gitea version (or commit ref): 1.12.5 and  1.14.0+dev-251-g78204a7a7
Git version: 2.24.1
Operating system:

Database (use [x]):

[ ] PostgreSQL
[ ] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io:

[x] Yes (provide example URL)
[ ] No

Log gist:

Description
I created a pull request which showed me that one of the files was conflicting. I then wanted to resolve this conflict locally but the merge worked just fine.
I re-created this on try.gitea.io with a simplified example, see this test repo: https://try.gitea.io/test-gitea3/conflict-test
Steps taken:

created initial version on master
created branch test
modified same file on branch test
modified same file on branch master
created PR

Result:

This pull request has changes conflicting with the target branch.
settings.py

This is the output when merging locally:
$ git merge test
Auto-merging settings.py
Merge made by the 'recursive' strategy.
 settings.py | 41 +++++++++++++++++++++++++++++++++++++++--
 1 file changed, 39 insertions(+), 2 deletions(-)

the easyest workarounds would either be a rebase or a merge from base int head-branch.

I found sometimes github also has the problem. It seems it depends on different merge style.

Interesting. How are the conflicting files determined?

check logic is here
note: tracking is the head branch
https://github.com/go-gitea/gitea/blob/24330f71b6ee874debec273952579c7c07d61140/services/pull/patch.go#L111-L126

maybe we can try this way
# try merge by ``--no-commit``
zzc:conflict-test (master)$ git merge --no-commit --no-ff test_2
Auto-merging aa.c
CONFLICT (content): Merge conflict in aa.c
Automatic merge failed; fix conflicts and then commit the result.
# get conflict markers by ``--check``
zzc:conflict-test (master *+|MERGING)$ git diff --check
aa.c:3: leftover conflict marker
aa.c:5: leftover conflict marker
aa.c:7: leftover conflict marker
zzc:conflict-test (master *+|MERGING)$

$ git merge test
Auto-merging settings.py
Merge made by the 'recursive' strategy.
 settings.py | 41 +++++++++++++++++++++++++++++++++++++++--
 1 file changed, 39 insertions(+), 2 deletions(-)

Please note the merge made by 'recursive' strategy. That means that the merge required a checked out copy of the codebase to do the merge. We cannot do that.
@a1012112796 your proposal would also require a complete checked out copy of the codebase.

$ git merge test
Auto-merging settings.py
Merge made by the 'recursive' strategy.
 settings.py | 41 +++++++++++++++++++++++++++++++++++++++--
 1 file changed, 39 insertions(+), 2 deletions(-)

Please note the merge made by 'recursive' strategy. That means that the merge required a checked out copy of the codebase to do the merge. We cannot do that.
@a1012112796 your proposal would also require a complete checked out copy of the codebase.

@zacheryph secound choice, should check diff beturn head branch and merge base if they are not same. only when the file has been changed is in git diff merge_base head_branch and  git diff merge_base base_branch is real conflict file. how about this way?

Related: #6417

I think we need to be clear here that the automatic system in gitea can never be as good a merger as git on the command line.
Why?
Well git on the command line has a checked out copy and can do octopus merges and take account of history to resolve conflicts that the system cannot do.
We can only do basic diff patch applications.

In fact, github also has the problem.

#6417 demonstrates a case where GitHub shows a PR as mergeable while Gitea doesn't, although I haven't tried that exact case in Gitea in a long time, maybe there have been improvements already

I have a similar issue. Using git, I created a branch from a feature branch, deleted over 1000 of old files and directories. One of the directories contained 10 .docx Word files. I committed these changes, pushed them to my remote repository on the Gitea v1.14.1 server, and created a pull request to push the deletes to the feature branch. Gitea complained that "This pull request has changes conflicting with the target branch. ", listing the the 10 .docx Word files.
No option was provided to merge the feature branch to my branch.
I tried to checkout and pull the feature branch, but git said it was already up to date. I checked out my branch and tried merging the feature branch but git again said it was already up to date.
In Gitea, on the Files Changed tab, it does show the contents of the docx files as being deleted.

At the risk of repeating myself - we cannot be as good at conflict resolution as git with a worktree.
Having a worktree allows git to run git merge-index, git merge-one-file and git merge-file allowing it to resolve intra file conflicts.
Without a worktree present - which we cannot have - we are limited to a much stronger set of conditions.
If you genuinely believe that the is a better algorithm for merge collision detection please provide it - however, it can only be run in a bare repository - not one with a worktree. (You are allow to create an index file though.) The above demonstration is a false comparison because there is a worktree present.

Having a worktree allows git to run git merge-index, git merge-one-file and git merge-file allowing it to resolve intra file conflicts.

@zeripath Note: git merge-file not need work tree. just request two file.

Sorry - yes git merge-file shows the way that you could avoid having to checkout the entire worktree to assess for mergeability.

I am the responsible for deploying Gitea on the company. Some devs have found this issue, and after arriving to this thread I tried a couple solutions for the problem. Despite the fact that we have different merge strategies that "are not supported" by gitea for the reasons mentioned above, every time I restart the server, the devs are capable of creating the PRs. Why is that? Here is my error log and the issue seems to be the same. Why after a restart it works if the "merge strategy" is "limited"? :/
2021/09/20 14:17:24 ...dules/git/command.go:120:RunInDirTimeoutEnvFullPipelineFunc() [D] /data/gitea/tmp/local-repo/pull.git026407621: /usr/bin/git -c credential.helper= -c protocol.version=2 -c filter.lfs.required= -c filter.lfs.smudge= -c filter.lfs.clean= diff -p --binary 29c82abb3763511d55950bcb21be93c0b90561cf tracking, 2021/09/20 14:17:24 ...rvices/pull/patch.go:114:checkConflicts() [E] Unable to get patch file from 29c82abb3763511d55950bcb21be93c0b90561cf to feature/IC-17046 in Genius/SourceCode Error: exit status 128, 2021/09/20 14:17:24 ...ers/web/repo/pull.go:1113:CompareAndPullRequestPost() [E] NewPullRequest: Unable to get patch file from 29c82abb3763511d55950bcb21be93c0b90561cf to feature/IC-17046 in Genius/SourceCode Error: exit status 128, 2021/09/20 14:17:24 ...s/context/context.go:185:HTML() [D] Template: status/500, 2021/09/20 14:17:24 Completed POST /Genius/SourceCode/compare/14.0.0...feature/IC-17046 500 Internal Server Error in 262.213925ms, 2021/09/20 14:17:24 Started GET /avatar/a648882f54a315b38d3678634b264be5?size=96 for <IP_ADDRESS>:50250, 2021/09/20 14:17:24 ...s/context/context.go:740:1() [D] Session ID: eb6b8a26aea8e4bf, 2021/09/20 14:17:24 ...s/context/context.go:741:1() [D] CSRF Token: JX18PgPaRWarf_8-ydBuGpnU6iQ6MTYzMjE0NzMzNzI3NzI0NTQ3NA, 2021/09/20 14:17:24 ...ices/auth/session.go:57:SessionUser() [T] Session Authorization: Found user[3],

I quite often run into this as well. Our CI applies automatic dependency upgrades to Maven pom.xml.
It does this for PR builds as well as builds of master and release branches.
When the exact same change has been automatically applied on the PR branch, as well as the target branch,
we get "This pull request has changes conflicting with the target branch: pom.xml".

Hmm...
I've just had a thought - maybe we can use git read-tree -m here.

What is really needed though is a few good testcases that reliable replicate the problem because without them we cannot be sure that any improvement we suggest is actually an improvement.

Here's a minimal reproducer for my usecase: https://try.gitea.io/jpraet/conflict-detection/pulls/1

OK, my proposed PR using git read-tree -m works correctly for that.
Can you give an example that should conflict too?

This one should conflict: https://try.gitea.io/jpraet/conflict-detection/pulls/2

yup and #18004 does that correctly too.

Unfortunately OP's https://try.gitea.io/test-gitea3/conflict-test/pulls/1 example is still detected as conflicting with #18004.

OK if we do an git apply with --3way that will work but we can't do that for git <2.32.0.
now git merge-tree will output a reasonable attempt at merge but I'm not sure how to ingest that/ensure it's correct.

To get this working properly means that I would need to reimplement git-merge-one-file but so that it can work without a worktree.
I think that's possible and it would improve the cherry-pick PR I've written too. I'll look at it but I'll leave #18004 up as it's a clear improvement from what we currently have. If #18004 isn't merged by the time I've done that I'll update it.

My repro from #6417 is no longer on Gitea, but the repository is still on Github if you want to try that one too :-)

OK I've finally implemented git-merge-one-file within gitea - it wasn't actually that bad I can't believe I've been avoiding doing that for 3 almost years.

Now that the git-merge-one-file algorithm is implemented, to improve further would require implementing a checkoutless git merge recursive or even ort.
This would be quite a bit more difficult and potentially quite a bit slower.


Update Insertion Time Complextiy for Linked Lists

Time complexity of insertion in linked lists depends on the position; if it's at the beginning or at the end, it's constant i.e. O(1), but if we are inserting an in any other position, it will be O(n), as we will need to go through the list until we find the correct position.

Thanks!


Handle Post Conditions

Allow developer to pass post-conditions via Connect
Show post-conditions in debug mode
Include post-conditions in the signed TX

@jasperjansz Can you provide Figma guidance here?

https://www.figma.com/file/Wan0HuWjhyg77zJZK3yUKg/Transaction-signing?node-id=45%3A1

@hstove The related PR appears to be under development still. Should we move this issue back to development as well?

No - this is meant to be in "code review". It depends on the transaction signing PR infra - although I'm realizing maybe I should have pushed it to a new PR, on top of the TX signing branch.

I see, so it's finished code review but awaiting deployment to staging for QA (dependent on that transaction signing infra).

Yes - also dependent on https://github.com/blockstack/stacks-transactions-js/pull/101


Avatar poses

Adds new pose animations and interface for the character/login UI.
This is accessed in 2 ways:
Character panel

Q key (hold)

This could still be improved with smoother transitions but it should be good enough to play with.
It uses the regular action system so should work in multiplayer for free.


"edit on github" not working for the 'stable' branch

Hi.
The "edit on github" link does not work for the stable documentation version, as it tries to open the non- existent stable branch on github.
As I understand it, both  latest and stable are references, latest to master, and stable to the latest tagged version ( see https://docs.readthedocs.org/en/latest/versions.html ). However it seems that only latest has special logic to deal with the edit on github feature
https://github.com/rtfd/readthedocs.org/blob/e67465175d981d19bdd98e911d02c85e7009edff/readthedocs/builds/utils.py#L40
So the solution would be to apply the same logic, and have stable point to the latest tagged version.

Ping. It would be really nice if this could be addressed.

This would be nice to have, but might require some creativity. I looked into it but I don't see that stable is mapped to a tag in the database -- the closest available field is identifier which is the SHA (for git, at least). This might be good enough.
However, there's another issue: GitHub doesn't provide edit functionality for tags/shas. So, what's an appropriate link target for "edit"?


Update sources and description on thrust allocation modules

Clarified the role of Thrust allocation blocks a little with some text and an image

Added two modules from projects that I have found that shared a solution. I tried to figure out the exact approach they used, and added that as well. I'll try to get in touch with the developers to give them a chance to verify this.

This PR also adresses https://github.com/ros-maritime/awesome-maritime-robotics/issues/6


Simplify Handling of line terminators in Lexers.

Currently users must explicitly specify if a TokenType can contain line terminators
(line_breaks option of createToken).
Using the regexp-to-ast library it is possible to compute this information automatically
thus reducing the potential for human errors.
and simplifying the API.

Changes

In the vast majority of cases lexers authors will not have to specify the line_breaks property on their Token Types
When possible even if the value of the line_breaks property cannot be inferred, the lexer will issue a warning and continue working correctly with only a slight reduction in performance.

Reminder to self: remove the explicit line_breaks option in the playground examples.


Empty helm.sh/resource-policy annotation should not keep the resource

Output of helm version: v2.10.0
I was surprised that when using the stable/postgresql chart, the PVC was not destroyed when i delete the Helm release.
In this chart, the default value for "helm.sh/resource-policy" annotation is "" and not "keep" so the PVC should be destroyed.
After looking in pkg/tiller/resource_policy.go, seems that the "if resourcePolicyType == keepPolicy" should be complemented by an "else" that adds the manifest in the "remaining" array.

For backward compatibility reasons, we could not make this change in Helm 2 without risking breaking existing implementations (in ways that would result in data loss).
For that reason, an empty resource-policy annotation MUST be treated implicitly as keep. In other words, keep is the default resource policy.


Fixed a typo

@YuriySamorodov : Thanks for your contribution! The author, @HeidiSteen, has been notified to review your proposed change.

Related to #27662

thanks!!  LGTM
#sign-off


[Bug] Major -Home page title is unreadable, because of overlap with the header menu

Describe the bug
Home page title is unreadable, because of overlap with the header menu
To Reproduce
Steps to reproduce the behavior:

Go to Home page

Expected behavior
Home page title is readable
Screenshots

Desktop (please complete the following information):

OS: Windows 10
Browser Edge
Version Version 98.0.1108.50 (Official build) (64-bit)

How should it look like? @TeDy-A-K

As in the production


⚠ ClamAV has degraded performance

In 4313c97, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 492 ms

Resolved: ClamAV performance has improved in 7f7a6f7.