flutter has exited unexpectedly

Flutter crash report; please file at https://github.com/flutter/flutter/issues.
command
flutter install
exception
ProcessException: ProcessException: Process "E:\Flutter\myapp\android\gradlew.bat" exited abnormally:
Exception in thread "main" java.lang.RuntimeException: Timeout of 120000 reached waiting for exclusive access to file: C:\Users\hp.gradle\wrapper\dists\gradle-4.10.2-all\9fahxiiecdb76a5g3aw9oi8rv\gradle-4.10.2-all.zip
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:61)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Command: E:\Flutter\myapp\android\gradlew.bat -v
#0      runCheckedAsync (package:flutter_tools/src/base/process.dart:259:7)
<asynchronous suspension>
#1      _initializeGradle (package:flutter_tools/src/android/gradle.dart:225:9)
<asynchronous suspension>
#2      _ensureGradle (package:flutter_tools/src/android/gradle.dart:206:37)
<asynchronous suspension>
#3      _readGradleProject (package:flutter_tools/src/android/gradle.dart:134:31)
<asynchronous suspension>
#4      _gradleProject (package:flutter_tools/src/android/gradle.dart:111:34)
<asynchronous suspension>
#5      getGradleAppOut (package:flutter_tools/src/android/gradle.dart:105:29)
<asynchronous suspension>
#6      AndroidApk.fromAndroidProject (package:flutter_tools/src/application_package.dart:160:23)
<asynchronous suspension>
#7      ApplicationPackageStore.getPackageForPlatform (package:flutter_tools/src/application_package.dart:408:38)
<asynchronous suspension>
#8      InstallCommand.runCommand (package:flutter_tools/src/commands/install.dart:37:66)
<asynchronous suspension>
#9      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:478:18)
<asynchronous suspension>
#10     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:383:33)
<asynchronous suspension>
#11     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:29)
<asynchronous suspension>
#12     _rootRun (dart:async/zone.dart:1124:13)
#13     _CustomZone.run (dart:async/zone.dart:1021:19)
#14     _runZoned (dart:async/zone.dart:1516:10)
#15     runZoned (dart:async/zone.dart:1463:12)
#16     AppContext.run (package:flutter_tools/src/base/context.dart:152:18)
<asynchronous suspension>
#17     FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:375:20)
#18     CommandRunner.runCommand (package:args/command_runner.dart:197:27)
<asynchronous suspension>
#19     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:396:21)
<asynchronous suspension>
#20     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:29)
<asynchronous suspension>
#21     _rootRun (dart:async/zone.dart:1124:13)
#22     _CustomZone.run (dart:async/zone.dart:1021:19)
#23     _runZoned (dart:async/zone.dart:1516:10)
#24     runZoned (dart:async/zone.dart:1463:12)
#25     AppContext.run (package:flutter_tools/src/base/context.dart:152:18)
<asynchronous suspension>
#26     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:356:19)
<asynchronous suspension>
#27     CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:112:25)
#28     new Future.sync (dart:async/future.dart:224:31)
#29     CommandRunner.run (package:args/command_runner.dart:112:14)
#30     FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:242:18)
#31     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:22)
<asynchronous suspension>
#32     _rootRun (dart:async/zone.dart:1124:13)
#33     _CustomZone.run (dart:async/zone.dart:1021:19)
#34     _runZoned (dart:async/zone.dart:1516:10)
#35     runZoned (dart:async/zone.dart:1500:12)
#36     run.<anonymous closure> (package:flutter_tools/runner.dart:60:18)
<asynchronous suspension>
#37     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:29)
<asynchronous suspension>
#38     _rootRun (dart:async/zone.dart:1124:13)
#39     _CustomZone.run (dart:async/zone.dart:1021:19)
#40     _runZoned (dart:async/zone.dart:1516:10)
#41     runZoned (dart:async/zone.dart:1463:12)
#42     AppContext.run (package:flutter_tools/src/base/context.dart:152:18)
<asynchronous suspension>
#43     runInContext (package:flutter_tools/src/context_runner.dart:56:24)
<asynchronous suspension>
#44     run (package:flutter_tools/runner.dart:51:10)
#45     main (package:flutter_tools/executable.dart:62:9)
<asynchronous suspension>
#46     main (file:///C:/Flutter/flutter/packages/flutter_tools/bin/flutter_tools.dart:8:3)
#47     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#48     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)

flutter doctor
[✓] Flutter (Channel stable, v1.7.8+hotfix.4, on Microsoft Windows [Version 10.0.17134.706], locale en-US)
    • Flutter version 1.7.8+hotfix.4 at C:\Flutter\flutter
    • Framework revision 20e59316b8 (5 weeks ago), 2019-07-18 20:04:33 -0700
    • Engine revision fee001c93f
    • Dart version 2.4.0

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at C:\Users\hp\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 28.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
    • All Android licenses accepted.

[✓] Android Studio (version 3.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 29.0.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

[✓] VS Code (version 1.37.1)
    • VS Code at C:\Users\hp\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.3.0

[✓] Connected device (1 available)
    • Mi A1 • e354e0250804 • android-arm64 • Android 9 (API 28)

• No issues found!

please help me

Did you retry? It could be working again after that

Try restarting your computer. It seems there is another process trying to access the Gradle folder. This could be Android Studio, Flutter, or anything, really. Once you make sure to exit that process (like restarting) it should clear up. Post again if it doesn't.

[SOLVED]
Hey Guys,
I had the same problem, i started flutter for first time and i had this error
ProcessException: ProcessException: Process "E:\Flutter\myapp\android\gradlew.bat" exited abnormally:
Exception in thread "main" java.lang.RuntimeException: Timeout of 120000 reached waiting for exclusive access to file: C:\Users\snehm\.gradle\wrapper\dists\gradle-4.10.2-all\9fahxiiecdb76a5g3aw9oi8rv\gradle-4.10.2-all.zip

And my brief flutter doctor is:
Channel stable, v1.9.1+hotfix.5, on Microsoft Windows [Version 10.0.17763.805], locale en-IN
So what i did is download gradle-4.10.2-all from below link
https://gradle.org/next-steps/?version=4.10.2&format=all
and replace it with older thing in path
C:\Users\snehm\.gradle\wrapper\dists\gradle-4.10.2-all\9fahxiiecdb76a5g3aw9oi8rv\gradle-4.10.2-all.zip
Make sure you place it in right folder


fix(documentaiton): dependencies and styl;ed.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Introduce a CI job that validates RFCs

We can start with a simple lint check like the one we run in https://github.com/FuelLabs/fuel-specs and we can expand to something more substantial like https://github.com/ethereum/eip_validator

https://github.com/DavidAnson/markdownlint

https://github.com/github/super-linter should be a usable action to run markdownlint

https://github.com/FuelLabs/fuel-indexer/blob/848f3438eccc1c111da23772ab5f8205348fb86e/.github/workflows/ci.yml#L222-L227


CNN model for disease mesh

Extends evaluate ensemble to evaluate all models that have been deployed
Adds ability to pass multiple thresholds to evaluate model to monitor different precision / recalls
Adds predict and tag for new cnn model
Adds configs and results with all experiments for cnn model so far

 Train CNN or BiLSTM on disease subset of MeSH


key value support

Hello!
Would it be possible to log some additional fields when the request is sent to the ElasticSearch back-end ? Typically, it could be interesting to be able to log some extra fields, like some jmeter properties and/or variables . Some key value pair could maybe be used to achieve this.

Hi @ncasaux ,
This could be a good idea! I'd have to see about the implementation though. The key value pair is probably the best idea, although it's a tricky thing to implement in the UI. Here's the way I see it right now (but I find it could get very messy) :
es.custom.fields: "key1:value1;key2:value2"
Any ideas?
Thanks :) !

Hello,
For the properties and variables, maybe we could have an option like "include variables yes/no" and "include properties yes/no" ?
For the specific fields, maybe we could have one row for each key:value pair ? Like:
es.customField.[[myCustomFieldName]]:myCustomFieldValue
Examples:
es.customField.testContext:hardcodedTestContextValue
es.customField.testContext:${some variable or properties}
I hope it's understandable ! :)

Hi,
Very understandable and I do like the idea! I'll try to work something out and I'll let you test it afterwards. This way you'll be able to provide feedback on the way it works, code, and bugs (if found).
This new snapshot should be out in a week or two.
Thanks,

Released the possibility of adding specific variables in 2.3.2. It's very easy to do. All you have to do is add a field in the backend listener and name it whatever you want it to be, same for the value. As for adding all variables, it will be added in 2.3.3 :) !
I pushed 2.3.2 to Maven, also pushed it as a release on this repo. Will merge it to JMeter-Plugins once it's successfully uploaded to Maven's central repository.
Thanks,


Errors if cast json field to array as Docs say

I tried to seek help on the gitter chatroom earlier and decide to report this bug
Copy of the chat logs:
Hi, I'm trying to addField (for a json field) and I keep getting:
json_decode() expects parameter 1 to be string, array given
my field is casted as array of course as the docs recommend
Any idea what's wrong?
If I remove the cast to array in my model, it works!
That runs against the docs so I am confused
Z @ziming 00:06
Anyone here?
Abby @AbbyJanke 00:34
@ziming can you post some code either here or to a gist so we can take a look?
Z @ziming 00:54
Thanks Abby. Here you go.
In my model I cast shop_information to array as seen here
https://cl.ly/segJ
Then in my CrudController my addField I have the following fake field
https://cl.ly/seyg
But when I am in list view or edit view, I will get an error
Here is a screenshot of the logs
https://cl.ly/sesx
Abby @AbbyJanke 00:57
what type of field are you looking for? just a plain text?
Z @ziming 00:57
https://cl.ly/sf6r
my shop_information field is a json field
name is 1 of the fields in that json field
Reading the docs, it says if my json field is not named 'extras' I must cast it as array
which I already did. All my json fields are cast as array before using backpack
Yet it give me this error
When I remove the cast to array, the error dissapear and everything works fine in backpack but other parts of my codebase requires my json fields to be cast as array.
The backpack docs itself said so too:
https://cl.ly/sdun
Abby @AbbyJanke 01:34
public function getShopInformationAttribute($value) {
return json_encode($value);
}
if you add that to your model it will fix it for now.
Z @ziming 01:35
Problem is other parts of my codebase... expect an array back
various other json related packages such as spatie/schemaless also expect json fields to be casted as array
My backpack/crud is "backpack/crud": "^3.4". I only installed backpack today
I have protected $fakeColumns = ['shop_information']; too in my model too
[2018-06-30 17:47:41] local.ERROR: json_decode() expects parameter 1 to be string, array given {"userId":1,"email":"some@example.com","exception":"[object] (ErrorException(code: 0): json_decode() expects parameter 1 to be string, array given at /Users/my-name/php-apps/my-app/vendor/backpack/crud/src/CrudTrait.php:82)

Why are you trying to save it as a fake? - Do you not have a column in your database called 'shop_information?'

Hi @OwenMelbz
shop_information is a json field/column in my table. 1 of the many subfields of shop_information is 'name'
According to the docs to update a subfield in a json field (in my case name or any other subfield in shop_information).
We should use fake fields.
https://laravel-backpack.readme.io/docs/advanced-features
https://cl.ly/seIO
As for why it's designed this way. Let's just say legacy.
The docs also say to cast it as array too.
https://cl.ly/sdun

Despite the fact this is an atrocious bug report, it does seem to be a bug.

Please try not to use a long chat conversation, no matter how valid, as the beginning of a bug report
And why all the links to https://cl.ly/ (markup support links like this natively).

Thank you for accepting my atrocious bug report!

Hello! What is the status of solving the problem? I've been trying to solve this problem for a week already. I'm trying to do a similar fake column in which I'm going to store data, but I get an error about
json_decode() expects parameter 1 to be string, array given
protected $table = 'services';
protected $primaryKey = 'id';
public $timestamps = true;
protected $fakeColumns = ['extras', 'attributes', 'options'];
protected $fillable = ['title', 'slug', 'status', 'geo', 'extras', 'attributes', 'options', 'images', 'created_at', 'updated_at'];
protected $casts = [
    'geo' => 'array',
    'extras' => 'array',
    'attributes' => 'array',
    'options' => 'array',
    'images' => 'array',
    ];

$fields = OptionGroup::where('belongs_to', 'rent')->where('active', true)->get();
  foreach($fields as $field){

    $field_options = Option::where('option_group_id', $field->id)->get();
        foreach($field_options as $field_option){
            $this->crud->addField([
              'name' => $field_option->title, // Fake field name in base.
              'label' => $field_option->title, // Fake label.
              'type' => 'text',
              'wrapperAttributes' => [
                   'class' => 'form-group col-md-12'
              ],
              'fake' => true, // Set fake true
              'store_in' => $field->kind, // If field extras colum it work, but attributes or options dont work.
              'tab' => $field->title, // Parent of field name.
              ]);
    }
}

As you can see the columns created, and when you create in them even the data is saved.

Hi guys,
I just went through this thread again and again - but NOW I think I understand it:

$this->{column} gets the column AFTER the cast has been applied;
$this->attributes[$column] gets the column BEFORE the case has been applied;

In this case, BEFORE is what we needed. That will make addFakes work regardless. I'm pretty sure this will not affect anyone negatively, so I've created an alternative PR #1533 that I've merged into master and will be available with a composer update in a few hours/days, after I bundle it with a few more non-breaking changes.
Thanks a lot for reporting this guys, and providing a solution!
Cheers!


Release v1.0.5

fix #1

This pull request has been refused, the Contribution License Agreement must be signed.


\fbox not in supported function list

https://katex.org/docs/supported.html is missing \fbox (but it has \fcolorbox, and \fbox is in the support table).

https://katex.org/docs/supported.html is missing \fbox

That was intentional. When I researched \boxed, I recall reading that AMS created \boxed because \fbox is not trivial to use. I imagine that is probably because \fbox, like the typical TeX box, doesn't take math. (An issue that repeated itself just this week.)  So when I wrote the first HTML version of the Supported page, I omitted the function that would attract confused bug reports.

\fbox is in the support table)

The support table was, to a large degree, patterned after http://utensil-site.github.io/available-in-katex/. It does include \fbox, so I (reluctantly) included \fbox in the support table.
Either or both decisions may have been misguided. Feel free to edit the documents for consistency.

It is a little weird to not have parity between the two pages.  If we're concerned about issues with \fbox then we could include a comment about those issues on the Supported Functions page.


Clickable invite links on start page

This insanely ugly function should generate clickable "invite" links for each channel specified, instead of just listing the name and user count.

Fixed with commit b09ba5cc394d4c4686ffdcb219b7a66aac27d0d9


Issue with explanation of challenge "Iterate Through an Array with a For Loop"

I just want explanation of the challenge 'Iterate Through an Array with a For Loop'
will you explain that I already complete this challenge but I wanna know how its come "20" and how much time loop work?

Thank you for reporting this issue.
This is a standard message notifying you that this issue seems to be a request for help. Instead of asking for help here, please click the "help" button on the challenge on Free Code Camp, which will take you to the help chatroom for that specific challenge. You can also view our full list of official chatrooms.
If you think I'm wrong in closing this issue, please reopen it and add further clarification. Thank you, and happy coding.


[Bug] Deleting multiple themes bugs the Themes page

If you delete multiple themes, some others will disappear as well and will show up upon restarting the app.
I've been able to successfully reproduce the bug every time.
Vendetta version: f66e62d
Discord version: 174.16

This is (possibly) fixed now. Re-open if not.


Implement responsive header

Requirement
Implement a responsive header as shown in the  and demos below. The demos also show the eventual dark mode switching functionality that will be implemented in #8.
UX/UI
Mockup v2

Desktop Nav Demo

Mobile Nav Demo

Header code refactored in 4a2501b471a848c20d8d8459a0121290abcfe78e


Swagger Docs for User Ratings Endpoints

Description
Swagger documentation for user ratings endpoints
Type

[ ] This is a bugfix.
[x] This is a new feature.
[ ] This is part of a feature.

Organization

[x] Have you linked this pull request to a Trello card?
[x] Have you named the branch in the format of feature/describe_feature_or_change OR bug/describe_bug_this_is_fixing

Review

[ ] Is this a work in progress?
[x]  Is this ready to be reviewed?
[ ]  Have you added two reviewers to this pull request?

 User Ratings Swagger Docs


user registration & authentication

Hello Gareth,
First of all thank you for providing this API to open source. I have learnt alot through perusing and manipulating some code.
I wanted to know how to register and authenticate users who then get access to particular books. I would like to register users with - username, firstname, lastname, email and passwords. I can provide the code base of what I have done.
Kindly help.

Hello Peter, that seems fairly difficult! If you want to use Django, though, I think I can help. Feel free to send me your code, and then I can try to give you some advice when I have some free time. 🙂

Thank you Gareth for getting back.
See below the code. I have changes on the models, views, urls and settings
https://github.com/pmburu/LibOpenDataApi

I recommend adding a relationship between the user and books models. I see you already have a CustomUser model, so I think adding this line to your CustomerUser model would work:
    books = models.ManyToManyField('Book')

Then, after you run python manage.py makemigrations and python manage.py migrate, you will have a connection between User and Book through CustomUser. You can then add books to each user, such as through the Django shell, admin site, or some website feature you build.
After that, you can return only the right books from BookViewSet. You can do that by replacing the first line of BookViewSet.get_queryset with this:
        if self.request.user.is_authenticated and hasattr(self.request.user, 'customuser'):
            return

        queryset = self.request.user.customuser.books
        queryset = queryset.order_by('-download_count')
        queryset = queryset.exclude(download_count__isnull=True)

This will only work if the user has a CustomUser, though. You can create one for each new user in RegisterUsersView.post by adding this line before return Response():
        CustomUser.objects.create(user=new_user, first_name=first_name, last_name=last_name)

If you want signup and login forms, you can add something like this to gutendex/templates/home.html:
{% if request.user.is_authenticated %}

Welcome, {{ request.user }}!

{% else %}
    <form id="register-form">

Register

        <input id="register-form-username" placeholder="Username">
        <input id="register-form-firstname" placeholder="First name">
        <input id="register-form-lastname" placeholder="Last name">
        <input id="register-form-email" placeholder="Email address">
        <input id="register-form-password" placeholder="Password" type="password">
        <button type=="submit">Register</button>
    </form>

    <form id="login-form">

Log in

        <input id="login-form-username" placeholder="Username">
        <input id="login-form-password" placeholder="Password" type="password">
        <button type=="submit">Log in</button>
    </form>

{% endif %}

Let me know if this helps or if you have any questions. 🙂

`        if self.request.user.is_authenticated and hasattr(self.request.user, 'customuser'):
return
    queryset = self.request.user.customuser.books
    queryset = queryset.order_by('-download_count')
    queryset = queryset.exclude(download_count__isnull=True)`

I discovered that there is a bug here: The return screams syntax error

I do not see the syntax error. The code seems to work on my machine. If you post the full error message, I expect I will be able to help.

Hello Johnson,
Thank you for replying. I will get back asap with the error. I hope I will have solved it before.

Hi Peter, I will send you an email from my garethjohnson.io address about this since it outside bug reports or feature requests. 👍


Allow users to pass custom data between chains

Uses the event structure for mint/burn ect events to add an event where any user can emit an event that will allow code to be executed on the other chain.
User must call the validateAndExecuteProof function separately providing the contract address to listen for events from. The event passes the address to call and a bytes array of arbitrary data. The bridge contract then calls the specified address with the function signature HorizonExecute(address,bytes). The address passed is the address of the contract on the other side of the bridge that emitted the event. This allows permissioning of the other side contract specifcally, so that not any contract can emit the event and trigger behavior of contracts on the other chain.
Leaving this PR in draft for now because I am having problems getting the proof generated from the DagProof CLI file to be verified by the validateMPTProof of EthereumProver.sol, therefore preventing me from accessing and testing any of the new code for this feature at the mement.

I also combined the existing functionality for events with this new functionality for the execute event to save on code reuse. Theoretically it would be less gas to separate them, but would result in a lot of code duplication. If anyone has thoughts on this let me know.


Selecting a clinvar significance in custom filters doesn't work

described issue from Al - "Ok. If I create a new filter and just set ClinVar significance to pathogenic then create the filter; the filter is created, but the clinvar significance requirement disappears, so basically all variants get dropped into the filter. If I edit the filter, I see that nothing is applied, so set pathogenic again, but it doesn't get applied"

Fixed


Validation issue

       #if os(iOS) || os(watchOS) || os(tvOS)         guard let v = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String,             v == originalAppVersion else         {             throw IARError.validationFailed(reason: .bundleVersionVefirication)         }
Should be CFBundleVersion and compared to appVersion not originalAppVersion.

@chrisvanbuskirk thank you.
Fixed.

Thanks for fixing...however, you might want to address the Mac side, which I believe is CFBundleShortVersionString instead.  Also, might be appVersion not originalAppVersion.

@chrisvanbuskirk thanks again. Just made a fix, pushing in a bit.


mc_att_control_main: do not apply the yaw weight for the feedforward term

The meaning of the yaw weight changed with #8003:

before, the yaw weight decreased with increasing tilt angle error, so it was mostly 1
now, it is constant and depends on the tuning gains (around 0.4 by default)

It means that #8003 reduced the feedforward term, and we get the closer behavior as before with this change.
It also reduces coupling between different parameters.
This PR fixes a mixer initialization as well.

Makes sense, that weight was only kept because it was there before but your resoning is correct and we're better off without.


Request help：add docs for config hook of host client

Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
Add docs for add docs for config hook of host client. Related pr: https://github.com/cloudwego/hertz/pull/938.
Describe alternatives you've considered
Add docs under https://github.com/cloudwego/cloudwego.github.io both in EN & CH.
Additional context
Related docs page: https://www.cloudwego.io/zh/docs/hertz/reference/config/

Can i try this issue?

Thanks!


How would one handle SNI with multiple domains?

Hello,
I am expressing big interest in your crate and have vaguely gone through the documentation and examples, but one thing is not very clear for me. Usually, one might want to create a web server which handles requests for multiple domains, each with their own certificate, but I cannot see a way of doing this with quinn, or am I wrong?
Based on your server example, you first create the ServerConfig:
... server_config.certificate(quinn::CertificateChain::from_certs(vec![cert]), key)?;
    }

And then you create the Endpoint using that config:
let mut endpoint = quinn::Endpoint::builder();
    endpoint.listen(server_config.build());

And finally you instantiate the listener and start accepting new connections:
let mut runtime = Builder::new().threaded_scheduler().enable_all().build()?;

    let (endpoint_driver, mut incoming) = {
        let (driver, endpoint, incoming) = runtime.enter(|| endpoint.bind(&options.listen))?;
        info!("listening on {}", endpoint.local_addr()?);
        (driver, incoming)
    };
runtime.spawn(async move {
        while let Some(conn) = incoming.next().await {
...
handle_connection(root.clone(), conn).unwrap_or_else(move |e| {
                    error!("connection failed: {reason}", reason = e.to_string())
                }),... Ok(())
}

And then you handle the streams with the handle_connection fn:
async fn handle_connection(root: Arc<Path>, conn: quinn::Connecting) -> Result<()> {
    let quinn::NewConnection {
        driver,
        connection,
        mut bi_streams,
        ..
    } = conn.await?;
...

All of the above has been taken from your server.rs example. So, my question is, with multiple domains you can only know the SNI hostname once the connection has been created and socket established; with your crate, how would one go about doing TLS handshake with the appropriate SSL Certificate for that SNI Hostname (domain) once the connection is established, and not beforehand like it is now?
With Rustls and Tokio you first spawn the TcpListener, then start accepting connections over TcpStream and then you create a TlsSession from that stream, and from then you can read the encrypted data in plaintext through that TlsSession and write back to it to the encrypted stream. All of this happens once the TcpSocket is created and if one would like, they could attach a different SSL Certificate & Key pair per TcpStream.
Maybe I've got something wrong or missed something, but how would one accomplish the same thing with your crate? Any assistance/guidelines/examples would be highly appreciated!

Hi, thanks for your interest! You can supply the correct certificate using the same mechanism you would in TCP, i.e. by configuring the rustls cert_resolver used by the server. The rustls ServerConfig is exposed in the crypto field of quinn's own ServerConfig.
What I think we are missing is a way to actually look up what was negotiated, similar to the existing protocol accessor. I'll see about drafting a fix for that.

 In my current implementation I've been creating a new rustls::ServerConfig for each new TcpStream instanced and I've been pretty much doing set_single_cert all time around, haha, so rid.
It was only after you mentioned the cert_resolver, that I actually sat and read through the Rustls documentation. So now it is time to sit and experiment with Quinn, hopefully that goes fine without any issues.
Thank you!

If you do run into further issues, please reach out and let us know!


react-toolbox@2 not working with previous webpack@2 configuration

I have this webpack 2 configuration
module: {
    rules: [{
      test: /\.jsx?$/,
      use: 'babel-loader',
      include: [
        /src/,
        /node_modules\/react-toolbox/,
      ],
    }, {
      test: /\.css$/,
      use: [{
        loader: 'style-loader',
      }, {
        loader: 'css-loader',
        options: {
          localIdentName: '[name]__[local]___[hash:base64:5]',
          sourceMap: true,
          modules: true,
          importLoaders: 1,
        },
      }, {
        loader: 'postcss-loader',
      }],
    }, {
      test: /\.scss$/,
      use: [{
        loader: 'style-loader',
      }, {
        loader: 'css-loader',
        options: {
          localIdentName: '[name]__[local]___[hash:base64:5]',
          sourceMap: true,
          modules: true,
          importLoaders: 1,
        },
      }, {
        loader: 'postcss-loader',
      }, {
        loader: 'sass-loader',
        options: {
          sourceMap: true,
          outputStyle: 'expanded',
          includePaths: project.paths.client('styles'),
          data: `@import '${path.resolve(project.paths.client('styles'), 'base')}';`,
        },
      }],
    }, {
      test: /\.woff(\?.*)?$/, use: 'url-loader?prefix=fonts/&name=[path][name].[ext]&limit=10000&mimetype=application/font-woff',
    }, {
      test: /\.woff2(\?.*)?$/, use: 'url-loader?prefix=fonts/&name=[path][name].[ext]&limit=10000&mimetype=application/font-woff2',
    }, {
      test: /\.otf(\?.*)?$/, use: 'file-loader?prefix=fonts/&name=[path][name].[ext]&limit=10000&mimetype=font/opentype',
    }, {
      test: /\.ttf(\?.*)?$/, use: 'url-loader?prefix=fonts/&name=[path][name].[ext]&limit=10000&mimetype=application/octet-stream',
    }, {
      test: /\.eot(\?.*)?$/, use: 'file-loader?prefix=fonts/&name=[path][name].[ext]',
    }, {
      test: /\.svg(\?.*)?$/, use: 'url-loader?prefix=fonts/&name=[path][name].[ext]&limit=10000&mimetype=image/svg+xml',
    }, {
      test: /\.(png|jpg)$/, use: 'url-loader?limit=8192',
    }],

This configuration is working well with<EMAIL_ADDRESS>If I update to the latest version, I have no errors but the Button component is not working (Here is a small gif)

The button component is as simple as
import React from 'react';

import { Button } from 'react-toolbox/lib/button';

import style from './Home.scss';

export const Home = () => (
  <Button>Hello world</Button>
);

export default Home;

I have nor more idea where to search ? Is it a known bug ? Do you thing is it a configuration problem ?

I guess you need to import some global css.
I'm using React Toolbox Themr. It has a script that generates two files: theme.css and a theme.js. After that I import on my App.jsx, this way:
import ThemeProvider from 'react-toolbox/lib/ThemeProvider'
import theme from '../public/react-toolbox/theme'
import '../public/react-toolbox/theme.css'

class App extends Component {

  render() {
    return (
      <ThemeProvider theme={theme}>
         <div>...</div>
      </ThemeProvider>
    );
  }
}

export default App;

I think React Toolbox Themr it's the easiest way to go with react-toolbox@2

Maybe can be useful:
https://github.com/react-toolbox/react-toolbox-themr/issues/8

It does not seem to work for me.

Take a look at this PR: https://github.com/react-toolbox/react-toolbox-example/pull/41
It's webpack 2 with react-toolbox 2 working example

Thanks, I will have a look tonight.

Since it's a configuration issue I'm going to close here but feel free to share your results and thoughts

@thomasthiebaud  Did u resolve the problem? I got the same issue as u, how can u resolve this?


How to notify c++ language server of udpated compilation database.

I use clangd as my language server for C++. I have a program that given different files in my codebase (be they source, build configs, templates, etc) will update the compilation database accordingly. According to https://reviews.llvm.org/D49267 it seems like after the compilation database is updated on disk I need to issue a workspace/didChangeWatchedFiles call to it so it can incorporate this new information.
Is there an easy way to issue this through the plugin that it gets routed to the right clangd instance?

Hi - sorry for the delay.
I've implemented a prototype for sending workspace/didChangeWatchedFiles, but clangd doesn't seem to react accordingly.
My implementation is here.
I use a similar example like in the Phabricator link, except I use absolute paths because otherwise clangd won't use the compiler flags.
When I change the -DMACRO flag and restart the language server with lsp-disable; lsp-disable a go-to-definition (gd) changes accordingly. However, if instead of restarting I use :tmp to send workspace/didChangeWatchedFiles, that doesn't happen.
#ifndef MACRO
void foo() {
}
#else
void foo() {
}
#endif

int main() {
        foo();
}

If that worked, it should be fairly straightforward to spawn a process that watches the compile_commands.json, and runs something like echo lsp-did-change-watched-files the-file 2 | kak -p the-session when it changes.


reproduce #549

Btw in your local environment, try to upgrade ffigen to 6.x and frb to latest and retry to see whether it still happens

"invalid assignment" has gone after upgrade ffigen to 6.0.1.
But we got a new one :(

upgrade your frb dart dependency

Problem solved. Thanks for your time!


How efficient it should be in calculating linear programming problems?

Hello! First of all, I should apologize for my poor English.
I've tried to use SolverSLP to solve a large scale linear programming problem on Spark(2.4.0 with Scala version 2.11.12). With some a few minor changes (about the logger, which had moved to org.apache.spark.internal.Logging since Spark 2.0), I successfully compiled the program and  proceeded to practice. It performed well, and gived me the right answer. But curiously, it take minutes to solve a problem with about 586 variable and 200+ equality constrains in local test (which only takes seconds when using a non-distributed python LP solver) . Is there some misunderstanding? How can I play the real performance of tfocs?
P.S : the BLAS and LAPACK are enabled.

Hi BloomSkyTree, since Spark has a general purpose distributed architecture there will definitely be overhead compared to a special purpose application running in memory on a single system. In addition a specialized LP solver may potentially provide better performance than a general purpose optimizer. TFOCS for Spark is primarily useful when it is infeasible to keep data in memory on a single system, when data is already in Spark, or if the benefit of cpu parallelism for a distributed task outweighs the task’s communication overhead (which for a task with many communication steps such as LP solving in TFOCS for Spark suggests a large data size).


Create generator-generic-ossf-slsa3-publish.yml

Fixes #TODO
Motivation

Modifications

Verification

Author seems to be either mistakenly or intentionally spamming various repos with PRs with various GH Actions like this. See their profile's ~30 closed PRs, which includes things like https://github.com/apple/swift-evolution/pull/2263, https://github.com/microsoft/LightGBM/pull/6271, https://github.com/microsoft/TypeScript/pull/56963, https://github.com/w3c/w3process/pull/814 etc etc.
I would recommend blocking this person at the org-level for repeated spam across GitHub.
For non-spam, non-bot readers we do have an actual issue open for SLSA Level 3: #12099.


number of PRs in the last 30 days for repos in rust-lang

As a very first step, we can gather the number of PRs in the last 30 days for all repos in rust-lang and dump this data out in CSV format.
It shouldn't be too hard to extend the existing loop which dumps out repository names:
https://github.com/nikomatsakis/rust-metrics/blob/e564c4da8f981361dd3ea31019407cc44e98e3d1/src/main.rs#L19-L21

Made an initial pass PR to resolve this issue — I'd love feedback from a more experienced rustacean!
Super happy to make any changes or straight up close the PR if you hate it! No offense will be taken 😃


Dao Core v0 (placeholder)

Design https://zpl.io/2ZwGy5E

The text changed to "BEAMX farming starts soon". Design in task description updated.


Docs: Fix link to MySQL test

please fix it in the docs/docs too. i remember accepting a PR for this some time ago, apparently it had the very same issue - fixing just the current version :]


Item Frame - MapManager/AnimatedFrames

What version of ViaVersion are you using? Type /ver viaversion
0.7.4
What version of Spigot are you using? Type /ver
spigot 1.8.8 latest
What plugins are you using? Type /plugins
AnimatedFrames_v3.1.1, MapManager_v1.1.3, PacketListenerAPI_v3.3.3, ViaVersion-0.7.4 and other.
How does this error happen? login? Using an item?
/af create https://media.giphy.com/media/jG186kNLKs6TS/giphy.gif 128
Is there an error in the console? Use pastebin.com. Is there a kick message?
http://hastebin.com/oqeteguqoc.vbs

Uh, this will be something that MapManager is doing wrong again >.> will talk to inventive again sometime.

https://www.spigotmc.org/threads/animatedframes-1-7-1-8-1-9.58635/page-30#post-1458659

/af create https://media.giphy.com/media/jG186kNLKs6TS/giphy.gif (with 128 & 6 item frames gives entity not found errors, mapmanager is trying to update non-existing entities (https://gyazo.com/3fde6ead3ea6f086acff5b3773849276))
But 4 item frames and the command without 128 worked without any error for me :)
Info:
PacketListenerAPI_v3.3.5.jar

Video: https://fileserver.matsv.nl/media?id=mapmanager

ok, it work, thanks : >


chore(release): publish

Description

[ ] Tests for the changes have been added (for bug fixes / features)
[x] The commit message(s) follow conventional commits
[ ] Documentation has been added / updated (for bug fixes / features)
[x] Changes follow the contributing document.

Motivation and Context

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Which merge strategy will you use?

[x] Squash
[ ] Rebase (REVIEW COMMITS)

cc @jhill-mattr @tplooker
Are we okay using 0.14 version as the next version (as 0.x version might already mean its not stable and breaking changes are expected)?

I will merge publish first, please let me know if we have issue with the version 0.14.0


convience bool is expensive in storage, might not be worth it

in OpenUniswapOracle.sol
we have
    struct SwapConfig {
        bool ethOnFirst; // whether the weth is the first in pair
        address swap; // address of the uniswap pair
        uint256 blockTimestampLast;
        uint256 latestBlockTimestampLast;
        uint256 priceCumulativeLast;
        uint256 latestPriceCumulativeLast;
        uint256 baseUnit;
    }

this first value of bool is useful for the developer - but it is very costly in terms of storage, eating up a full word for a value of true or false
also - this value is always derivable in uniswap pairs, one just compares the addr order of weth with the other token addr
so i don't think the developer convience outweighs the storage costs

It's worth noting that the Uniswap oracle isn't currently being used.

I think this bool is only written once per oracle for the lifetime of the oracle in the contract. So it's not costing us ongoing money.
However, I think it's actually not an extra storage slot. A bool needs one bit, which rolls up to one byte. An address is 20 bytes. Since two are next to each other in the variables, they fit together into the same slot.
I made a test contract on etherscan to verify this:
contract DebugSlotStuff {
    struct SwapConfig {
        bool ethOnFirst; // whether the weth is the first in pair
        address swap; // address of the uniswap pair
    }

    SwapConfig public config;

    constructor() public{
        config.ethOnFirst = true;
        config.swap = 0x2A8e1E676Ec238d8A992307B495b45B3fEAa5e86;
    }

    function toggle() public {
        config.ethOnFirst = ! config.ethOnFirst;
    }
}

The bool and the address share the same slot:


AWS SageMaker Client (and Deployer)

Jira Issue: https://issues.redhat.com/browse/AAP-NNNN

Description
WIP: Working on test cases.
Adding an AWS SageMaker inference client, also a deployer (helper) class.
Production deployment

[x] This code change is ready for production on its own
[ ] This code change requires the following considerations before going to production:

Hey @gebhardtr @robinbobbitt This is just the continuation of Rick's work at https://github.com/ansible/ansible-ai-connect-service/compare/main...rg/sm
I am missing to clean up and implement some test cases. Sooo just to confirm.... do you think this PR is making sense? should I spend time on getting this PR merged?
Thanks!

Closing. There is no actual need for a SageMaker client for wisdom, no need to spend time on it.


V2 UI: Search suggestions.

Add some autocompletion/suggestions to the search box

@another-rex Was wondering if you still want to work on this issue? otherwise I'll be happy to work on it.

This one is probably out of scope -- to do it well it would require a number of complicated backend changes (as well as possibly a DB stack migration).


[Feature] Enable Diff between Latest PR commit and the Previous one

Is this feature missing in the latest version?

[X] I'm using the latest release

Is your feature request related to a problem? Please describe.
My GH workflow triggers a ML job every time a commit is pushed 🙍🏾♂ . What I'd like to do is use the changed-files GH workflow to make a comparison between the PR HEAD and PR HEAD^ (the current commit and the one preceding it) within a PR for an approved list of files.
This is how I have it setup:
on:
  pull_request:
    branches:
      - master

      - name: Checkout Repository
        uses: actions/checkout@v4
        with:
          ref: ${{ github.event.pull_request.head.sha }}
          fetch-depth: 2
      #----------------------------------------------
      #         setup changed-files@v42 action
      #----------------------------------------------
      - name: Check if files changed
        id: changed_files
        uses: tj-actions/changed-files@v42
        with:
           files_yaml: |
               - train.py

Trouble is, even with this setup the comparison is being made between the master branch and the current commit. Is there functionality to enable Diff between two consecutive commits?
Describe the solution you'd like?
Example of desired functionality is here.
Describe alternatives you've considered?
No response
Anything else?
No response
Code of Conduct

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

@jackton1 I think what OP's looking for is the inverse... since_last_remote_commit (at least according to the docs) seems to imply that it would compare the PR's HEAD commit against the PR-target's HEAD commit, instead of comparing to the PR-event's 'HEAD~n' base commit.
I think he wants that each run compares only the PR's latest HEAD commit against the PR's previous commit. I'd guess what he wants could still be solved with a different combination of inputs (if not by simply using since: HEAD~, since he mentions ^ but doesn't mention merge-commits, I guess he's just mistook those notations).

Hi @CRC-Mismatch, Yes this is also supported you can achieve this using:

      - name: Get changed files
        id: changed-files
        uses: tj-actions/changed-files@v42
        with:
           base_sha: “HEAD~1”

Yes this is also supported you can achieve this using:

@CRC-Mismatch , could you double check that? As I'm not encountering the expected behavior you describe here:
on:
  pull_request:
    paths:
      - 'doc/**'
      - 'src/**'

jobs:
  check_paths:
    name: Check paths
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v4
        with:
          fetch-depth: 2

      - name: Get changes
        id: get_changes
        uses: tj-actions/changed-files@v45
        with:
          base_sha: 'HEAD~1'
          files_yaml: |
            src:
              - 'src/**'

From the debug action's log, I can see that baseSha is being set, however I would expect HEAD~1 should =  cbcc82c, and not 2620678 (HEAD of main), given the HEAD of the PR is efe6313 - with its parent of course being cbcc82c.
...
  ##[debug]  "sha": "",
  ##[debug]  "baseSha": "HEAD~1",
...
##[debug]Getting current SHA...
  /usr/bin/git rev-parse --verify efe6313d332d9884e578dc50bee32866cc305e2a^{commit}
  efe6313d332d9884e578dc50bee32866cc305e2a
  /usr/bin/git rev-parse --verify efe6313d332d9884e578dc50bee32866cc305e2a^{commit}
  efe6313d332d9884e578dc50bee32866cc305e2a
##[debug]Current SHA: efe6313d332d9884e578dc50bee32866cc305e2a
  /usr/bin/git rev-parse --verify HEAD~1^{commit}
  2620678ac4bd9f531616cac592f1d0fd12dc5880
  /usr/bin/git merge-base 2620678ac4bd9f531616cac592f1d0fd12dc5880 efe6313d332d9884e578dc50bee32866cc305e2a
  18bce5aa56b0e77ef2b357fda6bff046bce486aa
  /usr/bin/git log --format=%H 18bce5aa56b0e77ef2b357fda6bff046bce486aa..efe6313d332d9884e578dc50bee32866cc305e2a
  efe6313d332d9884e578dc50bee32866cc305e2a
  cbcc82cc7a9b02fc7ca336d2fed7910ab34072ed
  86522fda78cab835915114bf63fc59d548ef14e4
  7794df22ac01d98972f0f00f0c4410252b04f844
  fff980fe699d7a7cc8db26b98790f0c88ad8f905
  4ca889d40ba975bd5cd34ffb80073faacb752b51
  3304f4322e45748f12359ca726ba84630e4c0bf8
  df2bcee25b571c2c0c236dfe790950ebf1f3ff80
  /usr/bin/git rev-parse --verify 2620678ac4bd9f531616cac592f1d0fd12dc5880^{commit}
  2620678ac4bd9f531616cac592f1d0fd12dc5880
##[debug]Previous SHA: 2620678ac4bd9f531616cac592f1d0fd12dc5880
  /usr/bin/git merge-base 2620678ac4bd9f531616cac592f1d0fd12dc5880 efe6313d332d9884e578dc50bee32866cc305e2a
  18bce5aa56b0e77ef2b357fda6bff046bce[486](https://github.com/botsandus/auto-sandbox/actions/runs/11132975758/job/30938136508#step:3:487)aa
  /usr/bin/git log --format=%H 18bce5aa56b0e77ef2b357fda6bff046bce486aa..efe6313d332d9884e578dc50bee32866cc305e2a
  efe6313d332d9884e578dc50bee32866cc305e2a
  cbcc82cc7a9b02fc7ca336d2fed7910ab34072ed
  86522fda78cab835915114bf63fc59d548ef14e4
  7794df22ac01d98972f0f00f0c4410252b04f844
  fff980fe699d7a7cc8db26b98790f0c88ad8f905
  4ca889d40ba975bd5cd34ffb80073faacb752b51
  3304f4322e45748f12359ca726ba84630e4c0bf8
  df2bcee25b571c2c0c236dfe790950ebf1f3ff80
...
##[debug]Set output doc_any_changed = true
...
##[debug]Set output src_any_changed = true
...

In this case, ${{ steps.get_changes.outputs.src_any_changed }} is outputting true regardless if the most recent HEAD of a PR modifies a source file in src/ or not, leading me to believe that it's behaving the same way as on action paths, even if the latest PR commit has only modified a document in doc/.
Is there something about event ref = PR that is preventing the code path for baseSha being interpreted as expected?


BPEL replacement for workflows (with BPMN)

Current workflow engine is based on BPEL which is now being replaced by BPMN. Need to provide the core capability to support BPMN workflows

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


Pixi self-update missing tag_name

Checks

[X] I have checked that this issue has not already been reported.

[X] I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example
pixi self-update --force

Issue description
I have pixi installed in a non default location using a symbolic link
/path/to/home/directory/.pixi -> /path/to/home/directory/workspace/.pixi_for_home
When I use the pixi self-update --force, I get the following error
× Failed to fetch latest version from github: missing field `tag_name` at line 1 column 277

Expected behavior
Be able to update pixi on a non-default location.

Thanks for the info. I can't reproduce it yet. Will have to investigate some more.

It actually looks like a wrong JSON response from Github. I also tried yesterday and couldn't reproduce. Maybe we should print the returned JSON when we can't parse it?

The issue you had is not fixed but atleast with the next release you should get more information on what the actual error is. So I'm closing this for now.


Update sample (simple) & Code refactoring & Change code structure & More stable test-based performance & Fix work for some test cases

Codecov Report

Merging #2 (a954310) into main (643c044) will decrease coverage by 1.66%.
The diff coverage is 97.22%.

@@            Coverage Diff             @@
##             main       #2      +/-   ##
==========================================
- Coverage   99.30%   97.63%   -1.67%
==========================================
  Files           3        3
  Lines         143      127      -16
  Branches       11       13       +2
==========================================
- Hits          142      124      -18
- Partials        1        3       +2

Impacted Files
Coverage Δ

...orDotNet/Configuration/FieldMapperConfiguration.cs
90.00% <90.00%> (ø)

src/FieldMapperForDotNet/FieldMapper.cs
98.14% <97.75%> (-1.10%)
:arrow_down:

...t/Configuration/FieldMapperConfigurationOptions.cs
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 643c044...a954310. Read the comment docs.

@joemoceri

broke this PR down into smaller changes

Do you mean that I should break this PR into smaller and clearer commits?


Automatically generating types from ASN.1 specification

RFC 4511 is mostly made up of ASN.1 definitions that would be tedious to implement as Rust types manually.
It could be desirable to generate them from the specification instead (that could save us from deviating from the spec as well). How should this be approached?

The main problem is that parsing the ASN.1 syntax itself is a major hurdle, I think https://github.com/rep-nop/serder will cover the major painpoints of actually encoding and decoding the struct contents for them.

The full ASN.1 definitions seem to be available as appendices in the RFCs for LDAP. I'll be adding them to the repo.

The main problem is that parsing the ASN.1 syntax itself is a major hurdle, I think https://github.com/rep-nop/serder will cover the major painpoints of actually encoding and decoding the struct contents for them.

This would depend on serder handling ASN.1 in GSER form, not just DER.

Took a look into asn1rs, but it doesn't seem to be able to handle the definitions in RFC 4511 yet.
I'll implement them manually for now.


fix doc string

What does this PR do? Why are doing this? References?
[Tell us about your new feature, improvement, or fix! Fixes # (issue)]
Fix doc string on layeList
Type of change
[Please delete options that are not relevant.]

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
[Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.]

[ ] TestCase A
[ ] TestCase B

Final Checklist:

[ ] My PR is the possible minimum work for the desired functionality
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works

Hello @sofroniewn! Thanks for submitting the PR.

In the file gui/elements/_layer_list.py, following                are the PEP8 issues :

Line 67:5: E301 expected 1 blank line, found 0
Line 68:5: E301 expected 1 blank line, found 0
Line 69:5: E301 expected 1 blank line, found 0
Line 70:5: E301 expected 1 blank line, found 0
Line 71:5: E301 expected 1 blank line, found 0

In the file gui/elements/qt/_layer.py, following                are the PEP8 issues :

Line 1:80: E501 line too long (94 > 79 characters)
Line 4:1: E302 expected 2 blank lines, found 1
Line 25:80: E501 line too long (82 > 79 characters)
Line 42:9: E265 block comment should start with '# '
Line 43:9: E265 block comment should start with '# '
Line 44:9: E265 block comment should start with '# '

In the file gui/elements/qt/_layerList.py, following                are the PEP8 issues :

Line 10:9: E265 block comment should start with '# '
Line 40:49: E231 missing whitespace after ','


Browser URL does not update when guards are in use on navigator pop

Describe the bug
When calling Navigator.of(context).maybePop() on a page in a stack, then the page pops, but the URL in the browser address bar does not update.
This only happens when a guard is set.
Beamer version:
1.4.0+1
To Reproduce
Steps to reproduce the behavior:

Run example code below
Click on "Go to subpage"
Click on "Pop"

Remove the guard and try again. Then it will work.
I don't know whether this has to do with this issue, however the browser address bar shows / when clicking "Go to other page" (multiple times). I expect it to be /page.
Expected behavior
The browser address bar should show /page after pop.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: MacOS
Browser: Chrome/Firefox
Version: 99.0.4844.84/98.0.2

Example code
import 'package:beamer/beamer.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  final _routeInformationParser = BeamerParser();
  final _routerDelegate = BeamerDelegate(
    initialPath: '/page',
    locationBuilder: RoutesLocationBuilder(routes: {
      '/other-page': (context, state, data) => const OtherPage(),
      '/page': (context, state, data) => const Page(),
      '/page/subpage': (context, state, data) => const SubPage(),
    }),
    guards: [
      BeamGuard(
        pathPatterns: ["/page/*"],
        guardNonMatching: true,
        check: (context, location) => false,
        beamToNamed: (origin, target) => "/page",
      ),
    ],
  );

  MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      routeInformationParser: _routeInformationParser,
      routerDelegate: _routerDelegate,
    );
  }
}

class OtherPage extends StatelessWidget {
  const OtherPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              const Text('Other page'),
              ElevatedButton(
                onPressed: () => context.beamToNamed("/page"),
                child: const Text('Go to page'),
              ),
            ],
          ),
        ));
  }
}

class Page extends StatelessWidget {
  const Page({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        body: Center(
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          const Text('Page'),
          ElevatedButton(
            onPressed: () => context.beamToNamed("/page/subpage"),
            child: const Text('Go to subpage'),
          ),
          ElevatedButton(
            onPressed: () => context.beamToNamed("/other-page"),
            child: const Text('Go to other page'),
          ),
        ],
      ),
    ));
  }
}

class SubPage extends StatelessWidget {
  const SubPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            const Text('SubPage'),
            ElevatedButton(
              onPressed: () => Navigator.of(context).maybePop(),
              child: const Text('Pop'),
            ),
          ],
        ),
      ),
    );
  }
}

I found the issue. The guard would match /page/* however i wanted it to match /page*. With this change, it works.
However, I still think that this issue is relevant. Shouldn't beamer end in an endless recursion when the guard matches /page/*, which it doesn't atm?

Hey @saibotma
(we know each other from beamer's Discord so I won't do a massive greeting here :slightly_smiling_face:)
I also noticed some strange behavior with guards and URLs sometimes :thinking:
Maybe the part about not going into infinite recursion with !(/page/*)->/page setup is somehow related to beamer ignoring trailing slashes and * allowing empty string, so we end up with the fact that /page/* does match /page, i.e. inverse doesn't, so guard is not triggered for /page.
Issue about showing / after multiple clicks is very peculiar.
Great example to play around with and try to fix these. Thanks!

I don't know whether this has to do with this issue, however the browser address bar shows / when clicking "Go to other page" (multiple times). I expect it to be /page.

This seems to be fixed with the latest patch for guarding. Although I notice the browser title is sometimes wrong so I'm leaving the issue open.

The sporadic title issue works fine in Firefox, but not on Chrome.
I'll close this for now as it seems out of scope for Beamer.
I'll add a slight optimization (https://github.com/slovnicki/beamer/commit/56d5fe708b41b660aaeb4fdaaca3d9bad82cfedb), but Chrome will continue to have this title bug in general case. I suppose it has something to do with SystemNavigator.selectSingleEntryHistory() strategy.


add standard logging to cifitfy-PINT-vertices

This probably needs to happen before we do the validation experiments in corr
I might be that when we tune the parameters..the number of needed iterations might change..
This really just mean moving all the print statements in cifitfy-PINT-veritices into a logger and logging to a file pint.log?

done


Import is not picking up the correct category group from the dropdown

When you choose a category group to import into, you are not selecting that specific category groups fields, you are just selecting the fields from the first category group in the CMS.
To replicate, create 2 category groups and only add fields to the second category group. Then, try and import data and choose the second category group as the one to import into. You will see that you do not have any fields in the field mapping dropdown.

I've added this to the develop branch, could you test it?

Released in 0.8.27


Get the raw string from the loaded messages

Hello,
In the JSON containing my localized messages I have some messages that I need to set to other plugins. Those lines sometimes contains some args (aka: Hello {0}).
In globalize 0.x I could get the raw value of my message, but now the plugin throw an exception if I don't pass the args with the formatMessage()
Is there a way to bypass the formatting step and simply get the raw value  ?

To solve this you must use
Globalize.locale().get("globalize-messages/{bundle}/your/path/to/the/message")

Sorry for the delay, your self-answer is correct.


CS lime-159, Wrong Calculation of Current Collateral Ratio in CreditLine

Description
The calculateCurrentCollateralRatio function in CreditLine computes the current collateral ratio as follows:
uint256 currentCollateralRatio = calculateTotalCollateralTokens(_id).mul(_ratioOfPrices) .div(currentDebt).div(10**_decimals);

A simplified version of the above formula with corresponding decimals in square brackets is: (_totalCollateralToken[x] * _ratioOfPrices[30])/(_currentDebt[y] * 10^30), where x is the decimals of the collateral token and y is the decimals of the borrow token. The result has other decimals than 30 - the expected decimals of the collateral ratio.
Integrations Checklist

[ ]  Have any function signatures changed? If yes, outline below.
[ ]  Have any features changed or been added? If yes, outline below.
[ ]  Have any events changed or been added? If yes, outline below.
[ ]  Has all documentation been updated?

Changelog

Fixing the calculation of current collateral ratio in Creditline.sol

Event Signature Changes
Function Signature Changes
Features
Events

Codecov Report

Merging #283 (1bc44bf) into v1-alpha (b4e9cf6) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 1bc44bf differs from pull request most recent head e895226. Consider uploading reports for the commit e895226 to get more accurate results

@@            Coverage Diff            @@
##           v1-alpha     #283   +/-   ##
=========================================
  Coverage     38.82%   38.82%
=========================================
  Files            16       16
  Lines          1749     1749
  Branches        323      323
=========================================
  Hits            679      679
  Misses         1070     1070

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b4e9cf6...e895226. Read the comment docs.


Accidentally deleted autopause

📝 Description
I have no clue how this got through #223, but I accidentally deleted /autopause from serenity.rs.
🪜 Reproduction Steps
...
ℹ Environment / Computer Info

Parrot version: v1.5.0
Operating System: Windows 11

📸 Screenshots
No response

@aquelemiguel isto é ganda meme


update lab 4 md, lab 5

Updated lab 4 markdown and lab 5. Mainly changed parts regarding harbor and gitlab. Intended to make sure external users would also be able to access.

/lgtm


Add disabled utility class

Add a disabled class in utility.modules.css so that we can conform on selectors and style for disabled state.

do this after #1810

Is this a showstopper for V1?

Is this a showstopper for V1?

No


Reactor core version upgrade

Currently i am using a Azure-Storage-Queue dependency in my java project which brings transitive dependency of reactor core with version 3.3.1.RELEASE which is a very legacy version.
The issue is i am not trying to implementing EventHubs using azure-messaging-eventhubs which needs atleast 3.4.0 version.
Due to this i am getting version conflicts and i am not able to implement eventhubs in my code.
java.lang.NoSuchMethodError: 'reactor.core.publisher.Mono reactor.core.publisher.Mono.retry(java.util.function.Predicate)'
at reactor.netty.http.client.HttpClientConnect$MonoHttpConnect.subscribe(HttpClientConnect.java:321)
at reactor.core.publisher.Mono.subscribe(Mono.java:3987)
at reactor.core.publisher.FluxFlatMap.trySubscribeScalarMap(FluxFlatMap.java:199)
at reactor.core.publisher.MonoFlatMap.subscribeOrReturn(MonoFlatMap.java:53)
at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:57)
at reactor.core.publisher.MonoDelaySubscription.accept(MonoDelaySubscription.java:52)
at reactor.core.publisher.MonoDelaySubscription.accept(MonoDelaySubscription.java:33)
at reactor.core.publisher.FluxDelaySubscription$DelaySubscriptionOtherSubscriber.onNext(FluxDelaySubscription.java:130)
at reactor.core.publisher.MonoDelay$MonoDelayRunnable.run(MonoDelay.java:119)
at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:68)
at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:28)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
I am getting these error

Hello @Itsimranbasha, the queue library using reactor-core:3.3.x-RELEASE are around ~3-year-old. If we use a recent version of azure-storage-queue  & azure-messaging-eventhubs then this conflict shouldn’t happen. For instance, both latest azure-messaging-eventhubs:5.18.3 and azure-storage-queue:12.20.4 that uses azure-core:1.48.0 transitively brings reactor-core:3.4.36.

@anuchandy i tried using the latest version of azure-storage-queue:12.20.4 as well, but it also transitively brings reactor-core version of 3.3.1.RELEASE only.

Hello @Itsimranbasha, could you try the mvn dependency:tree to see the actual package pulling  3.3.1.RELEASE?.
To confirm, I added the following queue and eventhubs dependencies to a "brand-new console application" and enumerated the dependency tree (mvn dependency:tree)
<dependency>
  <groupId>com.azure</groupId>
  <artifactId>azure-storage-queue</artifactId>
  <version>12.20.4</version>
</dependency>
<dependency>
  <groupId>com.azure</groupId>
  <artifactId>azure-messaging-eventhubs</artifactId>
  <version>5.18.3</version>
</dependency>

And reactor-core3.4.36 is resolved, which is declared as the reactor-core version for above of queue and eventhubs versions.
[INFO] com.repro.a39954:repro-a39954:jar:1.0-SNAPSHOT
[INFO] +- com.azure:azure-storage-queue:jar:12.20.4:compile
[INFO] |  +- com.azure:azure-core:jar:1.48.0:compile
[INFO] |  |  +- com.azure:azure-json:jar:1.1.0:compile
[INFO] |  |  +- com.azure:azure-xml:jar:1.0.0:compile
[INFO] |  |  +- com.fasterxml.jackson.core:jackson-annotations:jar:2.13.5:compile
[INFO] |  |  +- com.fasterxml.jackson.core:jackson-core:jar:2.13.5:compile
[INFO] |  |  +- com.fasterxml.jackson.core:jackson-databind:jar:2.13.5:compile
[INFO] |  |  +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.13.5:compile
[INFO] |  |  \- io.projectreactor:reactor-core:jar:3.4.36:compile <========================================
[INFO] |  |     \- org.reactivestreams:reactive-streams:jar:1.0.4:compile
[INFO] |  +- com.azure:azure-core-http-netty:jar:1.14.2:compile
[INFO] |  |  +- io.netty:netty-handler:jar:4.1.108.Final:compile
[INFO] |  |  |  +- io.netty:netty-resolver:jar:4.1.108.Final:compile
[INFO] |  |  |  \- io.netty:netty-transport:jar:4.1.108.Final:compile
[INFO] |  |  +- io.netty:netty-handler-proxy:jar:4.1.108.Final:compile
[INFO] |  |  |  \- io.netty:netty-codec-socks:jar:4.1.108.Final:compile
[INFO] |  |  +- io.netty:netty-buffer:jar:4.1.108.Final:compile
[INFO] |  |  +- io.netty:netty-codec:jar:4.1.108.Final:compile
[INFO] |  |  +- io.netty:netty-codec-http:jar:4.1.108.Final:compile
[INFO] |  |  +- io.netty:netty-codec-http2:jar:4.1.108.Final:compile
[INFO] |  |  +- io.netty:netty-transport-native-unix-common:jar:4.1.108.Final:compile
[INFO] |  |  +- io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.108.Final:compile
[INFO] |  |  |  \- io.netty:netty-transport-classes-epoll:jar:4.1.108.Final:compile
[INFO] |  |  +- io.netty:netty-transport-native-kqueue:jar:osx-x86_64:4.1.108.Final:compile
[INFO] |  |  |  \- io.netty:netty-transport-classes-kqueue:jar:4.1.108.Final:compile
[INFO] |  |  +- io.netty:netty-tcnative-boringssl-static:jar:2.0.65.Final:compile
[INFO] |  |  |  +- ...
[INFO] |  |  +- io.projectreactor.netty:reactor-netty-http:jar:1.0.43:compile
[INFO] |  |  |  +- io.netty:netty-resolver-dns:jar:4.1.107.Final:compile
[INFO] |  |  |  |  \- io.netty:netty-codec-dns:jar:4.1.107.Final:compile
[INFO] |  |  |  +- io.netty:netty-resolver-dns-native-macos:jar:osx-x86_64:4.1.107.Final:compile
[INFO] |  |  |  |  \- io.netty:netty-resolver-dns-classes-macos:jar:4.1.107.Final:compile
[INFO] |  |  |  \- io.projectreactor.netty:reactor-netty-core:jar:1.0.43:compile
[INFO] |  |  \- io.netty:netty-common:jar:4.1.108.Final:compile
[INFO] |  +- com.azure:azure-storage-common:jar:12.24.4:compile
[INFO] |  \- com.fasterxml.jackson.dataformat:jackson-dataformat-xml:jar:2.13.5:compile
[INFO] |     +- org.codehaus.woodstox:stax2-api:jar:4.2.1:compile
[INFO] |     \- com.fasterxml.woodstox:woodstox-core:jar:6.4.0:compile
[INFO] +- com.azure:azure-messaging-eventhubs:jar:5.18.3:compile
[INFO] |  \- com.azure:azure-core-amqp:jar:2.9.3:compile
[INFO] |     +- com.microsoft.azure:qpid-proton-j-extensions:jar:1.2.4:compile
[INFO] |     \- org.apache.qpid:proton-j:jar:0.34.1:compile
....
....

sorry @anuchandy i think i mislead u in a way. Already the implementation of the azure-storage-queue(12.5.2 with reactor-core 3.3.1.RELEASE version) is running in our code from a long time and now recently i added this azure-messaging-eventhubs implementation(5.15.0 version with reactor-core 3.4.0 version).
Now the maven is resolving the final reactor core version as 3.4.0 with which the newly implemented eventhubs code is running fine but the older code of storage queue which is using some methods of reactor-core 3.3.1.RELEASE is not running and throwing this error as looks like the following method is deprecated from 3.4.0 and later versions of reactor-core.
java.lang.NoSuchMethodError: 'reactor.core.publisher.Mono reactor.core.publisher.Mono.retry(java.util.function.Predicate)'
at reactor.netty.http.client.HttpClientConnect$MonoHttpConnect.subscribe(HttpClientConnect.java:321)
at reactor.core.publisher.Mono.subscribe(Mono.java:3987)
at reactor.core.publisher.FluxFlatMap.trySubscribeScalarMap(FluxFlatMap.java:199)
at reactor.core.publisher.MonoFlatMap.subscribeOrReturn(MonoFlatMap.java:53)
at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:57)
at reactor.core.publisher.MonoDelaySubscription.accept(MonoDelaySubscription.java:52)
at reactor.core.publisher.MonoDelaySubscription.accept(MonoDelaySubscription.java:33)
at reactor.core.publisher.FluxDelaySubscription$DelaySubscriptionOtherSubscriber.onNext(FluxDelaySubscription.java:130)
at reactor.core.publisher.MonoDelay$MonoDelayRunnable.run(MonoDelay.java:119)
at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:68)
at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:28)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)

So even if i upgrade the version of azure-storage-queue to latest versions, it will still be not able to find those methods and throw the same error. Do i need to update my storage-queue code such that it only includes 3.4.0 reactor-core versions methods?

Yes, in your application pom file, you will need to use the versions (of EventHub, Queues and any other) such they all declare reactor-core:3.4.0 as their dependency, so there are no longer any dependency conflicts. If the application itself is explicitly using any APIs not available in reactor-core:3.4.0 then app code needs to be updated to use equivalent/alternate APIs in 3.4.0.

Between, you may also delegate the version resolution to azure SDK BOM, this avoids the need for application to align azure SDK versions manually in the POM file.
The last comment still applies, i.e., if there are other non-Azure dependencies that resolve to 3.3.1.RELEASE, then their version needs to align manually, also if the app is using 3.3.1.RELEASE APIs in the code it needs to be updated to use equivalent/alternate APIs in 3.4.0.

Closing - recommendations provided to resolve both the azure SDK specific and general dependency conflicts in Java.

[http-nio-9443-exec-1] ERROR correlationId=26c6836d-867c-4b42-b91b-d78b8e105ad3 c.a.c.h.netty.NettyAsyncHttpClient.performLogging - java.nio.channels.ClosedChannelException
[http-nio-9443-exec-1] ERROR correlationId=26c6836d-867c-4b42-b91b-d78b8e105ad3 c.a.s.c.policy.RequestRetryPolicy.performLogging - java.nio.channels.ClosedChannelException
[http-nio-9443-exec-1] ERROR correlationId=26c6836d-867c-4b42-b91b-d78b8e105ad3 c.a.s.c.i.StorageImplUtils.performLogging - java.nio.channels.ClosedChannelException
i am just updating the azure-storage queue version and after resolving all the conflicts i am now getting this error. azure-storage-version used is 12.20.4

HI @anuchandy, I downgraded the version of azure-messaging-eventhubs to a 5.3.1 which transitively uses the reactor core vesion of 3.3.x which is in line with the azure-storage-queue's reactor vesion. After doing so i got the both functionalites working without any conflicts and exceptions.
Thanks for the help all along.


env() returns values from fastcgi_param when config:clear and from system when config:cache

Laravel Version: 7.2.8
PHP Version: 5.8.8
Database Driver & Version: MySql 5.7.18

Description:
I have a database username set as a system environment variable and a username set in nginx using fastcgi_param. When using config:cache the variable is loaded from the system environment, when using  config:clear the variable is loaded from fastcgi_param.
Steps To Reproduce:
Set DB_USERNAME as a system environmental variable as userA
set fastcgi_param DB_USERNAME as userB
Toggle between config:cache and config:clear, the database username changes.

This may seem weird, but would be the correct behavior. The env() helper reads from, in order, 1) the $_ENV super global, 2) environment variables (using getenv()) and, 3) the $_SERVER super global. Your fastcgi_params probably ends up in $_SERVER.
A non-cached configuration will use the .env to populate all the mentioned data stores. The env() helper will then read and see your settings from .env.
Caching a configuration using config:cache will populate all data stores, and then write down the config files to disk, as resolved configuration values.
The .env file will not be loaded when a cached configuration file is in use. The env() helper will still read from the the data stores mentioned, which ends up reading from $_SERVER where your fastcgi_param stuff is.
The current documentation for configuration caching has a red box that at least mentions this behavior. (The red box is also totally wrong about the return result...) The workaround, if you need to cache your configuration, is to put all your configuration stuff into the config files, and use the config() helper instead. The goal here is to only use the env() helper in your configuration files, so there's no one reading directly from the environment when the configuration is cached.

If you execute the config:cache command during your deployment process, you should be sure that you are only calling the env function from within your configuration files. Once the configuration has been cached, the .env file will not be loaded ~and all calls to the env function will return null.~

The strike-through is mine. That part is wrong, the env helper will still return what's in the environment, it's just that the .env file was never used to populate the environment.

Thank you, that makes sense, the fastcgi_param isn't actually available to
cache when config:cache is ran so the value is coming from the system.
When config:clear is ran nothing is cached and when a page is loaded, nginx
passes the fastcgi_param in so it's available.
On Sat, Apr 13, 2019 at 10:35 AM Simon Svensson<EMAIL_ADDRESS>wrote:

This may seem weird, but would be the correct behavior. The env() helper
reads from, in order, 1) the $_ENV super global, 2) environment variables
(using getenv()) and, 3) the $_SERVER super global. Your fastcgi_params
probably ends up in $_SERVER.
A non-cached configuration will use the .env to populate all the mentioned
data stores. The env() helper will then read and see your settings from
.env.
Caching a configuration using config:cache will populate all data stores,
and then write down the config files to disk, as resolved configuration
values.
The .env file will not be loaded when a cached configuration file is in
use. The env() helper will still read from the the data stores mentioned,
which ends up reading from $_SERVER where your fastcgi_param stuff is.
The current documentation for configuration caching has a red box that at
least mentions this behavior. (The red box is also totally wrong about the
return result...) The workaround, if you need to cache your configuration,
is to put all your configuration stuff into the config files, and use the
config() helper instead. The goal here is to only use the env() helper in
your configuration files, so there's no one reading directly from the
environment when the configuration is cached.
If you execute the config:cache command during your deployment process,
you should be sure that you are only calling the env function from within
your configuration files. Once the configuration has been cached, the .env
file will not be loaded and all calls to the env function will return
null.
The strike-through is mine. That part is wrong, the env helper will still
return what's in the environment, it's just that the .env file was never
used to populate the environment.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/laravel/framework/issues/28204#issuecomment-482833978,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIFlrWm-9iz1NMxRKcAGhcTk4LXMN0wSks5vggdHgaJpZM4ctIkS
.

Closing this because the question was resolved.


Facebook videos or custom videos

Embededing Facebook or custom videos
Summary
I'd like to ask if it is possible to embed Facebook videos or custom, self-hosted videos like YT shortcode (example showed here: https://github.com/welpo/tabi/issues/371)
Detailed Description
I have short MP4 movie (self-hosted file) which I'd like to embed on my Zola/tabi website. How can I do that?

The standard way to add videos (local files) is (docs):
<video src="filename.mp4" controls="controls"></video>

For a Facebook video, I assume their player provides an embed HTML code. Adding that to your page and allowing the necessary connections to Facebook through the CSP should work.

Thank you!


[DARGA] Omit the version part from the OS name

The convention of other providers and the expected format
of the OS field name is to contain the name only, without the
version.
The version is being concatenated to the OS name on the UI
side, therefore the code which did it on the provider side is
removed.
http://bugzilla.redhat.com/1360416
PR on master:
https://github.com/ManageIQ/manageiq/pull/11384

@miq-bot add_label darga/yes
@miq-bot add_label providers/rhevm
@miq-bot add_label blocker
@miq-bot add_label technical debt


Added requestTab plugin method

This PR addresses plugin way of adding tabs to request pane.
See #2580 for more info.
/cc @develohpanda

Hi @codeasashu, how are you getting along with this? Feel free to reach out (here, or on Slack) if you need any assistance. 👍

@develohpanda I've added the HTMLElement as body for the plugin. I am experimenting with a sample plugin (which I'll post shortly) to get an idea

@develohpanda I've pushed some changed to a sample plugin I'll be developing, to add response "example" to request. Its a WIP but can you have a look at it?
Repo: https://github.com/codeasashu/insomnia-plugin-response-examples
WIP branch: master

@develohpanda I am not sure if I should make another PR to include code-editor in insomnia-components? It seems to carry a lot of improvements over the standard code-mirror package.
In the meantime, I am thinking of including the standard npm code-mirror package, so that I can write the json etc. until the insomnia-components have it in the repo?

Ya well noticed, code-editor is very central to the app and is unlikely to be pushed to insomnia-components anytime soon. Best bet initially might be to pull codemirror directly into your plugin, and configure any styling/classes that you might need. Keeping them independent for now. How does that sound?

I'll push a sample implementation using code-mirror and let you know how it goes

@develohpanda I've pushed code mirror (very basic) implemented in my plugin. Also, I've managed to fix a small issue that on request changed (via sidebar), the tabs has to update (since each tabs have different data associated with each requests).
So, I've added handler in componentDidUpdate method as well

I've updated my plugin since I've mistakenly included the default codemirror stylesheet, which managed to overwrite the main insomnia app's codemirror styling. Looks much better now.

Sorry about the late reply. The API you've introduced and changes you've made to add tabs through plugins looks decent to me.
A couple of observations from your particular plugin, though:

The list of examples on the homepage probably needs use a simpler layout than the cards you have got, they don't really work there but I'm sure that's just a placeholder
Deleting an example didn't work
The add and save buttons both showing seems a little confusing. Maybe only show the add button on the examples home page?
Nice use of the breadcrumbs and some other components from insomnia-components. They work, so why not use them?!

It looks to be working though! I can store and view example responses! Impressive. 👏

@develohpanda

Yes, I agree that the card seems to carry lot of information than required, hence seems bulky for small amout of data. However, I wanted to have a simpler card layout. Other than card, the List layout seems to be the other choice.
Maybe, I can add a simpler card layout and make a PR to insomnia-components?
Deleting an example is a WIP
"Add example" button makes sense only on the homepage. Having a contained button on edit/add screen (replacing the "Add example" button) seems more intuitive (since I only want to have a least places to have buttons)
Yes, I tried using as much insomnia-components as I can. If there is any other components better fit for the UI, let me know.
The plugin is quite likely not performant, since it loads all the tabs on initial application launch (i.e. for all the requests). If some request have huge amount of examples, it will likely crash the application.

I am thinking of loading/rendering the tab's panelBody only when the request is mounted. Only the mounted request will call the panelBody on componentDidMount.
About point 5, I am thinking of setting height of code-editor (in the panel) after setting the example value in the editor. I am not sure how to go about this?

If there are components in insomnia-app that are not in insomnia-components, you can create a PR to move them into insomnia-components. However, to avoid a PR not being accepted for introducing new components into insomnia-components, make sure to create a feature request to discus it first. 😄 Like you did with CodeMirror, you can definitely introduce custom components into your plugin, using libraries other 3rd party libraries as well, and just link it to the Insomnia theme system using the CSS variables available.

I only want to have a least places to have buttons

This seems reasonable 👍

The plugin is quite likely not performant...I am thinking of loading/rendering the tab's panelBody only when the request is mounted.

Keen to expand on this. Are you sure it's loading information for all requests on initial launch? request-pane only has access to the activeRequest at any one time. When the requestPane renders, it requests tabs and the tab body from the plugin, so the plugin should also, only fetch information for the active request.
Remember, nothing should be happening in the plugin until the panelBody() function is called with plugin context and the active request.

About point 5, I am thinking of setting height of code-editor (in the panel) after setting the example value in the editor. I am not sure how to go about this?

The editor should just fill the space it has on the, and introduce a scrollbar when needed. Have a look at how the first tab (the body editor) works for some hints. Likely a simple CSS fix.

@develohpanda I'll

fix the add/save button
check the height issue
introduce simpler card

and let you know how it goes

@develohpanda Its taking me little more time to get this done. I might be able to pick this up the next week

@codeasashu absolutely no rush, take your time!

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@develohpanda I've managed to:

Fixed add/save buttons
Deleting an example works now!!
Work on scrolling issue (not very neat, but it works)

I am still to decide on what to do about cards. Cards seems more intuitive choice of representing several response examples (even in simplest way, I can only come up with cards). If you can point me to some layout that can best represent the examples in this case, it will be a huge help ❤!!

@develohpanda I've managed to:

Fixed add/save buttons
Deleting an example works now!!
Work on scrolling issue (not very neat, but it works)

I am still to decide on what to do about cards. Cards seems more intuitive choice of representing several response examples (even in simplest way, I can only come up with cards). If you can point me to some layout that can best represent the examples in this case, it will be a huge help ❤!!

Closing, we are planning to rethink the plugin API. Thanks for you contribution.


Demonstrator notebooks

Running single physical model
Running single ML model
Combining ME and EBM models
Comparing ML and physical models
Realistic experiment: scientifically sound experimental setup
Prediction: combine new data with saved model

Closing as part of #200 #206


Object Detection Data Preview

In the Data page, we need to figure out how to show the object frame properly

PR isn't in for this. IMO we should just close this item because 1. We're not shipping it and 2. This will be verified in an Object detection bug bash.
We could reopen but I think this was more for Tevin's tracking.


Issuse/492 icon in dialog fixed #492 and #464

Description

Dialog: apply margin-left to icon for error dialog (DNA var: spectrum-dialog-icon-margin-left)
Popover: apply margin-left to icon for error popover (DNA var: spectrum-global-dimension-size-200, 16px on desktop and 20px on mobile scale)
Dialog documentation: New example for Very long title error dialog
Popover documentation: Add alert icon to existing very long title error popover. Fixed #464

How and where has this been tested?
VR testing: https://spectrum-visual-regression.ci.corp.adobe.com/job/spectrum-css-vr-test-asset/206/artifact/spectrum-css/backstop_data/html_report/index.html
**Browser(s) and OS(s) **: Tested with latest Chrome/Firefox/Safari on MacOS
Codepen: https://codepen.io/jianliao/pen/bGNydmK?editors=1100
Screenshots

Dialog:
Before

After

Popover:
Before

After

To-do list

[x] If my change impacts other components, I have tested to make sure they don't break.
[x] If my change impacts documentation, I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.

[ ] This pull request is ready to merge.

@jianliao as discussed, I pushed a commit that seems to fix the icon alignment without padding. I tested in both Chrome and Firefox and it's aligned nicely. Please check it out and let me know!

Thanks @lazd. Please merge.


Improve dissolve performance

Mainly a (big) improvement when there are a lot of tiles and/or the CPU need for processing (unioning) is small.

Codecov Report
Base: 86.53% // Head: 85.74% // Decreases project coverage by -0.78% :warning:

Coverage data is based on head (13058ac) compared to base (c8e1cf3).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #185      +/-   ##
==========================================
- Coverage   86.53%   85.74%   -0.79%
==========================================
  Files          18       18
  Lines        3267     3269       +2
==========================================
- Hits         2827     2803      -24
- Misses        440      466      +26

Impacted Files
Coverage Δ

geofileops/util/_geoops_gpd.py
87.89% <100.00%> (+0.04%)
:arrow_up:

geofileops/util/_general_util.py
68.18% <0.00%> (-16.67%)
:arrow_down:

geofileops/util/_io_util.py
76.36% <0.00%> (-7.28%)
:arrow_down:

geofileops/util/_ogr_util.py
81.77% <0.00%> (-0.43%)
:arrow_down:

geofileops/fileops.py
89.49% <0.00%> (+0.16%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Cannot read footnotes

First of all thanks for open-sourcing this helpful tool.
I was using it for personal research and found that it is not properly working when papers contain footnotes. When reading the paper about CheXpert, the json conversion did not contain the important footnote present in the introduction:

Are you aware of this issue? If so, will it be tackled at some point?
Thank you

@alramalho to be precise this is not a footnote, this is the copyright statement. This information goes in the header (at least for what concern Grobid).
Do you need the copyright information?

hey @lfoppiano, actually what I need is the [1] reference link, which I couldn't find anywhere in the JSON output file

Hi @alramalho, this is a special case where grobid recognise it incorrectly the link as the copyright statement.
It'a rather difficult case because the copyright usually comes with a link in the statement.
The optimal solution is that we add this document as training data with the correct segmentation. However, despite the authors shared on arxiv (https://arxiv.org/abs/1901.07031) as "CC-BY" I'd say we won't be able to use it.
I've opened a new issue on grobid, that you can follow: https://github.com/kermitt2/grobid/issues/1048.

That makes sense, I'll follow it there then, closing the issue :) Thanks!


:bug: Colorbar is showing a constant image

The colorbar is currently showing a constant image which is not always sized properly. The colorbar should be created using JavaScript based on the individual colorbar property in a layer.

To remedy, a colorbar file is generated for each tile processing using the jamal919/bandsos-platform Colorbar module. See example of such processing in run_publish script inside bandsos-platform/examples folder. Next step is to pass this colorbar location to the colorbar component.


Fixed typo

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

latest/docs-ref-conceptual/create-an-azure-service-principal-azure-cli.md
:white_check_mark:Succeeded
View (azure-cli-latest)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Interactive interpreter on Chrome on Android

... doesn't seem to accept character key presses. Enter works but letters and numbers seem not to?

I'll try this on my samsung later.

I can reproduce this too. Perhaps it's related to the android keyboard's word suggestions? Numbers and symbols don't trigger any such suggestion, so that would be one possible difference between the two types of characters.

If the word suggestions indeed turn out to be the problem, I've noticed that the feature is turned off for the textboxes of google translate, so maybe there's some html attribute which turns it off.

I got a fix for it, I'll sent a pull request.


create-cycle-app  producing typescript project that shows errors.

Hi, I've started using cycle today. I wanted to start with typescript version. Sadly generated project produces code that shows errors on day one.
I've updated my local tsc but it didn't help. I tried to 'google' that issue but with no success :(
Code to reproduce the issue:
create-cycle-app <my-app-name>
cd <my-app-name>
npm start
Expected behavior:
No error should be visible
Actual behavior:
[at-loader] Checking finished with 4 errors
[at-loader] ./node_modules/@cycle/dom/lib/MainDOMSource.d.ts:14:5
    TS2416: Property 'elements' in type 'MainDOMSource' is not assignable to the same property in base type 'DOMSource'.
  Type '() => MemoryStream<Element>' is not assignable to type '() => MemoryStream<string | Element | Document | Element[]>'.

[at-loader] ./node_modules/xstream/index.d.ts:15:18
    TS2430: Interface 'Operator<T, R>' incorrectly extends interface 'InternalProducer<R>'.
  Types of property '_start' are incompatible.
    Type '(out: Stream<R>) => void' is not assignable to type '(listener: InternalListener<R>) => void'.
      Types of parameters 'out' and 'listener' are incompatible.
        Type 'InternalListener<R>' is not assignable to type 'Stream<R>'.
          Property '_prod' is missing in type 'InternalListener<R>'.

[at-loader] ./node_modules/xstream/index.d.ts:20:18
    TS2430: Interface 'Aggregator<T, U>' incorrectly extends interface 'InternalProducer<U>'.
  Types of property '_start' are incompatible.
    Type '(out: Stream<U>) => void' is not assignable to type '(listener: InternalListener<U>) => void'.
      Types of parameters 'out' and 'listener' are incompatible.
        Type 'InternalListener<U>' is not assignable to type 'Stream<U>'.

[at-loader] ./src/index.ts:13:11
    TS2345: Argument of type '{ DOM: Driver<Stream<VNode>, MainDOMSource>; }' is not assignable to parameter of type 'Drivers<Sources, Sinks>'.
  Types of property 'DOM' are incompatible.
    Type 'Driver<Stream<VNode>, MainDOMSource>' is not assignable to type 'Driver<Stream<VNode>, DOMSource>'.
      Type 'MainDOMSource' is not assignable to type 'DOMSource'.
        Types of property 'elements' are incompatible.
          Type '() => MemoryStream<Element>' is not assignable to type '() => MemoryStream<string | Element | Document | Element[]>'.
            Type 'MemoryStream<Element>' is not assignable to type 'MemoryStream<string | Element | Document | Element[]>'.
              Types of property 'take' are incompatible.
                Type '(amount: number) => MemoryStream<Element>' is not assignable to type '(amount: number) => MemoryStream<string | Element | Docume
nt | Element[]>'.
                  Type 'MemoryStream<Element>' is not assignable to type 'MemoryStream<string | Element | Document | Element[]>'.

Versions of packages used:

Also create-cycle-app is not part of the official cyclejs, but a community contribution instead. So this issue is not in the right place anyways