Parsers visibility and Nom dependency

Hello,
For a project I need to quickly parse only some Tls records of a session.
So for lessening the amount of alloc, I'd like to be able to parse only a TlsRecordHeader without its data and then only parse the content if needed.
I saw the parse_tls_raw_record functyion but it needs a complete record to work.
What I'd like to write is something like this:

let data = [0x16, 0x03, 0x01, 0x00, x051];
let (rem, header) = parse_tls_record_header(&data[..]);
//Do something with header

I have an other question concerning the Nom dependency this time.
I need to add nom as a dependency in order to use your crate even if I don't use it for anything else.
Wouldn't it be better for your crate to use "pub extern" to reexport the IResult from Nom ?
I know this practice is under debate but I think it's very inconvenient to have to pull an entire crate to use an other one.
Thanks for your time

Hi,
Parsing first the header and the record later is possible. You can look at

this code to read the header: https://github.com/rusticata/rusticata/blob/master/src/tls.rs#L353-L397
this part to use the header and parse the rest of the record: https://github.com/rusticata/rusticata/blob/master/src/tls.rs#L328-L347

About re-exporting nom, I don't know what's the best practice and if re-exports can cause problems. I need to read more about that. As far as I understand, the only problem with the current situation is that you need to add the same version to your dependencies.

Hi,
Thanks for your answer.
In your examples the buffer needs to contain the record header and its body in order to get the header. What I'd like to do is to be able to parse the header from the buffer even if it doesn't have all the data of the body. I think what I'm looking for is this function: https://github.com/rusticata/tls-parser/blob/master/src/tls.rs#L545-L558
About the re-exporting, it's not really an issue for me because in can always add nom as a dependency but I know some people are reluctant to add new new dep if they don't really need to.

I just found a work around, so I'll close this issue.
Thank you again

Ok, thanks for the update.
There was no real reason to hide these functions, so I have committed some visibility changes, so record header and message parsing functions are now public. This will be part of the next release.


Change method name 'dump' to 'printEntries'

This class is used to represent PriorityGraph.  The method named 'dump' is to printEntries. Thus, the method name 'printEntries' is more intuitive than 'dump'.

From the perspective of the user of this class, Entries word has no meaning. So, "dump" is more meaningful than "printEntries" and more common at the same time
It's not a public class, so why changing method names at all?


⚠ Bofrost.lu has degraded performance

In 3d1e529, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 979 ms

Resolved: Bofrost.lu performance has improved in b3c8a7b after 6 minutes.


Codecov

Configures Jacoco and sets up ~Codacy~ Codecov to track the coverage.

51eca98 adds some tests to be able to check whether multiple subproject test results can be combined
b64d619 sets up Jacoco to combine the reports of each module into one final report, based on the code in this gist
Then a lot of commits trying to set up Codacy happen, which are subsequently removed in a9c22e9.
8ce883f configures Codecov.

Codacy doesn't want to read the coverage reports, even though they are being sent. I've opened a ticket with Codacy, so I'm waiting for their reply now.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@edb8806). Click here to learn what that means.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master       #9   +/-   ##
=========================================
  Coverage          ?   41.54%
  Complexity        ?      189
=========================================
  Files             ?       20
  Lines             ?      905
  Branches          ?      194
=========================================
  Hits              ?      376
  Misses            ?      461
  Partials          ?       68

Impacted Files
Coverage Δ
Complexity Δ

...schaapi/usagegraphgenerator/UsageGraphGenerator.kt
66.66% <100%> (ø)
2 <2> (?)

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 edb8806...8ce883f. Read the comment docs.

Finally, it works!

@casperboone Fixed!


allow configuration of success message

I'm running multiple concurrent rollup builds so needed a custom success message to know which one is finished.

Hey, thanks for the PR. I'm sorry, i didn't notice this was a PR, I only saw email title and thought it's another issue so i quickly put together options.id in the commit i pushed a minute ago. Would you try that and see if it works for you? thanks

No worries, I like your solution better than mine anyway, mine didn't tell you which build was failing 🤦🏻♂ and it works fine:

Great, so I'll publish it on npm if there's nothing more to implement.

you could still add the changes that allow config of the message but It doesn't seem to useful now, just a nice to have


Unable to use multiple times the "withQuery" method

Summary of problem or feature request
Hi, I have a quite complex table for which I try to retrieve the sum of a column "rated power", filtered by a status "announced, operational, contracted".
After hours of searching, il looks like the method "withQuery" works great. But the fact is I cannot use it multiple times, like the query was modified by my request.
These three declarations work fine alone but not at the same time :
Code snippet of problem
->withQuery('announced_rated_power', function($filteredQuery) {
    return $filteredQuery->whereHas('status', function($query) {
            $query->where('slug','LIKE','announced');
    })->sum('rated_power');
})
->withQuery('contracted_rated_power', function($filteredQuery) {
    return $filteredQuery->whereHas('status', function($query) {
            $query->where('slug','LIKE','contracted');
    })->sum('rated_power');
})
->withQuery('operational_rated_power', function($filteredQuery) {
        return $filteredQuery->whereHas('status', function($query) {
                $query->where('slug','LIKE','operational');
        })->sum('rated_power');
    })
->make(true);

I don't understand the logic behind the query keeping the filter I made...
Do you have any idea how to reset the query or to make the 3 methods work at the same time ?
Thank you,

Operating System : Dedian 8
PHP Version : 7.1
Laravel Version : 5.7
Laravel-Datatables Version : 1.5

I think the filteredQuery object might be mutable atm, may try cloning the model first before doing a query? Maybe something like:
->withQuery('announced_rated_power', function($filteredQuery) {
    return (clone $filteredQuery)->whereHas('status', function($query) {
            $query->where('slug','LIKE','announced');
    })->sum('rated_power');
})

Might be a good candidate for enhancement and make the filteredQuery immutable.

Dear @yajra it works, thank you so much !


How to set enableBufferOccupancyABR

Hi, is there a way to set "enableBufferOccupancyABR" before calling initialization?

Oh, beforeinitialize hook... Sorry, closing :)

You can also set the that function in your player constructor with https://github.com/videojs/videojs-contrib-dash#passing-options-to-dashjs


Frame drop is severe when scrolling

This is my full source code.
It is an app that only uses the flutter_inappwebview.
import 'package:flutter/material.dart';
import 'package:flutter_inappwebview/flutter_inappwebview.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  MyHomePage({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        body: InAppWebView(
      initialUrl:
          'http://web.humoruniv.com/board/humor/read.html?table=pds&pg=0&number=991460',
    ));
  }
}

I've tried two difference webviews, but the one with the best performance doesn't match the flutter ui, and the other one have very bad performance. This is also slow in performance.
How can I fix it?
I can't find a way to improve the scrolling performance in anywhere.

Once the 5.0.0 update releases for this plugin, please set
initialOptions: InAppWebViewGroupOptions(
    android: AndroidInAppWebViewOptions(
        useHybridComposition: true,
     )
 ),

inside the InAppWebView constructor.

Thank you! I encountered a little ui problem, but it is very nice to use!

When can we expect the next version? Thank you
@tneotia

When can we expect the next version? Thank you

Don't know... this is a question for @pichillilorenzo
If you need this now you can use this in pubspec.yaml:
flutter_inappwebview:
    git:
      url: https://github.com/pichillilorenzo/flutter_inappwebview.git
      ref: master

Just beware if you have native animations on webView page and running Android <10, there will be some lag even though webView is buttery smooth. That's a Flutter issue.

Once the 5.0.0 update releases for this plugin, please set
initialOptions: InAppWebViewGroupOptions(
    android: AndroidInAppWebViewOptions(
        useHybridComposition: true,
     )
 ),

inside the InAppWebView constructor.

You have saved my day, thank you!


Don't open a File Explorer

Summary
Don't open the File Explorer when there are no enabled protections/the obfuscation was not succeeded
Basic Example
For example, now it simply will open the file explorer on top of the screen even when there is no one-enabled protection, instead doesn't open the file explorer if there are no enabled protections/the obfuscation was not succeeded

Fixed in some of the latest releases, closing it


benerator 3.1.0 (new formula)

Benerator is a powerful tool for generating, obfuscating, and migrating data for development, testing, and training purposes. This formula makes it easy for users to install Benerator-CE   on their systems, without having to worry about manual setup or configuration.
The formula includes all necessary dependencies and configuration files, and can be installed with a single command. Users can then start using Benerator-CE right away, without having to spend time on tedious setup tasks.
This is the initial version of the formula, and we plan to update it regularly as new versions of Benerator-CE are released.

[x ] Have you followed the guidelines for contributing?

[ x] Have you checked that there aren't other open pull requests for the same formula update/change?
[x ] Have you built your formula locally with brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
[x ] Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
[x ] Does your build pass brew audit --strict <formula> (after doing brew install --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?

Hi @ake2l ,
This is the PR as Homebrew instruct to got the new formula review.
However because they suggested that we keep merge commit out of the commit history so please help me to check after you accept this PR into the rapiddweller repo, can it be done without create a merge commit.
Additionally, after this, we need to create a PR from rapiddweller/homebrew-core onto Homebrew/homebrew-core. Please kindy help me with this.
Here is also some related docs if you need to take a look

hi hao, we should be able to achieve this by using rebase


Feature suggestion: background music support

Describe your suggested feature
Some sources provide music alongside a chapter. This is fairly common on Webtoons.com, for example. It'd be neat if the source API had support for optionally getting the URL of a music file that is intended to play alongside a chapter, and if Mihon had the option to play such tracks when they are returned.
Other details
This was previously reported as a feature suggestion in https://github.com/mihonapp/mihon/issues/970, but the thread was immediately closed and locked with an offhand comment before any discussion could take place, which makes me unsure whether the appropriate level of consideration was given.
If a community member contributed the implementation, would a merge be considered?
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] I have updated the app to version 0.17.1.
[X] I will fill out all of the requested information in this form.

Duplicate of #970

This has also been requested multiple before Mihon and all the time it was denied because the use case is very niche. As I said only 2 sites that I know of supports music playback and only one of them actively uses it (e.g. Webtoons)
From my personal point of view the current codebase especially the reader is a total mess and I don't want make it more messy. I'm slowly working on a rewrite (privately) and I may consider this when the rewrite is public so for now it's still a no

Also closed issues are automatically locked after 2 days of inactivity so they aren't necro'd


Fixed memory leak problem

When the nodes number is greater than 4, it will cause memory leaks.

Coverage increased (+0.05%) to 76.288% when pulling 0561b198a75d933b12045ce5cb2cfc3dec9c21e3 on yaoxp:develop into 9b98410df77fd477da2fae08490f2dbdb5787038 on twitter:develop.

Did you find this by inspection or from debugging? This should have been fixed in change https://github.com/twitter/CocoaSPDY/commit/5f9354a, there's even a unit test testAllStreamRemovalDoesNotLeak covering it. Or is there something else I'm missing?
Thanks!

I'm sorry I was wrong.
I use the master branch of the code. There is no problem in the develop branch.


Gradient color in nvd3 area charts?

Hi there,
Is it possible to apply gradient color to area(filled-line) charts in nvd3.
I have seen a workaround in d3 charts, using the svg object.
But is there a simpler way to do this, or any hack to get the same done?

Is there a way to get this done?

@anishnair02, reference here:
https://stackoverflow.com/a/10898304/7395194
It'll be a little bit of work, but this should work out for you. I'd recommend using the JQuery SVG plugin offered up in that answer. Each area is going to be within the <svg><path class="nv-area-X">...</path></svg>. The 'X' in the class name references which of the areas you are trying to change based on the data i.e. DataSet 1 --> class="nv-area-0".  Keep in mind that the legend will still display the original color before modified to the gradient, so you must repeat this for the legend if you choose to do so.
I have yet to do try this out, but please let us know if it works.


Project files disappear after I created them

Describe the bug
Project files disappeared after I created them. I've used Bolt to create an Angular component with a few prompts. It was working perfectly fine but somehow the project files disappeared even though I could use the 'View on StackBlitz' button. project files disappeared even though I could use the
Link to the blitz that caused the error
https://stackblitz.com/edit/sb1-dqqkkp
Steps to reproduce
Create an angular app with a few AI prompts
Customize it
Hit the button 'View on StackBlitz'
Expected behavior
Create an angular app with a few AI prompts
Customize it
Hit the button 'View on StackBlitz'
View the project on StackBlitz or Bolt.new
Parity with Local

[X] I have run the project in my local machine and I could not reproduce the issue.

Screenshots
No response
Platform
Browser name  = Chrome
Full version  = <IP_ADDRESS>
Major version = 129
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
performance.memory = {
  "totalJSHeapSize": 101191607,
  "usedJSHeapSize": 90055471,
  "jsHeapSizeLimit":<PHONE_NUMBER>
}
Hash = 134daa3c

Additional context
No response

@ozgursarikamis instructions on reloading your project can be found in #39


Issue with StanfordDoggoOuterBigPulley.stl.step

Hi!! Thanks for sharing the doggo project to the public. My team is currently facing difficulty in printing StanfordDoggoOuterBigPulley.stl.step as the file appears to be corrupted. Do you have any advice regarding this?

I used the download link from the shared BOM

I'd like to add that I am facing a similar issue with the part.
But it also seems that the CAD file for that particular item shows a shaft instead of a 48 tooth gear?

@ulaladungdung, @methylDragon, see my feature branch for fresh STL and STEP files:
https://github.com/maxsu/StanfordDoggoProject/tree/feature/track-CAD-Files/DoggoHardware/3D Printed
These include all 3d printed parts in project.

Notes:

Most files are named in accordance to their part names in the CAD model, which (currently) disagree somewhat with the BOM. Hopefully this does not cause too much confusion.

Caution: BOM specifies 94180A333 heat-set inserts for StanfordDoggoOuterBigPulley, however the CAD model is configured to use 94510A310 screw-to-expand inserts. The CAD model requires slight revision before it can receive A333 inserts, so I recommend A310 inserts for now. Let me know if you want me to fast track a heat-set revision to you.

Hi @maxsu Thanks so much for the help!!
And yes please, the revision would be amazing as we already have the A333 on hand. Cheers!!

See the updated stl. Fusion version is here.
Be careful; I increased the minimum wall thickness by 15% (to 1.15mm), but the insert's centerline could drift during heated installation. Let me know if you need a heavier revision.
@Nate711:
Is there any other A333 version of the pulley?
Is a 1.15mm wall thickness suitable?

I reduced the height of the pulley's shoulder boss by 0.5 mm in order to accommodate the larger diameter of the A333 without altering any other parts. However,  the spacing between pulley and housing could be a problem:

I did a little exploration, and looks like we can restore the spacing if we aggressively recess the insert into the pulley face:

This also increases the minimum wall thickness:

Take care however; this requires a 1.4 mm translation of the outer shaft locating holes.

Our robot uses the A310 screw-to-expand inserts but that caused an issue where if you really tighten the set screws that go inside of the inserts and then try to unscrew those set screws, the A310 insert sometimes spins inside the plastic instead of allowing the set screw to unscrew.


Infer strand-specificity from sub-sampled BAM

Strand-specificity is not always known beforehand, especially for public datasets where this information may not have been provided. Using the wrong strand information will mean that the results from HiSat2 and featureCounts will not be correct.
It should be possible to sub-sample fastq files, map these with STAR, and then use infer_experiment.py to work out the strand-specificity before running the steps mentioned above. For example, a cut-off of 70% can be used to infer the actual strandedness. This can then be passed to the rest of the pipeline.
At the very least, with the current set-up it would be good to check that the strand-specificty parameter matches the results of infer_experiment.py maybe with some logging info that returns a warning if this isn't the case. Although, I'm not sure how well this will work with HiSat2 because this information would already have been used to perform the alignments.

How about just having a sub-sample option? I've thought about doing auto-strand specification before but avoided it because (a) it's quite complex for something that won't be used loads and (b) it has the potential to do bad things if it goes wrong (eg. degraded datasets?).
A sub-sample option would be a lot simpler and would allow manual specification pretty quickly and easily. Could also throw bigger scarier warnings if the infer-experiment results look wrong... ☠

Hi. We implemented the auto-detection on our production pipeline, for the reason mentioned by @drpatelh, by simply running a bowtie2 fast mapping on 200K reads, running infer_experiment.py and writting a small parser than return stranded/yes/no.
My feeling is that it makes sense for production purpose, when you have many samples per day, and not always the strandness information.
However, from our experience, infer_experiment can sometimes return an "unknown datatype", especially on old public datasets ... so that's good to keep a way to force the parameter.
Finally, we now infer strand-specificity on-the-fly, only if the stranded parameter is not set (default behavior). If the parameter is set, we directly use the value provided by the user.
Note that this could also be useful to process samples with different strandness in a single process.
In this case however, it might be good to have a warning somewhere !

Yes, we already have forward / reverse / unstranded, so we could add auto and make that the default I guess. That should be pretty clear and wouldn't hurt setups such as ours where we prep all libraries and know what the strandedness should be.. 👍

We have a similar implementation with STAR in our local pipeline too. Something I suggested after being caught out a couple of times because we didnt have the appropriate kit information. Access to the appropriate metadata is key here, and this isnt always easy to come by...
I have seen the unknown datatype issue too but for most instances its spot on, and I agree that if the strandedness is calculated per sample then you arent limited by a single setting. However, Ive been thinking about this alot lately, and I would argue that we should be explicit in suggesting how our pipelines are run i.e. per experiment/across experiments/it doesnt matter. I say this because downstream analyses like differential analysis can only work if the pipeline is run for samples that are relevant for a particular biological interpretation...
Anywho, this would all be much easier if the pipeline was just using STAR because we may have been able to get away with checking the infer_experiment.py agrees, and spitting out an appropriate message. However, a full-on sub-sampling implementation would be required for HiSat2 and other mapping algorithms such as RSEM.

For now, instead of using a full-blown sub-sampling and auto-detection approach I have decide to add a WARNING to the top of the MultiQC report that flags up any samples where the strandedness provided in the samplesheet isn't the same as that calculated by RSeQC infer_experiment.py. I think this should be fine given that there may be issues where infer_experiment.py can chuck out a load of undetermined reads and if for example you have heavily contaminated samples:


Segmentation Violation when running Platform in Kubernetes

I've added a screenshot of the platform container logs after adding kas secrets, enabling the playground, and running the following on Minikube:
helm install -f values.yaml opentdf .

OS: Ubuntu 22.04.4 LTS
Version: Jammy Jellyfish
Docker Version: Docker Engine - Community v 25.0.5
Helm Version: v3.14.3
Kubectl Version: Client Version = v1.29.3 && Server Version = v.1.28.3
Minikube Version: v.1.32.0
platform-db and platform-keycloak are both up and running with no errors. opentdf-platform is in a CrashLoopBackOff state. Kubernetes storage provisioner is running fine. No other errors to note.
Please assist! I am getting the feeling this has to do with an application-specific bug. Thank you.

Please include Paul Flynn in this discussion if possible. We (BAH) met with him yesterday and had possibly related errors when running decryption in Docker-Compose.

@namanrawal47 There is a bug in the nightly build of the platform after some changes related to restructuring how the database client was handled.
As a temporary solution you can disable the health checks. Not ideal but quickest option to get around this issue.
https://github.com/opentdf/charts/blob/31926cc2dc284f1d2572a8bbf30dbadfe3ff8fa6/charts/platform/values.yaml#L162
This issue gives some details https://github.com/opentdf/platform/issues/700

Thank you - this is working now.

This should be resolved by https://github.com/opentdf/platform/pull/755


Add python 3.12

Add python 3.12 (also bump cibuildwheel)

Thanks for the PR! Would you mind signing the CLA per https://github.com/deshaw/nbstripout-fast/blob/main/CONTRIBUTING.md?

Closing in favor of https://github.com/deshaw/nbstripout-fast/pull/14


Feedback

@Luisannag18 this assignment looks great! You've met all the requirements and seem to be comfortable with HTML elements and structure 🙂
I did notice that there are a couple extra keywords in your markup which aren't necessary, perhaps that was a typo? (see below)
<!DOCTYPE html>

-   <meta charset="UTF-8">content-container
+   <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>title</title>
    <meta name="author" content="name">
    <meta name="description" content="description here">
    <meta name="keywords" content="keywords,here">
    <link rel="stylesheet" href="styles.css" type="text/css">

- content-container
+

Code the Dream - Week 1 Assignment

I'm excited about learning JS and experience working collaboratively in a project.

If you want to go above and beyond the written requirements, you could update the meta data in the  element which currently has placeholder values:

  <title>title</title>
  <meta name="author" content="name">
  <meta name="description" content="description here">
  <meta name="keywords" content="keywords,here">

Great job! 🎉

Yes, that was a typo, I should have notice when I ran the "diff" command. My computer has this weird thing that if I don't click left all the way to the left, it pastes whatever words I copied last. Thanks for the feedback! I wasn't 100% sure if I did it right.


feat/ttv x demo

x-to-voice growth app - need to get this merged so I can point Vercel to it.

feat: create new nextjs project & setup initial page structure
feat: initialise project structure
feat: complete interface
feat: progress
feat: make progress
feat: tie generated content with interface
feat: ttv example
feat: add types
feat: implement ttv
chore: extend maxtimeout
feat: address partial feedback
feat: add open source link
feat: improve generation and add examples

I like the idea of having example twitter profiles listed on the start page but we are hyper sensitive right now to anyone trying to create impersonations of presidential candidates with AI, so I wouldn't include POTUS.
Maybe rather than including politicians we could do notable ElevenLabs accounts, i.e.
@matistanis @ammaar @elevenlabsio

Also see that you have "by submitting this form you agree to our terms" listed, but no link to the terms. Unless someone mentioned us needing to include terms, I think fine to remove this. We didn't have any special terms https://www.videotosoundeffects.com/


[Refactor] refactor multi distinct rewrite strategy (backport #40549)

Why I'm doing:
What I'm doing:
cherry-pick relative backport prs.
[Enhancement] optimize agg cost model  (backport #34034)
[Refactor] refactor split agg rule  (backport #39556)
[Refactor] refactor multi distinct rewrite strategy (backport #40549)
What type of PR is this:

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Does this PR entail a change in behavior?

[ ] Yes, this PR will result in a change in behavior.
[x] No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

[ ] Interface/UI changes: syntax, type conversion, expression evaluation, display information
[ ] Parameter changes: default values, similar parameters but with different default values
[ ] Policy changes: use new policy to replace old one, functionality automatically enabled
[ ] Feature removed
[ ] Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

[ ] This is a backport pr

Bugfix cherry-pick branch check:

[ ] I have checked the version labels which the pr will be auto-backported to the target branch

[ ] 3.2
[ ] 3.1
[ ] 3.0
[ ] 2.5

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: packy92:x: mergify[bot]You have signed the CLA already but the status is still pending? Let us recheck it.


Model Form HasMany ReOrdering

Laravel Version: 5.5.40
PHP Version:7.1.7
Laravel-admin:1.5.x-dev

Description:
Is there anyway to make ModelForm HasMany reorder-able in laravel-admin?

You set in the Model.
public function paintings()
{
return $this->hasMany(Painting::class, 'painter_id')->orderBy('top', 'DESC');
}

@dynamohuang this should work on the order part from database,
now is there any way to drag drop order in hasMany field?


package site as Windows service with MSI

create a setup project to build an MSI that installs site as Windows service

Planning to package as a nuget package for Octopus to deploy (seems more appropriate given that we know you have octopus if you are trying to use the Kraken).
#6


Update websockets to 11.0.3

Updates the websockets dependency to 11.0.3.

@fbradyirl could you approve the GitHub Actions run?


[Feature]: Specify the type of data to load in Firestore

Is there an existing issue for this?

[X] I have searched the existing issues

Summary
In Firestore it is not possible to select what type of data we want to load it is true that we can put an array, a boolean or a number and Firestore will detect the type of data but when trying to load a reference Appsmith does not know what it is trying to send, and it fails and if we put it inside " " Firestore will take this as a string instead of a reference.
In Appsmith we should be able to select the data type just like we can do in firestore I attach an example image:

And right now, this is the way to upload the files to Firestore from Appsmith:

Why should this be worked on?
By allowing users to specify the type of data that we are going to send to our Firestore we save ourselves problems like this that we cannot load a reference to Firestore.
 Front conversations

Currently there is this workaround to send data of type reference.
{
"ref_object": {
  "path" : "collection/OBJECTID",
  "id" : "collection/OBJECTID"
},
"field": "value"
}


[TEST_ONLY]Shiftstack on va1

This PR is created to be able to test below two PRs at the same:

https://github.com/openstack-k8s-operators/ci-framework/pull/1259
https://github.com/openstack-k8s-operators/ci-framework/pull/1210

As they both are needed to validate the e2e test for OSASINFRA DFG.

recheck

recheck

@rlobillo hello, is this still relevant? If not, care to close it? Thanks.


All cards should respect an 80 char limit width

There are issues with the context card bumping the images.

Should be like this

Looks like this bug was introduced in https://github.com/bdougie/open-sauced/commit/1b51654c19cedbd3ada024148c4988bde57ee8b5


vmguests collect only option

@pryorda I've separated the VM Guest metrics into a separate collection routine.
We don't need this information and it cuts our scrape times considerably, I figured it would be a good idea to allow disabling collection of these metrics.
WDYT?

Can you install precommit and run the following in the repo?
pre-commit install -f && pre-commit install --install-hooks -t commit-msg -f

Then amend and repush your latest commit.
I haven't reviewed you're latest commits yet and will do so after that. So far it looks promising though.

Overall this is good stuff again!

pre-commit installed, amended and pushed

pre-commit did run, and I do see this:
Precommit-Verified: d1da16e544163e14fe66578fb349721d4c735c2ffb0a7d5f0b32c4fbd9766e7f

Interesting. I dont see it in the commit log here.

mmm... now I'm unable to commit, pre-commit is failing with:
Detect AWS Credentials...................................................Failed
hookid: detect-aws-credentials

No AWS keys were found in the configured credential files and environment variables.
Please ensure you have the correct setting for --credentials-file

I'm not sure what it expects me to have, sorry... never used pre-commit before.

But how do I commit now? do I need to defined am aws credentials file for this to work?

ok, created an phony aws credentials file and pushed the change you requested.

I need to remove that requirement

Final Request : Bump the version please :)

Done!


datetime-local on iOS not being shimmed but should be

On iOS (tested on an iPad and iPhone os 9.1 but reportedly happens with older as well) the following
<input  type="datetime-local" step="any" id="testDate" name="testDate" value="2014-08-10T07:08:57">```

Results in a native date and time picker (in Chrome, Safari, FF etc) that doesn't have a *year* option.

This makes it broken for use as a datetime-local in any scenario where you need to select a year so I would expect to see it be auto shimmed but that's not happening.

I've looked through the docs and haven't yet found a way to simply force it to shim a datetime-local but only for iOS but in any case that wouldn't be ideal, ideally it should automatically shim it I think.

This is documented:
http://afarkas.github.io/webshim/demos/index.html#Forms-forms-ext
types string A white space separated string. Possible values are 'datetime-local range date time number month color' . If one of the listed input types is not supported, Webshim will load the forms-ext API and UI package and implement all types.
default: 'date time range number'
You can change it to:
webshim.setOptions("forms-ext", {
    types: 'datetime-local date time range number'
});

Um..what?  Please re-read, I think there is a big misunderstanding here.  You have not resolved the issue with what you posted.

Lol, ok I didn't know this ;-). The only thing is that Apple always made more trouble than any other browser.
Unfortunately you can't feature detect this and you need to browser sniff here. You will have to argument the replaceUI option.
You can do so by doing this:
webshim.setOptions("forms-ext", {
    replaceUI: isSafariMobile()
});

or this:
webshim.setOptions("forms-ext", {
    replaceUI: {
        'datetime-local': isSafariMobile()
    }
});

Ok, thank you.


[Joy] Add TextField component

🖥 Preview
New components

FormLabel: pure component that render label
FormHelperText: pure component that render p
TextField: compose FormLabel, Input and FormHelperText together for ease of use

Implementation
This PR starts with the simplest way.

It is not using FormControl like Material UI (We can consider later if it is needed)
FormLabel & FormHelperText are pure components, they do not access the form control context because using CSS variables is enough for the styling.
The TextField is simply an input that cannot change to multiline (textarea). I doubt that we will need another component, eg. MultiLineField rather than providing prop to TextField. This can be decided in other PR.
Similar to select prop, the TextField cannot become a Select. This can be decided in other PR as well.

[x] I have followed (at least) the PR section of the contributing guide.

Similar to select prop, the TextField cannot become a Select.

I'm 100% with you on this one. The select prop on Material UI's Input feels odd to me.


Separating content files

I'm developing a one page website using enduro was wondering. Can you have multiple content files for one page?

You can put content files in the cms/global directory and it will be accessible to your page and provide separation for enduro admin.
Does it make sense?

No. Was hoping to break a single page's contents into smaller files instead of having one long content file

Yea, I understood that. It's a smart idea to structure the content. You can put as many files in whichever folder structure you like into cms/global and all of the files(regardless of the actual folder structure) will be merged and provided as context under global.
The context files will extend onto each other, so you can even have two files that will define the same object:
/cms/global/car/steering.js
{
    car: {
        has_steering_wheel: true
    }
}

/cms/global/car/wheels.js
{
    car: {
        number_of_wheels: 4
    }
}

In your template you will just be able to do: {{car.has_steering_wheel}} and also {{car.number_of_wheels}}
Don't forget that the folder structure only affects how it's displayed in the admin interface. It doesn't affect the context passed into the templates.


Refactor building ufs block options

What changes are proposed in this pull request?
Refactor building ufs block options
Why are the changes needed?
Make the code more clean and concise
Does this PR introduce any user facing changes?
N/A

alluxio-bot, merge this please.


this isit

@flavorjones #1319 and #1320 at your service!
these are really the 'simplest' thing that works ...

#1320 needs a Xalan "patch" (as noted on the issue). alternatively a Xalan fork could be maintained.
if there's more of these hacks needed maybe switching to another xpath engine should be considered.
#1319 similar issue might show up elsewhere, very ripe for refactoring the internals (maybe next time)

Wow! Thanks so much for submitting this. Looking at everything now ...

Other than the one question I made above, this looks great.

Tagging https://github.com/flavorjones/loofah/issues/88 as that is definitely addressed by this patchset.


Revert GCC 11 Linux pinning

Once issue ( pybind/pybind11#4606 ) is resolved, would revert commit ( 8e991f4 ) and re-render
Copied from @jakirkham from https://github.com/conda-forge/pp-sketchlib-feedstock/issues/43

Think we can do this now. In pybind11's 2.12.0 release, they included this fix: https://github.com/pybind/pybind11/commit/3414c56b6c7c521d868c9a137ca2ace2e26b5b2e
We included that release in conda-forge some time ago: https://github.com/conda-forge/pybind11-feedstock/pull/94
So would just drop this use_local: true line and re-render:
https://github.com/conda-forge/qsimcirq-feedstock/blob/0da0717d36e8ddaf9498700a1b78633404ed9513/.ci_support/migrations/cuda120.yaml#L5-L8


Event log: enable custom timestamp (via message prefix)

📝 Summary
Allow custom timestamps in the event log.
If a message is prefixed with a timestamp (in sec or ms), then that part is used for ReceivedAt and the message is the remainder of the original message:
# Start the server
$ go run cmd/system-api/main.go

# Add regular event
$ echo "hello world" > pipe.fifo

# Add event with custom timestamp
$ echo "1634966400 this is a test" > pipe.fifo

# Query events
$ curl localhost:3535/logs
2024-11-21T19:48:04Z     hello world
2021-10-23T05:20:00Z<PHONE_NUMBER> this is a test      <--- custom timestamp on this entry

Motivation
Some services might log into an (async) named pipe already before system-api has started. Without custom timestamps, those log entries would all have the timestamp when system-api started, instead of when the log message was written.
Downsides
Allows services to mess with internals through the log message, and spoof the timestamp of it's own event arbitrarily.
Discussion
Not yet sure what's the best path forward -- giving services this freedom, or simply not having 'proper' timestamps for logs received before system-api start.

✅ I have run these commands

[x] make lint
[x] make test
[x] go mod tidy

Allows services to mess with internals through the log message
IMO, a reasonable trade-off in the current setup.

Do you think we can add a boolean config flag like timestamp_override to toggle timestamps override from the messages?

Do you think we can add a boolean config flag like timestamp_override to toggle timestamps override from the messages?

Sure we can do that, and that's nice. But it doesn't really change the issue because we'd usually ship it with that functionality enabled.

closing, because magic and side-effects are not desirable here


Monit: minor bugfixes and UI changes

Do not render "stop command" of services to config if not configured
Add missing service description to model and view
Clarify various mail server settings in settings view
Fix spelling in settings view

@8191 looks good, thanks!

@8191 looks good, thanks!


Type error during bootstrap on Windows, 4.04

$ ocaml bootstrap.ml
C:\...\bin\ocamllex.opt.exe -q src\meta_lexer.mll
C:\...\bin\ocamllex.opt.exe -q src\sexp_lexer.mll
C:\...\bin\ocamldep.opt.exe -modules src/action.ml src/alias.ml src/ansi_color.ml src/arg_spec.ml src/artifacts.ml src/bin.ml src/build.ml src/build_interpret.ml src/build_system.ml src/clflags.ml src/cm_kind.ml src/config.ml src/context.ml src/file_tree.ml src/findlib.ml src/future.ml src/gen_meta.ml src/gen_rules.ml src/import.ml src/install.ml src/io.ml src/jbuild_load.ml src/jbuild_types.ml src/js_of_ocaml_rules.ml src/lib.ml src/lib_db.ml src/loc.ml src/log.ml src/main.ml src/merlin.ml src/meta.ml src/meta_lexer.ml src/ml_kind.ml src/mode.ml src/module.ml src/module_compilation.ml src/ocaml_flags.ml src/ocamldep.ml src/opam_file.ml src/ordered_set_lang.ml src/package.ml src/path.ml src/sexp.ml src/sexp_lexer.ml src/string_with_vars.ml src/super_context.ml src/top_closure.ml src/utils.ml src/vfile_kind.ml src/watermarks.ml src/workspace.ml > boot-depends.txt
C:\...\bin\ocamlopt.opt.exe -w -40 -o boot.exe unix.cmxa boot.ml
File "src/sexp.ml", line 377, characters 17-20:
Warning 105: missed punning opportunity
File "src/findlib.ml", line 268, characters 23-29:
Warning 105: missed punning opportunity
File "src/alias.ml", line 70, characters 21-25:
Warning 105: missed punning opportunity
File "src/build_system.ml", line 211, characters 46-55:
Error: Missing labeled argument ~targeting in this function call.

https://github.com/janestreet/jbuilder/blob/master/src/build_system.ml#L211

Did you set the environment variable OCAMLPARAM?

@diml OCAMLPARAM is not set.

Do you have an idea what would cause warning 105 to be activated?

Oh I accidentally had LexiFi's version of OCaml on my path. That must have caused the problem. Let me try vanilla OCaml…

Sorry for wasting your time, ocaml bootstrap.ml works fine on vanilla OCaml 4.04 on Windows.


refactor: remove c style casts in leveldb subtree

A part of https://github.com/bitcoin/bitcoin/pull/23810

Not sure if this is worth it, but I think it should be submitted to google with a CLA. There is no reason for us to carry this patch.

Closing for now as per my previous comment.


Don't recompile typescript project if already compiled

What does it do?
Avoid needlessly rebuilding the admin UI when running yarn config-sync import if already done.
Why is it needed?
When running software in an image in Kubernetes or Docker, it's good practice to have the image file system be read-only.
This means building the Strapi app in the Dockerfile at build time, but still running config-sync import at runtime.
However, because config-sync would try to recompile the project, this caused write errors:
/opt/app/node_modules/.bin/config-sync import --yes
warning Cannot find a suitable global folder. Tried these: "/usr/local, /usr/local/share/.yarn"
Starting the compilation for TypeScript files in /opt/app
error TS5033: Could not write file '/opt/app/dist/config/admin.js': EROFS: read-only file system, open '/opt/app/dist/config/admin.js'.
error TS5033: Could not write file '/opt/app/dist/config/api.js': EROFS: read-only file system, open '/opt/app/dist/config/api.js'.
error TS5033: Could not write file '/opt/app/dist/config/database.js': EROFS: read-only file system, open '/opt/app/dist/config/database.js'.
...

How to test it?

Use this branch of config-sync in a Strapi project
Run config-sync import in two scenarios:
a. in a project that already has been built
b. in a project that has not been built (rm -rf dist)
Verify that the expected config has been imported in both scenarios

I was unable to test it as per the instructions in CONTRIBUTING.md, because yarn kept complaining that yarn config-sync could not be found, despite it being in strapi-plugin-config-sync's bin folder.

Please let me know if I missed anything.

Hey there!
I haven't ran in to this issue myself just yet, but I'd be happy to do some testing and merge this PR.
Before doing so, could you pull the master branch into your feature branch?
I updated some dependencies which fix the failing tests.
Thanks :)

After this is merged I’ll release it with the next upcomming release. That will probably be in a week or 2.
In the meantime you can just install a PR in your project like so:
yarn add boazpoolman/strapi-plugin-config-sync#pull/77/head

Or
npm install boazpoolman/strapi-plugin-config-sync#pull/77/head

Hi @timraasveld,
This PR was released with v1.1.0 of the plugin.

Awesome, thanks for your responsiveness @boazpoolman


Rework PropertySourceBootstrapConfiguration to update the environment during environment post-processing and before ApplicationEnvironmentPreparedEvent is published

At the moment, PropertySourceBootstrapConfiguration is triggered by BootstrapApplicationListener on ApplicationEnvironmentPreparedEvent at which point it makes changes to the Environment. This breaks the expected lifecycle of the environment as no changes are expected after the environment has been prepared. It will hopefully be possible to correct this by switching to an EnvironmentPostProcessor. This should fix https://github.com/spring-projects/spring-boot/issues/18191. It should also allow the code that reinitialises the logging system – something that has caused numerous bugs over the years – to be removed.
If there's anything we can do in Boot or any assistance we can provide on the Cloud side to help to make this happen, please let us know.

Ping @dsyer

Makes sense to look at it. I have a feeling that an ApplicationListener might need to be retained to do some sloshing of parent-child context relationships, but the bulk of the work with the Environment could go into an EnvironmentPostProcessor.

Any update on this ticket? we are missing that feature a lot

No

As part of fixing this issue, please document how a custom EnvironmentPostProcessor can run after the service configuration has been loaded from the config server. It should boil down to providing a sensible order value for it (perhaps Spring Boot itself would also have to clarify the ones that run by default).
As far as I can see, it is impossible to write an EnvironmentPostProcessor that takes a decision based on what the user has configured when using the config server.

This has been superseded by #703 which uses an EnvironmentPostProcessor. Bootstrap will now be opt in via spring.config.use-legacy-processing=true.

Awesome! Thanks, Spencer.

Hi. The linked issue LoggerContext changes when using Spring Cloud, eliminating Logback metrics spring-projects/spring-boot#13077 was not resolved by the fix in #703
Same for LoggerContext changes when using Spring Cloud #564.
@spencergibb should this be reopened or should I create a new issue?

Hi. The linked issue LoggerContext changes when using Spring Cloud, eliminating Logback metrics spring-projects/spring-boot#13077 was not resolved by the fix in #703 Same for LoggerContext changes when using Spring Cloud #564. @spencergibb should this be reopened or should I create a new issue?

I also encountered this issue


Installation doc out of date

https://portia.readthedocs.org/en/latest/installation.html#debian
Here it says to run this command sudo docker/splash.sh
There is 2 issues with this. If you follow the installation instructions by the letter, then first you must do cd portia (with only comes later in the installation instructions). And second splash.sh is not available, only compile-assets.sh and restore-mtime.sh

Hi, the instructions should be updated now, please check again.


loader: Remove filtering of object init callback when calling ICDs

The callback for init created dispatchable objects currently gets filtered out by the loader
during CreateDevice and CreateInstance before calling down to ICD.  For the ICD to use this callback
when they create a new dispatchable object  the filtering needs to get removed.
Also see internal Vulkan-Docs issue number 204 for further discussion on if ICDs should be able to handle  non-NULL  pNext in CreateDevice and CreateInstance.
For these callbacks and how they work see vk_layer.h.
The sType in the *CreateInfo struct is VK_STRUCTURE_TYPE_LAYER_DEVICE_CREATE_INFO or VK_STRUCTURE_TYPE_LAYER_INSTANCE_CREATE_INFO
The VkLayerFunction  from vk_layer.h is
VK_LOADER_DATA_CALLBACK.

Since issue 204 was resolved as unknown pNext/sType should be ignored by ICDs and layers, the loader can remove this filtering.


Add sink-specific sections to CDC docs - Plus add new webhook sink

Different CDC sinks can have sink-specific caveats, nuances, and best practices. We don't capture these differences well in the docs today. This issue is meant to track those differences so that we can eventually split out sink-specific sections.

https://cockroachlabs.atlassian.net/browse/CRDB-7748

cc @mikeCRL


Won't build on Windows with x86_64-pc-windows-gnu

When on Windows 10 and building to x86_64-pc-windows-gnu, compiling a program with iced gives this error:

Obviously, as this is building on Windows it is inappropriate to expect that g++ is present. As such, it is a bug that this library will not build without g++ on Windows. Note that other programs compile just fine, as rustup now contains the linker when you install this target. It isn't clear to me if this is a spirv-cross bug or an iced but, but, either way, the people here who are depending on spirv-cross likely will know, hence I am making the bug report here.
Additionally, I would like to note that when cross-compiling from Linux to this same target, although a .exe is created, this .exe won't run on Windows because it wants access to libstdc++-6.dll, but, when I pull a copy of this DLL from GCC-TDM (a random Windows GCC port, since the file doesn't exist in the files that Rustup downloads), the program crashes with cryptic hex error messages.

I believe this is related to spirv_cross, which is using cc. You can check out its compile time requirements.

Thank you for the quick response! Unfortunately, when I fix the spirv_cross issue, by adding TDM-GCC's g++ to the path, although I get an exe that runs, it creates a blank window. I have a simple "hello world" gui as described in the documentation, and it works fine on Linux so the code is probably correct.

Maybe https://github.com/gfx-rs/wgpu/issues/464 helps?
Especially the
cargo update -p cc --precise 1.0.50

from  https://github.com/gfx-rs/wgpu/issues/464#issuecomment-623800438 worked for me on Windows MSVC. I dunno if it works for your case with GCC though :/

Unfortunately that didn't fix the issue @kerskuchen . Thanks for the attempt though :) With the old version of cc, the window is still blank.

Unfortunately that didn't fix the issue @kerskuchen . Thanks for the attempt though :) With the old version of cc, the window is still blank.

Can you get any of the examples to work?  I'm having a problem with the tour example giving me a white window, but everything else works.  I think I've tracked it down to the "Image" feature, but still working through it.

@john01dav Do the examples in master work for you? We have recently updated wgpu and removed OpenGL and DX11 as backend choices, so we may get an actual error.

@mattbradbury @hecrj The examples in master don't work. Here's a video to show exactly what happens. To reproduce, download the VM from here and run in VirtualBox on a Linux host. I suspect that this is an issue of poor OpenGl support in VirtualBox, but, as iced is to be used for more than just video games, this is the sort of thing that should still work without good OpenGl (or DirectX, etc.) support.

I just tried on Windows 10 on real hardware with Intel HD Graphics 3000. It
fails exactly how it did in the video of the VM. This graphics adapter only
supports Opengl 2.x, so what I said about lackluster graphics support still
applies.
On Mon, May 18, 2020, 7:01 PM Héctor Ramón<EMAIL_ADDRESS>wrote:

@john01dav https://github.com/john01dav Do the examples in master work
for you? We have recently updated wgpu and removed OpenGL and DX11 as
backend choices, so we may get an actual error.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/hecrj/iced/issues/346#issuecomment-630496468, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AA6MJIIOEVFWZAYFHB3HCY3RSHD5RANCNFSM4NDM2R6A
.

@john01dav OpenGL is currently not supported, as mentioned in both the main readme, iced_wgpu's readme, #257, #194, #182, #174, and #72.
I am closing this issue, as the original problem seems to have been resolved.


batch processing cupyx.scipy.interpolate.cubicspline

Description
Dear cupy developing team,
I have some trouble using the cubic spline feature which is mentioned in the documentation. It seems when I install the cupy library the cubic spline part is not included. I tried to copy the version on github:https://github.com/cupy/cupy/blob/main/cupyx/scipy/interpolate/_cubic.py#L512 to my local python folder then import the library. It can run for 1D (x,y) array for me. But when I try to run it for a 2D y matrix with axis = 1, the function takes super long time to run. For example:
x = cp.arange(2048)
y = cp.random.rand(8192,2048)
interp = CubicSpline(x,y,axis=1)
It will take about one minute for this code to run. When I was using pchip interpolation provided by cupy, it only takes less than 2 seconds to complete. I took a deeper look and it seems like the cupyx.scipy.sparse.linalg.spsolve function that solve the linear system Ax = b is taking most of the time to complete. It seems like its basically iterating over the 8192 1D y-array of size 2048 and solve for the spline coefficients one by one. For my application, I have to use the cubic spline for interpolation. Is there any suggestion that I can improve the performance?
Additional Information
No response

I could reproduce this behavior locally. Is this inevitable for the current implementation? Any suggestion for improvement, @ev-br?

The current spsolve implementation uses a python loop over the 2nd axis of the r.h.s.: https://github.com/cupy/cupy/blob/main/cupyx/scipy/sparse/linalg/_solve.py#L518
Possible ways to improve:

push the loop to the C/Cython level.
in make_interp_spline, use SuperLU instead of csrlsvqr. Not sure if that would mean a scipy dependency and/or device-host data transfers?
in make_interp_spline, use the _qr_solve kernel from make_lsq_spline instead of spsolve. The kernel is sequential on GPU ATM, and is not as well crafted/tested as csrlsvqr (obviously).

THis is basically what the _qr_solve (the third option above) does under the hood: https://github.com/cupy/cupy/blob/main/cupyx/scipy/interpolate/_bspline2.py#L688

Why closing as completed? make_interp_spline is still using a python loop, only make_lsq_spline invokes _qr_solve ATM

I update my local version of cubicspline to call make_lsq_spline instead of make_interp_spline. The performance is way better than before and the result looks quite satisfying. Although the processing time is still not comparable to Matlab version of cubicspline, it is good enough for me ATM. I can reopen it. Sorry for the confusion


Spyder 3.1.4 blacks out progress bar

The progress is blacked out. For example:

Is this a feature?
Charles
Versions and main components

Spyder Version: 3.1.4
Python Version: 3.6
Qt Version: na
PyQt Version: na
Operating system: Windows 10

I don't understand this, please be more specific. How is this supposed to run?

And what code are you trying to run?

I am using a machine learning package called h2o.  The code is:
import h2o
h2o.init()

data = h2o.load_dataset("C:\Temp\h2o\iris_wheader.csv")
print(data.head())
y = "class"
x = data.names
x.remove(y)
train, test = data.split_frame([0.8])

m = h2o.estimators.deeplearning.H2ODeepLearningEstimator()
m.train(x, y, train)
p = m.predict(test)
print(p)

I suspect that h2o uses a special highlighting character when they print the progress text, and therefore Spyder is innocent.  Sorry for the confusion.

Yeah, probably that progress bar is only meant to be run in a terminal (bash or cmd.exe) and our IPython console is not a terminal.
So I doubt I can do something about this, sorry.

Closing because I don't think we can do something about this one.


Error after switching branches: TypeError: Cannot read property 'dependencies' of null at walkDependencyBlock

I added some new files in my branch, committed them then switched back to master (my branch has yet to be merged) and this error occurred:
Unhandled rejection TypeError: Cannot read property 'dependencies' of null
    at walkDependencyBlock (/my/project/node_modules/hard-source-webpack-plugin/index.js:233:16)
    at /my/project/node_modules/hard-source-webpack-plugin/index.js:250:11
    at Array.forEach (native)
    at /my/project/node_modules/hard-source-webpack-plugin/index.js:242:34
    at tryCatcher (/my/project/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/my/project/node_modules/bluebird/js/release/promise.js:504:31)
    at Promise._settlePromise (/my/project/node_modules/bluebird/js/release/promise.js:561:18)
    at Promise._settlePromise0 (/my/project/node_modules/bluebird/js/release/promise.js:606:10)
    at Promise._settlePromises (/my/project/node_modules/bluebird/js/release/promise.js:681:18)
    at Async._drainQueue (/my/project/node_modules/bluebird/js/release/async.js:138:16)
    at Async._drainQueues (/my/project/node_modules/bluebird/js/release/async.js:148:10)
    at Immediate.Async.drainQueues [as _onImmediate] (/my/project/node_modules/bluebird/js/release/async.js:17:14)
    at tryOnImmediate (timers.js:543:15)
    at processImmediate [as _immediateCallback] (timers.js:523:5)

Sorry this is on 0.0.22, so it might already be fixed...

Yeah I believe this problem is fixed in 0.0.23.
On Wednesday, 31 August 2016, Peter Beshai<EMAIL_ADDRESS>wrote:

Sorry this is on 0.0.22, so it might already be fixed...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mzgoddard/hard-source-webpack-plugin/issues/14#issuecomment-243771328,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAjS5Z-zU7HJoJN7cxGdZxW3j44vaVS5ks5qlYd_gaJpZM4Jxowv
.


Adding styles to the BMI Calculator page

Is your feature request related to a problem? Please describe.
No its not a problem. I tried enhancing the look of the BMI Calculator page.
Describe the solution you'd like
I would like to add styles to the "BMI Calculator" page.
Additional context
@Vishal-raj-1  @urvashi-code1255
Greetings! I am a participant in GSSOC'21 and I request you to assign me the task of adding styles to the "BMI Calculator" page.
This is how I have imagined the design:

Before:

After

is this issue still open?

@SilverGraph Wait for a while someone is working on it As soon as it frees I'll let you know.
By the way Cool UI. Do not worry we will merge that.
Ping me after 2 Days

@991rajat Greetings! You asked me to remind you about this issue.

@SilverGraph You can work on that issue

I have pushed the changes successfully.


Pinging a mattermost instance behind Google IAP (or other authentication layer)

Summary
When a mattermost instance is located behind Google's Identity-aware proxy the 'ping' endpoint gets redirected to a Google login page.
Expected: User sees a popup / open browser window to Google authenticate and enable transparent communication through the proxy
Actual: Ping fails, mattermost mobile claims the server is unconnectable
Environment Information

Device Name: Google Pixel 3 XL
OS Version: Android 10
Mattermost App Version: Beta - 1.24.0
Mattermost Server Version: N/A

Steps to reproduce
Our mattermost is behind IAP, a random example of an IAP URL is: https://zzz.qa.g.nakhoda.ai/
When you go to zzz.qa.g.nakhoda.ai you're redirected to a login page on accounts.google.com - once authenticated with a permitted google account you're returned to https://zzz.qa.g.nakhoda.ai/ with no indications a proxy is in place
Expected behavior
The mobile app says "cannot connect to the server. Please check your server URL and internet connection"
Possible fixes
In the core library where the ping is happening, handle a redirect and show it to the user in case it's for authentication, then follow login redirects and resume looking for the ping response

from client side, IAP is quite similar to captive portals many free WiFi hotspots use: upon request redirect occurs, where user must do some actions on a page before redirected to originally requested URL.
Difference is that captive portals registry MAC address, so it is possible to "complete" them using another app (like browser), but for  IAP there must be shared cookie storage between app and IAP login window. It is unlikely that MM app can share cookies with installed browser, so login page should be displayed in-app.

Stumbled across this using Azure AD Application Proxy, just wanted to share for awareness if anyone else tries to implement it on their Azure AD.

Closing some older issues. Please re-open this if the issue still reproduces on the latest version (v2.10),


Versioned directory is listing master

Example<EMAIL_ADDRESS>doesn't include strings despite it being in v0.38.0:
https://github.com/denoland/deno/tree/v0.38.0/std/strings
<EMAIL_ADDRESS>

Fixed by #408


[ENH] Allow unrecognized pipeline names and versions in processing status file

Closes #382

Changes proposed in this pull request:

Checks of pipeline names and versions updated so that:

If no available pipeline names are recognized, error out, otherwise emit a warning and continue
For each recognized pipeline, emit a warning if >=1 versions are unrecognized and continue

If no versions of any recognized pipelines are themselves recognized, error out

For reviewer: Sourcery is super verbose on this PR because it seemingly reviewed it twice (I accidentally marked the PR  ready for review before I was ready, and then once I converted to draft and then back to ready for review, the old comments stuck around even though several were no longer applicable). Not sure how to make Sourcery delete old reviews.

Checklist
This section is for the PR reviewer

[ ] PR has an interpretable title with a prefix ([ENH], [FIX], [REF], [TST], [CI], [MNT], [INF], [MODEL], [DOC]) (see our Contributing Guidelines for more info)
[ ] PR has a label for the release changelog or skip-release (to be applied by maintainers only)
[ ] PR links to GitHub issue with mention Closes #XXXX
[ ] Tests pass
[ ] Checks pass

For new features:

[ ] Tests have been added

For bug fixes:

[ ] There is at least one test that would fail under the original bug conditions.

Summary by Sourcery
Enhance the processing status file handling by allowing unrecognized pipeline names and versions, emitting warnings instead of errors when some are unrecognized, and ensuring at least one recognized pipeline-version combination is present. Update tests to cover these scenarios.
Enhancements:

Update pipeline name and version checks to allow unrecognized entries, emitting warnings instead of errors when some are unrecognized.

Tests:

Add tests to ensure unrecognized pipelines and versions are excluded from output with warnings, and that errors are raised when no recognized pipeline-version combinations exist.

@sourcery-ai review

Hey @surchs, you're totally right, sorry about that! You should be able to see the changes now.


HDDS-4038. Eliminate GitHub check warnings

What changes were proposed in this pull request?
Use @v2 instead of @master for GitHub Actions to eliminate the warnings:

The "master" branch is no longer the default branch name for actions/checkout
The "master" branch is no longer the default branch name for actions/upload-artifact

https://issues.apache.org/jira/browse/HDDS-4038
How was this patch tested?
No "annotations" in
https://github.com/adoroszlai/hadoop-ozone/actions/runs/184737522
compare to current master:
https://github.com/apache/hadoop-ozone/actions/runs/185025914

Thanks @elek for reviewing and committing it.


spetlr-test job submit - KeyError 'instance_pools'

When using spetlr-test job submit - I encounter this error:
Run spetlr-test-job submit `
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.17/x64/bin/spetlr-test-job", line 8, in <module>
    sys.exit(main())
  File "/opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/site-packages/spetlrtools/test_job/main.py", line 19, in main
    args.func(args)
  File "/opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/site-packages/spetlrtools/test_job/submit.py", line [16](https://github.com/spetlr-org/spetlr/actions/runs/5419960817/jobs/9853587779?pr=18#step:9:17)6, in submit_main
    submit(
  File "/opt/hostedtoolcache/Python/3.8.[17](https://github.com/spetlr-org/spetlr/actions/runs/5419960817/jobs/9853587779?pr=18#step:9:18)/x64/lib/python3.8/site-packages/spetlrtools/test_job/submit.py", line 298, in submit
    pools = PoolBoy()
  File "/opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/site-packages/spetlrtools/test_job/submit.py", line [24](https://github.com/spetlr-org/spetlr/actions/runs/5419960817/jobs/9853587779?pr=18#step:9:25)8, in __init__
    self._lookup = self.get_instance_pools()
  File "/opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/site-packages/spetlrtools/test_job/submit.py", line [26](https://github.com/spetlr-org/spetlr/actions/runs/5419960817/jobs/9853587779?pr=18#step:9:27)3, in get_instance_pools
    for pool in pool_data["instance_pools"]
KeyError: 'instance_pools'
Error: Process completed with exit code 1.

#41


add Linux suport?

Could this project have a Linux build?

See https://github.com/dfint/df-steam-hook-rs. But it is in work-in-progress state a the time.

Is it not possible to build c++ on Linux?

No, it depends on detours library, which is windows-only.

thanks for answer!


Menu: can't click devtools Continue button anymore

The Continue button is now unclickable:

How do we actually set that the titlebar is the draggable window element?

It's css  -webkit-app-region: drag

https://github.com/electron/electron/issues/1354#issuecomment-404348957
Not sure how nice this would work...

I won't try to reimplement the drag behavior ourselves so this is on electron/chromium to fix. fyi @deepak1556


Feature - IJ-190 Export Wellbeing Assessments

I've created a new concern called 'Exportable' that can be used to covert any index of information into a CSV/JSON file so long as the model for the resource being exported implements the needed functions, currently this export is only being applied to the wellbeing assessment indexes in the team members scope.
Worth noting that I've also integrated this concern with the functionality from the Pagination concern meaning if the team members wants to manipulate the index with a search query and export the result of this they can! This also means we can update the search controls for the wellbeing assessments index to allow team members to filter based on date range, sex, tags etc. and have the results of that filtering reflected in the files exported from the system so team members can generate datasets like 'WBA of Women named Joanne in the Last Month' and so on. It also means that the additional controls we have for 'Viewed/Not Viewed' and 'Emoji' in the Journal Entries index will be preserve if we end up implementing the exports there too.
The addition of these additional search controls were not in the scope of this ticket however so if we want them we should create a new ticket.

@phil-6 can you let me know if we want the search controls for the wellbeing assessments indexes I outlined in the PR description? If so I can create a ticket and work on integrating them 👍

I think we can leave the search controls for now. I suspect that that might come in useful when we have a more mature analytics brief.
My reasoning are that at the moment, they can export all and filter themselves when post-processing the data, in the future, when they're looking at a particular data set in-app, then they might want to export it for further analysis.

@phil-6 that's an interesting point, as a part of the current exports all I include on the user is their ID and full name so if you wanted to cross-reference for their sex, ethnicity or any tags then the only way to do that is manually checking person by person in the system which isn't very efficient.
Should I add an export function to the users index too so you could cross-reference those 2 outputs? The concern is setup in such a way that this should be pretty simple and it seems like a better solution that bloating the WBA export by including all that additional user info in that export 🤔

My view is that we should include the user data in this export.
It is more intensive on the app at the point of export, but without it I feel as though the data is incomplete and for this style of export I think its a lot more useful to have all the data in one place.

@phil-6 I've added in the additional fields, I've not put date of birth or release date as though seem like unique categories you can't really group people by (though I suppose you could do some age grouping if you know their date of birth 🤔 ).
Let me know if you think this is now sufficient or needs more info added to the export 👍

I think DoB and Release Date were some of the metrics which Gemma was interested in as it allows her to create "cohorts" based on these.

@phil-6 these have also been added to the export 👍


Update 1.20

hey bro,
you plan to update to 1.20.1 at some point?

i was going to today, but i see you've made your own fork, could you submit a pull request :)

is there any available compiled version for 1.20.1?

there is now!


[Bugfix] Scale mouse event locs by ratio of dpiScale * framebuffer/windowSize

Motivation and Context
On HiDPI displays like Macbook retina displays, the frame buffer dimensions can be 2x the window size.  This will result in a mouse event position (i.e. click) appearing to have occurred halfway toward the screen-space origin from where the user intended, unless corrected.
This PR fixes this issue, by scaling the mouse event position by the ratio of frameBuffer to Window size, multiplied by dpiScaling.

How Has This Been Tested

Types of changes
It's viewer! It always works! (Tested locally, including on macbook retina display)

[ ] Docs change / refactoring / dependency upgrade
[x] 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 change)

Checklist

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have completed my CLA (see CONTRIBUTING)
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

It WORKS!


TravisCI: build systemboot with u-root

WIP
Build systemboot using the u-root ramfs builder in Travis-CI

Codecov Report

Merging #64 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #64   +/-   ##
=======================================
  Coverage   45.01%   45.01%
=======================================
  Files          13       13
  Lines         562      562
=======================================
  Hits          253      253
  Misses        271      271
  Partials       38       38

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 bf59668...6606c22. Read the comment docs.


Providing callback function to handle different distance formula

Thanks for providing the library.
The distance formula in https://github.com/bdelespierre/php-kmeans/blob/86957271f90925433c501c6940aea57c7c4c7fe7/src/KMeans/Point.php#L50 is euclidean formula.
It does not work properly when GPS lattitude and longitude are involved.
Would you provide generic callback function if library user wants to use different distance formula?
Regards.

Sure thing @Ninja-007

In the meantime you can provide your own implementation by subtyping the Point class as follow:
<?php

require "vendor/autoload.php";

// prepare 50 points of 2D space to be clustered
$points = [
    [80,55],[86,59],[19,85],[41,47],[57,58],
    [76,22],[94,60],[13,93],[90,48],[52,54],
    [62,46],[88,44],[85,24],[63,14],[51,40],
    [75,31],[86,62],[81,95],[47,22],[43,95],
    [71,19],[17,65],[69,21],[59,60],[59,12],
    [15,22],[49,93],[56,35],[18,20],[39,59],
    [50,15],[81,36],[67,62],[32,15],[75,65],
    [10,47],[75,18],[13,45],[30,62],[95,79],
    [64,11],[92,14],[94,49],[39,13],[60,68],
    [62,10],[74,44],[37,42],[97,60],[47,73],
];

class MyPoint extends KMeans\Point
{
    public function getDistanceWith(KMeans\Point $point, bool $precise = true): float
    {
        // your impmentation goes here
        parent::getDistanceWith($point, $precise);
    }
}

class MySpace extends KMeans\Space
{
    public function newPoint(array $coordinates): KMeans\Point
    {
        if (count($coordinates) != $this->dimention) {
            throw new \LogicException("(" . implode(',', $coordinates) . ") is not a point of this space");
        }

        return new MyPoint($this, $coordinates);
    }
}

// create a 2-dimentions space
$space = new KMeans\Space(2);

// add points to space
foreach ($points as $i => $coordinates) {
    $space->addPoint($coordinates);
}

// cluster these 50 points in 3 clusters
$clusters = $space->solve(3);

// display the cluster centers and attached points
foreach ($clusters as $num => $cluster) {
    $coordinates = $cluster->getCoordinates();
    printf(
        "Cluster %s [%d,%d]: %d points\n",
        $num,
        $coordinates[0],
        $coordinates[1],
        count($cluster)
    );
}

@Ninja-007 I made a PR #13 to implement your feature, can you review it?

@bdelespierre Thanks for your efforts.
Actually I used the clustering with euclidean fomula. Your approach seems good, unfortunately I cannot use it due to performance reasons. But it will be helpful for other people.
I am doing clustering of about 50K locations. Each cluster should have about 20 or less locations. Unfortunately it takes about 1 hour to finish the algorithm. My initial guess says that repeated distance calculation makes it slow, if I add the correct distance formula based on LatLong it will be slower.
If you also think so then adding distance matrix will be help to optimize it. Here is similar example in DBScan.
https://github.com/bhavikm/DBSCAN-clustering/blob/master/index.php
The matrix calculation can be done when user calls solve.

Thanks for your feedback. I really appreciate it.
Feel free to open another issue for the performance issue :+1:  I'll always do my best to improve this library :smiley:

@bdelespierre
You are welcome.
https://github.com/bdelespierre/php-kmeans/issues/14


Jlist misbehavior when using unicode land/lor symbols ∧ and ∨

The last land symbol should be part of the nested conjunction list, but it is not:
op ≜
  ∧ A
  ∧ ∧ B
    ∧ C

instead, it will only be part of the jlist if it is like this:
op ≜
  ∧ A
  ∧ ∧ B
      ∧ C

This only occurs when the nested jlist starts on the same line as the outer jlist, so this works fine:
op ≜
  ∧ A
  ∧
    ∧ B
    ∧ C

The behavior is identical with disjunction lists.
The behavior also occurs if there are prior unicode symbols on the line, like:
op ≜ ∧ A
     ∧ B

Probable cause: https://github.com/tree-sitter/tree-sitter/issues/1405
Also noticed some weird misbehavior of directly comparing L'∧' with lexer->lookahead; might need to use L'\u2227' instead.


how can I modify the file when I change the Config？

I found that there is not method such as ConfigFactory.writeFile ？how can I modify the .conf file after I use the withValue to get the new Config？

The library has limited support for that since it's made for hand-writtten config files.
There is a class ConfigDocument which has some limited API for changing the syntax tree.
There is also a render() method on config objects but it will not preserve formatting.
There is an open issue about adding more capability to ConfigDocument which is where enhancements to support writing files should go.
Another option is to keep a separate JSON file with machine edits rather than changing the .conf file.


Added visual studio code files to .gitignore

Let git ignore the local artifacts created by visual studio code.
Reference: https://www.gitignore.io/api/visualstudiocode

Thank you for your pull request. Before we can look at your contribution, we need to ensure all contributors are covered by a Contributor License Agreement.
After the following items are addressed, please respond with a new comment here, and the automated system will re-verify.

User @veblush isn't covered by a CLA. They will need to complete the form at https://identity.linuxfoundation.org/projects/cncf

Regards,
CLA GitHub bot


Update JenkinsFile to PLATFORM

Update JenkinsFile to PLATFORM to match AdoptOpenJDK values
Signed-off-by: lanxia<EMAIL_ADDRESS>

Related to: https://github.com/AdoptOpenJDK/openjdk-tests/pull/1521

Grinder: Grinder_Sandbox/56/
00:02:59.409  To rebuild the failed test in a jenkins job, copy the following link and fill out the <Jenkins URL> and <FAILED test target>:
00:02:59.409  <Jenkins URL>/parambuild/?JDK_VERSION=11&JDK_IMPL=openj9&BUILD_LIST=openjdk&PLATFORM=x86-64_linux&CUSTOM_TARGET=java/lang/Class/GetModuleTest.java&TARGET=<FAILED test target>
00:02:59.409
00:02:59.409  For example, to rebuild the failed tests in <Jenkins URL>=https://ci.adoptopenjdk.net/job/Grinder, use the following links:
00:02:59.409  https://ci.adoptopenjdk.net/job/Grinder/parambuild/?JDK_VERSION=11&JDK_IMPL=openj9&BUILD_LIST=openjdk&PLATFORM=x86-64_linux&CUSTOM_TARGET=java/lang/Class/GetModuleTest.java&TARGET=jdk_custom_0
00:02:59.409  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


at_clifford_yosys: replace ternary "-D" with patch, ncurses: cp with "-f" to deal with unsandboxed cases

at_clifford_yosys: replace ternary "-D" with patch (fix #73):
There seems to be a regression (or behavior change) with Bazel 4.2.2 in string escaping or copts sanitization.

ncurses: cp with "-f" to deal with unsandboxed cases:
Fixes: "cp: cannot create regular file './make_hash': File exists"

This issue only happens when Bazel runs with unsandboxed strategies
like "local" or "standalone".

On some platforms (e.g. macOS), debug symbols of compiled binaries
are stored in separate file(s). Bazel fails to preserve those files
in sandboxed mode (default). In other cases, we may wish to inspect
the intermediate files generated during an action. As such, it is
often necessary to run Bazel with unsandboxed strategies.

LGTM! Thanks for the change as always @jesec


Failing to build on Alpine Linux 3.8

Using python2 on Alpine linux
as a user (non-root)
Reproducing code example:
pip install numpy
pip install scipy

Error message:
Installing collected packages: scipy, scikit-learn, sklearn, beurre, w
  Running setup.py install for scipy: started
    Running setup.py install for scipy: still running...
    Running setup.py install for scipy: still running...
    Running setup.py install for scipy: finished with status 'error'
    Complete output from command /usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-E_AGhj/scipy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-YdFjWn/install-record.txt --single-version-externally-managed --compile --user --prefix=:

    Note: if you need reliable uninstall behavior, then install
    with pip instead of using `setup.py install`:

      - `pip install .`       (from a git repo or downloaded source
                               release)
      - `pip install scipy`   (last SciPy release on PyPI)

    lapack_opt_info:
    lapack_mkl_info:
    customize UnixCCompiler
      libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']
      NOT AVAILABLE

    openblas_lapack_info:
    customize UnixCCompiler
    customize UnixCCompiler
    customize UnixCCompiler
    C compiler: gcc -DNDEBUG -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -Os -fomit-frame-pointer -Os -fomit-frame-pointer -fPIC

    creating /tmp/tmpVN2XOG/tmp
    creating /tmp/tmpVN2XOG/tmp/tmpVN2XOG
    compile options: '-c'
    gcc: /tmp/tmpVN2XOG/source.c
    gcc /tmp/tmpVN2XOG/tmp/tmpVN2XOG/source.o -L/usr/lib -lopenblas -o /tmp/tmpVN2XOG/a.out
    customize UnixCCompiler
      FOUND:
        libraries = ['openblas', 'openblas']
        library_dirs = ['/usr/lib']
        language = c
        define_macros = [('HAVE_CBLAS', None)]

      FOUND:
        libraries = ['openblas', 'openblas']
        library_dirs = ['/usr/lib']
        language = c
        define_macros = [('HAVE_CBLAS', None)]

    Running from scipy source directory.
    Splitting linalg.interpolative Fortran source files
    /home/builder/.local/lib/python2.7/site-packages/numpy/distutils/system_info.py:716: UserWarning: Specified path /home/builder/.local/include/python2.7 is invalid.
      return self.get_paths(self.section, key)
    blas_opt_info:
    blas_mkl_info:
    customize UnixCCompiler
      libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']
      NOT AVAILABLE

    blis_info:
    customize UnixCCompiler
      libraries blis not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']
      NOT AVAILABLE

    openblas_info:
    customize UnixCCompiler
    customize UnixCCompiler
    customize UnixCCompiler
      FOUND:
        libraries = ['openblas', 'openblas']
        library_dirs = ['/usr/lib']
        language = c
        define_macros = [('HAVE_CBLAS', None)]

      FOUND:
        libraries = ['openblas', 'openblas']
        library_dirs = ['/usr/lib']
        language = c
        define_macros = [('HAVE_CBLAS', None)]

    non-existing path in 'scipy/signal/windows': 'tests'
    non-existing path in 'scipy/sparse': 'sparsetools/sparsetools_impl.h'
    non-existing path in 'scipy/sparse': 'sparsetools/bsr_impl.h'
    non-existing path in 'scipy/sparse': 'sparsetools/csc_impl.h'
    non-existing path in 'scipy/sparse': 'sparsetools/csr_impl.h'
    non-existing path in 'scipy/sparse': 'sparsetools/other_impl.h'
    [makenpz] scipy/special/tests/data/boost.npz not rebuilt
    [makenpz] scipy/special/tests/data/gsl.npz not rebuilt
    [makenpz] scipy/special/tests/data/local.npz not rebuilt
    running install
    running build
    running config_cc
    unifing config_cc, config, build_clib, build_ext, build commands --compiler options
    running config_fc
    unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
    running build_src
    build_src
    building py_modules sources
    creating build
    creating build/src.linux-x86_64-2.7
    creating build/src.linux-x86_64-2.7/scipy
    building library "dfftpack" sources
    building library "fftpack" sources
    building library "mach" sources
    building library "quadpack" sources
    building library "lsoda" sources
    building library "vode" sources
    building library "dop" sources
    building library "fitpack" sources
    building library "fwrappers" sources
    building library "odrpack" sources
    building library "minpack" sources
    building library "rootfind" sources
    building library "superlu_src" sources
    building library "arpack_scipy" sources
    building library "sc_c_misc" sources
    building library "sc_cephes" sources
    building library "sc_mach" sources
    building library "sc_amos" sources
    building library "sc_cdf" sources
    building library "sc_specfun" sources
    building library "statlib" sources
    building extension "scipy.cluster._vq" sources
    building extension "scipy.cluster._hierarchy" sources
    building extension "scipy.cluster._optimal_leaf_ordering" sources
    building extension "scipy.fftpack._fftpack" sources
    creating build/src.linux-x86_64-2.7/scipy/fftpack
    creating build/src.linux-x86_64-2.7/scipy/fftpack/src
    conv_template:> build/src.linux-x86_64-2.7/scipy/fftpack/src/dct.c
    conv_template:> build/src.linux-x86_64-2.7/scipy/fftpack/src/dst.c
    f2py options: []
    f2py: scipy/fftpack/fftpack.pyf
    Reading fortran codes...
    	Reading file 'scipy/fftpack/fftpack.pyf' (format:free)
    Post-processing...

# ...
    /usr/bin/gfortran -Wall -g -Wl,--as-needed build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.o build/temp.linux-x86_64-2.7/scipy/fftpack/src/zfft.o build/temp.linux-x86_64-2.7/scipy/fftpack/src/drfft.o build/temp.linux-x86_64-2.7/scipy/fftpack/src/zrfft.o build/temp.linux-x86_64-2.7/scipy/fftpack/src/zfftnd.o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/src/dct.o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/src/dst.o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/fortranobject.o -L/usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../lib -L/usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../lib -L/usr/lib -Lbuild/temp.linux-x86_64-2.7 -ldfftpack -lfftpack -lpython2.7 -lgfortran -o build/lib.linux-x86_64-2.7/scipy/fftpack/_fftpack.so -Wl,--version-script=build/temp.linux-x86_64-2.7/link-version-scipy.fftpack._fftpack.map
    /usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../lib/Scrt1.o: In function `_start_c':
    /home/buildozer/aports/main/musl/src/musl-1.1.19/crt/crt1.c:17: undefined reference to `main'
    collect2: error: ld returned 1 exit status
    /usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../lib/Scrt1.o: In function `_start_c':
    /home/buildozer/aports/main/musl/src/musl-1.1.19/crt/crt1.c:17: undefined reference to `main'
    collect2: error: ld returned 1 exit status
    error: Command "/usr/bin/gfortran -Wall -g -Wl,--as-needed build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/_fftpackmodule.o build/temp.linux-x86_64-2.7/scipy/fftpack/src/zfft.o build/temp.linux-x86_64-2.7/scipy/fftpack/src/drfft.o build/temp.linux-x86_64-2.7/scipy/fftpack/src/zrfft.o build/temp.linux-x86_64-2.7/scipy/fftpack/src/zfftnd.o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/src/dct.o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/src/dst.o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/fftpack/fortranobject.o -L/usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../lib -L/usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../lib -L/usr/lib -Lbuild/temp.linux-x86_64-2.7 -ldfftpack -lfftpack -lpython2.7 -lgfortran -o build/lib.linux-x86_64-2.7/scipy/fftpack/_fftpack.so -Wl,--version-script=build/temp.linux-x86_64-2.7/link-version-scipy.fftpack._fftpack.map" failed with exit status 1

Scipy/Numpy/Python version information:
Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-E_AGhj/scipy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-YdFjWn/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-E_AGhj/scipy/

can you install previous wheels via pip install ....whl ?

How do I do that? the command you gave doesn't work.

You can download the wheel file of your choice from https://github.com/scipy/scipy/releases and then install them specifically pip3 install <file name>.whl or if it is python 2 pip install <file name>.whl

Do we provide wheels for Alpine linux?

I don't know and I don't know which Linux flavor this is.
I just wanted to know whether it actually installs SciPy but fails to find the correct wheel or wheels don't work at all.

@zacksiri mentioned he was on Alpine Linux at the top of the first post, I think.   I'm pretty sure we don't have wheels for Alpine Linux.

Yes, we don't have a wheel specifically for Alpine Linux but does that mean automatically all wheels would fail?

None of our wheels are correctly compiled for Alpine Linux, even the Manylinux ones, because Alpine linux uses a different libc : - e.g. https://github.com/skvark/opencv-python/issues/75#issuecomment-388571221

The question is if Alpine is manylinux compatible. If not, there are no wheels for  it. Since its not glibc based I guess its not compatible.
Its then just a matter of solving the compile error, which may be due to eg invalid LDFLAGS env var etc, I guess Alpine users can deal with that.
On October 3, 2018 9:41:15 AM UTC, Ilhan Polat<EMAIL_ADDRESS>wrote:

Yes, we don't have a wheel specifically for Alpine Linux but does that
mean automatically all wheels would fail?

The question is if Alpine is manylinux compatible.

Ah yes, I always forget that phrase. Sorry for the noise.

I made this work for my alpine docker image with:
apk add --no-cache cmake gcc libxml2 automake g++ subversion python3-dev libxml2-dev libxslt-dev lapack-dev gfortran

then it made scipy with pip install scipy
Note that I'm using python3.7 here instead of python2 and I also installed a few more packages with pip so there may be some you don't need. So YMMV.

FYI: We tried using the python:2.7.15-alpine docker base image. (Alpine provides a smaller base image, although if you end up installing lots of packages, you could end up using more space due to replicating stuff that's in common base image layers.)
Anyway, our simulation math came out different, I guess due to musl vs. GNU libc, so we switched to the python:2.7.16 base image.

not a SciPy bug, closing

Hi @vallard which version of python/alpine you used to build the image?


ScenegraphLayer: Add more unit tests, sort animations order

Coverage increased (+0.3%) to 64.021% when pulling 5b9640d5cd78c3fbe9908f9e33339042bd302749 on tests4scenegraph-layer2 into 7c29b9e589388bfdc584e9b97aed022a6b7d0e8c on master.


Master

@bobbalasrinu Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.


Unable to list collections in playground

I'm trying to list collections using the below code in playground. I see only the message Connected!!! in output.
import { createServer } from "node:http";
import process from "node:process";
import { MongoClient, Bson } from<EMAIL_ADDRESS>const url =
  "mongodb+srv://userName:password@book-an-appointment-clu.rajwa.mongodb.net/?authMechanism=SCRAM-SHA-1";
const client = new MongoClient();
const dbName = "appointments-db";
  let x=[];
const server = createServer(async (req, res) => {
  try {
    const db = await client.connect(url);

    const names = await db.listCollections().toArray();
    names.forEach((collection) =>
      x.push(collection.name)
    );
     res.end("Connected!!!"+ await x+" ");
  } catch (error) {
    res.end("An error occurred:", error);
    throw error;
  } finally {
     await client.close();
    console.log("Connection closed.");
  }
});

server.listen(8080);

also when I add const database=await client.db("dbName"), I get an error as TypeError [ERR_UNKNOWN_ENCODING]: Unknown encoding: TypeError: client.db is not a function
Its the same when I use url as const uri =   "mongodb+srv://userName:password@book-an-appointment-clu.rajwa.mongodb.net/?retryWrites=true&w=majority&appName=book-an-appointment-cluster";
Please lemme know where I'm going wrong.
Thanks,
Sunny

Please take a look at the readme. The API is different then how you are using it, connect doesn't return anything. And i would suggest you to use Deno.serve(() => new Response("Hello World")) instead of node:http


Should the Slim 3.x middleware signature use RequestInterface or ServerRequestInterface?

Currently, the Slim 3.x documentation states,

A middleware is a callable that accepts three arguments:

\Psr\Http\Message\RequestInterface - The request object
\Psr\Http\Message\ResponseInterface - The response object
callable - The next middleware callable

– http://www.slimframework.com/docs/concepts/middleware.html
However, in practice Slim only passes an instance of ServerRequestInterface through the stack. This extends RequestInterface, but by specifying only RequestInterface in the documentation, it requires middleware to make special accommodations if they want to maintain interoperability while taking advantage of request attributes.
(For example, I use ServerRequestInterface::withAttribute() in NegotiationMiddleware\Negotiator to store the negotiated media type in the request for inspection by future middlewares.)
Hence the question - should Slim 3.x use the more specific ServerRequestInterface or should it stick with RequestInterface?
Argument for RequestInterface:
Middleware maintains interoperability with any PSR-7 RequestInterface based middleware stack that doesn't require a full ServerRequestInterface object. I can't think of an example off the top of my head, but hypothetical applications may exist that use middleware but don't require server, cookie, get, post, or files management.
Argument for ServerRequestInterface:
However, this means middlewares that want to use methods from a ServerRequestInterface while maintaining interoperability with a simpler RequestInterface signature need to provide an adapter for use in those situations or roll with something janky like an instanceof check.
I just really don't know in what cases someone might create an application or framework that has a request / response oriented architecture that wouldn't use a full ServerRequestInterface request.
As far as Slim 3.x is concerned, it's fine to make this change, and it will make it easier for future middleware authors if they can write middleware assured that $request will implement ServerRequestInterface.

Slim Internals in the middleware department are here....
https://github.com/slimphp/Slim/blob/3.x/Slim/MiddlewareAwareTrait.php#L66
Where you will see:
$request is of ServerRequestInterface type
$response is of ResponseInterface type

The documentation should be updated to note that Slim will pass in a ServerRequestInterface. We don't enforce this though, so any given Middleware should be able to type hint to RequestInterface.

Yeah, the question really came up because I was writing middleware for a Slim 3.x application that I also wanted to be framework agnostic. Right now my middleware is compatible with Slim 3.x but would be incompatible with another theoretical framework adopting Slim's signature pattern without its practice of using the more robust interface. I'm not sure any such frameworks do or should exist, but I need to decide if I should continue using ServerRequestInterface in my type hint or refactor my code to accommodate just RequestInterface to maintain interoperability.

For a server side implementation you should be save to use ServerRequestInterface. The RequestInterface is meant for client implementation.

I would think you'll be safe with ServerRequestInterface as @JoeBengalen said. @weierophinney Thoughts?

Go for ServerRequestInterface - that's the one that server-side middleware should be using; without it, you lose important features like the parsed body parameters, cookies, query parameters, etc.

PR: https://github.com/slimphp/Slim-Website/pull/38


vs code during loading extensions causes high cpu load and becomes unresponsive

Product and Version [VS/VSCode]:
OS Version [macOS/Windows]:
IntelliCode Extension Version:
Target Platform or Language [e.g. Node.js]:
Steps to Reproduce / Scenario:

Resolved after reinstalling