Homogeneous container remapping code fails for some containers

Hi, @Naios !
Thanks for making continuable, it's a neat library!
I passed an absl::InlinedVector<T, N, A> to cti::when_all(), and to my surprise the continuables in it did not get connected to the hierarchy. Investigating further revealed that because of a substitution failure deep inside the container-remapping code, the code degraded from using the container logic to using the plain-value logic (for values "that aren't accepted by the mapper"). Specifically, it failed substitution for rebind_container(). If I understand correctly, it failed because the template type signature of absl::InlinedVector did not match the ones that rebind_container() tries to accept. I'm wondering whether it should somehow match against traits rather than template type parameter shape?

Commit Hash
Used continuable/4.2.0 and abseil/20210324.2 from conan, but I doubt it matters much.
Expected Behavior
Print "Connection timed out\n"
Actual Behavior
Print "hi\n" + trap on exceptional unhandled continuable (SIGILL).
If the code is changed to use std::vector instead, expected behavior is observed.
Steps to Reproduce
Example code:
#include <cstdio>
#include <absl/container/inlined_vector.h>
#include <continuable/continuable.hpp>

int main() {
  absl::InlinedVector<cti::continuable<>, 1> v;
  v.emplace_back(cti::make_exceptional_continuable<void>(std::errc::timed_out));

  cti::when_all(std::move(v))
    .then([]() { std::puts("hi"); })
    .fail([](std::error_condition e) { std::puts(e.message().c_str()); });
  return 0;
}

Your Environment

OS: Debian 10
Compiler and version: Clang 12
Standard library (if non default): (libstdc++-8.3, the default)

I went and discussed this issue with a colleague, and these are the points I'd like to argue :)

There's no robust general container-agnostic way of rebinding containers, even when trying to look beyond https://en.cppreference.com/w/cpp/named_req/Container + C::allocator_type-if-present. The current implementation basically makes the following two assumptions, if I understand it correctly:

The container is either of template-shape C<T> or C<T, A>.
The 1-or-2 template parameters directly dictate C::value_type and C::allocator_type (i.e. they don't just 'happen to be' equal, but they are always directly set from the template type parameters).

If you consider std::unordered_map as a counter-example (maybe you want to rebind std::unordered_map<int, cti::coninuable<int>> to std::unordered_map<int, int>; I know it's not within the current design to do that, I'm just using it to illustrate the point):

It has more template parameters, which would also need container-specific rebind logic, like Hash and Eq which are possibly not defaulted)
The template parameters are combined in a specific way to create value_type = std::pair<const K, V>.
The allocator needs to be rebound not for NewType, but for the new value_type.

Barring any container-provided rebinding machinery (a-la allocators), perhaps it's 'safer' to provide a per-type rebind logic and leave it as an extension point for users wanting to provide containers that don't fit the mold, while falling back to rebinding to e.g. an std::vector when none of these options pan out?

