Async transaction execution failure

Describe the bug
With DbFastClient, apply query with newTransactionAsync() keeps reporting error.
To Reproduce
...
  const uint64_t id = 1;
  const ushort age = 16;
  auto clientPtr = drogon::app().getFastDbClient("FOO");

  clientPtr->newTransactionAsync([id=std::move(id),age=std::move(age)](const std::shared_ptr<Transaction> &transPtr) {
      assert(transPtr);
      transPtr->execSqlAsync( "select * from foo where id=$1",
        [=](const Result &r) {
            if ( 0 < r.size() )
            {
                *transPtr << "update foo set age=$1 where id=$2"
                          << age          //Does it required to be std::string ?
                          << r[0]["id"].as<uint64_t>()
                          >> [](const Result &r)
                             {
                                LOG_INFO << "Updated!";
                                //... do something about the task;
                             }
                          >> [](const DrogonDbException &e)
                             {
                                LOG_ERROR << "err:" << e.base().what();
                             };
            }
            else
            {
                LOG_ERROR << "No new tasks found!";
            }
        },
        [](const DrogonDbException &e) {
            LOG_ERROR << "err:" << e.base().what();
        },
      id);   //Does it required to be std::string ?
    });

  return;
...

Sometimes crashes but always returns the following
20200313 04:24:41.332853 UTC 16597 ERROR error - MysqlConnection.cc:427
20200313 04:24:41.332891 UTC 16597 ERROR Error(0) [00000] "" - MysqlConnection.cc:443
20200313 04:24:41.349522 UTC 16597 ERROR Error occurred in transaction begin - TransactionImpl.cc:287
20200313 04:24:41.349666 UTC 16597 ERROR err:The transaction has been rolled back - api_v0_foo.cc:163

and sometimes with these
20200313 04:35:36.383567 UTC 16676 ERROR error:1 status:1 - MysqlConnection.cc:258
20200313 04:35:36.383629 UTC 16676 ERROR Error(1054) [42S22] "Unknown column '$1' in 'where clause'" - MysqlConnection.cc:443
20200313 04:35:36.414844 UTC 16676 ERROR err:Unknown column '$1' in 'where clause' - api_v0_foo.cc:163
20200313 04:35:36.415163 UTC 16676 DEBUG [operator()] Transaction roll back! - TransactionImpl.cc:159

Expected behavior
The record  with id=1 in foo, the age field set to 16.
Additional context
Am I misunderstand the usage? Actually, I was trying to reference your example with the for update but failed with blocking call with newTransaction(). Then, I amended it with newTransactionAsync() but failed again even with the for update removed.

If you use mysql, you should the '?' as placeholders for parameters. mysql and postgresql have different placeholders, making them unified would add extra cost.

And the logs show that your drogon is not the latest version.

Thx. I will try with "?" and update the code.

@an-tao Hi, I have some question on the sqlbinder. Does it support array/vector arguments? E.g.
  std::vector<uint64_t> ids={1,2,3,4,5,6,...};
  ...
  clientDbPtr->execSqlAsync( "select * from foo where id in ? for update",
    [](const Result &r){...},
    [](const DrogonDbException &e){LOG_ERROR << e.base().what();},
    ids);
  ...

@ihmc3jn09hk , unfortunately, you can't do this now, user have to concatenate the query string (the formattedString can't do this, basically you should use a loop, please refer to this).
I'll think about it, maybe something can be done in the framework to provide this feature.

@an-tao Thank you for the reference.

@ihmc3jn09hk If you use ORM, the Criteria class will provide the 'in' semantic.

@ihmc3jn09hk with ORM the Criteria class provides the 'in' semantic.

@an-tao The ORM is really handy and I have been using it for testing on creating/deleting objects with Criteria in MariaDB. But for "update", it seems like it is less robust like we have dicussed the amount problem in #342 . Does Criteria support thread-safe update like for update?

for update is valid in a transaction, so you should use a transaction object to create a mapper for this. Or if your operation is executed in one SQL sentence, for example update foo set amount=(amount+1) where id=...,  then the transaction object is not neccessary (because every single SQL is a transaction by default).

Got it. Since I am trying to combine some queries into 1 goal. Say, a situation like with conditions like this: Let a, b, c and d be independent rows
a.amount = 2
b.amount = 0
c.amount = 0
d.amount =<PHONE_NUMBER>99
and say a would like to give b and then c each with 2 and d gives a 2 at in the following cases, with Restriction: the amount of any of them cannot be negative.
Case 1 : d gives a 2 right after a gave 2 to b but not yet c.
---- Final = a.amount=0, b.amount=2 and c.amount=2
Case 2 : d gives a 2 after a has given c.
-----Final = a.amount=2, b.amount=2 and c.amount=0
For common case, every transaction should be considered has only 1 deduction and 1 addition. So the above situations are possible.
E.g.
<< select * from foo where id in ("giver","receiver") for update
<< update foo set amount = amount - 2 where id=giver
<< update foo set amount = amount + 2 where id=reciever

There will be 3 transactions.
But in a situation we know a wants to give to both b and c and tries to combine the 2 transactions into 1.
<< select * from foo where id in ("giver","receiver_a","receivers_b") for update
<< update foo set amount = amount - 4 where id=giver      //Fail the query at here
<< update foo set amount = amount + 2 where id in ("receiver_a", "receiver_b")

Then only Case2 will happend. I would like to achieve this since it's more efficient and predictable. Since I have no exp. in SQL XD, I am still finding a way to make this happen, e.g. using CASE to fail the query.
Therefore, I raised the question

@an-tao Maybe in a simpler question, if we have 1000 concurrent requests for a SQL set amount=(amount+1) where id=a and suppose a.amount=0 at the begining, how can we achieve this with DbFastClient such that a.amount=1000 finally.

@an-tao Maybe in a simpler question, if we have 1000 concurrent requests for a SQL set amount=(amount+1) where id=a and suppose a.amount=0 at the begining, how can we achieve this with DbFastClient such that a.amount=1000 finally.

just execute update foo set amount=(amount+1) where id='a' with a normal DbFastClient object.

    **_dbClient << "update foo set amount = (amount + 1)" >>
        [callbackPtr](const Result &r) {
              auto resp = HttpResponse::newHttpResponse();
              resp->setBody("good");
              (*callbackPtr)(resp);
        } >>
        [callbackPtr](const drogon::orm::DrogonDbException &e) {
        LOG_ERROR << "error: " << e.base().what();
        auto resp = HttpResponse::newHttpResponse();
        resp->setStatusCode(k500InternalServerError);
        resp->setBody("Bad");
        (*callbackPtr)(resp);
    };

then you could use drogon_ctl press -c100 -t4 -n1000 http://localhost:port/path to test it.

@an-tao Thanks for the quick reply. It my bad not stating the question clear. With the direct sql, you are right. If using the ORM, there is no way to achieve this, right?

For these sentences:
<< select * from foo where id in ("giver","receiver") for update
<< update foo set amount = amount - 2 where id=giver
<< update foo set amount = amount + 2 where id=reciever

you should use:
<< begin
<< select * from foo where id in ("giver","receiver") for update
<< update foo set amount = amount - 2 where id=giver
<< update foo set amount = amount + 2 where id=reciever
<< commit

that's to say all the three SQL sentence should be in one transaction.

@an-tao Well, I think I found the missing puzzle, Mapper::forUpdate().

with ORM, you should, create a transaction--transPtr, then:
mapper<Foo>(transPtr);
mapper.forUpdate().find(.....,[](Foo a){
     a.getAmount()+=1;
    mapper.update(a);
});

(The above code is just a hint and may not be compiled.)
this can approach the aim, but it takes two database requests, so the performance is definitely not as good as raw SQL.

How kind you are, great thx. I know there will be performance hit for the forUpdate() or ORM as you mentioned in the wiki as well as the Benchmark reports. However, I am still too new to sql at this point.

You could read some articles about database transactions. The transaction is a very important concept in relational databases

True, I briefly read something on the internet. Even worst, I do need to study the syntax/operators of sql as well. Thanks again @an-tao


How to test APIs locally with xsuaa properties

I am following the link below to set up the configuration and do local testing. If  I deploy the app to BTP and bind xsuaa service instance, I can get access token  with oauth authorize, token url, client id and secret and test my REST APIs.
But I have no idea about how to get JWT and call my API locally. The uaadomain and url for xsuaa service is localhost. Then what is the oauth token url and authorize url? Is it "http://localhost:8080/oauth/authorize"?
https://github.com/SAP/cloud-security-xsuaa-integration/tree/main/spring-security#local-setup-fails-with-application-failed-to-start
Application yaml configuration
sap:
  security:
    services:
      xsuaa:
        xsappname: bt001e00_purchase-order-xsuaa!t26007
        uaadomain: host
        #uaadomain: authentication.eu10.hana.ondemand.com
        clientid: sb-bt001e00_purchase-order-xsuaa!t26007
        clientsecret: QkJEpdLjRTv85HXZK/qem82oQp0=
        #url: https://XXX.authentication.eu10.hana.ondemand.com
        url: http://localhost

Hi @JerryZhang0929 ,
if you want to do unit testing you can use java-security-test and build your tests to test the API, see here.
If you want to test your app running locally and test it, then the easiest way is to use the credentials from actual xsuaa service and get the token from there. Security client library does not offer a local xsuaa server that you could use for this purpose.
Kind Regards,
Liga

Hi liga,
Thank you for your response. I am focusing on second scenario.
What confuses me is what should be configured for uaadomain, url and client id and secret in application.yml. The real credentials from xsuaa service instance? I got the access token with the credentials from xsuaa service instance and call API locally. It gave me 404 error.
Regards,
Jerry

Hi @JerryZhang0929,
yes exactly the real credentials from your xsuaa service instance. 404 is not found, check if you called an existing API endpoint.
Kind Regards,
Liga


Cannot deploy child trigger

