When use Moya how to write unit test?

I known we can get the sampleData as response, but I don't know how to write test for request? If there have any examples about how to make unit test? Thanks

Hey @longshihua, this is a good one. Testing is our top priority, so we should've better documentation around that. We are working on it, but in the meantime...
If we are talking about testing with sampleData in unit tests, you can see it in our tests how we do it here. Basically we use stubbingClosure and check the data from the response. If we are talking about testing without using any stubbing option built in in Moya, we have these as well. For that purpose we use OHHTTPStubs, you can see how we do it here.
Hope it helps!

As @sunshinejr mention, you can test the .sampleData like they do on the link that he provided. However if what you are looking is to test your RequestManager, NetworkManager or whatever you are using to encapsulate your request you can check this.


register_type, register_get is not convinient

See also: https://github.com/casbin/casbin-rs/issues/78.
While implementing ABAC for casbin-rs, we don't know in advance how many types will we get and what are they and what are the getter used by them

Rust does not have reflection, so any type you pass to Rhai needs to be registered completely in order to use them.
My suggestion is to have your users' custom objects register some trait that they must all implement.  Alternatively you can expose the register_type, register_get and register_set functions outside as your own API so your users can register their own custom types.
I don't think it can be avoided.

OK.  I read your issue and I see what you're trying to get at.  There is a very simple solution.
Rhai supports object maps, in the syntax:  #{a: 1, b: "hello", c: [1, 2, true]}
An object map, converted into Rust, is HashMap<String, Dynamic>.
All you need to do is to create this type and then set it as the value of a Scope variable or return it from a registered function (the function simply returns HashMap<String, Dynamic>.
For example:
let mut object: HashMap<String, Dynamic> = HashMap::new();

object.insert("foo".to_string(), true.into_dynamic());
object.insert("bar".to_string(), "hello".to_string().into_dynamic());
object.insert("baz".to_string(), 123.into_dynamic());

let mut scope = Scope::new();
scope.push_constant("my_object", object);

let result = engine.eval_expression_with_scope::<bool>(&mut scope, "my_object.baz < 42")?;

Thinking of this some more...  First of all, it looks like your user can define their own access control objects through some form of meta description, which is then turned into some objects in your code.
You can easily build up a HashMap with fields from the object metadata, especially when if it is only one level deep (i.e. consisting of only attributes of primitive types).
On the other hand, you may think of transparently round-tripping the user's AC object with all the attributes, if you don't really act on those attributes in your code.  This way your code needs not even care about the structure of these user objects.  The way to do it is to have the user submit a valid piece of JSON as their object representation, which the user can get easily by serializing their own data type, or from a web service backend on the user's side.
Either way, access the fields of this object as an object map in Rhai.

Let's close this one, great thanks @schungx  on your quick help.


如何输出存储过程返回的结果集，如何支持多标签同时查询返回结果集

System information:

Operating system (distribution) and version
DBeaver version

Connection specification:

Database name and version

Describe your question:

Could you please write your ticket in English, tell your Database, DBeaver version

This is very abstract question without RDBMS specification.
这个问题是非常抽象的。 答案是不可能的。

there are not any updates on issue. Ticket will be closed.
If issue is still actual for you - feel free to reopen the ticket


Exception "invalid value "... ..." for flag --tag" doesn't guide user to correct it

When I tried running docker build --tag Trevor:FlaskCompose, I received an exception:

invalid value "Trevor:FlaskCompose" for flag --tag: Error parsing reference: "Trevor:FlaskCompose" is not a valid repository/tag
See 'docker build --help'.

Unfortunately, when running docker build --help, as suggested by the tool, there is no additional guidance provided.

-t, --tag=[]                    Name and optionally a tag in the 'name:tag' format

How does a user know what a valid "tag" is? I fiddled with the name, and apparently the name must be all lowercase, and the tag portion can have capital letters. However, I am not aware of what the other requirements are.
The less friction, and more clarity, that is provided by Docker, the more likely users will be to adopt it and be delighted by the experience of working with it. :smile:
Cheers,
Trevor Sullivan
Microsoft MVP: PowerShell

If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
For more information about reporting issues, see CONTRIBUTING.md.
You don't have to include this information if this is a feature request
(This is an automated, informational response)

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

Looks like this is indeed not documented, adding the accepted characters would be a good start; possibly

https://github.com/docker/docker/blob/master/docs/reference/commandline/build.md#tag-image--t
https://github.com/docker/docker/blob/master/docs/reference/commandline/tag.md
https://github.com/docker/docker/blob/master/docs/reference/commandline/commit.md

And the associated man pages

https://github.com/docker/docker/blob/master/man/docker-build.1.md
https://github.com/docker/docker/blob/master/man/docker-tag.1.md
https://github.com/docker/docker/blob/master/man/docker-commit.1.md

Perhaps we can make a description in a single place, and link to that from the other pages.
Possibly we can improve the error message;
https://github.com/docker/docker/blob/acd8baccff10642e1d44a342414cd196b81a4605/reference/reference.go#L58
Rules for valid formats are defined in https://github.com/docker/docker/blob/acd8baccff10642e1d44a342414cd196b81a4605/vendor/src/github.com/docker/distribution/reference/reference.go#L6

@thaJeztah I am looking to get involved and pick up a documentation task first. If this is a documentation task only, I will be happy to work on this.

@isubuz awesome! As mentioned above, I think adding it to the documentation would be a good start, so if you want to work on that, that'd be great.
Maybe @aaronlehmann has some input on improving the error-message and with some guidance you can incorporate those code changes as well, but I'm fine with doing those in a separate pull request if you're not comfortable making those changes.
If you need some info on the contribution process, you can find our contributors guide here;
https://docs.docker.com/opensource/workflow/make-a-contribution/

Great. I will get to the documentation part first and then to error message/code changes.

#dibs

@thaJeztah now that the changes are merged, how do we progress the status? Is it done by an automated process?

@isubuz oh! you used Addresses #20788 instead of Fixes #20788, so GitHub didn't close automatically. I'll close this one, because it's fixed now :tada:

Ah ok. Something to remember next time. Thanks!


No email received

Hi, I entered my username and password but I don't receive any email on the selected account. i also tried to change receiver and sender mail but nothing happens. ideas? thanks

Are you using gmail to send?  If so, ensure that the "Less Secure App Access" is enabled on the gmail account you are using to authenticate.

Are you using gmail to send? If so, ensure that the "Less Secure App Access" is enabled on the gmail account you are using to authenticate.

I had this issue when I first set it up and could not figure it out for the life of me. How to enable it? https://support.google.com/accounts/answer/6010255?hl=en

@apsecdev @Vel1khan thank you very much for stepping in to assist @varefaz ! Since there has been no new activity or feedback, I am marking the issue as resolved. If anything new occurs leave a comment and I will reopen it for further investigation.


Move eslint to devDependencies

@wesleybl this being in deps has a reason :) How are you going to install ESlint now in the projects if it's not as a direct dependency? Like this one, there is a lot of deps in the same situation... the duality library/framework of Volto is difficult, and there is nothing out there like it. We could move it to its own package (as Razzle and others do), then install that package in the project, but we never made that move.

@sneridagh @davisagli wouldn't it be the case if you put these packages in the generator and put an update note?

The thing is that maintain the ones in the generator is a pain. The ones that are there is because it's strictly necessary for other reasons. We would like to reduce that list, instead of increasing it.
The ideal scenario would be to have such a dev package that we mentioned, and a code-mod like script/process to update projects automatically.

Ref: https://github.com/plone/volto/pull/5872


feat: better keymaps

Heads up! @mosheavni @idelice redid almost all the mappings! (the hints are updated as well so should be apparent what the new ones are)


merge from arlac77/npm-package-template-esm-only

LICENSE

chore(license): add year 2020

Codecov Report

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

@@            Coverage Diff             @@
##           master     #867      +/-   ##
==========================================
+ Coverage   91.84%   92.42%   +0.58%
==========================================
  Files          10       10
  Lines        1373     1373
  Branches      173      176       +3
==========================================
+ Hits         1261     1269       +8
+ Misses        111      104       -7
+ Partials        1        0       -1

Impacted Files
Coverage Δ

src/initialization-context.mjs
94.23% <0%> (+3.29%)
:arrow_up:

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 56a45a1...b780875. Read the comment docs.

:tada: This PR is included in version 8.3.15 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


deepcopy args when passed down to rpc pask

also resolves #3846
Description
This makes sure that RPC tasks are initialized with a copy of self.args. IF they are mutated further down the call stack, it won't affect the high level RPC process management task and be passed to subsequent RPC tasks.
Checklist

[x] I have signed the CLA
[x] I have run this code in development and it appears to resolve the stated issue
[x] This PR includes tests, or tests are not required/relevant for this PR
[x] I have updated the CHANGELOG.md and added information about my change to the "dbt next" section.

Do you think we should remove the deepcopy from the RemoteMethod init method in core/dbt/rpc/method.py?  I guess it doesn't hurt, but it is an extra copy now.

Do you think we should remove the deepcopy from the RemoteMethod init method in core/dbt/rpc/method.py? I guess it doesn't hurt, but it is an extra copy now.

@gshank good point, I'll remove it. It can be pretty expensive operation. I also like knowing that the object owns the args passed in, instead of creating a copy in the constructor.


Add a "Suspend" feature (Like "great suspender")

In general, in my daily work, I tend to open many applications. Too many browser tabs(must of it keeps suspended) and too many VS projects. However, some projects I open with VS are just "tests." I keep them open to study. But I wish I could "freeze" them to save RAM and sometimes CPU process.
Amazingly, it is the VS Code that consumes the most memory on my desktop today.
Please, analyze this with care.
PS. This is not duplicated of https://github.com/microsoft/vscode/issues/43115 as says in https://github.com/microsoft/vscode/issues/56180 Who read my issue was not careful to read what was written.
Cheers.

I am merging this to https://github.com/microsoft/vscode/issues/86224 which will contribute to memory savings.

omg, what is wrong with Microsoft's engineers? Why don't they just take into account what was said in the issue? Why select a single concept and say "This will solve everything" or "Duplicate of something random I found here in the baklog"?
1 - Not just because a possible code refactoring or feature addition will be better than what I asked for in this issue. Who guarantees that e #86224 will be better than a "suspend"?
2 - The idea of suspending goes far beyond power management.
3 - #86224 looks more related to Windows. The same happens in Darwin?
This is the second ticket with the same topic that I open and you guys don't want to take the trouble to pay attention for what is written. If you don't want a "suspend", I will understand. But do not keep closing the issue with things that do not answer the question. Write "We won't do it" and I accept it, okay?
Cheer.