Having the SFINAE machinery match against a container and decide to rebind it, but then bail out to the propagate-plain-value case is quite dangerous (especially when it's for continuables returning void and you have no type-safety machinery in the .then() to save you). Perhaps it should cause a compiler error in these cases?

What do you think?

Hi @ibookstein ,
I'm glad that you like my library.
I fully agree with you reproduction as well as your second argumentation.

It probably would be better to provide a point for customizing the remappper e.g. through a trait.
You are right, routing objects though, which are not remapped by default, can lead to potentially dangerous results if the user does not take attention to the input. However, the API did never promise to remap any container that is passed as input. The documentation clearly describes that std::vector or similar is the ideal input:

Arbitrary arguments which are connected. Every type is allowed as arguments, continuables may be contained inside tuple like types (std::tuple) or in homogeneous containers such as std::vector. Non continuable arguments are preserved and passed to the final result as shown below:

Probably the best way to solve this is to provide a trait that performs the remapping. The trait could only be used if the potentially remapped type provides a begin() and end() method e.g. satisfies the concept of an iterable. Then we could guard the remapping with a hard static_assert in case no remapper is provided for the iterable.
Sadly I'm currently considering this of scope feature-wise. For most use-cases std::vector should be enough. I'm open for a PR that adds this feature but I won't add it by myself in the near future.


Pre-built binaries

Would it be possible to provide pre-built binaries for releases?
If there is some interest, I might be able to start creating a small Github Actions CI pipeline to get started. Actions is free for open source repos.

@bfloch a small update from my side:
With a lot of help from @LazyDodo, I created a Github Actions CI for the Cycles standalone repository:
https://github.com/grische/cycles/actions?query=workflow%3A"Build+Standalone+Cycles"
The workflow will generate static Cycles libraries for macOS, Linux and Windows. It currently depends on both https://developer.blender.org/D8788 and  https://developer.blender.org/D8769 to be merged, but I don't think there huge opposition from upstream regarding those.
Once all those patches are merged, I intend to create automatic releases so there are more stable artifacts.

Can I add a pretty please request for prebuilt linux bins too ?


vault: disable_mlock option

Motivation for this change
Implements a disable_mlock configuration option and sets capabilities based on whether it's set.
Motivated by official documentation: https://www.vaultproject.io/docs/configuration/#disable_mlock
Not sure if this is the best/right way to do this, but I'm still new to nix :sweat_smile:
Things done

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

[x] NixOS
[ ] macOS
[ ] other Linux distributions

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

Looks pretty good, but under what circumstance would we want to disable it? I guess I'm wondering why would we want to make it easy for users to do this?

https://www.vaultproject.io/docs/configuration/#disable_mlock

disable_mlock (bool: false) – Disables the server from executing the mlock syscall. mlock prevents memory from being swapped to disk. Disabling mlock is not recommended in production, but is fine for local development and testing.

Disabling mlock is not recommended unless the systems running Vault only use encrypted swap or do not use swap at all. Vault only supports memory locking on UNIX-like systems that support the mlock() syscall (Linux, FreeBSD, etc). Non UNIX-like systems (e.g. Windows, NaCL, Android) lack the primitives to keep a process's entire memory address space from spilling to disk and is therefore automatically disabled on unsupported platforms.

I would say skip the option until someone comes with good reason to have it.
(OT: It's funny that Android is listed as a non-Unix like system here.)

Valid. Was mostly doing this for completeness sake, but realistically unnecessary.


Multiple iteration of IT block to perform data creation

Hello Guys,
There is one implementation which I need to do on my current mocha framework but I am stuck.
Agenda:
Create multiple data present in excel and iterate functional flow IT block till the data is present in the excel.
below code statement is global declaration of an array
var exceldata = [];
below code signifies reading excel file
workbook.xlsx.readFile("TestData.xlsx").then(function () {

    var sheet = workbook.getWorksheet("ecuFamily");
    var row, column;
    for (row = 2; row <= sheet.rowCount; row++) {
        for (column = 1; column <= sheet.columnCount; column++) {
                exceldata.push(sheet.getCell(row, column).toString().trim());
        }
    }
    /**
     * Iterate the imported data stored in Array
     */
    //console.log(exceldata.length);
    for (var i = 0; i <= exceldata.length; i++) {
        console.log("Index is : " + i + " Value is :" + exceldata[i] + "type of"+ typeof exceldata[i]);
    };
});

Now i have to perform one functional flow for each and every data present in excel corresponding to column values
I was thinking to create a run time map and then iterate that map for particular It block.
But that sounds difficult to me. could you please guide me to achieve this.

I haven't really understood your "agenda".
You could try to create your data in an async before hook and then create your tests dynamically as shown here.

Thanks juergba for responding. so The link which you have mentioned  has one data set of key value pair.  which exactly I want to create but I want to generate that data set dynamically as per the values present in excel

@dixitgargi please note, this is an Mocha issue tracker, not a help forum.
Creating a dataset is a pure javascript task and has nothing to do with Mocha. As mentioned above use a before hook (sync or async, depending on your javascript implementation) and then create your tests dynamically.
Take step by step, create your tests with hardcoded datas first, then add your real dynamic dataset.


this is very important to me

hello man
threre is a very important question to me
i wan to know the nexmo'limit  when i send sms and call
1000/day ?  or other ?
can you tell me the limit
and  what will happens to me
when i reachethe limit

Here's the best place to find that answer. On rate limiting, the client library will handle that automatically, and back off as needed.


chore(package): update kronos-service-koa to version 4.0.7

Coverage remained the same at 4.268% when pulling e0ff717e3c6d99f7435fce286f1bf1efe60eff26 on greenkeeper/kronos-service-koa-4.0.7 into 681425321fa8c1f7237ca546d9269fd1f4f4fbe7 on master.


iOS - Request money - Green CTA button in BNP and confirmation page has different placement

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

**Version Number:**1.3.95-5
**Reproducible in staging?:**Y
**Reproducible in production?:**N
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
**Issue reported by:**Applause - Internal Team
Slack conversation:
Action Performed:

Launch New Expensify app.
Go to any chat > + > Request money.
Enter amount and click Next.

Expected Result:
The green button at the bottom should have a consistent placement in both BNP and confirmation page
Actual Result:
The green button at the bottom does not have a consistent placement in BNP and confirmation page
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[x] iOS: Native
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/71f32e30-62d4-48d7-a7cd-9008eb81a325
View all open jobs on GitHub

:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

Identify the pull request that introduced this issue and revert it.
Find someone who can quickly fix the issue.
Fix the issue yourself.

I'm not seeing problem here...those two button LOOK consistent to me. @shawnborton are you seeing anything here? @lanitochka17 can you state a little more clearly what is not consistent and perhaps show the difference in the way the button looks on staging vs production?

Posted this in Slack but might as well post it here as well: it looks like the numpad + button on the amount screen got shifted down somehow and is now too close to the bottom, which is then causing it to be in a different spot than the request button.
Screenshots for reference: Current is as of today, Previous (how it should be I believe) is from a few weeks ago (iPhone 14).

Very nice @ishpaul777! I see that the changes in that PR were tested for Android. Were they tested for iOS as well?

The changes got deployed to staging. I just tested it. All is good. I'm going to close this issue.


METRON-1501: Parser messages that fail to validate are dropped silently

Contributor Comments
Currently we have two concepts of dealing with messages that are not going to be passed through:

Messages that fail global validation
Messages that fail the parser's validation function
Messages that are filtered out
Currently
in the case of messages that fail global validation, we send them to the error queue.
in the case of messages that fail the parser's validation function, we drop them silently.
in the case of messages that are filtered out, we drop them silently as well.

Given the use-cases behind filtering (e.g. a kafka topic with multiple types of messages where we want to pass along only one type), it makes sense to drop them silently.  However, in the case of the messages that fail the parser's validation function, we should like to know that and treat those similarly to those messages that fail global validation.
In order to test this, create a grok parser without a timestamp configured (this will make it fail the grok parser's validation) and pass along a message.  Ensure that it makes it to the error queue rather than being dropped silently.
Pull Request Checklist
Thank you for submitting a contribution to Apache Metron.
Please refer to our Development Guidelines for the complete guide to follow for contributions.
Please refer also to our Build Verification Guidelines for complete smoke testing guides.
In order to streamline the review of the contribution we ask you follow these guidelines and ask you to double check the following:
For all changes:

[x] Is there a JIRA ticket associated with this PR? If not one needs to be created at Metron Jira.
[x] Does your PR title start with METRON-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
[x] Has your PR been rebased against the latest commit within the target branch (typically master)?

For code changes:

[x] Have you included steps to reproduce the behavior or problem that is being changed or addressed?

[x] Have you included steps or a guide to how the change may be verified and tested manually?

[x] Have you ensured that the full suite of tests and checks have been executed in the root metron folder via:
mvn -q clean integration-test install && dev-utilities/build-utils/verify_licenses.sh

[x] Have you written or updated unit tests and or integration tests to verify your changes?

[x] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

[x] Have you verified the basic functionality of the build by building and running locally with Vagrant full-dev environment or the equivalent?

For documentation related changes:

[x] Have you ensured that format looks appropriate for the output in which it is rendered by building and verifying the site-book? If not then run the following commands and the verify changes via site-book/target/site/index.html:
cd site-book
mvn site

Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.
It is also recommended that travis-ci is set up for your personal repository such that your branches are built there before submitting a pull request.

This seems like it should have some documentation to go with it

Yes, sorry, commit pending for that...

Alright, I think I addressed the issues @ottobackwards


Swipe to delete functionality

Hello! First of all, thank you so much for such a library. Great job.
I would like to know how I can achieve the functionality of a "swipe to delete", like this:

I apologise if this question has already been raised, but the search for the issues did not give a result.
I would be surprised if so far nobody has asked such a question :) Most likely I was not looking carefully.
I thought I could use onSwipeValueChange hook, and when swipe reach a certain position, I can redraw the hidden row, but in this case, performance suffers a lot and rendering does not happen smoothly.
I would be grateful for any the help!

It seems to work better with lodash debounce, but maybe you know a better way to achieve this?

Working pretty smoothly on my iOS simulator :) Not sure about an android device.
The basic idea is once the swipe value reaches the end of the screen (375 in this case) start an animation to reduce the height of the swiped row to 0. Once the animation finishes, do the actual deletion of the row:
Here's the relevant code I used:
constructor(props) {
    super(props);
    this.state = {
        listViewData: Array(20).fill('').map((_,i) => ({key: `${i}`, text: `item #${i}`})),
    };

    this.rowTranslateAnimatedValues = {};
    Array(20).fill('').forEach((_, i) => {
        this.rowTranslateAnimatedValues[`${i}`] = new Animated.Value(1);
    });
}

onSwipeValueChange = (swipeData) => {
    const { key, value } = swipeData;
    if (value < -375 && !this.animationIsRunning) {
        this.animationIsRunning = true;
        Animated.timing(this.rowTranslateAnimatedValues[key], { toValue: 0, duration: 200 }).start(() => {
            const newData = [...this.state.listViewData];
            const prevIndex = this.state.listViewData.findIndex(item => item.key === key);
            newData.splice(prevIndex, 1);
            this.setState({listViewData: newData});
            this.animationIsRunning = false;
        });
    }
}

render() {
    return (
        <SwipeListView
            useFlatList
            data={this.state.listViewData}
            renderItem={ (data, rowMap) => (
                <Animated.View style={[styles.rowFrontContainer,
                    {
                        height: this.rowTranslateAnimatedValues[data.item.key].interpolate({
                            inputRange: [0, 1],
                            outputRange: [0, 50],
                        })
                    }
                ]}>
                    <TouchableHighlight
                        onPress={ _ => console.log('You touched me') }
                        style={styles.rowFront}
                        underlayColor={'#AAA'}
                    >
                        <View>
                            <Text>I am {data.item.text} in a SwipeListView</Text>
                        </View>
                    </TouchableHighlight>
                </Animated.View>
            )}
            rightOpenValue={-375}
            onSwipeValueChange={this.onSwipeValueChange}
        />

Let me know if you have any questions, thanks!

Thank you for such a quick and useful answer!
My performance problems were due to the fact that I kept the value in the state. When I did as in your example above (more precisely, as in the example with the gmail effect) everything became much better, but not completely. Then I tried to run the application in the iPhone 6 simulator - it became even better. Before that, I ran on iPhoneX.
On a real device, everything works just great.
Your example work fine. But in my case:

I have some buttons on the left side. When swipe is fully open they become visible.
I need a way to cancel deletion while animation goes with tap on the row.
Can you advise something?

I almost forgot ... you can not hide such a useful example :). Maybe it should be added to the documentation?

@proof666 In response to your questions:

I'd guess you can fix this by adding something in your state like showLeftButtons. Then check the swipeValueChange callback and if the user is swiping to the left, call setState({showLeftButtons: false}) and hide the buttons. I don't think that should have a big performance hit

Hm I would back the entire hiddenRow touchable. If they touch it while the animation is running call Animated.timing(this.rowTranslateAnimatedValues[key]).stop(). I think this should prevent the delete code from running too

And then re: documentation.. you're right! I've been meaning to split up the README into multiple docs. Maybe I'll do that and add this example as a new doc. Good call

@proof666 Oh I forgot to mention, yeah the iPhoneX_ simulators are all a little weird with gestures.. the other simulators and devices don't have the same issues.. like you said

setState({showLeftButtons: false}) is ok.
Animated.timing(this.rowTranslateAnimatedValues[key]).stop() does not prevent from callback  in .start(). So i add check in .start() callback and if animation has been canceled then playback initial animation and don't delete item.

I think that if we have something like on[Left\Right]ActionActivated (called once when a certain position is reached) and onGestureReleased hooks this kind of tasks would be easier.
If I could, would give some more stars to your project because it mach more better than existing analogous.
Thank you again!

@proof666 Thanks for the kind words! I'd be happy to look at a PR if you want to take a shot at those improvements :)
I also revamped the docs and added in some useful guides, including swipe to delete. Please see here:
https://github.com/jemise111/react-native-swipe-list-view/blob/master/docs/swipe-to-delete.md
Closing this issue but please reopen if you have any other problems!

@jemise111 I tried your solution but it didn't work on my end. I got this error cannot read property 'stopTracking' of undefined, below is my code:
const screenWidth = Dimensions.get('window').width;

onSwipeValueChange = ({ key: id, value }) => {
    const { deleteNotification } = this.props;
    if (value < -screenWidth && !this.animationIsRunning) {
      this.animationIsRunning = true;
      Animated.timing(this.rowTranslateAnimatedValues[id], {
        toValue: 0,
        duration: 200
      }).start(() => {
        deleteNotification(id);
        this.animationIsRunning = false;
      });
    }
  };

render() {
    const { notifications } = this.props;

    return (
      <View style={styles.container}>
        <SwipeListView
          disableRightSwipe
          useFlatList
          data={notifications}
          renderItem={this.renderItem}
          renderHiddenItem={this.hiddenItem}
          rightOpenValue={-screenWidth}
          keyExtractor={this.keyExtractor}
          onSwipeValueChange={this.onSwipeValueChange}
        />
      </View>
    );
  }

Can anybody tell me the values for "styles.rowFrontContainer"?
I had to use overflow:hidden in order to get this work + fixed height values.
Is there any chance to get this running without a fixed height (eg. auto-height > to 0) and without overflow hidden? (cuts my shadow off)

@Hirbod, have you ever found a solution?

I did found a solution but I don’t remember it anymore. I just changed a lot of markup as far as I know

@Hirbod, ok thanks, never mind, I thought the example didn't work for me because I also missed that style. It turned the reason was the list lacking renderHiddenRow property.

Onswiping i am popping up an alert, and after confirmation the row needed to be deleted (will be removed from the state as well as an api call). So inorder to do this, i need to get the ids of the corresponding list items. How to get the id of the item when swiped??


Just now i  edited and added new link

i found another link which contains title "Overview of Windows as a service"
so  replaced old  broken link with new link
https://docs.microsoft.com/en-us/windows/deployment/update/waas-overview
So allow my PR  and  approve it soon.
Thanking you

Please do not change that link. It is a relative link for the Github pages
(not to be confused with the docs.microsoft.com pages).

@illfated.ok sir  . I noted Down it now. Next time before changing, I will send information sir

Fair enough. May I ask for this PR to be closed as well? (unless there is something else on this page in need of changing)

@illfated .broken link must be changed. I mentioned new link earlier in PR . please add link in this document and then close this PR.
Thanking you

Aha. I see. I presume you are referring to #4146 ( Link 404).
The problem is that the broken link you are referring to
can only be fixed by Microsoft employees with write access
to the docs.microsoft.com official public page.
We ordinary users do not even need to suggest changes to the Github page,
because the error happened when the public page link was translated via script
from MarkDown (here on Github) to HTML (on https://docs.microsoft.com/).

@illfated .I thought github site administrator can change this type PR. I am not from Microsoft. that means I don't have write access.
What type of permission I can get from github

My point is:

Github page is OK, link is NOT broken: https://github.com/MicrosoftDocs/windows-itpro-docs/blob/master/windows/whats-new/ltsc/index.md
Microsoft Docs page link is broken: https://docs.microsoft.com/en-us/windows/whats-new/ltsc/
(For detailed information about Windows 10 servicing, see Overview of Windows as a service.)

We non-Microsoft users should not post any PR for this problem, because in this case, we don't want to change the Github page.
I recommend closing this Pull Request, because the follow-up from Microsoft Docs authors or MS engineers needs to be an internal task, following the natural chain of command, based on the issue #4146 ( Link 404 ). This means that the issue ticket #4146 can be closed when the page https://docs.microsoft.com/en-us/windows/whats-new/ltsc/ has been corrected by a Microsoft employed web admin.

Hi @RAJU2529 the link attribute has been updated on docs.microsoft.com. As explained by @illfated , the github document does not have any problem, so no change is necessary. I have also closed #4146 . Thank you so much.

Issue solved by internal update publicized 06/25/2019 (4 days ago as of the time of this comment). Thank you for keeping us updated on this issue.
@RAJU2529 : Feel free to close this pull request as time permits.

(Follow-up to my previous comment.)
The link on the docs.microsoft.com page has now been corrected,
but at the cost of breaking the link on Github. Not sure what to do now.

i am closing this issue


[Question]: When adding the LLM of   the Tongyi-Qianwen , occur  504 Gateway Time-out，and the webpage content has nginx error

Describe your problem

在生产端，做了一个ragflow的部署，set api key 通义千问的大模型时，出现了一些错误。请帮忙分析一下具体是什么原因

As I know free key from Qwen has frequency limitaion.


SSL issue: nginx controller not updating nginx.conf with new certs

I am using quay.io/aledbf/nginx-ingress-controller:0.187 and I can't see it picking up my new certificates in nginx.conf after I create the Secret. I can see my certificates in /ingress-controller/ssl:
# ls -l /ingress-controller/ssl/
total 20
-rw------- 1 root root 5207 Aug 29 15:25 default-mycert.pem
-rw------- 1 root root 2929 Aug 29 15:25 default-fake-certificate.pem
-rw------- 1 root root 5207 Aug 29 15:25 staging-mycert.pem

However I don't see any references to those certs (mycert.pem) in my /etc/nginx/nginx.conf file. All I can see is the default fake cert:
        ssl_certificate                         /ingress-controller/ssl/default-fake-certificate.pem;
        ssl_certificate_key                     /ingress-controller/ssl/default-fake-certificate.pem;

Is there some extra step that I'm missing here?
@aledbf can you help please?

@kerneljack please update to quay.io/aledbf/nginx-ingress-controller:0.197
This image contains the next release

@aledbf ok, thanks. I've just done that and I'm now seeing the following:
I0829 15:39:16.217015       5 launch.go:109] &{NGINX 0.9.0-beta.12 git-a8bfdc24 https://github.com/aledbf/ingress}
I0829 15:39:16.217171       5 launch.go:112] Watching for ingress class: nginx
I0829 15:39:16.217443       5 launch.go:278] Creating API client for https://<IP_ADDRESS>:443
I0829 15:39:16.229768       5 nginx.go:173] starting NGINX process...
I0829 15:39:16.258637       5 launch.go:290] Running in Kubernetes Cluster version v1.7 (v1.7.3) - git (clean) commit 2c2fe6e8278a5db2d15a013987b53968c743f2a1 - platform linux/amd64
I0829 15:39:16.261251       5 launch.go:131] validated staging/default-http-backend as the default backend
I0829 15:39:16.266762       5 controller.go:1345] starting Ingress controller
I0829 15:39:16.272454       5 controller.go:183] ignoring add for ingress ing-foo based on annotation kubernetes.io/ingress.class with value gce
I0829 15:39:16.276250       5 event.go:218] Event(v1.ObjectReference{Kind:"Ingress", Namespace:"staging", Name:"ing-myapp", UID:"ec2fecd0-8cc2-11e7-827f-42010a9a0006", APIVersion:"extensions", ResourceVersion:"579882", FieldPath:""}): type: 'Normal' reason: 'CREATE' Ingress staging/ing-myapp
I0829 15:39:16.367939       5 backend_ssl.go:58] adding secret default/mycert to the local store
I0829 15:39:16.370224       5 backend_ssl.go:58] adding secret staging/mycert to the local store
I0829 15:39:16.486557       5 controller.go:469] backend reload required
I0829 15:39:16.486900       5 metrics.go:34] changing prometheus collector from  to default
E0829 15:39:16.487591       5 template.go:615] expected an Ingress
I0829 15:39:16.504205       5 leaderelection.go:174] attempting to acquire leader lease...
I0829 15:39:16.511960       5 leaderelection.go:184] successfully acquired lease staging/ingress-controller-leader-nginx
E0829 15:39:16.532370       5 controller.go:474] unexpected failure restarting the backend:

-------------------------------------------------------------------------------
Error: exit status 1
2017/08/29 15:39:16 [emerg] 20#20: "client_max_body_size" directive invalid value in /tmp/nginx-cfg179858361:199
nginx: [emerg] "client_max_body_size" directive invalid value in /tmp/nginx-cfg179858361:199
nginx: configuration file /tmp/nginx-cfg179858361 test failed

-------------------------------------------------------------------------------
W0829 15:39:16.532587       5 queue.go:90] requeuing default/redis-redis, err
-------------------------------------------------------------------------------

Closing. Fixed in master

Hi,
Is it fixed in the beta12 version ? Because I had this bug in my tests of kube-lego with beta12 (and beta11): https://github.com/jetstack/kube-lego/issues/252#issuecomment-326635849


⚠ Secret Website 3 has degraded performance

In 214ae50, Secret Website 3 ($SECRET_WEBSITE_3) experienced degraded performance:

HTTP code: 200
Response time: 2627 ms

Resolved: Secret Website 3 performance has improved in d2ac0f6.


On documentation for the cutoff property in CVCircuit

(1) Currently, within CVCircuit, the cutoff property is computed for a single QumodeRegister.
(2) In particular, the cutoff is computed for a single qumode within the qumoderegister, as we find in QumodeRegister class that "self.cutoff = 2**self.num_qubits_per_qumode". So the size of QumodeRegister(2, 2) will involve 4 qubits, but qumode cutoff is calculated with 2 qubits.
However, the circuit sends a warning for case (1) only ["More than one QumodeRegister provided. Using the last one for cutoff.", circuit.py] and case (2) is not clarified to the user. I think this subtlety should be noted clearly, especially in CVOperators, given that the dimension of the attribute operators (a, a_dag, n, identity) are dependent on the cutoff. I found it more difficult to debug when defining new operators as I initially made the assumption that the attributes were applied on the entire register.
This might also be an issue when multiple qumoderegisters with differing cutoffs are created in a circuit, especially on operators like cv_bs which involves multiple qumodes. As issue #84 still exists, I can't initialize states onto the registers to check what actually happens. But we can still demonstrate that there is concerning behaviour with regards to dimensionality.
For the sake of testing, add in a print statement into bs() in operators.py
def bs(self, theta):
    self.a1 = scipy.sparse.kron(self.a, self.eye).tocsc()
    self.a2 = scipy.sparse.kron(self.eye, self.a).tocsc()
    self.a1_dag = self.a1.conjugate().transpose().tocsc()
    self.a2_dag = self.a2.conjugate().transpose().tocsc()

    a12dag = self.a1 * self.a2_dag
    a1dag2 = self.a1_dag * self.a2

    arg = theta * a1dag2 - numpy.conj(theta) * a12dag
    print(arg.shape) #<----- Added for sake of testing
    return scipy.sparse.linalg.expm(arg)

When we run the following two circuit cases, we observe that the dimension of the argument that is returned by bs is the same for both cases, even though the two circuits involve a different number of qubits.
import c2qa
if True:
    qmr = c2qa.QumodeRegister(2, 2)
    circuit = c2qa.CVCircuit(qmr)

    circuit.cv_bs(theta=1, qumode_a=qmr[0], qumode_b=qmr[1])

    _, result = c2qa.util.simulate(circuit, shots=1)

if True:
    qmr1 = c2qa.QumodeRegister(1, 1)
    qmr2 = c2qa.QumodeRegister(1, 2)
    circuit_bad = c2qa.CVCircuit(qmr1, qmr2)

    circuit_bad.cv_bs(theta=1, qumode_a=qmr1[0], qumode_b=qmr2[0])

    _, result = c2qa.util.simulate(circuit_bad, shots=1)

I'm not sure if this actually affects the computation of the results. But if this does pose an issue down the line after debugging #84, it might be beneficial to make the cutoff property more general so that it can be calculated separately for each qumode within each QumodeRegister, for multiple registers.

If we want to support cutoff values per QumodeRegister, we'll need to pass in the register index into our functions that create the operators. Or we'll need to develop a way to lookup which register contains the qubits (as we'd need for #84 too). That way we'd be able to get the register and lookup its individual cutoff instead of using the last register's cutoff everywhere.
We'd probably want to cache less of the matrices too (like a, a_dag, etc.) or we'd want to cache all of them as we'll need to lookup the correct matrices for those depending on the cutoff, too.

Made minor updates to documentation for where cutoff is stored. I believe work on this issue is complete now.


Zuul Filter for request splitting & result aggregation

Is there a way to create a zuul filter in which I can rout one incoming request to two or more backend services and do a result aggregation as a Map or anything else?
I think of something like a rout filter to implement a backends-for-frontends pattern directly into zuul.

You can pretty much do anything you want with Zuul. If you have a concrete suggestion we could discuss in more detail.

My concrete use case is that I get one call from a UI service. For this one UI request I need to get data from two backend services which are behind my zuul gateway. But currently I have to make a call from the UI service to each backend service.
Is there already a way in zuul to solve this?
While I did not find a way, I implemented a bridge service which takes one request, call both required backend services an aggregates the results as a Map.
But I think this is a overhead and could be done by zuul.
What do you think?

@michl-b

I implemented a bridge service which takes one request, call both required backend services an aggregates the results as a Map.

I think this is the best solution

You could also do that right in spring mvc which zuul plugs into.

@spencergibb You mean a Spring Boot Service which provides the aggreagtion controllers and zuul in one, like this https://github.com/michl-b/spring-boot-zuul-bff/blob/master/zuul/src/main/java/de/michlb/demo/zuul/bff/controller/ProductController.java?

yup, something like that.

thanks a lot

This is not an uncommon pattern with microservices, as an example with mobile applications you often don't want to do multiple requests from the clients to different microservices and instead do 1 request to the API Gateway. I was hoping Zuul was able to handle these scenarios.
@michl-b Are you able to explain how the ProductController.java example above provides zuul? As far as I can tell it's just using RestController and calling methods from ProductClient and CustomerClient.

@gihad the product controller sample doesn't use zuul, and there's no reason it should. Zuul provides an abstraction over the servlet API. Spring MVC provides another one (and IMO it happens to be better suited to this kind of use case, but that's a value judgement - you can decide for yourself).

i think the aggregation service should call other backed services asynchronously so that "A single optimized request such as this must embrace server-side parallelism to at least the same level as previously achieved through multiple network requests from the client."

@ahmedabbas11 thanks for that. of course you are right but i'm no longer following that bff pattern because for multiple teams you create a logic monolith between frontend & backend over multiple teams. so no one would be "responsible" for that part.
Now i think the client should take care of the backend call coordination and result aggregation.

@aivans When you are saying bridge service, are you trying to say aggregation service.? Can you please share the code.


Update the analytics blocklist

This is the output of running the regenerate task that is part of the
DfE Analytics library.

Is there a mismatch between the output of the regenerate task and the linter?


ntr: increased protein localization to chromosome arm chromatin

ntr: increased protein localization to chromosome arm chromatin
descendant of
increased protein localization to chromatin
PMID:21633354, yay finished it!

increased protein localization to chromatin at chromosome arms FYPO:0005026

edit file: fd602879fa65355870ae8d5088ae34201572015f
release: 181b3899dabcbb4162464ba5e7afb857bd6e6776


Top Row formatting

fixed top menu layout issue on small screens
Adjusted styling for theme select and about button
added small margin to hamberger button

Hamburger button is misaligned on small screens


Unable to build skicka because of grpc-go error

go get fails on my environment because of grpc-go.
$ GOPATH=$PWD /usr/lib/go-1.9/bin/go get github.com/google/skicka
# google.golang.org/grpc/internal/credentials
src/google.golang.org/grpc/internal/credentials/spiffe.go:34:70: state.PeerCertificates[0].URIs undefined (type *x509.Certificate has no field or method URIs)
src/google.golang.org/grpc/internal/credentials/spiffe.go:38:47: state.PeerCertificates[0].URIs undefined (type *x509.Certificate has no field or method URIs)
src/google.golang.org/grpc/internal/credentials/spiffe.go:56:35: state.PeerCertificates[0].URIs undefined (type *x509.Certificate has no field or method URIs)

My environment is
$ uname -a
Linux parallels-ubuntu1804 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ /usr/lib/go-1.9/bin/go version
go version go1.9.4 linux/amd64

Having the same error when trying to build on CircleCI, any updates?


roe-413 Update Entity in web model

JIRA link
https://companieshouse.atlassian.net/browse/ROE-413
Change description
Added field: is_on_register_in_country_formed_in
Removed address fields from model and re-reference common address models
Ensure that all fields in the model and template match the api spec
Work checklist

[x] Tests added where applicable
[x] UI changes meet accessibility criteria

Merge instructions
We are committed to keeping commit history clean, consistent and linear.  A BREAKING CHANGE can be part of commits of any type,
types other than fix: and feat: are allowed, for example build:, chore:, ci:, docs:, style:, refactor:, perf:, test:, and others,
footers other than BREAKING CHANGE: <description> may be provided.

I have had a look at the includes and what I would like to do is raise a separate ticket.
The reason for this is I think it would be best to include all the registration fields in this includes file together
public_register_name
registration_number
and is_on_register_in_country_formed_in
However, in order to do this we'd need some consistencey in bo other the name "register_name" is used and in the entity it is "public_register_name". A discussion on this came up yesterday in
https://github.com/companieshouse/overseas-entities-api/pull/44
We are thinking of adding a ticket to do this work and we should probably keep it together. I can raise a ticket if you want. I'll discuss this with @markpit and @mwestacott as well.

What I can do for now is as suggested have an includes file just for the radio buttons but with a view to add those other two feilds as part of this other change.


Study and implement endpoints for tg webhooks

Need to study and implement on Golang api for Telegram webhooks requests.
It should be configurable by .yml or json files.
And pack it into docker container.

pack to docker container will be resolved by #3


Update copyright in license

This ensures that the year is up to date, and
that the copyright is assigned to the not-for-profit
Exercism, rather than the (now-defunct) Delaware
Corporation that we had in place as a temporary
measure for legal protection until we could
figure out how to structure things properly.
Ref: https://github.com/exercism/exercism/issues/4823

The build is failing because it can't install dependencies. This is unrelated to this change, so I'm going to go ahead and merge.


Feature/container

Codecov Report

Merging #98 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master    #98   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          18     19    +1
  Lines         174    181    +7
=====================================
+ Hits          174    181    +7

Impacted Files
Coverage Δ

src/Container.js
100% <100%> (ø)

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 073d0f2...74440fd. Read the comment docs.


New name for the project (please suggest)

A lot of people voiced the issue of Mosaic name being taken by the famous NCSA Mosaic browser that defined an era of web browsing. This name collision was intentional, as stated in the Design Decisions doc, and was meant to pay tribute to the mentioned NCSA Mosaic browser.
@niutech voiced a good points in #24 that made me think about this issue and decided to start a conversation about name suggestions.

Moist
Landscape of browsers dried out and Moist should bring a bit of water to this land.
Alternatives: Humid, Monsoon

Tessello

@mlajtos Thanks for changing the name! Why not just Tile(d) Browser? This will instantly reveal the main feature.

@niutech I don't like boring names. Following your convention it should be named "Tiling Browser with built-in uBlock Origin that also do other neat stuff" That isn't a name, that is a description.
@michalklempa I like Tesselo (stunning images). A bit long, but stays true to the original name. Following this theme, I also like Plaid -- it is catchy as hell. Also in this vicinity are: mesh, lattice, matrix, grid, grille. All are too general and technical.


Update m365bp-setup.md

Learn Build status updates of commit 76f295a:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-365/business-premium/m365bp-setup.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

Learn Build status updates of commit 3041ef4:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-365/business-premium/m365bp-setup.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


Don't re-associate belongs to relations

WHY
As discussed in #4009 some events were triggered twice. The BelongsTo relations were beeing "re-attached" in the relationship creation.
BEFORE - What was wrong? What was happening before this PR?
We would associate the belongs to relations after they are already saved in the main entry, triggering multiple events for each relation.
AFTER - What is happening after this PR?
We don't trigger multiple events.
HOW
How did you achieve that, in technical terms?
Removing the already attached belongsTo relations from the relations that should be saved after the main entry is created.
How can we test the before & after?
Before in the mentioned PR #4009 . After in this PR.
@tabacitu this PR is pointing to the create-and-update-model-events branch!

Tested, works like a charm 🎉 Thank you @pxpm ! I'll merge this into PR #4009 and give Antonio a chance to test too. After that, it'll be inside 4.2.


Using vol connector via environment variable without application modifications

Hi there,
I'm trying to figure out how the VOL connector can be used for existing HDF5 applications. According to the User's Guide using the environment variable approach looks best for this use case:

The environment variable is useful when the application either cannot or does not need to be modified to use
DAOS storage (e.g., the application makes no native-specific HDF5 API calls). It is also the easiest to use as
it requires very little setup and no changes to the application’s source code.

From my understanding, very simple applications should not need any modification. Thus, I tried to run the h5_write example from the HDF5 main repository which I compiled using h5pcc. Following the VOL User's Guide, I set the HDF5_VOL_CONNECTOR=daos and HDF5_PLUGIN_PATH to the library path and run the binary but it fails:
# starting it with mpiexec or not doesn't make a difference here.
$ mpiexec -n 1 ./h5_write
HDF5-DIAG: Error detected in HDF5 (1.12.1-3) MPI-process 0:
  #000: H5T.c line 1886 in H5Tcopy(): obj_id is not a datatype ID
    major: Invalid arguments to routine
    minor: Inappropriate type
DAOS VOL-DIAG: Error detected in DAOS VOL (1.0.0) MPI-process 0:
  #000: /home/centos/install/hdf5/vol-daos/src/daos_vol_dset.c line 559 in H5_daos_dataset_create(): dataset create failed in task "default (probably operation setup)": error during operation setup (H5_DAOS_SETUP_ERROR)
    major: Dataset
    minor: Can't operate on object
  #001: /home/centos/install/hdf5/vol-daos/src/daos_vol.c line 3287 in H5_daos_h5op_finalize(): operation "dataset create" failed in task "default (probably operation setup)": error during operation setup (H5_DAOS_SETUP_ERROR)
    major: Low-level I/O
    minor: Unable to initialize object
  #002: /home/centos/install/hdf5/vol-daos/src/daos_vol_dset.c line 492 in H5_daos_dataset_create(): can't create dataset
    major: Dataset
    minor: Unable to initialize object
  #003: /home/centos/install/hdf5/vol-daos/src/daos_vol_dset.c line 641 in H5_daos_dataset_create_helper(): failed to copy datatype
    major: Dataset
    minor: Unable to copy object
HDF5-DIAG: Error detected in HDF5 (1.12.1-3) MPI-process 0:
  #000: H5D.c line 141 in H5Dcreate2(): unable to create dataset
    major: Dataset
    minor: Unable to initialize object
  #001: H5VLcallback.c line 1793 in H5VL_dataset_create(): dataset create failed
    major: Virtual Object Layer
    minor: Unable to create file
  #002: H5VLcallback.c line 1758 in H5VL__dataset_create(): dataset create failed
    major: Virtual Object Layer
    minor: Unable to create file

The "file" itself is created in the DAOS pool as well as the root group within the file/container. I confirmed that with h5dump. However, the dataset creation fails as shown above. I can fix the example by adding calls to H5Pcreate, H5Pset_fapl_daos, and H5Pset_all_coll_metadata_ops as shown in the User's Guide and link against the vol connector. This, however, appears not to be the intention behind the environment variable approach.
I also tried the ph5_example but without any modifications. Again, the application crashes:
# mpiexec -n 2 ./ph5_example
Parallel test files are:
   ./ParaEg0.h5
   ./ParaEg1.h5
--------------------------------
Proc 0: --------------------------------
Proc 1: *** testing PHDF5 dataset using split communicators...
--------------------------------
Independent write test on file ./ParaEg0.h5 ./ParaEg1.h5
*** testing PHDF5 dataset using split communicators...
--------------------------------
Independent write test on file ./ParaEg0.h5 ./ParaEg1.h5
--------------------------------
Proc 1: *** testing PHDF5 dataset independent write...
--------------------------------
Independent write test on file ./ParaEg0.h5
H5Pcreate access succeed
HDF5-DIAG: Error detected in HDF5 (1.12.1-3) MPI-process 0:
  #000: H5P.c line 105 in H5Pcopy(): property object doesn't exist
    major: Property lists
    minor: Object not found
DAOS VOL-DIAG: Error detected in DAOS VOL (1.0.0) MPI-process 0:
  #000: /home/centos/install/hdf5/vol-daos/src/daos_vol_file.c line 835 in H5_daos_file_create(): failed to copy fapl
    major: File accessibility
    minor: Unable to copy object
HDF5-DIAG: Error detected in HDF5 (1.12.1-3) MPI-process 0:
  #000: H5F.c line 539 in H5Fcreate(): unable to create file
    major: File accessibility
    minor: Unable to open file
  #001: H5VLcallback.c line 3269 in H5VL_file_create(): file create failed
    major: Virtual Object Layer
    minor: Unable to create file
  #002: H5VLcallback.c line 3235 in H5VL__file_create(): file create failed
    major: Virtual Object Layer
    minor: Unable to create file
ph5example: ph5example.c:877: test_split_comm_access: Assertion `fid != -1' failed.

Based on these two examples, I am not sure which restrictions or requirements apply to an HDF5 application that should be run with the DAOS VOL connector. At the moment it appears that using the connector via the environment variable does not appear to work with (too) simple applications. The examples from the connector all make the H5P calls mentioned above and require them to be linked with the connector. This applies to most of the DAOS VOL tests as well. Thus, the environment variables are not required for them to work.
I wonder if this is a mismatch between the implementation and the documentation. Nevertheless; it would be great if an example could be provided that contains a minimal application which makes use the environment variable approach.

i just tried the h5_write.c example with the same steps that you described and it worked fine for me.
the only thought i have here is that you might be missing -shlib option.
so to build, try something like:
h5pcc -shlib h5_write.c -o h5_write

the only thought i have here is that you might be missing -shlib option.

Thanks for pointing this out. It did the trick and I was able to run the h5_write example without problems after recompiling the code of the example with the -shlib.


Let nvidia-ml-py and pynvml 12.* coexist

Beginning with pynvml version 12.0.0, the pynvml library and package now depend on nvidia-ml-py for core functionality and merely provide a few extras on top of nvidia-ml-py. Given this, these two packages no longer clobber each other and instead nvidia-ml-py needs to be coinstallable with pynvml. Changes were made to both feedstocks to support this (as referenced below). This repodata patch extends this to nvidia-ml-py version 12.*.
References:

https://github.com/gpuopenanalytics/pynvml/pull/57
https://github.com/conda-forge/pynvml-feedstock/pull/18
https://github.com/conda-forge/nvidia-ml-py-feedstock/pull/24

Checklist

[x] Used a static YAML file for the patch if possible (instructions).
[x] Only wrote code directly into generate_patch_json.py if absolutely necessary.
[x] Ran pre-commit run -a and ensured all files pass the linting checks.
[x] Ran python show_diff.py and posted the output as part of the PR.
[x] Modifications won't affect packages built in the future.

cc @conda-forge/nvidia-ml-py @conda-forge/pynvml (for awareness)

Here is the repodata patch diff from CI:
noarch::nvidia-ml-py-12.555.43-pyhd8ed1ab_0.conda
noarch::nvidia-ml-py-12.535.77-pyhd8ed1ab_0.conda
noarch::nvidia-ml-py-12.535.108-pyhd8ed1ab_0.conda
noarch::nvidia-ml-py-12.560.30-pyhd8ed1ab_0.conda
noarch::nvidia-ml-py-12.550.52-pyhd8ed1ab_0.conda
noarch::nvidia-ml-py-12.535.133-pyhd8ed1ab_0.conda
-    "pynvml ==9999999999"
+    "pynvml ~=12.0"

what does ~=12.0 mean?

This is equivalent to nvidia-ml-py >=12.0,<13.0a
More details in the package match specification docs
xref: https://github.com/conda-forge/pynvml-feedstock/pull/18#discussion_r1889677187

@conda-forge-admin , please relint
(looks like the linter errored during installation)

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found it was in an excellent condition.

LGTM

Thanks Mark and Keith! 🙏

I remember we were patching =~ out because it would break old conda versions. Also mamba v2 seems to have some trouble with it. Might be safer to use the equivalent >=x.y,x.*.

How old of a version?


Add and deploy docs!

Should have some interactive demos in it as well. :)

This will be coming in the new version of mystjs.
Includes interactive demos of syntax, showing the AST, and the rendered HTML.


The Tour's Hello World example is using the old Q name

Wave SDK Version, OS
0.10.0 macOS
Actual behavior
The Hello World! example has a title "A simple example to get you started with Q." instead of "... with H2O Wave"
Expected behavior
A simple example to get you started with H2O Wave.
Steps To Reproduce

Start the tour

@sizrailev Thanks for reporting! Fixed in a couple of other places, too.


added sorting for file paths

On windows32, opendir(dirpath.c_str()); will return the files in alphabetical ordering.
However, when built on gcc, opendir(dirpath.c_str()); will not return the files in alphabetical order.
Unfortunately, dandere2x needs the files to be in alphabetical order to work.
The change is really small and shouldn't affect overall performance.
Built and tested on Manjaro 18.04 and gcc 9.1.0

please keep the coding style
curly braces appear on their own line

fixed in PR
https://github.com/nihui/waifu2x-ncnn-vulkan/pull/43


Fix contractAddress based on web3 definition of value

(consolidating issue from: https://github.com/summa-tx/near-web3-provider/issues/14)

@barbaraliau I transfered this issue from the summa repo. Has this been fixed? To me it seems to be behaving correctly..

Yes, I think this has been fixed.

Resolved. Closing issue.


JSON issue

Hi,
I'm getting this issue -
sketch/OpenWeatherMapClient.cpp: In member function 'void OpenWeatherMapClient::updateWeather()':
OpenWeatherMapClient.cpp:78:3: error: 'DynamicJsonBuffer' was not declared in this scope
   DynamicJsonBuffer jsonBuffer(bufferSize);

Apparently it's been seen before but was "fixed" Anyone know how did you fix it please?

Yeah, this has been covered a few times as well as in the Readme.md file.   You need to install the correct version of ArduinoJson -- do not use the 6.X Beta version as it has breaking changes in it and is still BETA.   Use the 5.X (latest as listed in the readme).


Support solving captchas during login

Working on it in the captcha-login branch

Basic support was merged in #19


[1.x] Add PgAdmin service

I'm using VSCode editor and I always have to manually add this PgAdmin service to the docker-compose. It would be nice if it is already included. The user can choose whether or not to include it in their development environment.

You can add it to your own docker-compose.


Code for downstream tasks

Hi there,
Great work!
I’m having trouble reproducing the performance of the downstream tasks you presented. Could you please share the code for those tasks? It would be really helpful.
Thanks!

Which task hasn't been working for you? I've been testing the model and to reproduce some of the results I think a non-default value for alpha in the elastic regression model is needed.
For example for the melting temperature prediction task I used alpha=0.001 (default in scikit-learn is 1) which gives an R2 value of 0.75 vs 0.51 with default parameters.


POST Query ports  and protocols

💡 Summary
Add new REST endpoints that mirror existing sql queries and replace existing sql query with REST
Specifically: Convert "query_ports_protocols()" TSQL query to an API endpoint
Motivation and context
There are two major reasons to use endpoints in place of sql queries.

Replace the need to know t-sql
Off load data aggregation to fastapi parallel workers

Implementation notes

Gather existing queries from code.
Create new endpoints at fastapi.
Secure new endpoints in same fashion as existing endpoint.

Acceptance criteria

[X] home/models.py model created
[X] dataAPI/schemas.py schema created
[X] dataAPI/views.py functions created
[X] dataAPI/tasks.py function created
[X] Verified endpoint is working
[X] Awaiting push to api-extended branch

Endpoint has been finished and added to the CD-pe-reports-api-extended branch


Label - Basic Labels not styled properly

Steps
If you set a label as basic it is not using the inverted (white) background.  It is using the label color.
You can see this on the label's documentation page at:
https://semantic-ui.com/elements/label.html
Check out the red pointing form label that says "Please enter a value" it just appears as solid red.

Duplicate of #6439


OS#17790507: [Test262] Throw SyntaxError rather than early ReferenceError on bad LHS in for loop header

@dilijev This is the Test262 fix I promised you.


fix bug: swift and OC mix framework

try to fix this issue https://github.com/ob/rules_ios/issues/22, but I am not familiar with bazel, plz review it seriously. And test passed with demo https://github.com/vincephamgrab/demo-mixedobjcswift .

Can you add a test app/framework that covers this fix? Thanks!

This PR is superseded by #38 right? Can we close it?

I think this got fixed in #38. Please reopen if that is not the case.


Debian package for kafka <IP_ADDRESS>

Hi guys,
I was trying to build <IP_ADDRESS> packages using instructions provided here but not successful so if You manage to do it can You please put them on http://apt.wikimedia.org/wikimedia/pool/main/k/kafka/ as I used Your puppet module for kafka and new version of kafka has a lot of bug fixes and improvements https://archive.apache.org/dist/kafka/<IP_ADDRESS>/RELEASE_NOTES.html
Thank You very much,
Mladen

<IP_ADDRESS> won't be built, but <IP_ADDRESS> is built and available for Ubuntu Trusty and Debian Jessie!  http://apt.wikimedia.org/wikimedia/pool/main/k/kafka/


DOC: Add "Examples" to docstrings

Many of the functions in scipy do not include examples in their docstrings.  Even a simple example can be helpful for a new user, so we should try to include examples wherever possible.
A script called find_functions_missing_examples.py is now maintained in my github repository analyze-scipy-code.  This script reports the names of functions that are missing the "Examples" section.
Below is the output that I get when run with the current master branch.  Some of these functions have proper docstrings, so all they need is the addition of an "Examples" section containing one or more illustrative examples.  Many of them, however, do not comply with the numpy docstring guidelines, and may be missing the "Parameters" and "Returns" sections.  In particular, the docstrings of many of the functions in scipy.special are quite terse.  Anyone who works on this task should ensure that the final docstring complies with the guidelines.  See, for example, https://github.com/scipy/scipy/pull/7148, where the sections "Parameters", "Returns" and "Examples" were added to the docstring of scipy.special.gamma.
I have added the tag "good first issue" to this task, because it is usually very easy to add one or two examples to a function.  (How to edit the docstring of the functions in scipy.special is not obvious, but take a look at https://github.com/scipy/scipy/pull/7148 or https://github.com/scipy/scipy/pull/7143 for examples.)  The tag does not mean it will be easy to complete this task.  As you can see below, there is a lot of work to be done!   Anyone who wants to help should feel free to pick a function or two to work on.
The script ignores functions that have the string "is deprecated" in their docstring.  The names of other functions that should be ignored can be added to the list skip.  If you find such a function, add a comment about it here.
  At that time, version 0.19.0 had just been released a few days earlier.  When I run this script on that version (with 'fft' removed from modules), it finds 674 functions without examples.)
Note: if your PR only adds documentation, please add on a new line: [skip actions] [skip cirrus]. This will help save our CI credits.

I am a newbie here. I exactly do not understand what the task is. Are the above commands do not have relevant examples for them?

@pssk1988 Yes.  The docstrings of those functions do not have an "Examples" section.
The docstring standard that scipy tries to follow is https://github.com/numpy/numpy/blob/master/doc/HOWTO_DOCUMENT.rst.txt; in particular, "Sections" defines the sections that should be included in a docstring.  "Examples" is the last section described in the docstring standard.  According to the numpy docstring standard, "Examples" is an optional section, but many of us think it is a very important section, so we would like to ensure that as many functions as possible include it.

@WarrenWeckesser Okay. Thats interesting! I will take up a section of them, probably start with simpler ones.

I just started to add to examples. I forked scipy and performed build as mentioned here. However, while trying to import scipy in Python, I get the following error:
>>> import scipy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named scipy

I know I can do pip install scipy, but that's not the point of building the developer version of scipy, I guess. Can someone help?

The docstring standard that scipy tries to follow is https://github.com/numpy/numpy/blob/master/doc/HOWTO_DOCUMENT.rst.txt

There doesn't appear to be an example of an Examples section in that reference. Could someone add a few examples to this issue illustrating the desired format for the section to follow? E.g. where does it go relative to the other sections?

I've casually browsed through the examples in the current docs. It looked like that it comes at the very end after notes and references and Added in version x.xxx. But I'm not sure if this was intentional. It doesn't seem like this behavior is consistent.
I would like to correct the recent examples if this was not the case. To me before notes and references seems a better place content wise but if somebody just looks up the docstring on the prompt, the examples show up as the last thing which is also good avoiding the scroll in case of long Notes sections.

The "Examples" section is the last section.  My understanding is that the recommended order of the sections in the docstring is the same as the order they are described at https://github.com/numpy/numpy/blob/master/doc/HOWTO_DOCUMENT.rst.txt#sections.  I'm pretty sure that's the intent, and that's what we've been doing for years.  Any exceptions to that were probably accidental.

This is my first attempt to contribute towards this issue. Please comment further on what are to be done and how we should proceed.
The average function:
`"""The following module describes how to use
the average function of the numpy class"""
# From the existing set of classes we import numpy
import numpy as np
# We can rename numpy as np. Once may use anything
# -----METHOD 1-----
"""What is Average?
average = [Sum of all the elements of array]/[Number of elements in array]"""
# Let us declare an array of integers as follows
data = [1,2,3,4]
# Let us store the average in a variable 'av'
av = np.average(data)
print('The average using Method 1 is:', av)
# -----METHOD 2 - Weights -----
"""What is Weighted Average?
Given data=[1,2,3,4] and weight=[0.1,0.2,0.3,0.4]
average = [(10.2)+(20.2)+(30.3)+(40.4)]/[0.1+0.2+0.3+0.4]"""
# We are going to use the same data as in METHOD 1
# Here we are going to have weight as [0.1,0.2,0.3,0.4]
weight_array = [0.1,0.2,0.3,0.4]
"""SYNTAX for Weighted Average
Weighted_Average = numpy.average(<data_name>, weights = <weight_array>)
Remember, here, 'weights' is a Python Keyword"""
weighted_av = np.average(data, weights = weight_array)
print('The Weighted Average using Method 2 is: ',weighted_av)
`

This is my first contribution to an issue, so I started with a simple one
numpy.average()
`"""The following module describes how to use
the average function of the numpy class"""
# From the existing set of classes we import numpy
import numpy as np
# We can rename numpy as np. Once may use anything
# -----METHOD 1-----
"""What is Average?
average = [Sum of all the elements of array]/[Number of elements in array]"""
# Let us declare an array of integers as follows
data = [1,2,3,4]
# Let us store the average in a variable 'av'
av = np.average(data)
print('The average using Method 1 is:', av)
# -----METHOD 2 - Weights -----
"""What is Weighted Average?
Given data=[1,2,3,4] and weight=[0.1,0.2,0.3,0.4]
average = [(10.2)+(20.2)+(30.3)+(40.4)]/[0.1+0.2+0.3+0.4]
"""
# We are going to use the same data as in METHOD 1
# Here we are going to have weight as [0.1,0.2,0.3,0.4]
weight_array = [0.1,0.2,0.3,0.4]
"""SYNTAX for Weighted Average
Weighted_Average = numpy.average(<data_name>, weights = <weight_array>)
Remember, here, 'weights' is a Python Keyword"""
weighted_av = np.average(data, weights = weight_array)
print('The Weighted Average using Method 2 is: ',weighted_av)
`

@ss-is-master-chief Roughly summarizing:

You can start by forking the official SciPy repository. You can simply do it from the upper right corner.
Then you create a branch of a name you have chosen. And then you modify the necessary function docstring and commit your changes to that branch.
Then you can create a Pull Request and people can review it and suggest changes and if it goes through gets merged with the official repository.

The branch creation is really important because if later on you would like to do something else then we have to sort out subtle conflicts between the master of SciPy and your master branch. Hence, to keep things contained we work in branches and only merge if we are fully sure that it doesn't break anything.
Please have a look at the similar function docstrings for examples. However note that average is a NumPy function so it is not related here.

@ilayn Could you suggest me some functions which I could work upon?

@ss-is-master-chief  Pick your favorite from the list above 😃 (except the linalg ones I'm about to submit a PR for them)

I believe that the documentation to the 23 functions of cluster.hierarchy is incomplete. Should I go ahead with it? It would take me two to three days (from the day of this comment) to prepare the complete doc.

@ss-is-master-chief yes please! You may want to submit a first PR after you've done a couple, just to make sure you get feedback that the examples look right before doing 20 more in a similar fashion.

@rgommers Awesome. Please do review my request once I do. Thanks in advance.

@WarrenWeckesser  @rgommers I have prepared the documentation for cluster.vq.kmeans2. Please have a look. :)

is this issue still open?
which functions need examples?

Hello, I crated an example for, but when I generate the documentation with:
'''
python setup.py build_sphinx
'''
no figures are created. Is there some other method for generating documentation with plots?

In doc/, use make html to build the docs locally

It would be great to have a global documentation sprint, similar to what pandas did a while ago :)
https://www.numfocus.org/blog/worldwide-pandas-sprint

scipy.integrate.dblquad not mentioned in the list above. Can I add an example for it?

Hi! This is the first issue I have tried to contribute to. I would like to add an example to fft2 listed above. Are the above guidelines explained and other reference documentation still the current practice? Thanks!

@nwjenkins Thanks for helping out. Yes, you can pick and choose any of them. We just have a mild requirement of having the example explanatory and not too specific. If you can cover all the args and keywords that would be the unicorn example. Just keep an eye on PEP8 and also empty lines in between the code and the text when you are alternating between them.
Having said that I do see an example for fft2 at the current master branch Did you mean something else? You can use the fft example as a template

@ilayn Thanks for the info! I was just going by the list above which includes fft2 under fftpack. I do see that it already has an example now, maybe I'm misinterpreting the list? In any case, I will find another function from the list if that is already accounted for.

Let me also update that list. Sorry for the noise

First time contributor here, would love to take a tackle at the remaining integrate ones,   quad_explain and quad_vec. Should I just make a pull request?

@WarrenWeckesser I think there are some legacy functions, should these functions has Examples?
For example:

fftpack module is legacy functions
optimize has many legacy functions like:
anderson, broyden1, broyden2, diagbroyden, excitingmixing, fmin_bfgs, fmin_l_bfgs_b, fmin_ncg
fmin_tnc, linearmixing, newton_krylov

fftpack module is legacy functions

No need to spend effort on these functions I think. It's not quite deprecated, but all new code should use scipy.fft.

optimize has many legacy functions like

Those aren't going anywhere. I would think examples can be helpful, but can be minimal - anything fancy would make more sense as a tutorial for a set of functions, individual examples are all going to look similar and it's the differences between them that's more interesting probably.

The fft namespace is missing though in the overview, so the list of documented functions there won't change, just fftpack -> fft.

@rgommers Thank you for your comments. OK I understood.

I have cloned scipy/scipy when I entered python3 runtests.py --doc html to cmd it is showing this stuff-
Traceback (most recent call last):
File "setup.py", line 590, in
setup_package()
File "setup.py", line 565, in setup_package
from numpy.distutils.core import setup
ModuleNotFoundError: No module named 'numpy'
Build failed! (0:00:01.022104 elapsed)
as I am a newbie here so can somebody please help me out :)

Hi @1sarthakbhardwaj please just install numpy in your environment, that should fix this.

I have installed NumPy but i have got even bigger error while building it,
Building, see build.log...
scipy/linalg/_generate_pyx.py: all files up-to-date
scipy/special/_generate_pyx.py: all files up-to-date
Running scipy\linalg_generate_pyx.py
Running scipy\special_generate_pyx.py
scipy\cluster_hierarchy.pyx has not changed
scipy\io\matlab\mio_utils.pyx has not changed
scipy\io\matlab\streams.pyx has not changed
scipy\linalg\cython_blas.pyx has not changed
scipy\linalg\cython_lapack.pyx has not changed
scipy\linalg_decomp_update.pyx.in has not changed
scipy\linalg_matfuncs_sqrtm_triu.pyx has not changed
scipy\linalg_solve_toeplitz.pyx has not changed
scipy\ndimage\src_cytest.pyx has not changed
scipy\ndimage\src_ni_label.pyx has not changed
scipy\optimize_bglu_dense.pyx has not changed
scipy\optimize_group_columns.pyx has not changed
scipy\optimize\cython_optimize_zeros.pyx.in has not changed
scipy\optimize_lsq\givens_elimination.pyx has not changed
scipy\optimize_trlib_trlib.pyx has not changed
scipy\signal_max_len_seq_inner.pyx has not changed
scipy\signal_peak_finding_utils.pyx has not changed
scipy\signal_sosfilt.pyx has not changed
scipy\signal_spectral.pyx has not changed
scipy\signal_upfirdn_apply.pyx has not changed
scipy\sparse_csparsetools.pyx.in has not changed
scipy\sparse\csgraph_flow.pyx has not changed
scipy\sparse\csgraph_matching.pyx has not changed
scipy\sparse\csgraph_min_spanning_tree.pyx has not changed
scipy\sparse\csgraph_reordering.pyx has not changed
scipy\sparse\csgraph_shortest_path.pyx has not changed
scipy\sparse\csgraph_tools.pyx has not changed
scipy\sparse\csgraph_traversal.pyx has not changed
scipy\spatial\ckdtree.pyx has not changed
scipy\spatial\qhull.pyx has not changed
scipy\spatial_hausdorff.pyx has not changed
scipy\spatial_voronoi.pyx has not changed
scipy\interpolate\interpnd.pyx has not changed
scipy\special\cython_special.pyx has not changed
scipy\special_comb.pyx has not changed
scipy\special_ellip_harm_2.pyx has not changed
scipy\special_test_round.pyx has not changed
scipy\special_ufuncs.pyx has not changed
scipy\special_ufuncs_cxx.pyx has not changed
scipy\stats_stats.pyx has not changed
scipy_lib\messagestream.pyx has not changed
scipy_lib_ccallback_c.pyx has not changed
scipy_lib_test_deprecation_call.pyx has not changed
scipy_lib_test_deprecation_def.pyx has not changed
scipy\cluster_vq.pyx has not changed
scipy\fftpack\convolve.pyx has not changed
scipy\spatial\transform\rotation.pyx has not changed
scipy\interpolate_bspl.pyx has not changed
scipy\interpolate_ppoly.pyx has not changed
scipy\io\matlab\mio5_utils.pyx has not changed
scipy\cluster_optimal_leaf_ordering.pyx has not changed
Cythonizing sources
lapack_opt_info:
lapack_mkl_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying
from distutils
customize MSVCCompiler
libraries mkl_rt not found in ['C:/Users/7sart/anaconda3\Library\lib']
NOT AVAILABLE
openblas_lapack_info:
libraries openblas not found in ['C:\Users\7sart\anaconda3\lib',
'C:\', 'C:\Users\7sart\anaconda3\libs']
get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft',
'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']'
customize GnuFCompiler
Could not locate executable g77
Could not locate executable f77
customize IntelVisualFCompiler
Could not locate executable ifort
Could not locate executable ifl
customize AbsoftFCompiler
Could not locate executable f90
customize CompaqVisualFCompiler
Could not locate executable DF
customize IntelItaniumVisualFCompiler
Could not locate executable efl
customize Gnu95FCompiler
Found executable C:\MinGW\bin\gfortran.exe
Using built-in specs.
COLLECT_GCC=C:\MinGW\bin\gfortran.exe
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/lto-wrapper.exe
Target: mingw32
Configured with: ../src/gcc-6.3.0/configure --build=x86_64-pc-linux-gnu
--host=mingw32 --with-gmp=/mingw --with-mpfr=/mingw --with-mpc=/mingw
--with-isl=/mingw --prefix=/mingw --disable-win32-registry --target=mingw32
--with-arch=i586 --enable-languages=c,c++,objc,obj-c++,fortran,ada
--with-pkgversion='MinGW.org GCC-6.3.0-1' --enable-static --enable-shared
--enable-threads --with-dwarf2 --disable-sjlj-exceptions
--enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw
--with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-tune=generic
--enable-libgomp --disable-libvtv --enable-nls
Thread model: win32
gcc version 6.3.0 (MinGW.org GCC-6.3.0-1)
NOT AVAILABLE
openblas_clapack_info:
libraries openblas,lapack not found in
['C:\Users\7sart\anaconda3\lib', 'C:\',
'C:\Users\7sart\anaconda3\libs']
get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft',
'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']'
customize GnuFCompiler
customize IntelVisualFCompiler
customize AbsoftFCompiler
customize CompaqVisualFCompiler
customize IntelItaniumVisualFCompiler
customize Gnu95FCompiler
Using built-in specs.
COLLECT_GCC=C:\MinGW\bin\gfortran.exe
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/lto-wrapper.exe
Target: mingw32
Configured with: ../src/gcc-6.3.0/configure --build=x86_64-pc-linux-gnu
--host=mingw32 --with-gmp=/mingw --with-mpfr=/mingw --with-mpc=/mingw
--with-isl=/mingw --prefix=/mingw --disable-win32-registry --target=mingw32
--with-arch=i586 --enable-languages=c,c++,objc,obj-c++,fortran,ada
--with-pkgversion='MinGW.org GCC-6.3.0-1' --enable-static --enable-shared
--enable-threads --with-dwarf2 --disable-sjlj-exceptions
--enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw
--with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-tune=generic
--enable-libgomp --disable-libvtv --enable-nls
Thread model: win32
gcc version 6.3.0 (MinGW.org GCC-6.3.0-1)
NOT AVAILABLE
flame_info:
libraries flame not found in ['C:\Users\7sart\anaconda3\lib', 'C:\',
'C:\Users\7sart\anaconda3\libs']
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
libraries lapack_atlas not found in C:\Users\7sart\anaconda3\lib
libraries tatlas,tatlas not found in C:\Users\7sart\anaconda3\lib
libraries lapack_atlas not found in C:
libraries tatlas,tatlas not found in C:
libraries lapack_atlas not found in C:\Users\7sart\anaconda3\libs
libraries tatlas,tatlas not found in C:\Users\7sart\anaconda3\libs
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE
atlas_3_10_info:
libraries lapack_atlas not found in C:\Users\7sart\anaconda3\lib
libraries satlas,satlas not found in C:\Users\7sart\anaconda3\lib
libraries lapack_atlas not found in C:
libraries satlas,satlas not found in C:
libraries lapack_atlas not found in C:\Users\7sart\anaconda3\libs
libraries satlas,satlas not found in C:\Users\7sart\anaconda3\libs
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
libraries lapack_atlas not found in C:\Users\7sart\anaconda3\lib
libraries ptf77blas,ptcblas,atlas not found in
C:\Users\7sart\anaconda3\lib
libraries lapack_atlas not found in C:
libraries ptf77blas,ptcblas,atlas not found in C:
libraries lapack_atlas not found in C:\Users\7sart\anaconda3\libs
libraries ptf77blas,ptcblas,atlas not found in
C:\Users\7sart\anaconda3\libs
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
libraries lapack_atlas not found in C:\Users\7sart\anaconda3\lib
libraries f77blas,cblas,atlas not found in C:\Users\7sart\anaconda3\lib
libraries lapack_atlas not found in C:
libraries f77blas,cblas,atlas not found in C:
libraries lapack_atlas not found in C:\Users\7sart\anaconda3\libs
libraries f77blas,cblas,atlas not found in C:\Users\7sart\anaconda3\libs
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
accelerate_info:
NOT AVAILABLE
lapack_info:
libraries lapack not found in ['C:\Users\7sart\anaconda3\lib',
'C:\', 'C:\Users\7sart\anaconda3\libs']
NOT AVAILABLE
lapack_src_info:
NOT AVAILABLE
NOT AVAILABLE
C:\Users\7sart\anaconda3\lib\site-packages\setuptools\distutils_patch.py:25:
UserWarning: Distutils was imported before Setuptools. This usage is
discouraged and may exhibit undesirable behaviors or errors. Please use
Setuptools' objects directly or at least import Setuptools first.
warnings.warn(
Running from SciPy source directory.
C:\Users\7sart\anaconda3\lib\site-packages\numpy\distutils\system_info.py:1730:
UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
return getattr(self, 'calc_info{}'.format(name))()
C:\Users\7sart\anaconda3\lib\site-packages\numpy\distutils\system_info.py:1730:
UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
return getattr(self, 'calc_info{}'.format(name))()
Traceback (most recent call last):
File "setup.py", line 590, in
setup_package()
File "setup.py", line 586, in setup_package
setup(**metadata)
File
"C:\Users\7sart\anaconda3\lib\site-packages\numpy\distutils\core.py", line
137, in setup
config = configuration()
File "setup.py", line 484, in configuration
raise NotFoundError(msg)
numpy.distutils.system_info.NotFoundError: No BLAS/LAPACK libraries found.
To build Scipy from sources, BLAS & LAPACK libraries need to be installed.
See site.cfg.example in the Scipy source directory and
https://docs.scipy.org/doc/scipy/reference/building/index.html for details.
Build failed! (0:00:11.713980 elapsed)
On Wed, Sep 30, 2020 at 7:55 PM Ralf Gommers<EMAIL_ADDRESS>wrote:

Hi @1sarthakbhardwaj https://github.com/1sarthakbhardwaj please just
install numpy in your environment, that should fix this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/scipy/scipy/issues/7168#issuecomment-701425555, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AO4ZSSDJCI24QZCAQNQLTWTSIM5V3ANCNFSM4DDQLKJQ
.

Hi @1sarthakbhardwaj can you please open a new issue for this? It doesn't quite belong here. In general: you should try to read the error message you're getting backwards (start at the end) the relevant message is:
To build Scipy from sources, BLAS & LAPACK libraries need to be installed.
See site.cfg.example in the Scipy source directory and
https://docs.scipy.org/doc/scipy/reference/building/index.html for details

Alright i will open an issue
On Wed, Sep 30, 2020, 22:20 Ralf Gommers<EMAIL_ADDRESS>wrote:

Hi @1sarthakbhardwaj https://github.com/1sarthakbhardwaj can you please
open a new issue for this? It doesn't quite belong here. In general: you
should try to read the error message you're getting backwards (start at the
end) the relevant message is:
To build Scipy from sources, BLAS & LAPACK libraries need to be installed.
See site.cfg.example in the Scipy source directory andhttps://docs.scipy.org/doc/scipy/reference/building/index.html for details
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/scipy/scipy/issues/7168#issuecomment-701513018, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AO4ZSSBVHZF2IO7P4OMQIELSINOWJANCNFSM4DDQLKJQ
.

For the PyCon 2021 sprint on May 15,  here are a few functions with docstrings that are missing an "Examples" section for which a few interesting examples can be added fairly easily:

scipy.stats.trim1

scipy.special.bernoulli
Needs 'Parameters', 'Returns', 'Examples' (see https://numpydoc.readthedocs.io/en/latest/format.html#sections for all the required and optional section of a docstring).
We could also add a reference to the wikipedia page.
A simple trivial example is something like
  >>> from scipy.special import bernoulli, zeta
  >>> bernoulli(4)
  array([ 1.        , -0.5       ,  0.16666667,  0.        , -0.03333333])

  The wikipedia article points out the relationship between the
  Bernoulli numbers and the zeta function, B_n^+ = -n * zeta(1 - n)
  for n > 0:

  >>> n = np.arange(1, 5)
  >>> -n * zeta(1 - n)
  array([ 0.5       ,  0.16666667, -0.        , -0.03333333])

  Note that, in the notation used in the wikipedia article,
  `bernoulli` computes B_n^- (i.e. it used the convention that
  B_1 is -1/2).  The relation given above is for B_n^+, so the
  sign of 0.5 does not match the output of `bernoulli(4)`.

scipy.special.hermite
Maybe something like:
  >>> p = hermite(4)
  >>> p  # Show that the return value is a poly1d object
  >>> p(0.5)  # Evaluate at a point.

And then a loop that plots the first four or five polynomials over the interval [-3, 3], with ylim(-40, 40)

scipy.special.gegenbauer
Similar notes as for hermite.
Could also verfiy the orthogonality by computing integrals of products using
scipy.integrate.quad, with weight='alg' and wvar=(alpha-0.5, alpha-0.5).

Working on trim1 adding example section to docstring

Adding example section to docstring in scipy.special.hermite

Working on gegenbauer example area within docstring

Working on bernoulli
I notice parameter (n) and return parameters are missing as well as the example

Thanks a lot @lgfunderburk you don't need to ping this issue, just go for it and we'll take them out of the list 😎

@ilayn normally that's true, but the recent comments were from participants in the PyCon sprint yesterday.  Because several people were working on updating docstrings, we recommended that they make a comment here to indicate which function they were working on.

Ha! that's great. Then my gratitude to the participants. Didn't know it was these days.

For further examples: @ilayn pointed out https://github.com/scipy/scipy/pull/14063#discussion_r634249543 that we should use the OO interface of Matplotlib in the examples. +1 here.

I'm adding examples and references to jacobi polynomials docstring

I updated the script to include the uarray._Function instances in the scipy.fft namespace.

Thanks @dschmitz89. Since you will have had an exposure to all these, it would be very helpful if you could add some summary of all these and how to use what/when in the tutorials for instance.

Thanks @dschmitz89. Since you will have had an exposure to all these, it would be very helpful if you could add some summary of all these and how to use what/when in the tutorials for instance.

I am not confident that I can write a useful tutorial for them as I never really used them myself besides writing those examples. I am not even familiar with typical use cases (physics bachelor memories are fading by now ..).

No problem 😃

Could this issue be pinned? Would draw more attention and I think this is a good start for first time contributors.

At the risk of being annoying: I see that there is again space in the top panel, so could this issue be pinned?

Sorry that no one responded to your initial suggestion to pin this issue.  My first inclination was that being tagged "good first issue" was probably enough.  Of course, being pinned would make the issue far more discoverable for a casual browser of the github issues.  But that's true for any issue.
I don't think this issue "reaches the bar" (whatever that is) for being pinned, but I won't object if gets pinned.

What makes an issue "pinnable"?  I don't know.  A good use of pinning has been when we were getting many duplicate issues for a known problem, such as support for Python 3.11. We currently have two pinned issues (gh-17278 and gh-15765), but I wonder if those would be better as github projects. Certainly gh-15765 seems like it could be better managed as a project.  But that is a casual, "drive by" suggestion, and certainly not a demand--I haven't used the github projects interface, so I don't know if converting that issue to a project would be more trouble than it is worth.

Thanks for the reply. Of course the bar for an issue to be "pinnable" must be reasonably high.
scikit-learn folks crowd sourced another tedious issue similar to this by pinning: making sure that their examples pass numpydoc validation (see here). For a long time this meta issue was very visible in the issue tracker and drew a lot of attention followed by PRs. In my opinion, adding examples to the documentation is of uttermost importance for SciPy and by pinning hopefully a momentum like for the sklearn issue could be reached.

I want to work on this issue. Please assign me the same!

@SoubhagyaKhan thanks for lending a hand. We don't assign issues but instead you can pick a function from the list at the top and open a pull request for review. You can see many examples above in the mentioned issues, how to go about it but let us know if you need more help.

Thank you for the reply.I will definitely do so.
On Thu, 12 Jan 2023, 14:03 Ilhan Polat, @.***> wrote:

@SoubhagyaKhan https://github.com/SoubhagyaKhan thanks for lending a
hand. We don't assign issues but instead you can pick a function from the
list at the top and open a pull request for review. You can see many
examples above in the mentioned issues, how to go about it but let us know
if you need more help.
—
Reply to this email directly, view it on GitHub
https://github.com/scipy/scipy/issues/7168#issuecomment-1379976615, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/A3SAMO3ZRDLE4QXM3IT5QKLWR66XJANCNFSM4DDQLKJQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi @WarrenWeckesser . I'm interested in contributing to this repository. Can you assign me to this issue?

Suggestion: may we make an up-to-date list of uncovered functions? Thank you! :)

Suggestion: may we make an up-to-date list of uncovered functions? Thank you! :)

The list at the top of this issue is pretty much up to date, only #19433 is not accounted for. From what I see, there are currently two PRs addressing this issue: #19434 and #19058. Any other function you are very much welcome to have a look at :).

Can someone update the last line of the issue description from [skip cirrus] [skip circle] to [docs only]please?

sure, done

Just created this PR DOC: mstats: add examples to kurtosis #21655 . First contribution, so hope I got it all in shape with the contributing guidelines, etc.

I'm not sure this is intented or not, but interpolate.CubicHermiteSpline is a public API, but it missed Example section and not listed.


Delete residue schema nodes_to_cves

Description
Schema seems to be a residue of previously generator.
This is to delete it.
central/postgres/schema/nodes_to_cves.go
Checklist

[ ] Investigated and inspected CI test results
~[ ] Unit test and regression tests added~
~[ ] Evaluated and added CHANGELOG entry if required~
~[ ] Determined and documented upgrade steps~
~[ ] Documented user facing changes (create PR based on [openshift/openshift-docs]~(https://github.com/openshift/openshift-docs) and merge into rhacs-docs)

If any of these don't apply, please comment below.
Testing Performed
CI test.

/test all


Feat : enhancement of landing page

Describe the feature
doing it according to the figma dsign
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[ ] I'm a VSoC'24 contributor
[X] I want to work on this issue

@ANKeshri Please create PR as soon as possible because we have to design a new figma for other page.


Update examples to use official distro

Update to latest image
Remove queued_retry processor
Clean up some splunk metadata parameters

I tested manually all 3 samples and could see data flow normally to Splunk.


ICBM Radar

Hi,
I installed all the mods you need to have to use icbm classic but it seems like the radar doesn't work,
When i send a missile it won't show up
Kind regards Merlyn

You posted on the ICBM repo not the ICBM-Classic repo. I will how ever pass this to @DarkGuardsman and he might have some insight.

Alright but thx anyway


Readability of PDF exported

After exported to PDF, the presentation of "- " , "---"  and content within " `` " becomes less reader friendly.

Could you upload a screenshot of how it looks for you?
Be sure that your PDF is not in night mode, this tends reverse sometimes unsuccessfully the colors in the PDF.
In PDF this is how it should look at the moment.

Hi Emperor:
Thanks for your reply. I did not expect that you would reply my message.
As I really like your design very much (no other themes highlight outlines
as well as yours does), I left you the message the other day to try my
luck. But I really did not expect that you would help fix this up. Thank
you very much!!!
The screenshot is from my obsidian interface, which looks really nice,
right (thanks to your genius design), but the pdf attached looks quite
different. Maybe it's just my device's problem? Anyway, thank you very
much!!!!
[image: image.png]
Best Regards
Ideal
On Thu, Oct 27, 2022 at 1:39 AM Emperor @.***> wrote:

Could you upload a screenshot of how it looks for you?
Be sure that your PDF is not in night mode, this tends reverse sometimes
unsuccessfully the colors in the PDF.
In PDF this is how it should look at the moment.
[image: image]
https://user-images.githubusercontent.com/32932497/198158457-f98feaad-5fc0-4ce6-ab9c-dbabbec9e0cd.png
—
Reply to this email directly, view it on GitHub
https://github.com/ArtexJay/Obsidian-CyberGlow/issues/21#issuecomment-1292777940,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFU2UDJHIT4OQOPLM7TFAKTWFG6K3ANCNFSM6AAAAAARNLBZ6U
.
You are receiving this because you authored the thread.Message ID:
@.***>

This is how it looks in obsidian interface:

And this is how the pdf looks like:

I am unable to reproduce this unfortunately. I tried to do the exact same layout you showed in your example. PDF for me exports without any of those graphical issues.

Ensure that you have the latest version of the theme and obsidian.

Will be closing this issue for now, until there is an update from the OP or another user sees the same issue.


Normalise changeEmail check

Unlike the checks in createUser, changePassword, removeUser, and
resetPassword, the typeof check in changeEmail seems to be
different.

This error seems to be related to cri5ti/grunt-shell-spawn#36 and not this PR

Hmm, yeah this is my fault. You can see the offending change here. This check was intended to be a version check since the changeEmail() method is not available prior to Firebase 2.1.0. I still think we should keep that check in place, but the credentials check seems like a good addition here, especially for consistency reasons.
Would you mind updating your PR to include both checks? It should look something like this:
if (typeof this._ref.changeEmail !== 'function') {
  throw new Error("$firebaseAuth.$changeEmail() requires Firebase version 2.1.0 or greater.");
} else if (typeof credentials === 'string') {
  throw new Error("$changeEmail() expects an object containing 'oldEmail', 'newEmail', and 'password', but got a string.");
}

Updated!

Sweet, thanks a lot! I'm gonna hold off on merging this PR until we get Travis passing. I see it's not your fault, but I don't want to merge in a broken build nonetheless. I'll kick off another build tomorrow morning after they've hopefully resolved their issues.

Yea mate that's cool. Cheers
Regards,
James
On 30 Apr 2015 5:00 pm, "Jacob Wenger"<EMAIL_ADDRESS>wrote:

Sweet, thanks a lot! I'm gonna hold off on merging this PR until we get
Travis passing. I see it's not your fault, but I don't want to merge in a
broken build nonetheless. I'll kick off another build tomorrow morning
after they've hopefully resolved their issues.
—
Reply to this email directly or view it on GitHub
https://github.com/firebase/angularfire/pull/610#issuecomment-97682856.

Coverage decreased (-0.13%) to 93.07% when pulling d7b4f8bef36fddbeb1c54c7634449a21b3d4823c on whitneyit:feature/normalise-changeEmail-check into e412fc1b3073cae049a5a9064e6d946274bb30f4 on firebase:master.

Tests are :green_heart:

Beautiful. Merged! Thanks again for the contribution.