ProxyStore can get into a deadlock when all clients error

What happened
If a number of proxystore clients error (more than the magic 10) we will end up hanging in this section of code.
pprof output:
7 @ 0x42ca6a 0x42cb1e 0x4035cb 0x403365 0xc06686 0xc10a1f 0xc4996b 0xc234ec 0xc2265a 0xc22e4c 0xc235bc 0xc26b08 0xc254fe 0xc2520e 0xc23964 0xc56695 0xc5a994 0xc59f15 0x72c3e4 0xc17fbe 0x72c3e4 0xbd1fc7 0x72c3e4 0x74d3fd 0x78cba9 0xc1df22 0xc1a021 0xc1dcec 0x72e0d0 0x72f22c 0x72b401 0x459fd1
#	0xc06685	github.com/improbable-eng/thanos/pkg/store.(*ProxyStore).Series+0x915									/go/src/github.com/improbable-eng/thanos/pkg/store/proxy.go:127
#	0xc10a1e	github.com/improbable-eng/thanos/pkg/query.(*querier).Select+0x28e									/go/src/github.com/improbable-eng/thanos/pkg/query/querier.go:176
#	0xc4996a	github.com/improbable-eng/thanos/vendor/github.com/prometheus/prometheus/promql.(*Engine).populateSeries.func2+0x1ca			/go/src/github.com/improbable-eng/thanos/vendor/github.com/prometheus/prometheus/promql/engine.go:491
#	0xc234eb	github.com/improbable-eng/thanos/vendor/github.com/prometheus/prometheus/promql.inspector.Visit+0x5b					/go/src/github.com/improbable-eng/thanos/vendor/github.com/prometheus/prometheus/promql/ast.go:329
#	0xc22659	github.com/improbable-eng/thanos/vendor/github.com/prometheus/prometheus/promql.Walk+0x89						/go/src/github.com/improbable-eng/thanos/vendor/github.com/prometheus/prometheus/promql/ast.go:254
#	0xc22e4b	github.com/improbable-eng/thanos/vendor/github.com/prometheus/prometheus/promql.Walk+0x87b						/go/src/github.com/improbable-eng/thanos/vendor/github.com/prometheus/prometheus/promql/ast.go:296
#	0xc235bb	github.com/improbable-eng/thanos/vendor/github.com/prometheus/prometheus/promql.Inspect+0x5b						/go/src/github.com/improbable-eng/thanos/vendor/github.com/prometheus/prometheus/promql/ast.go:340
#	0xc26b07	github.com/improbable-eng/thanos/vendor/github.com/prometheus/prometheus/promql.(*Engine).populateSeries+0x437				/go/src/github.com/improbable-eng/thanos/vendor/github.com/prometheus/prometheus/promql/engine.go:481
#	0xc254fd	github.com/improbable-eng/thanos/vendor/github.com/prometheus/prometheus/promql.(*Engine).execEvalStmt+0xdd				/go/src/github.com/improbable-eng/thanos/vendor/github.com/prometheus/prometheus/promql/engine.go:358
#	0xc2520d	github.com/improbable-eng/thanos/vendor/github.com/prometheus/prometheus/promql.(*Engine).exec+0x3dd					/go/src/github.com/improbable-eng/thanos/vendor/github.com/prometheus/prometheus/promql/engine.go:339
#	0xc23963	github.com/improbable-eng/thanos/vendor/github.com/prometheus/prometheus/promql.(*query).Exec+0x93					/go/src/github.com/improbable-eng/thanos/vendor/github.com/prometheus/prometheus/promql/engine.go:142
#	0xc56694	github.com/improbable-eng/thanos/pkg/query/api.(*API).queryRange+0xaf4									/go/src/github.com/improbable-eng/thanos/pkg/query/api/v1.go:353
#	0xc5a993	github.com/improbable-eng/thanos/pkg/query/api.(*API).(github.com/improbable-eng/thanos/pkg/query/api.queryRange)-fm+0x33		/go/src/github.com/improbable-eng/thanos/pkg/query/api/v1.go:167
#	0xc59f14	github.com/improbable-eng/thanos/pkg/query/api.(*API).Register.func1.1+0x54								/go/src/github.com/improbable-eng/thanos/pkg/query/api/v1.go:153
#	0x72c3e3	net/http.HandlerFunc.ServeHTTP+0x43													/usr/local/go/src/net/http/server.go:1947
#	0xc17fbd	github.com/improbable-eng/thanos/vendor/github.com/NYTimes/gziphandler.GzipHandlerWithOpts.func1.1+0x1ad				/go/src/github.com/improbable-eng/thanos/vendor/github.com/NYTimes/gziphandler/gzip.go:287
#	0x72c3e3	net/http.HandlerFunc.ServeHTTP+0x43													/usr/local/go/src/net/http/server.go:1947
#	0xbd1fc6	github.com/improbable-eng/thanos/pkg/tracing.HTTPMiddleware.func1+0x576									/go/src/github.com/improbable-eng/thanos/pkg/tracing/http.go:37
#	0x72c3e3	net/http.HandlerFunc.ServeHTTP+0x43													/usr/local/go/src/net/http/server.go:1947
#	0x74d3fc	net/http.(Handler).ServeHTTP-fm+0x4c													/go/src/github.com/improbable-eng/thanos/vendor/github.com/prometheus/client_golang/prometheus/http.go:162
#	0x78cba8	github.com/improbable-eng/thanos/vendor/github.com/prometheus/client_golang/prometheus.InstrumentHandlerFuncWithOpts.func1+0x228	/go/src/github.com/improbable-eng/thanos/vendor/github.com/prometheus/client_golang/prometheus/http.go:289
#	0xc1df21	github.com/improbable-eng/thanos/vendor/github.com/prometheus/common/route.(*Router).handle.func1+0x221					/go/src/github.com/improbable-eng/thanos/vendor/github.com/prometheus/common/route/route.go:60
#	0xc1a020	github.com/improbable-eng/thanos/vendor/github.com/julienschmidt/httprouter.(*Router).ServeHTTP+0x6c0					/go/src/github.com/improbable-eng/thanos/vendor/github.com/julienschmidt/httprouter/router.go:299
#	0xc1dceb	github.com/improbable-eng/thanos/vendor/github.com/prometheus/common/route.(*Router).ServeHTTP+0x4b					/go/src/github.com/improbable-eng/thanos/vendor/github.com/prometheus/common/route/route.go:98
#	0x72e0cf	net/http.(*ServeMux).ServeHTTP+0x12f													/usr/local/go/src/net/http/server.go:2340
#	0x72f22b	net/http.serverHandler.ServeHTTP+0xbb													/usr/local/go/src/net/http/server.go:2697
#	0x72b400	net/http.(*conn).serve+0x650														/usr/local/go/src/net/http/server.go:1830

What you expected to happen

would expect to keep running and not lock in this scenario

How to reproduce it (as minimally and precisely as possible):

have reproduced in a test (see comment)

Full logs to relevant components

logs were not helpful

Anything else we need to know
Fixed in #563

Fixed in #563


Demo project of v4 can't work

Issues:

in https://github.com/ringcentral/ringcentral-js/blob/master/demo/src/scripts.js#L15:
It should be:

var sdk = new RingCentral.SDK({
            server: server,
            clientId: appKey,
            clientSecret: appSecret,
            appName: 'Demo',
            appVersion: RingCentral.SDK.version,
            redirectUri: decodeURIComponent(window.location.href.split('login', 1) + 'oauth/redirect.html')
});

Need to change appKey to clientId

In https://github.com/ringcentral/ringcentral-js/blob/master/demo/src/login.html#L5
If you use lerna and npm install, demo project can't find ../node_modules/bootstrap, it is in ../../node_modules/bootstrap

Miss Urlprefix: https://github.com/ringcentral/ringcentral-js/blob/master/demo/src/login.html#L136
changed to platform.get('/restapi/v1.0/account/~/extension/~')
Will try to fix in next PR.

In demo/src/code.html:
@ringcentral/subscriptions/dist/ringcentral-subscriptions.js can't work in Browser.
It throws: Cannot read property 'EventEmitter' of undefined.
Root cause: can't find RingCentral.EventEmitter, as it isn't export in SDK Browser JS file.


BLAS: Investigate validity of shared / mutable array views with interleaved data

Consider this case:

If you're interested, a tricky question remains, imagine a 4 x 4 matrix in row major order. The columns of the matrix are technically both F-order and C-order since they are one dimensional (but with a leading dimension of 4).

Anyway, adjacent columns do not overlap, but their memory interleaves very closely. Is this compatible with blas? :smile:

I've had a look at the cblas documentation at http://www.netlib.org/blas/blast-forum/cinterface.pdf
This excerpt seems relevant (annex B.2.7):

unless specified otherwise, only input-only arguments (specified with the const qualifier) may be legally aliased on a call to the C interface to BLAS.

As methods such as gemm in cblas require const input arguments, I suppose there is no problem with eg computing A^T * A with aliasing on the input.

And this also forbids mutable aliasing. Which is quite nice since it's exactly what rust wants too :)

Here's a tricky case though. Using low sizes to simplify.
Consider the 2x2 array in row major memory order.
Data is: 1., 2., 3., 4.
Logical layout is:
[[1.  2.],
 [3.  4.]]

ndarray allows getting the first column as a mutable view and second column as an immutable view.
Column 0: 1., 3.
Column 1: 2., 4.
The problem is that the columns don't alias in the rust sense, but their data interleaves. Is this allowed by blas? Suppose one of the columns is a mutable argument and the other is a constant argument.

It looks tricky, but I don't think any reasonable implementation of a blas function can be a problem. In fortran, the compiler is free to assume that pointers do not alias,  but there would need to be a bug in the implementation to access the same element in both the const pointer and the mutable one.
There might be an issue if the compiler tried to insert vectorisation, but I don't see why the optimiser would do that.

However I'm not sure there are blas functions which accept non-contiguous vectors, I've seen stride parameters for matrices but not for vectors in eg gemv: http://www.netlib.org/lapack/explore-html/d7/d15/group__double__blas__level2.html#gadd421a107a488d524859b4a64c1901a9

INCX and INCY are the stride parameters for the vectors there actually.

Ok I had missed that. Here's an interesting data point: numpy will not allow the equivalent of your example.
import numpy as np
a = np.random.rand(2, 2)
b = np.random.rand(2, 2)
b.dot(a[:, 0:1], out=a[:, 1:2])

ValueError: output array is not acceptable (must have the right type, nr dimensions, and be a C-Array)

So the numpy developers had an issue with that case.

Further investigating numpy's behaviour, it looks like they did not allow out parameters to have a storage different than C-order contiguous for simplicity reason (they have a gemv wrapper that requires the output stride to be 1).
I've tested directly against blas using C, and the following program:

#include <stdio.h>
#include <cblas.h>

int main()
{
  float a[] = { 1., 2., 3., 4.  };
  float b[] = { 1., 1., 1., 1.  };

  cblas_sgemv(CblasColMajor, CblasTrans, 2, 2, 1., &b[0], 2,
              &a[0], 2,
              0., &a[1], 2);

  printf("%f %f\n%f %f\n", a[0], a[1], a[2], a[3]);

  return 0;
}

will print the correct output, ie:
1.000000 4.000000
3.000000 4.000000

Now sadly this does not mean that any blas implementation will yield the correct output, but that's the output of the reference blas implementation (libblas3 on my ubuntu system claims to be the reference fortran 77 implementation found at netlib).

Thanks for looking. It does look pretty good then.

This was addressed!


Request attributes should compared against existing record