Hi
Trying to deploy the child trigger, but I am getting an error:
Error:
dlrs_Krow_Timesheet_SplitTest.testTrigger System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Split can not saved without date.: [] Class.dlrs.RollupService.testHandler: line 282, column 1 Class.dlrs_Krow_Timesheet_SplitTest.testTrigger: line 11, column 1
Warning:
dlrs_Krow_Timesheet_SplitTrigger:Test coverage of selected Apex Trigger is 0%, at least 75% test coverage is required
I have already tried turning off all the validation on the child object, but the error still occurs.  Any help would be appreciated, thanks.

@BMJSKS you need to resolve the validation rule in the test code - disabling the validation is a temp workaround really - but if you want to try just look for the validation rule that outputs the error 'Split can not saved without date' and disable it. If you want a more perminant and robust fix you will need a developer to ensure the test child record created in the test code satisfies this validation rule (at a guess seems a date field needs to be populated?). See here for more https://github.com/afawcett/declarative-lookup-rollup-summaries/wiki/Challenges-with-Code-Coverage


Extend classToPlain functionality

Add a way to pass the class type to the classToPlain method, ensuring that decorator metadata can be found at conversion time.
Right now, classToPlain fails to find the metadata and so does not grab the excludes that it should.
Rather than attempting to resolve the target type in the TransformOperationExecutor, I have added some additional exported calls that allow a type to be passed in. This allows the metadata to be looked up and transformed.
This PR should close issues #105 and #95

Hello, and thanks for contributing to this repo :)
Somehow, I feel like passing the class when serialising does not make a lot of sense as the serialiser should use the metadata annotated on the object. However, I agree that it could be useful if you want to deserialise an object from one class using the serialisation rules of another (for example when deserialising an interface). But your PR is trying to fix the current behaviour, which is to serialse using the existing metadata. I would suggest you fix that instead of adding a new - potentially breaking - change :)

Yeah, it would be nice if the existing metadata was found and read during the serialization, but alas that is a bug with the current implementation. I had a look at trying to fix it properly, but didn’t have the time to figure out how to resolve metadata without a type. Rather than creating potentially breaking changes to an existing API, I saw it was least risky to create a new export that allowed the hint, thereby allowing the transformer to find the existing metadata.
If you have a way to do this with the existing code, that would be the best fix, but this patch gets me working for now and I’m on a pretty tight timeframe at the moment

came here as I hit the same pb.

Run in same issues as #105 and #95. Any progress with @Exclude extend?

Having the same problem. Any Progress ?

Hi @emlynmac
Thanks for the PR, but this is not the approach we want to take. This issue is tracked in #199 now. I would highly appreciate it if someone could provide a minimal code example of the problem there.


Enhancement/UI Tweak: Use arrow keys when selecting a PED

It would be nice to search for a ped using the arrow keys. Searching is great until you forget the name of the next ped you wanted to view.

@jnccloud Just to be clear, you want the ped preview to change on moving between the ped names using the arrow keys? Because right now I believe you can move between ped names using the arrow keys but don't get the preview

@jnccloud Just to be clear, you want the ped preview to change on moving between the ped names using the arrow keys? Because right now I believe you can move between ped names using the arrow keys but don't get the preview

Ideally, yes, that would be best. Because I think you either have to click or press enter, and then the ped menu resets while the new ped loads.

okay this might be doable but I'll probably have to rework a lot of stuff and not use the dropdown because it doesn't have any "on item focused" event which makes it harder to implement this smaller, yet difficult change :D But I'll see what I can do

I understand! I will try to tinker around with it as well when I get some free time. Appreciate your time!


Option --include for 'bikeshed source'?

Using pre.include blocks to include content is really helpful to concentrate on structure and text and keep the tables and definition lists somewhere else.
This works very well locally but it's an irreversible decision: Once you start using includes, you won't be able to use the web service for building or check in the full spec source code for easy reading.
Therefore I wanted to know whether an option to include files into the spec source would be feasible, how much effort it would be, i.e. are there any inclusion logic problems to consider? Or is it just a bad idea and one should stick to either using or not using includes?

I don't fully understand. Wouldn't this just write the includes into your source, so you're not using includes at all anymore?

Right. The output of bikeshed source --include input.bs output.bs would be input.bs with all <pre class=include> replaced with their contents. Probably a terrible idea to do this in-place by accident...

Still kinda curious about the use-case for this before I close it. ^_^
So the idea is, I guess, that you've started authoring a spec using includes for organization, but your fear is that at some point you might want to switch back to using a single source file, right?
Dealing with the web service doesn't appear to be a use-case here, since you would have to have a local installation to perform the flattening anyway, and then why are you using the web service to do the actual processing?
I suppose if you ever run into this use-case, just let me know and I'll figure something out. ^_^


⚠ Bofrost.es has degraded performance

In afe8f57, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1577 ms

Resolved: Bofrost.es performance has improved in 4db86a3 after 10 minutes.


How to retrieve the C++ underlying value (string, double, integer, bool...)?

Hey there,
I came accross your lib, and the documentation doesn't cover how to retrieve the stored data.
I'm reading a configuration file, and need to retrieve a string here, a flot there, but std::string spriteSheet = table["data"]["spriteSheet"].get() is saying that it can't convert a node* to a string, with
[data]
spriteSheet="hello.gif"

Thanks in advance

The object you get back from table's operator[] is a node view, and has a bunch of conversion/retrieval member functions. See here for node view API documentation.
I'm on the road atm so can't reply in more detail, but give that a look and let me know how you go.

So it's a combination of as_type() and get(), like table["data"]["spriteSheet"].as_string()->get() is I understand correctly.
Thanks, I missed this page

@SuperFola Yup, pretty much. If you're not interested in the actual node and just want to get right to the value you can also use one of:

value() a pointer to the raw value, or nullptr if it didn't exist or was a different type
value_or(): The underlying value, or some default if it didn't exist or was a different type
ref(): An lvalue reference to the actual value; assumes the value exists and already is of the correct type

All three are available from nodes and node views.


GCS software ideas

https://docs.rastervision.io/en/0.10/
https://github.com/UASLab/ImageAnalysis
related #717

http://www.gphoto.org for controlling dSLR's preview would be GCS.  Perhaps liveview.
Technically libgphoto2 would needed onboard and perhaps python bindings to trigger, download etc.

https://www.opendronemap.org/webodm/
Could also be related to capture via gphoto2 if you wanted to generate preview maps.


[BUG] Benchmark Owner can't fetch individual results

Describe the bug
Benchmark owner should be able to access benchmark results, both from the /benchmarks/{uid}/results as well as /results/{uid}. Currently, the second option is failing, probably because of a bug with the isBenchmarkOwner check
To Reproduce
Steps to reproduce the behavior:

Run a server instance with benchmarks, models, datasets and results
Log in as the owner of a benchmark with existing results
Try to get results from the benchmark with /results/{uid} endpoint
See unauthorized error

Expected behavior
The endpoint should return individual results if the user is a benchmark owner / dataset owner related to that result

was able to reproduce but with 500 internal error, not with an unauthorized error.


evaluate ring vs riot

Currently, I've been using riot.im as a video chat app since I was having connectivity issues with ring. Maybe I'll change it to riot.im instead.

Removed Ring.


feat: Add Landing Page Filters

I'd love to be able to filter for SDK based plugins from the extractors/loaders landing pages. Right now when I search for "sdk" I get 10 search results which makes it seem like we only have 10 SDK based plugins on the hub when we really have close to 100.
I'm sure theres other filters like "amazon" or "aws" that overflow the search box so its hard to see the full list of matches which makes it hard to explore.

+1 Having https://hub.meltano.com/extractors/?keyword=meltano_sdk (or something similar) show the plugins in the same grid view would be nice

Yep - we have the mockups for what this could look like!


Feature/graphing calculator

Fixes #.
Description of the changes:

How changes were validated:

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: gxa2019 sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


Move method chaining to an external module (option-chain)

See https://github.com/jamestalmage/option-chain
Feedback on the API appreciated

LGTM! @sindresorhus ?

Glad we could simplify this logic out into a module :)
API looks good. I would probably not have done the spread option as it's moot with ES2015 and would cause a lot of boilerplate without for now, but doesn't matter.


Browser gets stuck while Viewing huge logs using rancher's "view logs" operation.

Rancher versions:
rancher/rancher:v2.0.4
rancher/rancher-agent:v2.0.4
Infrastructure Stack versions:
kubernetes:v1.10.1
Docker version: (docker version,docker info preferred)
Containers: 23
 Running: 20
 Paused: 0
 Stopped: 3
Images: 16
Server Version: 17.03.2-ce
Storage Driver: aufs
 Root Dir: /app/var_lib_docker/aufs
 Backing Filesystem: extfs
 Dirs: 153
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 4ab9917febca54791c5f071a9d1f404867857fcc
runc version: 54296cf40ad8143b62dbcaa1d90e520a2136ddfe
init version: 949e6fa
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.4.0-116-generic
Operating System: Ubuntu 16.04.4 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 15.67 GiB
Name: k8s-worker0-testlink
ID: Z5OF:24ZF:FRHZ:EGTN:5F2U:R4PB:H4EU:BCUX:DMP2:EIBX:C2YK:X2OW
Docker Root Dir: /app/var_lib_docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 <IP_ADDRESS>/8
Registry Mirrors:
 https://8jijd8fz.mirror.aliyuncs.com
Live Restore Enabled: false

WARNING: No swap limit support

Operating system and kernel: (cat /etc/os-release, uname -r preferred)
4.4.0-116-generic
Type/provider of hosts: (VirtualBox/Bare-metal/AWS/GCE/DO)
VMWare
Setup details: (single node rancher vs. HA rancher, internal DB vs. external DB)
single node rancher
Environment Template: (Cattle/Kubernetes/Swarm/Mesos)
Kubernetes
Steps to Reproduce:
If a pod produces many many logs, then use the rancher's view logs operation.
Results:
My browser gets stuck.  All I can do is closing the rancher web page forcibly.