Add and modify requirements.txt file to include all pip packages required

Add and modify requirements.txt file to include all pip packages required

Shoutout to @DjTer3a , he successfully closed this issue!


HELICS MATLAB extension

I've added a CMakeLists.txt in the swig/matlab folder that builds the MATLAB extension using CMake
I added custom commands, so this is actually SWIG independent.
If the shared library api changes, I'll have to regenerate the SWIG bindings using my custom version of SWIG.
The custom commands include the headers and link to the shared library that is created in the build folder.
See line 30.


eliminates jQuery as a component dependency

Hello, just a quick PR that removes uses of jQuery from the addon.

Nice, thanks! I'll try and get to a release on this on the weekend.

Awesome, thanks @dgavey!

FWIW In addition to the ember tests, I've done manual testing only with the sortable-objects and draggable-object children in the following browsers:

Chrome 70
Firefox 63
Safari 11.1.2
IE 11
Edge 42


Error: you have installed an old beta version, (after updating)

Device Model
iPhone 14
iOS Version
17.0
Bootstrap Version
1.1
Serotonin Version
No response
What happened?
I updated the app from beta 2 to 1.1 by installing through trollstore (did not delete app beforehand), and I was made to reboot my phone after opening the updated version. Now this error appears telling me to disable all app tweaks and reboot to install new version. I do not have access to app selector to disable tweaks and this error appears every time, what do I do
Log output
No response
Acknowledgement of README and FAQ

[X] I have read both the README and the FAQ.

This is more suited for the roothide Discord server. Completely uninstall your bootstrap after a reboot (read the FAQ) and reinstall, making sure to uninject/reinject applications you previously had injected (check for presence of appbackup directories).


BIGTOP-3569. Applying GPDB Puppet manifest fails on arm64.

https://issues.apache.org/jira/browse/BIGTOP-3569

Tested on CentOS 7 and Ubuntu 18.04, using both x86_64 and arm64.

Hmm, I ran the smoke test again but they failed to install python packages with timeout.
https://ci.bigtop.apache.org/view/Test/job/Bigtop-trunk-smoke-tests/246/COMPONENTS=gpdb.bigtop-utils@gpdb,OS=debian-10-arm64-deploy/console
https://ci.bigtop.apache.org/view/Test/job/Bigtop-trunk-smoke-tests/246/COMPONENTS=gpdb.bigtop-utils@gpdb,OS=debian-9-arm64-deploy/console
https://ci.bigtop.apache.org/view/Test/job/Bigtop-trunk-smoke-tests/246/COMPONENTS=gpdb.bigtop-utils@gpdb,OS=ubuntu-18.04-arm64-deploy/console
https://ci.bigtop.apache.org/view/Test/job/Bigtop-trunk-smoke-tests/246/COMPONENTS=gpdb.bigtop-utils@gpdb,OS=ubuntu-20.04-arm64-deploy/console
I tried to apply GPDB puppet manifest on the Linaro server and saw that installing python packages took around 270s.
The default timeout for puppet execution is 300s, so it may be a bit strict for multiple execution. I'll submit an addendum PR that doubles the value of timeout.


When there's not internet can't use as a Guest

I tried to use it under an environment that doesn't have internet access than when I click to continue as a Guest doesn't load.

Unfortunately, the app requires an internet connection, many features related to this.


Wrong old permissions shown when updating permissions

General Checkups

[x] Have you checked that there isn't already an existing issue that describes what you report below?
[x] Have you checked that there isn't already an open pull requests for this issue/update/change?

Description

When a project updates the permissions request the project page shows already joined members the old permissions they have granted along with the new permissions requested and a button to update these. Currently the display of the old permissions is bugged and it instead displays the new permissions despite not being authorized by the user.
Related Issue(s)

Example

To reproduce this:

create an on-site project with permissions X
join your own on-site project
update the permissions
visit the activity page, it will only display the new permissions Y, not X

Likely to be superceded by a redesign of activity pages.


Vite import error

Hi, I have a project structured as a monorepo that uses vite, and all styles are in a separate package that I have imported as usual:
@import<EMAIL_ADDRESS>
It used to work but when I change the tailwindcss to @tailwindcss/jit the import throws a can not find file error.

I think that is a vite thing. You need to configure the vite config css like here: https://github.com/leanupjs/leanup/blob/549f5c0bbb988a1fed46b6a965e7ef70397701a0/packages/stack/vite/vite.config.js#L5

@mammadataei can you share more info, or maybe a repo? I would like to take a look at it.

Thanks for your responses, The problem was because of whitespace in the package name.


Added ARK Bounty, ACF and Livecoin wallets

Added the ARK Bounty, ARK Community Fund and Livecoin exchange wallets to the list of known wallets.


No training on my dataset

Hi YunYang,
I have tried to train model on my dataset but when I evaluate on test dataset . I am not getting any bounding boxes on the test dataset . Result.txt and predicted txt files are empty and after looking at TensorBoard I can see high confidence loss.

Please can you guide me on this.
Thank you

Hello, I want to ask a question. How to make the train.txt file during the training data set preparation process.thanks
E.g:
/home/yang/test/VOC/train/VOCdevkit/VOC2007/JPEGImages/000005.jpg 263,211,324,339,8 165,264,253,372,8 241,194,295,299,8
/home/yang/test/VOC/train/VOCdevkit/VOC2007/JPEGImages/000007.jpg 141,50,500,330,6
/home/yang/test/VOC/train/VOCdevkit/VOC2007/JPEGImages/000009.jpg 69,172,270,330,12 150,141,229,284,14 285,201,327,331,14 258,198,297,329,14

@MichaelCong Dont know if you still need this.
I just check this repo, really good.
For that annotation file you must built it by yourself.
It is pretty easy to do. First if you check the  ./scripts/voc_annotations.py file you will understand that this file actually builds 2 files train.txt and test.txt. This Files will be used as direct connector to the images path and the boxes of each image.
Each line of each of these files are IMAGE_PATH BOX,CLASS BOX,CLASS, .... (BOX is 4 numbers as x1,y1,x2,y2 or x,y,w,h havent check) either way is a way to illustrate the position of the box in the image.
The job of these files are to mix the path of the images to train or test with their own boxes. Easy cake.
With these 2 files, the training will initiate (if your are using own classes, dont forget to change classes.names file for the ones you will use).
regards,

@irum I will be trainning this implementation for a different class with own data. Hope to reproduce this and help you. will keep you up.

@irum I just finished the trainning. No problem happened.

@fnando1995
Thank you for the reply. Can you send the first 2 lines of your train.txt file
i.e path to .jpg min_x,miny,max_x, max_y .......

/home/path_to_a_folder_wherever_in_your_PC/images/img1.jpg 375,326,471,355,0 360,512,455,544,0 230,144,319,169,0 393,142,484,169,0 545,146,637,171,0
/home/path_to_a_folder_wherever_in_your_PC/images/img2.jpg 246,65,336,90,0 580,66,674,90,0 380,638,481,678,0 203,643,299,677,0 21,645,127,681,0

As you can see, this train.txt file have in each line:
PATH_TO_IMAGE_IN_YOU_PC_1.jpg(space)x1a,y1a,x2a,y2a,class(space)x1b,y1b,x2b,y2b,class\n PATH_TO_IMAGE_IN_YOU_PC_2.jpg(space)x1a,y1a,x2a,y2a,class\n
where x1,y1,x2,y2 represent the box as the x,y values of the upper left and lower right points of the box. remember that each line represent an entire image, and each image could have more thatn 1 object to be detected or box, and all the boxes of a image should be in the same line separated by a blank space.
You may be confused of how to generate this file. For this you frist need to use a labeling program. I recommed you this this program will help you boxing each image and generate a file with the annotations of the boxes of each image.
After that concentrate the images in a folder and the annotation in other. Then use a script which reads the annotations files one by one and generate a single line in train.txt or test.txt (depends on your way to separate train and test data).
Hopes it helps.
kind regards

@fnando1995
Thank you very much for your quick reply and your time. I have fixed my problem.

Your welcome @irum
If you can check how to freeze the ckpt to a .pb let me know please. In my way to check on that later for continue this repo.

@fnando1995
sure , no problem . I will let you know after initiating my training.

Hey guys! I am also training a dataset-a portion of coco dataset. But the giou loss don't really decrease. All other loss decrease all the way down to zero but giou loss is really hard to decrease. after a few epochs, the total loss becomes nan. did the same case happen to you guys?

@HtutLynn
Sorry man, actually that didnt happened to me in my training with own data (not coco/voc). Giou loss (something i think is related to IOU, dont really know) goes almost to zero. check. And no nan in my loss

@fnando1995  Okay, mate. By the way, what batch size did you use? Because giou loss in my case seems to be quite larger than yours. Also for training and making dataset class, did you use the exact code from this repo?

@fnando1995 And as for the anchors, how did you produce the default anchor boxes for your own dataset? I think I have problem in that part.

@HtutLynn
Hello!, sorry for the late answer.

I use batch size 8 with a gtx1080Ti. At 16 it collapse at certain point of the trainning.
I have used this and other repos for trainning. For creating the dataset i mentioned THIS_REPO which I think is good; there are others great too, but i am good with this one because it uses XML which I consider is a great way to keep data organized (tags).
Actually, i havent change that, I think it is better for trainning, but not completly a must do. In fact, i have done little little search on that, so I can´t figure out what at the anchors exactly and how it outperfom the trainning if use custom data.

hope this will help. If you know better the anchor topic, please illustrate me :), mail/fb in the profile.
Kind regards.


Fix regression causing size short to have space

Before the display refactor --size short did not have a space between the value and the unit.
This changed after the refactor of how display works. This PR changes it back to how it was before.

Codecov Report

Merging #324 into master will increase coverage by 1.36%.
The diff coverage is 91.66%.

@@            Coverage Diff             @@
##           master     #324      +/-   ##
==========================================
+ Coverage   66.06%   67.43%   +1.36%
==========================================
  Files          19       19
  Lines        1827     1833       +6
==========================================
+ Hits         1207     1236      +29
+ Misses        620      597      -23

Impacted Files
Coverage Δ

src/meta/size.rs
89.28% <91.66%> (+22.30%)
:arrow_up:

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 e3ed9fa...8d1a313. Read the comment docs.


Add wipefs before dd image to the target disk

In case the target disk is zfs filesystem or has other filesystems on it.