Describe the bug
When deploying a monaco project having request attributes, request attributes are always replaced (the same configuration is pushed to Config API). For Dynatrace project where request attributes are based on method arguments, will stop being collected until a restart of those processes is performed - in case real-time updates are not enabled. As Dynamic updates are typically disabled in production environments for sanity reasons, redeploying the same request attribute will result in request attribute collection being stopped. Details in SUP-71140.
How to reproduce
Steps to reproduce the behaviour:

a project with request attribute based on method arguments (Java for example)
Dynatrace environment with real-time updates disabled (default setting)
deploy configuration - observe request attributes collection being stopped for the request attribute

Expected behavior

monaco should check if the definition of request attribute matches the current deployed version
monaco should upload the new definition only if there is a change in the configuration

Log output

N/A

Environment (please complete the following information):

Monaco 1.5.0

Additional context
Based on the support ticket, https://support.dynatrace.com/supportportal/browse/SUP-71140 , a new ruleset for instrumentation is created each time a request attribute definition based on method arguments is saved.

Hi @juliusloman, thanks for reporting this issue. This actually isn't an issue with monaco as monaco is always updating existing resources (not recreating) using PUT method. There was a BUG in product which is solved with v1.215 release where process restart is not needed anymore.


torch requirement changing to 1.9.0

Because of unknown bugs in torch 1.10.0 and above, I faced implementation difficulties in my code.
However, because of pfhedge requirements, torch cannot be downgraded.
Can we downgrade the torch requirements of pfhedge?
(Those situations frequently occur. Thus, I thank, at least, the last 2 major versions should be supported)
Thank you for your consideration in advance.

fair enough. if it's clear what kind of bugs do you get? I'm just curious.

I'm not sure about what the bug is. Still checking. What I found until now is that using torch 1.10.0 and above causes the stack somewhere related to torch multiprocessing.
Anyway, downgrading to 1.9.0 is only solution until now.

FYI: the problem I have faced was finally found that spawn method of multiprocessing is incompatible with linux.
Instead of spawn method, forkserver method is correctly working now.


mpcpp missing

A lot of code tries to do import mpcpp.MPC_library as mpc, but the module is not found

Partial solution implemented:

MPC_library.py directly added to cheby_checker

Remaining work:

Need to update dependent modules (e.g. nbody.py) to import MPC_library from the local version (in cheby) rather than from mpcpp.MPC_library

Full (?) solution implemented:

Import of MPC_library changed to local version (in cheby_checker) rather than external mpcpp library


Bump version to 4.1.0

To be merged after merging the following PRs:
https://github.com/wireframe/gitx/pull/64
https://github.com/wireframe/gitx/pull/65
https://github.com/wireframe/gitx/pull/66

Coverage remained the same at 99.609% when pulling f1619b90c5788257618f7ba5c443816fb0823fdb on f1sherman:4-1-0 into 7ddb2ae28c46fee2c777c533c36f0ace6da8eb0b on wireframe:main.

Thank you @f1sherman!  v4.1.0 has been released!


Low performance of fmha with head_dim=128

Running tutorials/06-fused-attention.py on MI210, the performance with head_dim=64 looks good:
fused-attention-batch4-head48-d64-fwd:
N_CTX      Triton
0   1024.0   92.771498
1   2048.0  100.215724
2   4096.0  102.864525
3   8192.0  104.837738
4  16384.0  105.736522
But the performance drops dramatically when  head_dim changed to 128:
fused-attention-batch4-head48-d128-fwd:
N_CTX     Triton
0   1024.0  12.889821
1   2048.0  13.136331
2   4096.0  13.232509
3   8192.0  13.355740
4  16384.0  13.383783
The performance with head_dim=128 is very important because it is the head_dim of the most popular LLM models.
Do you have idea of why and how can this be improved? Thanks!

Update: Upgraded to the latest commit 821e75a2b025c62e4fab0578e32a12b5ca5fc9e9, the performance gets much better.
fused-attention-batch4-head48-d128-fwd-causal=False:
N_CTX     Triton
0   1024.0  69.581110
1   2048.0  73.569046
2   4096.0  75.318463
3   8192.0  76.932992
4  16384.0  76.648059
The performance with head_dim=128 is around 70% of head_dim=64. Maybe further improvement is still needed.

@minminsun For D=128, can you try this branch
https://github.com/ROCmSoftwarePlatform/triton/tree/reduce_lds_usage
For D=128, we need larger tile size and some optimizations in the epilogue to reduce LDS usage. It should be soon merged in the triton-mlir branch.

@zhanglx13 Thanks for your response! But the performance gets lower after switching to branch reduce_lds_usage (commit a6db42d2a2ccecaee279efdfd98d1cb530f75049) on MI210.
fused-attention-batch4-head48-d128-fwd-causal=False:
N_CTX     Triton
0   1024.0  44.790182
1   2048.0  47.149518
2   4096.0  48.370925
3   8192.0  49.587914
4  16384.0  49.441485

@minminsun This is unexpected. Let me ping someone to try it.
@alefimov-amd Can you try this on a MI200 or MI210 machine?

@minminsun Can you please double check if you rebuilt triton after switching to branch reduce_lds_usage?

On top of triton-mlir branch I've also got slightly better results:
fused-attention-batch4-head48-d128-fwd-causal=False:
     N_CTX     Triton    Flash-1
0   1024.0  73.678773  44.532794
1   2048.0  77.849647  54.586812
2   4096.0  80.303655  59.137811
3   8192.0  82.175344  60.307481
4  16384.0  82.501823  60.928475

@minminsun
Could you share what changes did you do to tutorial script?

P.s. Could you also check different rocm versions. They could affect performance a little.
I was using 5.4.0

Thanks @binarman !

Could you share what changes did you do to tutorial script?

I did no change to the tutorial scipt.

P.s. Could you also check different rocm versions. They could affect performance a little.

The version I use is rocm-5.2.3. This might be the reason of slow-down.

Give it a try with a newer ROCm. Please re-open as needed.


Where should helper classes like TypeHelper, StringHelper etc be?

Should helper classes be inside the Core project or the Infrastructure project?

I just wanted to know how well you''ll be able to organize NopCommerce files using this  CleanArchitecture Template.

Code without external dependencies - core, but more likely you should create a shared library to keep reusable code and then link this as a dependency.
Something like this: https://github.com/ardalis/CleanArchitecture/blob/95083acd1a7ab1f3be4c4f76733dfe4ed6810485/src/CleanArchitecture.Core/CleanArchitecture.Core.csproj#L9
From my perspective - I'm splitting Core into Contracts, Domain, Messages. Infrastructure into Persistence, Application, Application.Setup, Message broker. Web into UI, API(ie. API, ReadApi, PresentationApi).
Core

Contracts - basic models, DTOs, the definition of endpoints for API.
Messages - models as above but for Message Broker.
Domain - domain models that hold business logic in entities and value objects without EXTERNAL implementation. Just domain, root objects, etc.

Infrastructure

Application - implementation of business logic, CQRS that can handle DTO's and change domain by commands base on external resources(other API).
Application.Setup - just setup to run a whole application like Autofac setup.
Persistence - mapping of views, tables from DB
Message Broker - CQRS implementation of handlers and system that run message broker service (write mode)

Web

API - POST Actions that invoke CQRS and then message broker(yep, next CQRS system)
ReadAPI - internal/external definition of data that your or any system can get
PresentationApi internal read data for UI

I'd agree with @Xeinaemm


Not able to setup the project on local system.

Hello,
can you assist with the steps to set up the project on the local system?
thanks.

1.Clone the Repo
2. install node and npm
3. install angular cli with "npm i -g @angular/cli"
4. go to the root of the dir and run "npm install"
5. create firebase project refer to this "https://fireship.io/snippets/install-angularfire/"
6. Add the keys to environment.ts and environment.prod.ts

Steps
1.Clone the Repo
2. install node and npm
3. install angular cli with "npm i -g @angular/cli"
4. go to the root of the dir and run "npm install"
5. create firebase project refer to this "
https://fireship.io/snippets/install-angularfire/"
6. Add the keys to environment.ts and environment.prod.ts
On Fri, 5 Aug 2022 at 17:04, Amit joshi @.***> wrote:

Hello,
can you assist with the steps to set up the project on the local system?
thanks.
—
Reply to this email directly, view it on GitHub
https://github.com/AjinkyaBijwe/WebRTCVideoCall/issues/1, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACDHORJRZQODZRKFXHT5YJDVXT36DANCNFSM55VY5IOA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

--
Regards - Ajinkya Bijwe