Rancher v1 handled this differently. When viewing logs through the browser, it would start at some reasonable number of lines back from the current position (100? 500?). Rancher v2 appears to show all logs from the start of the container (or at least from the start of the available logs). For long-running or chatty containers, this can result in megabytes of garbage data being streamed to the browser.  I propose that this be classified as a bug in v2.

Both of Rancher 1.6 and 2.0 show last 500 lines. https://github.com/rancher/ui/blob/master/app/components/container-logs/component.js#L11

@loganhz is this a change that was recently added? is there a reason why v2.0.4 would be hitting this?

@deniseschannon @loganhz we're still passing the tailLines flag to the cluster api on https://github.com/rancher/ui/blob/master/app/components/container-logs/component.js#L97

I guess if container generates thousands of logs in few minutes, then it might be a problem.
The following is the comment from Vince.
Yes, but if you're getting that much you want to stop the scrolling and read some of it.. but if you drop a line off the top when a new one comes in to the bottom then any given line keeps sliding up and you can't read them
1.x never limited it and I don't know of any complaints.. if we had to do something about it, I'd probably want to do sliding-window rendering, where you keep all the text in memory but only render a fixed number of lines that are visible on the screen and change what those lines are based on the scroll position.  (but that requires fixed-height lines so you'd have to turn that mode on when it got to x,000 lines and disable line-wrapping)

Steps to reproduce

Create a workload with image liuyan/producelog:v3
View the log of the pod.

@loganhz Thanks for your image. My safari still gets stuck due to fast log printing.

@happyyangyuan it's not released. It will be out in 2.1

Given the same backend, I can reproduce this issue with old UI but can not reproduce it with the current UI on my laptop. I guess it is much better now.
@happyyangyuan It will be great if you can try rancher/rancher:master and deploy the workload with image liuyan/producelog:v3.

Version -2.1 master 9/4
Verified fixed

In case someone wants complete (RAW) logs or different # of rows, this bookmarklet can help from POD page (asks for number of lines and get RAW data this windows reads, enter is "unlimitted", but in fact big number works better):
javascript:t=prompt('Tail ?');t=(t?'&tailLines='+t:'');window.open('https://<IP_ADDRESS>/k8s/clusters/'+location.href.split(':')[1].split('/')[4]+'/api/v1/namespaces/web/pods/'+location.href.split(':')[3]+'/log?follow=false'+t)

In case someone wants complete (RAW) logs or different # of rows, this bookmarklet can help from POD page (asks for number of lines and get RAW data this windows reads, enter is "unlimitted", but in fact big number works better):
var t=prompt('Tail ?');t=(t?'&tailLines='+t:'');window.open(location.origin+'/k8s/clusters/'+location.href.split(':')[1].split('/')[4]+'/api/v1/namespaces/web/pods/'+location.href.split(':')[3]+'/log?follow=false'+t)

And for coloring of open ANSI text use this bookmarklet:
javascript:var oReq = new XMLHttpRequest();oReq.open("GET", "https"+"://raw.githubusercontent.com/drudru/ansi_up/master/ansi_up.js", true);oReq.onloadend = function (oEvent) {new Function(oReq.responseText)();var el=document.getElementsByTagName("PRE")[0];el.innerHTML=(new AnsiUp).ansi_to_html(el.innerText);};oReq.send();undefined

For newer Rancher there is different path and bookmarklet must be activated from particular container page.
javascript:t=prompt('Tail ?');t=(t?'&tailLines='+t:'');window.open('https://<IP_ADDRESS>/k8s/clusters/'+location.href.split(':')[1].split('/')[4]+'/api/v1/namespaces/fission-function/pods/'+location.href.split(':')[3].replace(/(.+)/(.+)//g,'$1/log?$2=')+'&follow=false'+t)


chore(scripts) fix final release script merge order

Skipping changelog since this is a purely internal PR


Create FAQ section in Meshery contributing Docs

Description
Currently, Meshery Doc does not have a properly compiled FAQ and answers
Expected Behavior

You are expected to add more FAQ's and answers to the FAQ section on the doc
Move the FAQ to https://docs.meshery.io/project/contributing
Ensure there is consistency in questions and answers format.

Screenshots/Logs

Environment

Host OS: Mac Linux Windows
Meshery Server Version: stable-v
Meshery Client Version: stable-v
Platform: Docker or Kubernetes

Contributor Resources:

(Contributing Docs](https://docs.meshery.io/project/contributing)

hey @Anita-ihuman, I'd like to work on this issue.

Sounds great. Thank you, @The-Loony-Coder 👍

@The-Loony-Coder here you are:
Docs Contributor Resources

Meshery documentation site
Meshery documentation source
Instructions for contributing to documentation
Layer5 Community Slack

Can I work on this issue?

hey @ujju20 , looks like someone is already working on this issue. There are a number of other issues that you go through to see which one you would like to do.

hey @Anita-ihuman, I've compiled some questions,have a look at them and tell me if i'am going in the right direction and I also wanted to ask like,1.How many questions should I add.Who is the target audience like ,is  it for newcomers joining the community.

The target audience is both users and contributors
Questions number 1-6 look promising.
Seams to touch the key FAQ's asked currently.

@The-Loony-Coder any updates on this?

I would send the pr by 8 pm, I've only added 5 question, if you have other questions in mind, I can add them too..


Add support for bold, dim, and reverse on legacy Windows consoles

Some fixes for the PR #1993

Adds support for bold, dim, and reverse on legacy Windows consoles.
Calls the Windows Console API in order to output text, instead of writing to the Console.file

Codecov Report

Merging #2019 (d87498b) into ansi-to-win32 (7525377) will decrease coverage by 2.91%.
The diff coverage is 0.00%.

@@                Coverage Diff                @@
##           ansi-to-win32    #2019      +/-   ##
=================================================
- Coverage          99.54%   96.62%   -2.92%
=================================================
  Files                 73       73
  Lines               7294     7297       +3
=================================================
- Hits                7261     7051     -210
- Misses                33      246     +213

Flag
Coverage Δ

unittests
96.62% <0.00%> (-2.92%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

rich/_win32_console.py
3.38% <0.00%> (-86.85%)
:arrow_down:

rich/console.py
97.66% <0.00%> (-1.97%)
:arrow_down:

rich/_windows_renderer.py
0.00% <0.00%> (-100.00%)
:arrow_down:

Continue to review full report at Codecov.

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


Proper dropdown active area and arrow placement

Pull Request Description
Fixes #7423
Refactored widget matching algorithm to allow creating wrapper widgets even in cases where the widget config override is present. That allowed the widgets to be reordered, such that the argument name ends up being inside the dropdown widget. That way clicking it opens the dropdown.
Added explicit manual layout for the dropdown arrow position. Now it is positioned on the center of a selected appropriate child widget. For prefix chains, the leftmost part of the prefix application (the method or constructor) is selected.
https://github.com/enso-org/enso/assets/919491/86678b9d-c04e-4545-8d11-2d1e85b9b951
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:

[x] The documentation has been updated, if necessary.
[x] Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
[x] All code follows the
Scala,
Java,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
All code has been tested:

[x] Unit tests have been written where possible.
[x] If GUI codebase was changed, the GUI was tested when built using ./run ide build.

QA: :green_circle:


Extract layers features from m2m_100 model

❓ Questions and Help
Currently, I'm trying to convert the M2M_100 model into a different programming language. For testing the conversion I would like to extract certain layers features from M2M_100 model. Is there a straightforward way to achieve that?  Like in the "Example Usage" section for the Roberta model: https://github.com/pytorch/fairseq/tree/master/examples/roberta
But I could not find the equivalent to .extract_features in the pipeline_parallel_transformer: https://github.com/pytorch/fairseq/blob/master/fairseq/model_parallel/models/pipeline_parallel_transformer/model.py

hello, we have not implemented this feature, but if you do, please consider making a pull request!

hello, we have not implemented this feature, but if you do, please consider making a pull request!


[Bug]: Cohere astream_chat() doesn't work with await

Bug Description
There is an issue with the astream_chat() for Cohere. It doesn't work await.
The code in acompletion_with_retry doesn't seem to work.
The Async example in the below link doesn't work. It gives the same error as in my app.
https://docs.llamaindex.ai/en/stable/examples/llm/cohere/
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
[<ipython-input-19-26c09826c742>](https://v6zl6wjyioo-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab_20240411-060128_RC00_623759654#) in <cell line: 1>()
----> 1 resp = await llm.astream_complete("Paul Graham is ")

9 frames
[/usr/local/lib/python3.10/dist-packages/llama_index/llms/cohere/utils.py](https://v6zl6wjyioo-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab_20240411-060128_RC00_623759654#) in _completion_with_retry(**kwargs)
     98         else:
     99             if is_stream:
--> 100                 return await aclient.generate_stream(**kwargs)
    101             else:
    102                 return await aclient.generate(**kwargs)

TypeError: object async_generator can't be used in 'await' expression

Version
latest
Steps to Reproduce
Run the example under Async section of:
https://colab.research.google.com/github/run-llama/llama_index/blob/main/docs/docs/examples/llm/cohere.ipynb
Relevant Logs/Tracbacks
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
[<ipython-input-19-26c09826c742>](https://v6zl6wjyioo-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab_20240411-060128_RC00_623759654#) in <cell line: 1>()
----> 1 resp = await llm.astream_complete("Paul Graham is ")

9 frames
[/usr/local/lib/python3.10/dist-packages/llama_index/llms/cohere/utils.py](https://v6zl6wjyioo-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab_20240411-060128_RC00_623759654#) in _completion_with_retry(**kwargs)
     98         else:
     99             if is_stream:
--> 100                 return await aclient.generate_stream(**kwargs)
    101             else:
    102                 return await aclient.generate(**kwargs)

TypeError: object async_generator can't be used in 'await' expression

Today I encountered the same issue while attempting to run async streaming chat using Cohere. It appears to be similar to the problem described above.
Is there any update on this? Are you guys @co-antwan (CC @harry-cohere)  aware of this bug :)?
Thanks!

I wanted to update this thread as I've successfully resolved the issue.
I made slight modifications to both astream_chat() and acompletion_with_retry() functions to ensure proper handling of asynchronous generators and awaitable responses, which appears to have resolved the problem. Here's a brief overview of the changes:
llms/cohere/base.py:
...
    @llm_chat_callback()
    async def astream_chat(
            self, messages: Sequence[ChatMessage], **kwargs: Any
    ) -> ChatResponseAsyncGen:
        history = messages_to_cohere_history(messages[:-1])
        prompt = messages[-1].content
        documents = kwargs.pop("documents", None)

        all_kwargs = self._get_all_kwargs(**kwargs)
        all_kwargs["stream"] = True
        if all_kwargs["model"] not in CHAT_MODELS:
            raise ValueError(f"{all_kwargs['model']} not supported for chat")

        async def gen() -> ChatResponseAsyncGen:
            content = ""
            role = MessageRole.ASSISTANT
            async for r in await acompletion_with_retry(
                    aclient=self._get_aclient(),
                    max_retries=self.max_retries,
                    chat=True,
                    message=prompt,
                    chat_history=history,
                    documents=documents,
                    **all_kwargs,
            ):
                if "text" in r.__dict__:
                    content_delta = r.text
                else:
                    content_delta = ""
                content += content_delta
                yield ChatResponse(
                    message=ChatMessage(role=role, content=content),
                    delta=content_delta,
                    raw=r.__dict__,
                )

        return gen()

Also refactored the retry logic in acompletion_with_retry() to cleanly separate the handling of async generators (for streaming responses) and regular async functions (for immediate responses):
async def acompletion_with_retry(
        aclient: Any,
        max_retries: int,
        chat: bool = False,
        **kwargs: Any,
) -> Any:
    """Use tenacity to retry both stream and non-stream API calls, properly handling async generators."""
    retry_decorator = _create_retry_decorator(max_retries=max_retries)
    is_stream = kwargs.pop("stream", False)

    if is_stream:
        @retry_decorator
        async def _stream_with_retry(**kwargs: Any) -> Any:
            # If it's a stream, return the async generator directly
            async for s in (aclient.chat_stream(**kwargs) if chat else aclient.generate_stream(**kwargs)):
                yield s
        return _stream_with_retry(**kwargs)
    else:
        @retry_decorator
        async def _completion_with_retry(**kwargs: Any) -> Any:
            if chat:
                return await aclient.chat(**kwargs)
            else:
                return await aclient.generate(**kwargs)
        return await _completion_with_retry(**kwargs)


Use custom hook for fetcher; Add a module for compute hooks

Use the custom hook for geoJson fetch and showcase how it's used.
Making custom hook and use the context inside it makes it very easy to use in chart_loader (just one line call). This also allows clear check up of all the dependency in each custom hook, which unveils some mis-matched variables.

Thanks for the review!


Add Quality Metrics to viz notebook

Submission checklist

[X] Reviewed all Files changed prior to selecting Create Pull Request.
[ ] Ran and passed all pytests, and ran the pipeline for features not covered by tests.: Not applicable
[ ] Ran pre-commit checks, including black, flake8, etc: Not yet implemented
[X] Updated the changelog and if making a new release, updated the version.py.
[ ] Updated documentation, including concepts.md, tutorials.md, and relevant docstrings: Not applicable
[X] After merge, I will push a new tag to upstream (test* prefix if no new release).

Submission details
In this pull request, I make the following changes:

Notebook/py_script: Add QC plots. Jupytext sync
Version bump in changelog
Version bump version.py to reflect previous changes with listed release date
Analysis.py - fix typing issue

Thanks @kushalbakshi - Good catch. Yes, the repo should reflect the unreleased number


An error occurred when running 'cargo build'

error: field `inf` is never read
   --> neqo-crypto/src/agent.rs:227:5
    |
212 | pub struct SecretAgent {
    |            ----------- field in this struct
...
227 |     inf: Option<SecretAgentInfo>,
    |     ^^^
    |
note: the lint level is defined here
   --> neqo-crypto/src/lib.rs:7:45
    |
7   | #![cfg_attr(feature = "deny-warnings", deny(warnings))]
    |                                             ^^^^^^^^
    = note: `#[deny(dead_code)]` implied by `#[deny(warnings)]`
    = note: `SecretAgent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis

error: field `fd` is never read
   --> neqo-crypto/src/agent.rs:872:5
    |
871 | struct ZeroRttCheckState {
    |        ----------------- field in this struct
872 |     fd: *mut ssl::PRFileDesc,
    |     ^^
    |
    = note: `ZeroRttCheckState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis

error: fields `epoch`, `ct` and `len` are never read
  --> neqo-crypto/src/agentio.rs:37:5
   |
36 | struct RecordLength {
   |        ------------ fields in this struct
37 |     epoch: Epoch,
   |     ^^^^^
38 |     ct: ContentType,
   |     ^^
39 |     len: usize,
   |     ^^^
   |
   = note: `RecordLength` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis

error: could not compile `neqo-crypto` due to 3 previous errors

The version of Rust I'm using is 1.65.0, does it affect code runs?

The Rust version is likely the reason, since we made no changes to the neqo-crypto library. Try with Rust 1.51.

Does neqo-qcsd need to run on qcsd-experiments?
when I run ./target/debug/neqo-server [::]:12345 --db ./test-fixture/db, I got the error zsh: no matches found: [::]:12345, may I ask what should I do?

That is an error from your shell, zsh, as opposed to the program. It possibly has something to do with needing to escape the string '[::]:12345'

When I run python -m pip install --no-cache-dir -r requirements.txt, an error occured:

in particular, I can't run python -m pip install git+https://github.com/jpcsmith/wf-tools.git


Question:ConfigFile  Path

Type (choose one):

Question

NLog version: "NLog.Extensions.Logging  Version="1.0.0-rtm-beta4"
Platform:  NET Core
Hi, I have  a question.   I must set the nlog config  file in folder 'config',and the config file name must
'nlog.config'.
so my code is   public static Logger logger = LogManager.GetCurrentClassLogger(path:"config/nlog.config");
but it doesn't work.
i know if it have a file 'NLog.config'  ,it works.
so  how i do it?
thank you!

You need to pass the path of the config to env.ConfigureNLog,
e.g. in startup.cs"
public Startup(IHostingEnvironment env)
{
    env.ConfigureNLog("config/nlog.config");
}

See https://github.com/NLog/NLog.Web/wiki/Getting-started-with-ASP.NET-Core-(project.json)

oh  sorry。  I forgot to say.  This program is a ClassLibrary.  do not have 'startup.cs'

@304NotModified   Hello？

You could also use:
LogManager.Configuration = new XmlLoggingConfiguration("c:/tempconfig/nlog.config");

0.0  Thank you very much.  I have a try

I assume your question has been answered, if not, let us know!


Refactor sub-commands to be testable

Refactor sub-commands to be testable and add tests to them.

Pull Request Test Coverage Report for Build 223

14 of 19 (73.68%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-23.5%) to 71.856%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

cmd/fmt.go
9
11
81.82%

cmd/root.go
5
8
62.5%

Totals

Change from base Build 219:
-23.5%

Covered Lines:
360

Relevant Lines:
501

💛  - Coveralls


updating to 0.36.0 with oleh's Hardhat Plugin

Superseding #93 by integrating Oleh's Hardhat plugin which allows to remove A TON of code.
I'll try to update this example with Honk later on.

also
https://github.com/AztecProtocol/noir-starter/blob/cba421c8eb82246b212a8c78a5a98f546f0432dd/vite-hardhat/test/index.test.ts#L17
and
https://github.com/AztecProtocol/noir-starter/blob/cba421c8eb82246b212a8c78a5a98f546f0432dd/vite-hardhat/test/index.test.ts#L13
should probably be removed. hardhat-plugin-noir hooks into hardhat compile task, so noir is compiled automatically before the tests are run.

and probably remove compile.ts from circuit/ folder

One thing that will probably give me some white hair is the CI, I can already see it not finding noirup in path... Here we go again...

But the plugin it installs noirup in ~/.nargo folder. Is it not in path or something?

I think it’s possible to use the absolute path for noirup and bbup. I will push a fix today

One thing that will probably give me some white hair is the CI, I can already see it not finding noirup in path... Here we go again...

@signorecello update to<EMAIL_ADDRESS>and ci should pass

gtg @olehmisar will merge now, thanks!


[RFC] [docs] Add Flexbox Examples using the Stack component in the docs

What's the problem? 🤔
If I read the mui system documentation about flexbox, I was expecting to see some examples of the Stack component because it's basically a Box that implements flex, right?
But there are only examples of flexbox implemented with Box.
What are the requirements? ❓
The Stack component should be represented in the Flexbox documentation.
What are our options? 💡

Either rewrite the docs using Stack

OR (preferred):

Add flexbox examples using Stack and show them first.

Proposed solution 🟢
As said before, I would like to see Stack represented in the docs. Seeing only Box being used might lead to people thinking this is the preferred way of flexbox.
BUT I can also see that the linked documentation is implemented using only Box, which might have been done for a valid reason.
Thats why I am asking for comments on this.
Resources and benchmarks 🔗
No response

I'd go even further and use plain div with inline styles for component demos. The reason is to keep a demo simple as possible and let the reader focus on just one component at a time.
Using Box or Stack is not friendly for beginners. For example, you want to check out the button's variant but then you see this:
<Box sx={{ display: 'flex', alignItems: 'center', gap: 2 }}>
  <Button>...</Button>

If you are new to Material UI, the first question won't relate to the button but:

"what's Box"?
"what's sx"?
"why gap: 2 return 16px"?

cc @samuelsycamore for more thoughts, I'll let him decide on this.

How does that sound?

Totally agree! using div with inline styles sounds great for the basics.

From there, we could gradually introduce the sx prop and the Box and Stack components

That sounds great!


Fixed Spelling Error in Discover Page

Original: Floaing
Fixed: Floating

Hi, I'm not accepting PRs on this repo as explained in the Read Me but I committed a fix for the typo, thanks for reporting it!


easy window resizing and template positioning

Description
New to hyprland and happy to see a reasonably easy configurable WM growing popularity.
The window placement is mostly pleasant to work with.

Being able to drag the size of a window looks like a welcome feature, this would not change positioning, just size

the ability to configure a template for window positioning could prove practical, for example like
Master (left, 70%) Master (left, 30%) Other (right, 60%) Other (right, 40%)

the ability to assign such templates to workspaces and/or multiple master-layout profiles also seems interesting

The first point is addressed by the option general:resize_on_border = true. For the rest, a layout plugin might be more suitable (unless there are already scripts that do what you want).

The first point is addressed by the option general:resize_on_border = true. For the rest, a layout plugin might be more suitable (unless there are already scripts that do what you want).

Thanks for that, I must have overlooked this.
If a script can do that I may have a go at it and turn it into a plugin.

also my compliments on a very well made product, thank you
in the early days I used blackbox and fluxbox, later metacity
somehow I never grew the same comfort with modern desktops untile with hyprland

I don't understand point 2 and 3

I don't understand point 2 and 3

Attempt at splitting up that my understanding it is one (master, dwindle) policy applied to all workspaces, looking to have a policy associated with a worksapce and another
A template could look like setting what app to open in what window at what size of window

what?

what?

please elaborate

I just don't understand what you want to achieve at all

basically, to set multiple templates for how application windows can be spread in a workspace
say i call a template 'code' which offers one big window for code at 60% width next to that one at 60% for reading a PDF, one at 40% for keeping a terminal open. to go as far as to create a key-binding to load such a template with pre-configured applications to open at the workspace of choice
from what i gathered this is not explicitely possible but could be made possible

The first point is addressed by the option general:resize_on_border = true. For the rest, a layout plugin might be more suitable (unless there are already scripts that do what you want).

cannot believe I overled that the resize_on_border was actually in the template config, works great

yeah you can select which workspace apps open on (rules) but setting templates isnt possible

This is what I understood
(sample)

This surely is a good feature, but I do not have any idea if this is possible for  the 2 layouts dwindle and master to have
For dwindle I can think of a workaround using
default_split_ratio

One can write a program to launch apps respectively with their own ratio.
apps A,B, and C can have their own ratio (by pair) so
example
A+B can have 0.9  then C will depend on B.
Templating is certainly a good feature to have.

This is what I understood (sample)
This surely is a good feature, but I do not have any idea if this is possible for the 2 layouts dwindle and master to have
For dwindle I can think of a workaround using default_split_ratio
One can write a program to launch apps respectively with their own ratio.
apps A,B, and C can have their own ratio (by pair) so
example A+B can have 0.9 then C will depend on B.
Templating is certainly a good feature to have.

very much on point with what i have in mind

I don't think the configuration for templates should be too extensive.
It could be that such is a third option next to master and dwindle.
sharing the below to consider options, it may be too convoluted
To asume for a moment layout engine = templated
workspace = main, M:L(F,40%, $myapp1), S:(30%,,$myapp2),S:(R,,$myapp3),S:(20%,,$myapp4)
workspace = dev, M:C(F,50%,$myapp6),S:L(10%,,$myapp7),S:L
syntax be like
,
M=master, S=Slave : L(eft) R(ight) C(enter) T(op) B(ottom) M(iddle)  (,,)
where inside the () F(ull) R(emainder) E(qualise)

something like that

So would it have fixed number of pre-configured windows? What happens if one opens more than his pre-configured layout has? Looks like it could be new option (master, dwindle, static?) but i think it's a lot of work.


fix isolated builds with external registry

CLOUDBLD-1742

Signed-off-by: Robert Cerven<EMAIL_ADDRESS>Maintainers will complete the following section

[ ] Commit messages are descriptive enough
[ ] Code coverage from testing does not decrease and new code is covered
[ ] JSON/YAML configuration changes are updated in the relevant schema
[ ] Changes to metadata also update the documentation for the metadata
[ ] Pull request has a link to an osbs-docs PR for user documentation updates
[ ] New feature can be disabled from a configuration file

not updating rn, fix for unreleased feature


fix(docs): uncomment section about --server-side in upgrades

Also mention testing for Kubernetes 1.29
Closes #3747

/ok-to-merge

My bad ... the documentation was already there: https://cloudnative-pg.io/documentation/current/installation_upgrade/#server-side-apply-of-manifests


A few more cosmetic changes

These are mostly cosmetic changes, but I hope they make the code a little bit more readable.

Merged, also added a comment to the payload() method and renamed it (c08abc805d108bda2f4bd67e09199660ce936726 and 4423e17d4150065ae93ecb8d3384cc85ae37a877). Thanks!


register time filter for extant resources

for folks doing non lambda policies, its useful to be able to schedule an action around a given time window. the time filter thats the base class for offhours/onhours filters basically handles this, so we should go ahead and make it available. For folks doing lambda policies, they can directly schedule the policy for a given time.

going to call yagni for now.


No published analyzer available for language version 2.19.0

I doubt the analyzer team itself will have time to go back and publish an older version.


Celebratory Modal for Course Section Completion

Description
LEARNER-7946

Implement analytics for celebration modal.
Gif support for celebration image.
Landscape mode support celebration dialog.
Custome supported social sharing popup menu.
Vector Approach for the share icon in the celebratory modal.

Celebration Modal Screenshots

Portrait
Landscape

@omerhabib26 ready for another review.

The flow is working fine on the tablet but the video is not autoplay on the dismissal of dialog so we need to that as well.


New version: Jackett.Jackett version 0.22.275

Pull request has been created with WinGet Releaser :rocket:
Microsoft Reviewers: Open in CodeFlow

/azp run

https://github.com/microsoft/winget-pkgs/issues/142854


Add background image to sql db projects dashboard

This PR adds background image for sql db projects dashboard. Additionally, also fixed the context menu to have "Manage" only at root level.
Dashboard (light):

Dashboard (dark):

Pull Request Test Coverage Report for Build 707062634

1 of 19 (5.26%)  changed or added relevant lines in 3 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.003%) to 43.539%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

extensions/sql-database-projects/src/projectProvider/projectProvider.ts
0
1
0.0%

extensions/data-workspace/src/dialogs/projectDashboard.ts
0
17
0.0%

Files with Coverage Reduction
New Missed Lines
%

extensions/data-workspace/src/dialogs/projectDashboard.ts
2
0%

Totals

Change from base Build 706355461:
-0.003%

Covered Lines:
26065

Relevant Lines:
54695

💛  - Coveralls

if you really want to use the gradient color you should subscribe to the theme change event vscode.window.onDidChangeActiveColorTheme and update the css style accordingly.

you can get the current color theme by vscode.window.activeColorTheme

it looks a little strange with the background image icon floating there. The gradient is gone for now, but can there be a line or something to split the header from the tables section?

Agreed. Added border at the bottom.


The dialog no longer re-sizes once closed

The dialog re-sizes initially, but when closed bring the screen size down to a mobile resolution then open the dialog and re-size the screen to a larger resolution. The dialog will not resize when the screen size is re-adjusted to a normal desktop size, issue occurs in JSFiddle also.

I'm seeing this issue too. When re-opening the dialog I see an error "cannot call methods on dialog prior to initialization" when resizing the browser window.


Handle all chars that need to be encoded

Per http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html#query-string-auth-v4-signing
Ran into an issue with AWS ES where CanonicalURI and co. needed a few more characters encoded than there was. This patch resolves it but I haven't tested it anywhere else and it probably could use some linting but I didn't want to push my eslint config's opinions on others. Let me know if any changes are needed.

Thanks - can you give an example of a URL that wasn't working that gets fixed by this pull request?

Error was in saving a Kibana visualization titled (Downloads+Inserts) / Searches.
Request Signer Output:
Canonical Request: POST
/_plugin/kibana/elasticsearch/.kibana/visualization/(Downloads%2BInserts)-slash-Searches
op_type=create
accept:application/json, text/plain, */*
accept-encoding:gzip, deflate, br
accept-language:en-US,en;q=0.8
content-type:application/json
dnt:1
host:<snip>.us-west-2.es.amazonaws.com
kbn-version:5.1.1
origin:https://<snip>.us-west-2.es.amazonaws.com
referer:https://<snip>.us-west-2.es.amazonaws.com/_plugin/kibana/app/kibana
user-agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.59 Safari/537.36
x-amz-algorithm:AWS4-HMAC-SHA256
x-amz-date:20170331T174443Z`

AWS Response:
The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.

The Canonical String for this request should have been
'POST
/_plugin/kibana/elasticsearch/.kibana/visualization/%28Downloads%252BInserts%29-slash-Searches
op_type=create
accept:application/json, text/plain, */*
accept-encoding:gzip, deflate, br
accept-language:en-US,en;q=0.8
content-type:application/json
dnt:1
host:<snip>.us-west-2.es.amazonaws.com
kbn-version:5.1.1
origin:https://<snip>.us-west-2.es.amazonaws.com
referer:https://<snip>.us-west-2.es.amazonaws.com/_plugin/kibana/app/kibana
user-agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.59 Safari/537.36
x-amz-algorithm:AWS4-HMAC-SHA256
x-amz-date:20170331T174443Z

accept;accept-encoding;accept-language;content-type;dnt;host;kbn-version;origin;referer;user-agent;x-amz-algorithm;x-amz-date
<snip>'

AWS expects %28Downloads%252BInserts%29-slash-Searches vs (Downloads%2BInserts)-slash-Searches.

Thanks for the extra info @Liath, I will merge this in then break the testable stuff out into a library and write some unit tests. It's getting a bit complicated.

On Apr 5, 2017 6:46 PM, "David Poirier"<EMAIL_ADDRESS>wrote:

Thanks for the extra info @Liath https://github.com/Liath, I will merge
this in then break the testable stuff out into a library and write some
unit tests. It's getting a bit complicated.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/carsales/aws-request-signer/pull/9#issuecomment-292045848,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABfi-49SLibvLPP7rMTLPZwgEa_uwVI_ks5rtEPcgaJpZM4MtrSs
.

I have some users held up by this, any chance on getting it pushed through?

I've merged it in but I'll need to write some tests before doing another release. Thanks!


Revert "Added more test codes from David Kruger, dealing with cosdataset...

Reverts lisa-lab/pylearn2#1339

Reverting will just make the history uglier. I'll merge #1365 directly.


ImportError: No module named pyksvd

Hi, I'm compiling on Mac, and encountering this error. I'm running the Anaconda python. I used the following commands.

export CC=/usr/local/Cellar/gcc/7.2.0/bin/gcc-7
export C++=/usr/local/Cellar/gcc/7.2.0/bin/g++-7
python setup.py install

+++++++++++++++++++
Cython Files Found:
ksvd/ksvd_wrapper.pyx
+++++++++++++++++++++
C Extension Files Found:
ksvd/ksvd_wrapper.cpp
+++++++++++++++++++++
Relevant Python Files Found:
ksvd/__init__.py
+++++++++++++++++++++
running install
running build
running build_py
running build_ext
skipping 'ksvd/ksvd_wrapper.cpp' Cython extension (up-to-date)
running install_lib
copying build/lib.macosx-10.7-x86_64-2.7/ksvd/ksvd_wrapper.so -> /Users/kyoungrok/anaconda/envs/ksvd/lib/python2.7/site-packages/ksvd
running install_egg_info
Removing /Users/kyoungrok/anaconda/envs/ksvd/lib/python2.7/site-packages/pyksvd-0.01-py2.7.egg-info
Writing /Users/kyoungrok/anaconda/envs/ksvd/lib/python2.7/site-packages/pyksvd-0.01-py2.7.egg-info

Error is as follows
ImportError                               Traceback (most recent call last)
<ipython-input-3-5514aeff0fbf> in <module>()
----> 1 import ksvd

/Users/kyoungrok/Desktop/Code/pyksvd/ksvd/__init__.py in <module>()
----> 1 from ksvd_wrapper import KSVD, KSVD_Encode

ImportError: No module named ksvd_wrapper

I restarted my mac and suddenly start working. So I close this issue.


Fork to Crud Generator

Hi,
I really like this generator. Then a create a fork and add my preferences to this:

Change

{{ $loop->iteration }}

to
{{ $item->id }}

in src/stubs/views/html/index.blade.stub

Change

to

in src/stubs/views/html/index.blade.stub

Add orderBy() to controller
Add folder includes in publish/views
and others

Valid suggestions. I support


Make the RealmSwift binary submittable to the iOS app store

Closes #1907.
\c @jpsim @tgoyne @bdash

Even if nested frameworks work on OS X I think we may want to do the same thing there so that we don't need different install instructions for the two platforms.
Did you test building the full release package (WORKSPACE=/tmp/whatever sh build.sh test-package-release) and submitting to the app store with the built frameworks from that?

No, but I did test that manually building the two frameworks (without using the now-deleted build phase script) was submittable to the app store)

@segiddins @tgoyne I can confirm, I also build via build.sh build and it went through the app store submission.

What exactly do I need to type in to the terminal to try this fix?

This has now been updated to also un-nest the OS X RealmSwift.framework, please re-review.

Could you update the installation examples under examples/installation to reflect this change? We'll also need to update our installation instructions, so please draft a PR on realm.io once this is merged.

Otherwise, :+1:

The CI failure here is

2015-05-26 13:15:04.703 xcodebuild[34272:468137] [MT] iPhoneSimulator: SimVerifier returned: Error Domain=NSPOSIXErrorDomain Code=53 "Simulator verification failed." UserInfo=0x7fcf8142ff60 {NSLocalizedFailureReason=A connection to the simulator verification service could not be established., NSLocalizedRecoverySuggestion=Ensure that Xcode.app is installed on a volume with ownership enabled., NSLocalizedDescription=Simulator verification failed.}

@tgoyne @bdash please give this a quick look over?

:+1:

:+1:
CHANGELOG


Default Region not updating

Whenever device timezone is changed, default region in the application is not getting updated. Please check on this.

Is there a way to check it in Simulator?
Both Locale and TimeZone uses the default autoupdating feature.

@malcommac
Hi, no there is no way to check on simulator. I tested this scenario on device.

Dear, I think bug still occur at build 4.5.0 when I change the time zone of my device. Time get time with properties of SwiftDate, it still uses old TimeZone.
I replace by use DateComponents with TimeZone autoUpdatingCurrent


[L5] Produce L1D CDF formatted data products for IMAP-Ultra

Summary of the L5 requirement
The SDC needs to produce L1C CDF formatted data products for the IMAP-Ultra instrument. The data products for L1B can be found in the IMAP-Ultra algorithm document here: https://lasp.colorado.edu/galaxy/display/IMAP/IMAP+Algorithm+Document+from+Instrument+Teams
Parent requirement

SOC-SDC-L4-29
SDC Execution of L1 Processing Software
The SDC shall be capable of executing L1 processing software to produce L1 data products within seven (7) days of receipt of all requisite data inputs.
Requirement
The SDC produces L1 data products via Instrument Team supplied algorithms and SDC produced processing code.
SOC-L3-57
Test
SIT-3: L0 -> L1 processing
SIT-3

Tasks
Create these L1C data products:

[x] #236

L1D moved to L2.


Github CodeQL Support

Godot version:

Any
OS/device including version:

Any
Issue description:

https://lgtm.com/projects/g/godotengine/godot/overview/
Shows some errors and warnings. It would be good if Godot had LGTM alert count icon too with AppVeyer, Travis, Triage and Weblate in README.
Ready to close this issue if it seems useless, irrelevant, duplicate or previously discussed.
Steps to reproduce:
Visit the links, checkout the errors and warnings.
Minimal reproduction project:

I'll keep updating this comment changes with that'll reduce LGTM warnings/errors:

Change gmtime and localtime to gmtime_r and localtime_r in os_unix.cpp(Info).
Change data type of width_cache and wrap_amount_cache from int to unsigned int(Info).
...
Do advice which are good and which are bad for Godot.

Can the maintainers install the LGTM GitHub app for Godot?

lgtm.com is going down in Dec 2022(https://github.blog/2022-08-15-the-next-step-for-lgtm-com-github-code-scanning/) so the badge for it in our readme.md and the page https://lgtm.com/projects/g/godotengine/godot/alerts?mode=list will stop working.
To make it continue to work after that, we need to enable it on Github itself for this repo.
Requesting maintainers to discuss this when they have time and close this ticket if it isn't worth the effort.

Since LGTM.com has shutdown after being acquired by Github, the badge hasn't been implemented by Github yet.
However, the static checks from Semmle/LGTM seem to be in Github's CodeQL and are useful.
I've renamed the ticket as there's interest on this: https://github.com/godotengine/godot/pull/75948.
Maybe we can close this once that is merged.


WIP: basic XDS proxy

[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Pull Request Attributes
Please check any characteristics that apply to this pull request.
[ ] Does not have any changes that may affect Istio users.

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

/test all

@howardjohn: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
9028a06dab7fb7b294ba094291f931ab80b406eb
link
/test release-notes_istio

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

@howardjohn: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
9028a06dab7fb7b294ba094291f931ab80b406eb
link
/test release-notes_istio

lint_istio
9028a06dab7fb7b294ba094291f931ab80b406eb
link
/test lint_istio

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

@howardjohn: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
9028a06dab7fb7b294ba094291f931ab80b406eb
link
/test release-notes_istio

lint_istio
9028a06dab7fb7b294ba094291f931ab80b406eb
link
/test lint_istio

unit-tests_istio
9028a06dab7fb7b294ba094291f931ab80b406eb
link
/test unit-tests_istio

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

@howardjohn: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
9028a06dab7fb7b294ba094291f931ab80b406eb
link
/test release-notes_istio

lint_istio
9028a06dab7fb7b294ba094291f931ab80b406eb
link
/test lint_istio

unit-tests_istio
9028a06dab7fb7b294ba094291f931ab80b406eb
link
/test unit-tests_istio

integ-multicluster-k8s-tests_istio
9028a06dab7fb7b294ba094291f931ab80b406eb
link
/test integ-multicluster-k8s-tests_istio

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

@howardjohn: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
9028a06dab7fb7b294ba094291f931ab80b406eb
link
/test release-notes_istio

lint_istio
9028a06dab7fb7b294ba094291f931ab80b406eb
link
/test lint_istio

unit-tests_istio
9028a06dab7fb7b294ba094291f931ab80b406eb
link
/test unit-tests_istio

integ-multicluster-k8s-tests_istio
9028a06dab7fb7b294ba094291f931ab80b406eb
link
/test integ-multicluster-k8s-tests_istio

integ-security-k8s-tests_istio
9028a06dab7fb7b294ba094291f931ab80b406eb
link
/test integ-security-k8s-tests_istio

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

Shriram is taking over


Date format do not support EEEE (day of week)

First thanks for your great plugin!
Btw I'm wondering whether it is possible to reuse logseq's date parser directly or use /today 🤔 so that you don't need to do it yourself 😄

@xxchan Unfortunately, I can't use it.
I do have plans to support EEE and EEEE in the near future though!

This is now supported!


Automated cherry pick of #1420: remove keypair info if rebuild-root net set keypair

Cherry pick of #1420 on release/2.9.0.
#1420: remove keypair info if rebuild-root net set keypair

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/2.9.0@9e419c5). Click here to learn what that means.
The diff coverage is 0%.

@@               Coverage Diff               @@
##             release/2.9.0   #1447   +/-   ##
===============================================
  Coverage                 ?   7.68%
===============================================
  Files                    ?     336
  Lines                    ?   53898
  Branches                 ?       0
===============================================
  Hits                     ?    4144
  Misses                   ?   49368
  Partials                 ?     386

Flag
Coverage Δ

#aFlag
7.68% <0%> (?)

Impacted Files
Coverage Δ

pkg/compute/models/guest_actions.go
0% <0%> (ø)

Continue to review full report at Codecov.

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

/approve
/lgtm


Pull spec files from webpack stats

To resolve #14
Tests seem to pass (or fail) as expected.
One thing I'm not 100% clear on is if an entry imports additional modules, do those show up in the stats.compilation.assets object? If so, they'll need to be filtered out. I'm going to be converting my actual tests over today and I should see from that if there needs to be additional tweaking

It does seem that assets/chunks that are emitted by webpack as part of it's bundling process are included in stats.compilation.assets so this will need some additional work


(manifests/v2) use docker in 'catalog-build' target to align with others

Description of the change:

internal/plugins/manifests: use docker in catalog-build target to align with others

Motivation for the change: all other make targets use docker for building/pushing but opm index add defaults to non-docker builders/pullers. A nice side effect of making the build/pull tool explicit is that it makes this choice obvious for those who want to change it.
Checklist
If the pull request includes user-facing changes, extra documentation is required:

[ ] Add a new changelog fragment in changelog/fragments (see changelog/fragments/00-template.yaml)
[ ] Add or update relevant sections of the docs website in website/content/en/docs

/retest


chore: update HACS validation

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (8f210ec) 76.13% compared to head (e5c2f82) 76.13%.

:exclamation: Current head e5c2f82 differs from pull request most recent head a746ace. Consider uploading reports for the commit a746ace to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #17   +/-   ##
=======================================
  Coverage   76.13%   76.13%
=======================================
  Files           5        5
  Lines         331      331
=======================================
  Hits          252      252
  Misses         79       79

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


New Gameoption: Disable chat for spectators

Here is the client part for the new game option. Please also look at the server PR here https://github.com/throneteki/throneteki/pull/2991

Closed in favor of a direct port of the same feature from keyteki


Is there a way I can get certified in nocode?

Yes, you are hereby certified.

You know, you should take this online course by Udemy.

@samlachance , I hope you don't mind that I referenced your certification here https://github.com/kelseyhightower/nocode/issues/107

No problem. Please be sure to list the steps required to become nocode certified. I would not like the standards of the process to be sullied:


what if we had unit tests for austinjavascript.com

@lawnsea @DrewML @markedwardsims what u gentlemen think

LGTM


Update userDataSync.ts

Clearer language to emphasize it's Extension Settings that are synced and not extensions states
#174007

I do not understand this change and what it is fixing. Extensions are synced across machines, its not extensions settings.


RedirectIfAuthenticated Middleware always pass $guard param null to handle function

Laravel Version: 5.7.13
PHP Version: 7.1.15
Database Driver & Version: Mysql

Description:
at App\Http\Middleware\RedirectIfAuthenticated;
$guard param always passed null to handle function when using a special guard as it for my case :
public function __construct(Request $request)
{
    $this->request = $request;
    $this->middleware("auth:members");
}

Can you post the full class with the constructor above? Where is this done? In a middleware? A controller?
RedirectIfAuthenticated is used when you're authed but you want the routes/views be accessible as a guest. So placing the auth middleware doesn't really makes sense. Are you sure you're not mistaking this with the Authenticate middleware?

yes sure, actually I do have different landing dashboard related to different auth guards and this is my class :
class MemberController extends Controller
{
public function __construct(Request $request)
{
    $this->request = $request;
    $this->middleware("auth:webMembers");
}

... resources methods
}

I don't see any issue. In my case the guard value is what i expected.
app/Http/Controllers/Admin/Auth/LoginController.php
<?php

namespace App\Http\Controllers\Admin\Auth;

use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;

class LoginController extends Controller
{
    /*
    |--------------------------------------------------------------------------
    | Login Controller
    |--------------------------------------------------------------------------
    |
    | This controller handles authenticating users for the application and
    | redirecting them to your home screen. The controller uses a trait
    | to conveniently provide its functionality to your applications.
    |
    */

    use AuthenticatesUsers;

    /**
     * Where to redirect users after login.
     *
     * @var string
     */
    protected $redirectTo = '/admin';

    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware('guest:admin', ['except' => 'logout']);
    }

    /**
     * Get the guard to be used during authentication.
     *
     * @return \Illuminate\Contracts\Auth\StatefulGuard
     */
    protected function guard()
    {
        return Auth::guard('admin');
    }

    /**
     * Show the application's login form.
     *
     * @return \Illuminate\Http\Response
     */
    public function showLoginForm()
    {
        return view('admin.auth.login');
    }

    /**
     * The user has logged out of the application.
     *
     * @param  \Illuminate\Http\Request $request
     * @return mixed
     */
    protected function loggedOut(Request $request)
    {
        return redirect()->route('admin.login');
    }

    /**
     * Where to redirect users after login.
     *
     * @return string
     */
    private function redirectTo()
    {
        return route('admin.dashboard');
    }

}

app/Http/Middleware/RedirectIfAuthenticated.php
<?php

namespace App\Http\Middleware;

use Closure;
use Illuminate\Support\Facades\Auth;

class RedirectIfAuthenticated
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request $request
     * @param  \Closure $next
     * @param  string|null $guard
     * @return mixed
     */
    public function handle($request, Closure $next, $guard = 'web')
    {
        if (Auth::guard($guard)->check()) {
            if ($guard === 'admin') {
                return redirect()->route('admin.dashboard');
            }
            return redirect()->route('dashboard');
        }

        return $next($request);
    }
}

You can treat null as web the default guard.

Your middlewares seems mis-configured.
I am using this package to generate scaffolding for multi-auth.
https://github.com/mtvbrianking/multi-auth
I never faced any issue.

Great package it really saved my time its working fine now, thanks.

I am having the same problem. RedirectIfAuthenticated middleware always return on Auth::guard($guard)->check() false while $guard is 'admin'

this is how i did fixed it
namespace App\Http\Middleware;

use Closure;
use Illuminate\Support\Facades\Auth;

class RedirectIfAuthenticated
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @param  string|null  $guard
     * @return mixed
     */
    public function handle($request, Closure $next, $guard = null)
    {

        if ($request->segment(1) == "member") {
            $guard = "webMembers";
        }

        if (Auth::guard($guard)->check()) {
            return redirect('/'. $request->segment(1));
        }

        return $next($request);
    }
}

I have the exact same issue and the workaround above by @rayeddev works for me (some changes for my case). I know inside that it is not the right approach and might more likely than not break something somewhere some day.
    public function handle(Request $request, Closure $next, string ...$guards): Response
    {
        if(in_array($request->segment(1), ["admin", "agent", "employer"])) {
            $guard = $request->segment(1);
        } else {
            $guard = "web";
        }

        if ($guard == "admin" && Auth::guard($guard)->check()) {
            return redirect('/admin/dashboard');
        }

        if ($guard == "agent" && Auth::guard($guard)->check()) {
            return redirect('/agent/dashboard');
        }

        if ($guard == "employer" && Auth::guard($guard)->check()) {
            return redirect('/employer/dashboard');
        }

        if (Auth::guard($guard)->check()) {
            return redirect(RouteServiceProvider::HOME);
        }
        return $next($request);
    }


python3Packages.cairosvg: 2.7.0 -> 2.7.1

Description of changes
diff:https://github.com/Kozea/CairoSVG/compare/2.7.0...2.7.1
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Done in https://github.com/NixOS/nixpkgs/commit/e71d1c92e8eecebe4324530fbfe356180e3ae332 on staging-next.


"Destory"

typo?

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

ID: 70518e8e-627d-c29b-6e1d-5bb9670969aa
Version Independent ID: fdef6bc0-dde4-17d7-0def-6803551a8301
Content: WHvEmulatorDestoryEmulator
Content Source: virtualization/api/hypervisor-instruction-emulator/funcs/WHvEmulatorDestoryEmulator.md
GitHub Login: @Juarezhm

We hugely appreciate your contribution, feedback, and support to our technical documentation.
We’ve phased out GitHub Issues on this repository as the feedback mechanism for content and have replaced it with a new feedback system. For more information see, Content User Feedback. As part of this rollout, we are migrating your issue where our team will use your comments to improve the documentation experience. Unfortunately, this does mean you won't be able to access this issue after the migration is complete.
All issues will be migrated by Thursday 29th August 2024.
Once again, thank you for your valuable feedback, we hope you’ll continue to contribute using our new feedback system.


Per-preference permissions

Right now, all global preferences are editable if you have the correct django permission.
However, we can imagine that, in some workflows, some global preferences access / modification should splitted on a per-group / per-user basis.
E.g, consider a featured_blog_post preference and a third_party_api_key preference. The first one is probably only a concern for the marketing team, while the latter should be restricted to sysadmin's / developpers.
We therefore need a way to create per preference permissions, and integrate these permissions with django's groups / users system. We can also imagine section permissions, that will grant access to the underlying preferences.

Nobody asked for that, let's close.


Removes IngressBandwidth Annotation

Removes the IngressBandwidth annotation since it's not implemented.
Fixes: #25532

cc: @pchaigno

@jschwinger233 Thanks for the review. I updated the PR description and commit message based on your feedback, PTAL.

/test

@qmonnet @pchaigno @borkmann @jschwinger233 I resolved feedback on this PR and it's passing CI. Is anything else needed to get approvals?


Format -  tags are not rendered correctly

For example,
<a id="installer-conversion" />

#### Package an application that has an installer (.msi) file
Point to the installer file by using the ``Installer`` parameter.

```cmd
DesktopAppConverter.exe -Installer C:\Installer\MyAppSetup.msi -Destination C:\Output\MyApp -PackageName "MyApp" -Publisher "CN=MyPublisher" -Version <IP_ADDRESS>

is rendered as

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

ID: 7c0cbfaf-6e77-2b74-6b37-72028327fde4
Version Independent ID: a4b4ac93-3b46-84f2-bd6b-7ad1709c4003
Content: Package an app using the Desktop App Converter (Desktop Bridge) - MSIX
Content Source: msix-src/desktop/desktop-to-uwp-run-desktop-app-converter.md
Product: msix
GitHub Login: @Huios
Microsoft Alias: tajimha

Thanks for submitting this feedback. We have fixed the issues and republished the article.


Graphite output sends invalid data

According to https://github.com/graphite-project/carbon/blob/master/lib/carbon/protocols.py#L80, graphite datapoint values need to be coercible to float. The graphite output occasionally sends values that don't fulfill that requirement, value we've seen are scientific notation (1.0e...) and values that exceed (python) float precision.
The best fix is probably to use a sprintf with a limited precision in https://github.com/logstash-plugins/logstash-output-graphite/blob/master/lib/logstash/outputs/graphite.rb#L187

something else seems to be interfering here. will close this ticket and reopen if needed.

Actually, I'm seeing the same thing when:
metrics => { "%{graphite_prefix}" => "none" }

Please, can we get this reopened and looked into and fixed?

memory.used_p 0.87E0<PHONE_NUMBER>
memory.actual_used<PHONE_NUMBER><PHONE_NUMBER>
memory.actual_free<PHONE_NUMBER><PHONE_NUMBER>
memory.actual_used_p 0.59E0<PHONE_NUMBER>
swap.total<PHONE_NUMBER>0<PHONE_NUMBER>
swap.used 258109440<PHONE_NUMBER>
swap.free<PHONE_NUMBER>0<PHONE_NUMBER>
swap.used_p 0.1E-1<PHONE_NUMBER>

@zstyblik neat, thanks for showing that. Reopening.

@jordansissel thanks. I'll try to give it a look tomorrow, although I'm no Ruby programmer. However, it should be something like this, right?
def metrics_line(event, name, value, timestamp)
    sprintf("%s %f %i", construct_metric_name(event, name), value, timestamp)
end

I'll have to be brief cause Internet Bits are a limited commodity at the Angolan border, but I closed the issue because we ran tests with a patched carbon version and determined that carbon is quite well capable of parsing scientific notation and will truncate to float precision as needed. However, we had issues that the graphite output would send empty lines in some circumstances which trips up carbon (though I think that problem is patched in one of the later versions)
Sent from my iPhone

On 09.03.2016, at 20:20, Zdenek Styblik<EMAIL_ADDRESS>wrote:
@jordansissel thanks. I'll try to give it a look tomorrow, although I'm no Ruby programmer. However, it should be something like this, right?
def metrics_line(event, name, value, timestamp)
sprintf("%s %f %i", construct_metric_name(event, name), value, timestamp)
end
—
Reply to this email directly or view it on GitHub.

@jordansissel we've tried it out and our carbon handles scientific notation as well. So, it might be sufficient just to document this behaviour.


Segmentation fault (core dumped)

Hello,
I installed private GPT via:
rm -rf .local .cache /scratch/network/$USER/privateGPT /scratch/network/$USER/tmp
mkdir /scratch/network/$USER/tmp
export TMPDIR=/scratch/network/$USER/tmp
module load Python/3.11.3-GCCcore-12.3.0
pip install --user poetry
module load git
module load CUDA
export PATH=$PATH:/home/$USER/.local/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/$USER/.local/lib
cd /scratch/network/$USER
git clone https://github.com/imartinez/privateGPT.git
cd privateGPT/
export PYTHONPATH=$PYTHONPATH:$PWD
poetry install --extras "ui llms-llama-cpp embeddings-huggingface vector-stores-qdrant"
poetry run python scripts/setup
CMAKE_ARGS='-DLLAMA_CUBLAS=on' poetry run pip install --force-reinstall --no-cache-dir llama-cpp-python
PGPT_PROFILES=local make run

When I query a 3 pages long .pdf file I am getting: Segmentation fault (core dumped) error.
Please see in attach details.
How this can be resolved?

i think your GPU utilization increased

i'm facing the problem "Initial token count exceed token limit" can anyone help me out, im upload a CVS file and im getting this error.

I only queried a tiny .txt file one question and attempted to ask a 3 page .pdf one question when I received this segmentation error…
Does privateGPT has the run on a GPU?
Sent from Outlook for iOShttps://aka.ms/o0ukef

From: beaconai @.>
Sent: Monday, April 1, 2024 10:03:26 PM
To: zylon-ai/private-gpt @.>
Cc: Sokovic, Ana Marija @.>; Author @.>
Subject: Re: [zylon-ai/private-gpt] Segmentation fault (core dumped) (Issue #1817)
i think your GPU utilization increased
—
Reply to this email directly, view it on GitHubhttps://github.com/zylon-ai/private-gpt/issues/1817#issuecomment-2030988851, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUHBH5AUACV6HUGRZCXEV4LY3INX5AVCNFSM6AAAAABFSHNKG2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZQHE4DQOBVGE.
You are receiving this because you authored the thread.Message ID: @.***>

I solve the same issue (segementation fault) changing a file in version 0.5.0:
privateGPT/private_gpt/components/llm/llm_component.py
The setting "offload_kqv": True to "offload_kqv": False
I hope this helps


Add method to create site

It would be good to script the site creation as well, at least for testing purposes.

Fixed in #38


⚠ Bofrost.be has degraded performance

In 58c276e, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1261 ms

Resolved: Bofrost.be performance has improved in c08842e after 6 minutes.


How to feature for JARVIS

Uses Custom Google Search of WikiHow to provide articles relating to user query - will need to learn and understand "how to" command.

Any update on it @kunalrkak @swapagarwal


Teams DSCP Value

Hi,
I would like to know if the packets transmitted from "Teams / Skype for Business" has DSCP value configured by default?
Then I just need to config DiffServ on Switch then I would be good to go for Switch config.
Do I need to config "Teams / Skype for Business" to tag the packets with DiffServ explicitly?
Thanks.
David

@keffen611 thank you for submitting feedback.
I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome let me know if it is something that can be called out in the docs.
Please follow this link to contact support for business products:https://docs.microsoft.com/office365/admin/contact-support-for-business-products
Please keep us posted here on the resolution so we can feed whatever information you discover into the content.

@officedocsbot close


Adding people collection

This pull request should resolve #4 . It provides the ability for people to add a file into the people collection so they will show up on the Guild profiles page

@mtromp and @mbutsko please take a look


3/5 Code Across SF Agenda

Pitch: pdfhook
Turning PDF forms into APIs that fill them.
Who?
Project Lead: Ben Golder @bengolder
Contributors:

Gaurav @gauravmk
Marlene @mfeil4
Brennan @bhoeting,

Why?
Many agencies and institutions that provide important services still rely on paper forms for intake. It is hard for them to adopt things like web forms unless they can integrate it with their existing paper process. This project hopes to make it easier for civic hackers to build web services that fill PDF forms. More details here and here.
Needs

Python programmers (particularly Flask)
Beginners and non-programmers who want to help test and document project setup
Someone who'd like to make a simple landing page that can be used for demo & documentation

Current priorities

Make it easier to contribute

Document setup and installation
Reduce dependencies
Add a basic working test suite
Add documentation, including an index page

Things that happened today

@debrasol Debra, who worked at HSA, wrote out some of the possible benefits and concerns that agencies and institutions might have if someone were using this in the field and integrate it into their services.
@bengolder Ben & @gauravmk Gaurav brainstormed a big set of integration tests that we hope the app will eventually pass.
@joffemd Mark brought his expertise on pdf tools to the table and researched some alternatives to the pdftk command line utility this depends on and found a couple possible candidates: PDFBox & Poppler. He also looked at some commercial products to give some ideas for the demo page or other possible uses.
@gauravmk Gaurav got the tests running, cleaned out obselete tests, and now we have an app that actually fills pdfs in the integration tests! He also made sure that it the app cleans up after itself, removing temporary files after requests are completed.
@zhoux10 Created a front page so that will soon allow you to upload pdfs as a demo when you get the app running out of the box
@samgensburg started converting it to use sqlite, so that it's much easier to use out of the box and does not depend on postgresql. He also advised on ways that it can better capture errors from the command line utility


Support resource naming strategy on Content Library API

Add resource naming strategy to Content Library resource APIs, and include source ID field to Content Library item resource API.
Testing Done:
make targets pass

@ericvmw there's no code to actually support the new naming strategy right? Only the definition of the API in this MR?

@ericvmw there's no code to actually support the new naming strategy right? Only the definition of the API in this MR?

Yes, this change is only the API def, the code to support it will be in the VM image registry operator.


ADD: Add data for tobac

Add required data for tobac, and update the Py-ART gridding notebook to generate the TOBAC input

@kelcyno - I went ahead and updated the tobac notebook using the new data paths generated from the Py-ART section. The Py-ART gridding follows the snippet you shared.


Fix url and 3d asset indexing

Toggl: Ny URL til API integration (igen)
So I discovered that the base URL for 3D assets had to change as it in some place was used with /assets. In other places it was used with /?asset=5. One of the before mentioned would fail if we didn't change a thing. The /assets expects the base URL to end in /bur and the /?asset=5 expects it to have no preceeding path, ie to start at the root of the domain.
I have therefor  corrected this.
While doing it occured to me that we would fail silently on indexing 3D assets, so I fixed that as well.

Yes - det gør jeg :)

@Arth101 jeg har lavet en enkelt lille tiløjelse, som er at knappen til den storer model nu også får sin url fra config'en. Vil du lige teste det når får tid


Does it work in osx

First, congrats on this great tool.
I have a mac and i wonder if it would work there?

It works on my MBP 2017 with macOS 12.5.1.
That's great work.