onChange invocation of Status column is failing

Fatal error: Call to undefined method Ublaboo\DataGrid\Column\ColumnStatus::onChange() in ~/vendor/ublaboo/datagrid/src/DataGrid.php on line 1634 see here
http://ublaboo.paveljanda.com/datagrid/ does not work either.

 Fixed. :D
Thanks

Well it happens :D Thanks for the fix.


OpenTelemetry tracing support to extend observability

I think this project could outstandingly shine when featuring tracing support. We have a implementation in conmon-rs which supports exporting data to the OpenTelemetry exporter (OTLP): https://github.com/containers/conmon-rs/blob/6cfba5a/conmon-rs/server/src/telemetry.rs
Everything is based on the tracing crate, which is also used for logging.
What do you think about that?

@YJDoc2 @Furisto @yihuaf I'd like to hear your input.

https://kubernetes.io/blog/2022/12/01/runtime-observability-opentelemetry/

@alban mentioned in https://social.linux.pizza/@albcr/109437558144011212 that we could use an annotation to pass the trace ID around. This way we can link youki/runc/crun with higher level runtimes like CRI-O.

Hey, I haven't yet looked into this in depth, but from what I have seen, and read this seems like a good idea if we can support. We might not need to make too many changes for it, however I think we must feature-gate this, and disable it by default. As stated in the blog, this will cause some performance degradation, and given that usually a user will need some additional tools to take full advantage of the spans and stuff, it is better left to the user to decide if to opt-in or not.
I'll try taking a more detailed look and maybe add details on how we could go on adding the support.

@alban mentioned in https://social.linux.pizza/@albcr/109437558144011212 that we could use an annotation to pass the trace ID around. This way we can link youki/runc/crun with higher level runtimes like CRI-O.

For low-level runtimes such as youki or runc, they are more called by containerd high-level runtime. I think we should first communicate with upstream containerd on how to transmit traceID and spandID.

Introducing tracing to youki would be a great idea. We can also clean up the logging libs we have, since logging becomes a special case of tracing. This seems to be where the rust ecosystem is moving to anyway, so we should embrace it. I will take a jab at this after I migrate the libcontainer to thiserror.

@yihuaf 👍

@saschagrunert Do you have an idea how to get the tracing id from the CRI layer? container id?

@yihuaf I have implemented a trial for this. And I have lost that code 😭
But I remember the most difficult point. That is how to follow the trace when double-forking. I ran into this problem and left this issue for a time. I am sharing it once.

@utam0k I got a prototype roughly working except the opentelemetry related crates really wants async. I don't think there is a way to use opentelemetry without an async runtime. I am not sure about all the implication  of introducting an async runtime into our codebase yet. Did you run into this issue previously?

First of all, it might be good to have an option by features or arguments.

I agree we should make this into a feature flag. I will further verify the correctness of the setup across the process boundary. At minimum, looks like this observability feature is best served as a "debugging mode".

At minimum, looks like this observability feature is best served as a "debugging mode".

💯
I may do it, but I think that is a good idea until standardization is achieved.

Awesome to read, thank you so much for pushing the topic forward folks!

Hey @utam0k and @yihuaf,
I am excited to see youki is moving forward with the OpenTelemetry implementation. It would be great to integrate youki tracing alongside Runwasi tracing spans at the containerd's OpenTelemetry endpoint. More details on the containerd issue can be found here: (https://github.com/containerd/containerd/issues/10173)
One of the core issues the community needs to figure out is establishing a method  to pass tracing context between containerd and the shim, ensuring correlation between containerd ttrpc requests and shim responses.
From my experience adding OpenTelemetry tracing support to Runwasi https://github.com/containerd/runwasi/issues/10, I've gained some insights which I think would be valuable to the discussion here.

But I remember the most difficult point. That is how to follow the trace when double-forking. I ran into this problem and left this issue for a time.

I ran into the same issue when I first started implementing tracing for runwasi. Eventually I figured that the parent process needs to serialize the OpenTelemetry Context and pass that to the child process, where it sets it's current Span to the parent's context. (See https://github.com/containerd/rust-extensions/issues/268)

I don't think there is a way to use opentelemetry without an async runtime.

I agree it's necessary at this stage.

but I think that is a good idea until standardization is achieved.

As for the topic of standardization, what specific aspects do you think need addressing? I am happy to push this forward and find a solution that facilitates seamless end-to-end tracing from containerd to shims and to runtimes like youki.
Additionally, are there any ongoing efforts to enhence tracing support beyond what has been implemented for logging https://github.com/containers/youki/pull/1899?


[v3.4] Accept babel-loader 8, to support babel 7

This PR is based on the release/3.4 branch and is intended to be a v3 release
Issue:
@storybook/react accepts "babel-core": "^7.0.0-0"
https://github.com/storybooks/storybook/blob/01731dfe6f4158d8be4fd9bf3a26952654662fe7/app/react/package.json#L70
But, "babel-loader": "^7.1.4" has a peer dep on "babel-core": "6"
https://github.com/babel/babel-loader/blob/8fe5da3fb923096c98af31cb66fc1a3a22b44992/package.json#L18
So, in order to use<EMAIL_ADDRESS>(and<EMAIL_ADDRESS>at the root, we need to use<EMAIL_ADDRESS>https://github.com/babel/babel-loader/blob/d1a3dd57e5f934fe509b9aeab78e5e3d66af8b49/package.json#L19
We are not yet on Storybook 4 (which doesn't have this issue) because we are on React 16.2 and Webpack 3 at the moment. Excited to upgrade soon! Thanks for your great work on Storybook!
What I did

Moved babel-loader to a peer dep
Add babel-loader 8 as an accepted version
Add babel-loader 7 as a dev dep

Happy to make this change in other packages too, if we feel it's the right solution.
This approach is similar to how v4 is versioning babel-loader
https://github.com/storybooks/storybook/blob/80ec5726b68aea0dff1245642a888e43c07daaf3/app/react/package.json#L44
How to test
We ran a large v3.4.11 + this patch react storybook app through babel-loader loader and saw no errors. Happy to add tests/apps to the repo as you see best - would just need a bit of guidance on what you think the best way to test this would be.
Is this testable with Jest or Chromatic screenshots?
Does this need a new example in the kitchen sink apps?
Does this need an update to the documentation?
If your answer is yes to any of these, please make sure to include it in your PR.
For maintainers only: Please tag your pull request with at least one of the following:
["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]

Was confused why this change would have broken these checks, but it looks like things are failing on release/3.4 too https://github.com/storybooks/storybook/commits/release/3.4

Not sure how best to resolve these failures.


Add relay for Quay.io

Can one of the admins verify this patch?

John - do you need me to do something?
On Tue, Mar 22, 2016 at 11:11 AM, Bot the Builder<EMAIL_ADDRESS>wrote:

Can one of the admins verify this patch?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/pristineio/lambda-webhook/pull/4#issuecomment-199885333


Atom not responding when viewing large minified js file (maybe other file too)

Atom will not responding when viewing a large chunk of minified script, maybe it has to do with the syntax highlighting.

I believe this is a duplicate of https://github.com/atom/atom/issues/979. Please subscribe there for updates and thanks for the feedback! :+1:


StackRox scanner

Scanner Name
StackRox, it provides security across the container life cycle. https://github.com/stackrox/helm-charts. There are two separate types of scanner for StackRox; "check" and "scan".
Sample File
I've had a go at creating and testing a parser for both "check" and "scan" and include the sample json output from stackrox as well as some python parsing code in here as well.

stackrox-check.zip
stackrox-scan.zip

I will try to build a parser for it.
@mtcolman in the same time, it seems you already have a Python script that read the StackRox format. it should be easy to "convert" it to our generic JSON format.

Thanks @damiencarol. Yes this script does convert it to the generic JSON format, I just don't have the skills to make it have all the functionality the other parsers have.

I could provide some insights. what is missing want you need/want?

Hi @damiencarol just checking in to see if you've had a chance to look at this at all? Thanks.

Please take a look at https://defectdojo.github.io/django-DefectDojo/integrations/parsers/#generic-findings-import
There is some examples in this documentation page.
My feedback at first sight:

you could use component_name and component_version
You have the data here:

...
 "components": [
      {
        "name": "libgcrypt20",
        "version": "1.8.4-5+deb10u1",
...

you could also support cve

Thanks @damiencarol. Do you please have a link to where component_name and component_version are defined as accepted fields? This link seems to be mising them and the reference to CVE.

those fields are shown on the view finding page, if you search in the codebase for component_name you'll see other parsers populating the field. Examples are jquery or libgcrypt20


Enable Brakeman

This allows us to find security vulnerabilities. I've also had to ignore most of the current warnings and fix a few others, more details about each individual case in the commits.
Trello Card

Good luck


ERFNet-CULane-PyTorch training problem in tensor dimension

when training the erfnet on CuLane, I always encounter the tensor dimension mismatch problem. I add the ceil_mode = True in the maxpool layer and the problem becomes as follows:
RuntimeError: invalid argument 2: size '[-1 x 3965]' is invalid for input with 22660 elements at /pytorch/aten/src/TH/THStorage.c:37
I print the shape of some layer's output but still didn't know how the "3965" is calculated.
Does anyone encounter the same problem as mine and has some solutions or suggestions?
Thanks!

What is the size of your input image? It seems that the mismatch problem lies in the flatten operation.

Thanks very much for your reply. My input image is resized as 590*1640.
And after carefully compare my code with the source, I found out that I comment the image transform which cause the above problem. Now I can run the training and testing smoothly.


feat: add cut_cross_entropy

Description

Add https://github.com/apple/ml-cross-entropy
Note: torch>=2.4
Motivation and Context

How has this been tested?

Run test comparison:

[x] llama
[x] mistral
[x] gemma2
[x] phi3

Misc:

[ ] Add guards check conflict against other patches

Screenshots (if appropriate)
Types of changes

Social Handles (Optional)

The cce e2e tests don't actually work since we don't install cce anywhere. We probably actually want an error when cce is configured but not installed/available.

There is a bug that plugins aren't loaded despite in the configs for our integration e2e tests. This has been fixed in https://github.com/axolotl-ai-cloud/axolotl/pull/2091/commits/a983c3bc73982c0aae428cb36b9b2b34893d40b3

The cce e2e tests don't actually work since we don't install cce anywhere. We probably actually want an error when cce is configured but not installed/available.

There were a few checks for installation. However, the plugin wasn't loaded leading to them not being checked. I have just fixed this.

I rebased this PR as there were some conflicts.

There's an integration issue since unsloth also requires cut-cross-entropy in it's pyproject.toml


Loading static images

Which is the folder that images must be stored and to be loaded from?

Usually in the public folder in your client, unless you want to load them from a server, so in other words you got some control over this. FYI I'll close this issue now.


Add module listing page with required tooling

This PR adds tooling to generate a modules.md page which lists all OpenWhisk related repositories along with there Build status and links to navigate to those repositories.
See current rendition in my fork here
This is inspired from Sling Module Listing and provides a consolidated listing of all modules in a single place
Description
While working on #3823 I felt a need to have an overview of build status of all OpenWhisk repositories in a single place. As part of this PR 2 dev tasks are being added

:tools:dev:listRepos - Uses Github search api to list all OpenWhisk related repositories and dumps them to a file
:tools:dev:renderModuleDetails - Use previous dump to render a modules.md page under docs/dev which can be checked in

Related issue and scope

[ ] I opened an issue to propose and discuss this change (#????)

My changes affect the following components

[ ] API
[ ] Controller
[ ] Message Bus (e.g., Kafka)
[ ] Loadbalancer
[ ] Invoker
[ ] Intrinsic actions (e.g., sequences, conductors)
[ ] Data stores (e.g., CouchDB)
[ ] Tests
[ ] Deployment
[ ] CLI
[x] General tooling
[x] Documentation

Types of changes

[ ] Bug fix (generally a non-breaking change which closes an issue).
[x] Enhancement or new feature (adds new functionality).
[ ] Breaking change (a bug fix or enhancement which changes existing behavior).

Checklist:

[x] I signed an Apache CLA.
[x] I reviewed the style guides and followed the recommendations (Travis CI will check :).
[ ] I added tests to cover my changes.
[x] My changes require further changes to the documentation.
[x] I updated the documentation where necessary.

Need a PG for this

Can someone trigger a PG for this?

Can someone trigger a PG for this? (take 2)

@dubee any concerns with this otherwise i think we should merge it.

PG1#3121 (with rev 33538c0e40b513ec8b19563f4ff20b37022f0e86) is 🔵


Feature/factory methods in lda meta example

lda.get_real("m_gamma") did not work due to this casting of gamma(float) as int

Nice, thanks of for the patch.
This is an incomplete refactoring though, see binary/kernel_support_vector_machine.sg for a fully refactored example (including loading the files etc)

I think fully changing the examples will break the ruby tests though.
(due to a potential bug in swig ruby)
That is fine, I have discussed this with @lisitsyn and we decided to disable the tests for ruby for now in order to move on with the refactoring ...

I cant create a BinaryLabels object by using factory methods at the moment. Due to this the type check in LDA.cpp here fails. I think we will have to tweak factory.h a bit more...

Check this commit: https://github.com/shogun-toolbox/shogun/commit/c85feddc80340c61261f1a57328521adf889bc0e#diff-197df1e4436c2e76a5d4e179a2ee6ac6
The way to get around this problem is to replace the runtime type assertion with a conversion, i.e. replace something like
ASSERT(m_labels->get_label_type() == LT_BINARY)

with
auto binary_labels = m_labels->as_binary();

(and then use binary_labels downstream). Function defined here: https://github.com/shogun-toolbox/shogun/blob/develop/src/shogun/labels/BinaryLabels.cpp#L161

I am not sure if this is how it should be done... please guide me

What being done? :)

#4251 multiclass_labels looks really good now :)

@iglesias locally all tests passed... MixtureModel has been acting weird lately i think its not related to our code here, take a look at #4241

@karlnapf can we go over this once again ?

Totally, let me go through it

#4274

sorry stupid typo (meant to go with 4247)

Travis error is unrelated (and fixed in HEAD)

wanna move on by porting a legacy python example to meta example?


Update switcher for 1.0.2

Before release of 1.0.2

Exactly my suspicion as well
Need to change https://github.com/NeurodataWithoutBorders/nwb-guide/pull/886/files#diff-4e8e667a6b53889132b09d57fb7cdb38aa0d577fd5a7406592b2d6fdfaf850eeR17 to false since the switcher can only have one preferred at a time (source)
However, we would only swap the preference immediately before release, WDYT?

Yes, we should swap immediately before release. I was going to propose a release ahead of the user test which was cancelled yesterday. The next one is Tuesday. What do you think about merging this and making a release today / this weekend?


Can't cancel VoIP notification when application killed [iOS]

We have installed and configured the plugin and, so far, it has worked wonderfully on iOS. So thanks for the work @mattkhaw !!
The only scenario where we are having some trouble with the implementation is the following:

User A (iOS) has the app killed.
User B calls User A.
This plugin handles the VoIP notification and displays the CallUI to User A.
User B hangs up before User A accepts the call.
A standard push notification is sent to User A device to notify that the call has been terminated, but, as User A has the application killed, the JS callback that handles the notification behavior and calls CordovaCall.endCall() is not executed, and the CallUI notification does not disappear from User As device.

Now, this doesn't happen when the app is in the background or foreground, as the JS callback can be executed without any problem.
How can we handle this situation? Is there any functionality of the plugin that could end the call? Maybe from another ( but different) VoIP? Wouldn't that require to register (yet another) call to iOS?
Any help would be greatly appreciated;
Thanks!

As long as CallKit UI is displayed, meaning your app is up and running, which also means that Javascripts can be used. You can verify this by console logging everything. I think to solve this issue, you can try setting a timeout limit on how long the CallKit UI should remain. Once the limit is reached and no notifications received, then you can just end the call and send a notification to notify the caller. By doing it this way, the app should behave according to what you expected.
Another solution is to not use notifications for signaling and use web sockets instead. By doing so, at least the signaling portion is more responsive since it is almost instantaneous. I'm currently using web sockets for this and it works just fine. I have no issues in ending calls.

Indeed, I didn't realize that the JS was running when the call UI is shown to the user. Thanks for clarifying that!
After some testing, I've realized that, despite the function CordovaCall.endCall() being called successfully (the callback onSuccess is executed), the notification UI (the ringing screen) is not hidden and it keeps ringing. Is this the correct way to notify the system that we want the notification to go away? Am I missing something?
Thanks again!

From what I know, no. If you use CordovaCall.receiveCall() to prompt the UI, definitely use CordovaCall.endCall() to terminate it. However, I noticed that the CordovaCall.endCall() function is called, there's a slight delay in terminating the UI. Maybe you can add a slight delay before calling CordovaCall.endCall()? Maybe that would help?

As this plugin is launching the UI automatically after receiving a correctly formatted VoIP, I'm not calling CordovaCall.receiveCall() directly, I'm letting the  plugin handle the notification and prompt the UI natively.
Maybe this is why CordovaCall.endCall() is not terminating the UI?

I'm currently using this plugin, works fine as it is. I can terminate the call screen with no issues.

After some digging, we found out that indeed this plugin works correctly and we were not handling the push notifications to end the call with the function CordovaCall.endCall() correctly.
Now it works wonderfully when the app is opened or in foreground. When the app is in the background, however, it seems that, when the user receives a call, despite we can use the JavaScript, and the onReject, and onAnswer events that cordovaCall provides, some of cordovas functionality does not get executed: it seems as the deviceReady function is not called, and some plugins (like FCMPlugin) are not loaded correctly, thus making it impossible to handle notifications when the phone is blocked.
Is that behavior normal?

Just make sure that all of the events that are supposed to be called are hooked properly. As I've mentioned before,

As long as CallKit UI is displayed, meaning your app is up and running, which also means that Javascripts can be used.

This will also trigger deviceReady as well. Basically, your app is started normally as if you launch it from the home screen.

Thanks for the reply!
After a lot of searching, we couldn't figure out why some of the plugins were no loaded correctly when the user opened the app via the callKit UI. We solved it calling location.reload() after a call ends and we detect that the plugins were not loaded correctly.
This is far from ideal but it gets the job done for the moment being. Thanks!


fix(tables): fixed word wrap (iss1791)

Added word-wrap to td's in table, now wraps when on mobile size.
Close #1791

Deploy preview for pf-next ready!
Built with commit b8b4800bca5089964529c883edabcf5399017cd8
https://deploy-preview-1928--pf-next.netlify.com

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


feat: 🎸 SQFormDatePicker styles

Adjust SQFormDatePicker styles to match comps
✅ Closes: SSR-249
This ticket has a sibling SC+ PR ( # 370)
Before

After

Before

After

Before

After

Before

After

Are you going to add the updated sc+ version to this PR once it's ready? Or can these changes go without the sc+ styles changes?


Get token usage for a query

How do I track the token usage of a query ran with BAML?
from baml_client.sync_client import b
from baml_client.types import Resume
def example(raw_resume: str) -> Resume:
  # BAML's internal parser guarantees ExtractResume
  # to be always return a Resume type
  response = b.ExtractResume(raw_resume)
  return response

In this snippet, the Resume object returned by b.ExtractResume(raw_resume) doesn't include prompt tokens & completion tokens used to fulfil the query.

Hi @Sidd065 since baml offers things like Fallbacks and retry_policies, it can be a bit tricky to output token usage out of a function (since it could have made multiple calls).
Could you share what the use case for you is for this data? Is it primarily just to know the token usage? Or do you want to make software decisions based on it later on?
We are working on an interface that will provide the raw http response which will include things like the token usage if the model provider includes it.
meanwhile we do have an observability that does capture some of that metadata as well: https://docs.boundaryml.com/docs/observability/tracing-tagging
If you'd like to get set up with that, please reach out at<EMAIL_ADDRESS>

I decided to check out baml after seeing this blog post. https://www.boundaryml.com/blog/sota-function-calling
I want to compare performance and token usage for some of my own prompts which are currently run with openai/langchain.
When I didn't find a way to track token usage in the documentation, I thought I was missing something as most LLM libraries have ways to track token usage.

Ah got it, yes! we're working on this and hope to have a way of doing this pretty soon:
from baml_client.sync_client import b
from baml_client.types import Resume
def example(raw_resume: str) -> Resume:
  # BAML's internal parser guarantees ExtractResume
  # to be always return a Resume type
  response = b.raw.ExtractResume(raw_resume)
  response.token_usage.input
  response.token_usage.output
  response.token_usage.token
  return response

But we're expecting this to land roughly by mid next week!
As far as how you can do this today, if you port one of your prompts over to BAML, you should be able to see the token usage in the playground!

+1 for seeing token count. We are adding usage based pricing where we need to know the number of tokens used to pass it to the metered pricing for Stripe.

Ah got it, yes! we're working on this and hope to have a way of doing this pretty soon:
from baml_client.sync_client import b
from baml_client.types import Resume
def example(raw_resume: str) -> Resume:
  # BAML's internal parser guarantees ExtractResume
  # to be always return a Resume type
  response = b.raw.ExtractResume(raw_resume)
  response.token_usage.input
  response.token_usage.output
  response.token_usage.token
  return response

But we're expecting this to land roughly by mid next week!

Hey @hellovai, as of v0.55.3 this isn't available on the canary branch, is there any alternate branch where this is implemented?
The lack of this feature is the only thing stopping me from switching to BAML.

Additional requests:

https://discord.com/channels/1119368998161752075/1253172394345107466/1283256668393701419
https://discord.com/channels/1119368998161752075/1274836321948663939/1275194199582572627

My current workaround plan is to have the application internally proxy requests from BAML providers to OpenAI/Anthropic/OpenRouter both so I can get the full request/response bodies for my own o11y stack but also for getting token usages in the response - but having this built in would be super lovely!


How do we define a default locale ?

Hello,
Thank you for this great bundle it works pretty well :+1:
I have just a small problem:
At the first launch of my webapp it tries to load a file in /vendors/locales/locale_.js <--- it miss {{ locale }} like 'en' for example.
Can we define a default locale so that it take {{ locale }} and if undefined -> 'en' ? Thank you for your help I am sure you already answered it hundred of times but I didn't found it anywhere...
Cheers,
Seb

Hi, tmhDynamicLocaleProvider.defaultLocale('en');

Cool works like a charm thank you ! :+1:


appSettings.json files - coptyToOutput

In RC2, you have to explicitly copy appSettings files to the output directory, otherwise when you run your application it can;t find them. You do this by adding this to your project.json file:;
  "buildOptions": {

    "copyToOutput": [
      "appsettings.json",
      "appsettings.Staging.json",
      "appsettings.Production.json"
    ]
  },

Likewise userSecrets won't work anymore, unless project.json is also copied, (as userSecrets has to read the userSecrets id from the project.json file).
However I don't want the tool to automatically modify project.json files to copy project.json to the output directory because it sounds like that may be in the process of changing: https://github.com/aspnet/UserSecrets/issues/62
Note: the tool already adds appSettings.json to publishOptions, however this logic could do with sprucing up too, as ideally it should add a line for each appSettings file in you project - i.e appSettings.development.json for example.

Done


Modular FirebaseRecyclerAdapter

I am using my own class which extends the FirebaseReyclerAdapter to make it more modular.
Yet I come accross one issue. I am overriding the parseSnapshot(DataSnapshot dataSnapshot) method to do custom parsing but when that method gets called I do not know what position the DataSnapshot belongs to. I also cannot get the mSnapshots instance variable because it is private. Because of that it is also not possible to override the getItem(int position) method. I need the position / viewtype for custom parsing.
My suggestion is to add a position parameter to the parseSnapshot method. Or is there an other way to get the position?

Passing the position to parseSnapshot sounds like a useful addition to me. So +1.

@puf if #544 goes through, I'd rather not do that because it would make the SnapshotParser interface messy. (People will be able to do mSnapshots.indexOf(snapshot) because it's just a list.)

As #544 has been merged I am going to close this issue.  @Brianvdb I agree with @SUPERCILEX here, the snapshot parsing should be kept separate from the list ordering/presentation.  I believe that when version 2.0 comes out you will have enough customization abilities to implement what you're trying to do though.

has probado con
@Override
public int getItemViewType(int position){
return position; }


Streams and promises

I've a question on best practices when working with Promises and streams, with specific regards in how to "promisify" them. The example problem I'm trying to solve is with an API that returns a file stream. I then want to use Promise.map with concurrency on a large list of files, so that only c files are streaming at any given time. I've solved this to my needs below:
Promise.map(files, function(file){
  return new Promise(function(resolve, reject) {
    var stream = API.getStream(file);
    // Pipe/use stream
    stream.pipe(endPoint);
    stream.on('end', resolve);
    stream.on('error', reject);
  });
}, {concurrency: 3});

Main question is, is there a more semantic way to accomplish this? I've never before had to write new Promise(...) myself, so I have an instinctual feeling I'm missing something. On the other hand, I'm pretty sure it doesn't make sense to automatically promisify API.getStream.

The stream is returned synchronously already
You don't want a promise of a stream, you want a promise of a "finished" stream.
You want the underlying stream for piping and other stream specific functions
There's no guarantee that an input is a stream, and not just a general EventEmitter style object.

An example where the API returns a promise of a finished stream.
Promise.map(files, function(file){
  var streamPromise = API.getFinishedStreamAsync(file);
  streamPromise.pipe(streamPromise.stream); // Stream is attached synchronously
  // API now handles stream/promise resolution
  return streamPromise;
}, {concurrency: 3});

@bendrucker nice module!

@petkaantonov Very simple! But if you don't want to pipe, you need explicit handling of data.
That's why I'm proposing:
function streamToPromise(stream, onData) {
    return new Promise(function(resolve, reject) {
        stream.on('data', onData);
        stream.on('end', resolve);
        stream.on('error', reject);
    });
}

What do you think?

@petkaantonov thanks for your example!! I am attempting something where I am grabbing HTML using https://www.npmjs.com/package/wkhtmltopdf to generate a PDF. I'm trying to follow your example above, but am having issues with getting it to work.
Here is my code: http://stackoverflow.com/questions/34216417/using-wkhtmltopdf-and-node-js-to-generate-pdfs
I'm very sorry for commenting on A) a closed issue and B) for not opening up a new one. I didn't think it was worthy of opening up a new issue since my question was similar. I'll be more than glad to remove my comment, open a new one, or ask my question(s) elsewhere. Thanks for the awesome library and the help!!

Also:
https://github.com/spion/promise-streams

A small addition to @petkaantonov's solution, suggest adding stream.resume();, otherwise there is no guarantee that the stream will drain and emit end.
Example:
const gs = require('glob-stream');
const through = require('through2').obj;

function streamToPromise(stream) {
  return new Promise(function(resolve, reject) {
    stream.on('end', resolve);
    stream.on('error', reject);
  });
}

function log(data, enc, cb) {
  console.log(data.path);
  cb();
}

const stream = gs.create('./*.txt')
  .pipe(through(log));

streamToPromise(stream)
  .then(() => { console.log('I never print, womp womp'); });

but the print will happen if one uses:
function streamToPromise(stream) {
  return new Promise(function(resolve, reject) {
    stream.on('end', resolve);
    stream.on('error', reject);
    stream.resume();
  });
}

isn't there a risk that these event handlers:
    stream.on('end', resolve);
    stream.on('error', reject);
  });

leak memory?

@manast EventEmitters (like Streams) should remove their listeners when they complete. That allows GCing them.


Get mitogen.fakessh module working again

Fixes include

Setting cloexec flag on pipe files, using set_inheritable on sockets,
and close_fds=False on subprocess.Popen to work around file
descriptors not being inheritable by default in new versions of python

Adding mitogen.exit_status variable and avoiding os.kill call so fake
'ssh' script is able to exit cleanly with correct status code

Fixing broken os.dup call in ExternalContext._setup_master when input
and output streams have the same descriptor

Updating fakessh module to do necessary python3 string/byte
conversions, and use updated mitogen Protocol, Stream, and Router apis

Simplifying fakessh startup sequence so there aren't unnecessary
differences between ways control and data handles are passed, and ways
master and slave processes are initialized

Fixing shutdown race conditions where subprocess exit handling or
stdin EOF handling could result in a truncated stdout stream

Updating and adding a lot of docstrings and comments

Adding Process.proc is None / is not None assertions to be clear about
which parts of fakessh.Process code are specific to the slave process,
and which parts are specific to the master process.

Re-enabling unit test case and updating an outdated file path so it
passes

@ryanofsky please could you update this to current master. Otherwise, may I update this branch on your behalf?

@ryanofsky please could you update this to current master. Otherwise, may I update this branch on your behalf?

@ryanofsky please could you update this to current master. Otherwise, may I update this branch on your behalf?

Hi! I think I can update the branch in the next few days or so, but if you're interested to do it sooner or take this over, it'd be more than welcome. Happy to add permissions to my github branch if that would help.

@ryanofsky please could you update this to current master. Otherwise, may I update this branch on your behalf?

Hi! I think I can update the branch in the next few days or so, but if you're interested to do it sooner or take this over, it'd be more than welcome. Happy to add permissions to my github branch if that would help.

Hmm, apparently it was just a release notes documentation conflict so I used the github web interface to resolve it. The merge seems ok, but I can update if you want a different commit structure (maybe a rebase), or if something isn't working.

Hmm, apparently it was just a release notes documentation conflict so I used the github web interface to resolve it. The merge seems ok, but I can update if you want a different commit structure (maybe a rebase), or if something isn't working.

It seems that while this PR does restore fakessh functionality, taking it from a completely broken state to an updated and working state, there are still problems in CI.
One way to move forward with this PR might be to merge the code changes but keep the @unittest2.skip('broken') test annotation so fakessh can still be used while CI issues are debugged. fakessh is working well for me with the current PR and the fakessh_test.py test does pass reliably for me locally.
Looking at logs there seem to be 3 distinct CI issues:

ValueError: I/O operation on closed file exception causing self.assertEqual(return_code, 0) test failure. This seems to be a race condition that doesn't always happen. When it does happen rsync actually succeeds but there is an error closing down connections.

AttributeError: '_socket.socket' object has no attribute 'set_inheritable' error in python2, because the method only exists in python3. It should be pretty easy to fix because the call isn't necessary in python2 (descriptors are inherited by default there).

assert [proc.wait() for proc in procs] == [0] * len(procs) in ansible install. It's not actually clear that this is related to the PR, but it might be.


[python] Empty failure message

I received an empty message on a failure, which is difficult to debug.
I probably messed up something about using TypedDict, so I'll keep studying the examples, but I figure it should always show some sort of message, right?
Code is at:
https://gist.github.com/pamelafox/ec8e229a774c5d7920a3b03bf38d1d07

It's unrelated to what you're running into, but one thing that is going to go wrong is that you probably meant to write
-         for question in result.value.questions:
+         for question in result.value["questions"]:
              print(question)

since the types are declared as TypedDicts - if you don't want that, you can always declare them as dataclasses instead.

The actual issue that's taking place is that the request is timing out since the underlying HTTP library has a timeout of 5s. The empty error message is due to the fact that the thrown ReadTimeout has no information. I can probably raise the default models to timeout after a longer duration.
This all adds some reckoning with TypeChat - how should failures be surfaced?
In the TypeScript version, a model can return a Success or an Error, or it can throw an exception in the event of a timeout or other events!
In TypeChat for Python, currently we only return Success and Failure. In the case of a timeout, the internal exception is completely swallowed up and converted into a failure.
I'll note that both of these are subtly wrong in behavior because when the translator receives a Error/Failure from a model, it may retry with the given error message. In the TypeScript version, if a non-200 status code is received too many times, the translator will retry even though the model already may have retried.
I'll try to chat with @ahejlsberg and others about this.

https://github.com/microsoft/TypeChat/pull/226 increases the timeout. Still unclear whether we should just throw on most things instead.


⚠ Bofrost.at has degraded performance

In ba57064, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 975 ms

Resolved: Bofrost.at performance has improved in a736fa0 after 9 minutes.


roll back to tendermint 0.34

This PR updates all of our various dependencies to use 0.34-compatible versions.

This is building, but there seems to be an issue with tendermint 0.34 <> tower-abci. The app isn't receiving genesis and advancing state, it just sits idle.

The issue with the app sitting idle was that tower-abci was using the 0.35 style length delimiters, rather than the 0.34 ones, and therefore sat waiting for the rest of the message. Fixed by https://github.com/penumbra-zone/tower-abci/commit/91b209f61ccc941683c16dfc34e4a3e3efae57fc


KV README refresh

WIP PR for KV READMEs refresh.

API change check
API changes are not detected in this pull request.


[Improve][Manager] Support custom query for group, stream, source and sink

Description
When querying group, stream, source or sink, it should support custom query by field.
InLong Component
InLong Manager
Are you willing to submit PR?

[X] Yes, I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Please assign this issue to me, thx.

Please assign this issue to me, thx.

done, thanks for your contribution.


27028 - Tibetans

Lat-lon correction:
Songs 20492 and 20493 - Recorded in Beijing, but tape notes indicate they are from Lhasa area. So lat-lon should be 29.65, 91.12, and location should be "Lhasa area, Tibet [Recorded in Beijing, China]."
Note: these songs have been removed from sample because they are only partially coded, but they are still in the metadata and will ultimately be coded.

General comment
Other than the correction above, all lat-lons seem to reasonably fall within the rather large territory that Tibetans and Tibetan refugees occupy. Given the size of this area, it could be possible to split the society into regional subgroups. However, I don't know if this is necessary.

Lat-lons corrected


[QA] how to deal with this dependence issue

I git clone codes and compile with maven, maven cannot  resolve symbol "org.tensorflow.framework.ConfigProto" and "org.tensorflow.distruntime.ServerDef". It seems that pom.xml doesnot contain tensorflow dependences. what should I do before build?

TensorFlow dependencies are included as sub-modules. Did you try the following steps ?
git clone --recursive https://github.com/Intel-bigdata/TensorFlowOnYARN
cd TensorFlowOnYARN/tensorflow-parent
mvn package -Pnative -Pdist


arenas should use cache line alignment

The arena structs should be aligned to cache lines.

Implemented by 5241a76016f74a9bbc2c674d58d5d8401d3e8767.


[IconSwitcher] Visual defects on hover and active state #386

Internal Watson-IoT/pal-tracking#386

The new component has some visual defects around hover, active, and focus states.

[ ]  if item is focused but not hovered and not active the icon turns white and disappears on a white background
[ ]  When icon is focused the tooltip is always active. The icon on right tooltip is always on "top" of the icon tooltip to the left. So if you go to try to hover over the icon to the left the tooltip is partial blocked

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Rebound leads to false lava behaviour

When the agent rebounds from a wall and falls into lava, the step function doesn't check for collision. This leads to false behaviour.
The same thing might happen when the slipping factor is activated.
This mostly happens because the step function only checks collision on the cells in front of the agent and not on the cell the agent is currently on (see code below).
if fwd_cell != None and fwd_cell.type == 'goal':
    if self.reward_spec[ABSORBING_STATES]:
        reward += self.reward_spec[ABSORBING_REWARD_GOAL]
    else:
        done = True
        reward += self.reward_spec[GOAL_REWARD]
if fwd_cell != None and fwd_cell.type == 'lava':
    if self.reward_spec[ABSORBING_STATES]:
        reward += self.reward_spec[ABSORBING_REWARD_LAVA]
    else:
        done = True
        reward += self.reward_spec[LAVA_REWARD]
if fwd_cell != None and fwd_cell.type == 'spiky_floor':
    reward += self.reward_spec[RISKY_TILE_REWARD]

https://user-images.githubusercontent.com/100638618/177808908-a6fb01b0-dbe8-4db5-89c9-96955a7d0e11.mov

Bug has been fixed, however I will only close this issue once I've made sure the same thing doesn't happen after slipping has been implemented.
Note: to remove some ambiguity after the fix, I've renamed the local variable fwd_cell to next_cell


TODO: Words to fall once at a time/no overlapping

Right now, the words to be placed within the synonym and antonym boxes are falling all at a time and they are overlapped, making it hard for the user to differentiate between the words.
Suggestion by @walterbender: It would be better if the words would fall once at a time instead.
Another suggestion by @eohomegrownapps: Do you think it might be better if the words continually fell (at random intervals) and the user had to sort them before they reached the bottom of the screen?

The words now fall at random intervals; I might work on the second suggestion though

This issue has been solved - suggestion 2 has been implemented.


Casino Game

Describe the project you want to add with tech stack
To add Casino Game made using C++.

@MohitGupta121 @pranjay-poddar @TusharKesarwani
Please assign it to me so that i can work on it, as soon as possible.


Implement org-toggle-heading functionality

Does this feature exist in Emacs orgmode core?
Yes
Orgmode link
https://orgmode.org/manual/Structure-Editing.html
Feature value
Ability to quickly turn arbitrary text into org headings will improve UX
Additional context
org-toggle-item which is  C-c - in emacs would be also nice to have. This converts text into a list.

@kristijanhusak I started working on this and am stuck on how to determine the parent headline of a paragraph. Is there an easy way from the current line of the cursor to the treesitter node that line belongs to?
PS: I thought of mapping this to <Leader>oh, since it's still free. Let me know if you think a different mapping would make more sense (since e.g. checkbox toggling is done with <C-Space>).

@jgollenz This should give you the closest headline from your current position: https://github.com/nvim-orgmode/orgmode/blob/master/lua/orgmode/org/mappings.lua#L61

the closest headline from your current position

Ah, the naming of that function confused me. I though it will return the headline with the lowest line diff from my current position. Thank you!

@grepinsight do you mind having a look at this #198? One thing I'm not sure how to handle is tags. Would you expect tags to disappear or should they just remain at the end of the line without any impact? I'd prefer the latter, because it is non-destructive (should you decide to turn the line back into a headline) and already works

Org-mode also allows toggling a checkbox item into a headline:
- [ ] item becomes * TODO item
but then
* TODO item becomes TODO item
In general: toggling a list item to a headline and toggling that headline again will result in a paragraph line. Can you think of any other cases besides paragraph lines and list items that I need to consider?
Aside from that, Org-mode does not insert any spaces in front of a headline that was toggled to a paragraph line. However, I think it makes sense to insert them according to org_indent_mode

Thank you for implementing this! Turning simple text into heading works and vice versa.

Would you expect tags to disappear or should they just remain at the end of the line without any impact? I'd prefer the latter, because it is non-destructive (should you decide to turn the line back into a headline) and already works

I just confirmed with my emacs that emacs does the latter (at least in my setting, which is doom emacs). I think as a user, that's a sensible default because it's non-destructive as you said

In general: toggling a list item to a headline and toggling that headline again will result in a paragraph line.

This is also the behavior I observed in emacs as well.
One thing I wished the feature branch had that was missing was ability to toggle multiple lines of text into multiple headings by visual mode

Other than this, it looks pretty solid

@grepinsight Thank you for testing it :)

toggle multiple lines of text into multiple headings by visual mode

I assume selecting multiple lines in visual mode is the Vim equivalent of what Emacs/Orgmode calls "regions", correct? I have a look at this, but please tell me what happens in Emacs when there is both normal lines and headlines in the region:

case1: normal line and headlines

case2 : normal lines and list

case2b: list and normal lines

conclusion: Looks like if there are mixed types in visual selection, only first type in the visual selection is affected
cc @jgollenz

@grepinsight thanks for clarifying :) I'll see what I can do

@grepinsight one more thing: could you please let me know how it behaves when you have a blank line as the first line in the visual selection?

Thanks for being thorough @jgollenz
When you have a blank line(s) as the first line in the visual selection, they are simply ignored and the first non blank lines are used for toggle

@kristijanhusak support for toggling multiple lines would entail a visual mode mapping. As far as I can see we are only using normal mode mappings right now, hard-coded in the setup_mappings function if I'm not mistaken. I don't know how many emacs orgmode features rely on regions/visual selections, but IF we want to support them, we should think of how to do it properly. I'd prefer to do that in a different PR then. What's your opinion on this?

@jgollenz for now implement only the normal mode mapping. At one point I'll figure out how to set up multiple mode mappings and we can introduce it then. I don't think it's a big of an issue without the visual mapping here.


Figure out a way to incorporate other apps (CORS issues etc.)

Help each respective service team set up their apps to be included "under" the navbar (CORS etc.)

[ ] https://github.com/unity-sds/unity-ui/issues/19
[ ] https://github.com/unity-sds/unity-sds-portal/issues/10
[ ] https://github.com/unity-sds/unity-ui/issues/22

part of https://github.com/unity-sds/unity-project-management/issues/74

also get Airflow working inside Navbar

dependencies are 24.1.5... so this cannot be done before that

Start with Airflow (#22 )

@galenatjpl The reason we have had CORS issues in the past is because the services we were loading into the UI were being served from URLs that weren't part of the same domain, i.e. not routed through the venue's CloudFront instance.
Assuming that the service areas will be using a venue's cloudfront instance to provide access to their respective user facing UI (dockstore, stac browser, airflow, etc.), won't CORS issue be a moot point?

@anilnatha , Both @ramesh-maddegoda and @mike-gangl were working on a httpd server that has a ALB and cert.  I think @mike-gangl was thinking that airflow is a "www" thing, and not an "api" thing, and therefore would go through httpd.
In other words,
www.* points to the httpd load balancers
api.* points to API Gateways
So the other apps (and the Navbar UI) should have URLs starting with https://www.dev.mdps.mcp.nasa.gov:4443/ ...
So I think the answer hopefully is that you don't have this CORS issue anymore, but we would have to test.

There may still be some CORS issues to resolve, e.g. submitting a job to the API (WPS)  from the dashboard, but i think those belonging to the same domain will help alleviate these issues.
As for hosting another application, its essentially an iframe pointing at www... content, so that should be pretty standard.

needs u-cs work on httpd resolved

May need to handle the APIs because they'll have a different domain (api.blah vs. www.blah) when loading the Jobs Dashboard (for example)

@anilnatha I think we can test Jupyter in the navbar now... it should have a URL that can avoid the CORS stuff

also need to handle passing of Cognito tokens into the iframe

Cognito into iframe = cookies. Working on it

Each health-endpoint URL should have the MCP URL
then it should show up in the navbar and work properly


[ADD ME TO THE ORGANIZATION]

Aman:
Kanpur:
Coding:
Discord username(optional):-
Why do you want to join?

I want to join because

You can also join our Discord community here
Feel free to check out other cool repositories of the DevsInTech Community here.

@Amanastel Thanks for your interest. Invitations have been sent to you. Kindly accept it and make your membership public.


Auto-compilation & -setup of dependencies on file worker startup

This PR extends the file worker to call leanpkg print-path <imports> on startup (if there is a leanpkg.toml in the workspace root), which will configure the current package (compiling all dependencies), compile the specified (local) modules, and print the corresponding LEAN_PATH to stdout, where it is picked up by the file worker. While running, the latest stderr line of leanpkg is reported as an "information" message.
Note that this won't work when editing Lean's own src/ because there is no leanpkg binary in stage 0.
There are two more minor server changes included:

A fatal file worker exception after receiving didOpen (i.e. when we know the path of the current file) is reported as a diagnostic, which is great for displaying the result of a failed leanpkg invocation
Only didChange requests restart a crashed file worker now; without this change, the documentSymbol request threw my Emacs into a restart loop

Feel free to give this a try, perhaps even on Windows if someone feels courageous!
How to test:

open tests/leanpkg/b/ as a workspace folder
opening B.lean in there should automatically compile & find B/Foo.lean as well as the dependency ../a
try editing B/Foo.lean, e.g. introducing the commented delay or an error; restarting the worker for B.lean should make the change visible there

TODO:

[ ] Analogous feature using Nix when there is a flake.nix in the root instead

Nix support is working, so this should be ready to go:

Getting the gorgeous Nix progress bar I showed off in the demo in there is future work... :)

Nix support is working, so this should be ready to go:

Getting the gorgeous Nix progress bar I showed off in the demo in there is future work... :)


Add ws id and doc name params to POST /docs

Addresses https://github.com/gristlabs/grist-core/issues/635.

@georgegevoian @berhalak in your opinions does this need a security review? Any thinking needed about whether someone could put a doc in someone else's workspace, that kind of thing?

@georgegevoian @berhalak in your opinions does this need a security review? Any thinking needed about whether someone could put a doc in someone else's workspace, that kind of thing?

It wouldn't hurt.
I checked workspace access beforehand from all the different branches the code goes through, including when a user is anonymous. Looked ok, but there could be another angle I'm not thinking of that needs checking.


Change bars from DITAVAL crash FOP

Breaking this off from issue #1175
When using changebar in a DITAVAL for revisions, the PDF code creates <fo:change-bar-begin> and <fo:change-bar-end> in the current context of the document. This means that for nearly every case, those elements become children of <fo:block> or <fo:inline>. This doesn't meet the letter of the XSL-FO spec, which only allows change bars as a child of <fo:flow>. When FOP encounters the change bars in these locations, it crashes.
We should update the build so that when using FOP, we skip generating those change bar elements, allowing the build to finish. AH currently ignores the elements, so we may as well leave them in, in case support comes along later. I'm not sure about XEP, but I think the original testing with this code used XEP so I'm guessing it either supports or ignores the markup.

I'm no longer able to reproduce this in 2.2. It may have been fixed with the updates in 2.2 to use the flagging preprocess, or may have been fixed earlier. Either way, using the gist that failed in an older version, I get a PDF with no errors from FOP.

I am getting this error in 2.3.2.


use pino-std-serializers

Coverage increased (+0.04%) to 98.636% when pulling cc7af1f4a1a6243c9c0744d19173903c8271ddeb on use-std-serializers into ee6d1fc1fa66c1d5b6a3964d7455b2976512f5c6 on master.


deps: fix pinning of click

Ref: https://github.com/pipermerriam/flex/commit/009151d970#r28482893

Thanks for the PR, I was largely updating to pin within major version ranges but this one I don't mind extending upwards a few version ranges.


add feature for easy entry of diacritics

It would be nice to have an aid for entering diacritics, perhaps, something analogous to what we have in Connexion.

Or if that isn't possible, a list of keyboard equivalents.

transferring to requirements repo as this is outside the scope of current grant


unable to use loadingoverlay in materialize modal

When I am trying to use loadingoverlay for .modal-content its looking like the above image. Instead when I am trying to use it for .modal its looking like below.

Can you please suggest me a solution for this. Thanks in Advance.

Please provide some code or at least that Codepen you are using.

sorry. I forgot.
https://codepen.io/anon/pen/aYBQzE

There was a bug lurking around for some time: if an element has position : fixed but also some margins, jQuery .position() fails to detect its actual position.
Fixed it with getBoundingClientRect(), your script should work with v2.0.2, please give me some feedback.

Hello. So far its been fixed for .modal but there is still problem with .modal-content. But anyways I can adjust with this. But if you can solve for that one as well, it would be great.
Thanks much for quick reponses.

That's the expected behaviour on your .modal-content element. You are seeing a bigger LoadingOverlay because that modal plugin you are using relies on overflow  hidden to hide part of the .modal-content.
LoadingOverlay is covering the .modal-content just as it is supposed to do.
Apply LoadingOverlay on .modal and you will be fine.
PS: No need to set zindex  option to 9999, leave it the dafult value.

Sure. Thanks much.


Don't print redundant errors when parsing GDScript

See the proposal where I reported this: https://github.com/godotengine/godot-proposals/issues/4945
Before:

The second error line is not only redundant, as the actual error is printed above, but is confusing and intimidating for new users who don't want to be thinking about .cpp files or the 873rd line of any file.
After:

Only the GDScript error prints!
This would work in 3.x as well; the only change is that 3.x doesn't have an Analyzer step.

Thanks! And congrats for your first merged Godot contribution :tada:


引入后启动问题

CocoaPods' output:
↳
Preparing
Analyzing dependencies

Inspecting targets to integrate
  Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)

Finding Podfile changes
  A flutter_macos_webview
  - FlutterMacOS

Fetching external sources
-> Fetching podspec for `FlutterMacOS` from `Flutter/ephemeral`
-> Fetching podspec for `flutter_macos_webview` from `Flutter/ephemeral/.symlinks/plugins/flutter_macos_webview/macos`

Resolving dependencies of `Podfile`
  CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update
[!] CocoaPods could not find compatible versions for pod "flutter_macos_webview":
  In Podfile:
    flutter_macos_webview (from `Flutter/ephemeral/.symlinks/plugins/flutter_macos_webview/macos`)

Specs satisfying the `flutter_macos_webview (from `Flutter/ephemeral/.symlinks/plugins/flutter_macos_webview/macos`)` dependency were found, but they required a higher minimum deployment target.

/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:328:in `raise_error_unless_state'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:310:in `block in unwind_for_conflict'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `tap'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `unwind_for_conflict'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:684:in `attempt_to_activate'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:254:in `process_topmost_state'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/resolver.rb:94:in `resolve'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:1074:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:1072:in `resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:124:in `analyze'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:414:in `analyze'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:239:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:238:in `resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:160:in `install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/command/install.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'

Error output from CocoaPods:
↳
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin20/rbconfig.rb:229: warning: Insecure world writable dir /usr/local/sbin in PATH, mode 040777
Ignoring ffi-1.13.1 because its extensions are not built. Try: gem pristine ffi --version 1.13.1
Exception: Error running pod install

@17600777607 have you tried running this command?

Ignoring ffi-1.13.1 because its extensions are not built. Try: gem pristine ffi --version 1.13.1

@17600777607 have you tried running this command?

Ignoring ffi-1.13.1 because its extensions are not built. Try: gem pristine ffi --version 1.13.1

@17600777607 also, please give this issue a name in English

@17600777607 also, please give this issue a name in English

I got the same error some days ago.
update the code to null safety, then it was work well.

I got the same error some days ago.
update the code to null safety, then it was work well.

Hi @joliu1019,  I am also getting the same error mentioned above.  How did you update the code to null safety to get around the issue?

I got the same error some days ago.
update the code to null safety, then it was work well.

Hi @joliu1019, I am also getting the same error mentioned above. How did you update the code to null safety to get around the issue?

I just followed the instructions here ("https://stackoverflow.com/questions/66648374/how-to-migrate-code-to-null-safety-in-dart") and migrated my test code to null safety.  But I am still getting the same issue.  @joliu1019 , could you please explain how you got the "flutter_macos_webview" plugin working on your Mac?

Never mind... I figured out how to fix this.  I just need to re-compile Runner.xcodeproj with macOS Deployment Target set to "10.15"!

@weifengsonos I've just published new version with null-safety support, please check if it resolves your issue

@vanelizarov Thanks for the updated version!  The problem that I am seeing now is the issue below, which is one of the closed issues.  I don't know how to fix this.
flutter: Error: 2, WebResourceErrorType.webContentProcessTerminated, WKErrorDomain, Error Domain=WKErrorDomain Code=2 "(null)"

@weifengsonos nah, for me it's a random issue, you can simply reload the webview


python3Packages.strawberry-graphql: init at 0.125.0

Description of changes
Add python package strawberry-graphql version 0.125.0.
Things done

Built on platform(s)

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

[x] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 185838 run on x86_64-darwin 1

2 packages marked as broken and skipped:

python310Packages.strawberry-graphql
python39Packages.strawberry-graphql

cc @SuperSandro2000 @jonringer

cc @jonringer

Needed add checkPhase?
iff --git a/pkgs/development/python-modules/strawberry-graphql/default.nix b/pkgs/development/python-modules/strawberry-graphql/default.nix
index b403747bbc8..a7c0ba682bb 100644
--- a/pkgs/development/python-modules/strawberry-graphql/default.nix
+++ b/pkgs/development/python-modules/strawberry-graphql/default.nix
@@ -1,20 +1,21 @@
 { lib, buildPythonPackage, fetchFromGitHub, poetry, pythonOlder
 , click, backports_cached-property, graphql-core, pygments, python-dateutil, python-multipart, typing-extensions
 , aiohttp, asgiref, chalice, fastapi, flask, pydantic, sanic, starlette, uvicorn
+, pytestCheckHook, pytest-aiohttp, pytest-asyncio, pytest-benchmark, pytest-freezegun, pytest-mock, pytest-snapshot
 }:
@@ -26,6 +27,26 @@ buildPythonPackage rec {
     aiohttp asgiref chalice fastapi flask pydantic sanic starlette uvicorn
   ];

+  preCheck = ''
+    # Disable emoji and mymy tests
+    substituteInPlace pyproject.toml \
+      --replace '"-s --emoji --mypy-ini-file=mypy.ini --benchmark-disable"' '"-s --benchmark-disable"'
+    rm tests/conftest.py
+  '';
+
+  disabledTestPaths = [
+    "tests/django"
+    "tests/sanic"
+    "tests/mypy"
+    "tests/schema/extensions/test_datadog.py"
+    "tests/schema/extensions/test_imports.py"
+    "tests/schema/extensions/test_opentelemetry.py"
+  ];
+
+  checkInputs = [
+    pytestCheckHook pytest-aiohttp pytest-asyncio pytest-benchmark pytest-freezegun pytest-mock pytest-snapshot
+  ];
+
   pythonImportsCheck = [
     "strawberry"
   ];

Result:
python3.10-strawberry-graphql> =============================== warnings summary ===============================
python3.10-strawberry-graphql> ../../nix/store/xz8645jq7fkz3d7hrxd80854iscj6d8a-python3.10-pytest-7.1.2/lib/python3.10/site-packages/_pytest/config/__init__.py:1252
python3.10-strawberry-graphql>   /nix/store/xz8645jq7fkz3d7hrxd80854iscj6d8a-python3.10-pytest-7.1.2/lib/python3.10/site-packages/_pytest/config/__init__.py:1252: PytestConfigWarning: Unknown config option: DJANGO_SETTINGS_MODULE
python3.10-strawberry-graphql>     self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
python3.10-strawberry-graphql> ../../nix/store/hg6ijc3rnsfd7ybngpnibigfwyr3b3cn-python3.10-fastapi-0.79.0/lib/python3.10/site-packages/fastapi/__init__.py:7
python3.10-strawberry-graphql>   /nix/store/hg6ijc3rnsfd7ybngpnibigfwyr3b3cn-python3.10-fastapi-0.79.0/lib/python3.10/site-packages/fastapi/__init__.py:7: DeprecationWarning: ExceptionMiddleware is deprecated on `starlette.exceptions`. Import it from `starlette.middleware.exceptions` instead.
python3.10-strawberry-graphql>     from .applications import FastAPI as FastAPI
python3.10-strawberry-graphql> tests/test_auto.py:11
python3.10-strawberry-graphql>   /build/source/tests/test_auto.py:11: PytestCollectionWarning: cannot collect test class 'TestType' because it has a __init__ constructor (from: tests/test_auto.py)
python3.10-strawberry-graphql>     @strawberry.type
python3.10-strawberry-graphql> tests/test_dataloaders.py::test_works_when_created_in_a_different_loop
python3.10-strawberry-graphql>   tests/test_dataloaders.py:203: PytestWarning: The test <Function test_works_when_created_in_a_different_loop> is marked with<EMAIL_ADDRESS>but it is not an async function. Please remove asyncio marker. If the test is not marked explicitly, check for global markers applied via 'pytestmark'.
python3.10-strawberry-graphql>     def test_works_when_created_in_a_different_loop(mocker):
python3.10-strawberry-graphql> tests/benchmarks/test_execute.py::test_execute[25]
python3.10-strawberry-graphql>   tests/benchmarks/test_execute.py:13: PytestWarning: The test <Function test_execute[25]> is marked with<EMAIL_ADDRESS>but it is not an async function. Please remove asyncio marker. If the test is not marked explicitly, check for global markers applied via 'pytestmark'.
python3.10-strawberry-graphql>     @pytest.mark.asyncio
python3.10-strawberry-graphql> tests/benchmarks/test_execute.py::test_execute[100]
python3.10-strawberry-graphql>   tests/benchmarks/test_execute.py:13: PytestWarning: The test <Function test_execute[100]> is marked with<EMAIL_ADDRESS>but it is not an async function. Please remove asyncio marker. If the test is not marked explicitly, check for global markers applied via 'pytestmark'.
python3.10-strawberry-graphql>     @pytest.mark.asyncio
python3.10-strawberry-graphql> tests/benchmarks/test_execute.py::test_execute[250]
python3.10-strawberry-graphql>   tests/benchmarks/test_execute.py:13: PytestWarning: The test <Function test_execute[250]> is marked with<EMAIL_ADDRESS>but it is not an async function. Please remove asyncio marker. If the test is not marked explicitly, check for global markers applied via 'pytestmark'.
python3.10-strawberry-graphql>     @pytest.mark.asyncio
python3.10-strawberry-graphql> tests/experimental/pydantic/test_basic.py: 1 warning
python3.10-strawberry-graphql> tests/experimental/pydantic/schema/test_basic.py: 20 warnings
python3.10-strawberry-graphql>   /build/source/strawberry/experimental/pydantic/object_type.py:127: DeprecationWarning: `fields` is deprecated, use `auto` type annotations instead
python3.10-strawberry-graphql>     warnings.warn(
python3.10-strawberry-graphql> tests/experimental/pydantic/test_error_type.py::test_basic_error_type_fields
python3.10-strawberry-graphql>   /build/source/strawberry/experimental/pydantic/error_type.py:63: DeprecationWarning: `fields` is deprecated, use `auto` type annotations instead
python3.10-strawberry-graphql>     warnings.warn(
python3.10-strawberry-graphql> tests/fields/test_arguments.py::test_deprecated_unset
python3.10-strawberry-graphql>   /build/source/tests/fields/test_arguments.py:488: DeprecationWarning: `is_unset` is deprecated use `value is UNSET` instead
python3.10-strawberry-graphql>     assert is_unset(UNSET)
python3.10-strawberry-graphql> tests/fields/test_arguments.py::test_deprecated_unset
python3.10-strawberry-graphql>   /build/source/tests/fields/test_arguments.py:489: DeprecationWarning: `is_unset` is deprecated use `value is UNSET` instead
python3.10-strawberry-graphql>     assert not is_unset(None)
python3.10-strawberry-graphql> tests/fields/test_arguments.py::test_deprecated_unset
python3.10-strawberry-graphql>   /build/source/tests/fields/test_arguments.py:490: DeprecationWarning: `is_unset` is deprecated use `value is UNSET` instead
python3.10-strawberry-graphql>     assert not is_unset(False)
python3.10-strawberry-graphql> tests/fields/test_arguments.py::test_deprecated_unset
python3.10-strawberry-graphql>   /build/source/tests/fields/test_arguments.py:491: DeprecationWarning: `is_unset` is deprecated use `value is UNSET` instead
python3.10-strawberry-graphql>     assert not is_unset("hello world")
python3.10-strawberry-graphql> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
python3.10-strawberry-graphql> ========== 1113 passed, 18 skipped, 8 xfailed, 33 warnings in 19.89s ===========
python3.10-strawberry-graphql> Finished executing pytestCheckPhase
python3.10-strawberry-graphql> pytestcachePhase
python3.10-strawberry-graphql> pytestRemoveBytecodePhase

@ofborg build python310Packages.strawberry-graphql python310Packages.backports-cached-property

chalice will be fixed in #181914

Hmm, the package python3Packages.strawberry-graphql has a binary file bin/strawberry. Should it be moved to folders pkgs/... and renamed to strawberry-graphql?

Replace to this variant?
diff --git a/pkgs/development/tools/strawberry-graphql/default.nix b/pkgs/development/tools/strawberry-graphql/default.nix
new file mode 100644
index<PHONE_NUMBER>0..7e0c3088069
--- /dev/null
+++ b/pkgs/development/tools/strawberry-graphql/default.nix
@@ -0,0 +1,36 @@
+{ lib, python3Packages, fetchFromGitHub }:
+
+python3Packages.buildPythonApplication rec {
+  pname = "strawberry-graphql";
+  version = "0.125.0";
+  format = "pyproject";
+
+  disabled = python3Packages.pythonOlder "3.6";
+
+  src = fetchFromGitHub {
+    owner = "strawberry-graphql";
+    repo = "strawberry";
+    rev = version;
+    sha256 = "sha256-8ERmG10qNiYg9Zr8oUZk/Uz68sCE+oWrqmJ5kUMqbRo=";
+  };
+
+  nativeBuildInputs = with python3Packages; [
+    poetry
+  ];
+
+  propagatedBuildInputs = with python3Packages; [
+    click backports-cached-property graphql-core pygments python-dateutil python-multipart typing-extensions
+    aiohttp asgiref chalice django fastapi flask pydantic sanic starlette uvicorn
+  ];
+
+  pythonImportsCheck = [
+    "strawberry"
+  ];
+
+  meta = with lib; {
+    description = "A GraphQL library for Python that leverages type annotations";
+    homepage = "https://strawberry.rocks";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ izorkin ];
+  };
+}

@SuperSandro2000 is it better to change?

strawberry-graphql is mainly a python library, right? If it would be moved outside of pythonPackages it can no longer be used as a dependency.

strawberry-graphql

Didn't know about this moment. Then I'll leave the current version.

https://github.com/ofborg build python310Packages.strawberry-graphql python310Packages.backports-cached-property

@SuperSandro2000 thanks!
Сan make a backport to release-22.05 ?

Python packages is a usually bit brittle and I expect it to require more than one PR to be backported, so I would avoid it for now.

@SuperSandro2000 auto backport in release-22.05 not working:
diff --cc pkgs/top-level/python-packages.nix
index 20cb443bfcc,5690e412683..00000000000
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@@ -9996,6 -10399,10 +9996,13 @@@ in

    stravalib = callPackage ../development/python-modules/stravalib { };

++<<<<<<< HEAD
++=======
+   strawberry-graphql = callPackage ../development/python-modules/strawberry-graphql { };
+
+   streamdeck = callPackage ../development/python-modules/streamdeck { };
+
++>>>>>>> dd9fe977708 (python3Packages.strawberry-graphql: init at 0.125.0)
    streaming-form-data = callPackage ../development/python-modules/streaming-form-data { };

    streamlabswater = callPackage ../development/python-modules/streamlabswater { };

Package builds and works fine:
Usage: strawberry [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  codegen        Generate code from a query
  export-schema  Exports the schema
  server         Starts debug server


Performance5

@czdsdo , please help review this pr. thx

@czdsdo , please help review this pr. thx


Blazor Server reconnection coverage

Fixes #32789
Addresses #32692
Addresses #31909
Mackinnon, ~I'm blocked at the moment on working on the What's New side of this until another PR merges, but I'll have the What's New part for this updated (some coverage was placed that I'll be touching up) by EOD on a separate PR.~
UPDATE: Not blocked any longer on What's New. I'll take care of it after the four reference article PRs are merged.
WRT this coverage: It seems like we'd call the default logic "a computed backoff strategy" instead of "an exponential backoff strategy." However, your custom example is exponential, so I retain that language for the example.
I was curious about the default logic, and I think devs will be curious, too. The link goes here ...
https://github.com/search?q=repo%3Adotnet%2Faspnetcore computeDefaultRetryInterval&type=code
... and that's probably a decent approach for avoiding a hard link with a specific set of line numbers. It will work well as long as the FN name computeDefaultRetryInterval is stable. I like the way that it finds the exact line in the file for them when they click on the search result, and I like the way that it would find this FN if it moved to a different file in the future. However, we can pull that link and those remarks if you don't want to risk it breaking at some point.
As usual, the INCLUDE that explains what the link loads follows the link, and the content of that INCLUDE can be seen here ...
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/includes/aspnetcore-repo-ref-source-links.md

Internal previews

📄 File
🔗 Preview link

aspnetcore/blazor/fundamentals/signalr.md
ASP.NET Core Blazor SignalR guidance

It will work well as long as the FN name computeDefaultRetryInterval is stable

Yeah, I think that's probably fine. In the worst case, we accidentally rename it in the future, but we then will likely get reports of a broken link and fix it.

Try it now, but I'm not sure if that wording is exactly right ... I've been working here from 6am to 8pm non-stop 😩.

Ok ... all good.
🍻
I'll get this merged as soon as it builds.


Firebase Function - Search

MIgrate the search code to Firebase Function
Explore keeping the vector files in Firebase Storage

Hi I have tried to implement the search API (predicting schemes) on firebase and tested a little using Thunder Client.
Some notes:

I have tried to make minimal changes compared to the FastAPI backend so query records are still stored in a dictionary, can explore using firestore potentially(?)
I haven't discovered a way for firebase to handle lifespan events, so initialisation of the Search models are done upon first request.
The original ml_logic folder (in backend) which contains the code for the implementation of the Search algorithm can't really be accessed by main.py in the functions folder as the virtual environment is located within the functions folder, so I duplicated the ml_logic folder into the functions folder instead. Might be able to use some form of symlink instead, or in production, store the code for the FastAPI app somewhere else and move the functions venv up.

Successfully implemented Search function with firestore but schemes embedding (.npy file) and index (.faiss file) needs to be re-generated.
Models, preprocessors and tokenizers are also initialised as a class variable so they can be initialised from main.py

Singleton Pattern - Check with Traci
Loggin search queries/Results in the Firestore
Deploy the function to firebase


How to set an option requiring a function

How would you set some function-valued option (e.g. legendFormatter) to some javascript function using this package?

Here you can find an example:
https://github.com/akaunting/akaunting/blob/master/app/Widgets/CashFlow.php#L49
https://github.com/akaunting/akaunting/blob/master/app/Traits/Charts.php#L98


cmd/go: downloads follow plain-HTTP redirects even when the -insecure flag is not set

What version of Go are you using (go version)?

$ go version
go version devel +35f4ec152b Sat Jan 5 00:45:14 2019 +0000 linux/amd64

or
ArchLinux's community/go 2:1.11.4-1
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/xftroxgpx/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/xftroxgpx/build/2nonpkgs/go.stuff/gopath"
GOPROXY=""
GORACE=""
GOROOT="/usr/lib/go"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build832694890=/tmp/go-build -gno-record-gcc-switches"

What did you do?

EDIT: First, make sure outgoing tcp connections to port 80 are blocked / notallowed, in firewall! Otherwise you won't get the connection refused error, and thus won't realize the download was done over http.
$ cd $GOPATH
#note: NOT $GOPATH/src  !!!
$ git clone https://github.com/perkeep/perkeep.git perkeep.org
...
$ cd perkeep.org
$ time go run make.go
...
(error here)
$ time go run make.go
...
(same error here)
$ go clean
...
(same error here)

What did you expect to see?
no http fetches, ie. all fetches should've been done via https (because all sites support https)
What did you see instead?
go<EMAIL_ADDRESS>unrecognized import path "bazil.org/fuse" (https fetch: Get http://bazil.org/fuse/?go-get=1: dial tcp <IP_ADDRESS>:80: connect: connection refused)
go: error loading module requirements

That bazil.org is the first entry in $GOPATH/perkeep.org/go.mod (in go.sum too but it doesn't matter here), so if I change it to something else, it's reflected in the error message.
Everything works and no error is emited when I move the cloned dir perkeep.org from $GOPATH into $GOPATH/src
Related:
https://github.com/golang/go/issues/29590#issuecomment-451747667
https://github.com/perkeep/perkeep/issues/1242#issuecomment-451747326

As per Russ' tag https://go-review.googlesource.com/c/go/+/156838/1#message-8325ce15c5be4916150a98dbf005cc92b254d0da I shall bump this to Go1.13. Thanks for the work and the discussions everyone.

This is now fixed at head.
I want to monitor just how much fallout it produces before we try to backport it.

This isn't completely fixed: I fixed cmd/go/internal/web, but cmd/go/internal/modfetch uses cmd/go/internal/web2, which for some reason is a completely different implementation.

@gopherbot, please backport to Go 1.12 (per https://github.com/golang/go/issues/29618#issuecomment-490137320).


About Scripts

Please add script support for ubuntu. For me at ubuntu scripts doesn't work!

@nnpaster can u send me script that dont work? but i use arch


Request: Save flat rootfs to tar

I would like to save the actual rootfs to a tar file, as you suggested in #131 this can be done by adding --format flattened

going to close as a duplicate of #162


[PBANCONTROL] LPS-49743 / AUI-1628

I am adding solution to XSS bug LPS-49743 / AUI-1628 to produban megapatch.
Liferay-portal changes in pr: https://github.com/giros/liferay-portal-ee/pull/96

Merged and pushed to https://github.com/giros/alloy-ui/tree/PBANCONTROL


Missing Clerk Secret Key.

After going through the set up here https://clerk.com/changelog/2024-03-28 I'm getting this error.  I believe it's some astro error, just not sure where to start really.

Hey @jamalgillis did you replace
PUBLIC_ASTRO_APP_CLERK_PUBLISHABLE_KEY=<your-publishable-key>
CLERK_SECRET_KEY=<your-secret-key>

with the keys that were provided in dashboard.clerk.com ?

Yes i did.  I'm thinking maybe it has to do with my local .env variables not being read for some reason.  I don't fully understand how environment variables work in Astro.


[DS-3032] Integrate config service properties into ShibAuthentication

https://jira.duraspace.org/browse/DS-3032
https://jira.duraspace.org/browse/DS-3033

@tdonohue , I have tested this and have confirmed that the list values are mapping properly to special groups.  I believe that this is ready for integration.
Note that I have not addressed https://jira.duraspace.org/browse/DS-3034 in this PR.

+1 This code all looks correct to me. I'm going to merge immediately, as we need to get Shib functional again on master.


Feature Request: fuzzy time formatting

I am using the fuzzy clock KDE provides on Linux and it nicely formats the time in a less accurate way, for example

Five to nine
Twenty-five to two
Half past six
Noon
Middle of the week

depending on the configured level of fuzziness.  I'd love to use it in the Atom editor (see https://github.com/b3by/atom-clock/issues/5#event-472791628), but somehow it appears to be a suitable feature request for moment.
There already is an implementation in C++ which includes a lot of locale definitions (MIT licensed):
https://github.com/m66n/fuzzyclock
So if it is not too much work and a considered a useful feature, please implement it.

This might be useful to some, but IMHO it would be better implemented as a plugin, rather than a core feature.
If you (or someone else) care to author it, we can list it at http://momentjs.com/docs/#/plugins/
Thanks.


chore: fix undefined values in jest snapshots

Older versions of enzyme-to-json would output explicitly undefined
prop values as style={undefined}. Since v3.2.1 it has ommitted
undefind prop values. Our package.json allowed for people to use
either version, and we only just got a package-lock file so PRs
kept failing as we're all using different versions and having to
push changes to snapshots that either fail locally or in ci.
This PR pins enzyme-to-json to the latest for all of us. No more
undefined property values in snapshots. Now we just need to write
some good tests.
Fixes #163
License: MIT
Signed-off-by: Oli Evans<EMAIL_ADDRESS>

@lynnandtonic @designsaves @one000mph @jacobheun@pgte I think this is what's been causing the annoyance with the peerpad UI tests seeming to fail either locally but not in ci, or, in ci but not locally.
The UI tests in their current state barely test anything of value, but at least now, we can rely on them, and start to add more.

Can y'all use a recent version of npm (>5.7, ideally 6 as that's what the package-lock was created with) and do an npm install when you next work on this project please, to flush out those old versions of enzyme-to-json and enjoy smooth future PR-ing. ✨🎷🐩


Binomial Calculator

For the expression of type (ax+by)^n, the current binomial calculator has no resource to calculate the value of the expression if x and y are given, so can I try and add that feature as well, so that if a user wants, they can get the utmost resolved result.
Can I work on this issue as a part of GSSoC'22 @Amit366 ??

Hey, so you can create your own issue which is not this and you can start
working on it.
This issue has been assigned to me.
On Wed, Mar 2, 2022 at 2:16 PM Himanshu Singh Rajput <
@.***> wrote:

I would like to work on this issue, can you please assign me? I am a
GSSOC'22 participant.
Kindly assign me this issue.
—
Reply to this email directly, view it on GitHub
https://github.com/Tech-N-Science/FunwithScience/issues/479#issuecomment-1056591778,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATSK6BPOXNYWCGMCUDT7P7LU54TH7ANCNFSM5PWOE2FQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID:
@.***>

I would like to work on this issue, can you please assign me? I am a GSSOC'22 participant. Kindly assign me this issue.

Hey, so you can create your own issue which is not this and you can start
working on it.
This issue has been assigned to me

I would like to work on this issue, can you please assign me? I am a GSSOC'22 participant. Kindly assign me this issue.

Hey, so you can create your own issue which is not this and you can start working on it. This issue has been assigned to me

Okay, thank you

Is this issue still up for grabs?

@maura-dev yes

Please assign to me for gssoc


release version 2.0.0

Prepared for release 2.0.0

@ziccardi Please add release notes with the description of the change. Otherwise ok!


Improve feedback on sensor "failure"

@LorenzMeier
We see the message SENSOR FAILSAFE! RETURN TO LAND IMMEDIATELY with latest master now and then (in a setup that didn't have any problems so far).
As far as I can see this could relate to either gyro, accel or mag. It should output more info on what went wrong exactly. At the moment this message doesn't help.
Is maybe more info logged somewhere?

@AndreasAntener attitude_estimator_q status will give you what you need.

Only to the console right now. The voter class can output a status though which we could add to the teller output.

I see the print statements. How can I enable this?

Never mind, it's in the status print

It only pops up randomly but I just caught it with the status, seems to be mag:
INFO  gyro status:
INFO  validator: best: 0, prev best: 0, failsafe: NO (# 0)
INFO  sensor #0:

INFO    val:  -0.0086, lp:  -0.0085 mean dev:   0.0000 RMS:   0.0004

INFO    val:   0.0141, lp:   0.0141 mean dev:  -0.0000 RMS:   0.0004

INFO    val:  -0.0056, lp:  -0.0056 mean dev:   0.0000 RMS:   0.0003

INFO  sensor #1:

INFO    val:   0.0110, lp:   0.0118 mean dev:   0.0000 RMS:   0.0021

INFO    val:  -0.0110, lp:  -0.0108 mean dev:   0.0000 RMS:   0.0018

INFO    val:   0.0132, lp:   0.0134 mean dev:  -0.0000 RMS:   0.0015

INFO  sensor #2:

INFO    no data

INFO  accel status:
INFO  validator: best: 0, prev best: 0, failsafe: NO (# 0)
INFO  sensor #0:

INFO    val:   9.5105, lp:   9.5048 mean dev:   0.0000 RMS:   0.0066

INFO    val:  -0.2651, lp:  -0.2673 mean dev:   0.0000 RMS:   0.0072

INFO    val:   2.0955, lp:   2.0879 mean dev:   0.0000 RMS:   0.0107

INFO  sensor #1:

INFO    val:   9.5651, lp:   9.5471 mean dev:   0.0000 RMS:   0.0213

INFO    val:  -0.1404, lp:  -0.1540 mean dev:   0.0000 RMS:   0.0185

INFO    val:   2.5017, lp:   2.5063 mean dev:  -0.0000 RMS:   0.0268

INFO  sensor #2:

INFO    no data

INFO  mag status:
INFO  validator: best: 0, prev best: 1, failsafe: YES (# 2)
INFO  sensor #0:

INFO    val:  -0.3491, lp:  -0.3483 mean dev:   0.0000 RMS:   0.0018

INFO    val:   0.0533, lp:   0.0527 mean dev:  -0.0000 RMS:   0.0018

INFO    val:  -0.1703, lp:  -0.1700 mean dev:   0.0000 RMS:   0.0013

INFO  sensor #1:

INFO    val:  -0.4060, lp:  -0.4062 mean dev:  -0.0000 RMS:   0.0013

INFO    val:   0.0675, lp:   0.0670 mean dev:  -0.0000 RMS:   0.0023

INFO    val:  -0.1250, lp:  -0.1253 mean dev:  -0.0000 RMS:   0.0019

INFO  sensor #2:

INFO    no data

Is there any info in these values towards the problem? Is the detection too sensitive? Does the ID tell me if it's internal or external?
This btw happened now on boot via USB inside. We had the same (I assume) yesterday outside via battery.

It currently uses the absolute error count to switch, rather than an interval error count. We should probably change this to an error density instead to allow for sporadic I2C bus errors, which happen in practice. The density would be errors divided by total reads over a sliding window. I'll have a go at this later today.

I've changed this to error density on master. This should still disable a failing mag (please test!) but should accept a 1% error count under normal operating conditions.

We'll probably fly the same setup again this week and see if it still switches or not. I can do a mag disconnect test later today.

"best" switches from 0 to 1 if I pull the I2C plug. And it switched back to 0 after I reconnected (reported failsafe # 2). On the second try it didn't switch back to 0 anymore (reported failsafe # 3). This is the supposed behaviour?

The failsafe counter increases on disconnect and reconnect.

Most likely yes. Does it switch back after some time or not at all? There is a hard limit for the error count (10'000 I2C errors) at which point it won't attempt to switch back.
We're not trying to support hot-plug here!

;) I was actually wondering why it switched back anyway. Once a sensor is in error state I probably don't want to use it anymore.
It switched back multiple times now before it stayed at 1. Not sure what was different before. I guess I somehow produced less i2c errors this time. Once it stays at 1 it doesn't seem to go back anymore.

Wasn't there a command to check i2c errors? (maybe I'm imagining things..). I should probably check for those to see how many our setup produces..


proto: including a Timestamp makes Unmarshal return EOF

What version of protobuf and what language are you using?
$ protoc --version
libprotoc 3.6.1
$ sha256sum `which protoc`
caed977a6a8c0318dfa5e67b6b03205d26905916e621c8c0f456350f7b6a6e45  /usr/local/bin/protoc
$ go version
go version go1.11.1 linux/amd64
$ cd go/src/github.com/golang/protobuf && git rev-parse HEAD
ddf22928ea3c56eb4292a0adbbf5001b1e8e7d0d

What did you do?
I found out that unmarshalling messages that include a Timestamp in a direct scenario leads to EOF error.
The simplest demo is https://github.com/bohdantrotsenko/go-proto-issue
In brief, the message:
message TimeInfo {
	string Smth = 1;
	google.protobuf.Timestamp Moment = 2;
}

the code:
res := &TimeInfo{}
err = res.XXX_Unmarshal(serialized)
if err != nil {
	t.Fatal(err) // <-- this fails with "unexpected EOF" unless grpc test is run first.
}

What did you expect to see?
unmarshalled message
What did you see instead?
"unexpected EOF" error
Anything else we should know about your project / environment?
This was surprising, since I have a working service running for almost a year. And indeed, including a grpc setup fixes the problem.
I found out the running a grpc setup makes further unmarshalling take a different execution path in https://github.com/golang/protobuf/blob/master/proto/table_unmarshal.go#L57 but couldn't debug the correct setup.

The XXX_Unmarshal and XXX_Marshal methods are not meant to be called directly. Doing so invalidates certain assumptions it makes about the message state. Replacing those calls with proto.Unmarshal and proto.Marshal fixes the issue.

I am receiving the same error even though I am using proto.Unmarshal. Has anyone else received this error?

We probably would need to see some code, or repro of your situation in order to help out.

@puellanivis oops, false alarm of sorts, I am having trouble with Timestamp but the trouble is before unmarshalling - specifically with base64 encoding a serialized protobuf which includes nested Timestamp fields. Could be related but definitely a different issue - disregard!


Added extension field to DepartmentUser, added new system type choice to ITSystem.

This change is

Reviewed 7 of 7 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


when etcd v3 compact, the client get error: context deadline exceeded

I use  etcd 3.0.15, there is a long time running.
The clients put a key per second, and I set compact per hour.
I found the client always get error " context deadline exceded" ,and in the same time etcd is compacting.
I guess the performance cause the problem.
Is there any suggestion?

Can you reproduce this with a simulated workload generator?

Yes, but maybe a long time. Do you need the log?

Yes. We need the log and a simple way to reproduce it.

@lijianweia kindly ping.

I am going to close this due to low activity. reopen if you still feel this issue is useful.