@jichenjc @bjhuangr @zhengxiaomei123 pls help review, thx


66 safe addresses related to airdrop hunters

Related Safe Addresses

Reasoning

Methodology

Safe Address

Report contains no content, hence closing.


Running into issue when upgrading from 0.4.1->0.4.2

If you are reporting a bug, please fill in below. Otherwise feel to remove this template entirely.
Description
Running into an error when I run npm start Error: Cannot find module 'lru-cache'
What are you reporting?
An error.
Expected behavior
The Webpack dev server to properly start.
Tell us what you think should happen.
Actual behavior
Receiving the following error.

react-scripts start

module.js:327
throw err;
^
Error: Cannot find module 'lru-cache'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (C:\Users\erisch\Source\Repos\Orion-Client\node_modules\react-scripts\node_modules\cross-spawn\lib\parse.js:4:11)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
Tell us what actually happens.
Environment
Run these commands in the project folder and fill in their results:

npm ls react-scripts (if you haven’t ejected):
$ npm ls react-scripts
npm WARN unmet dependency C:\Users\erisch\Source\Repos\Orion-Client\node_modules\react-scripts\node_modules\extract-text-webpack-plugin requires<EMAIL_ADDRESS>but will load
npm WARN unmet dependency C:\Users\erisch\Source\Repos\Orion-Client\node_modules\async,
npm WARN unmet dependency which is version 2.0.1
npm WARN unmet dependency C:\Users\erisch\Source\Repos\Orion-Client\node_modules\react-scripts\node_modules\webpack requires<EMAIL_ADDRESS>but will load
npm WARN unmet dependency C:\Users\erisch\Source\Repos\Orion-Client\node_modules\async,
npm WARN unmet dependency which is version 2.0.1
<EMAIL_ADDRESS>C:\Users\erisch\Source\Repos\Orion-Client
└──<EMAIL_ADDRESS>

node -v:
v4.4.7

npm -v:
2.15.8

Then, specify:

Operating system: Windows 10
Browser and version: Chrome

Reproducible Demo
Please take the time to create a new app that reproduces the issue.
Unable to create a new app either. I receive the following error.
$ create-react-app erik-app
Creating a new React app in C:\Users\erisch\Source\Repos\erik-app.
Installing packages. This might take a couple minutes.
Installing react-scripts from npm...
npm WARN optional dep failed, continuing<EMAIL_ADDRESS><EMAIL_ADDRESS>node_modules\react-scripts
module.js:327
throw err;
^
Error: Cannot find module 'graceful-fs'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (C:\Users\erisch\Source\Repos\erik-app\node_modules\react-scripts\node_modules\fs-extra\lib\index.js:4:11)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
Alternatively, you could copy your app that experiences the problem and start removing things until you’re left with the minimal reproducible demo.
(Accidentially, you might get to the root of your problem during that process.)
Push to GitHub and paste the link here.
By doing this, you're helping the Create React App contributors a big time!
Demonstrable issues gets fixed faster.

Can you consistently reproduce this?
Could there be some network issue during install?

Hey Dan - this happens every time. I'm also receiving the following error when trying to create a new site.
$ create-react-app erik
Creating a new React app in C:\Users\erisch\Source\Repos\erik.
Installing packages. This might take a couple minutes.
Installing react-scripts from npm...
npm WARN optional dep failed, continuing<EMAIL_ADDRESS><EMAIL_ADDRESS>node_modules\react-scripts
module.js:327
throw err;
^
Error: Cannot find module 'graceful-fs'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (C:\Users\erisch\Source\Repos\erik\node_modules\react-scripts\node_modules\fs-extra\lib\index.js:4:11)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)

So far I can’t reproduce this with npm 3.
Will try npm 2 soon.
Can you update npm in case it’s their bug?
npm i -g npm@latest

Oh okay, I can reproduce this on npm 2.

After updating npm now getting a completely different error.
erisch@ERISCH-X1GEN3 MINGW64 ~/Source/Repos
$ npm i -g npm@latest
C:\Users\erisch\AppData\Roaming\npm\npm -> C:\Users\erisch\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
<EMAIL_ADDRESS>C:\Users\erisch\AppData\Roaming\npm\node_modules\npm
erisch@ERISCH-X1GEN3 MINGW64 ~/Source/Repos
$ create-react-app erik
Creating a new React app in C:\Users\erisch\Source\Repos\erik.
Installing packages. This might take a couple minutes.
Installing react-scripts from npm...
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at TLSSocket.addListener (events.js:239:17)
at TLSSocket.Readable.on (_stream_readable.js:680:33)
at Request. (C:\Users\erisch\AppData\Roaming\npm\node_modules\npm\node_modules\npm-registry-client\lib\request.js:153:7)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at ClientRequest. (C:\Users\erisch\AppData\Roaming\npm\node_modules\npm\node_modules\request\request.js:791:10)
at emitOne (events.js:82:20)
at ClientRequest.emit (events.js:169:7)
at tickOnSocket (_http_client.js:502:7)
at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at TLSSocket.addListener (events.js:239:17)
at TLSSocket.Readable.on (_stream_readable.js:680:33)
at Request. (C:\Users\erisch\AppData\Roaming\npm\node_modules\npm\node_modules\npm-registry-client\lib\request.js:153:7)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at ClientRequest. (C:\Users\erisch\AppData\Roaming\npm\node_modules\npm\node_modules\request\request.js:791:10)
at emitOne (events.js:82:20)
at ClientRequest.emit (events.js:169:7)
at tickOnSocket (_http_client.js:502:7)
at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at TLSSocket.addListener (events.js:239:17)
at TLSSocket.Readable.on (_stream_readable.js:680:33)
at Request. (C:\Users\erisch\AppData\Roaming\npm\node_modules\npm\node_modules\npm-registry-client\lib\request.js:153:7)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at ClientRequest. (C:\Users\erisch\AppData\Roaming\npm\node_modules\npm\node_modules\request\request.js:791:10)
at emitOne (events.js:82:20)
at ClientRequest.emit (events.js:169:7)
at tickOnSocket (_http_client.js:502:7)
at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limi

what version of npm are you using?

I don’t seem to have this problem after npm install -g npm@next.
Can you try that?
(I know it’s a lousy answer but fighting npm issues is hard.)

I can create a site now, but still running into the same npm start issue. What I'm trying to do is integrate this package with azure, as the default way to build react based azure web-apps and use kudu for deployment. One of the things I noticed here is that the node modules created under node_modules are not defined in package.json. I guess the only workaround would be to eject and deploy the ejected package.json?

I can create a site now, but still running into the same npm start issue.

Which one? Missing lru-cache? It seems like something got messed up on publish, maybe because I was using a buggy npm version. Looking into that now.

One of the things I noticed here is that the node modules created under node_modules are not defined in package.json.

Not sure I understand the question. Can you rephrase?
npm 3 installs nested dependencies in top-level folder so it’s expected.
Just running npm install is enough, you definitely don’t need to eject or add them all to package.json.

Confirming this was a result of bad publish.
I’m publishing a version right now that I think should fix this.

Scratch the question I asked from earlier. I'm able to create a new site and run npm start with using react-scripts 0.4.2. The issue seems isolated to npm version 2.

Fixed with 0.4.3.
Thanks for report and quick replies.

(You don’t need to do anything to use<EMAIL_ADDRESS>for new projects—it will be installed automatically. The global create-react-app command will stay at 0.4.2 because it doesn’t need to be updated. In existing projects, you can bump react-scripts to 0.4.3 in package.json and run npm install.)

Thanks a bunch for the quick turnaround Dan. This library rocks!


Switch from master to main

Fixes #115

This won't get merged, I'm just opening the PR so ites easier to track the jobs.


Write a wiki page that demonstrates the use of Block.AsEnumerable()

The new Block.AsEnumerable() method can be used to quickly modify the document tree or write custom outputs and thus might be very useful for people who want to try out things and don't need maximum performance.
Readme.md must be then modified to point to this page instead of issue #4.

Done


Complete the Akka.NET training

Akka BootCamp has a well-planned program in order to understand how the library works and use it effectively in a software application. Over the next few days, it'll be important to go from Unit 1 to Unit 3.

Haven't started the training yet but I've been picking up on using the library with code samples online. I'll glance at the training but I don't feel the need to go through the whole material to complete the architecture for GLS.  This should be resolved in 3h max.


Error when used with emotion-swc-plugin

I am getting the following error when trying to build storybook with SWC and the emotion-swc-plugin
Here's the error
Missing export __transform_plugin_process_impl', crates/swc/src/plugin.rs:222:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("filepath/.storybook/preview.js-generated-config-entry.js")'

Here's a reproduction repo:
https://github.com/alekangelov/emotion-swc-storybook-bug

https://github.com/swc-project/plugins/issues/48
Here's an issue with SWC itself that might be related to this.


Uncaught DOMException: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules

Bug report
Describe the bug
I have a userscript using stitches. On some site createCss throws the above error at this.
To Reproduce
If it is necessary I should spend more time for reproducible example. If the error is unreachable situation please request to me.
Expected behavior
createCss is initilization function. It should not fail.
System information

OS: windows 10
Browser: Google Chrome 91.0.4472.77 (Official Build) (64-bit)
Version of Stitches: 0.2.0-canary.2

Additional context
0.0.3-canary.4 does not have this problem.

Hi! Can you provide some more information? Either a reproducible example or code snippets. Thanks

codesandbox
I thought it would be hard to reproduce at first but it wasn't.

@jeiea brilliant!
I suppose this is happening because there's no config being passed in. If this is blocking you currently, you can import styled and other functions directly https://stitches.dev/docs/installation#import-it
cc @jonathantneal

In my case, the issue occurred even when there is a config.
example

@jemmyphan thanks!
Seems to only happen when importing from @stitches/core. It works from with @stitches/react
/cc @jonathantneal

Fixed in 0.2.0-canary.4
https://codesandbox.io/s/stitchesreport-forked-mt2bh?file=/package.json


Backend function to grab the last item placed within tickets

Hello Backend,
The middleware requires a get last ticket id function so that we can store the ID number within the program to use globally so that on first or any load we can get a valid ID number to use for each and every ticket. It should return the ticket ID and type as specified in the spec list.

You got it, boss


Loading fixtures with private attributes and no setters

Hello!
I've already used Alice in the past with Liip's WebTestCase, and used to call Fixtures::load to load the fixtures in the test's database.
Now I'm trying to use Symfony's WebTestCase, and I found no easy way to do this because the Fixtures class doesn't exist anymore.
What I tried to do is thus the following:

create a new Client via $this->client = static::createClient()
got the SimpleFileLoader via $this->loader = $this->client->getContainer()->get('nelmio_alice.file_loader.simple')
then in the test I've called $this->loader->loadFile(__DIR__.DIRECTORY_SEPARATOR.'Fixtures'.DIRECTORY_SEPARATOR.'baseUser.yml')

The problem now is that it won't be able to hydrate private attributes with no setters, and thus it will return a sad error Could not hydrate the property "salt" of the object "user1" (class: AppBundle\Entity\User\UserEntity)
How can I achieve this thing? I really need to load scenarios per-test, as the database is of type sqlite and in-memory, so I can't load the fixtures with the shell command.
Thanks
EDIT: I found this page: https://github.com/nelmio/alice/blob/master/doc/advanced-guide.md#custom-accessor - but how can I register my new PropertyHydrator?

You have:
<service id="nelmio_alice.generator.hydrator" alias="nelmio_alice.generator.hydrator.simple" />

So if you want to register your own, simply create it and override the service definition of nelmio_alice.generator.hydrator to alias your new hydrator :)

Note that I understand the need of setting private properties without setters, but it's a bit more custom and having it as a global behaviour is a bit too risky IMO besides having a negligible performance impact.

Would be cool if it is disabled by default but have option to enable it.

Yes it would be easier for the user, but I don't think adding some config faff for it when registering a custom service is all it takes is worth it either especially for a practice that I don't recommend.

Well, if I understood correctly, when configured like this:
app.alice.property_access.reflection_property_accessor:
        class: Nelmio\Alice\PropertyAccess\ReflectionPropertyAccessor
        public: false
        decorates: nelmio_alice.property_accessor
        decoration_priority: -10
        arguments<EMAIL_ADDRESS>
app.symfony.property_access.property_accessor:
        class: Symfony\Component\PropertyAccess\PropertyAccessor
        public: false

it will use reflection only when Symfony\Component\PropertyAccess\PropertyAccessor cannot set private property (no public setter), right?
If so, why is it so bad? It should have similar performances to native if there are public setters.

It’s bad because you are setting state without making use of a mutator. In
some cases it may not matter to you but:

if your mutator is not found by the PropertyAccess, you won’t have any
error and that can be hard to notice
you shouldn’t need reflection to create objects IMO
unlike Doctrine, you don’t have  column mapping and you are creating on
object, not getting it and hydrating it from the database

That and overall this led to many wtf in 2.x because in general you don’t
expect values to be set directly by reflection with your objects.
On Sat 3 Mar 2018 at 11:03, Saša Stamenković<EMAIL_ADDRESS>wrote:

Well, if I understood correctly, when configured like this:
app.alice.property_access.reflection_property_accessor:
class: Nelmio\Alice\PropertyAccess\ReflectionPropertyAccessor
public: false
decorates: nelmio_alice.property_accessor
decoration_priority: -10
arguments<EMAIL_ADDRESS>app.symfony.property_access.property_accessor:
class: Symfony\Component\PropertyAccess\PropertyAccessor
public: false
it will use reflection only when
Symfony\Component\PropertyAccess\PropertyAccessor cannot set private
property (no public setter), right?
If so, why is it so bad? It should have similar performances to native if
there are public setters.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/hautelook/AliceBundle/issues/301#issuecomment-370135780,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE76geLmu6OwNfqhicxoIXdhJlLbh0yZks5tamqLgaJpZM4LSipg
.

if your mutator is not found by the PropertyAccess, you won’t have any error and that can be hard to notice

Thanks! This is particularly interesting, does this means that if I'm trying to set property that does not exists it will pass without an error? So, it does not check if private property is defined or not?

Yes it will check that the property is defined, but the point is if you have:
class Foo {
  private $x;

  function init($x) {
    $this->x = $x;
  }
}

You expect X#x to be set via init() not directly via reflection. If you allow the Reflection property accessor it will completely skip the init() just because it wasn't able to guess that this is the method that needs to be used to set X#x because of some unconventional naming.

Sure, that is the risk you have to take. Sometimes, there are cases when initializing from fixtures is more straight forward with accessing privates.
Maybe it would be good to be able to enable it on fixture level, but I guess that makes implementation complex and probably not worth it.
Thanks for all the info, really appreciate it. :+1:


Added support of link_names parameter.

Cake.Slack did not support ability to mention somebody in message by his @slackname. Now it is possible by setting LinkNames parameter of SlackChatMessageSettings to true. It's default value is false, so default behavior did not change.

Build failed the same way even without my changes :(
Unfortunately, I do not know how to fix it.

/ping @devlead :)

@kolesnick  your changes have been merged, thanks for your contribution 👍


Added Hello World in HTML

Closing this issue : https://github.com/agnilondapakou/helloWorld/issues/24


Outline on Safari doesn't apply radius

Is there any workaround or remove outline and use border radius by default?
Safari:

Chrome:

This is fixed on the "Safari Technology Preview" release 157:

https://bugs.webkit.org/show_bug.cgi?id=246192
https://webkit.org/blog/13575/release-notes-for-safari-technology-preview-157/
And is expected to be available for everyone on the next Safari update (16.3)

But for now, as a workaround, you can use box-shadow like this:
https://play.tailwindcss.com/pG0l3saKDb?file=css
.input:focus {
  outline: none;
  @apply ring-2 ring-current ring-offset-2;
}
.input-primary:focus {
  @apply ring-primary;
}

The reason we're not using box-shadow for it by default, is that it's outline's job and it should be independent from element's box shadow. If we use box shadow, people can't use Tailwind CSS's shadow utility class for it if they need because it will override the default box shadow.
Let me know if you have any questions.


Missing "Invalid amount" validation

When entering an invalid amount for a transfer in the subsection #receive, the system does not display the message "Invalid amount", similar to the subsection #send

When the balance is 0.000000, a system error "Invalid amount" is displayed. However, when entering the amount 0.00000022, the "Invalid amount" message disappears, allowing the transaction to be confirmed.


Fix mistakes and modify Japanese expressions

Fix translation mistakes.
Modify Japanese expression to be more readable.

Thanks for the fix! :+1:


Update wit bindgen

This PR updates our dependency on wit-bindgen to 0.6. Unmodified components built using the old version of spin and the old SDK should still run correctly.
There are a few considerations that need to be discussed before this can be merged:

This will require changes to Fermyon Cloud before components built with the new version of the SDK can be run.
There are a few subtle things that change that we need to decide how they interact with backwards compatibility:

spin_sdk::key_value::Error used to have its Error and Display impls managed by the SDK but it seems wit-bindgen is now implementing these. I need to investigate this.

Templates still refer to the old SDK and old version of wit-bindgen. We'll need to coordinate upgrading those templates correctly.
I've only updated the Rust SDK. We still need to update other language SDKs.

The `` test is failing with the following error:
Error: Failed to instantiate component 'hello'

Caused by:
    0: import `filesystem` has the wrong type
    1: instance export `open-at` has the wrong type
    2: type mismatch with parameters
    3: expected flags type with 7 names, found 6 names

This might be due to a mismatch in wasi versions. Perhaps the wasi that we are using in spin-componentize and the version that wasmtime is expecting might not be lining up. It seems others are facing such an issue. I need to investigate this more though.


Fix: disable inputs for online country if it was preselected

Error was: location inputs were not disabled if someone entered an edit
page for event which country was 'Online'.
They were only being disabled/enabled when changing the country to/from
'Online'.
This commit fixes this error.
It fixes #591 too.

:+1:


Document how to subscribe to (solidity) events using embark js

Not sure if this is possible, but if it is possible it is undocumented.

It's contract_instance.eventName(options*).then(function(event) {}))
you can find some examples in here
https://github.com/iurimatias/TransactionRelay/blob/master/app/js/deployer.js#L5
https://github.com/iurimatias/TransactionRelay/blob/master/app/js/deployer.js#L13

Perfect, thanks! But may I suggest you include such an example in the main README.md. Along with getting and setting data, this is the other way to interact with a contract.

updated docs.

Sorry for writting on a closed thread. Could anybody provide a link to the documentation where is explained how to subscribe to contract events with embark?? I am unable to find it.... and the examples @iurimatias provided doesnt work for me... Thanks in advance!

Hi @alvarorodriguezestruch , EmbarkJS contracts use web3js' implementation, so you can find the full documentation here: https://web3js.readthedocs.io/en/1.0/web3-eth-contract.html#events
Otherwise here is a very simple example using once: https://github.com/embark-framework/embark/blob/master/dapps/tests/app/test/simple_storage_spec.js#L50


Reflection: Fix crash when reflecting existential with fileprivate protocol member

Fixes rdar://problem/31661662, rdar://problem/31668126,
and probably many other crashes with the same backtrace.

@swift-ci Please smoke test


Simplifies access token handling. Closes #1313

Closes #1313

Coverage remained the same at 100.0% when pulling 6cd2dfb602f30fb55b4afa58c19e7638a5084d65 on garrytrinder:auth-filestorage into b847249a22c3ae32a480a00db4a800503204cd96 on pnp:dev.

@waldekmastykarz absolutely, folder removed 👍🏻

Schweet! Thanks for a quick turnaround!

This PR is a nice combo with the previous one. As seems we will be ready for Azure Functions :)

Merged manually. 👍


[extractor/youku] Fix youku extraction

IMPORTANT: PRs without the template will be CLOSED
Description of your pull request and other information

Fixes #4456
Template

Before submitting a pull request make sure you have:

[x] At least skimmed through contributing guidelines including yt-dlp coding conventions
[x] Searched the bugtracker for similar pull requests
[x] Checked the code with flake8 and ran relevant tests

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[x] Fix or improvement to an extractor (Make sure to add/update tests)
[ ] New extractor (Piracy websites will not be accepted)
[ ] Core bug fix/improvement
[ ] New feature (It is strongly recommended to open an issue first)

Do download tests pass? If not, could u pls update them?


added initial support for numpy ndarrays and scalars

Description
added initial support for numpy ndarrays and scalars
Pull request type
Please delete options that are not relevant.

[X] Bugfix

Related issues
Closes (link to issue)
to_cypher_value badly converts numpy objects

Does this change need to be added here too? So that it works when the property of a node is ndarray instead of a list in the class definition?

Does this change need to be added here too? So that it works when the property of a node is ndarray instead of a list in the class definition? Otherwise, all seems fine.

This closes the issue within the transformation module, we can create a separate task to look into the models

Does this change need to be added here too? So that it works when the property of a node is ndarray instead of a list in the class definition? Otherwise, all seems fine.

This closes the issue within the transformation module, we can create a separate task to look into the models

Okay, I opened a new issue for the models, so we don't forget.


Let Travis only run tests on JDK 8

We will test installation on oraclejdk7, openjdk7 and oraclejdk8,
but only run tests on oraclejdk8 to accelerate Travis-ci.

I'd change it to only run on oracle JDK 7, we already run on JDK 8 on Hudson.

lgtm


DuskServer Improvements

coverage: 87.983% (+0.4%) from 87.558% when pulling b790f06342355e57b1366fa202c2af5f61e60e80 on process-wait into 65b8d1625221bf281794883977429196baf1d0e5 on 8.x.


feat: add KeyType to TFnType

By adding a file like this one in our projects:
// tolgee.d.ts

import type en from<EMAIL_ADDRESS>
declare module "@tolgee/react" {
  export type TranslationsType = typeof en;

  export type DotNotationEntries<T> =
    T extends object
    ? { [K in keyof T]: `${K & string}${T[K] extends undefined ? "" : T[K] extends object ? `.${DotNotationEntries<T[K]>}` : ""}` }[keyof T]
    : "";

  export type TranslationKeys = DotNotationEntries<TranslationsType>;
}

and patching two functions in your codebase, we can have autocomplete working.

Since it's an optional argument, it doesn't impact existing users, but they also don't get it for free: you need to create an additional file.

A note on the PR: this is more of a proof of concept than anything. It only implements it for two function, and was the feature to be wanted, it would have to be ported to other frameworks too.

Beautiful! Thanks a lot for this!

Cool idea, I'll try it make a bit more general.

I've made a new pull request because my solution goes a bit deeper into the core library.
https://github.com/tolgee/tolgee-js/pull/3186


Fix error messages

The error message was fixed in https://github.com/spring-cloud/spring-cloud-config/pull/753 but "Ssh" was missed.
This PR also polishes trivial stuff.

Codecov Report

Merging #783 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #783   +/-   ##
=======================================
  Coverage   75.69%   75.69%
=======================================
  Files          81       81
  Lines        2670     2670
  Branches      382      382
=======================================
  Hits         2021     2021
  Misses        489      489
  Partials      160      160

Impacted Files
Coverage Δ

...k/cloud/config/server/ssh/PrivateKeyValidator.java
100% <100%> (ø)
:arrow_up:

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 c971e31...5381497. Read the comment docs.


bug: get_auto_pin doesn't seem to pick up on Lazy's float window

Neovim version (nvim -v)
0.9.5
Operating system/version
Macos
Describe the bug
Hi, love this plugin!
I was trying to fix an annoying behavior when using lazy + sessions.
Basically, if you reopen nvim and have an active session, the lazy float buffer will result to opening the other buffer in the float window.
I was trying to fix this like so:
          get_auto_pin = function(bufnr)
            if vim.bo[bufnr].filetype == 'lazy' then
              return true
            end
            return require('stickybuf').should_auto_pin(bufnr)
          end,

But the problem is the lazy buffer is not being picked up by the underlying BufEnter.
I know that lazy is doing a lot with that buffer (it's hidden, unlisted, etc..), so that is possibly the reason.
Is there a way to still apply pin buffer to the lazy buffer?
What is the severity of this bug?
minor (annoyance)
Steps To Reproduce
Use a session manager, add a new plugin to lazy. Have a file open.
Reopen neovim.

It's possible that the Lazy window is being opened and entered before stickybuf has loaded and created its autocmds. You could try manually adding a filetype autocmd early in your config to pin the lazy buffer (using :PinBuffer or require("stickybuf").pin())


Fix #270: Add Django 1.9 compatibility

This seems to work. Refer to #270 to see discussion about what change in Django 1.9 caused this.
I broke compat.py into compat.py and compat_apps.py, in order to get around the need to import get_model from multiple places, and so we can use AppConfig without running into the same issue we were trying to fix.
Let me know if I can improve this.

+1, nicked by this, too

+1, this fix works well

+1 :+1:

+1

+1

+1

+1

+1

+1

Is there anything that is blocking the merge ? (@justquick)

tons of warnings. gonna try to squash em

1.9 drops pypy3 (cpython 3.2 compat) support, gotta adjust the test runner and tox.ini/.travis.yml


pkg/trace: add appsec span tag obfuscation

What does this PR do?
Obfuscate _dd.appsec.json tags against sensitive data.
AppSec events contain security rule inputs, called parameters here, that may contain sensitive data which need to be obfuscated. It is made of two regular expressions: one for the parameter keys (ie. original security rule parameter field names) and another one for the parameter value and highlight values.
The obfuscator is always enabled and obfuscates values whose keys can be password, pwd, token, api_token and so on.
Important note: the implementation is permissive enough to let new and different appsec json payloads to happen without having to immediately update the agent.
The obfuscation algorithm uses the existing json scanner and scans each parameter of each appsec security events. It searches for all of the appsec rule parameters the payload may contain so that:

It firstly tries to match the parameter key names against the key regular expression. When a key matches, the full parameter value and highlights are obfuscated regardless of the value regular expression.
If no parameter key was matched, then the value regular expression is executed on the parameter value and highlights.

Benchmarks
Unquote implementation comparisons
The performance of this obfuscator is driven by the function unquote() which is called everywhere in order to unquote the JSON string values, compare them and ultimately obfuscate them.
Therefore, the following benchmark results compares what happens when using encoding/json's internal unquote() function (new) versus calling encoding/json.Unmarshal() on a Go string to avoid copying this internal code (old):
name                       old time/op    new time/op    delta
Obfuscator/matching-4        76.5µs ± 0%    78.7µs ± 0%   +2.85%
Obfuscator/not-matching-4    69.5µs ± 0%    50.2µs ± 0%  -27.73%

name                       old alloc/op   new alloc/op   delta
Obfuscator/matching-4        25.4kB ± 0%    32.6kB ± 0%  +28.34%
Obfuscator/not-matching-4    23.6kB ± 0%    10.7kB ± 0%  -54.59%

name                       old allocs/op  new allocs/op  delta
Obfuscator/matching-4           354 ± 0%       294 ± 0%  -16.95%
Obfuscator/not-matching-4       354 ± 0%       138 ± 0%  -61.02%

The resulting performance boost mainly comes from the fact we avoid the string <-> []byte copies involved by the call to json.Unmarshal(), whereas the compiler is able to optimize and avoid those when encoding/json's unquote function is copied into the obfuscator package (likely thanks to inlining + escape analysis + immutability checks).
This is the reason why this PR is opened with the option of copying and using encoding/json's unquote() function.
Obfuscator implementation comparisons
The following results compare the json-scanner-based implementation (using the previous unquote optimization) to the basic implementation decoding the full AppSec JSON payload in order to obfuscate it:
name                       old time/op    new time/op    delta
Obfuscator/matching-4         114µs ± 0%      79µs ± 0%  -31.10%
Obfuscator/not-matching-4    63.5µs ± 0%    50.2µs ± 0%  -20.92%

name                       old alloc/op   new alloc/op   delta
Obfuscator/matching-4        41.7kB ± 0%    32.6kB ± 0%  -21.73%
Obfuscator/not-matching-4    23.4kB ± 0%    10.7kB ± 0%  -54.13%

name                       old allocs/op  new allocs/op  delta
Obfuscator/matching-4           786 ± 0%       294 ± 0%  -62.60%
Obfuscator/not-matching-4       466 ± 0%       138 ± 0%  -70.39%

This confirms it is a good technical choice in the end for performances, despite the much (much) harder implementation.
Motivation
Sensitive data obfuscation.
Additional Notes

Possible Drawbacks / Trade-offs

The longer term better solution for this is to move to the new meta_struct span tags which would allow to walking a Go value instead of a bare JSON payload that we need to scan here.
Describe how to test/QA your changes

This change is 100% covered by the Go tests.
System tests were added to check the sensitive data gets removed: https://github.com/DataDog/system-tests/pull/186

Reviewer's Checklist

[x] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[x] The appropriate team/.. label has been applied, if known.
[x] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[x] A release note has been added or the changelog/no-changelog label has been applied.
[x] Changed code has automated tests for its functionality.
[x] Adequate QA/testing plan information is provided if the qa/skip-qa label is not applied.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[x] If applicable, the need-change/operator and need-change/helm labels have been applied.
[x] If applicable, the config template has been updated.

Closing the PR after finding out that we could do it at the AppSec WAF level when it generates the AppSec events. This solution avoids all the drawbacks of doing it offline, with the implications it has on the sensitive data lookup.


Migration to PG

Description
Fixes # (issue)
Type of change

[X] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[X] This change requires a documentation update

Change Status

[ ] Complete, tested, ready to review and merge
[X] Complete, but not tested (may need new tests)
[ ] Incomplete/work-in-progress, PR is for discussion/feedback

How Has This Been Tested?

[ ] Jest
[ ] Supertest
[X] No

Checklist

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] My code has been reviewed by at least one peer
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[X] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[X] New and existing unit tests pass locally with my changes
[] There are no merge conflicts

still need to write tests


add overlay options for clock and time references

https://github.com/pothosware/pothos-sdr/commit/3183e65aa49a740b41b12daf9feeacbe0eca55fd


How to Manifest a Meetup

This week I was visiting NYC for work reasons, and found myself with a gap on my schedule for Thursday night. So I tweeted out an invite:

and ultimately 25 people showed up! To a personal meetup, on 5 days' notice.

		More pictures courtesy of @dorianb

https://twitter.com/swyx/status/1547767334068137985?s=20&t=UbZh_k7_IF5GzxGW0zgrlg

Here are a smattering of comments I got about the meetup:

Had a blast tonight! Never thought coding and karaoke would go so well together 🤣 - Julia
CodeSongBox Karaoke was so awesome last night. Thanks for setting it up - Dorian
Thank you so much for having me, I met a ton of awesome people and re-connected with friends, a total blast :) - anon VC
hey man, thanks for organizing karaoke last night. ton of fun. would love to hang out next time you're back in NYC! - anon VC
so great to see you last night - that was such a fun event! - anon VC
I had a great time tonight! Thanks so much for hosting such a fun event :) It was really nice meeting you and we gotta keep in touch! - anon dev
Thanks for hosting us! Was a great time - anon VC
It was my first Karaoke ever and tbh it was more fun than i expected. - anon dev
Loved it ☺ thanks for the invite!! - anon founder
This is the shit I miss from the 2010-era optimistic internet - anon dev