Dear @AjinkyaBijwe,
I have tried your steps but it shows directories while I am calling that project in the browser (http://webrtcvideocall-master.test/) is the virtual host URL for that project directory.
Actually, I am planning to integrate the video calling feature in laravel project, so if you are having some references for that as well pls share that as well.

Hi Amit,
Did you worked on any angular project before ?
On Sat, Aug 6, 2022 at 1:07 PM Amit joshi @.***> wrote:

Dear @AjinkyaBijwe https://github.com/AjinkyaBijwe,
I have tried your steps but it shows directories while I am calling that
project in the browser (http://webrtcvideocall-master.test/) is the
virtual host URL for that project directory.
Actually, I am planning to integrate the video calling feature in laravel
project, so if you are having some references for that as well pls share
that as well.
[image: image]
https://user-images.githubusercontent.com/7069679/183239493-2de13d34-ed53-45e7-9cb8-d4e7e0089ab9.png
—
Reply to this email directly, view it on GitHub
https://github.com/AjinkyaBijwe/WebRTCVideoCall/issues/1#issuecomment-1207167655,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACDHORJ7MXLYQ65QZFRKX63VXYI45ANCNFSM55VY5IOA
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Regards - Ajinkya Bijwe

User not replied


ur-Target

I've got a problem that would benefit from the ability to define an "ur-target" (a target which would execute if no named target matches the target passed at the command line) and the ability to reflect over the current target (e.g. MSBuildTarget).
My project defines a "tree of platforms" and, given a platform that represents a node in the tree, will recursively walk the tree and, upon reaching a leaf, will execute a target against one of the projects types I am aggregating. I implement this by including a different target files depending on the type of platform. For platforms representing nodes in the tree I include a "stubs targets file" which defines stub targets for a set of well known targets (e.g. Build, Clean, Rebuild, Compile, etc) which implement the recursive step. For platforms representing leaves I include the targets file for the aggregated platform. The problem is the "stubs targets file" needs a stub target for all possible targets and it's there I'd like to define an ur-target.
For example, if I am aggregating Android, iOS and Windows mobile projects, then I would define a platform "mobile" which would be the root of a tree with three leafs -- one for each aggregated project. When I pass /p:platform=mobile /t:build then all three sub projects build. Similarly, when I pass /p:platform=mobile /t:clean all three projects are cleaned. Each target requires a stub that preforms the recursion and I'd like to replace all those targets with the ur target.
One possible implementation might be to have a reserved target name, say *. Then I could write something like the following:
<PropertyGroup>
    <ProjPath>$(MSBuildProjectFullPath)</ProjPath>
    <CurTarget>$(MSBuildTarget)</CurTarget>
</PropertyGroup>

<Target Name="*" Condition="'$(Platform)'=='mobile' >
    <MSBuild Projects="$(ProjPath)" Properties="platform=ios" Targets="$(CurTarget)" />
    <MSBuild Projects="$(ProjPath)" Properties="platform=android" Targets="$(CurTarget)" />
    <MSBuild Projects="$(ProjPath)" Properties="platform=windows" Targets="$(CurTarget)" />
</Target>

Warm regards,
Chris

Team triage: since this hasn't gotten much attention over the years we're not likely to implement it. Closing as won't-fix.


Release pulumi-vra

Hi Team,
I work with @schmidtw, is pulumi-vra at a good state to be released?
Trying to test new pulumi code leveraging pulumi-vra but it's expecting to find a remote release.
    error: could not find latest version for provider vra: 404 HTTP error fetching plugin from https://api.github.com/repos/pulumiverse/pulumi-vra/releases/latest. If this is a private GitHub repository, try providing a token via the GITHUB_TOKEN environment variable. See: https://github.com/settings/tokens

I'm assuming this need to be patched before release (from my understanding)
https://github.com/pulumiverse/pulumi-vra/pull/8

cc: @ringods

@cobraz / @usrbinkat  / @dirien I originally did the creation of the vra provider & had write access (so I could update/merge/release) but I seem to have lost that access.  We are ready to release the provider, but don't have the ability to do that.  Can you either make a release or grant me access so I can make a release?
Since this is the first release I imaging v0.0.1 is fine.
Thank you for your help.

Hey @schmidtw,
can you make PR to this file and change push to maintain
https://github.com/pulumiverse/infra/blob/main/03-members/schmidtw.yaml
This should give you more rights needed to "maintain" the repo

@schmidtw your access is in place. This means you should have the right permissions to go forward with the release.


DOC: Fix character after trailing backticks

Having charter directly after prevent docutils/sphinx from closing the interpreted-text/verbatim. One must use escaped space to have no spaces, (\ ) double in r-docstring \\ .
See spec, and confirmed this is what happens when building the doc.
https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#character-level-inline-markup-1
Change also singe backtick to double where relevant.

Some relevant pages, if you want to see the current incorrect layout:
https://docs.scipy.org/doc/scipy/reference/generated/scipy.linalg.ordqz.html#scipy.linalg.ordqz
https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.BPoly.from_derivatives.html
https://docs.scipy.org/doc/scipy/reference/generated/scipy.integrate.odeint.html

Yes sorry, i keep thinking about it after pushing .
On Wed, Sep 13, 2023 at 12:13 Jake Bowhay @.***> wrote:

Merged #19233 https://github.com/scipy/scipy/pull/19233 into main.
—
Reply to this email directly, view it on GitHub
https://github.com/scipy/scipy/pull/19233#event-10357688614, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AACR5T2LWTRHLYYKXBNXYGDX2GBOLANCNFSM6AAAAAA4WC3FSA
.
You are receiving this because you were mentioned.Message ID:
@.***>


Reactive value for 'hidden' input type

Describe the feature
I am working on an application that uses formkit to collect information leading to the form making a 'recommendation' that the user can then choose to override or not. This means that in addition to my form's user-entered inputs, I have initialRecommendation and finalRecommendation values that I would like to include in the form data.
I am using schema to build this form, and I have tried to use hidden inputs with an if/then object in their value keys in order to serve as a sort of 'calculated field' for these values, but I am finding that, as is stated in the documentation, setting an input's values with the value prop/attribute only sets the inputs initial state, and is not reactive. As expected, I am seeing no updates the input's value as the user changes their selections.
Would it be possible to enable reactive if/then expression evaluation for hidden inputs used in schemas to allow them to serve as 'calculated fields'? Is there an alternative approach to this that I missed within the documentation?

If I understand it correctly, you have a single hidden field where you want, based on other fields, change this fields value correct?
If so those nodes could have events at commit where you can then set the value of the hidden input using its id by getNode(hiddenID).input()
getNode('name').on('commit', ({ payload }) => {
 getNode('initialRecommendation').input(payload);
});

@GustavoFenilli, your read is correct, I appreciate the suggestion for an alternative, but my current approach uses FormKitSchema for the entire tool, and the calculations determining the recommendations frequently involve the value of several other related inputs, so the idea of having to access and set commit hooks on several inputs that have to all be aware of each others' current value seems like it will be a challenge to implement in a schema-friendly way.
To elaborate more on the use case, here is an example schema
const schema = [
  {
    $formkit: 'radio',
    name: 'somethingWrong',
    label: 'Has something bad happened?'
    options: ['yes', 'no'],
  },
  {
    $formkit: 'radio',
    name: 'isMyProblem',
    label: 'Is it your responsibility to fix?',
    options: ['yes', 'no'],
  },
  {
    $formkit: 'hidden',
    name: 'initialRecommendation'
    value: {
      if: '$formData.somethingWrong == yes && $formData.isMyProblem == yes',
      then: 'FIXIT',
      else: 'CHILL',
    },
  },
  {
    $el: 'h2',
    children: {
      if: '$formData.initialRecommendation == FIXIT',
      then: 'Better get to fixin it',
      else: 'Better relax',
    },
  {
    $formkit: 'radio',
    name: 'doIt',
    label: 'Gonna do that?',
    options: ['yes', 'no'],
  },
  {
    $formkit: 'hidden',
    name: 'finalRecommendation',
    value: {
      if: '$:($formData.initialRecommendation == FIXIT && $formData.doIt== no ) || ($formData.initialRecommendation == CHILL && $formData.doIt == yes)',
      then: 'CHILL',
      else: 'FIXIT',
    },
  },
  {
    $el: 'h2',
    children: {
      if: '$formData.finalRecommendation == FIXIT'
      then: 'Going to fix it',
      else: 'Going to chill',
    },
  },
]

In this instance, formData is a ref that is passed to the FormKit form component as v-model and to its FormKitSchema element as a key on the data prop. This example is also fairly simplified from my full-scale form, which calculates the recommendations based on 5 different inputs/values throughout the form. The fact that the schema expression engine can resolve the expressions reactively makes it the ideal mechanism for executing this logic, but the challenge has been how to save the computed outcome in a way that can make it back into the form data at submission time.

Well for now you can use v-if to render nodes for those cases, even tho its not the most beatiful of methods as value is meant for a initial setup. But your case seens to have a valid point.
{
    if: '$formData.somethingWrong == yes && $formData.isMyProblem == yes',
    then: {
        $formkit: 'hidden',
        name: 'initialRecommendation'
        value: 'FIXIT'
    },
    else: {
        $formkit: 'hidden',
        name: 'initialRecommendation'
        value: 'CHILL'
    }
}

Thank you for the workaround suggestion. Unfortunately, it doesn't appear to work. I modified your suggested code so that it also added a unique ID for each of the hiddden fields, and when I inspect the running code, I do see that the id changes, but the value doesn't.
{
    if: '$formData.somethingWrong == yes && $formData.isMyProblem == yes',
    then: {
        $formkit: 'hidden',
        id: 'fixitRec',
        name: 'initialRecommendation'
        value: 'FIXIT'
    },
    else: {
        $formkit: 'hidden',
        id: 'chillRec',
        name: 'initialRecommendation'
        value: 'CHILL'
    }
}

I will continue to experiment and try to find other options. How likely would it be that this feature would be implemented? I would be willing to work on it and submit a PR, but it's obvious this codebase is complex and sophisticated, so I'd likely need some coaching or advice on where to start.

Its unlikely that we would change the hydration model for just for hidden inputs — I think this would lead to mode confusion than it solves — but thats the good thing about plugins! This would be a pretty easy feature to add/solve using a simple plugin you can install globally.
Here’s an example @feend78 — in this case I have a plugin that creates a new "prop" called computedValue if that prop changes value, it automatically updates the actual value of the input:
https://formkit.link/36462739aeb7877febc86a8e5216daaf
That little plugin adds the functionality to any input in your app :)

Oh — and one other thing I would note, is the node architecture of FormKit doe not preclude you from adding arbitrary nodes to a form that are not even in the DOM. You can just do createNode() and then add that arbitrary node to a form, in that solution path hidden inputs aren’t even really necessary.

Thanks so much for the plugin suggestion, @justin-schroeder. It works exactly as I'd hoped!


External metrics filtering

Hi all,
I'm trying to setup an external metric to retrieve a lag value from Kafka.
Here is my (external) rule configuration:
    - seriesQuery: '{__name__=~"^kafka_consumergroup_.*"}'
      resources:
        template: <<.Resource>>
      metricsQuery: "<<.Series>>{<<.LabelMatchers>>}"

This correctly expose some different metrics. I'm able to filter for a single metric using kubectl get --raw "/apis/external.metrics.k8s.io/v1beta1/namespaces/*/kafka_consumergroup_lag_sum
Here is the response:
{
    "kind": "ExternalMetricValueList",
    "apiVersion": "external.metrics.k8s.io/v1beta1",
    "metadata": {
        "selfLink": "/apis/external.metrics.k8s.io/v1beta1/namespaces/%2A/kafka_consumergroup_lag_sum"
    },
    "items": [
        {
            "metricName": "kafka_consumergroup_lag_sum",
            "metricLabels": {
                "__name__": "kafka_consumergroup_lag_sum",
                "consumergroup": "consumer-group-1",
                "endpoint": "kafka-exporter",
                "instance": "xx.xx.xx.xx",
                "job": "kafka-exporter",
                "namespace": "my-namespace",
                "pod": "xxx-kafka-exporter-yyy",
                "service": "kafka-exporter",
                "topic": "topic-1"
            },
            "timestamp": "2019-09-05T14:28:05Z",
            "value": "0"
        },
        {
            "metricName": "kafka_consumergroup_lag_sum",
            "metricLabels": {
                 "__name__": "kafka_consumergroup_lag_sum",
                "consumergroup": "consumer-group-2",
                "endpoint": "kafka-exporter",
                "instance": "xx.xx.xx.xx",
                "job": "kafka-exporter",
                "namespace": "my-namespace",
                "pod": "xxx-kafka-exporter-yyy",
                "service": "kafka-exporter",
                "topic": "topic-2"
            },
            "timestamp": "2019-09-05T14:28:05Z",
            "value": "0"
        }
    ]
}

I assumed to be able to filter for one specific item using selector, but kubectl get --raw "/apis/external.metrics.k8s.io/v1beta1/namespaces/*/kafka_consumergroup_lag_sum?selector=consumergroup%3Dconsumer-group-1" yields the same unfiltered result as before.
My target goal is to declare an HPA using a selector, to get a specific metric for each specific HPA without needing to declare multiple rules inside prometheus-adapter (ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-metrics-not-related-to-kubernetes-objects )
Is this doable?

NVM.
For further reference, after some additional investigation it seems that:
1- K8s documentation is probably outdated, HPA must be defined using the standard selector spec:
[...]
  metrics:
    - type: External
      external:
        metric:
          name: kafka_consumergroup_lag_sum
          selector:
            matchLabels:
              consumergroup: consumer-group-1
[...]

2- the raw query performed towards prometheus-adapter (seen in logs) is:
/apis/external.metrics.k8s.io/v1beta1/namespaces/*/kafka_consumergroup_lag_sum?labelSelector=consumergroup%3Dconsumer-group-1
and this returns the expected, filtered result.


ASP.NET Core SSO with Azure AD. Got SecurityTokenSignatureKeyNotFoundException: Signature validation failed. Unable to match key Signature validation failed. On POST /signin-oidc request.

Describe the bug
We have the ASP.NET Core 3.1 web application that has SSO configured with Azure AD.
The problem is that for some AD (for some AD all work well) we receive this error on
POST https://localhost:5001/signin-oidc request.
Microsoft.IdentityModel.Tokens.SecurityTokenSignatureKeyNotFoundException: IDX10501: Signature validation failed. Unable to match key

here is our config in startup.cs
https://github.com/VirtoCommerce/vc-platform/blob/master/src/VirtoCommerce.Platform.Web/Startup.cs#L240
 authBuilder.AddOpenIdConnect("AzureAD", "Azure Active Directory",
                        openIdConnectOptions =>
                        {
                            openIdConnectOptions.ClientId = "my AD application id";
                            openIdConnectOptions.Authority = $"https://login.microsoftonline.com/my AD tenant id";
                            openIdConnectOptions.UseTokenLifetime = true;
                            openIdConnectOptions.RequireHttpsMetadata = false;
                            openIdConnectOptions.SignInScheme = IdentityConstants.ExternalScheme;
                            openIdConnectOptions.SecurityTokenValidator = new  JwtSecurityTokenHandler();
                        });

Here is the Azure AD configuration that doesn't work for us
{
	"id": "<<hidden for security reasons>>",
	"acceptMappedClaims": null,
	"accessTokenAcceptedVersion": null,
	"addIns": [],
	"allowPublicClient": false,
	"appId": "<<hidden for security reasons>>",
	"appRoles": [
		{
			"allowedMemberTypes": [
				"User"
			],
			"description": "User",
			"displayName": "User",
			"id": "<<hidden for security reasons>>",
			"isEnabled": true,
			"lang": null,
			"origin": "Application",
			"value": null
		},
		{
			"allowedMemberTypes": [
				"User"
			],
			"description": "msiam_access",
			"displayName": "msiam_access",
			"id": "hidden for security reasons",
			"isEnabled": true,
			"lang": null,
			"origin": "Application",
			"value": null
		}
	],
	"oauth2AllowUrlPathMatching": false,
	"createdDateTime": "2020-09-06T10:36:38Z",
	"disabledByMicrosoftStatus": null,
	"groupMembershipClaims": null,
	"identifierUris": [],
	"informationalUrls": {
		"termsOfService": null,
		"support": null,
		"privacy": null,
		"marketing": null
	},
	"keyCredentials": [],
	"knownClientApplications": [],
	"logoUrl": null,
	"logoutUrl": null,
	"name": "<<hidden for security reasons>>",
	"oauth2AllowIdTokenImplicitFlow": true,
	"oauth2AllowImplicitFlow": false,
	"oauth2Permissions": [
		{
			"adminConsentDescription": "<<hidden for security reasons>>",
			"adminConsentDisplayName": "<<hidden for security reasons>>,
			"id": "<<hidden for security reasons>>",
			"isEnabled": true,
			"lang": null,
			"origin": "Application",
			"type": "User",
			"userConsentDescription": <<hidden for security reasons>>",
			"userConsentDisplayName": "<<hidden for security reasons>>",
			"value": "user_impersonation"
		}
	],
	"oauth2RequirePostResponse": false,
	"optionalClaims": null,
	"orgRestrictions": [],
	"parentalControlSettings": {
		"countriesBlockedForMinors": [],
		"legalAgeGroupRule": "Allow"
	},
	"passwordCredentials": [],
	"preAuthorizedApplications": [],
	"publisherDomain": "<<hidden for security reasons>>",
	"replyUrlsWithType": [
	<<hidden for security reasons>>
	],
	"requiredResourceAccess": [],
	"samlMetadataUrl": null,
	"signInUrl": "<<hidden for security reasons>>",
	"signInAudience": "AzureADMyOrg",
	"tags": [],
	"tokenEncryptionKeyId": null
}

Expected behavior
The SSO works well as for other AD instances.
Actual behavior (include Exception or Stack Trace)
The problem is that for some AD (for some AD all work well) we receive this error on POST https://localhost:5001/signin-oidc request.
Microsoft.IdentityModel.Tokens.SecurityTokenSignatureKeyNotFoundException: IDX10501: Signature validation failed. Unable to match key

Environment:

ASP.NET Core 3.1
Azure AD

Hi @tatarincev.  Thank you for your feedback and we regret that you're experiencing difficulties.   I'm not able to determine which Azure SDK library that you're looking for assistance with from the context in this issue nor from looking through the references in your project file.   From what I can see, your application is using a combination of the ASP.NET Core built-in authentication libraries and the OpenIddict open source library for authentication.
Unfortunately, the Azure SDK team is not able to assist with libraries that are not part of the Azure SDK.   If I'm mistaken and overlooking something, can you help me understand which Azure library you're working with so that I can involve the correct folks to assist?
As I was looking in your project, I did notice one thing that may (or may not) be something to look at.   In your Startup, you're building the authority using the pattern {options.AzureAdInstance}{options.TenantId} which according to your settings would translate to https://login.microsoftonline.com/{TENANT}.    If I'm not mistaken, this should be https://login.microsoftonline.com/{TENANT}/v2.0 assuming that you're using the public cloud.   The wrong authority would seem  seem to correlate with a signature validity failure.
(refrence)
(also here)
Please be aware that due to the holidays, responses may be delayed.

Hi, @jsquire  thanks for the quick response.  It turned out that Azured AD calls the POST /signin-oidc with a token that has kid that does not exist in the keys  taken from the discovery URL for this tenant
GET https://login.microsoftonline.com/{tenant id}/discovery/v2.0/keys that the key reason. I suppose that we have the wrong configuration with the Azure AD.

I'm glad that you've figured it out.   I'm going to close this issue, as it seems confirmed that it isn't related to an Azure client library from the SDK.

Finally, I solved this error by adding MetadataAddress to the configuration
 authBuilder.AddOpenIdConnect("AzureAD", "Azure Active Directory",
                        openIdConnectOptions =>
                        {
                            openIdConnectOptions.ClientId = "my AD application id";
                            openIdConnectOptions.Authority = $"https://login.microsoftonline.com/my AD tenant id";
                            openIdConnectOptions.UseTokenLifetime = true;
                            openIdConnectOptions.RequireHttpsMetadata = false;
                            openIdConnectOptions.SignInScheme = IdentityConstants.ExternalScheme;
                            openIdConnectOptions.SecurityTokenValidator = new  JwtSecurityTokenHandler();
                          --->  openIdConnectOptions.MetadataAddress =  $"https://login.microsoftonline.com/{{TenantId}}/v2.0/.well-known/openid-configuration?appid={{ApplicationId}}"});


Add i.alazymeme.com to imageuploader examples

Pull request checklist:

[x] CHANGELOG.md was updated, if applicable

Description
I was having some latency problems with nuuls' uploader, so I've opened mine to anyone who wants to use it. Based on fourtf's image uploader: https://github.com/fourtf/i
Files will automatically delete after 1 year (as per the default code). There's no deletion link, however it's open source, if someone wants to integrate it; go ahead: https://github.com/alazymeme/i

Will opt to do randers' suggestion.


Merge ui.content with the corresponding module from aem-sample-we-retail-commons

Since this project doesn't work without aem-sample-we-retail-commons being also installed on the AEM instance, the ui.content submodule should be merged into the aem-sample-we-retail-commons project.

After some consideration I think the better solution is to make sure that the two projects don't override each other's content.


Test against the current hhvm version and php 7.1

This provides the current HHVM version (3.17.2 as of this PR) and will track with each release (i.e. will be 3.18 when 3.18 is released). Additionally adds php 7.1 to testing.
If testing against HHVM LST versions is desired follow this guide. https://docs.travis-ci.com/user/languages/php#HHVM-versions
Should be able to change to container based Trusty after 1Q17 https://blog.travis-ci.com/2016-11-08-trusty-container-public-beta/

Coverage remained the same at 94.279% when pulling 1459f1921e27a11606149f648f95687425f04855 on photodude:patch-1 into 0247f57b2245e8ad2e689d7cee754b45fbabd592 on mikey179:master.

Thank you, I didn't look into this for some time, so it's really appreciated.
Regarding the addition of PHP 7.1, I think it should not be allowed to fail. As the PR checks show it already works, and also 7.1 is stable, so IMHO there's no reason to allow failure for that version.

I have remove php: 7.1 from allow_failures.
by the way HHVM also has a php 7 mode, it maybe possible to run with that php 7 mode since composer might have fixed the issue that was breaking the composer installs when hhvm was running in php 7 mode.

Coverage remained the same at 94.279% when pulling 80cf3641a0fb4c8ed154041f9ee1d5486b0fe570 on photodude:patch-1 into 0247f57b2245e8ad2e689d7cee754b45fbabd592 on mikey179:master.

Thank you, merged.
Not sure about HHVM and different modes. I'm increasingly questioning if it's worth to support HHVM at all. Currently it works, but personally I don't have any incentives to invest any effort to keep it that way, especially in regard to the next major version of vfsStream.


[BREAKING] Remove long time deprecated PHONG specular model

removed from engine v2, and the Blinn-phone or ggx are now the only options

Would be great to have very simple material shader for high performance on low-end mobile. Poki games still use a lot of simple shaders to ensure highest performance possible.

I'd say currently the BasicMaterial is the simplest shaders we have. I does not handle lighting though, not even a single direction light, so maybe that could be added. But then, it's not exposed in the Editor at all, so not very convenient.

If we refactored StandardMaterial to just be a container for bare properties, it'd be simple to have other material types such as PhongMaterial.

I'd say currently the BasicMaterial is the simplest shaders we have. I does not handle lighting though, not even a single direction light, so maybe that could be added. But then, it's not exposed in the Editor at all, so not very convenient.

Yep, Editor UI for it would be amazing.


Infra in azd init empty template

Would be nice to have /infra with main.parameters.json, main.bicep, abbreviation.json and /core when running azd init with empty template.
Gets users to a better starting point.

#135

Closing this in favor of the above.


Books Reducers Initial State Undefined

I just finished lecture 42. That's about implementing the container class. I'm getting an issue with passing the initial state where my books reducer is being passed an undefined state. From what I can understand, we're passing in a hard coded books object as the state. Can somebody help? I've been stuck on this for about two days now.

Did you ever get this to work?

Yeah - Turned out it was a type and it was fixed when I started over again. Are you getting the same issue?

Hi ! I get this error

I got it after 43  lesson. Can you help me , please

Make sure the first argument you pass on Line 1 of reducer_active_book.js contains state = null.
Like so:
export default function(state = null, action) {
  switch(action.type) {
    case 'BOOK_SELECTED':
      return action.payload;
  }

  return state;
}

I am doing exactly as @1andee says, yet I still get this error:
export default function(state = null, action) {
  switch(action.type) {
    case 'BOOK_SELECTED':
      return action.payload;
  }

  return state;
}


vite-plugin-solid should be updated

We should update vite-plugin-solid to fix bug on solid-refresh .
https://github.com/solidjs/vite-plugin-solid/issues/93

Not sure how that is related to testing-library. The vite plugin is usually installed in the template, the testing-library is just an extra. I already submitted PRs for all the templates.

@atk
I'm sorry. It seems my understanding was wrong.
It was unrelated to my problem.


[FLINK-18660] Bump flink-shaded to 1.12; Bump netty to 4.1.49

Bump netty to 4.1.49 for some security fixes.
This also entails bumping netty-tcnative to 2.30.0

Thanks for your review. Merging.


Nested buildah build

Description
Attempting to create a stripped down container with buildah running inside of it. Everything is working- except for the docker login. Because runc and buildah are the only things inside this container does an alternative exist to $(docker login)?

Link?

Awesome.  If  you blog or tweet about this, ping us to tell us where.


[HW] AKSHAY WAKHARE

Name: AKSHAY WAKHARE
Linkedin Profile: https://www.linkedin.com/in/akshay-wakhare/

Attach the homework screenshots below:

Good job! Hope you learned a lot!

https://api.badgr.io/public/assertions/YvTr9pohQemv5Ql5PgLSRQ?identity__url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fakshay-wakhare%2F


Not able to build aura project, failing aura-util test cases

I have cloned the Auro Github repo and tried to build by running mvn clean install but could not build it due to below tests failed, any help would be appreciated.
Results :

Failed tests:
  IOUtilTest.testDelete:88 test cleanup failed
  DateServiceTest.testGetDateISO8601Converter:178->UnitTestCase.goldFileText:208->UnitTestCase.goldFileText:218 Gold file differences found, review updated gold file before committing: file:/C:/Users/User/salesforce/aura/aura-util/src/test/results/DateServiceTest/testGetDateISO8601Converter.txt
Differences:

diff:

  DateServiceTest.testGetDateStyleConverter_locale_dateStyle:254->UnitTestCase.goldFileText:208->UnitTestCase.goldFileText:218 Gold file differences found, review updated gold file before committing: file:/C:/Users/User/salesforce/aura/aura-util/src/test/results/DateServiceTest/testGetDateStyleConverter_locale_dateStyle.txt
Differences:

diff:

  DateServiceTest.testGetDateTimeISO8601Converter:157->UnitTestCase.goldFileText:208->UnitTestCase.goldFileText:218 Gold file differences found, review updated gold file before committing: file:/C:/Users/User/salesforce/aura/aura-util/src/test/results/DateServiceTest/testGetDateTimeISO8601Converter.txt
Differences:

diff:

  DateServiceTest.testGetDateTimeStyleConverter_locale_dateStyle_timeStyle:325->UnitTestCase.goldFileText:208->UnitTestCase.goldFileText:218 Gold file differences found, review updated gold file before committing: file:/C:/Users/User/salesforce/aura/aura-util/src/test/results/DateServiceTest/testGetDateTimeStyleConverter_locale_dateStyle_timeStyle.txt
Differences:

diff:

  DateServiceTest.testGetGenericISO8601Converter:221->UnitTestCase.goldFileText:208->UnitTestCase.goldFileText:218 Gold file differences found, review updated gold file before committing: file:/C:/Users/User/salesforce/aura/aura-util/src/test/results/DateServiceTest/testGetGenericISO8601Converter.txt
Differences:

diff:

  DateServiceTest.testGetPatternConverter_locale_pattern:360->UnitTestCase.goldFileText:208->UnitTestCase.goldFileText:218 Gold file differences found, review updated gold file before committing: file:/C:/Users/User/salesforce/aura/aura-util/src/test/results/DateServiceTest/testGetPatternConverter_locale_pattern.txt
Differences:

diff:

  DateServiceTest.testGetTimeStyleConverter_locale_timeStyle:288->UnitTestCase.goldFileText:208->UnitTestCase.goldFileText:218 Gold file differences found, review updated gold file before committing: file:/C:/Users/User/salesforce/aura/aura-util/src/test/results/DateServiceTest/testGetTimeStyleConverter_locale_timeStyle.txt
Differences:

diff:

  CommonJavascriptGroupImplTest.testBasicInitialization:82 Addition of a valid javascript file failed
  DirectiveBasedJavascriptGroupTest.testJavascriptGenerationDevelopment:118->doTestJavascriptGeneration:183->UnitTestCase.goldFileText:218 Gold file differences found, review updated gold file before committing: file:/C:/Users/User/salesforce/aura/aura-util/src/test/results/DirectiveBasedJavascriptGroupTest/testJavascriptGenerationDevelopment/testDummy_dev.js
Differences:

diff:

  DirectiveBasedJavascriptGroupTest.testJavascriptGenerationProduction:113->doTestJavascriptGeneration:183->UnitTestCase.goldFileText:218 Gold file differences found, review updated gold file before committing: file:/C:/Users/User/salesforce/aura/aura-util/src/test/results/DirectiveBasedJavascriptGroupTest/testJavascriptGenerationProduction/testDummy_prod.js
Differences:

diff:

  DirectiveParserTest.testAllKindsOfDirectiveGenerate:145->UnitTestCase.goldFileText:218 Gold file differences found, review updated gold file before committing: file:/C:/Users/User/salesforce/aura/aura-util/src/test/results/DirectiveParserTest/testAllKindsOfDirectiveGenerate_test.js
Differences:

diff:

  DirectiveParserTest.testMultilineDirective:113->UnitTestCase.goldFileText:218 Gold file differences found, review updated gold file before committing: file:/C:/Users/User/salesforce/aura/aura-util/src/test/results/DirectiveParserTest/testMultilineDirective.js
Differences:

diff:

  DirectiveParserTest.testZeroDirectiveTypes:48->UnitTestCase.goldFileText:218 Gold file differences found, review updated gold file before committing: file:/C:/Users/User/salesforce/aura/aura-util/src/test/results/DirectiveParserTest/testZeroDirectiveTypes.js
Differences:

diff:

  JavascriptGeneratorTest.testGeneration:29->UnitTestCase.goldFileText:218 Gold file differences found, review updated gold file before committing: file:/C:/Users/User/salesforce/aura/aura-util/src/test/results/JavascriptGeneratorTest/testGeneration_mock1.js
Differences:

diff:

  IfDirectiveTest.testJSSourceWithIfDirective:65->UnitTestCase.goldFileText:218 Gold file differences found, review updated gold file before committing: file:/C:/Users/User/salesforce/aura/aura-util/src/test/results/IfDirectiveTest/testJSSourceWithIfDirective_test.js
Differences:

diff:

  IncludeDirectiveTest.testIncludeDirective:126->UnitTestCase.goldFileText:218 Gold file differences found, review updated gold file before committing: file:/C:/Users/User/salesforce/aura/aura-util/src/test/results/IncludeDirectiveTest/testIncludeDirective_test.js
Differences:

diff:

  ResourceLoaderTest.testCacheDirParentIsAFile:235
Tests in error:
  DirectoryCleanerTest.testDirectoryCleanerWithProtectedDirectory:73 ╗ UnsupportedOperation
org.auraframework.util.resource.ResourceLoaderTest.testCacheDirParentNotWritable(org.auraframework.util.resource.ResourceLoaderTest)
  Run 1: ResourceLoaderTest.testCacheDirParentNotWritable:250 Should have failed to cache resource
  Run 2: ResourceLoaderTest>UnitTestCase.legacyTearDown:110->tearDown:111 ╗ DeleteFailed

org.auraframework.util.resource.ResourceLoaderTest.testGetResourceCachedMissingVersion(org.auraframework.util.resource.ResourceLoaderTest)
  Run 1: ResourceLoaderTest.testGetResourceCachedMissingVersion:428->createJarResourceLoader:137->createJarFromFolder:536 ╗ URISyntax
  Run 2: ResourceLoaderTest>UnitTestCase.legacyTearDown:110->tearDown:111 ╗ DeleteFailed

org.auraframework.util.resource.ResourceLoaderTest.testGetResourceNotCached(org.auraframework.util.resource.ResourceLoaderTest)
  Run 1: ResourceLoaderTest.testGetResourceNotCached:285->createJarResourceLoader:137->createJarFromFolder:536 ╗ URISyntax
  Run 2: ResourceLoaderTest>UnitTestCase.legacyTearDown:110->tearDown:111 ╗ DeleteFailed

org.auraframework.util.resource.ResourceLoaderTest.testObstructedRecurisvely(org.auraframework.util.resource.ResourceLoaderTest)
  Run 1: ResourceLoaderTest.testObstructedRecurisvely:479->createJarResourceLoader:137->createJarFromFolder:536 ╗ URISyntax
  Run 2: ResourceLoaderTest>UnitTestCase.legacyTearDown:110->tearDown:111 ╗ DeleteFailed

Tests run: 234, Failures: 18, Errors: 5, Skipped: 2

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Aura Framework ..................................... SUCCESS [01:04 min]
[INFO] aura-interfaces .................................... SUCCESS [ 50.949 s]
[INFO] aura-spring ........................................ SUCCESS [ 49.861 s]
[INFO] aura-util .......................................... FAILURE [01:01 min]
[INFO] aura ............................................... SKIPPED
[INFO] aura-impl-expression ............................... SKIPPED
[INFO] aura-impl .......................................... SKIPPED
[INFO] aura-tools ......................................... SKIPPED
[INFO] aura-components .................................... SKIPPED
[INFO] aura-modules ....................................... SKIPPED
[INFO] aura-resources ..................................... SKIPPED
[INFO] aura-integration-test .............................. SKIPPED
[INFO] aura-jetty ......................................... SKIPPED
[INFO] archetype for Aura-based "hello, world" ............ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:00 min
[INFO] Finished at: 2018-11-21T21:58:41+05:30
[INFO] Final Memory: 25M/491M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project aura-util: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\User\salesforce\aura\aura-util\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

I had the same issue today. I ran mvn clean install again and it worked at this step the 2nd time, but still fails at aura-impl tests.

Looks like a duplicate of this one: https://github.com/forcedotcom/aura/issues/160

I don't think anyone at Salesforce uses Windows to build aura (Mac or Linux only). I think the gold file failures you are encountering are differences in line endings. You can attempt to skip running the unit tests by running:
mvn clean install -DskipUnitTests=true
I'm not sure what's causing the DeleteFailed issue, I have not encountered that one. Possibly an issue running on windows too and something the test is trying to do.

I'm on a Mac so don't know it failed the first time, nor why it failed at a later step the second time, but it worked fine when I skipped the unit tests. Thanks.


Added missing bootstrap resources

Add a sample default network on initial load
Add graph name as title
Some cleanup

This PR will conflict with #18
Also, resources can be fetched using npm install. Get npm, and run npm install in the client folder.
Everything will work after that.
I tend to avoid committing overly large resources.
If you don't mind, I will add these changes into PR #18 and resolve issue #16

I have did another commit using new json format. So I will close this PR. You can add whatever easier from this PR into PR #18


How to convert .pb model file to .tflite to use in App Mobile (Android)

Hello dev team,
I glad to thank you by the detailed tutorial about how to training a Faster RCNN model to detect object.
However, after complete successfully steps, I want to convert file .pb to file .tflite, this can be used for developing an app Android (TensorFlow Lite). Could you help me the way to convert it.
Thank you a lot.

there a lot of solutions on web. Also there some closed issues here, where you wll find your answer. If this don't help tell me.


External component (vue-ssr-carousel) doesn't work in Vite (vue2)/rollup production SSR build - render function or template not defined in component: carousel

Version
2.7.10
Reproduction link
github.com
Steps to reproduce
Clone the reproduction repo and follow the steps from the repo readme to run the SSR build and repro the issue
What is expected?
The component works the same in the dev (vite) build and the production (rollup) build during SSR
What is actually happening?
The dev build SSR works fine, but the production SSR build fails with render function or template not defined in component: carousel

I created an issue in the repo for the external component, but upon further reflection I think this might be a more general vue (or maybe rollup?) issue.
https://github.com/BKWLD/vue-ssr-carousel/issues/89
I tried asking on discord in the #vue-2 channel, but no one replied unfortunately.

This work fine with webpack
https://github.com/SecretPocketCat/vue2-ssr-carousel-render-fn-not-defined-repro/tree/webpack-vuecli
So I'm not sure whether this issue stems from the lib, vite, vue2 vite plugin or rollup.

This is likely a @rollup/plugin-commonjs issue, since vue-ssr-carousel's dist file is webpack-produced commonjs bundle.
Either way, definitely not a Vue core issue.
Also, vue-ssr-carousel can avoid this by shipping a separate ESM build by using libraryTarget: 'module' in its webpack config, then specify it in the module field in package.json.

We had to switch back to webpack because we needed it for bundleRenderer and vite started breaking when we added in lazy hydration anyway.
Either way, your answer is very much appreciated, thank you.


docs: begin storybook v6 migration, run codemods

Closes #964
Summary

This is the result of running two codemods provided by storybook:

add-component-parameters
storiesof-to-csf

I have the storybook v6 upgrade/addon-docs #963 in progress on another branch. These changes here are required for the upgrade, I put them in their own PR so it's easier to digest and review.

Change List (commits, features, bugs, etc)

add component parameter to stories
convert stories from storiesOf api to the new Component Story Format (CSF)

Acceptance Test (how to verify the PR)

Validate that the modified stories still work the same in the deploy preview. They should all render as expected, 'show info' pane remain the same, knobs still work, etc.

I've fixed the lint errors

The storiesof-to-csf codemod got tripped up on the deprecation warning stories and inadvertently removed them - I reimplemented them.
Instead of wrapping stories with React.createElement, the stories are decorated with it via decorators: [createElement]
In some places the warnings for react/destructuring-assignment were being swallowed by the storiesOf api. Now that it's gone, I had to add some additional eslint disable comments on those lines.

@davidicus I just updated with the latest from next - all should be good now. Netlify will take ~10mins to redeploy the deploy preview.

Something that has come to mind - we should not allow storiesOf to be imported anymore. I'll add a rule to eslint and include here.

The new rule in the eslint config specifically bars imports of storiesOf. Here you can see other imports from @storybook/react are fine, but the storiesOf is flagged.

:tada: This PR is included in version 2.140.0-next.9 :tada:
The release is available on:

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


실행하려는데 막 오류가 터집니다 ㅠㅜ

한번에 다운받을수를 입력해주세요(보통 1~5추천,cg집같은경우는 알아서 맞추세요.)
10
다운은 1번 검색은 2번을 입력해주세요
2
리스트검색은 1번, 제목,태그검색은 2번을 입력해주세요
1
리스트검색입니다. 몇번쨰 페이지를 검색할까요?
1
Traceback (most recent call last):
File "/opt/lib/python3.8/site-packages/aiohttp/connector.py", line 936, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs)  # type: ignore  # noqa
File "/opt/lib/python3.8/asyncio/base_events.py", line 1050, in create_connection
File "/opt/lib/python3.8/asyncio/base_events.py", line 1080, in _create_connection_transport
ConnectionResetError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "main.py", line 31, in
idlist = loop.run_until_complete(search.hiyobilist(num=num))
File "/opt/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
File "/tmp/home/root/Hiyobot/src/search.py", line 5, in hiyobilist
async with cs.get(f'https://api.hiyobi.me/list/{num}') as r:
File "/opt/lib/python3.8/site-packages/aiohttp/client.py", line 1012, in aenter
self._resp = await self._coro
File "/opt/lib/python3.8/site-packages/aiohttp/client.py", line 480, in _request
conn = await self._connector.connect(
File "/opt/lib/python3.8/site-packages/aiohttp/connector.py", line 523, in connect
proto = await self._create_connection(req, traces, timeout)
File "/opt/lib/python3.8/site-packages/aiohttp/connector.py", line 858, in _create_connection
_, proto = await self._create_direct_connection(
File "/opt/lib/python3.8/site-packages/aiohttp/connector.py", line 1004, in _create_direct_connection
raise last_exc
File "/opt/lib/python3.8/site-packages/aiohttp/connector.py", line 980, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
File "/opt/lib/python3.8/site-packages/aiohttp/connector.py", line 943, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.hiyobi.me:443 ssl:default [None]
공유기에 엔트웨어를 설치해서 거기에 설치하려했는데 실행하더니 오류를 내면서 뿜어버립니다ㅠㅠ 어떻게 해야하나요

그 전에 이부분에서도 에러가 떴었습니다
@RT-AX56U-3288:/tmp/home/root/Hiyobot# pip install -r requirements.txt
Requirement already satisfied: aiohttp[speedups] in /tmp/mnt/sda1/entware/lib/python3.8/site-packages (from -r requirements.txt (line 1)) (3.6.2)
Requirement already satisfied: aiofiles in /tmp/mnt/sda1/entware/lib/python3.8/site-packages (from -r requirements.txt (line 2)) (0.5.0)
Requirement already satisfied: multidict<5.0,>=4.5 in /tmp/mnt/sda1/entware/lib/python3.8/site-packages (from aiohttp[speedups]->-r requirements.txt (line 1)) (4.7.6)
Requirement already satisfied: yarl<2.0,>=1.0 in /tmp/mnt/sda1/entware/lib/python3.8/site-packages (from aiohttp[speedups]->-r requirements.txt (line 1)) (1.4.2)
Requirement already satisfied: async-timeout<4.0,>=3.0 in /tmp/mnt/sda1/entware/lib/python3.8/site-packages (from aiohttp[speedups]->-r requirements.txt (line 1)) (3.0.1)
Requirement already satisfied: chardet<4.0,>=2.0 in /tmp/mnt/sda1/entware/lib/python3.8/site-packages (from aiohttp[speedups]->-r requirements.txt (line 1)) (3.0.4)
Requirement already satisfied: attrs>=17.3.0 in /tmp/mnt/sda1/entware/lib/python3.8/site-packages (from aiohttp[speedups]->-r requirements.txt (line 1)) (19.3.0)
Collecting cchardet; extra == "speedups"
Using cached cchardet-2.1.6.tar.gz (653 kB)
Collecting aiodns; extra == "speedups"
Using cached aiodns-2.0.0-py2.py3-none-any.whl (4.8 kB)
Collecting brotlipy; extra == "speedups"
Using cached brotlipy-0.7.0.tar.gz (413 kB)
ERROR: Command errored out with exit status 1:
command: /opt/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/mnt/sda1/entware/tmp/pip-install-d5bv_l7c/brotlipy/setup.py'"'"'; file='"'"'/tmp/mnt/sda1/entware/tmp/pip-install-d5bv_l7c/brotlipy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/mnt/sda1/entware/tmp/pip-pip-egg-info-obzlc1jq
cwd: /tmp/mnt/sda1/entware/tmp/pip-install-d5bv_l7c/brotlipy/
Complete output (92 lines):
c/_cffi_backend.c: In function 'b_callback':
c/_cffi_backend.c:6245:5: warning: 'ffi_prep_closure' is deprecated: use ffi_prep_closure_loc instead [-Wdeprecated-declarations]
if (ffi_prep_closure(closure, &cif_descr->cif,
^~
In file included from c/_cffi_backend.c:15:0:
/opt/include/ffi.h:334:1: note: declared here
ffi_prep_closure (ffi_closure*,
^~~~~~~~~~~~~~~~
/opt/bin/ld: cannot find -lffi
collect2: error: ld returned 1 exit status
Traceback (most recent call last):
File "/opt/lib/python3.8/distutils/unixccompiler.py", line 204, in link
File "/opt/lib/python3.8/distutils/ccompiler.py", line 910, in spawn
File "/opt/lib/python3.8/distutils/spawn.py", line 36, in spawn
File "/opt/lib/python3.8/distutils/spawn.py", line 157, in _spawn_posix
distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/lib/python3.8/distutils/core.py", line 148, in setup
  File "/opt/lib/python3.8/distutils/dist.py", line 966, in run_commands
  File "/opt/lib/python3.8/distutils/dist.py", line 985, in run_command
  File "/opt/lib/python3.8/site-packages/setuptools/command/bdist_egg.py", line 172, in run
  File "/opt/lib/python3.8/site-packages/setuptools/command/bdist_egg.py", line 158, in call_command
  File "/opt/lib/python3.8/distutils/cmd.py", line 313, in run_command
  File "/opt/lib/python3.8/distutils/dist.py", line 985, in run_command
  File "/opt/lib/python3.8/site-packages/setuptools/command/install_lib.py", line 11, in run
  File "/opt/lib/python3.8/distutils/command/install_lib.py", line 107, in build
  File "/opt/lib/python3.8/distutils/cmd.py", line 313, in run_command
  File "/opt/lib/python3.8/distutils/dist.py", line 985, in run_command
  File "/opt/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 84, in run
  File "/opt/lib/python3.8/distutils/command/build_ext.py", line 343, in run
  File "/opt/lib/python3.8/distutils/command/build_ext.py", line 452, in build_extensions
  File "/opt/lib/python3.8/distutils/command/build_ext.py", line 477, in _build_extensions_serial
  File "/opt/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 205, in build_extension
  File "/opt/lib/python3.8/distutils/command/build_ext.py", line 553, in build_extension
  File "/opt/lib/python3.8/distutils/ccompiler.py", line 713, in link_shared_object
  File "/opt/lib/python3.8/distutils/unixccompiler.py", line 206, in link
distutils.errors.LinkError: command 'gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/lib/python3.8/site-packages/setuptools/sandbox.py", line 154, in save_modules
  File "/opt/lib/python3.8/site-packages/setuptools/sandbox.py", line 195, in setup_context
  File "/opt/lib/python3.8/site-packages/setuptools/sandbox.py", line 250, in run_setup
  File "/opt/lib/python3.8/site-packages/setuptools/sandbox.py", line 45, in _execfile
  File "/opt/tmp/easy_install-ngd6e3e6/cffi-1.14.0/setup.py", line 186, in <module>
  File "/opt/lib/python3.8/site-packages/setuptools/__init__.py", line 145, in setup
  File "/opt/lib/python3.8/distutils/core.py", line 163, in setup
SystemExit: error: command 'gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 1144, in run_setup
  File "/opt/lib/python3.8/site-packages/setuptools/sandbox.py", line 253, in run_setup
  File "/opt/lib/python3.8/contextlib.py", line 131, in __exit__
  File "/opt/lib/python3.8/site-packages/setuptools/sandbox.py", line 195, in setup_context
  File "/opt/lib/python3.8/contextlib.py", line 131, in __exit__
  File "/opt/lib/python3.8/site-packages/setuptools/sandbox.py", line 166, in save_modules
  File "/opt/lib/python3.8/site-packages/setuptools/sandbox.py", line 141, in resume
  File "/opt/lib/python3.8/site-packages/setuptools/_vendor/six.py", line 685, in reraise
  File "/opt/lib/python3.8/site-packages/setuptools/sandbox.py", line 154, in save_modules
  File "/opt/lib/python3.8/site-packages/setuptools/sandbox.py", line 195, in setup_context
  File "/opt/lib/python3.8/site-packages/setuptools/sandbox.py", line 250, in run_setup
  File "/opt/lib/python3.8/site-packages/setuptools/sandbox.py", line 45, in _execfile
  File "/opt/tmp/easy_install-ngd6e3e6/cffi-1.14.0/setup.py", line 186, in <module>
  File "/opt/lib/python3.8/site-packages/setuptools/__init__.py", line 145, in setup
  File "/opt/lib/python3.8/distutils/core.py", line 163, in setup
SystemExit: error: command 'gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/mnt/sda1/entware/tmp/pip-install-d5bv_l7c/brotlipy/setup.py", line 9, in <module>
    setup(
  File "/opt/lib/python3.8/site-packages/setuptools/__init__.py", line 144, in setup
  File "/opt/lib/python3.8/site-packages/setuptools/__init__.py", line 139, in _install_setup_requires
  File "/opt/lib/python3.8/site-packages/setuptools/dist.py", line 716, in fetch_build_eggs
  File "/opt/lib/python3.8/site-packages/pkg_resources/__init__.py", line 780, in resolve
  File "/opt/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1065, in best_match
  File "/opt/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1077, in obtain
  File "/opt/lib/python3.8/site-packages/setuptools/dist.py", line 786, in fetch_build_egg
  File "/opt/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 679, in easy_install
  File "/opt/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 705, in install_item
  File "/opt/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 890, in install_eggs
  File "/opt/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 1158, in build_and_install
  File "/opt/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 1146, in run_setup
distutils.errors.DistutilsError: Setup script exited with error: command 'gcc' failed with exit status 1
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
@RT-AX56U-3288:/tmp/home/root/Hiyobot#

사용하시는 ISP가 어떻게되시나요

https://github.com/Entware/Entware/wiki/Using-GCC-for-native-compilation
P.S. KT통신사를 제외한 SKT,LG는 API, CDN주소도 검열당하십니다.


Make MathMLQueryGenerator a Git submodule?

I noticed in the maven pom that mathmlquerygenerator is included as a local dependency - it doesn't use v0.0.2 which is on the maven central repository, rather it uses v0.0.3-SNAPSHOT. So anyone who wants to build this has to clone the current mathmlquerygenerator repo and build that as well, which I think is confusing.
I think we should make MathMLQueryGenerator into a submodule to make this simpler to build - is this ok?

OK. We can drop the module in the future, when MathML query generator does
not change so frequently anymore.
On May 11, 2015 7:09 PM, "Jimmy Li"<EMAIL_ADDRESS>wrote:

I noticed in the maven pom that mathmlquerygenerator is included as a
local dependency - it doesn't use v0.0.2 which is on the maven central
repository, rather it uses v0.0.3-SNAPSHOT. So anyone who wants to build
this has to clone the current mathmlquerygenerator repo and build that as
well, which I think is confusing.
I think we should make MathMLQueryGenerator into a submodule to make this
simpler to build - is this ok?
—
Reply to this email directly or view it on GitHub
https://github.com/TU-Berlin/mathosphere/issues/43.

This was already a submodule - my mistake, I didn't see the lib folder


Bug

Bug copied from
https://github.com/rowanwins/point-in-polygon-hao/issues/10#issuecomment-784516358
const polygon = [[
    [1101.7962, 100.5449],
    [1443.0434, 120.2615],
    [1453.0800, -392.3705],
    [1121.8695 -382.5122],
]];

const point = [ -1940.6, -157.14 ];

Returns true but should be false

@osztenkurden the problem is your last pair of coordinates are missing a comma.
    [1121.8695, <---- -382.5122]

You are correct, late night programming does that to mind, thank you very much


Added unsetRelation method to Eloquent models

There are many ways to set and load relationships in Eloquent models. However it becomes tricky for unsetting an already loaded relation.
I do work a lot in packages which interact with Eloquent and relationships with paradigms such as EAV and others where you have to manipulate relationships directly from traits. I think it'll be useful to provide as much methods as possible to manage them.
Right now, the only way I found to unset a relationship from outside the model was:
// Lets assume "user" and "image" relations and we try to remove "user"
$relations = $model->getRelations();
unset($relations['user']);
$model->setRelations($relations);

With this PR:
$model->unsetRelation('user');

Out of curisosity - what is the use case for this? Why would you want to unset a relationship?

This came up because I am developing a permalink based routing system. I am setting a Permalink model to the Route instance via a Macro method. When you cache your routes, you will get all these and their relationships encoded to base64. I do not want to cache anything else than the model itself, do not want to get a huge base64 string.
I guess this may be also useful for not serializing relations.


RpsThreadGroup issues

How to execute .saveAsJmx("path") on RpsThreadGroup?
I see this message The method saveAsJmx(String) is undefined for the type RpsThreadGroup
There is different tree building variants in threadGroup and rpsThreadGroup example:
threadGroup(1, 1,            httpSampler("label","/api/list") )
and only
rpsThreadGroup()          .children(httpSampler("label","/api/list"))
So why I can't put childrens in round brackets? It seem's stange and non-universal, but not crit.

Hello,

The method saveAsJmx is defined at test plan level. Do you have any particular need to save a JMX with part of the testplan instead of the entire testplan?

In general the rule we follow is: if we can provide a simpler way for most commons scenarios to configure an element, then we provide it right in builderMethod (by providing for example in thread groups, common config parameters and children), but, if configuration is more complex (like in rpsThreadGroup), then separate it, always setting config first and children elements.
threadGroup also provides the builder without constructs. You can see that threadGroup() when used with rampUps and holds is mostly the same as rpsThreadGroup. The two scenarios where they differ is when you use just iterations or duration, for which we provide built in builder with children for faster/less verbose usage.
We understand this is not be consistent in 100% of cases (in some cases you pass children in builder method, in some other in children method), but alternative would make most of simple scenarios unnecessarily verbose, eg: threadGroup().threadsIterations(1,1).children(...) and threadGroup().threadsDuration(1, Duration.ofSeconds(5)).children(...) OR rpsThreadGroup(RpsThreadGroupConfig.rampUpToAndHold(10, Duration.ofSeconds(5)).maxThreads(10), httpSampler(...)).

If you have any other ideas or comments we will be to review them.
Regards

.saveAsJmx is working, my bad)
About second problem - I understood your position, I think it;s OK


MultiWidget support

Not sure if this is related with #362.
I use the MoneyField from django-money in one of my models and the server gives me the following warning (using django-material 1.4.3):
/usr/local/lib/python3.7/dist-packages/material/base.py:216: UserWarning: Unknown field and widget <class 'djmoney.forms.fields.MoneyField'> <class 'djmoney.forms.widgets.MoneyWidget'>

The warning is generated because a template cannot be found.
django-money does not provide any templates but relies on the default django MultiWidget. As far as I could see django-material does not implement a general MultiWidget. Is that correct and is there a possibility this will be added in the future?

Generally, it's hard to provide a nice and generic multi-widget template for render with MaterializeCSS.
Currently you have to create your own material/fields/djmoney_moneywidget.html


Clarify that X-Pack security features are required

Companion PR to https://github.com/elastic/found-shield-example/pull/5
Note that as per recent product naming guideline changes, we don't use "X-Pack Security" (some X-Pack docs might still be incorrect). We now say "X-Pack security features." :-)

LGTM 👍


<++= operator is deprecated

With new SBT (https://github.com/sbt/sbt/releases/tag/v0.13.13) <++= operator is deprecated
Cloning into '/home/user/.sbt/0.13/staging/434e4ddfc5bb91d298c8/sbt-css-compress'...
/home/user/.sbt/0.13/staging/434e4ddfc5bb91d298c8/sbt-css-compress/project/plugins.sbt:1: warning: `<++=` operator is deprecated. Use `lhs ++= { x.value }`.
libraryDependencies <++= (sbtVersion) {
                    ^

+1

The same needs to be taken care of here: https://github.com/ground5hark/sbt-concat


Please add option for 1st dose and 2nd dose

Also it would be great if you use auto captcha functionality

Ya sure. We will add soon

https://github.com/ayushchd/cowin_js_bot
You could refer to his code for auto captcha feature..It would make this app supercool.


Fix notebooks

What does this PR do?
Fixes or improvements to:

[x] jax_for_the_impatient.ipynb

Codecov Report

Merging #2231 (6a2e9e3) into main (7f51005) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #2231   +/-   ##
=======================================
  Coverage   75.90%   75.90%
=======================================
  Files          61       61
  Lines        5330     5330
=======================================
  Hits         4046     4046
  Misses       1284     1284

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 7f51005...6a2e9e3. Read the comment docs.


I cannot open the app on Mac

Hi, unfortunately I cannot open the App on my Mac. After I open the App it immediately closes without any error message. I tried both png install and dmg install.

It's a terminal application. Is it possible to execute it in a shell terminal window?

No, doesn't work. I deleted all possible quarantine files with this common 'xattr -d com.apple.quarantine /Applications/radiorecorder.app'and startet the app with bypassed security checks. But nothing worked.
The Icon flashes briefly in the Dock and that's it.
Im running a M1 Mac mini with 14.1.1 Sonoma

As I said, you should not press the icon, but execute it in a terminal window.
Even if there is an icon, it won't work because the application is designed to be a terminal application.

Can not reproduce, unclear error. Possibly wrong expectation of usage.


How do you calculate the new keys?

Hi alberto, Im very interesting in your keysubtracter, can you tell me how do you calculate the new keys?
Do you replace the Gx and Gy by the public key X and Y Values?
I kind of see how you can add keys but, how do you substract the keys from there?

Subtract and addition is the same operation, that is made with any method that performed Point Addition.
Let to say that you have Publickey C, and you want add and subtract the amount of the publickey of 1000.
P(C)+P(1000) = new Publickey (C + 1000)
P(C) +P(-1000) = new Publickey (C - 1000)
In both cases the operation is Point Addition, but in one of them the value is the same (1000) but Negated (-1000)
You can search in google some examples of how to get the Negated Value of a ECC Point
This is a very vague explanation f fthe Operation, let me know if you want more help and i will add some technical stuff
Regards!

Thanks for the answer, I will search for Negated Value of a ECC Point as you suggested.
I think it would be great to add this explanation so it would help to understand the use of the program.
Great job for the program btw.

Subtract and addition is the same operation, that is made with any method that performed Point Addition.
Let to say that you have Publickey C, and you want add and subtract the amount of the publickey of 1000.
P(C)+P(1000) = new Publickey (C + 1000) P(C) +P(-1000) = new Publickey (C - 1000)
In both cases the operation is Point Addition, but in one of them the value is the same (1000) but Negated (-1000) You can search in google some examples of how to get the Negated Value of a ECC Point
This is a very vague explanation f fthe Operation, let me know if you want more help and i will add some technical stuff
Regards!

I think i Got the basic idea, it looks like what we do if we want to verify a signature.


Anonymous record types are public by default

Since anonymous record types are implicitly public, even if two records are structurally the same, they are not considered the same type.

Related issue: https://github.com/ballerina-platform/ballerina-lang/issues/10480

This was fixed with PR #15279. Hence closing this.


Different results on vscode and visual studio

I wrote the following code :
class MyClass {
public:
    int myNum = 11;
    std::string myString="hello";
};

Instantiated the class as: MyClass c = MyClass();
Here is my Natvis file:
	<Type Name="MyClass">
		<DisplayString>"Hello</DisplayString>
		<Expand>
			<CustomListItems>
				<Variable Name="ind" InitialValue="-1" />
				<Size>10</Size>
				<Loop>
						<Break Condition="ind == 5" />
						<Exec>ind += 1</Exec>
						<Item>ind,na</Item>
				</Loop>
			</CustomListItems>
		</Expand>
	</Type>

When I run this on Visual Studio/Windows I get:

a list of items [0]-[5] with values of 0-5 as expected
When I run this on VSCode/Linux/gdb, I get nothing. Only the Raw View.
We are not using the debugger to get any values from the program, so I would have expected the same output in both cases ?
What is the difference ?
Thanks much
Originally posted by @graghavan007 in https://github.com/microsoft/MIEngine/issues/1094#issuecomment-762448128

When I run this on Visual Studio/Windows I get:

What kind of project do you have here?  The default Windows C++ project uses a different natvis reader than MIEngine.
I believe MIEngine does not support Loop.
To use MIEngine in Visual Studio, you will need to create a project for WSL or use SSH for a Linux Project.

When I run this on Visual Studio/Windows I get:

What kind of project do you have here?  The default Windows C++ project uses a different natvis reader than MIEngine.
I believe MIEngine does not support Loop.
To use MIEngine in Visual Studio, you will need to create a project for WSL or use SSH for a Linux Project.

Ok. I was confused because in item #1094, you had mentioned:

The VS Code MIEngine and Visual Studio MIEngine are the same and use the same natvis reader.
and i missed the subtlety that windows c+= uses a different natvis reader not MIEngine.
Thanks for clarifying

Ok. I was confused because in item #1094, you had mentioned:

The VS Code MIEngine and Visual Studio MIEngine are the same and use the same natvis reader.
and i missed the subtlety that windows c+= uses a different natvis reader not MIEngine.
Thanks for clarifying

Ah sorry, I should have emphasized Visual Studio MIEngine.
MIEngine is used for the "Linux" scenarios for Visual Studio. This includes using MinGW/Cygwin on Windows, but not projects built for VC++ that use vcxprojs.

Ah sorry, I should have emphasized Visual Studio MIEngine.
MIEngine is used for the "Linux" scenarios for Visual Studio. This includes using MinGW/Cygwin on Windows, but not projects built for VC++ that use vcxprojs.


Pin working version of makeWrapper, unpin nixpkgs

This pins a makeWrapper version right before a breaking commit. It allows to use any nixpkgs tree that is being handed into the root expression again.

Thank you for this patch @nagy - the main repo is nix-cl which is mirrored to GitHub, so I applied it there with the appropriate credit :-).


Suggestion: Tutorial for Jitsi meet/BigBlueButton (Zoom/MS Teams/Skype libre replacements)

Due to the pandemic, many activities are currently held online. In particular, academic activities for schools of different levels all around the world. Many schools and universities are using proprietary Web conference solutions. There are free-libre replacements that need to be setup using a server such as Jitsi meet and BigBlueButton.
With a beginner friendly tutorial, some teachers and other event organizers might be willing to drop their usage of Zoom/MS Teams and go for a libre and privacy respecting solution.

Yes. Good idea. Jitsi I know is pretty simple to set up and also easy to interface with XMPP and Matrix. I haven't used it myself that much, so I will give it some time if someone else more familiar wants to write an article, but otherwise I will make one myself eventually.

I can create the article.

Done 👍🏻 #102

Added.


Consider loosening strict null checks & implicit return checking in the presence of the 'nothing' type

From a discussion with @wycats.
Currently, even if a type is narrowed down to nothing, we still consider control flow errors in those branches even though you might just be handling error cases:
// Error: Not all code paths return a value.
function foo(x: string | number) {
    if (typeof x === "string") {
        return true;
    }
    else if (typeof x === "number") {
        return false;
    }
    fail("Unexhaustive!");
}

function fail(message: string) {
    throw message;
}

Similarly, if you add a type annotation, you'll get an error.
// Error: Function lacks ending return statement but return type lacks 'undefined'
function foo(x: string | number): boolean {
    if (typeof x === "string") {
        return true;
    }
    else if (typeof x === "number") {
        return false;
    }
    fail("Unexhaustive!");
}

function fail(message: string) {
    throw message;
}

The issue here is that 1. the compiler does not know that these conditions are exhaustive, sometimes it involves multiple variables, and 2. we do not know that fail always throws.
we could add a syntactic form of defining that a function always throws, but do not think relaxing the check is the solution. there are valid cases, that you want the compiler to catch.


fix: replace merge() with Object.assign()

Background
In my tests - I often spin up servers as part of beforeEach. In the particular area where I encountered problems is that my test server kept track of incoming requests by a mutable array. Couldn't for the life of me understand why the array was constantly empty, but I think this was the culprit.
To be even more specific, I was testing a websocket trigger/receiver - so I in my tests I dynamically use http.createServer() & later I want to assert that the server received events as after doing specific actions in my app.
TODO

~[ ] docs~ behaviour was not docced before as far as I can tell
~[ ] tests~ seem to have been unchanged as well

Here is the thing I can't do within the context of the current behavior

[Create a server dynamically(https://github.com/calendso/calendso/blob/katt/cal-533-webhooks-e2e-testing/playwright/webhooks.test.ts#L20) <- I want this in a beforeEach
Wait for it to receive a response

webhookReceiver.requestList.length was always 0 when I had this in a beforeEach which was super unintuitive and I thought it was my own code that was broken for half an hour or so. Something in the _.merge() seem to duplicate the array instead of referencing it, which makes this broken.

https://github.com/calendso/calendso/pull/975
Here you can see a clear example of this failing in the first commit and works when I revert it

@KATT you might be interested in the child process provider https://github.com/prisma-labs/konn#standard-providers


Client config should specify API version

I just got this error running snippets/deleteDocsByFilter.js:
Error: Used property "delete" on versionless client - this is deprecated. Please specify API version using `withConfig` - see https://docs.sanity.io/help/studio-client-specify-api-version

I presume these snippets should be updated to use withConfig. Not a big deal, just raising this issue for completeness.

I just created a Pull Request to fix this: #14.


Propagate request ID from context to API auth service calls

Allows tracing into external auth.  (Also good request ID hygiene, of course...)

Thanks!


ImportError: symbol not found in flat namespace '___kmpc_barrier'

CCL installed in conda environment. The package cannot be called successfully.
Error message:
----> 1 import pyccl as ccl

File ~/opt/anaconda3/envs/uEnv/lib/python3.10/site-packages/pyccl/__init__.py:17
     14 del environ, path
     16 # SWIG-generated
---> 17 from . import ccllib as lib
     19 # monkey patch for isitgr and fast-pt if Numpy>=1.24
     20 from packaging.version import parse

File ~/opt/anaconda3/envs/uEnv/lib/python3.10/site-packages/pyccl/ccllib.py:16
     14 # Import the low-level C/C++ module
     15 if __package__ or "." in __name__:
---> 16     from . import _ccllib
     17 else:
     18     import _ccllib

ImportError: dlopen(/Users/shamik/opt/anaconda3/envs/uEnv/lib/python3.10/site-packages/pyccl/_ccllib.so, 0x0002): symbol not found in flat namespace '___kmpc_barrier'

Note: Installation on arm64 M1 Macbook with clang 14.0.6, python 3.10.9

To clarify, ccl was installed using conda? Is openmp installed in the conda env?

Yes, ccl was installed with conda (arm64) distribution. I find llvm-openmp installed in my conda environment.

I see this too! I just tried to install ccl globally from the cloned repository using:
pip install -e .

and I see:
Physics/CCL> python3 -c 'import pyccl'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/Mead/Physics/CCL/pyccl/__init__.py", line 17, in <module>
    from . import ccllib as lib
  File "/Users/Mead/Physics/CCL/pyccl/ccllib.py", line 19, in <module>
    from . import _ccllib
ImportError: dlopen(/Users/Mead/Physics/CCL/pyccl/_ccllib.so, 0x0002): symbol not found in flat namespace '___kmpc_barrier'

This is pyccl-2.6.1 on a Mac with macOS 13.1, Python 3.10.9 and clang 14.0.0. I get a similar error if I install via pip install pyccl, and whether or not I install in an environment. If I do brew install libomp I see that I have the latest version 15.0.7.

I unfortunately can't reproduce this. I tried a fresh conda environment and both the conda and pip versions (pypi and locally) work for me. Tested on macOS 12.6.2, python 3.10 and 3.11, conda clang 14.0.6.

Hmm... could it be anything to do with an Xcode installation, or lack there of? At the moment I only have the command line tools installed, to save space.

That shouldn't matter I think. And especially not in a conda environment with it's own compilers.

@1cosmologist were you able to solve this?

I tried a few combinations of build environments on my mac to try and solve this issue, but unlitmately did not succeed.

I know unsuccessfully linked OpenMP can lead to this error. Maybe try disabling OpenMP when installing ccl from source.

Any updates on this?

Only way I could solve this issue was to link conda libraries rather than brew, e.g.,:
 export LIBRARY_PATH=/Users/boris/opt/miniconda3/lib
export C_INCLUDE_PATH=/Users/boris/opt/miniconda3/include/
export DYLD_LIBRARY_PATH="/Users/boris/opt/miniconda3/li

before import pyccl...


Handle client ids sent with roles on postgres and oracle

Waiting for definition from business product.

All the validation will be happening in the frontend. Since the API will handle different situations, as a team, we decided to keep the API opened, responding to any client ids.
Closing as no needed.


CE's locker now starts with combat gloves

About the PR
Does what it says on the tin.
Screenshots

Changelog

:cl:

tweak: Due to a bureaucratic error at Central Command, the Chief Engineer's locker was incorrectly stocked with insulated gloves instead of combat gloves. This mistake has been rectified, and Chief Engineers will receive the appropriate gloves at the start of the shift.

??? why

the CE doesn't do combat, they're an engineer

the CE doesn't do combat, they're an engineer

Bringing it in line with the fact that atmos techs get the gloves from their vending machine

atmos techs should not be getting anything except insulated gloves. this is standardizing it in the wrong direction

arguably atmos techs dont even need insulateds

atmos techs should not be getting anything except insulated gloves. this is standardizing it in the wrong direction

Alright then, closing this.


regex: expose lower level search APIs

This commit exposes two new areas of API surface:

A new captures_read method which provides a way to access the
offsets of submatches while amortizing the allocation of the
space required to store those offsets. Callers should still of
course prefer to use the higher level captures method, but if
performance dictates, this lower level API may be useful.
New "at" variants of
shortest_match/is_match/find/captures/captures_read that permit
controlling where the start of a search begins within a slice.
This is typically useful for controlling the match semantics of
look-around operators such as ^ and $, and are necessary for
implementing non-overlapping iterators.

Fixes #219

cc @raphlinus I think you mentioned looking for these APIs at one point in the long ago. These have been available as undocumented APIs for quite a while, but now I actually need them for another project and I think they've mostly served me well.

I've been using these new APIs for a bit now and everything feels OK to me. So I'm going to bring this in and push out a new release.


Tries to parse markdown as JSON, fails

Describe the bug
I have a custom private API script for tracking my billable hours, which includes an endpoint that outputs my timeslips for the day in a neatly formatted markdown table. APIRequest doesn't seem able to parse it as markdown, instead consistently failing with Error: Unexpected token '|', " |Project|T"... is not valid JSON
To Reproduce
Steps to reproduce the behavior:
I can't share my actual timekeeping API but I set up a dummy script to illustrate the problem:
curl https://temp.sij.law/table

| ID | Name      | Email            |
|----|-----------|------------------|
| 1  | John Doe  |<EMAIL_ADDRESS>|
| 2  | Jane Smith|<EMAIL_ADDRESS> |

^ all well and good, but:
` ` ` req
url: https://temp.sij.law/table
response-type: md
` ` `

yields this: Error: Unexpected token '|', " | ID | Nam"... is not valid JSON. Feel free to test it using that URL, I'll keep it online for a bit.
Expected behavior
A markdown table would appear.
Screenshots
N/A
Desktop (please complete the following information):

OS: macOS 14.4.1

Additional context
I also tried changing the API to wrap the markdown in a {"markdown": {{markdown_content}}} JSON output, and tell APIRequest to show the contents of "markdown". It does show the contents, but just as a block of text, \n and all -- not properly formatted markdown.

Hey @iodrift,
I believe is done! Please tell me if it works to you.

Thank you for responding so quickly! Unfortunately I'm still getting the same error.
This is the correct syntax, right?
url: https://temp.sij.law/table
response-type: md

yes! it works now.

Glad to hear that.

Thank you very much for the very quick fix :)

My pleasure. :smile:


Yarn: Request failed "404 Not Found"

After beta 6 I cannot install the emulator through yarn unless I change the registry to npm's.
[3/5] Fetching packages...
error<EMAIL_ADDRESS>Request failed "404 Not Found"

Environment details

OS: Debian GNU/Linux 9 (stretch)
Node.js version: circleci/node:10.8-stretch-browsers
yarn version: 1.15.2
@google-cloud/functions-emulator version: beta6

Reinstalling firebase-tools solved this issue.


Allow user to pass attributes to global exposed method

With this PR, the user can pass attributes to the window.area402.openWidget (like shown below) function instead of passing it in the script tag for the widget props.
Click Me!!

Closes #60

:+1: