Relations update and delete

Hi!
I found out that we don't any functionality to simplify cascade updating and deleting of models.
For example:
I have product table Products.
I have table with images for this product ProductImages.
When i remove product i need to remove all associated images.
Guys in Gitter offer me to use database level relations, but in this case images associates with ProductImages will not be removed because removing configured in afterDelete() method.
Im offering to create something like this (part of Products model):
   public function getImages()
    {
        return $this->hasMany( ProductsImages::className(), [ 'product_id' => 'id' ] )->cascadeOnDelete();
    }

What core developer think about this?

Maybe a behaviour?
Desde el celular.
-----Mensaje original-----
De: "Alex"<EMAIL_ADDRESS>Enviado el: 30/04/2015 00:38
Para: "yiisoft/yii2"<EMAIL_ADDRESS>Asunto: [yii2] Relations update and delete (#8230)
Hi!
I found out that we don't any functionality to simplify cascade updating and deleting of models.
For example:
I have product table Products.
I have table with images for this product ProductImages.
When i remove product i need to remove all associated images.
Guys in Gitter offer me to use database level relations, but in this case images associates with ProductImages will not be removed because removing configured in afterDelete() method.
Im offering to create something like this (part of Products model):
public function getImages()
{
return $this->hasMany( ProductsImages::className(), [ 'product' => 'id' ] )->cascadeOnDelete();
}
What core developer think about this?
—
Reply to this email directly or view it on GitHub.

Too much code for simple thing. I think we need to add this option inside framework as i show..

duplicate of #569

or maybe not, but for this:

When i remove product i need to remove all associated images.

you can use foreign key definitions in your database: ON DELETE CASCADE

When i use DB relations YII will not call afterDelete().

okay no, but you can achieve this by implementing afterDelete() in the parent model and related model.

But we can simplify it... Right now im doing it using afterDelete() in Products model...

place show how you would add this. adding it inside the relation definition is not possible because relation returns a query.

Than lets return some new object, lets say ActiveRelation which extends ActiveQuery with few new methods.
Also this object subscribing to events of related models.

Agree with @Alex-Bond
Ability to cascade delete via delete() method would be great.

And how would you do that with shared relation? IE i have a phonenumber. and i have 10 contacts that use that number. I delete 1 contact it should keep the number. Do i delete the other 9. De phonenber should also be removed.

Just dont add cascadeOnDelete() in model.

There are several problems with this feature:
In order to make cascade deleting really(!) cascade, we need to use ActiveRecord::delete() method for this, which means each time you delete a 'Product' all(!) related 'orders ' should be loaded using Order::find()->all(), iterated and deleted one by one, which will trigger deleting 'order payments', which are related to the 'order'.
This will produce a huge perfromance impact.
If we use ActiveRecord::deleteAll(), the perfromance will be acceptable. But only one-level related records can be deleted this way, If you delete a 'Product' only its orders will be removed, but 'payments' linked to the orders will be intact.
Also some NOSQL solutions may lack the support of deleteAll().

@klimov-paul you still can use DB relations, but as i told before - we still need to clean all relatives for models and if model removed in DB than this trash will be not removed.

Its been a year after last message... Any news from core team?

I tend to think we should not implement it. The clean-up logic could vary a lot:

Delete all relation models.
Set all relation keys to nulls.
Leave relations as is.
Set status for all relation models.
...


Turn the sample apps into Typesafe Activator templates

The only catch is that Activator expects the activator.properties file in the root of your SBT project, so when SBT runs, it'll fire up the default project, which for ping-play is the aggregate rootProject and not the sample apps. Is it possible to have two activator.properties files, one in each sample app, even though the build details are in the directory above?

Maybe I don't understand completely the settings on build.sbt, but it's necessary that the sample projects be sub projects?
I understand, like it is now, the dependencies are always updated. But, I think it is no possible to generate activator template in this case.
I'm not very familiarized with creating task on sbt and all the possibilities, would be feasible to have a task to update dependencies on sample projects on compile or publish?

They are sub projects so that a) their dependencies are packaged separately so that including the ping-play jar in an app doesn't pull in a bunch of sample code and b) hot reload works across the sample apps and ping-play itself, so if I change some BigPipe code, I can just refresh the page in a sample app and see the update immediately.
I'm fairly confident the project is structured in a fairly idiomatic way for SBT. It's activator that (I think) makes the assumption that the root SBT project is the one you want. If i was possible to specify a custom sub-project for activator, or to put the .properties file in the subprojects themselves, we'd be in business.


GitHub App configuration support

Hi all,
this PR adds the support for GitHub App in the configuration; it will resolve #11.
The chart must be deployed initially with a set of fake values to be able to invoke the /github-app/setup; when the App itself has been created, one can upgrade the installation with the correct values.
Please review and test as needed, I'll be happy to continue the work on this.

@blacksd do you think you'll be able to address the PR comments soon? I'd be really happy if this becomes available soon. :)

@m1racoli sure, I'll get to it later today 👍🏻

Is there something pending here? Can I help somehow?

Apologies for the delay; I fixed the README and we should be good, now.

sorry to bump this again but can you review @lkysow ? :pray:

Hi, sorry I had to approve the workflow for it to run. Please fix the error.


Youtube - title includes datetime

Checklist

[x] I'm reporting a broken site support issue
[x] I've verified that I'm running youtube-dl version 2021.02.22
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar bug reports including closed ones
[x] I've read bugs section in FAQ

Description

Run the following command
 youtube-dl --print-json --skip-download "ANY_YOUTUBE_LIVE_URL"

gets a YYYY-MM-DD HH:mm datetime in the title field (result in "${TITLE} ${DATETIME}"), affects _filename field and any other fields related with title.
while the 2020-11 version doesn't have it. Is that on purpose?
for example:
> youtube-dl --skip-download --print-json --referer "https://www.youtube.com/feed/subscriptions" "https://www.youtube.com/watch?v=w8sedls02ks" -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--skip-download', '--print-json', '--referer', 'https://www.youtube.com/feed/subscriptions', 'https://www.youtube.com/watch?v=w8sedls02ks', '-v']
[debug] Encodings: locale cp950, fs mbcs, out cp950, pref cp950
[debug] youtube-dl version 2021.02.22
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: ffmpeg 4.3.1-2020-11-19-essentials_build-www.gyan.dev, ffprobe 4.3.1-2020-11-19-essentials_build-www.gyan.dev
[debug] Proxy map: {}
[debug] Default format spec: best/bestvideo+bestaudio
{"extractor": "youtube", ....
"title": "\u3010 90\u4e07\u4eba\u6b4c\u67a0 \u3011\uff19\uff10\u4e07\u4eba\u898b\u5c4a\u3051\u305f\u3044\u306b\u3047\uff5e\uff5e\uff5e\uff5e\uff01\uff01\uff01\u3010\u30db\u30ed\u30e9\u30a4\u30d6/\u3055\u304f\u3089\u307f\u3053\u3011 2021-02-28 19:19",

there's a 2021-02-28 19:19 after original title.

This is expected behavior for live streams.


#include <cppad/example/eigen_mat_inv.hpp> will need to be removed for compatibility

Earlier versions of the CPPAD-interface explicitly include the CppAD header
#include <cppad/example/eigen_mat_inv.hpp>
This header got moved around in the recent releases of CppAD causing version incompatibility.

Has been forwarded to the 2020 releases by @acxz .


Falco running on windows clusters, like windows nano

Can falco support scanning of windows based kubernetes clusters like windows nano?

Ei! Unfortunately no, we don't support Windows OS :/

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle stale

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle rotten

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://github.com/falcosecurity/community.
/close

@poiana: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://github.com/falcosecurity/community.
/close

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.


Test Automation

This is a draft for test automation of C2CS.
Goals
Primary Goal
I already test things by hand to ensure that adding or changing code does not break previous features for code generation of specific C libraries. However this is time consuming. I wish to invest time instead into automating this workflow. What I want is an automated way to know the following things:

Do the C# bindings work? Yes/no.

Do they work for .NET version X?
Do they work for operating system + architecture Y?
Do they work for C# language version Z?

Are the C# bindings the best they could be in terms of performance?

Are all the structs blittable? Yes/no.
Do all the structs match exactly the bit representation found in C? Yes/no.

Do they match exactly for target operating system + architecture?

Secondary Goal
The automated tests, in the form of source code artifacts, can be used as crude form of documentation for people to learn how to do platform invoke. It won't be perfect and it won't be in style of holding hands type of documentation where things are explained step-by-step. However, it will to serve as samples for getting started in direction of the hands-on-imperative; the freedom to explore and understand the technologies around us.
Challenges
The only way to know if C# code bindings for a C library is correct is to actually try using the code bindings. The only way to know if the code bindings are high performance is to actually profile the system live by taking measurements. This implies that the tests will need access to the underlying system and thus are not going to be unit tests. Rather, they are more going to be like integration tests. However, there are some additional challenges:

Calling incorrect C functions from C# or simply just calling them at incorrect times can crash the process.
Capturing and isolating standard streams used by a C library from the C# process itself is complex within the same process.
Measuring the performance of code bindings in a stress test within the same process is complex.

After thinking and experimentation I have a solution to this problem: interprocess communication.
The idea is simple; create one child process for every C library or combinations of C libraries that are going to be tested at once. Then, the parent and child process will communicate over pipes with a heartbeat strategy for periodic signalling of normal operation. If the child process crashes, the parent process can then know that the test failed.
Additionally, Interprocess communication can also significantly reduces the complexity of capturing and isolating standard input, output, and error streams used by the C library. The input/output of the child process can re-directed to the parent process allowing for the possibility of various test scenarios. E.g. a minimal test would be that the hello_world function of a C library would print Hello, world! to standard output.
Also, interprocess communication also significantly reduces the complexity of measuring performance as profiling tools can be used to inspect the process in isolation. This implies that the software necessary for the test harness to work, at least from the perspective of the child process, will need to be lean as possible for the data to resemble something used in production.
Solution brain dump

Start pipe server (parent process) and pipe client (child process).
Build target C library. Implies that C source code projects will need to be added to the repository.
Generate C# code for target C library in parent process. Implies that the artifact output will be written to disk for scope of the test. This will also cover as testing that running the code generator works without error.
Emit C# assembly for generated code bindings in parent process.  Implies that the artifact output will be written to disk for scope of the test. It would be also interesting to add a use case of generating a whole C# project for a C library.
Load C# assembly in child process.
Invoke C# generated extern methods for calling C code in child process.
Redirect standard input, output, error streams of child process to parent process. This implies that the parent process should be able to invoke a C# method of a child process and observe its standard streams.
Communication for the child process needs to be fast for proper profiling; in and out with minimal overhead.

Use one dedicated thread for the test harness in the child process. This includes sending and receiving messages to/from parent process.
Messages should be as small as possible in size of bytes to allow for maximal throughput. This is likely going to be a an effort of trial and error to get this right with CPU data caches.
I for see that this could possibly evolve into a test harness for automating quality assurance of games in some fashion; interesting to think about it, but leave it on the shelf.

Solution libraries
I experimented with doing pipes in C# using .NET libraries but perhaps

Decided to KISS and use manual smoke tests with samples that double up as documentation.


Error on using require('cfenv')

I'm trying to use cfenv for a react project hosted on cloud foundry.
In the app, when I try to use require('cfenv'), I get the following error:
index.js:117 Uncaught TypeError: Arguments to path.join must be strings
    at index.js:117
    at Array.filter (<anonymous>)
    at filter (index.js:287)
    at Object.push../node_modules/path-browserify/index.js.exports.join (index.js:115)
    at getPortsFile (index.js:62)
    at Object.<anonymous> (index.js:13)
    at Object../node_modules/ports/index.js (index.js:65)
    at __webpack_require__ (bootstrap:784)
    at fn (bootstrap:150)
    at Object.<anonymous> (cfenv.js:13)
    at Object../node_modules/cfenv/lib/cfenv.js (cfenv.js:314)
    at __webpack_require__ (bootstrap:784)
    at fn (bootstrap:150)

What am I missing here?

This package can't be used in the browser, it's intended for use on a server.
I'm assuming you're trying to use it in a browser given the references to react and webpack.
Going to close, but re-open if I misinterpreted.


Problem:Transfer the final data to bvh file

HOW TO TRANSFER THE DATA INTO BVH FILE？

I want to transfer the final body posture tensor data matrixand relative angles tensor matrix into a bvh file，but I cant analysis where the data that i want is.
I have tried to extract data from object results in vimo_video.py.But only get results like below

The smpl pose results are saved under "results/you_video_name/hps/*.npy". Each person will have one .npy file. To get the global trajectory, you need to combine those with the camera motion similar to here

The smpl pose results are saved under "results/you_video_name/hps/*.npy". Each person will have one .npy file. To get the global trajectory, you need to combine those with the camera motion similar to here

Thank you for your replying ，I wonder pred_pose，pred_cam,pred_shape , pred_rotmat and pred_trans in vivo_track_0.npy means what?

The smpl pose results are saved under "results/you_video_name/hps/*.npy". Each person will have one .npy file. To get the global trajectory, you need to combine those with the camera motion similar to here

Because I used the data from j3d.pth as skeleton joint data and it looks normal when i preview in the scatter plot

Here are my projects,I will keep trying
https://github.com/ESJIAN/TRAM_DATA_TO_BVH

I have solved that,but I meet new problem .The data in pred_rotmat seems not to be the Euler_angle data of each JOINTS .Where is  the right data I am looking for ？I want use it to fit the motion data of bvh file

I have solved that,but I meet new problem .The data in pred_rotmat seems not to be the Euler_angle data of each JOINTS .Where is the right data I am looking for ？I want use it to fit the motion data of bvh file我已经解决了这个问题，但我遇到了新的问题。pred_rotmat 中的数据似乎不是每个 JOINTS 的Euler_angle数据。我正在寻找的正确数据在哪里 - 我想用它来拟合 bvh 文件的运动数据

Have you solved these issues? I also want to convert files to BVH or FBX, but the characters shake after conversion.


Explore using Model G as the PSV model

In addition to doing runs using TK03, we can explore using Model G of McFadden and McElhinny (1988): https://doi.org/10.1029/JB093iB10p11583. This approach could be numerically more efficient given that VGP scatter which can be calculated using A and B coefficients and then linked to kappa.

The last function of this repo relates kappa (needed as input for the simulation) and latitude given two hardcoded values of A and B:
https://github.com/PolarWandering/PaleoStats/blob/main/dispersion_vs_concentration_vs_latitude.ipynb
It should be quite straightforward to implement, let me know if you need something else @facusapienza21
To

Hi  @facusapienza21 @Swanson-Hysell,
I did some more modifications to the notebook. The final function is something like this, and you can find the rationale to get that in the notebook:
def kappa_from_latitude(latitude, a = 11.23, b=0.27, degrees = False):

    '''
    Input: given a latitude (in radians), and the $a$ and $b$ parameters that best describes the Model G that we want to simulate,
    it returns the theoretical concentration parameter (kappa) that a sample of VGPs would have at any given latitude.
    Notes:
     - we use a power-law fit to find an empirical relation between kappa and angular dispersion (found to be $ S = 72.33 \kappa^-0.50 $)
     - The default $a$ and $b$ values are from Doubrovine et al., (2019) (for the last 10 Ma - PSV10)
    '''
    if degrees == False: latitude = np.degrees(np.abs(latitude_radians))

    S = np.sqrt(a**2+(latitude*b)**2) # approximate model G from Doubrovine et al. 2019

    return 72.33 * np.power(S, -0.5)

Another paleosecular variation model that we can try using is BB18. The paper is here:
https://core.ac.uk/download/pdf/327988575.pdf
The code is here:
https://earthref.org/ERDA/2420/
The code is fast (although I need to engage with it to understand the outputs)

We are currently sampling everything according to the G model, which is equivalent to Fisher with a kappa that depends on the site latitude.

Hi @facusapienza21 , @bramvaes , @duserzym , @Swanson-Hysell , @matdomeier ,  @Swanson-Hysell ,@duserzym ,
I just finished running Figure 1, but sampling from TK03 instead of Model G plus Fisher (there's a 256 cores cluster at the department and nobody uses it... so I don't care about execution time haha). I still have some work to do with the rest of the figures, but so far, I think that sampling from Fisher is just fine. Furthermore, I conducted some quick experiments and observed that for 50 VGPs randomly drawn from TK03 at 45 N, around 50% of them exhibit consistency with a fisher distribution (this relation decreases with increasing N). So, while I fully admit that TK03 is not 100% Fisherian at the vgp level, I think we are doing quite well.


Array index out of bounds on generating report

Hi all, get an error when trying to generate reports.  It's pretty consistently happening on tests that I run where there are some connection/request timeouts.  I can upload the logs from the test where this happens if you need to reproduce.
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -836101361
at io.gatling.charts.stats.buffers.CountsBuffer.update(CountBuffer.scala:35)
at io.gatling.charts.stats.buffers.ResponsesPerSecBuffers.updateResponsesPerSecBuffers(ResponsesPerSecBuffers.scala:32)
at io.gatling.charts.stats.buffers.ResponsesPerSecBuffers.updateResponsesPerSecBuffers$(ResponsesPerSecBuffers.scala:31)

When creating an issue, you are asked to provide the version of Gatling you're using and a way for us to reproduce. Please do so.

The data was generated with 2.2.2,  I found that using 2.3.0 to try and generate the report also errors, but that might be because it was generated with 2.2.2
A attaching the logs
gatling-err.tar.gz

I found that using 2.3.0 to try and generate the report also errors

Indeed, the data is the file is indeed invalid.

that might be because it was generated with 2.2.2

I suspect this is something that was fixed since. Please upgrade to 2.3.0 and report back if you can still reproduce.

@pebert ping

The dependencies of the project don't allow me simply upgrade the version (lots of build errors).  Can you tell me what is wrong with the data file?  I saw an issue earlier with 0s ending in timestamps, which might explain how I can't always reproduce this.

I saw an issue earlier with 0s ending in timestamps

Yes, that's the issue. I suspect this is caused by an old bug in our HTTP client that's been fixed for a long time.
Closing for now. Please reach out if you can upgrade and still reproduce.


Can't deploy because of dependency issue

This is likely being worked on already but the preview-kit dependency with a missing file and directory that just got updated:
https://github.com/sanity-io/preview-kit/pull/127
Seems to affect our ability to build out:
Cannot find module '/vercel/path0/node_modules/.pnpm/next-sanity<EMAIL_ADDRESS>imported from<EMAIL_ADDRESS>Copying and pasting the files resolves the issue but that won't work for a Vercel build relying on accurate versions, and deleting the existing version (or /node_modules/ itself) and reverting doesn't seem to affect things easier.

Hi @vincentjflorio, you're spot on – it should be fixed in<EMAIL_ADDRESS>Let us know if you still encounter this issue.

What I meant to say is, because the latest next-sanity uses

OK, I see. Since next-sanity depends on<EMAIL_ADDRESS>(with the ^) it should resolve to<EMAIL_ADDRESS>automatically. If you're deploying with Vercel, you might need to deselect the "Redeploy with existing Build Cache" option.

Thanks, @mariuslundgard . I will give it a shot right now and report back.

@mariuslundgard That did the trick. Thank you for your time and patience.

Good to hear, sorry for the inconvenience!


helm list revision duplicates.

Output of helm version:
{Client: &version.Version{SemVer:"v2.10+unreleased", GitCommit:"118896b07d48cd064fac0a3f0ac902c0b83050c2", GitTreeState:"clean"}
{Server: &version.Version{SemVer:"v2.10+unreleased", GitCommit:"633faf3f74eb961265d5b3687c3e843c2c2ed1ae", GitTreeState:"clean"}
Output of kubectl version:
Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.0", GitCommit:"6e937839ac04a38cac63e6a7a306c5d035fe7b0a", GitTreeState:"clean", BuildDate:"2017-09-28T22:57:57Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.11", GitCommit:"1df6a8381669a6c753f79cb31ca2e3d57ee7c8a3", GitTreeState:"clean", BuildDate:"2018-04-05T17:16:46Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Hello, I have a question.
I made  helm ls --output json --date --all -m 100 'avito-site-[a-z]+-'
last items in output are same.
{"Name":"name","Revision":1,"Updated":"Mon Jul  8 05:57:03 2019","Status":"DEPLOYED","Chart":"chart","AppVersion":"","Namespace":"namespace"},
{"Name":"name","Revision":1,"Updated":"Mon Jul  8 05:57:03 2019","Status":"DEPLOYED","Chart":"chart","AppVersion":"","Namespace":"namespace"}]}'
Does it normal behavior? What can affect the output to contain duplicates?

@sboishtyan That seems peculiar and a duplicate as you mentioned.
I have been unable to reproduce using the latest ode in master. Investigation as follows:
$ helm ls --output json --date --all
{"Next":"","Releases":[{"Name":"mychart","Revision":2,"Updated":"Tue Jul  9 14:36:12 2019","Status":"DEPLOYED","Chart":"mychart-0.1.0","AppVersion":"1.0","Namespace":"default"},{"Name":"chrt-5996","Revision":1,"Updated":"Tue Jul  9 14:37:03 2019","Status":"DEPLOYED","Chart":"chrt-5996-0.1.0","AppVersion":"1.0","Namespace":"default"}]}

$ helm ls
NAME     	REVISION	UPDATED                 	STATUS  	CHART          	APP VERSION	NAMESPACE
chrt-5996	1       	Tue Jul  9 14:37:03 2019	DEPLOYED	chrt-5996-0.1.0	1.0        	default
mychart  	2       	Tue Jul  9 14:36:12 2019	DEPLOYED	mychart-0.1.0  	1.0        	default

$ helm version
Client: &version.Version{SemVer:"v2.14+unreleased", GitCommit:"4cbbd1046a97ab437425565006bfb85e3d9cdb01", GitTreeState:"clean"}
Server: &version.Version{SemVer:"canary+unreleased", GitCommit:"66d71811e843dce325feeda0a98d528fd425f92f", GitTreeState:"clean"}

Would you be able to upgrade to the latest version of Helm 2.14.1 and see if the issue can be reproduced then?

@sboishtyan That seems peculiar and a duplicate as you mentioned.
I have been unable to reproduce using the latest ode in master. Investigation as follows:
$ helm ls --output json --date --all
{"Next":"","Releases":[{"Name":"mychart","Revision":2,"Updated":"Tue Jul  9 14:36:12 2019","Status":"DEPLOYED","Chart":"mychart-0.1.0","AppVersion":"1.0","Namespace":"default"},{"Name":"chrt-5996","Revision":1,"Updated":"Tue Jul  9 14:37:03 2019","Status":"DEPLOYED","Chart":"chrt-5996-0.1.0","AppVersion":"1.0","Namespace":"default"}]}

$ helm ls
NAME     	REVISION	UPDATED                 	STATUS  	CHART          	APP VERSION	NAMESPACE
chrt-5996	1       	Tue Jul  9 14:37:03 2019	DEPLOYED	chrt-5996-0.1.0	1.0        	default
mychart  	2       	Tue Jul  9 14:36:12 2019	DEPLOYED	mychart-0.1.0  	1.0        	default

$ helm version
Client: &version.Version{SemVer:"v2.14+unreleased", GitCommit:"4cbbd1046a97ab437425565006bfb85e3d9cdb01", GitTreeState:"clean"}
Server: &version.Version{SemVer:"canary+unreleased", GitCommit:"66d71811e843dce325feeda0a98d528fd425f92f", GitTreeState:"clean"}

Would you be able to upgrade to the latest version of Helm 2.14.1 and see if the issue can be reproduced then?

I can't upgrade helm now. I realized that behavior seems peculiar and happens not in 100%.
All I want to know that behavior is wrong. And I need an update or ad-hoc this before the update.

Ok, understand. Behaviour seems wrong.


airflow_log_cleanup_workflow module docs are invalid markdown

Description

The following two lines produce invalid markdown due to the angle brackets used to surround the type annotations:
https://github.com/WordPress/openverse/blob/97dba8e4e53c888cf854dd940272489bc146399d/catalog/dags/maintenance/airflow_log_cleanup_workflow.py#L19-L20
This causes an issue for e.g., prettier parsing the DAG docs file:
documentation/_serve/catalog/reference/DAGs.html
[error] documentation/_serve/catalog/reference/DAGs.html: SyntaxError: Unexpected closing tag "p". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags (1292:40)
[error]   1290 |
--conf options:

[error]   1291 |

[error] > 1292 |

maxLogAgeInDays:<INT> - Optional

[error]        |                                        ^^^^
[error]   1293 |

enableDelete:<BOOLEAN> - Optional

[error]   1294 |

[error]   1295 |

Changing these to use some other syntax to annotate the type would solve this. The angle bracket syntax isn't used anywhere else, and the types do not correspond to JSON types, which is the input format, nor exactly match Python type names, so I'm not sure if this is following some specific but unfamiliar to me syntax for annotation.
Fix
We can fix this by changing these to use parenthesis.

The file referenced looks like it's the produced HTML for our documentation site, which is in documentation/_serve 🤔 I'm not sure that's something prettier should be running on in most cases (particularly ov just lint)...either way, easy enough fix.

The file referenced looks like it's the produced HTML for our documentation site, which is in documentation/_serve

Oh, true, I hadn't noticed that. Probably worth an issue for that one! It might have been the way I was running prettier at the time, though, I haven't seen this error come up when running it again.
On the other hand, we probably should validate the HTML output, if this kind of thing is possible, provided we want the HTML output to be valid :sweat_smile:
I'm guessing if we did need angle brackets we'd actually need to transform them (at which step I'm not sure) into HTML escape sequences, like you would when wanting to render angle brackets in HTML anyway.


DB password change not saving in Superset

Bug description
As we rolled out superset into production, we changed the database password. The same was changed in Superset Settings->Data Connections as well. However, none of the datasets are now loading as the schema loading fails. Also see in the logs that password authentication has failed. For some reason, although the password was changed in Superset reflecting new password, the datasets are failing to load the schema.
How to reproduce the bug
Start new installation of Superset with psycopg2. . Add a Data Connection pointing to Postgres db. Load a new Dataset / table into superset.
Next change the password in postgres DB. In Superset, click on Settings->Data Connections and edit the Database password to reflect the new password. Once database password is saved in Superset, go back and click on Data Connection. Database schema loading fails.
Screenshots/recordings
No response
Superset version
3.1.0
Python version
3.10
Node version
16
Browser
Chrome
Additional context
No response
Checklist

[X] I have searched Superset docs and Slack and didn't find a solution to my problem.
[X] I have searched the GitHub issue tracker and didn't find a similar bug report.
[X] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Closing this issue as stale, but if you're still facing it and can provide any additional context (i.e. logs) that might help us troubleshoot this, we can certainly reopen it. Let us know where things stand, and we can go from there. Thanks!


fix: zerionApi schema nullable fields

Description

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[ ] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

closes #
Risk

Testing

Engineering

Operations

Screenshots (if applicable)

Current dependencies on/for this PR:

develop

PR #5125   👈

This comment was auto-generated by Graphite.


Model exception handling

Priority
Priority: low
PR as proposed is just a convenience feature for developers and does not affect a production environment.
What Changed & Why
With the current version (v2.0.3) if the query builder is used to reference a model which is not defined, eventually code execution just fails with no feedback other than an attempt to access an 'options' property on an undefined object. This is a simple change to communicate which model lookup failed.
Testing
List step-by-step how to test the changes.

[ ] Attempt to construct an API URL/query using a model type which is not defined
[ ] Check console and see an Error message.

In Progress/Follow Up
I included an example unit test however it is currently disabled. IT DOES NOT WORK. Basically I am not familiar with this unit tester and I am not sure how to include an "expect an error to be thrown" test. Please review and adjust, thanks.

Cool - added a couple review comments, happy to merge when they are resolved

I'm sorry but I can't get the unit test to work. I cannot figure out how to make it detect the error being thrown. I'm sure it has some messy thing to do with function context stuff. I have left the "skip" flag still on it so that the test passes. Maybe you can figure out how to test for an error being thrown?
Note documentation for Mocha cautions against use of arrow functions as it messes with its context. I have tried running this test with and without arrow functions. In its current form the code executes successfully however it reports that an error is not being thrown.
Reference docs:
https://github.com/Automattic/expect.js
https://mochajs.org/#asynchronous-code

So, looking through the code a bit...
I approached this need for an exception to be thrown through the serializer, where "modelFor()" is called here:
https://github.com/twg/devour/blob/fef4e33a10953fab0d71262294e457cca205645b/src/middleware/json-api/_serialize.js#L10
For the deserializer, I found this error call here which checks the result for "modelFor()"
https://github.com/twg/devour/blob/fef4e33a10953fab0d71262294e457cca205645b/src/middleware/json-api/_deserialize.js#L39
I embedded the exception within "modelFor()", making the exception call in the deserializer redundant.
So, I suggest that if the exception within "modelFor()" is proven to work then the one in the deserializer can be removed. Agreed?

Hey – no worries about the test. Just leave the .skip in and hopefully someone will come along and sort it out.
All I'd ask for now is that you get this in sync with master so I can click the merge button.
Thanks!

Can I dump the error check in the deserializer as proposed above? In that case I'll take the error message from the deserializer check and use it in the modelFor() check, adjusting it to use a template literal.

I went ahead and removed the other error check, but kept my message just because it's shorter (for fewer bytes).
Also merged changes so you should be good to go.

👏  👏  👏

👏  👏  👏


Merge main into my branch

Merge main into my branch

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://66c37be0329d73131a68b8ef--harness-developer.netlify.app


Always fire event for custom plugins

Custom plugins should always fire a custom:* event, making the event property optional with fallback to id.

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

GitHub release
v6.38.0

Your semantic-release bot :package::rocket:


Can we call custom pdf plugin in bootstrap plugin?

while generating html5 output using html5-bootstrap plugin can I call custom pdf plugin and generate 2 outputs in same destination?
if possible, then how can I archive this.

You wouldn't do this directly using the bootstrap plugin.  The way to do this is to make sequential calls to build HTML and PDF outputs, and define the relevant parameters using  project files
Alternatively if your project contains multiple deliverables, you can pass the --deliverable option to generate output for a single deliverable ID.
dita --project=all.xml --deliverable=pdf

There is also the possibility to integrate your output generation using Github Actions - this could create HTML, create PDF and push them both to a web-server. You can see a same workflow here with the result here.
In summary, you'll need some underlying DITA-OT call that creates the PDF, some underlying DITA-OT call that creates the HTML, and something to aggregate the outputs in the correct location - how you achieve this with your infrastructure is  up to you, and not defined within an individual plugin.


Issues with compose build

tar xf doesn't seem to work properly but this fixes it.
Step 12 : RUN cd /tmp &&   wget http://humdi.net/vnstat/vnstat-1.16.tar.gz &&   tar xf vnstat-1.16.tar.gz &&   cd vnstat-1.16 &&   ./configure &&   make &&   make install
 ---> Running in 0d3a242bdbe4
--2017-01-08 03:38:03--  http://humdi.net/vnstat/vnstat-1.16.tar.gz
Resolving humdi.net... <IP_ADDRESS>, 2a01:7e00::f03c:91ff:fe37:3421
Connecting to humdi.net|<IP_ADDRESS>|:80... connected.
 ;)

Before I open a PR, do you know why pip3 would be failing?
Maybe pip and pip3 need to be run after they've been installed?
Step 16 : RUN apk add python python3 py-pip &&   pip install --upgrade pip &&   pip install cymysql &&   pip install pynntp &&   pip install socketpool &&   pip list &&   pip3 install --upgrade pip &&   pip3 install cymysql &&   pip3 install pynntp &&   pip3 install socketpool &&   pip3 list
 ---> Running in 891fc19eedbc
(1/6) Installing gdbm (1.11-r1)
(2/6) Installing readline (6.3.008-r4)
(3/6) Installing python (2.7.12-r0)
(4/6) Installing py-setuptools (18.8-r0)
(5/6) Installing py-pip (7.1.2-r0)
(6/6) Installing python3 (3.5.1-r0)
Executing busybox-1.24.2-r0.trigger
OK: 397 MiB in 109 packages
Collecting pip
  Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
Installing collected packages: pip
  Found existing installation: pip 7.1.2
    Uninstalling pip-7.1.2:
      Successfully uninstalled pip-7.1.2
Successfully installed pip-9.0.1
Collecting cymysql
  Downloading cymysql-0.8.9.tar.gz
Installing collected packages: cymysql
  Running setup.py install for cymysql: started
    Running setup.py install for cymysql: finished with status 'done'
Successfully installed cymysql-0.8.9
Collecting pynntp
  Downloading pynntp-0.8.4.tar.gz
Collecting dateutils (from pynntp)
  Downloading dateutils-0.6.6.tar.gz
Collecting argparse (from dateutils->pynntp)
  Downloading argparse-1.4.0-py2.py3-none-any.whl
Collecting python-dateutil (from dateutils->pynntp)
  Downloading python_dateutil-2.6.0-py2.py3-none-any.whl (194kB)
Collecting pytz (from dateutils->pynntp)
  Downloading pytz-2016.10-py2.py3-none-any.whl (483kB)
Collecting six>=1.5 (from python-dateutil->dateutils->pynntp)
  Downloading six-1.10.0-py2.py3-none-any.whl
Installing collected packages: argparse, six, python-dateutil, pytz, dateutils, pynntp
  Running setup.py install for dateutils: started
    Running setup.py install for dateutils: finished with status 'done'
  Running setup.py install for pynntp: started
    Running setup.py install for pynntp: finished with status 'done'
Successfully installed argparse-1.4.0 dateutils-0.6.6 pynntp-0.8.4 python-dateutil-2.6.0 pytz-2016.10 six-1.10.0
Collecting socketpool
  Downloading socketpool-0.5.3.tar.gz
Installing collected packages: socketpool
  Running setup.py install for socketpool: started
    Running setup.py install for socketpool: finished with status 'done'
Successfully installed socketpool-0.5.3
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
cymysql (0.8.9)
dateutils (0.6.6)
pip (9.0.1)
pynntp (0.8.4)
python-dateutil (2.6.0)
pytz (2016.10)
setuptools (18.8)
six (1.10.0)
socketpool (0.5.3)
/bin/sh: pip3: not found
ERROR: Service 'nzedb' failed to build: The command '/bin/sh -c apk add python python3 py-pip &&   pip install --upgrade pip &&   pip install cymysql &&   pip install pynntp &&   pip install socketpool &&   pip list &&   pip3 install --upgrade pip &&   pip3 install cymysql &&   pip3 install pynntp &&   pip3 install socketpool &&   pip3 list' returned a non-zero code: 127

Okay, python3 -m ensurepip  fixes the pip3 issue but now I'm stuck on the PHP modules installing.
Did the build work for you? Seems quite a bit of it is broken.

Bumping the Alpine version seems to have done the trick with getting PHP 5 installed correctly.

This is really weird. I tested the build thoroughly, like 20 times. Which OS and Docker version are you building on?

 RUN apk add ffmpeg unrar lame p7zip

-# Install Python modules.
+# Install Python 2 modules.
 RUN \
-  apk add python python3 py-pip && \
+  apk add python py-pip && \
   pip install --upgrade pip && \
   pip install cymysql && \
   pip install pynntp && \
   pip install socketpool && \
-  pip list && \
+  pip list
+
+# Install Python 3 modules
+RUN apk add python3 && \
+  python3 -m ensurepip && \
+  rm -r /usr/lib/python*/ensurepip && \
+  pip3 install --upgrade pip setuptools && \
   pip3 install --upgrade pip && \
   pip3 install cymysql && \
   pip3 install pynntp && \

Now I see the problem. I built on 3.5. Could you check if it builds correctly as is with 3.5? I have probably overlooked updating the version from 3.3 to 3.5 before committing.

Will do.

In case that does not work, just use alpine as an image. That's what I started out with. 3.5 should be identical.

It was working fine in 3.4 but 3.5 throws errors.
Step 16 : RUN apk add python python3 py-pip &&   pip install --upgrade pip &&   pip install cymysql &&   pip install pynntp &&   pip install socketpool &&   pip list &&   pip3 install --upgrade pip &&   pip3 install cymysql &&   pip3 install pynntp &&   pip3 install socketpool &&   pip3 list
 ---> Running in d460b5f12642
ERROR: unsatisfiable constraints:
  py-pip (virtual):
    provided by: py2-pip
    required by: world[py-pip]
ERROR: Service 'nzedb' failed to build: The command '/bin/sh -c apk add python python3 py-pip &&   pip install --upgrade pip &&   pip install cymysql &&   pip install pynntp &&   pip install socketpool &&   pip list &&   pip3 install --upgrade pip &&   pip3 install cymysql &&   pip3 install pynntp &&   pip3 install socketpool &&   pip3 list' returned a non-zero code: 1

Just using aplinecauses the same error as above.

Fixed by PR #5


bitwarden: 1.24.6 -> 1.25.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/bitwarden/desktop/releases.
meta.description for bitwarden is: "A secure and free password manager for all of your devices"
meta.homepage for bitwarden is: "https://bitwarden.com"
meta.changelog for bitwarden is: ""
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 1.25.0 with grep in /nix/store/jband8dgxn7qlkchv4n871gkapippisl-bitwarden-1.25.0

directory tree listing: https://gist.github.com/29982006f48d7a3ecd5da564ea89d9a4

du listing: https://gist.github.com/84013623f39e183059b1d87397e7377a

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
0 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
0 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
bitwarden

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/jband8dgxn7qlkchv4n871gkapippisl-bitwarden-1.25.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A bitwarden https://github.com/r-ryantm/nixpkgs/archive/0dc38f731e3352260df208ae54a3662c6b34fc8f.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/jband8dgxn7qlkchv4n871gkapippisl-bitwarden-1.25.0
ls -la /nix/store/jband8dgxn7qlkchv4n871gkapippisl-bitwarden-1.25.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

bitwarden

Maintainer pings
cc @Kiwi for testing.

obsolete


cyctl install Cyclops command

Feature Request
cyctl should be able to install Cyclops into your cluster.
Solution
Implement a command that installs the latest Cyclops version into your cluster (with the CRDs and default templates) → cyctl init
It should have the same functionality as this command:
kubectl apply -f https://raw.githubusercontent.com/cyclops-ui/cyclops/v0.6.2/install/cyclops-install.yaml &&
kubectl apply -f https://raw.githubusercontent.com/cyclops-ui/cyclops/v0.6.2/install/demo-templates.yaml

Hey, I am working on this. I was thinking if a subcommand for specifying the version would be a good idea? (latest would be the default)

yeah, you can fallback to main if no version provided. Will assign you to the issue


Silex Validator ConstraintValidatorFactory missing Expression

Silex\ConstraintValidatorFactory is missing code to address Expression constraint creation.
Comparing it to Symfony\Validator\ConstraintValidatorFactory, I think that changing createValidator method as follows:
private function createValidator($name)
{
    if (isset($this->serviceNames[$name])) {
        return $this->container[$this->serviceNames[$name]];
    }

    if('validator.expression' === $name) {
         return new \Symfony\Component\Validator\Constraints\ExpressionValidator();
    }

    return new $name();
}

should be sufficient.

Can you create a pull request and add some tests for this?

I'll start it ASAP.
----Messaggio originale----
Da<EMAIL_ADDRESS>Data: 14/07/2015 8.49
A<EMAIL_ADDRESS>Cc<EMAIL_ADDRESS>Ogg: Re: [Silex] Silex Validator ConstraintValidatorFactory missing Expression (#1191)
Can you create a pull request and add some tests for this?
—
Reply to this email directly or view it on GitHub.


Check token price-id on chain-list

Same as https://github.com/orgs/Koniverse/projects/2/views/6#:~:text=Review %26 update priceID
=> Close this issue


Extension chrome

This is an extension on top of the current experimental chrome API that handle every *.pdf files (not based on mimetype - there is no such API for that yet) and redirect it to pdf.js.

@andreasgal @arturadib @brendandahl @notmasteryet any of you guys have experience with Chrome extensions?  I don't.

@benadida Here the pull request about the chrome extension.
It should be very fast to review, that's only 52 lines of code:

Most of the lines are changing the Makefile and I don't really need you to spend time reviewing that

the extension manifest is 11 lines of code and the only thing that worth a shot is probably the 'permissions'.
I'm using 'experimental' API because I have nothing else that fit my need, I want to handle appliation/pdf files but there is no API for handling mimetypes. Even the experimental API does not fit my need completely, it allows only to handle files based on the extension. But that's better than nothing. This can be fixed later.

The JS code is actually 10 lines of code!

Thanks in advance.

I suggested a couple of small tweaks (see the commit comments), but otherwise agree with your point that you have no way to do this except via the experimental API for now.

@benadida Could you explain the functionality that the experimental API provides? I'm aware of a few extensions including an official one by Google that let you view PDFs in google docs. They just rewrite all *.pdf links into google docs links. Could it be possible to do something similar and rewrite links to be loaded by a local PDF.js?

@ayumi The experimental API provides the ability to handle a *.pdf link when a request to load it is done.
Here is the pros and cons of the Google's approach as I see it (feel free to correct me or to add items to the list!):

Pros

Do not use the experimental.* API's. This will let us distribute the extension officially on their website.

Cons

Do not works if the document is loaded with JavaScript or if it's loaded via a redirect URL
Modify the DOM of the real page

Also please note that none of this solution is correct. In my opinion handling the application/pdf mimetype is the way to go.

Do you know if our use of mozCurrentTransform and mozCurrentTransformInverse breaks a lot of docs on Chrome?

No idea :)


Suggest: remove default throw behavior

Suggestion: We silently swallow errors vs throwing, thereby preserving the page layout and properly rendering at least unhighlighted code blocks (class 'hljs', etc) rather than potentially doing NOTHING leaving the page in an even uglier state.
This should already be an edge case, the question is would it be nicer to go ahead and do our best to recover vs just giving up? I think in many types of failure conditions (such as a single broken/incompatible language) this would be preferable to the WHOLE library failing to work.
--- a/src/highlight.js
+++ b/src/highlight.js
@@ -749,7 +749,12 @@ https://highlightjs.org/
           value: escape(value)
         };
       } else {
-        throw e;
+        console.error(...);
+        return {
+          relevance: 0,
+          value: escape(value),
+          errorRaised: e.message
+        }
       }
     }
   }

