Problem with Amazon auth

I have an Problem, I installed your git reposetory succesfuel.
And the Website are online. But the error Comes on push the Login butten:
The redirect URI you provided has not been whitelisted for your application. Please add your redirect URI in the 'Allowed Return URLs' section under 'Web Settings' for your Security Profile on Amazon Developer Portal. Request Details client_id=amzn1.application-oa2-client.696ab90fc5844fdbb8efc17394a79c00 scope=alexa%3Aall scope_data=%7B%22alexa%3Aall%22%3A%7B%22productID%22%3A%22test_device%22%2C%22productInstanceAttributes%22%3A%7B%22deviceSerialNumber%22%3A123%7D%7D%7D response_type=token redirect_uri=https://server1.verifybot.de:9745/authresponse
But i have set the right Redirect URL.  Show the pictue. https://i.gyazo.com/dfca95094b9c3c4c8e0cb3df0293dcd4.png
Pleas help me.

Hi @VerHext,
I see that your didn't update the clientId to your own in the example. The current client ID you have is the one I created for the example which of course doesn't have your domain whitelisted which is why you're getting the error. To fix please update the clientId to your own and rebuild (instructions in example/ README.md)
Here's where you find the Client ID


💚 Rollback node CI image

See https://github.com/webpack/webpack/issues/14532
Default circle/node image went to v17 and broke webpack, rolling back to 16.13

Latest Next.js version still uses webpack 4?

looks like they use webpack 5.60 and it was fixed in 5.61

Well actually there's a new version of nextjs, 12.0.2 from 4 days ago with webpack 5.61. I'll make another PR

doesn't work https://app.circleci.com/pipelines/github/Zenika/skillZ/468/workflows/7be13a4e-13b9-4705-b35d-600bf2aea782/jobs/2557 😅


Problem setting up hoverfly behind AWS ELB

Hi,
I have put hoverfly on an AWS EC2 instance as proxy server in modify mode, and it would work if my toy app directly use its 8500 port. To make future life easier, I tried to put an AWS load balancer (ELB) in front of it, and I tried to open ELB port 8500 and forward to hoverfly 8500 port. When I tried to use the ELB url as the proxy host, it does not work by saying something like "unsupported proxy protocol ...."
I first found out that proxy protocol is not open on ELB by default, so I followed the instruction from AWS about enabling the proxy protocol to enable it on the ELB, and I can verify using describe ELB aws command that the it is installed and backend distribution to http port 8500 is set up as well (basically all steps has been down and I can see proxy protocol in ELB detail description), so the setup is
`ELB listener: HTTP port 8500, distribute to HTTP port 8500 of hoverfly.'
Then I tried it again, but get error message below
"I/O error on GET request for \"https://gturnquist-quoters.cfapps.io/api/random\": Unable to tunnel through proxy. Proxy returns \"HTTP/1.1 400 BAD_REQUEST\"; nested exception is java.io.IOException: Unable to tunnel through proxy. Proxy returns \"HTTP/1.1 400 BAD_REQUEST\""
I kind of suspect that it is an ELB issue, but since it is such a generic setup, I wonder whether someone has tried the same kind of setup (AWS ELB in front of hoverfly). I would really appreciate if someone can point out what is wrong...

@yougusnc I may be wrong but I would imagine that the ELB is working as a reverse not a forward proxy like Hoverfly. The other issue could be to do with the http connect method, which forward proxies use for SSL. It's likely this isn't supported by the ELB. This is probably beyond the scope of Hoverfly, but we do have a cloud version which is in private beta. Would this be something you'd be interested in trying?

@mogronalol Andrew, you could be right but then how would hoverfly work behind an AWS ELB then? The down side of not having ELB in front of it is obvious, if the AWS task was restarted, it could have a new ip / host url, then all projects that uses this stand-alone instance as proxy has to change config files...
Most 3rd party / clients we work with are financial institutes, all traffic with them is strictly HTTPS, and I was trying to see whether I can use a stand-alone hoverfly instance as a stepping stone between our own services and the 3rd party services. For the private beta you mentioned, I am interested from the pure tech point of view, but it is unlikely that we can get approval from those 3rd parties and auditors to go through an outside server proxy with their QA / UAT credentials.
I now has some limited user experience with my user case, maybe I can propose something for more consideration: Maybe enable the capture mode and modify mode even for hoverfly running as a web server.
1.) Running as a web server, ELB issue is resolved.
2.) Running as a web server, for HTTPS traffic, I don't have to import a ca.pem (even if it is generated by our own hoverfly instance) into the keystore (for java) or some other mechanism of PHP / node js, etc. This step itself would have a lot of resistance from the devOp team because it means one more secrete for them and one more if / then in their server building scripts for various environments.
3). The interface could be something like https://my.hoverfly.server/proxy?endpoint=encoded_original_destination_url and it just pass all http method / headers / body / other parameters, etc to the original url and pass back the result, basically doing a proxy without the proxy protocol... not sure whether it would have any side-effect.
4). For a strictly regulated industry, maybe a premium edition with premium features as hosted solution would have an easier chance to get in when compared with a cloud edition.
5). Doing it this way it is a cleaner configuration in the application too, it's just an end-point url configuration change instead of changing things like java proxy start up flag that would affects all traffic or doing code change to those specific endpoints.
Just some thoughts from my limited experience.

@yougusnc Thanks for the useful feedback.
Although the private beta is a public SaaS (Which is https only), we are also aiming to provide dedicated instances (these would run within a customer's AWS VPC or Google Cloud Private Network). We then plan on having another step up above that which would be on-premise installations in a users data centre. This would abstract away a lot of the operational complexity involved in load balancing forward proxies which support SSH, which is actually quite tricky for the above-mentioned reasons. We're happy to talk more about this if it raises any interest at your end.
My suggestion would be the same as yours, which would be to run Hoverfly in web server mode, so it would act as a reverse proxy rather than forward. Of course on our side forward and reverse should have feature parity which right now they don't (But they will). Until that happens you won't be able to capture as you have mentioned. Ideally, we want the only trade-off to be a proxy configuration vs a url change.
I don't see a workaround for certificates, you would always want to have it use your own CA, otherwise people could MITM attack each other - unless I missed something?
Finally, the only other option is to go down a network layer and use a TCP load balancer, which could also work as it doesn't know about http. I think you can do this with ELB?

For TCP proxy on ELB, I tried that too but got the same error back... I'll try to play with that again just in case something was not set correctly.
If it is a web server, there is no need for work around for the certificate. Because for the app that uses it, https://my.hoverfly.server/proxy?endpoint=encoded_original_destination_url , is THE end point of that service. I just need to get a domain name of my.hoverfly.server setup, and get a proper SSL certificate for it from AWS or other CA vendor, I don't need a CA to sign and say this is from "https://my.3rdparty.com". This is a man-in-the-middle server that I told my server to trust because it is our own server but it does not need to claim it as a different server. I don't think it can be done for a proxy protocol server, given the modify / syth mode.

Okay, I understand. Yes, that does make sense - as your web server certificate can be signed by a trusted CA. I like the URL approach, but there's a risk it could clash with the real request query. So the other option could be a custom X-Hoverfly-Forward-To-Host or similar?
Let me know how you get on with this, we are always interested feedback.

It's not just AWS, I think you will find that a lot of load balancers don't support CONNECT method. It's unfortunate but there's nothing really we can do at our end, other than suggest using our SaaS which will be released shortly, or run it in web server once we have implemented the ability for it to capture traffic in that mode as well as simulate. I will close this issue now as the problem is not Hoverfly.


Updating Spring Boot version 3.2.3 #86

Updating Spring Boot version 3.2.3

closing. parent has more updated version.


Why I can't improt SDWebImage in Swift files?

Why I can't improt SDWebImage in Swift files?

Check your objective-c bridge header and add #import <SDWebImage/SDWebImage.h> into this file.
If you do not have this header file, try to Add File->Objective-C files, Xcode will pop up and ask you to create one.


"Proximity Alert" feature service was previously released; should be this year?

Item 478cbdd6f965408f9094ec5b33f0114d was released in 2015 Q4 and owned by DemoMilitary. Currently, item is owned by @jfrygeo. If this item needs to be included in current release the it needs to go through release process (limited process if still going to be owned by a demo account).
@lfunkhouser FYI.

@elinz  Yes. it should be released. I am currently fixing an issue I came across at the DIS 2016. Once fixed I will push for release @lfunkhouser

@elinz item shared to demo review group.

Item was released; now owned by DemoMilitary. Closing issue.


Opt: Remove useless *Ident indirections in the IR model.

The position of labels is always irrelevant, as they are synthetic.

I assume you have considered SJS IR as a target of languages that have non-synthetic label (e.g. Java).

Yes. Even then, there is little use for a position on the label. It doesn't hold a value, so things like hovering over the code and other position-related operations won't have anything to show anyway.


NHS Admin Crash

Steps to reproduce:

Go to Declaration
Reload this page

Bug on old PaginationComponent and will be fixed after migration admin repo to web repo

it is still crashing on preprod


because they are in different while loops

 python train.py --model='WaveNet'
got error in this line：
ValueError: Cannot use 'WaveNet_model/inference_1/while/input_convolution/input_convolution/input_convolution/MatMul' as input to 'WaveNet_model/inference/while/input_convolution/Reshape' because they are in different while loops. See info log for more details.

@crystal0913  I met this error before when I tried to train WaveNet with multi GPU. As long as I used only one GPU, I can start training successfully. Hope this information can help you :)


Make invoice statuses consistent(by {user_role}), update finance 1 to finance, and payment failed status

Fixes #3567

Finance1 is the username above not the status. Also, some of the statuses are old that's why there are caps inconsistency, it will not happen with a new invoice.

@frjo It is also ready for testing.

@sandeepsajan0 Yes, some merge conflicts so a rebase would be good, thanks!

My feedback/observations:

After the applicant adds the invoice and Staff approves it, there's two statuses
Approved by Staff (Abhishek Staff) Sept. 21, 2023, 12:44
Approved an invoice (Abhishek Staff) Sept. 21, 2023, 12:44
we should have only one Approved by Staff (Abhishek Staff) this one is fine

Vendor name is missing

I requested for more info/changes as finance. then edited and resubmitted as staff (as in the image). but the invoice isn't moving back to finance so the finance doesn't see it on their dashboard while the status shows Resubmitted

@sandeepsajan0 Please create a new PR, got some conflicts trying to merge it in to test.


Consider exposing mr_changes

I would be interested to access DangerfileGitLabPlugin#mr_changes directly.
I wrongly assumed it was exposed already here: https://gitlab.com/gitlab-org/gitlab-dangerfiles/-/blob/8802a22a5e18cc13abe5e2ee39377a1eb0f1597f/lib/danger/plugins/helper.rb#L419 but it's not.
I'll open a MR for that unless there's strong opinions against it.

Seems reasonable to me 👍🏻

Cool, I've opened https://github.com/danger/danger/pull/1309 for this. 🙏

shipped


Fixing the issue in the Micro Improvements Program scripts

Develop the automation script for vanity metrics, tabs and dropdowns
The new development is required for visualization app
QA Team will develop the requirement

completed


Remove local cluster when --add-local set to false.

What kind of request is this (question/bug/enhancement/feature request):
There is an option for adding the local cluster or not. Unless this is set on initial install, you can not remove the local cluster from an HA Rancher install.

Or ability to remove the "local" cluster from the GUI.  Right now there is no "Delete" option in the cluster ellipsis menu.

https://github.com/rancher/rancher/issues/16521

@jgreat @kinarashah @cloudnautique  Before committing to the fix, we should make sure that removing local cluster won't result in workloads removal on it. So if prior to upgrade user had workloads in the local cluster, then local cluster got disabled, re-enabling it should bring the cluster with the workloads back to the UI

We are going with the fix where local cluster will be removed only when --add-local is passed as false to the rancher server start.

rancher/rancher:master
All test cases detailed in #16523 are passing

Will rancher then create a new cluster? The docs weren't very clear about this, when installing Rancher with helm

The cluster always exists and continues to; the flag just controls whether it is exposed through the Rancher API (and UI) or not.


pt_BR Translations for HTML, PDF and PNG files

Also included a SVG for Editable File.

Thanks for contributing!


Added config for changing root directory

Hey @andriy-baran,
sorry for not merging this for so long time. I missed this PR.
Do you still need this? Could you explaine your usecase, maybe there is some better solution.
meanwhile, I have revieved your changes quickly and seems you didn't test all the commands with the new config option as I found some mistakes.

We have many microservices in our app each of them has separate docs.
Problem we faced is that we should switch between folders to start specific swagger app and a lot of code duplication.
This PR is an attempt to start swagger apps from docs root directory.
As result we have interface like this
$ npm run service1
$ npm run service2
$ npm run service3

@andriy-baran are you ended up using this feature? I am now refactoring swagger-repo and this feature adds lots of unneeded complexity.


Performance issue during first script execution on Azure cloud service

Hi,
I have a big JS script which looks like
function executeScript(param1, param2) {
	// It's about 1000 lines of code here
}

During the first run I compile the script and put FunctionInstance to a cache to be able to reuse it in future:
var engine = new ScriptEngine
{
	EnableExposedClrTypes = true
};
var compiledScript = engine.Compile(new StringScriptSource(script));
compiledScript.Execute();
var executeScriptFunc = (FunctionInstance)engine.GetGlobalValue("executeScript");

cache.Add('SCRIPT_ID', executeScriptFunc);

After that I execute the function like this:
Trace.TraceInformation($"{DateTime.Now:T} => Before");

var result = executeScriptFunc.Call(null, "Some value 1", "Some value 2");

Trace.TraceInformation($"{DateTime.Now:T} => After");

On any local environment, the first run takes about 1.5 sec to start executing the first line of the script. Further runs don't have this lag at all
But if I deploy the same code to Azure cloud service, the first run takes about 5 minutes. It doesn't depend on how powerful Azure cloud service is. It's always about 5 minutes. Second and future runs are immediate.
For second and further runs I use cached FunctionInstance
Don't you guys know why it happens? Where could I look at to fix this?

I have no idea, sorry.  Try setting EnableDebugging = true and see if it makes a difference?


Fix: ASB-576 Submitting For

:tada: This PR is included in version 2.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


listen for file changes instead of calling refresh manually in each c…

…ommand #27
Signed-off-by: Lars Heinemann<EMAIL_ADDRESS>

Regarding the test of the refresh call. I cannot register a spy on the dataVirtProvider. If I try this it simply tells me on execution that it is undefined which means the activate function was never executed.
`

DataVirt Tree Provider Tests
"before all" hook for "should call refresh when adding a new VDB":
TypeError: Cannot read property 'refresh' of undefined
at Function.spy (node_modules/sinon/lib/sinon/spy.js:157:61)
at Sandbox.spy (node_modules/sinon/lib/sinon/sandbox.js:326:35)
at Context. (out/test/extension.test.js:9:3290)
at processImmediate (internal/timers.js:439:21)

base.js:266
2) DataVirt Tree Provider Tests
"after all" hook for "should call refresh when adding a new VDB":
TypeError: Cannot read property 'restore' of undefined
at Context. (out/test/extension.test.js:9:3440)
at processImmediate (internal/timers.js:439:21)
`

That said all my modification tests for commands do not call the direct commands but rather some underlying functions which omits the refresh call to the provider. I think this should be tested in the UI tests instead.

That said all my modification tests for commands do not call the direct commands but rather some underlying functions which omits the refresh call to the provider.

it is possible to add tests that are calling the commands themselves. Both tests makes sense.

I think this should be tested in the UI tests instead.

that's possible too. Can you point to the issue that is covering this use case?

the activate function was never executed.

in VS Code Camel K, there is an Utils method to ensure the extensions is activated before playing test: https://github.com/camel-tooling/vscode-camelk/blob/d6f334afcd0a3b8e1e963800e3028779090ee00f/src/test/suite/Utils.ts#L24-L34


Error: No tasks were provided to run-sequence

Using the example code as such:
elixir(function(mix) {
    mix.livereload();
});

I get:
[14:08:24] Using gulpfile /Volumes/Data/Work/OpenSource/PHP/Laravel/Laravel Sketchpad/sketchpad-demo/support/gulpfile.js
[14:08:24] Starting 'default'...
[14:08:24] 'default' errored after 547 μs
[14:08:24] Error: No tasks were provided to run-sequence
    at verifyTaskSets (/Volumes/Data/Work/OpenSource/PHP/Laravel/Laravel Sketchpad/sketchpad-demo/support/node_modules/laravel-elixir/node_modules/run-sequence/index.js:10:9)
    at runSequence (/Volumes/Data/Work/OpenSource/PHP/Laravel/Laravel Sketchpad/sketchpad-demo/support/node_modules/laravel-elixir/node_modules/run-sequence/index.js:94:2)
    at Gulp.<anonymous> (/Volumes/Data/Work/OpenSource/PHP/Laravel/Laravel Sketchpad/sketchpad-demo/support/node_modules/laravel-elixir/tasks/default.js:18:16)
    at module.exports (/Volumes/Data/Work/OpenSource/PHP/Laravel/Laravel Sketchpad/sketchpad-demo/support/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:34:7)
    at Gulp.Orchestrator._runTask (/Volumes/Data/Work/OpenSource/PHP/Laravel/Laravel Sketchpad/sketchpad-demo/support/node_modules/gulp/node_modules/orchestrator/index.js:273:3)
    at Gulp.Orchestrator._runStep (/Volumes/Data/Work/OpenSource/PHP/Laravel/Laravel Sketchpad/sketchpad-demo/support/node_modules/gulp/node_modules/orchestrator/index.js:214:10)
    at Gulp.Orchestrator.start (/Volumes/Data/Work/OpenSource/PHP/Laravel/Laravel Sketchpad/sketchpad-demo/support/node_modules/gulp/node_modules/orchestrator/index.js:134:8)
    at /usr/local/lib/node_modules/gulp/bin/gulp.js:129:20
    at nextTickCallbackWith0Args (node.js:420:9)
    at process._tickCallback (node.js:349:13)

It's the only elixir task I have.
If I do add another task, it runs, but doesn't appear to watch and wait in the terminal, like a normal gulp.watch() would, so I suspect that somehow the task is not being added to elixir?
I know it's loading as I stuck a gulp-util.log in your index file, and it ran.
I don't use elixir regularly, but I'm trying it out now to add as an alternative to the standard watch (by the way, I got all that sorted in the end; no plugin needed, just gulp-watch and a monkey patch clientside)

I have the same problem.
"gulp": "^3.9.1",
"laravel-elixir": "^5.0.0",
"laravel-elixir-livereload": "^1.1.6"

when i use 'gulp' command , it will report the same errors.
No tasks were provided to run-sequence


Down-level logging in the WasiPreview1

Fix #534

@electrum agreed, let me work a little more on the annotation processors before proposing this change if you don't mind :pray:

Sure, I'm in no hurry to work on this, currently focused on AOT.


Feature automatic migration creation

automatic table name setup by class name lowercase
made import Base metadata to alembic verbose
import User into models

Codecov Report

Merging #3 (b40404a) into master (2ca49e6) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master        #3   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            5         7    +2
  Lines           42        51    +9
  Branches         0         1    +1
=========================================
+ Hits            42        51    +9

Impacted Files
Coverage Δ

db/__init__.py
100.00% <100.00%> (ø)

db/base.py
100.00% <100.00%> (ø)

models/__init__.py
100.00% <100.00%> (ø)

models/users.py
100.00% <100.00%> (ø)

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 cdeffc2...b40404a. Read the comment docs.


Look up conversion rates from blockchain.info for web server display

Allow people outside the US to get local FIAT currency displayed in the web server.
Description
Looks up rates from the blockchain.info ticker and uses them in the botlog.json
Haven't done any of the docs or config for it yet as I wanted to see if it was going to be worth while.
Just set outputCurrency in the default.cfg to one found here : https://blockchain.info/ticker
TESTING STAGE
Still testing, was more submitting PR to gauge interest.
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] I have read CONTRIBUTING.md
[x] I fully understand Github Flow.
[x] My code adheres to the code style of this project.
[ ] I have updated the documentation in /docs if I have changed the config, arguments, logic in how the bot works, or anything that understandably needs a documentation change.
[ ] I have updated the config file accordingly if my change requires a new configuration setting or changes an existing one.
[ ] I have tested the bot with no issues for 24 continuous hours. If issues were experienced, they have been patched and tested again.

Nice idea, wouldn't it be easier to use the https://blockchain.info/tobtc?currency=EUR&value=1 api ?

It's the same info, but if I get the full ticker in one go we don't have to hardcode the available values. Thought it might be better that way in case they add more currencies later to avoid code changes on the bot side.

I would say try the currency, if available use value otherwise not.

Ok, I pushed that fix.

Sorry to bother, but thinking about it, we don't want a dependency on the availability of blockchain API, I would suggest to catch all exceptions from that block.

Np, that's a good point that I didn't think about. I'll look at it later. Codacy has a problem too it seems.

Can ignore the codacy issue, it just an advice. But you should rebase onto lending-rewrite.

How do I continue pushing to this PR if I rebase?

You don't have to, I can merge this into master at the same time I do #174
It would just be recommended as we can have all the changes on one branch.

I more meant how do I actually do that? Don't I need to raise a new PR on the other branch?

Turns out I could do it the whole time. Just found this documentation. https://github.com/blog/2224-change-the-base-branch-of-a-pull-request

Thank you for contributing!


Give Ability to view and select Device ID to be used in API request

Description of your Suggestion
Currently, if Spotify is left on pause for an extended period of time, the device becomes 'inactive'. Once inactive, all controls are unresponsive until you start playback through the Spotify app. This issue can be circumvented by supplying a device ID in the API call.
Ideally, audio band would have an optional field to supply the device ID. This optional field would most likely need to be a drop down and use the Get Available Devices call to display a list of available 'active' devices. If a device ID is selected, API calls should include this ID.
Extra (if applicable)
Reference of workaround

Thank you for the suggestion, I can definitely see the benefit of this.
Though I'll have to see how easy it is to implement, we might have to fork the Spotify lib we use and implement such a functionality ourself so it might take a while, but I'll have a look either way!


Remove error message strings from tests

This fixes one of the TODOs in the acceptance test runner.
We just need to check that the error response contains
a message.  We don't need to check the contents of that error message.
Relevant lines: https://github.com/boto/botocore/pull/725/files#diff-82cf6007372edb07a2f866f77827bbe3R102
cc @kyleknap @mtdowling @rayluo @JordonPhillips

:ship:

:ship:


New JS interop doesn't include prototype fields (Dartium only)

D3.js returns a Selection object when using methods like select().  A Selection object is an Array with additional fields defined on it's prototype
Running this example in Dartium results in an exception (it works in Chrome):
Exception: NoSuchMethodError: method not found: 'append'
Receiver: Instance of 'JsArrayImpl'
Arguments: ["svg"]

It looks like the prototype methods are only available on the JavaScript View:

Thanks for trying out dart-js interop.
The good news is your example is just one line from working correctly in Dartium as well as dart2js.
You just need to specify that Selection implements List and then Dartium will allow you to call the Selection methods of Array objects.
We need to document this requirement.  Generally if you have classes that are Arrays you want to indicate they extend List so that your Dart IDE can show that they have all the List methods etc.
I've changed the milestone to  1.14 as we need to document this behavior more or perhaps relax the constraints so that you aren't required to add the "implements List" in Dartium. It is something that was added in Dartium purely to try to make bugs where someone forgot to add "implements List" easier to catch. However, the downside is we can't easily make this case fail in dart2js.
https://codereview.appspot.com/269670043
show how to fix your example.

Thanks!
Is there a way to suppress analyzer warnings?
dartanalyzer lib/d3.dart
Analyzing [lib/d3.dart]...
[warning] Missing concrete implementation of getter 'List.reversed', 'List.indexOf', 'List.removeRange', 'Iterable.contains' and 48 more (/Users/john/code/projects/d3dart/lib/d3.dart, line 11, col 7)
1 warning found.

There isn't a way to suppress analyzer warnings.
Its annoying and a little strange as the core List method implementations will take priority anyway but you could provide stub external implementations each dart List method to suppress the analyzer warnings.
I'm adding a fix so that writing
@JS()
class Foo extends List {
...
}
is allowed in Dart2Js. That version will work without analyzer warnings.

great, thanks!

/cc @bwilkerson on the warning suppression issue.

Actually... I've thought about this more and the cleanest solution for 1.13 is just to mark the class as abstract which make the Analyzer happy and works great in Dartium and Dart2js today.
The only thing you lose by having the class be abstract is you can't specify a constructor but a constructor makes little sense for an Array subclass in JS.
''
'@JS()
abstract class Foo implements List {
// ...
}'''

Maybe adding the @proxy annotation or implementing noSuchMethod (didn't have a closer look at the code)

abstract class Selection implements List  or noSuchMethod both get the job done.  Thanks!

Ups, somehow missed the comment about abstract.

JS interop classes cannot implement noSuchMethod. Maybe adding @proxy would work. I haven't tried that.

Couldn't we use external factory to avoid warning?
IIUC external factory means anonymous objects regardless @JS has a name specified or not. We could change this behaviour to make external factory Foo(); like external Foo(); if @JS is use with a name.
Thus the above example would be :
@JS('Foo')
abstract class Foo implements List {
  external factory Foo();
}

What do you think?

@a14n that is a good point. Currently I've been using/abusing "external factory" as constructors that desugar to object literals but that is somewhat magical and prevents this use of external factory to avoid spurious Analyzer warnings. Any thoughts on adding a '''@Literal''' annotation to package:js that indicates that a constructor should be implemented by a JavaScript object literal? Then we could just support using "external factory" as the default pattern for general purpose JavaScript constructors.

We could also have another constructor like @JS.literal().

Added
@anonymous
specified at the class level.
Landed for 1.13
On Thu, Oct 29, 2015 at 7:01 AM, Alexandre Ardhuin<EMAIL_ADDRESS>
wrote:

We could also have another constructor like @JS.literal().
—
Reply to this email directly or view it on GitHub
https://github.com/dart-lang/sdk/issues/24737#issuecomment-152189906.


invalid response!

Your issue may already be reported!
Please search on the issue tracker before creating one.
Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

Version used:
Operating System version:

NHentai link (if relevant):

Your issue may already be reported! Please search on the issue tracker before creating one.
Expected Behavior
Current Behavior
Possible Solution
Steps to Reproduce (for bugs)
Context
Your Environment

Version used:

Operating System version:

NHentai link (if relevant):

Clear cookies from settings


add maka.js

Thank you for contributing! Please confirm this pull request meets the following requirements:

[x] I followed the contributing guidelines: https://github.com/github/explore/blob/master/CONTRIBUTING.md
[ ] I have no affiliation with the project I am suggesting (as a maintainer, creator, contractor, or employee).

Which change are you proposing?

[x] Suggesting edits to an existing topic or collection
[ ] Curating a new topic or collection

Editing an existing topic or collection
I'm suggesting these edits to an existing topic or collection:

[ ] Image (and my file is *.png, square, dimensions 288x288)
[x] Content (and my changes are in index.md)

Please replace this line with an explanation of why you think these changes should be made.

Curating a new topic or collection

[ ] I've formatted my changes as a new folder directory, named for the topic or collection as it appears in the URL on GitHub (e.g. https://github.com/topics/[NAME] or https://github.com/collections/[NAME])
[ ] My folder contains a *.png image (if applicable) and index.md
[ ] All required fields in my index.md conform to the Style Guide and API docs: https://github.com/github/explore/tree/master/docs

Please replace this line with an explanation of why you think this topic or collection should be curated.

Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.

Y

Hi @ziaochina  thanks for the contribution ❤. Unfortunately, as per our contribution guidelines, we don't allow self promotion if you are a maintainer of the project:

Unaffiliated with the project (not self-promoting as e.g. a maintainer, creator, contractor or employee)

We do this so that project get curated if there is enough support/activity in the community. Thank you!

IP bawaan: <IP_ADDRESS>
fe80::ea8:a7ff:fe2a:2b06%wlan0
fe80::ca8:a7ff:fe2a:2b06%p2p0


[SPARK-40855] Add CONTRIBUTING.md for apache/spark-docker

What changes were proposed in this pull request?

This PR aims to add CONTRIBUTING.md for apache/spark-docker.
Why are the changes needed?

Better to briefly explain how to contribute DOI.
Does this PR introduce any user-facing change?

No.
How was this patch tested?

@holdenk @dcoliversun Thanks! Merge to master (3.4.0).

Thanks for your review :) @Yikun @holdenk


Inactive when inside UICollectionViewCell

I don't know what may be the cause yet, but what I see is that if I use RoundedButton (Swift)  inside UICollectionViewCell (added to contentView), it doesn't handle any action. If I switch to UIButton the same addTarget:... start working, this is why I suspect there is maybe something missing in this component.
I use RoundedButton in other places and it works just fine ;)
I really can't explain this behavior more at this point, I'm sorry.

Hey @krzyzanowskim!
Hmm. Really? I just tested it in a sample app, and it seems to be working fine for me. You do need to disable delaysContentTouches for the effect to played, but the event still fires.
I wonder if there is some kind of touch responder chain issue you're having. In any case, RoundedButton and UIButton both derive the same tap logic from UIControl, so unless UIButton is doing something extra internally, they should be the same.
I've attached my sample app. Can you have a look at it and see if there's anything different with your collection view set up?
Thanks!
RoundedButtonTest.zip

right. It may be something with the https://github.com/MessageKit/MessageKit I'm dealing with, that is built on top of UICollectionView, and I assumed It's the same. I tried delaysContentTouches there.
But then the fact UIButton worked (I just replaced it in the same place) got me off the hook.


Added debug symbols to release build

Coverage remained the same at 57.795% when pulling ea02fa4a5ca709e57981dc90fceaef6b88f72dce on debug-symbols into 2130d4677947c5bedfe2d021b6da364bc494630b on master.

Just use rustc -C debuginfo=2 when compiling. No need to change Cargo.toml.

I'd prefer to not have to remember that everytime I update my version to the latest master.


Please provide aarch64 64-bit ELF shared library for RPi4

I'm using porcupine via rhasspy on the RPi4 using NixOS.
# uname -a
Linux dione 4.19.118 #1-NixOS SMP Thu Jan 1 00:00:01 UTC 1970 aarch64 GNU/Linux
# lscpu
Architecture:                    aarch64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
CPU(s):                          4
On-line CPU(s) list:             0-3
Thread(s) per core:              1
Core(s) per socket:              4
Socket(s):                       1
NUMA node(s):                    1
Vendor ID:                       ARM
Model:                           3
Model name:                      Cortex-A72
Stepping:                        r0p3
CPU max MHz:                     1500.0000
CPU min MHz:                     600.0000
BogoMIPS:                        108.00
NUMA node0 CPU(s):               0-3
Vulnerability Itlb multihit:     Not affected
Vulnerability L1tf:              Not affected
Vulnerability Mds:               Not affected
Vulnerability Meltdown:          Not affected
Vulnerability Spec store bypass: Vulnerable
Vulnerability Spectre v1:        Mitigation; __user pointer sanitization
Vulnerability Spectre v2:        Vulnerable
Vulnerability Tsx async abort:   Not affected
Flags:                           fp asimd evtstrm crc32 cpuid

Expected behaviour
Porcupine should work on the RPi4 since v1.7.0.
Actual behaviour
The dynlib for the Cortex A72 was built for 32-bit ARM, not aarch64.
# file /lib/raspberry-pi/cortex-a72/libpv_porcupine.so
/lib/raspberry-pi/cortex-a72/libpv_porcupine.so: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), statically linked, BuildID[sha1]=033a8c14484a7721728d5f68d966058159cc4e78, not stripped

OSError: [...]/lib/python3.8/site-packages/rhasspywake_porcupine_hermes/porcupine/lib/raspberry-pi/cortex-a72/libpv_porcupine.so: wrong ELF class: ELFCLASS32

Steps to reproduce the behaviour
Try porcupine on the RPi4 using a 64-Bit Linux distribution. I tried it on NixOS, but that's a tough ask I guess.

We support the official Raspbian OS on RPI4 at the moment. For commercial inquiries we do new platform support from time-to-time. but unfortunately this wont fall into that category.

this should be fixed now

I got this same error message when I tryed to use porcupine via Rhasspy docker (latest - 2.5.10) on Raspbery Pi 4 with Raspibian Buster OS. It is the same problem or maybe docker cause this? Is there any information can I provide to clarify this problem? I'm happy to help whatever I can. At this moment I'm using Snowboy and it works weel.
[DEBUG:2021-04-24 23:51:56,005] rhasspywake_porcupine_hermes: Namespace(debug=True, host='localhost', keyword=['alexa_raspberry-pi.ppn'], keyword_dir=['/profiles/pt/porcupine'], lang=None, library=None, log_format='[%(levelname)s:%(asc
time)s] %(name)s: %(message)s', model=None, password=None, port=12183, sensitivity=['0.5'], site_id=['default'], stdin_audio=False, tls=False, tls_ca_certs=None, tls_cert_reqs='CERT_REQUIRED', tls_certfile=None, tls_ciphers=None, tls_k
eyfile=None, tls_version=None, udp_audio=None, username=None, wakeword_id=None)
[DEBUG:2021-04-24 23:51:56,006] rhasspywake_porcupine_hermes: Keyword dirs: [PosixPath('/profiles/pt/porcupine'), PosixPath('/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/pvporcupine/resources/keyword_files/raspberry-pi')]
[DEBUG:2021-04-24 23:51:56,007] rhasspywake_porcupine_hermes: Loading porcupine (kw=['/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/pvporcupine/resources/keyword_files/raspberry-pi/alexa_raspberry-pi.ppn'], kwdirs=['/profiles/pt/p
orcupine', '/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/pvporcupine/resources/keyword_files/raspberry-pi'], sensitivity=[0.5])
Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/rhasspy/rhasspy-wake-porcupine-hermes/rhasspywake_porcupine_hermes/__main__.py", line 260, in <module>
    main()
  File "/usr/lib/rhasspy/rhasspy-wake-porcupine-hermes/rhasspywake_porcupine_hermes/__main__.py", line 127, in main
    keyword_paths=[str(kw) for kw in args.keyword], sensitivities=sensitivities
  File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/pvporcupine/__init__.py", line 68, in create
    sensitivities=sensitivities)
  File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/pvporcupine/porcupine.py", line 60, in __init__
    library = cdll.LoadLibrary(library_path)
  File "/usr/lib/python3.7/ctypes/__init__.py", line 434, in LoadLibrary
    return self._dlltype(name)
  File "/usr/lib/python3.7/ctypes/__init__.py", line 356, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /usr/lib/rhasspy/.venv/lib/python3.7/site-packages/pvporcupine/lib/raspberry-pi/cortex-a72-aarch64/libpv_porcupine.so: wrong ELF class: ELFCLASS64
2021-04-24 23:51:56,076 INFO exited: wake_word (exit status 1; not expected)
2021-04-24 23:51:57,078 INFO gave up: wake_word entered FATAL state, too many start retries too quickly

Hey guys, I changed the library from cortex-a72-aarch64 to cortex-a72 and porcupine worked normally. It's interesting because my architecture is aarch64 as you can see below. Is it correctly? Anyway, now it's works.
pi@Pi4:~ $ uname -a
Linux Pi4 5.10.17-v8+ #1403 SMP PREEMPT Mon Feb 22 11:37:54 GMT 2021 aarch64 GNU/Linux

I got this same error message when I tryed to use porcupine via Rhasspy docker (latest - 2.5.10) on Raspbery Pi 4 with Raspibian Buster OS. It is the same problem or maybe docker cause this? Is there any information can I provide to clarify this problem? I'm happy to help whatever I can. At this moment I'm using Snowboy and it works weel.
[DEBUG:2021-04-24 23:51:56,005] rhasspywake_porcupine_hermes: Namespace(debug=True, host='localhost', keyword=['alexa_raspberry-pi.ppn'], keyword_dir=['/profiles/pt/porcupine'], lang=None, library=None, log_format='[%(levelname)s:%(asc
time)s] %(name)s: %(message)s', model=None, password=None, port=12183, sensitivity=['0.5'], site_id=['default'], stdin_audio=False, tls=False, tls_ca_certs=None, tls_cert_reqs='CERT_REQUIRED', tls_certfile=None, tls_ciphers=None, tls_k
eyfile=None, tls_version=None, udp_audio=None, username=None, wakeword_id=None)
[DEBUG:2021-04-24 23:51:56,006] rhasspywake_porcupine_hermes: Keyword dirs: [PosixPath('/profiles/pt/porcupine'), PosixPath('/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/pvporcupine/resources/keyword_files/raspberry-pi')]
[DEBUG:2021-04-24 23:51:56,007] rhasspywake_porcupine_hermes: Loading porcupine (kw=['/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/pvporcupine/resources/keyword_files/raspberry-pi/alexa_raspberry-pi.ppn'], kwdirs=['/profiles/pt/p
orcupine', '/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/pvporcupine/resources/keyword_files/raspberry-pi'], sensitivity=[0.5])
Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/rhasspy/rhasspy-wake-porcupine-hermes/rhasspywake_porcupine_hermes/__main__.py", line 260, in <module>
    main()
  File "/usr/lib/rhasspy/rhasspy-wake-porcupine-hermes/rhasspywake_porcupine_hermes/__main__.py", line 127, in main
    keyword_paths=[str(kw) for kw in args.keyword], sensitivities=sensitivities
  File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/pvporcupine/__init__.py", line 68, in create
    sensitivities=sensitivities)
  File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/pvporcupine/porcupine.py", line 60, in __init__
    library = cdll.LoadLibrary(library_path)
  File "/usr/lib/python3.7/ctypes/__init__.py", line 434, in LoadLibrary
    return self._dlltype(name)
  File "/usr/lib/python3.7/ctypes/__init__.py", line 356, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /usr/lib/rhasspy/.venv/lib/python3.7/site-packages/pvporcupine/lib/raspberry-pi/cortex-a72-aarch64/libpv_porcupine.so: wrong ELF class: ELFCLASS64
2021-04-24 23:51:56,076 INFO exited: wake_word (exit status 1; not expected)
2021-04-24 23:51:57,078 INFO gave up: wake_word entered FATAL state, too many start retries too quickly


Consider throwing/warning by default if a migration is used against a different provider than it was generated for

ValueGeneratedOnAdd and UseSqlServerIdentityColumn  do not create an Identity Specification in MSSQL Server. That is to say, Identity Specification will have a value of No on the column. This is following the documentation at https://docs.microsoft.com/en-us/ef/core/modeling/generated-properties.
Oddly enough, when the database already exists but is empty and you create the table(s) with EnsureCreated(), values are inserted and incremented automatically without any issues. HOWEVER, if you create the table(s) with Migrate(), you will received the error:

An error occurred while updating the entries. See the inner exception for details. Cannot insert the value NULL into column 'xId', table 'db.dbo.tablename'; column does not allow nulls. INSERT fails.
The statement has been terminated.

The value of xId is not NULL. It is set with:
x.Id = default;

which is a value of 0 and works just fine if the tables were created with EnsureCreated().
Both EnsureCreated() and Migrate() will create the column with Identity Specification  with a value of No, but if you used EnsureCreated() to create the table(s), INSERTs will work as expected, auto incrementing.
I would use EnsureCreated() if I could since it still works in inserting automatically incrementing IDs, but it turns out to have a quirk of its own that makes it unusable in certain contexts. EnsureCreated() will not create (or even attempt to create) any table(s) if the database contains one (1) or more existing tables, even if the existing table(s) are not found in the context. i.e. you cannot have any tables at all in your database if you want to call EnsureCreated() on an existing database.
Entity is as simple as:
    ...
    public int Id { get; set; }
    ...

Example of trying every combination on a column:
public void Configure(EntityTypeBuilder<ExampleEntity> builder)
{
	builder
		.HasKey(e => e.Id)
                .HasName("PK_xId"); // <-- Adding this line Identify Specification is `Yes` when tables are created with EnsureCreate(), but `No` when created with Migrate(). If omitted, Identify Specification is always `No`.
	builder
		.Property(e => e.Id)
		.HasColumnName("xId")
		.ValueGeneratedOnAdd()
		.UseSqlServerIdentityColumn()
		.Metadata.AfterSaveBehavior = PropertySaveBehavior.Throw;

		...
}

Migrations script generates with dotnet ef migrations add
migrationBuilder.CreateTable(
	name: "ExampleTable",
	columns: table => new
	{
		xId = table.Column<int>(nullable: false)
			.Annotation("Sqlite:Autoincrement", true)
	},
	constraints: table =>
	{
		table.PrimaryKey("PK_ExampleTable", x => x.xId);
	});

Designer:
modelBuilder.Entity("ExampleTable", b =>
	{
		b.Property<int>("Id")
			.ValueGeneratedOnAdd()
			.HasColumnName("xId")
			.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);

		b.HasKey("Id");

		b.ToTable("ExampleTable");
	});

Note: I've changed the name of my column to xId and table to ExampleTable manually for this post.

@gpresland That migration was scaffolded for SQLite. If you want it to work for SQL Server, then it needs to be scaffolded for SQL Server,

Thanks @ajcvickers.
For anyone that runs into this in the future, my context supported both SQLite and MSSQL, but used SQLite if you instantiated a new context without passing anything into the constructor. I didn't think enough to notice that that would affect the migration script generation. This has been resolved by reworking the context script.

Reopening to consider making this more obvious. The idea is that usually if a migration for one provider is run against another provider this is a mistake. Of course, it might not be, because a common set of migrations for use with multiple providers (often with small amounts of conditional code) is entirely valid and a good approach for targeting multiple providers. So there needs to be an easy way to opt out of the warning/error.

As an example, in some situations I want to use the same context (if possible) but be able to choose between local (SQLite) and remote (MSSQL). Local perhaps for testing, running the application as standalone or portable, etc. and remote for full install deployment.


Fix build on MacOS sierra.

Using the suggested fix to silence, but there might be a cleaner way to fix.
/Volumes/BuildData/tmpfs/src/github/grpc/workspace_objc_macos_dbg_native/src/core/lib/iomgr/sockaddr_utils.cc:176:54: error: variable 'port' may be uninitialized when used here [-Werror,-Wconditional-uninitialized]
      ret = gpr_join_host_port(out, host_with_scope, port);
                                                     ^~~~
/Volumes/BuildData/tmpfs/src/github/grpc/workspace_objc_macos_dbg_native/src/core/lib/iomgr/sockaddr_utils.cc:151:11: note: initialize the variable 'port' to silence this warning
  int port;
          ^
           = 0

(context: this is blocking Kokoro team from upgrading the MacOS workers).

****************************************************************

libgrpc.so

     VM SIZE              FILE SIZE
 ++++++++++++++ GROWIN ++++++++++++++
  [ = ]       0 [None]     +80  +0.0%

  [ = ]       0 TOTAL      +80  +0.0%

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[trickle] No significant performance differences

[microbenchmarks] No significant performance differences

Known failures:
https://github.com/grpc/grpc/issues/13122
https://github.com/grpc/grpc/issues/13446
https://github.com/grpc/grpc/issues/13426


How to get losses and predictions out of a YOLO-NAS model with different classes?

💡 Your Question
I am looking to create a YOLO-NAS model with fewer classes than the pretrained models.
ObjectDetection.md references using the YoloPostPredictionCallback in DetectionMetrics, however there is not that much information on how to use this.
Some of the documentation says that this can be used in the below method:
model0 = models.get(model_name="yolo_nas_s", pretrained_weights="coco")
model0.replace_head(new_num_classes=4)
YoloPostPredictionCallback(conf=0.001, iou=0.6, classes=4)(model(input))

However, this returns an error, and seems as if it would not provide loss values.
--> 249     candidates_above_thres = prediction[..., 4] > conf_thres  # filter by confidence
    250     output = [None] * prediction.shape[0]
    252     for image_idx, pred in enumerate(prediction):

IndexError: index 4 is out of bounds for dimension 1 with size 4

prediction in this case is the first element of the raw output of the model, which has size torch.Size([1, 9072, 4])
As the last dimension in this output is the same as the number of classes, prediction[..., 4] > conf_thres seems like it would not work for fewer classes than 5.
Are there any examples demonstrating how to fold in nms and loss into a YOLO-NAS model with a replaced head?
Versions
No response

For YoloNAS you want to use PPYoloEPostPredictionCallback or (better) call model0.get_post_prediction_callback(conf, iou) to get the right type of post-prediction callback

@xtquinn, did you work it out. I was wondering the same?


Cascading with multi select

Hello All,
i want to apply multiselect cascading on drop down.
  [LookupEditor(typeof(CountryRow), Multiple = true)]         public string CNT { get; set; }    [LookupEditor(typeof(StateRow), Multiple = true, CascadeFrom = "CNT", CascadeField = "CCode")]         public string STAT { get; set; }
but it's not working for multiple selection it works for single selection.
I want to select multiple country and on that selection populate states.
Please help me how i can achieve cascading with multiple selection.
Thanks.

can anybody help on this??

Cascade doesn't support multiple.


Code format with "black"

Performed on bp_tracker.py, but not tests. Merged into main.

Need to rerun, each branch, before commit.
Need to run on tests, as well.


Try getting a bootstrapped version of the closet demo working

Eric and I set up an ec2 instance that will represent our office. I'm setting it up to be able to Oauth dance with Manifold when Manifold tries to authenticate using that engine. Then I am going to get the temperature probes reporting to their picos and have that data display in Manifold. Creating new issues for the latter.

The Ec2 instance doesn't exist anymore, and we need to redefine our goals for the summer.


Change transactions exchange rate

Live exchange rate is used in old payments, changing the FIAT value received at that moment
Ledger Live Version

Ledger Live 2.15.0

Part of the application to improve
Use historical price information for old transactions.
PS. Great app, thanks a lot.

Good point.
We will plan this as part of loading older data from our countervalues history.

I believe this is now fixed. Could you confirm? Thanks


Improve @Export to support Variant and GArray types.

If you try to @Export a GArray or a Variant you get this error:
GArray
if let res: GArray = args [0].asObject () {

instance method 'asObject' requires that 'GArray' conform to 'GodotObject'

In this case we'd want GArray(args[0])
Variant
if let res: Variant = args [0].asObject () {

instance method 'asObject' requires that 'Variant' conform to 'GodotObject'

In this case we could just have if let res = args.first (IMO we should be using args.first any place we use args[0])

Fascinating, in both cases, those are the incorrect casts.
There is no need of the asObject in the Variant case, and for the GArray case we need to call GArray (args[0]) instead.


Constant errors by reproducing pcmb_kang

Dear authors,
As part of the Bpexa project of the Bioinformatics Faculty at Hogeschool Leiden, where students collaborate with various organizations and companies to gain their first experience in the field, we have been assigned the task of replicating Figure 2 from your paper, "Biologically informed deep learning to query gene programs in single-cell atlases", which, as we understand, is represented in the pmbc_kang directory.
The task was given to us by Ioannis Moustakas and Leon Mei. However, while attempting to run the code, we encountered numerous issues, primarily related to constant errors thrown by the scripts, mostly when using the scArches module. We are stuck at the notebook script model_training_for_figures_2_3.ipynb.
It seems that either certain functions are being called incorrectly, or scArches methods are receiving extra attributes that do not exist in its code. This raises the question: Are we using the correct version of scArches? At this point, it seems the code is not easily replicable.

Hello, @Luneesh
in the readme file we reference the branch that is used for scripts and notebooks here
it is https://github.com/theislab/scarches/tree/soft_new_mask

To use the latest API, you can also check https://github.com/theislab/scarches/blob/master/notebooks/expimap_surgery_pipeline_basic.ipynb
This uses the same data as in model_training_for_figures_2_3.ipynb

Hello, @Luneesh in the readme file we reference the branch that is used for scripts and notebooks here it is https://github.com/theislab/scarches/tree/soft_new_mask

Hello, thank you for your response. I tried this option earlier today, but it led to a couple of errors due to more modern libraries — currently, the problem is with SciPy. Version 0.14.1 no longer supports the itemfreq function.
Most likely, I’ll need to experiment with versions, because after rolling back to 0.14.0, my PC somehow ignores or incorrectly installs scarches itself — but it might be an issue on my end.
Still, I’ll try your suggestion regarding the more modern API.  Аnyway thanks for the help

soft_new_mask.txt
This is my old environment that can run the old branch (soft_new_mask), a lot of irrelevant stuff there, but maybe might help with some versions.

Thanks again for your help)

Apologies for reopening the issue and for taking up your time. We as a group are very grateful for your response, as it helped us make progress in the project. We were able to generate the necessary kang_pbmc_integrated file. However, when we proceeded to work with the scripts that generate the plots for Figure 2—specifically in the notebook pbmc_kang/figure_2e_supp_figures_2_3.ipynb, we encountered a problem with the scArches package version, realizing that we still need to use an older version.
Thank you for providing the environment file. Unfortunately, when we tried to create the environment, the system got stuck in an infinite loop. From what I understand, the system might be trying to install packages with conflicting versions, leading to this issue.
Could you please assist us with this problem? I'll also try to manually install the necessary packages, but I'm unsure if that will solve the issue.
Thank you again for your help!

Hi, in the tutorial i referenced it is shown to use latent_directions, latent_enrich and plotting.plot_abs_bfs of the new version. The other parts should be mostly the same.

I don't think the environment file i provided can be used directly, but rather only to the the versions of the dependencies of the old branch of scarches maybe.


Allow rnx bundle config to add custom serialization plugins

Description
Want to be able to specify custom serialization plugins in the rnx bundle config:
  "rnx-kit": {
    "bundle": {
      "entryFile": "src/index.tsx",
      "customSerializationPlugins": [{"path": "<moduleNameOrPathToCustomPlugin>"}],
      "detectCyclicDependencies": true,
      "detectDuplicateDependencies": true,
      "typescriptValidation": true,
      "targets": [
        "android"
      ],
      "treeShake": false,
      "outputBundle": "dist/dev/android/index.bundle",
      "dev": true,
    },

This will add the additional plugins to the list of plugins passed into the serializer.

This PR should include a path to rationalize the two existing plugins - dupes and cyclic dependencies - with this new generic mechanism.
Maybe deprecate both of those config options, with a message that users should name the individual @rnx-kit packages instead, and that the flags will go away in a future version. Include an example in the output - something they can copy/paste.
There might be more we can do here. @tido64 any opinions/ideas after just going through the dep-check to align-deps upgrade?

The current settings allow an easy way to have default plugins, and yet be able to remove them.  The duplication detection and cycle detection plugins are both in the config by default.  If we moved those settings into a generic plugin array, it is not clear how you would easily be able to specify in the config that a plugin should be removed from the list.

This PR should include a path to rationalize the two existing plugins - dupes and cyclic dependencies - with this new generic mechanism.
Maybe deprecate both of those config options, with a message that users should name the individual @rnx-kit packages instead, and that the flags will go away in a future version. Include an example in the output - something they can copy/paste.
There might be more we can do here. @tido64 any opinions/ideas after just going through the dep-check to align-deps upgrade?

The current settings allow an easy way to have default plugins, and yet be able to remove them. The duplication detection and cycle detection plugins are both in the config by default. If we moved those settings into a generic plugin array, it is not clear how you would easily be able to specify in the config that a plugin should be removed from the list.

I'm saying taking away the special status of dupes/cycles, and start with no plugins. If you want them, add them in. They're on by default now, through the config options, so that would be changing, but it would be done in a way that migrates users via a deprecation message followed later by removing support for the dupes/cycles config options (and probably failing if we see them).

This PR should include a path to rationalize the two existing plugins - dupes and cyclic dependencies - with this new generic mechanism.
Maybe deprecate both of those config options, with a message that users should name the individual @rnx-kit packages instead, and that the flags will go away in a future version. Include an example in the output - something they can copy/paste.
There might be more we can do here. @tido64 any opinions/ideas after just going through the dep-check to align-deps upgrade?

The current settings allow an easy way to have default plugins, and yet be able to remove them. The duplication detection and cycle detection plugins are both in the config by default. If we moved those settings into a generic plugin array, it is not clear how you would easily be able to specify in the config that a plugin should be removed from the list.

I'm saying take away the special status of dupes/cycles, and start with no plugins. If you want them, add them in. They're on by default now, through the config options, so that would be changing, but it would be done in a way that migrates users via a deprecation message followed later by removing support for the dupes/cycles config options (and probably failing if we see them).
This can be a TODO for later. As long as there's a plan for collapsing away the special plugins into the general bucket.

I'd be fine with taking away their special status, but if the plugins field is empty, they should be enabled by default as usual. But if we're doing this, what about type validation? It doesn't get installed via the serializer, but via a hook. Should that also be a plugin?

@acoates-ms, @afoxman: I posted an alternative implementation of this. Let me know what you think.

Superseded by #2084


Let's make it easier to deploy new instances!

Thanks for creating an issue! Please fill out this form so we can be sure to have all the information we need, and to minimize back and forth.

What are we trying to do?
Make it easier for new funds to deploy an instance (and consequently less of a burden for an organization to manage)

What feature or behavior is this required for?
Create either a highly specified checklist or turn it into a Heroku button for one click deployment

How could we solve this issue? (Not knowing is okay!)
https://devcenter.heroku.com/articles/heroku-button

Anything else?
 Since our app is 90% env vars this is a good move.

there are four services we use: CSP, Sqreen, Skylight, and GCloud. These we probably can't autogen keys for and will require manual setup. Fortunately everything but gcloud is pretty much optional.

TODO:

why can't @colinmcglynn put new apps in the pipeline but @colinxfleming can?
finish readme updates in SETTING_UP_NEW_INSTANCE.md
go thru BRAAF instance and make sure everything they need is there (first user, etc)

I can finally deploy instances of the app, just took a million support messages to Heroku to fix some unspecified problem

Heroic. Did they ever tell you what the problem was?


does not work with argocd

I tried deploying this helm chart without modifying any values.yaml and it deletes itself. I am not able to differentiate what is different between live and what's in git, but I have determined that configmap, service, and deployment each triggers the issue.

Please complete more relevant information, e.g., coredns or pod's logs or , etc.

Are you applying the helm chart directly with helm on command line, or via the argocd interface/api?

@chrisohaver I'm using app of apps pattern with declarative application in argocd to create coredns via helm chart and it is on a sync loop, deleting the cm, svc, deploy and syncing over and over.
Application yaml after helm template completed
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: operations.coredns.staging
  namespace: argocd
  labels:
    metaLabel: coredns
    app: coredns
    team: operations
    provider: gcp
    project: development
    cluster: playground-west
    region: us-west1
    environment: staging
  annotations:
    argocd.argoproj.io/sync-wave: "10"
  finalizers:
  - resources-finalizer.argocd.argoproj.io
spec:
  project: default
  source:
    helm:
      releaseName: staging
      valueFiles:
      - values.yaml
    repoURL: https://xxxx.com/Operations-argocd-applications.git
    targetRevision: HEAD
    path: applications/operations/coredns/staging
  destination:
    name: playground-west
    namespace: kube-system
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    retry:
      backoff:
        duration: 5s
        factor: 2
        maxDuration: 3m
      limit: 5
    syncOptions:
    - PrunePropagationPolicy=foreground
    - ApplyOutOfSyncOnly=true

coredns chart.yaml (located in applications/operations/coredns/staging)
apiVersion: v2
name: coredns
version: 0.0.1
dependencies:
- name: coredns
  version: 1.16.0
  repository: https://coredns.github.io/helm

coredns values.yaml (does not work with blank/default values either)
coredns:
  autoscaler:
    enabled: true

I have a "I skimmed over the brochure" level knowledge of argocd (i.e. never heard of it before I saw this issue).  So I doubt I can be of much help.  This does seem like an argocd issue though, and not a helm chart issue.
Is it possibly related to this issue? https://github.com/argoproj/argo-cd/issues/4614

I don't think so @chrisohaver . I have a feeling it is either due to labels, or some of the fields get reordered or mutates such that it is not matching the manifest after helm templating, but I am unable to discern myself what is different.

Ah.  I see you had already asked for help on the argo-cd project: argoproj/argo-cd#6754 ... and that kind of got dropped, so you are seeking help here?

Are any of the following the case?

There is a bug in the manifest, where it contains extra/unknown fields from the actual K8s spec. These extra fields would get dropped when querying Kubernetes for the live state, resulting in an OutOfSync status indicating a missing field was detected.
The sync was performed (with pruning disabled), and there are resources which need to be deleted.
A controller or mutating webhook is altering the object after it was submitted to Kubernetes in a manner which contradicts Git.
A Helm chart is using a template function such as randAlphaNum, which generates different data every time helm template is invoked.
For Horizontal Pod Autoscaling (HPA) objects, the HPA controller is known to reorder spec.metrics in a specific order. See kubernetes issue #74099. To work around this, you can order spec.metrics in Git in the same order that the controller prefers.

(from https://argoproj.github.io/argo-cd/user-guide/diffing/#diffing-customization, per )

I think it has to do with the labels in the coredns helm template vs argocd trying to override those labels and then the live and the manifest not jiving together @chrisohaver

Ok. Which labels are affected?

Well when I remove all labels from the template....
I am left with argo injecting and it is stable
app.kubernetes.io/instance: operations.coredns.staging

However, when I only remove app.kubernetes.io/instance, it is still sync looping.
It may be a combination of labels... Any ideas @chrisohaver ?

Hmm. Are there certain labels that a helm chart is not permitted to define if it is to be compatible with Argo CD?  These would certainly be documented in Argo CD docs somewhere.

https://argoproj.github.io/argo-cd/user-guide/helm/#helm-release-name

Important notice on overriding the release name
Please note that overriding the Helm release name might cause problems when the chart you are deploying is using the app.kubernetes.io/instance label. ArgoCD injects this label with the value of the Application name for tracking purposes. So when overriding the release name, the Application name will stop being equal to the release name. Because ArgoCD will overwrite the label with the Application name it might cause some selectors on the resources to stop working. In order to avoid this we can configure ArgoCD to use another label for tracking in the ArgoCD configmap argocd-cm.yaml - check the lines describing application.instanceLabelKey.

I had application.instanceLabelKey commented out in my config. Let me retest.

@chrisohaver, I've found the issue is related to the label kubernetes.io/cluster-service: "true" in the configmap, service, and deployment.
However, oddly enough it is fine in the cluster role and cluster role binding.
As per, https://github.com/kubernetes/kubernetes/issues/72757 the label does not serve any purpose.
Can we remove all occurrences of this label in the templates?

Thanks!  It's concerning that ArgoCD crashes and burns due to presence of a label that isn't used by anything ... especially considering that the label is "sprinkled across over 100 yaml files in the Kubernetes repo". I guess that some process is removing the labels?
Nevertheless, it looks like the label was deprecated five years ago. So it should be removed IMO.

Nevertheless, it looks like the label was deprecated five years ago. So it should be removed IMO.

Correction  - Add-on Manager deprecated its use of the label, but the label itself is not deprecated. Other processes may still be using it.  Specifically, kubectl still uses it in kubectl cluster-info, but only for Services IIUC.
So, at least for the Service, it seems it is still used.
I don't know if the label is still actively used elsewhere.

@chrisohaver found a workaround with kustomized-helm
Reference: https://github.com/argoproj/argo-cd/issues/6958#issuecomment-918469031
argocd-cm
apiVersion: v1
kind: ConfigMap
metadata:
  name: argocd-cm
data:
  configManagementPlugins: |-
    - name: kustomized-helm
      init:
        command: ["sh", "-c"]
        args: ["helm repo add ${helm_dependency_name} ${helm_dependency_repo} && helm dependency update ${helm_base}"]
      generate:
        command: ["sh", "-c"]
        args: ["helm template ${helm_dependency_name} ${helm_base} ${helm_args} > ${helm_base}/all.yaml && kustomize build"]

application.yaml
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: coredns
  namespace: argocd
spec:
  source:
    repoURL: {{ .Values.repoURL }}
    targetRevision: main
    path: applications/coredns
    plugin:
      name: kustomized-helm
      env:
      - name: helm_args
        value: -f base/values.yaml
      - name: helm_dependency_name
        value: coredns
      - name: helm_dependency_repo
        value: https://coredns.github.io/helm
      - name: helm_base
        value: base
  destination:
    name: {{ .Values.destinationName }}
    namespace: kube-system

applications/coredns/base/Chart.yaml
apiVersion: v2
name: coredns
version: 0.0.1
dependencies:
- name: coredns
  version: 1.16.3
  repository: https://coredns.github.io/helm

applications/coredns/overlays/remove-label.yaml
- op: remove
  path: "/metadata/labels/kubernetes.io~1cluster-service"

applications/coredns/kustomization.yaml
kind: Kustomization

bases:
- base/all.yaml

patchesJson6902:
- target:
    version: v1
    kind: ConfigMap
    name: coredns-coredns
  path: overlays/remove-label.yaml
- target:
    version: v1
    kind: Deployment
    name: coredns-coredns
  path: overlays/remove-label.yaml
- target:
    version: v1
    kind: Service
    name: coredns-coredns
  path: overlays/remove-label.yaml

namespace: kube-system

@rwong2888, Cool. Thanks for following up with the detailed workaround!  Appreciate it!

No problem @chrisohaver . Took a while to figure it out. Hopefully, no one else runs into this issue.


delete unwanted files

Remove any unnecessary files exclusively within the 'src' directory to streamline the repository

done delted


Balancing of meals

Meals are kind of a mess right now, there are disparities between meals where one is 1 bars and another one 4 more, although it's the same ingredient.

They're better balanced in 0.6 so going to close this.


How to handle defaultMessage and translation being the same

Hello,
Awesome plugin!
I'm wondering how to handle the following scenario:
A defaultMessage of 'Videos' has a dutch(NL) translation of 'Videos'.
When I run the manage translation command, it will tell you that Videos is untranslated.
This is probably because it's the same as the defaultMessage? Is there something I can do about this?

Whitelists to the rescue!
Not sure if you already noticed but together with your nl.json there should be a whitelist_nl.json file created. Here you can put the message key in the array, and that message will no longer show up in the untranslated messages. If for some reason you change the translation, running the manager will automatically remove the key from the whitelist, because it detects the translation and default are different.
You can check the whitelistDirectory part of the config documentation

Wow. Pardon me for missing that. My question is exactly being answered in that part of the documentation, guess I overlooked.
Thanks for the quick answer. :)

maybe i'm using this wrong then.
for my default locale "en", the defaultMessages are basically the translations already. so the translations file will always equal the defaultMessages and hence cause a Untranslated Key warning for every single key.
what'd be a way to mitigate this? have my translate-aggregator automatically generate a corresponding whitelist file for my default locale?

for my default locale "en", the defaultMessages are basically the translations already

@chapati23 have you found a solution for this?


Refactor nxsunit

This overhauls the nxsunit module to allow scaling with offsets, and scaling of multi-dimensional and complex units, e.g. SESANS A^-2*cm^-1 will treat the A^-2 and cm^-1 as separate components, each independently scalable. Unit tests were moved from within the module to the global unit test suite.
Fixes #5
Fixes(?) sasview/sasview#2035 - @pkienzle what do you think?

Still waiting for review by @pkienzle and @lucas-wilkins (though the latter will be after Jan 1 I guess?). @wpotrzebowski may also take a look.

is this ready to merge?


Can't install apps from App Store

After add the hosts line, generated by AppleDNS, into my Surge conf file, I have a quicker access to the App Store, but it goes wrong when I try to download&install apps.

remove 'iosapps.itunes.apple.com'

Problem solved. Thanks! 😉


KNOWN_ISSUES: add CephFS bug

See https://github.com/openshift/okd/issues/1160

@SriRamanujam @fortinj66 PTAL

Looks good to me


fix(frontend): returning matches desired columns

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?

Checklist For Contributors

[ ] I have written necessary rustdoc comments
[ ] I have added necessary unit tests and integration tests
[ ] I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features #7934).
[ ] I have demonstrated that backward compatibility is not broken by breaking changes and created issues to track deprecated features to be removed in the future. (Please refer to the issue)
[ ] All checks passed in ./risedev check (or alias, ./risedev c)

Checklist For Reviewers

[ ] I have requested macro/micro-benchmarks as this PR can affect performance substantially, and the results are shown.

Documentation

[ ] My PR DOES NOT contain user-facing changes.

Click here for Documentation
Types of user-facing changes
Please keep the types that apply to your changes, and remove the others.

SQL commands, functions, and operators

Release note
insert with returning to a table with generated columns will be rejected at the binder phase.

@broccoliSpicy PTAL

I find the datachunk written to dml_manager in insert executor does not contain columns that will be generated, and thus I don't find a way to yield correct chunk for returning. Do you have any suggestions? @yuhao-su

There's another and better design😇

and thus I don't find a way to yield the correct chunk for returning.

Good catch. Let's ban returning an insert with the generated column. After discussing with @st1page , returning may not be accurate when inserting a record that pk conflict with existing record.


Type of class (e.g abstract) should be detected

In my app I have some abstract Table classes.
When I run bake fixture_factory --all I get an error because plugin tries to instantiate those classes.
It would be nice if it could detect and exclude those classes.
How to reproduce this error:

create abstract Table class in /src/ModelTable directory
run bin/cake bake fixture_factory --all

@r34117y Thank you for the hint!
I have applied a fix to ignore traits, abstract and interface tables. It is available on the next and cake3_next branches. Would you mind testing that on your side?

@pabloelcolombiano Thank you for rapid action! And sorry for my late response, but I've been on the road :)
I tested cake3_next branch and all factories have been created correctly (with bake fixture_factory -af).


gitpython version <=3.1.32 has arbitrary code execution vulnerability (CVE-2023-40590)

Describe the bug
Details are in: https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-wfm5-v35h-vwf4
Reproduction steps
1. Install bandit version 1.7.5
2. It requires gitpython >=1.0.1 (but installs 3.1.32)
3. gitpython 3.1.32 has the reported vulnerability

Expected behavior
Details of the vulnerability are here https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-wfm5-v35h-vwf4. It should be fixed or details on the impact when using bandit should be provided.
Bandit version
1.7.5 (Default)
Python version
3.11 (Default)
Additional context
No response

Duplicate of #1049

@sigmavirus24, do you know when this fix will be released?


Only use bootsratp.css for api reference page

see: https://github.com/devfile/api/issues/140

We could even remove the bootstrap.css completely if we merge PR https://github.com/devfile/docs/pull/11

Cancelling this pull request as it is covered by PR11


Update events to use Inventory API

Several events, instead of using the Inventory API, deal directly with ItemStacks and slots. They need to be updated to use the Inventory interface.
A non-exhaustive list:

EntityEquipmentChangeEvent
EntityEquipEvent

Fixed in https://github.com/SpongePowered/SpongeAPI/commit/c1be53498c9920ac3f9bd29a55e293ee160744bc


Add unit tests for org.apache.gearpump.dashboard.controllers.StreamingDag

Story
Parent Issue
StreamingDag processing of StreamingAppMasterDataDetail needs to be verified using a fixed StreamingAppMasterDataDetail

merge into parent issue #952


Fix filtering and load all releases

This fixes #6 and couple other issues, complete list of fixes:

Fixes wrong count shown for filtered releases
Fixes releases and pre-releases filtering (was missing return)
Fixes not loading all releases (currently loads max 30 releases)
Updates node version to avoid github action warning

Also improved bit the logging wording to sound more correct and clarified the code a bit by not using overlapping variable names.

Thank you for your PR. I am not a native English speaker, but these changes make this action look more professional. Thank you again for your contribution!


BIOS v2.0 (Extremely 'Early' SCPH-1001) Needs Different Offset For BIOS_DEVELOPER, bios_is_ps1 returns false

This was a fun one. I own an extremely early SCPH-1001 console manufactured in July of '95. It indeed has BIOS v2.0 A. My other October '95 SCPH-1001 console is BIOS v2.1 A for reference to how rare this actually is...
Right now, in your bios_is_ps1() function you are checking offset 0xBFC0012C for the 'CEX-' string. This string is actually at 0xBFC00129 in BIOS v2.0 and below. BIOS v1.0 and BIOS v1.1 where only found on the SCPH-1000 and 'early' SCPH-3000 Japanese consoles specifically though, so only BIOS v2.0 affects the original Tonyhax here. BIOS v2.0 is therefore treated as a PS2 in the current code which is obviously very bad and breaks many things now.
My fix is here https://github.com/alex-free/tonyhax/commit/4161869997b766eeab725d2dfef3433d27f8fe5b . Tested and working on real hardware, I was loosing my mind debugging this.
These images below show the different offset for BIOS v2.0 and below, and BIOS v2.1 and above in the DuckStation emulator CPU debugger:

Thanks for the tip! I'm thinking I might reverse the condition and instead check for the PS2 "PS compatible mode by M.T", which is consistent through all the PS2 consoles at the same offset. Or even easier, check if the first byte of the BIOS version is '5'.

I've fixed it in commit 80f80e9d52bfd66423f9e8d1df15ef9d0fd3e2a8, by checking the console BIOS version which is consistent through all PS2 models. Also added a log before the BIOS version to see the detected console model.


gitlab: 12.5.3 -> 12.5.4

https://about.gitlab.com/blog/2019/12/10/critical-security-release-gitlab-12-5-4-released/
Insufficient parameter sanitization for Maven package registry could lead to privilege escalation and remote code execution vulnerabilities under certain conditions. The issue is now mitigated in the latest release and is assigned CVE-2019-19628.
When transferring a public project to a private group, private code would be disclosed via the Group Search API provided by Elasticsearch integration. The issue is now mitigated in the latest release and is assigned CVE-2019-19629.
The Git dependency has been upgraded to 2.22.2 in order to apply security fixes detailed here.
CVE-2019-19604 was identified by the GitLab Security Research team. For more information on that issue, please visit the GitLab Security Research Advisory
closes #75506.
Should be backported to 19.09, too.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

@GrahamcOfBorg test gitlab

backported to 19.09 in 4651952c959.


Testing transition values

Summary

Hello, I'm having some problems in testing transition values with timing. My tests with jest and testing-library run smoothly, but inside the stryker sandbox, it shows a test break in the "Starting initial test run" phase.
Test Case

Test Case Coverage

Stryker Test Error

Stryker config

// @ts-check
/** @type {import('@stryker-mutator/api/core').PartialStrykerOptions} */
const config = {
  packageManager: 'yarn',
  reporters: ['html', 'clear-text', 'progress', 'dashboard'],
  testRunner: 'jest',
  jest: {
    projectType: 'custom',
    configFile: 'jest.config.js',
    enableFindRelatedTests: true,
  },
  commandRunner: { command: 'yarn test' },
  checkers: ['typescript'],
  tsconfigFile: 'tsconfig.json',
  coverageAnalysis: 'perTest',
  mutate: ['src/components/**/index.tsx'],
};
export default config;

Test runner config
module.exports = {
  preset: 'react-native',
  testPathIgnorePatterns: ['/node_modules/'],
  collectCoverage: true,
  collectCoverageFrom: [
    '<rootDir>/src/components/**/*.tsx',
    '<rootDir>/src/view/**/*.tsx',
  ],
  modulePaths: ['<rootDir>/src/', '<rootDir>/.jest'],
  transform: {
    '^.+\\.js$': require.resolve('react-native/jest/preprocessor.js'),
  },
  transformIgnorePatterns: [],
  setupFilesAfterEnv: ['<rootDir>/.jest/setup.ts'],
};

Stryker environment

"@stryker-mutator/core": "^6.0.2",
"@stryker-mutator/jest-runner": "^6.0.2",
"@stryker-mutator/typescript-checker": "^6.0.2",

"jest": "^26.6.3",

Test runner environment

yarn test

or
yarn jest --maxWorkers=50%

Hmm very interesting. Would you mind creating a small reproduction project? Either as a zip here, or a git repo is fine.

Sure, I'll try on pure React Js project.

Hmm very interesting. Would you mind creating a small reproduction project? Either as a zip here, or a git repo is fine.

I did some tests using pure ReactJs and NextJs, I was successful in both, but I keep getting error in the React Native.
Here is the link to the repository Stryker Async App

Wow awesome, thanks for providing this great reproduction repo.
Apparently, the jest cli sets the NODE_ENV environment variable to test, which in turn disables the transition animation (or something like that). The @stryker-mutator/jest-runner isn't enabling the NODE_ENV, at least not fast enough.
Workaround:
Run
NODE_ENV=test npx stryker run

Or to support windows:
cross-env NODE_ENV=test npx stryker run --checkers "" --concurrency 2

Thx, this works for me, I made a script in package.json(  stryker:run ) to run in pipelines and that's it, thanks again


Always Deploy a Patch

Instead of deploying a patch when the parent branch match some regular
expressions, deploy a patch if we don’t deploy a minor version

Bump!


I am not able to download pyTorch in jetson xavier NX

I am trying this code to run it on jetson Xavier Nx but i am not able to download pytorch1.5.1 i have tried                                         " conda install pytorch==1.5.1 torchvision==0.6.0 cudatoolkit=10.2 -c pytorch"
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:

cudatoolkit=10.2
torchvision==0.6.0
pytorch==1.5.1

Current channels:

https://conda.anaconda.org/pytorch/linux-aarch64
https://conda.anaconda.org/pytorch/noarch
https://conda.anaconda.org/c4aarch64/linux-aarch64
https://conda.anaconda.org/c4aarch64/noarch
https://conda.anaconda.org/conda-forge/linux-aarch64
https://conda.anaconda.org/conda-forge/noarch

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

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

Hi @EhrazImam,
I am sorry that I can't help with this issue. Maybe you can look elsewhere to see if Jetson Xavier has some specific set of steps to install torch?


Updates to Documentation

Scaffolded out a fresh project today and ran into a few hiccups, updated documentation to reflect what was missing for me on Django 1.8 and added a little more explicit commands and syntax highlighting

Very nice. Thank you!


#383 MediaType.TEXT_PLAIN - Empty String is converted to null

For method producing MediaType.TEXT_PLAIN, if your method returns the empty String "", AbstractRequestCallback converts it to null.
@GET
@Produces(MediaType.TEXT_PLAIN)
String method();

For information purpose, if your method returns

null, your backend should return an Http status code 204.
the empty String "", your backend should return an Http status code 200 with an empty body.

Hi @mkristian.
Could you review this PR please?
I think this fix is worth having a new release with it (at least we have to manually patch it at work till there is an official resty-gwt release).
Thanks

@freddyboucher just released it to maven central. need to adjust my email settings to receive these kind of notifiactions in timely manner. sorry for the delay

@mkristian no worries, thanks for the release.


Removed duplicates from tutorials (second edition)

Hi,
This is the work done in #407 but rebased to avoid breaking the website, again... I will review it tomorrow again, but at least it builds successfully and there is no conflicts..
Bérénice

Thanks a lot @nsoranzo for these comments

Thanks @bebatut for the fixes! :+1:


Ability to import and export policies

Suggesting a method to import and export policies as XML files. I will work on a mockup of what the XML might look like.

Here's a sample of what a policy may look like in XML. The text inside of the element is the description, while all of the other attributes are attributes in the XML object. It doesn't have to be this way, i just thought it might be a good one
<?xml version="1.0"?> <policy type="and" name="SamplePolicy">   <description>8-bit H.264 MP4</description>   <rule id="1" filter_01="Y HIGH" filter_02="" operation="average" cutoff_number="" dash_group="10.0" dash_file="20.0" dashboard="true">Average of Y HIGH</rule>   <rule id="2" filter_01="Y MAX" filter_02="" operation="count of frames with value above" cutoff_number="940.0" dash_group="5.0" dash_file="10.0" dashboard="true">Count of the frames with value above 940.0</rule>   <rule id="3" filter_01="Y HIGH" filter_02="Y LOW" operation="average_difference" cutoff_number="" dash_group="2.0" dash_file="5.0" dashboard="false">Plotting contrast</rule> </policy>

I don't have and yet... But it looks good. Thank you!

This has been implemented and it looks to be working great! Thanks Yayoi. If I could request one minor tweak: Is it possible for the XML output to be formatted according to standard XML formatting? The following line of code in UNIX does the proper formatting:
xmllint --format policy.xml -o policy.xml

okay will do.


Dev/rebase migration

Pull Request summary:
Rebase dev-ux-migration with main
Description of changes:
Checklist:

[X] Make sure to run pre-commit before committing changes
[X] Make sure all checks have passed
[X] PR description is clear and comprehensive
[X] Mentioned the issue that this PR solves (if applicable)
[X] Make sure you test the changes

This issue was migrated from an old repository: https://github.com/CiscoDevNet/catalystwan/pull/512


chore(package): update rollup to version 1.2.1

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Support plugins on a per endpoint basis

Right now plugins encompass the entire API, meaning that they are invoked for every endpoint.
An amazing feature would be to allow specifying specific endpoints that the plugin works for, should no endpoints be specified it encompasses the entire API.
This shouldn't be done on a per plugin basis as that is not a DRY approach and would require each plugin to do additional work. The check should happen before the plugin is invoked.

should be in the KONG RESTful interface?

This also means allowing to configure the same plugin for a single API multiple times.
Examples:

CORS Config A on API A on endpoints A, D
CORS Config B on API A on endpoints B, C
Keyauth Config A on API A on endpoints A, C
Keyauth Config A on API A on endpoints D
Queryauth Config A on API A on endpoints B

+1

I should also add that plugins could also be per method as well.

@thefosk is this happening in the coming 0.3?

Not in 0.3.0, but could happen in 0.3.1or subsequent release

+1

+1

This issue should also enable plugins not just per endpoint, but per HTTP method too. Like:
curl <IP_ADDRESS>:8001/apis/test.com/plugins/
     -d "name=keyauth" \
     -d "path=/hello/*/world/*" \
     -d "method=POST"

What's the status on this? I see it was removed from the 0.3.1 milestone, is it still a planned feature?
One more thing to be brought up is support for wildcards or regex when applying to endpoints.

@montanaflynn the milestones are here now: https://github.com/Mashape/kong/wiki

Closed in favor of #505.


CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_187qjurwj_/clone/recipe/meta.yaml:16: pip_install_args: pip install should be run with --no-deps.
ERROR: /tmp/abs_187qjurwj_/clone/recipe/meta.yaml:21: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_187qjurwj_/clone/recipe/meta.yaml:23: missing_wheel: For pypi packages, wheel should be present in the host section
ERROR: /tmp/abs_187qjurwj_/clone/recipe/meta.yaml:51: missing_documentation: The recipe is missing a doc_url or doc_source_url
ERROR: /tmp/abs_187qjurwj_/clone/recipe/meta.yaml:51: missing_license_family: The recipe is missing the about/license_family key.
ERROR: /tmp/abs_187qjurwj_/clone/recipe/meta.yaml:51: http_url: http://stestr.readthedocs.io/en/latest/ is not https
WARNING: /tmp/abs_187qjurwj_/clone/recipe/meta.yaml:51: missing_description: The recipe is missing a description
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_20r93uc1_i/clone/recipe/meta.yaml:16: pip_install_args: pip install should be run with --no-deps.
ERROR: /tmp/abs_20r93uc1_i/clone/recipe/meta.yaml:21: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_20r93uc1_i/clone/recipe/meta.yaml:23: missing_wheel: For pypi packages, wheel should be present in the host section
ERROR: /tmp/abs_20r93uc1_i/clone/recipe/meta.yaml:51: missing_license_family: The recipe is missing the about/license_family key.
ERROR: /tmp/abs_20r93uc1_i/clone/recipe/meta.yaml:51: http_url: http://stestr.readthedocs.io/en/latest/ is not https
ERROR: /tmp/abs_20r93uc1_i/clone/recipe/meta.yaml:51: missing_documentation: The recipe is missing a doc_url or doc_source_url
WARNING: /tmp/abs_20r93uc1_i/clone/recipe/meta.yaml:51: missing_description: The recipe is missing a description
Errors were found


Maybe it's better to change the default setting of filename

🐛 Bug Report
This is the default setting of filename.
 "filename": "${id}.${kebab-case-name}.${ext}"
    "leetcode.filePath": {
        "default": {
            // 相对路径
            "folder": "",
            // 文件名
            "filename": "${id}.${kebab-case-name}.${ext}"
        }
    }

It will cause some problems because of the dot. between id and kebab-case-name.
if ($?) { g++ 673.最长递增子序列的个数.cpp -o 673.最长递增子序列的个数 } ; if ($?) { .\673.
最长递增子序列的个数 }
程序“673.最长递增子序列的个数”无法运行: 没有应用程序与此操作的指定文件有关联。所在位置 行:1 字符: 131
+ ... 673.最长递增子序列的个数.cpp -o 673.最长递增子序列的个数 } ; if ($?) { .\673.最长递增子序列的个数 }
+                                                        ~~~~~~~~~~~~~~~~。
所在位置 行:1 字符: 131
+ ... 673.最长递增子序列的个数.cpp -o 673.最长递增子序列的个数 } ; if ($?) { .\673.最长递增子序列的个数 }
+                                                        ~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

Thus, I think it's better to remove . in default setting.
"filename": "${id}${kebab-case-name}.${ext}"

I then find a similar problem. Since gdb doesn't support Chinese character in path and filename, I can't debug the .cpp file.
I think it's better to make the filename in English only, but I don't know how to do it when I am using Leetcode-cn. Can the extension generate a filename like 673FindNumberOfLIS.cpp? Adding the question id and class name together.

Yes, I encountered the same question.

Is there a way to solve this problem? I got the same question...


Template for AngularStats

Add template for the stats element, or use css class instead of style attribute.
For example many people use z-index: 9999 for things that have to be on top. And when this happen the stats div element disappear behind them.

Good point... I'm actually thinking of making the chart a little better using chart.js or something.
Note, until this is resolved, you could look at some of the logging or tracking options.

This is fixed in the most recent version of ng-stats: 2.1.0 bfe586d2c92287edf70dffc1fea48a9d0357f4e2


Update for 4.0 release

The 4.0 release has quite a few changes to the API in both calls and what gets returned.  This will be a major overhaul.

This is a dup of https://github.com/senzing-garage/sz-python-tools/issues/9)


Countdown of game

Commit number 66 should have mentioned this issue: Commit Link
This issue was finished with commit 66.


Increase channel size for receiving events and sending notifications

Description
Increase the tokio channel sizes from 64 to 1024.
Notes to the reviewers
These channels are used to buffer the received messages and notifications. If they are not consumed (via client.notifications()) fast enough, the receiving loop will fail with RecvError::Lagged, indicating the receiver "lagged" behind and some events got lost.
In my case, the consumer was parsing the message and adding it to a DB transaction. For more complex messages, this took a few milliseconds. That was slow enough to lead to lost messages.
The receive loop:
    let mut notifications = client.notifications();
    loop {
        match notifications.recv().await {
            Ok(notification) => {
                // process it
            }
            Err(e) => {
                match e {
                    RecvError::Closed => {
                        error!("Client reported stream as closed");
                        break;
                    }
                    RecvError::Lagged(e) => {
                        error!("Received error: {}", e.to_string());
                    }
                }
            }
        }
    }

resulting in
[2022-12-28T20:08:10Z ERROR nostr_sdk::net] Received error: channel lagged by 1
[2022-12-28T20:08:10Z ERROR nostr_sdk::net] Received error: channel lagged by 1
[2022-12-28T20:08:10Z ERROR nostr_sdk::net] Received error: channel lagged by 1
[2022-12-28T20:08:10Z ERROR nostr_sdk::net] Received error: channel lagged by 102
[2022-12-28T20:08:10Z ERROR nostr_sdk::net] Received error: channel lagged by 137
[2022-12-28T20:08:10Z ERROR nostr_sdk::net] Received error: channel lagged by 32
[2022-12-28T20:08:10Z ERROR nostr_sdk::net] Received error: channel lagged by 76

Increasing the channel sizes to 1024 eliminated these errors for me.
Changelog notice
Increase buffer for receiving messages
Checklists
All Submissions:

[x] I've signed all my commits
[x] I followed the contribution guidelines
[x] I ran cargo fmt and cargo clippy before committing

I'll merge this PR tomorrow.
In the meantime, can I ask you your nostr pubkey?

Sure, its 123456785ee7815751c28004e6cef4398e1256f94a93bf51f90018e28accbfb4