I think overall it was a highlight of the week and a fun spontaneous event in the re-emerging NYC tech scene.
You can do this too. Everybody can.
I really do believe this. I'm not the most social person in the world - I'm a wallflower at clubs, and am an ambivert at best. But you don't need to be Prom King/Queen to pull something like this off and it can be a big boost to your network/friend group/local tech scene.
Sure, I have 44k followers so I have more reach. But you really just need a couple dozen people to pack a small room, and that's pretty much all the energy you'll have for meeting new people in one night anyway.
Also, I did this before in 2019 with less than half the following, and 2x the turnout (because it was an actual technical meetup featuring the framework creator). And more in 2018 with much smaller groups.
I was asked about it by many many folks this week so I decided to write down a little playbook for you to follow.
Preparation
Satya Nadella recently noted that leadership about "creating clarity where none exists". It's the same whether you are leading 180,000 Microsoft employees or gathering 18 friends. Decide the parameters of the meetup upfront:

Venue (may need A/V if you intend to do talks and/or streaming/recording. also note that some venues need preregistration for security)
Date & Time & Duration (6-6.30pm start on a Thursday is fine in NYC, ymmv. I've done random weekend meetups and its fine too)
Format (just drinks? will there be talks? is there food? is it open or closed invite? +1's allowed? )

if there are talks, you will need to secure 1-3 speakers - 0 speakers is also fine, don't worry about it.

Theme (this is super important - what is the shared identity of everyone attending? the mental calendar invite in everyone's heads will shape every conversation they initiate with a stranger. take the exact same people and watch them have completely different conversation at an "Enterprise Tech meetup" vs a "Devtools meetup". A catchy name will take you far.)

Don't bother doing a survey - you need to just make a decision on what works for you, vs what works for the city/demographic you are doing this in (you will get a feel for this over time; I've lived in NYC over 7 years and attended ~100 meetups). If you can get a core gang of 1-5 closer friends to come with you, that's great, because no matter what the turnout is you will probably have a good time.
Recently I've been leaning towards asking for preregistration, even for a personal meetups where I have no "leadgen" intent whatsoever. It just helps keep track of headcount and gives me a way to contact everyone at once if things change last minute. The dominant player in this is Meetup.com, which has a large existing userbase which will get recommendations and notifications of your new meetup if you hit the right keywords. However the UI is a little dated and the pricing is expensive for what it is. I have used DownToMeet in the past, and more recently favoring Lu.ma for the clean design and helpful featureset (screening questions, event chat, subsequent event invites).
 There are "what's happening" websites in most major cities but I haven't tried submitting to those.
WIP

https://www.priyaparker.com/thebook
https://twitter.com/patrick_oshag/status/1109621591980294146
https://partyqs.com/
https://party.pro/icebreakers-work/
https://party.pro/speed-icebreakers/

https://karmanivero.us/blog/how-to-run-an-event-that-doesnt-suck/

have an agenda/format

Timing is non negotiable - don't run over time
Have an opening monologue - intro yourself, prep and shred it
have a legend/origin story that you repeat
intro yourself to the new person/elevator pitch them
reiterate the agenda, basic timeline
introduce guest speakers - make them look good - and stay engaged
track registrations, attendance, be curious about attendees

see also HN notes https://news.ycombinator.com/item?id=32876804


Use sqladmin with sqlalchemy core

Checklist

[X] There are no similar issues or pull requests for this yet.

Is your feature related to a problem? Please describe.
I want use sqladmin with sqlalchemy core
Describe the solution you would like.
Looks like we must rewrite many code
Describe alternatives you considered
No response
Additional context
No response

Please provide a minimal example with the error of what is happening

from sqlalchemy import Column, Integer, String, create_engine, Table, MetaData
from fastapi import FastAPI
from sqladmin import Admin, ModelView

engine = create_engine(
    "sqlite:///example.db",
    connect_args={"check_same_thread": False},
)

metadata = MetaData()

User = Table(
    "users",
    metadata,
    Column("id", Integer, primary_key=True),
    Column("name", String),
)
metadata.create_all(engine)

class UserAdmin(ModelView, model=User):
    column_list = [User.columns.id, User.columns.name]

app = FastAPI()
admin = Admin(app, engine)

admin.add_view(UserAdmin)

  File "/Users/sheldy/projects/test-sqladmin/test.py", line 20, in <module>
    class UserAdmin(ModelView, model=User):
  File "/Users/sheldy/projects/test-sqladmin/venv/lib/python3.11/site-packages/sqladmin/models.py", line 83, in __new__
    if not model:
  File "/Users/sheldy/projects/test-sqladmin/venv/lib/python3.11/site-packages/sqlalchemy/sql/elements.py", line 748, in __bool__
    raise TypeError("Boolean value of this clause is not defined")
TypeError: Boolean value of this clause is not defined

I read sqladmin sources and realized that he is addicted to orm


Allow for discoverable mode to be activated via config

Currently discoverable mode is activated by passing an explicit instantiation option (discoverable: true). The starter could be enhanced to allow for discoverable mode to be also enabled by config.
It may be an option to automatically enable discoverable mode if zookeeper and microservice server details are provided. The current explicit discoverable flag would then act as an override.

Implemented, as "discoverable" option:
{
   ...
  discoverable: true
}


Usage of Beta packages

Should not all angular and other packages should be stable.
In the packages.json some packages are of beta version.
I would like to know if there is a reason for using beta packages?

@KhalilMohammad with the quick pace and release cycle of some of these libraries I just wanted to keep up with the latest and greatest of these libraries so that migration becomes easier as soon as library is released. Thats all. :)
Just upgraded angular to current latest.


FALCON-1838 : Add Export instances to graphdb for Lineage tracking

@vramachan You have a merge conflict with apache branch.


FileNotFoundError: [Errno 2] No such file or directory: 'lspci'

Hi,
I met the same problem #51 opened in alfred, when I run this command in alworld.
sudo python ~/alfworld/docker/startx.py 0

Actually, I run sudo python3 ~~/alfworld/docker/startx.py 0
It shows

Starting X on DISPLAY=:0
Traceback (most recent call last):
  File "/home/lyp/alfworld/docker/startx.py", line 97, in <module>
    startx(display)
  File "/home/lyp/alfworld/docker/startx.py", line 72, in startx
    for r in pci_records():
  File "/home/lyp/alfworld/docker/startx.py", line 15, in pci_records
    output = subprocess.check_output(command).decode()
  File "/usr/lib/python3.5/subprocess.py", line 626, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.5/subprocess.py", line 693, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'lspci'

Do I need the same change?

@yipliu I added pciutils to install_deps.sh. Try it out now.

Everything works!!!
BTW, do you know of a detailed tutorial on deep learning with Docker?

@yipliu thanks a lot for reporting this issue. Regarding your question, I don't have a lot of experience with running deep learning experiments with Docker other than re-using existing docker from dockerhub and running my code on them interactively.

@MarcCote, developing with VScode and Docker is an extraordinary experience! It makes me wonder what excellent engineers do when they do R&D. However, as a student, I will focus on improving the model's performance. Thank you for your reply!


Make the TUF server init a consistent_snapshot repository by default

Description
As of now, the TUF server will always create a repository with consistent_snapshot: false. I believe it is much more useful to create a consistent_snapshot: true because of the benefits in updating such repositories (now that we can actually update the underlying repository thanks to https://github.com/sigstore/scaffolding/pull/1214). This can either be a one-line change if we just switch or it could be more involved if we want to keep false as the default and add a new flag to the server to switch to true. I'm ok with implementing either (obviously I have preference for just switching to true :wink:, but I'm not sure if that would break something else), please let me know which option sounds better.

Yes, I think we should definitely do this, there's almost no reason to not enable this beyond some minor space saving.


Vitis AI 2.5 Board overload issue

Hi,
I tried to execute the Vitis AI 2.5 on U50 lv board. I was able to infer the results for the sample images but when I try to execute the Performance tests my System reboots. What may be the reason for the unexpected reboot? Any leads would be appreciated.
Command used:
./test_performance_classification resnet50 test_performance_classification.list -t 8 -s 60
System Info:
OS: Ubuntu 18.04.1
kernel: 4.15.0-193-generic
Card :U50LV

Hi @akshayvignesh ,
The System reboots is due to power consumption. And due to power consumption, the alveo card of U50/U50lv needs to be downclocked to 60% to run the model multi-threading test.  Please refer to the command to reduce the frequency: https://docs.xilinx.com/r/2.0-English/ug1354-xilinx-ai-sdk/Scaling-Down-the-Frequency-of-the-DPU
Thanks!

Great! @akshayvignesh I am glad to hear that. And Please reopen the issue if you have any other questions! thanks!


Resource to add: https://uigradients.com/

URL: https://uigradients.com/
Message: (UI Design / Web Dev) Library of dozens of Gradients ready to use with CSS class and also HEX color.
This issue was automatically generated from the website.

Added


BLD: Don't pin install requirements to exact versions

Instead, use those versions as lower bounds, so zipline
will work with packages that require other versions.

@llllllllll How does this look as a fix for #823 ?

This looks good, but it looks like our travis file will be pulling the newest versions of everything (like flake8 ^^).
Maybe we could do an extras_requires like strict so people can pip install zipline[strict] which will force the versions to what we want tested. We can then use this for travis

pip install zipline[strict] makes sense to me.

I think we should call read_requirements('etc/requirements_dev.txt', convert_eq_to_lte=False), since dev requirements should always be pegged, and I imagine that will solve this issue without [strict].  Do you think [strict] would be otherwise helpful?

Ah, would be nice to pin them for travis...

@llllllllll I can't seem to override the install_requires with 'strict' in the extras_require.  Any suggestions?

Can you not just make the extras_requires list for strict the more strict version and then those will be downgraded when you use that target?

That's what I had hoped, but based on the travis build log, seems like not.

hmm, let's play with this a bit. I think that we want this to be easy since we will want to do this on travis. I wonder if there is any existing work for this.

one comment on the whatsnew, then :shipit:


!m n is bugged when !m rcs is enabled

Tried adding -ss 0 to ffmpeg arguments. Has no effect. Song must be resolved again. Won't fix this while we have the BadQuery resolve bug.


Allow more granular configuration of console access (management.xml)

SUMMARY
Currently we only can specify a list of roles in amq_broker_hawtio_role which then gets access defined in amq_broker_management_access_default and amq_broker_management_access_domains, so all used roles will have the same type of access.
A more flexible way of configuring access in management.xml would be very welcome for, e.g., configuring additional read-only roles, etc.  Could imagine to configure the access like:
console_access:
  - roles: "role1,role2,..."
    - domain1: "list,get,..."
    - domain2: "..."
  - roles: "roleA, roleB,..."
    - domain1: "..."
...

ISSUE TYPE

Feature Idea

If there are no takers for hacktoberfest, I'll start this end of the month

@guidograzioli any thoughts about the status?

Hello; I am currently tackling github actions issues that hinder the CI, this is next on the list (any takers, more than welcome, of course)


Readme For Secrets Management

Create a readme file for secret management.

Link the readme to the project main readme

This would be tackled after we have completed the refactoring of the secrets management.


Add CGPA Field to Education Section

Description
In the current version of our resume maker app, users can input their educational background. However, we're missing a crucial piece of information for many users - their Cumulative Grade Point Average (CGPA). It's a standard metric for educational achievement, and it's essential to include it in the education section of the resumes.
Proposed Solution
This issue aims to enhance the education section by adding a dedicated CGPA field. Users should be able to provide their CGPA in a standardized format. The CGPA field should be seamlessly integrated into the existing form, allowing users to enter this vital academic information.
Tasks

[ ] Modify the user interface to include a CGPA field in the education section.
[ ] Implement validation to ensure that the CGPA provided by the user conforms to the expected format and range. The CGPA should be between 0-10 if no % symbol is given, and 0-100 if % is included in the input.
[ ] Provide a real-time message below the input field starting from the moment the user begins input, guiding them on how to format their CGPA and notifying them if the constraints are not met.
[ ] Update the resume generation process to include the CGPA in the final resume.

Can I get assigned?

can i get assigned

Can I get assigned

can i get assigned/

Can I get assigned?

Can I get assigned

Yes

Can I get assigned?

Can I get assigned?

Can I get assigned?

can i get assigned

CAN I GET THIS ASSIGNED

Can i get assigned

CAN I GET THIS ASSIGNED

Are u assigned anywhere else?

can i get assigned?

can i get assigned to this?

can you pls assign this to me

can i get assigned pls?

Can i be assigned to the issue #2

can i be assigned to this issue?

can i be assigned to this issue?

can i get assigned if this is still open?

i wanna get assigned please

can i get this assigned

can i get assigned this?

You can all send PR for this, I will merge the best one.


Redirect to inconsistent route on submitting wrong params on timesheet#edit

When wrong params are entered on timesheet#edit (http://localhost:3000/time_sheets/2/edit) and updating the timesheet, users are redirected to an inconsistent URL http://localhost:3000/contracts/2/time_sheets/2.
There are two routes for time_sheets#update

This is tested in /spec/features/time_sheets/work_day_crud_spec.rb

Thanks @derari !

https://github.com/hpi-swt2/wimi-portal/commit/c7ceb359e78e24d625ddfc3e476e0a7c9703dd0d messed up the the timesheet#new route.

Ffixed with 05beca87387290d5a7e2dd968872d2ad8cfdde5e


Office Online Server corrupts documents (pctWidth and pctHeight elements)

After upgrading our development office online server from version 16.0.7601.6800 to the latest one (version 16.0.8471.8525) we observed certain Word documents got corrupted after they were edited. Even a local Word 365 can't open such a document.
In production, we still have the older version of office online server running (luckily), which does not corrupt the documents when editing, so I was able to compare the results.
Finally we were able to pinpoint what gets corrupted in the documents:
All corrupted documents have in common that they contain some sort of drawing element (for example a very simple rectangle with a color). In the original document this drawing element has its PercentageWidth and PercentageHeight specified as <wp14:pctWidth>0</wp14:pctWidth> and <wp14:pctHeight>0</wp14:pctHeight> respectively. After editing, the document (now corrupt) contains <wp14:pctWidth /> and <wp14:pctHeight />. So empty values.
Does anyone have a solution for this problem? Can this be fixed in some way? We can't prevent users from adding such problematic documents and fixing corrupted documents is a hopeless task.
Attached is a simple document that, when edited on our office online server version 16.0.8471.8525, gets corrupt.
corruptsOnEdit.docx

We can't provide Office Online Server support here. That said, I will forward this report to the Office Online Server folks.

This issue is indeed known and a patch with a fix is in process.


Rebase on Bitcoin Core 0.12.0

Hi!
Bitcoin Core 0.12.0 is out: https://github.com/bitcoin/bitcoin/tree/0.12
It could be nice to benefit from the new improvements.
How hard is it to rebase Classic work on it?
I'm no C++ developer, but I can give it a try today if no one else is working on it.

Check our github


DR-2496 Remove message HTML escaping from the base ErrorReportException class

I also removed the unit test since now there's not much point to it

shoot, you're right. I thought I had but clearly not.  just updated


Delete a message: What should happen on reply messages?

So when a message is delete we get updateDeleteMessages and remove them from our view model, if they have been loaded there. But lets say, there is a message that is a reply to a now deleted message.
There is no update available to modify the reply_to data of a message. So in this case we would still show the citation header on this message with the summary. But the official client immediately says "deleted message" instead.
How do you propagate this change? Is there a lookup table for message citations that is used to update the replies? Just being curious since currently we crash the app if you click on the citation to jump to the deleted message :)

The other clients traverse all messages from the chat that are present in memory and update relevant reply_to data whenever a message is deleted or edited.

Ah ok so thats actually easy: set it to 0, will default to display a deleted message, thanks!


Drawing view multi line

WPF, UWP
Description of Change
WPF

UWP

iOS

Bugs Fixed

Fixes #1462

API Changes
Added:

Class Line (It contains a collection of points, line color, line width, SmoothLine, Granularity)
MultiLineModeProperty, LinesProperty,

Updated:

Renamed DrawingCompletedCommandProperty to DrawingLineCompletedCommandProperty

Removed:

DrawingView: a collection of points, line color, line width, SmoothLine, Granularity

Behavioral Changes

PR Checklist

[x] Has a linked Issue, and the Issue has been approved
[ ] Has tests (if omitted, state reason in description)
[x] Has samples (if omitted, state reason in description)
[x] Rebased on top of main at time of PR
[x] Changes adhere to coding standard

[ ] Updated documentation

@jfversluis, @AndreiMisiukevich , @pictos please review

@VladislavAntonyuk can you fix the build issues?
https://github.com/xamarin/XamarinCommunityToolkit/pull/1475/checks?check_run_id=3003305930

It's not related. I don't know why but CI doesn't know about TimeSpan. System namespace is imported. You can try build locally. It should be fine

@VladislavAntonyuk I fixed the TimeSpan issue. Now we have another one related to the DrawingViewService. Looks like the methods haven't the same number of arguments and that's causing compilation errors for WPF.

Thank you!
That's weird, how it might appear in develop, because if compilation issue.
I will recheck the build on Windows. Maybe something is changed when I added it for iOS and macOS.

@pictos it should be fine now. please check

Please don't forget to add more comments on all the public members next time :)

Please don't forget to add more comments on all the public members next time :)

Thank you very much for your help!
So it will be in 1.4, not 1.3?

Please don't forget to add more comments on all the public members next time :)

Thank you very much for your help!
So it will be in 1.4, not 1.3?

Nope, I was totally confused. Should be in 1.3 :)


[mesheryctl] Add letter v in client version when mesheryctl version is invoked

Description
Client Version: 0.4.3 	  GitSHA: 51fa5e6626f024aa3bd914efd0d0c34fa136021a
Server Version: v0.4.3 	  GitSHA: 51fa5e6```

Currently client version doesn't have 'v' as in server version.

**Expected Behavior**
```➜  meshery git:(myMeshMap) mesheryctl version
Client Version: v0.4.3 	  GitSHA: 51fa5e6626f024aa3bd914efd0d0c34fa136021a
Server Version: v0.4.3 	  GitSHA: 51fa5e6```

---
[Optional] **To Reproduce**
Steps to reproduce the behavior:
1. build mesheryctl
2. run `./mesheryctl version`

can i take this ?

Sure @UdokaVrede

can i take it if the issue have not been resolved

Someone is already assigned to it..


[BUG] An error occurred when inferring the downloaded 'bge-large-zh-v1.5' embedding model

System Info
env info:
CUDA
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Tue_Feb__7_19:32:13_PST_2023
Cuda compilation tools, release 12.1, V12.1.66
Build cuda_12.1.r12.1/compiler.32415258_0

transformers Version: 4.42.4
system: Ubuntu 22.04
python 3.10
Running Xinference with Docker?

[ ] docker / docker
[X] pip install
[ ] installation from source

Version info
xinference = 0.14.0
The command used to start Xinference
xinference-local -H <IP_ADDRESS> -p 8000
Reproduction
Download the model "bge-large-zh-v1.5" to the customized path.
Register the model name as “bge-large-zh-v1.5-Torch”.
JSON Configuration :
{
    "model_name": "bge-large-zh-v1.5-Torch",
    "model_id": null,
    "model_revision": null,
    "model_hub": "huggingface",
    "dimensions": 1024,
    "max_tokens": 2048,
    "language": [
        "zh"
    ],
    "model_uri": "/home/gavin/llm/embeddings/bge-large-zh-v1.5",
    "is_builtin": false
}

Inference Error :
2024-08-04 10:39:22,905 xinference.api.restful_api 85519 ERROR    [address=<IP_ADDRESS>:37339, pid=86038] argument of type 'NoneType' is not iterable
Traceback (most recent call last):
  File "/home/gavin/miniconda3/envs/xinf_cp310/lib/python3.10/site-packages/xinference/api/restful_api.py", line 850, in launch_model
    model_uid = await (await self._get_supervisor_ref()).launch_builtin_model(
  File "/home/gavin/miniconda3/envs/xinf_cp310/lib/python3.10/site-packages/xoscar/backends/context.py", line 231, in send
    return self._process_result_message(result)
  File "/home/gavin/miniconda3/envs/xinf_cp310/lib/python3.10/site-packages/xoscar/backends/context.py", line 102, in _process_result_message
    raise message.as_instanceof_cause()
  File "/home/gavin/miniconda3/envs/xinf_cp310/lib/python3.10/site-packages/xoscar/backends/pool.py", line 656, in send
    result = await self._run_coro(message.message_id, coro)
  File "/home/gavin/miniconda3/envs/xinf_cp310/lib/python3.10/site-packages/xoscar/backends/pool.py", line 367, in _run_coro
    return await coro
  File "/home/gavin/miniconda3/envs/xinf_cp310/lib/python3.10/site-packages/xoscar/api.py", line 384, in __on_receive__
    return await super().__on_receive__(message)  # type: ignore
  File "xoscar/core.pyx", line 558, in __on_receive__
    raise ex
  File "xoscar/core.pyx", line 520, in xoscar.core._BaseActor.__on_receive__
    async with self._lock:
  File "xoscar/core.pyx", line 521, in xoscar.core._BaseActor.__on_receive__
    with debug_async_timeout('actor_lock_timeout',
  File "xoscar/core.pyx", line 526, in xoscar.core._BaseActor.__on_receive__
    result = await result
  File "/home/gavin/miniconda3/envs/xinf_cp310/lib/python3.10/site-packages/xinference/core/supervisor.py", line 990, in launch_builtin_model
    await _launch_model()
  File "/home/gavin/miniconda3/envs/xinf_cp310/lib/python3.10/site-packages/xinference/core/supervisor.py", line 954, in _launch_model
    await _launch_one_model(rep_model_uid)
  File "/home/gavin/miniconda3/envs/xinf_cp310/lib/python3.10/site-packages/xinference/core/supervisor.py", line 933, in _launch_one_model
    await worker_ref.launch_builtin_model(
  File "xoscar/core.pyx", line 284, in __pyx_actor_method_wrapper
    async with lock:
  File "xoscar/core.pyx", line 287, in xoscar.core.__pyx_actor_method_wrapper
    result = await result
  File "/home/gavin/miniconda3/envs/xinf_cp310/lib/python3.10/site-packages/xinference/core/utils.py", line 45, in wrapped
    ret = await func(*args, **kwargs)
  File "/home/gavin/miniconda3/envs/xinf_cp310/lib/python3.10/site-packages/xinference/core/worker.py", line 848, in launch_builtin_model
    await model_ref.load()
  File "/home/gavin/miniconda3/envs/xinf_cp310/lib/python3.10/site-packages/xoscar/backends/context.py", line 231, in send
    return self._process_result_message(result)
  File "/home/gavin/miniconda3/envs/xinf_cp310/lib/python3.10/site-packages/xoscar/backends/context.py", line 102, in _process_result_message
    raise message.as_instanceof_cause()
  File "/home/gavin/miniconda3/envs/xinf_cp310/lib/python3.10/site-packages/xoscar/backends/pool.py", line 656, in send
    result = await self._run_coro(message.message_id, coro)
  File "/home/gavin/miniconda3/envs/xinf_cp310/lib/python3.10/site-packages/xoscar/backends/pool.py", line 367, in _run_coro
    return await coro
  File "/home/gavin/miniconda3/envs/xinf_cp310/lib/python3.10/site-packages/xoscar/api.py", line 384, in __on_receive__
    return await super().__on_receive__(message)  # type: ignore
  File "xoscar/core.pyx", line 558, in __on_receive__
    raise ex
  File "xoscar/core.pyx", line 520, in xoscar.core._BaseActor.__on_receive__
    async with self._lock:
  File "xoscar/core.pyx", line 521, in xoscar.core._BaseActor.__on_receive__
    with debug_async_timeout('actor_lock_timeout',
  File "xoscar/core.pyx", line 526, in xoscar.core._BaseActor.__on_receive__
    result = await result
  File "/home/gavin/miniconda3/envs/xinf_cp310/lib/python3.10/site-packages/xinference/core/model.py", line 295, in load
    self._model.load()
  File "/home/gavin/miniconda3/envs/xinf_cp310/lib/python3.10/site-packages/xinference/model/embedding/core.py", line 154, in load
    "gte-Qwen2" in self._model_spec.model_id
TypeError: [address=<IP_ADDRESS>:37339, pid=86038] argument of type 'NoneType' is not iterable

Expected behavior
Restore Normal Inference Capability

This is a known issue, we will fix it ASAP.


fix(simple-pagination): de-activate nav buttons at first and last page

Closes #866
Summary
De-activates the navigate-left button on page 1 and the navigate-right button on the last page.
Change List (commits, features, bugs, etc)
src/components/SimplePagination/SimplePagination.jsx
src/components/SimplePagination/_simple-pagination.scss
Acceptance Test (how to verify the PR)
On the SimplePagination component from page one try to navigate farther left, and on the last page try to navigate farther right. The respective button should be de-activated.

Hi @JoelArmendariz. Can we match the styles we see in the stories with the regular pagination? https://deploy-preview-910--carbon-addons-iot-react.netlify.com/?path=/story/watson-iot-table--stateful-example-with-expansion

@davidicus thanks for pointing out the different styles. I have updated the SimplePagination component to mirror those from Pagination.

:tada: This PR is included in version 2.46.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Documentation: Document the Ignite CLI in a separate doc

We really need a doc (maybe ./docs/Ignite-CLI.md) where we document all commands and link to specific other pages as needed (like the page for Generators).

:tada: This issue has been resolved in version 8.3.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Onboard Advanced Process Analyzer to Axon Ivy market

Hi,
Team Everest has just created a market-product that I'd like to publish into the official axonivy-market.
Can you fork it and review my cool product?
https://github.com/axonivy-professional-services/market-process-analyzer/
Here you can find some image proposals from @andreasbalsiger which could be used for the product on public market website: APA-Images.zip

⚠ do not remove this section, but leave it to track the reviewer's work.
Review Tasks
Product Domain

[x] product successfully installs into the Axon Ivy Designer
[x] product parts are marked as Connector or Demo
[x] the product projects contains documentation to explain the functionality or use-case:
e.g. Process-Notes, Input-Parameter descriptions, Meta-Comments on variables.yaml definitions ...

First Pull request: Technical Solution
Coherent

[x] Common group-id for all artifacts <groupId>[org.arcme|com.axonivy].[util|connector].[product-name]<groupId>
[x] Common artifact-id prefix: <artifactId>msgraph[-product|test|demo]</artifactId>
[x] Html-Dalogs depend on suggested 'frame' template
[x] Github actions + maven-build runs as outlined in market-product template

Maintainable

[x] Dependent third-party infrastructure (e.g. Database, MavenRepos) is available: public accessible instance or shared as code (e.g. Docker, docker-compose)
[x] Tests are implemented that verify, that the product actually runs
[x] Additional libraries (e.g. Maven dependencies) are lightweight: not duplicating libaries of the Axon.ivy Classpath Container.
[x] Depends on standard Axon Ivy features and does not light-heartedly re-introduce forks of existing solutions (e.g. Job-Framework). Our goal is to integrate also third-parties into existing: Enginge-Cockpit-View, Log-Channels, Monitoring features, ...
[x] Uses latest ivy-environment: e.g. process-files and used project-build-plugin match the ivyProject version.
[x] Product is re-usable without the need to unpack and customize it for standard use-cases: crucial settings can be overriden with well documented config/variables.yaml

Second Pull request: Description

[ ] the product readme fits into the market landscape (Andreas Balsinger)
[x] all mandatory setup steps to run the Demo are documented in the setup section of the [myProduct]/product/Readme.md .

Hi @andreasbalsiger ! If you are happy with the name of this product (Process Analyzer) we could close this ticket.
My 5 cents: This utility is rather an "EndTimeEstimator" (asking chatGPT for variations: FinishPredictor, EstimateEndTime, CompletionForecaster).
Process Analyser is very similiar to "ProcessMining" - which is not a happy comparison.
@ivy-tru @andreasbalsiger What is your opinion?

@ivy-sgi My initial name was "Workflow Estimator"

So let's go with Workflow Estimator? @ivy-tru

We had a meeting in the early development phase to decide about the name and result was "Advanced Process Analyzer". I'm not a marketing guy, I just see the effort to change names back and forth (documentation, namespaces, artifact names, ...).
In my opinion it's quite late to change the name. I vote for keeping the current name and closing the ticket.

Hi Timo! We (Team Octopus) did that for other connectors already, so time should not be the argument. Just let's find the best name. "Advanced Process Analyzer" is too long as the implementation for the market place homepage currently only allows names with 24 chars or less - Advances Process Analyser has 25 :(
I am still a fan of "Workflow Estimator" because it best describes what the connector actually does.

Hi @ivy-sgi
Okay, I also like the name. In case we rename, it would be great to rename before the knowledge transfer meeting - which is on Thursday. Because we should use the final name for our presentation. People may be confused, when we rename afterwards.


gui available and total balance

in gui
there is no difference between useable balance and total balance
coins immature (from POS/Masternoder) are added to total and available

expected behavior:
available should be total - pending - immature

FIXED: commit
https://github.com/LIMXTEC/DMDv3/commit/af0e7664181c865b9393cbcaab4aef44e5b476d4

we have user reports that total balance now become false over time
can it be that once POS blocks mature u add it again to total too?
it should be removed from available and then added again on available
but total should not be affected by POS non mature or mature change


[SQL] Add the capability to JIT python code for a Model

Re-use py4j in SparkSession to register callback in SparkSession's  Python interpreter, so that later we can generate JIT code for models in python.

Run pytest python/tests/spark/test_code_gen.py -s
to demonstrate the round trips between JVM and python

The py4j callback server is daemonized now. SparkSession can exit normally

Yes this PR establishes a communication from Spark's JVM (Spark SQL parser) to PySpark python interpreter.


Organize the default quadrature rule order

Adds the ability to control the quadrature rule order from the configuration file, using config["Solver"]["QuadratureOrderJacobian"] and config["Solver"]["QuadratureOrderExtra"].
TODO

[x] If we can justify that for typical meshes the error due to approximate quadrature using order 2p instead of 2p + order(|J|) is small relative to the interpolation error, let's make that the default.

Based on the regression tests in examples/, the accuracy change from swapping the default quadrature rule (particularly relevant for spheres, rings, coaxial, and cavity), is not bad and I'm in favor of making the default rule exactly integrate polynomials of 2*p instead of 2*p+order(|J|), since this will deliver suitable accuracy for users expectations on the typical meshes used.

For quick reference, a few results on the effects of quadrature order on accuracy:

https://hal.science/hal-00403791/document
http://paulino.princeton.edu/journal_papers/2014/MMMAS_14_AddressingIntegrationError.pdf


Set up parallelised rupture building

So we can run multiple build jobs concurrently
NB this technique will be used again for GrandInversions and for RuptureSetDiagsReporting
https://mpi4py.readthedocs.io/en/stable/tutorial.html#running-python-scripts-with-mpi

[ ] deploy and test on beavan cluster
[ ] update beavan scripts to use new JDK and gradle configs

see parent task #114