Related (examples of this type of error):

https://github.com/highlightjs/highlight.js/pull/2271
https://github.com/highlightjs/highlight.js/issues/2263

I think in many types of failure conditions (such as a single broken/incompatible language) this would be preferable to the WHOLE library failing to work.

It would be preferable for users, but when you are developing a new grammar you'd like to get errors. Maybe we need both behaviours (some API parameter for a strict mode, turned off by default, but on in developer.html)?

Sure. I’m fine with a flag to enable the prior behavior for debugging/development. Some type of auto detect would be even cooler but I’m not sure what we could reliably key that off of. Perhaps localhost or file:// could auto trigger debug mode or is that over thinking it?  In addition to manually enabling.

Perhaps localhost or file:// could auto trigger debug mode

Sounds reasonable.


Resource owner grant type for OAuth support

Docs should also be updated, I think.

@leleuj I see you have pushed a few more commits. Is this patch ready? Shall we proceed?

Yes, the patch is ready, and most changes were innocuous. Though, I haven't been able to re-test it as service tickets seem to expire immediately in the latest CAS snapshot.
This won't be the latest pull request on the topic, I think we can merge it.

Perfect, thanks. I can run some tests as well if needed. It's likely related to the new expiration policy changes. What is the client you typically use to duplicate that issue?

I use the: https://github.com/pac4j/play-pac4j-java-demo and the: https://github.com/leleuj/cas-pac4j-oauth-demo
Starts both. On locahost:9000, click on CAS, you will be redirected to the OAuth server CAS (/cas2) for login and you should come back authenticated in the Play app.

Thanks. We can resume work easier once this goes in.

Running tests. Stand by please.


As a user I would like a polished games challenge set with easy to read documentation.

This task is to polish up the games challenge set.
Subtasks

[x] Edit documentation for clarity, ensure it has all of the "actions" that the user must be able to do.
[x] Play through the games to ensure that they work correctly.

Forgot to attach to PR #203.


Handle line-wrapping of encoded data in the header

We currently assume that all encoded data is contiguous, which is fine for X25519 and scrypt recipients, but will fail on headers containing ssh-rsa recipients.

The spec has been updated to indicate that wrapping is specific to ssh-rsa recipients, so this is now subsumed by #6.


Upgrading to Connection Dialog v2 - problems with schema discovery

About You:
Company: Elastic
Your question:
I'm trying to upgrade our connector to use Connection Dialog v2.
Since we do not have a Schema, our connector has <customization name="CAP_JDBC_SUPPRESS_ENUMERATE_SCHEMAS" value="yes"/>
With Dialog v1 everything works fine and when the user logs in and clicks on a database, the corresponding table names are loaded and displayed.
Migrating to Dialog v2, even after clicking on the database name, no tables are displayed. I tried to debug it on our end and I see that no queries are being performed to load the table names.
Further investigating the configuration, I found that I can make Tableau display the tables only by disabling "database" and "schema" in the connection metadata.
Unfortunately this is not a solution for us, since it would impact some of the functionalities we have today with v1.
Is this a known problem?
Thanks
Luigi

Added to internal backlog

For the scenario you describe, Database and Table are supported, I think the connectionMetadata.xml file would look like this:
<connection-metadata>
  <database enabled='true' label="Database" />
  <schema enabled='false' />
  <table enabled='true' label="Table" />
</connection-metadata>

Depending on the design of the JDBC driver this usually is enough to prevent the getSchemas call without needing to also add <customization name="CAP_JDBC_SUPPRESS_ENUMERATE_SCHEMAS" value="yes"/>
It may be helpful to share the Connection Dialog V1 file as well if this doesn't resolve the issue.
For reference The Connection Metadata File doc section and the postgres_jdbc sample with a connectionMetadata.xml.

Please add a note if you'd like to see this issue reopened, thanks.


Add python_requires to setup.py

Fixes #321

Thanks, I rebased and merged (as I made changes in setup.py a few minutes ago).


[FLINK-33749][core] Remove deprecated getter and setter method in Configuration.

What is the purpose of the change
[FLINK-33749][core] Remove deprecated getter and setter method in Configuration.
Brief change log
[FLINK-33749][core] Remove deprecated getter and setter method in Configuration.
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@flinkbot run azure

@flinkbot run azure

@flinkbot run azure

@flinkbot run azure

@flinkbot run azure


Vulnerability roundup 66: zziplib-0.13.69: 1 advisory

search, files

[x] CVE-2018-16548 (nixos-unstable)

Scanned versions: nixos-unstable: d2602779281. May contain false positives.

758b2e457 is in master.


Connectivity and file access problems reported for test machine test-azure-win2012r2-x64-1 - preventing JDK12 testing

Consistently fails with ...
Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from <IP_ADDRESS>/<IP_ADDRESS>:51034
		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
		at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
		at hudson.remoting.Channel.call(Channel.java:955)
		at hudson.FilePath.act(FilePath.java:1072)
		at hudson.FilePath.act(FilePath.java:1061)
		at hudson.FilePath.deleteContents(FilePath.java:1283)
		at hudson.plugins.git.extensions.impl.WipeWorkspace.beforeCheckout(WipeWorkspace.java:30)
		at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1172)
		at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:120)
		at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:90)
		at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:77)
		at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
		at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
		at java.util.concurrent.FutureTask.run(FutureTask.java:266)
		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
		at java.lang.Thread.run(Thread.java:748)
java.nio.file.AccessDeniedException: C:\Users\jenkins\workspace\openjdk12_j9_openjdktest_x86-64_windows\openjdk-tests\TestConfig\test_output_15526538561209\jdk_util_0
	at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
	at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
	at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
	at sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(Unknown Source)
	at sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(Unknown Source)
	at sun.nio.fs.WindowsFileSystemProvider.readAttributes(Unknown Source)
	at java.nio.file.Files.readAttributes(Unknown Source)
	at hudson.Util.isSymlink(Util.java:531)
	at hudson.FilePath.deleteRecursive(FilePath.java:1295)
	at hudson.FilePath.deleteContentsRecursive(FilePath.java:1314)
	at hudson.FilePath.deleteRecursive(FilePath.java:1296)
	at hudson.FilePath.deleteContentsRecursive(FilePath.java:1314)
	at hudson.FilePath.deleteRecursive(FilePath.java:1296)
	at hudson.FilePath.deleteContentsRecursive(FilePath.java:1314)
	at hudson.FilePath.access$1800(FilePath.java:213)
	at hudson.FilePath$DeleteContents.invoke(FilePath.java:1289)
	at hudson.FilePath$DeleteContents.invoke(FilePath.java:1285)
	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3086)
	at hudson.remoting.UserRequest.perform(UserRequest.java:212)
	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
	at hudson.remoting.Request$2.run(Request.java:369)
	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
	at java.lang.Thread.run(Unknown Source)

This is the only Windows test machine currently available.
https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk12_j9_openjdktest_x86-64_windows shows the same failures for the last 5 days of attempts. We consequently have no test results for the release candidate build and little recent history for triaging purposes.
Curiously, no such problems for 11 and 8 pipelines (https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk11_j9_openjdktest_x86-64_windows and https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk8_j9_openjdktest_x86-64_windows).

Appears to be consistently failing to access directory C:\Users\jenkins\workspace\openjdk12_j9_openjdktest_x86-64_windows\openjdk-tests\TestConfig\test_output_15526538561209\jdk_util_0 during cleanup phase each time and this is sufficient to prevent execution of any tests.
Aside resolving this specific problem rapidly, by force deleting the directory in question using an administrator session, investigation should be made to determine how the directory in question got into this state.
Consideration should be given to whether such a failure should prevent tests being executed.

Job before these is reporting failures to clean up files - possibly the trigger ? - https://ci.adoptopenjdk.net/view/Test_openjdk/job/openjdk12_j9_openjdktest_x86-64_windows/9/consoleText

That's a new (to me) one ...

The jdk_util_0 subdirectory is in a similar state (same message as above) but doesn't even have an owner somehow (!) and I'm struggling to do anything with it

Seems it was in an odd state due to a java process that was holding something in it - have now deleted them - not seen anything quite like this on Windows before but it should now be resolved.


Inherit access url from root application if shared app doesn't have a specified URL

Purpose
$Subject

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/8796922676

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/8796922676
Status: success


feat: Add constitutive laws

add base abstract class of constitutive law objected
add some class implementation for some common constitutive laws (elastic, elastic-plastic, parabola rectangle and user-defined
the functions accept a float, a list or a numpy array

TODO:

[ ] implement more tests
[x] implement get_secant method

Continued in #27.


A-la httpstat report output

httpstat has a very simple to understand graphical command line report of which part of the requests too most. Perahps offer a similar report visualisation on vegeta as well?
https://github.com/reorx/httpstat

Yes, it looks nice but I don't see any particular value in making vegeta output that same format.


[BUG] NAM GUI not picking best ESR

When using customized settings in core.py and a custom test tone to train a difficult to train fuzz pedal, I'm finding that the ESR of the final NAM file that gets saved and it's corresponding plot are not the lowest ESR saved under checkpoints.
To Reproduce

Download Custom test tone, core.py file, and HP-1 5.wav as the output file from https://drive.google.com/drive/folders/1-8L01n2AvVHaEbSvooUjTumyj-VXeBBk?usp=sharing
Replace Core.py in nam/train with the downloaded core.py file.
You man need to change num workers value in core.py depending on your machine. I have it set to 12. default is 0.
Open Anaconda Prompt, activate and run nam.
Select the custom test tone for the input, HP-1 5.wav as the output.  Store finished nam file wherever you choose.
click advanced and change Epochs to 30.
Run it.
Look under the lightning logs / version / checkpoints folder and compare ESR scores with the final score from Running nam.

Expected behavior
The finished .nam file and corresponding plot png should show the lowest ESR score that you see under checkpoints.  But it doesn't do that.
Screenshots

Desktop (please complete the following information):

OS Windows 11 Pro 22H2 22621.1702
Running locally.
NAM version 0.5.3

Additional context
Changes I made to Core.py

delay to 0
Dilations value to 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512
num workers to 12
lr to 0.001
lr decay to 0.001
input_version: Optional[Version] = Version(1, 1, 1),
save_top_k from 3 to 10
added ESR to current checkpoint  - pl.callbacks.model_checkpoint.ModelCheckpoint(
filename="checkpoint_last_{epoch:04d}{step}{ESR:.4f}_{MSE:.3e}", every_n_epochs=1

I tried using the same core.py with the standard versoin 1_1_1 test tone file and a less distorted less complex output file from the same fuzz pedal and didn't have this issue.  However with 100 Epochs, my best ESR was 0.1192.  It took less time with shorter / smaller wav files, but wasn't as accurate even with more epochs.  It's possible my custom test tone file is causing the issue.  It's also possible that more data, and processing a more complex output could be exposing the issue.
Thank you for looking into this, and thank you for all your hard work on this project!  It's really inspiring, I've learned a lot about machine learning because of you, and you've made it possible for me to model a rare fuzz pedal that my grandpa, who passed away in 1993, built.  And that's really important to me on a personal level.

I just looked up some info on padding in a neural network.  It sounds like padding is added to preserve the data at the edges of the matrix which should give you more accuracy.  So you’re saying that the validation during training is losing some data and not quite as accurate as the final plot which is using padding as specified in the model?
If that’s true, it could be picking the best check point, but when it uses padding, the ESR score is higher?
To clarify, if I use the last 10 seconds of the original test tone file, I’m getting a little bit of that wobbly guitar before it’s silent.  Would it be better to just add a second of silence before the last 9 seconds validation?
I agree that ESR doesn’t tell the full story.  But I’ve found that better ESRs are giving me better results when doing a null test.  To be clear, the info I shared above was a less gpu intensive version of what I've been doing to reproduce the bug.  To get good results with this, I'm using even more dilations, and running 500 epochs.  But the results are worth it.  After 13 hours, I'm getting an ESR of 0.0010 in the checkpoints and about -30db in the null test.  I was getting about -17 or so and some transient spikes before.  Plus, what's left over seems to be mostly white noise now.
But I also have seen people with higher ESRs do better than I am on a null test.  And a null test doesn’t necessarily tell the full story either.  What really matters is how it sounds and feels when you play through it.

I tried adding 1 second of silence before the last 9 seconds of the original file.  That seems to have fixed the issue.  And you were right, I'm getting a little better ESR scores as well.
I'm not totally sure what was causing that low frequency ringing to begin with.  I still had it after taking the pedal out of the loop.  So either my Little Labs Redeye DI/Reamp boxes, or my apollo x4.  The pedal seemed to amplify it, so I would guess it's my little labs redeye reamp box.  I know EQ can cause phase shift, and at first I thought maybe it was the antialiasing filter in my converters, but it seems like kind of a lot of ringing for it to be eq related.
For now, I'm happy with the models I'm getting, and I'm glad it wasn't a bigger issue.
Thanks again for you help!

Great! Going to close this and we can work on a feature that makes sure others don't make this mistake in #252.


yarn2nix: use yarn lockfile integrity field whenever possible

Whenever available use the SRI hashes from the integrity field to create
the fetchurl calls instead of entirely relying on the resolved sha1
which may or may not exist with recent yarn versions.
Also introduce offline option which is useful when yarn.nix is generated
in IFD mode with no network access.
Related issues:

https://github.com/nix-community/yarn2nix/issues/125
https://github.com/NixOS/nixpkgs/issues/77238

Motivation for this change
Things done

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

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

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

Speaking of which, yarn2nix also needs to fix invalid parsing of Git URLs without the git+https prefix.

Turns out the functionality of --offline is actually handled by --no-patch since https://github.com/NixOS/nixpkgs/commit/b27d18a412b071f5d7991d1648cfe78ee7afe68a.

It might also be useful to skip fixPkgAddMissingSha1 when pkg.integrity is present since the resolved sha1 will presumably be not necessary in that case.

@jtojnar Great that you picked it up. I did forget I had this PR still open :)


does not work anymore

hello as the title says it works over at all and its whatever the version php even changing server so ip

Hi,
I'm not sure I understand what you mean. What exactly is not working? What does it have to do with php version?

some video including this one I have the latest version
example test https://www.youtube.com/watch?v=oqLLVsYLR0c

I tested under several server notament a server with php7

Downloads just fine for me. Are you sure we're talking about the same YoutubeDownloader? This one doesn't use PHP.

no sorry it's a mistake could you close it


fix ut "TestErrors/unix_socket_removal"

After running ut case go test ./mixer/pkg/server/ --run=TestErrors -v, leave the host system some err, like:
# go test ./mixer/pkg/server/ --run=TestErrors -v
go tool compile: open /dev/null: no such device or address
go tool compile: open /dev/null: no such device or address
# git st
fatal: open /dev/null or dup failed: No such device or address

Which is because /dev/null mod changed, before is crw-rw-rw-, and after test srwxr-xr-x.
This pr fixed the problem.

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: douglas-reid
If they are not already assigned, you can assign the PR to them by writing /assign @douglas-reid in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

mixer/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Hi @Lion-Wei. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
I understand the commands that are listed here.

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

I signed it!

/ok-to-test

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: douglas-reid
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

mixer/OWNERS [douglas-reid]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Lion-Wei: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-multicluster-e2e.sh
b800298b6e1d498c25e648e7620f750d2363efb7
link
/test istio-pilot-multicluster-e2e

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

@Lion-Wei: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-multicluster-e2e.sh
b800298b6e1d498c25e648e7620f750d2363efb7
link
/test istio-pilot-multicluster-e2e

prow/e2e-mixer-no_auth.sh
b800298b6e1d498c25e648e7620f750d2363efb7
link
/test e2e-mixer-no_auth

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

/retest


What versions of React is supported by this library?

What versions of React is supported by this library?

Since React 18 (we need built-in batching)

What we can use instead?

Is it directly in react package? Sure! Send PR.

@MrHBS You have a desire to do PR? I could do it. I would like to do it.

Thanks. The fix was released in 0.6.


Make lint tests pass

Unit tests fail with several lint warnings and errors

Added PR 154 fixing all warnings and errors


Demo index.html doesn't appears working in IE11 Windows 7

Details

Browser and browser version: IE 11.0
OS version: Windows 7
xterm.js version: The current version (downloaded from this website)

Steps to reproduce
I just downloaded terminal.js. I didn't run npm install and npm start. All I did was

Edit demo/index.html, change the xterm.js source to be ../dist/xterm.js
dobule click index.html and it opened in web browser. (tired ,firefox, chrome, IE. Also tried Linux, Windows 7 and MAC)
The terminal area is small, I can only type ONE character at a time. It also only shows one character "W" below the box.

I'm new to xterm.js. I want to use it as a client only XTERM. I have written my own Websocket server. I thought that for a javascript, all I need to do is download them and include it in my html and I should be  good to go... Maybe I have missed something obvious?

You need to npm install to run the demo, however I'm not sure it's currently working on Windows.

I'm on Ubuntu Linux 16 now. I have run "npm install" and when I try "npm start", I got below errors.
/xterm.js$ npm start

<EMAIL_ADDRESS>/xterm.js
nodemon --watch src --watch addons --exec bash -c './bin/build && node demo/app'

/usr/bin/env: ‘node’: No such file or directory
npm ERR! Linux 4.4.0-38-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR<EMAIL_ADDRESS>start: nodemon --watch src --watch addons --exec bash -c './bin/build && node demo/app'
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script 'nodemon --watch src --watch addons --exec bash -c './bin/build && node demo/app''.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the xterm package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     nodemon --watch src --watch addons --exec bash -c './bin/build && node demo/app'
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs xterm
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls xterm
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /xterm.js/npm-debug.log

Below is the npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'start' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>6 silly lifecycle<EMAIL_ADDRESS>no script for prestart, continuing
7 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>8 verbose lifecycle<EMAIL_ADDRESS>unsafe-perm in lifecycle true
9 verbose lifecycle<EMAIL_ADDRESS>PATH: /usr/share/npm/bin/node-gyp-bin:/home/flatworld/workspace/Stingray/V2/beast/xterm.js/node_modules/.bin:/home/flatworld/bin:/home/flatworld/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
10 verbose lifecycle<EMAIL_ADDRESS>CWD: /home/flatworld/workspace/Stingray/V2/beast/xterm.js
11 silly lifecycle<EMAIL_ADDRESS>Args: [ '-c',
11 silly lifecycle   'nodemon --watch src --watch addons --exec bash -c './bin/build && node demo/app'' ]
12 info lifecycle<EMAIL_ADDRESS>Failed to exec start script
13 verbose stack Error<EMAIL_ADDRESS>start: nodemon --watch src --watch addons --exec bash -c './bin/build && node demo/app'
13 verbose stack spawn ENOENT
13 verbose stack     at ChildProcess. (/usr/share/npm/lib/utils/spawn.js:17:16)
13 verbose stack     at emitTwo (events.js:87:13)
13 verbose stack     at ChildProcess.emit (events.js:172:7)
13 verbose stack     at maybeClose (internal/child_process.js:821:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
14 verbose pkgid<EMAIL_ADDRESS>15 verbose cwd /home/flatworld/workspace/Stingray/V2/beast/xterm.js
16 error Linux 4.4.0-38-generic
17 error argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
18 error node v4.2.6
19 error npm  v3.5.2
20 error file sh
21 error code ELIFECYCLE
22 error errno ENOENT
23 error syscall spawn
24 error<EMAIL_ADDRESS>start: nodemon --watch src --watch addons --exec bash -c './bin/build && node demo/app'
24 error spawn ENOENT
25 error Failed at the<EMAIL_ADDRESS>start script 'nodemon --watch src --watch addons --exec bash -c './bin/build && node demo/app''.
25 error Make sure you have the latest version of node.js and npm installed.
25 error If you do, this is most likely a problem with the xterm package,
25 error not with npm itself.
25 error Tell the author that this fails on your system:
25 error     nodemon --watch src --watch addons --exec bash -c './bin/build && node demo/app'
25 error You can get information on how to open an issue for this project with:
25 error     npm bugs xterm
25 error Or if that isn't available, you can get their info via:
25 error     npm owner ls xterm
25 error There is likely additional logging output above.
26 verbose exit [ 1, true ]

Appears that I need install the legacy node. So I installed it via "sudo apt-get install nodejs-legacy". After that. I got below error when I run "npm start"

<EMAIL_ADDRESS>start xterm.js
nodemon --watch src --watch addons --exec bash -c './bin/build && node demo/app'

[nodemon] 1.10.2
[nodemon] to restart at any time, enter rs
[nodemon] watching: xterm.js/src//* xterm.js/addons//*
[nodemon] starting bash -c "./bin/build && node demo/app"
Building xterm.js into build

Building build/xterm.js...
[BABEL] Note: The code generator has deoptimised the styling of "xterm.js/src/xterm.js" as it exceeds the max of "100KB".
OK.
Building build/xterm.css...
OK.
module.js:328
throw err;
^

Error: Cannot find module 'pty.js'
at Function.Module._resolveFilename (module.js:326:15)
at Function.Module._load (module.js:277:25)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object. (xterm.js/demo/app.js:5:11)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
[nodemon] app crashed - waiting for file changes before starting...

@goflatworld the reason this did not work on your Windows machine is that the file was not served by app.js, which is the demo server.
You can find instructions on how to run the demo appropriately in the README (https://github.com/sourcelair/xterm.js#demo):

To launch the demo simply run:

npm install
npm start

Then open http://<IP_ADDRESS>:3000 in a web browser (use http://<IP_ADDRESS>:3000 if running under Windows).
This requires you to have node pre-installed on your machine.
Now, considering your issues on Linux the problem is that you have Node.js installed as a nodejs binary and not as node.
This can easily be fixed by running sudo ln -s $(which nodejs) /usr/local/bin/node.

Thanks.
I have managed to get my own code working. Now I'm trying to dive bit deep into it.

👍 . Should we close this issue then?


memcpy called with NULL for zero size

I don't know if it is worth something but just in case I am creating this issue.
OS: Linux Mint 18
Commit: c3fd757b
Just added GLFW as a submodule (on commit c3fd757b, which is master right now) of a project and upon calling 'glfwInit()' my standard library (compiled from sources, thus in "debug" mode) gives me the following message:
/home/path/to/glfw/glfw/src/x11_monitor.c:117:9: runtime error: null pointer passed as argument 2, which is declared to never be null
The line in question is:
memcpy(disconnected, _glfw.monitors, _glfw.monitorCount * sizeof(_GLFWmonitor*));
Aside from this message, there are no consequences, I am still able to create a window after that.
In my case _glfw.monitors is indeed null, however _glfw.monitorCount is 0 and thus the code is requesting to copy 0 bytes of a null pointer. I don't particularly see this as a problem but my memcpy does give me this annoying message.
I bisected to find the first commit in which the message appears and it's from commit 04f559e2 "Restructure monitor enumeration".

Thank you!


what if weight normalization combining with batch normalization?

Hi,
I'm just curious, but what will happen when weight normalization combining with batch normalization.
In the view that weight normalization is a re-parameterization of weight, which definitely makes sense and is a good idea. And data dependent weight initialization is also a great idea, comparing to He 's.
But is seem we can do batch normalization to handle the initialization problem, and re-parameterize the weight for better/robust optimization. [by which I mean weight normalization combining with batch normalization]
Would the re-parameterize in this scenario help? Definitely, data dependent weight initialization is useful, which make batch normalization in some case unnecessary, avoided the data correlation problem in batch. But some time we may still need batch normalization, I guess.
Or saying it another way: would batch normalization help, given we did the re-parameterization?.
Do you have some experiments on this?
Again, I'm just curious. And thanks for your time.

I figured it out. Actually the mean-only batch normalization is what I want.
Slightly different is that essentially the same: mean-only batch normalization does not do the scale normalization, but actually scale normalization is not necessary in this case. So, mean-only normalization is exact the solution.
Great work! Thanks.


Add pushgateway kustomize template.

By adding a pushgateway to the cluster, custom prometheus metrics can be exported for benchmark results. Say I have the following output from netperf (cut for length):
Wed Aug 10 10:08:04 AM MDT 2022
MIGRATED TCP STREAM TEST from <IP_ADDRESS> (<IP_ADDRESS>) port ....
THROUGHPUT=2687.23
THROUGHPUT_UNITS=10^6bits/s
ELAPSED_TIME=60.01

These metrics can be imported into prometheus as desired by making curl requests to the pushgateway's /metrics endpoint:
kubectl port-forward -n monitoring svc/pushgateway 9091:9091
export labels="job/mytest/instance/netperf/type/tcp_stream"
curl -X PUT \
    --data-binary @my-metrics \
    localhost:9091/metrics/"${labels}"

Where my-metrics looks something like this:
# TYPE netperf_throughput_total_bytes counter
netperf_throughput_total_bytes<PHONE_NUMBER>0.0
# TYPE netperf_elapsed_time_seconds counter
netperf_elapsed_time_seconds 60.01

netperf_throughput_total_bytes calculated as:
(throughput_bits_1E6 * duration_s) * (1E6) / 8
Here's a link for how this text-based format works:

https://github.com/prometheus/docs/blob/main/content/docs/instrumenting/exposition_formats.md

More scripts can be added to help easily parse results from netperf and other micro-benchmarks into prometheus metrics. It might also be useful to add something like this into toolkit, but personally I think using a template approach with curl would be the path of least resistance.
These are some helpful resources on writing metrics into prom:

https://prometheus.io/docs/practices/naming/#metric-and-label-naming
https://github.com/prometheus/docs/blob/main/content/docs/instrumenting/clientlibs.md

Signed-off-by: Ryan Drew<EMAIL_ADDRESS>

Chris is on PTO and this is a small change, going to self high-five on this one.


allow same user account to re-request data access after a denial

check current functionality...If a request from a particular user account is denied, please make sure that the same user account make a future request for the same dataset?
If this isn't currently possible, please allow the same user account to re-request a study for which they were previously denied. (Sometimes we deny requests, then people work on a better proposal and request again).

@danicahelb
It looks like a user can make a single re-request and then we don't allow edits after that. I'm guessing the intention is to keep people from:

Spamming e-mails to providers
Updating requests while folks are in the middle of reviewing
I think if I removed that check, this would work. I could also set it to re-enable edits after a request is denied. Let me know what the preferred behavior is.

Yeah, i think setting it to re-enable edits after a request is denied sounds good. And keep the single re-request for a study under review. Thanks @dmgaldi

Yes, this worked as intended.


path to biom - store downloaded file

now we just store the URL, which expires and is useless.

URL based uploads are now handled in the import service rather than the biom handler.  Closing ticket.


[Suggestion]Add a new dialog when deploying projects to function apps at the first time

OS: Win10 & Mac
Build Version: 20190826.1
Regression: Not a Regression
Repro Steps:

Create a new function app.
Open a project in VS Code.
Right click the new function app --> Select "Deploy to Function App...".
Pop up a dialog --> Check the content.

Actual:
Pop up below dialog and tell the users that this action will overwrite any previous deployment and cannot be undone. But the actual is that there is no any deployment for the new function app.

Suggestion:
Add a judge for deploying. Only asking the users whether want to deploy or not for a new function app at the first time. Does it make sense?

Closing as won't-fix. The only downside is they might have to click "Deploy" one extra time. If we tried to fix this, the downside is we might not detect correctly if they have a previous deployment and that could cause data loss if we don't prompt

Got it.


Add robots.txt

👷 Deploy Preview for sasha-dick processing.
🔨 Explore the source changes: 2f38fa8f830aaff96963d7b3b3fb6f86f98c33b5
🔍 Inspect the deploy log: https://app.netlify.com/sites/sasha-dick/deploys/61c78070e46ade0007209412


insertMap is not inserting a Map?

Hey,
I have a problem with the insertMap method. Google Maps is working properly and permissions are set with:
    <uses-permission android:name="android.permission.INTERNET" />     <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
I can select a location and press Insert. I get back to the editor but there is no map. Just the description for it.
I also tried to manually use the insertMap(String cords) method like this:
editor.insertMap("10,59");
This just inserts the description placeholder but no map shows up. I get no errors in logs..
Any hints on this?

sorry about this, will look into it

Map support has been removed from 2.0.3 onwards. This is because we were using static map (which is basically an image snapshot of the selected cords). This can be inserted by yourself using insertImage method. Google has introduced new restrictions on maps and places usage with mandatory billing accounts. In future, we will add the support with another community driven map extension. At the moment, it's not a necessary component for the editor


Generating tree maps for Linux Android AOT release builds sometimes fails

See:

https://ci.chromium.org/ui/p/flutter/builders/prod/Linux Android AOT Engine/10487/overview
https://ci.chromium.org/ui/p/flutter/builders/try/Linux Android AOT Engine/23413/overview
https://ci.chromium.org/ui/p/flutter/builders/try/Linux Android AOT Engine/23440/overview

This is happening sporadically.

This seems like a build problem. Removing from infra queue.

The flakes started after this change:
https://flutter-review.googlesource.com/c/recipes/+/14501
https://flutter-review.googlesource.com/c/recipes/+/14501/7/recipes/engine.py#592

Here is the location where the max_concurrent_invocations is specificed:
https://devops-console-oss.corp.google.com/flutter/infra/+/master:config/engine_config.star;l=242

After investigating https://ci.chromium.org/ui/p/flutter/builders/prod/Linux Android AOT Engine/10487/overview. I wanted to validate the failing nm check on the libflutter.so file. I downloaded libflutter.so from the right shard. To do this I had to:

git clone https://chromium.googlesource.com/infra/luci/luci-py
python isolateserver.py download -I isolateserver.appspot.com --namespace default-gzip -f 6467a7082bc2ff13d34d7039d47d2e259791cf68 libflutter.so

Running nm on this seems to correctly print the symbols. This makes me suspect that something went wrong with the api.isolate.download call or after that. I'm going to add additional debug commands to print debug details about the file (size, running file command on it) etc. Would appreciate additional ideas to debug this bizzare failure.
ccing some folks who I think could have some ideas: @jason-simmons , @chinmaygarde
copying the stack trace here for ease of reference:
addr2line: /b/s/w/ir/cache/builder/src/third_party/android_tools/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-addr2line
nm: /usr/bin/nm
Traceback (most recent call last):
  File "/b/s/w/ir/cache/builder/src/third_party/dart/runtime/third_party/binary_size/src/run_binary_size_analysis.py", line 710, in <module>
    sys.exit(main())
  File "/b/s/w/ir/cache/builder/src/third_party/dart/runtime/third_party/binary_size/src/run_binary_size_analysis.py", line 691, in main
    symbols = GetNmSymbols(opts.nm_in, nm_out, opts.library, opts.jobs,
  File "/b/s/w/ir/cache/builder/src/third_party/dart/runtime/third_party/binary_size/src/run_binary_size_analysis.py", line 398, in GetNmSymbols
    RunElfSymbolizer(outfile, library, addr2line_binary, nm_binary, jobs,
  File "/b/s/w/ir/cache/builder/src/third_party/dart/runtime/third_party/binary_size/src/run_binary_size_analysis.py", line 246, in RunElfSymbolizer
    nm_output = RunNm(library, nm_binary)
  File "/b/s/w/ir/cache/builder/src/third_party/dart/runtime/third_party/binary_size/src/run_binary_size_analysis.py", line 383, in RunNm
    raise Exception(err_output)
Exception: b'/usr/bin/nm: /b/s/w/ir/cache/builder/src/out/android_release/libflutter.so: File format not recognized\n'

This hasn't happened since the last 100 try builds and 30 prod builds. I've added additional logging in https://flutter-review.googlesource.com/c/recipes/+/14561 and https://flutter-review.googlesource.com/c/recipes/+/14582. I will keep it open and reduce the priority to reprioritize root-causing this if this happens again.


How can I get all the markdown field to GraphQL node field?

Summary
I use @gridsome/source-filesystem and @gridsome/transformer-remark to grab field data to GraphQL for use. Is it possible if I can get custom field from markdown file to GraphQL?
Basic example
I have a custom named desc field in my .md file.
// a blog post md file
---
title: this is a blog
desc: this is descripton
---

This is a blog post

How can i config to fetch it successfully from query?
<page-query>
  query Posts ($page: Int) {
    allPost (page: $page) {
      edges {
        node {
          title
          desc
        }
      }
    }
  }
</page-query>

Include a basic example or links here.
Motivation
Why are we doing this? What use cases does it support? What is the expected outcome?
Because we may use custom field to define additional categories.

something like this should work
---
propa : sum A
title : sum title
---

<template lang="pug">
    div
        h1 {{ this.$page.markdown.title }}
        h1 {{ this.$page.markdown.propA }}
</template>

<page-query>
    query Markdown ($path:String!) {
        markdown : markdown(path:$path){
            title
            propA
        }
    }
</page-query>

@namoda378 I did not understand your solution
I also need a similar solution...
---
path: home-page
main:
  about: >-
    **Bold Text**

    New Paragraph
  description: The Description
  title: The Title
---

I also have source md files with many custom fields that I need to be able to access in GraphQL.  I think the source-filesystem package does not correctly parse custom fields, it apparently needs to know the type and format of each field to work, which is unnecessarily restrictive.  Also the error thrown by the parser is misleading --- in __explore you just see errors, which you find out is because __graphqql returns 404 (because the data nodes were not parsed).

Assuming @kaceo's findings are correct, I am closing this. Feel free to open if new findings appear also in newest source-filesystem.

@kaceo Are you saying custom fields work out of the box or did you have to change the config?

@robaxelsen  I am using the most up-to-date version or source-filesystem and still getting the same behavior; no custom fields are being recognized.

I have the exact same use case as @danieldocki and it just doesn't work. It seems like based on #445, #530 and #509 that this functionality is coming, but I don't see any movement on it for over a month.
@kaceo Is this actually working for you? How did you solve it? It sounds like you did something with your query, but I'm not sure. If you've found a workaround, could you share some more details?
For what it's worth, I'm working around it with vue-markdown, but I'd rather not be using two completely separate Markdown parsers in one project.

@freshyill I reverted to 0.2.1 for the time being and this worked to allow for custom fields. Hope that helps!


Queries are not retried with max fuel/ifuel settings

It seems that failed queries aren't always retried with the maximum values set for fuel and ifuel.
For instance, this fails
let rec g (n:nat) : bool =
  if n = 0 then true
  else g (n - 1)

#set-options "--initial_fuel 0 --max_fuel 1 --initial_ifuel 0 --max_ifuel 0"
let foo = assert (g 0 == true)

Using --hint_info shows that F* only tries the query with fuel and ifuel 0:
	Query (M.foo, 1)	failed in 319 milliseconds with fuel 0 and ifuel 0

When setting --initial_fuel 1 the query is tried with fuel 1 and succeeds:
	Query (M.foo, 1)	succeeded in 305 milliseconds with fuel 1 and ifuel 0]

Same thing with ifuel:
type t =
 | A
 | B

#set-options "--initial_fuel 0 --max_fuel 0 --initial_ifuel 0 --max_ifuel 1"
let f (x:t) =
  match x with
  | A -> ()
  | B -> ()

I believe this is counterintuitive. I expected F* to try first with the initial values for fuel and ifuel, and last with the maximum values for both before giving up. The series of intermediate values tried isn't that important and needn't be exhaustive, of course.

I had a look at the code of ask_and_report_errors in https://github.com/FStarLang/FStar/blame/master/src/smtencoding/FStar.SMTEncoding.Solver.fs
and found the logic hard to follow.
The series of fuel, ifuel combinations attempted is roughly
  [(initial_fuel, initial_ifuel);
   if max_ifuel  > initial_ifuel then (initial_fuel, max_ifuel);
   if max_fuel/2 > initial_fuel  then (max_fuel/2,  max_ifuel);
   if max_fuel > initial_fuel && max_ifuel > initial_ifuel then (max_fuel, max_ifuel);
   if min_fuel < initial_fuel then (min_fuel, 1)]

I gather that this is trying to compute this list without duplicates:
[(initial_fuel, initial_ifuel)
 (initial_fuel, max_ifuel)
 (max_fuel/2, max_ifuel)
 (min_fuel, 1)
 (max_fuel, max_ifuel)]

This fails to include (max_fuel, max_ifuel) when max_fuel > initial_fuel and max_ifuel = initial_ifuel, which is easily fixed by relaxing max_fuel > initial_fuel && max_ifuel > initial_ifuel as max_fuel > initial_fuel && max_ifuel >= initial_ifuel above.
Some other oddities:

The code won't try with any intermediate ifuel value between initial_ifuel and max_ifuel
Why do we even have min_fuel?
Trying min_fuel, 1 when max_ifuel = 0 is odd

The second apparent mistake is that when down to the last fuel, ifuel combination, F* fails without even asking Z3, printing e.g. Query failed with maximum fuel 1 and ifuel 0 although the query would succeed if actually asked.