[NOOB]How can I shorten the time to integrate this function?

I’m trying to define the function ‘Cumul1’ by integrating other relevant functions. The problem is that, since the relevant functions consist of special functions as well as a bunch of terms, the calculation requires literally eternity of time. This is not optimal for my goal, which is to maximize ‘Cumul1’ by varying the range of integration. I tried to find the solution and got some hint such as using NIntegrate, but most of them are not applicable to my case since my code of integration includes a variables in integral boundaries. So I want to ask… How can I shorten this integration?

fc = 40*10^3 fs = 80*10^3 t1 = 3.9*10^-3 t0 = 6.9*10^-3 nr = Round[0.00204361*fc] n1 = Round[t1*fc] n0 = Round[t0*fc] u0 = 0 u1 = 0.37*10^-9 an = 0.31*10^-12 s = Sqrt[an^(2)*fc*2] Prob0[x_] = 1/2 (1 + Erf[(x - u0)/s]) Prob1[x_] = 1/2 (1 + Erf[(x - u1)/s]) N1[x_] = E^((1 - x)/n1)/(n1 (1 - E^(2 - nr/n1))) N0[x_] = E^((1 - x)/n0)/n0 S[n_, x_] = (n/nr Prob1[x] + (nr - n)/nr Prob0[x])^nr Cumul1[x_] = Integrate[N1[t] (Integrate[N0 [n] S[n, x], {n, 1, nr - t}] + Integrate[N0[n] S[n, x], {n, nr - t, Infinity}]), {t, 1, nr - 1}] 

How to integrate scientific resources in user research?

I am about to conduct my first user interviews in order to find out why and how musicians are collaborating in music production with digital audio workstations.

Having found several resources that seem to give answers to the first question of why people are collaborating in creative processes, I am now wondering how I should be integrating these insights into the research and whether I should be asking this question at all. Can I expect something new and valuable from asking questions of which I feel like I already know the answer to?

How to integrate messenger bot on vue.js based website ?

Hello
I am facing a problem for my website named jogaan.com
For the purpose of integrate of messenger bot to my website I have generated customer chat code from setting of my Facebook page. I successfully created the code and send Email instructions to my web developers.
My web developer implement the code and tell me that the code is not working. The reason he shows me that the messenger bot code is java script and our website is vue.js based.
I don't understand what actually he explained….

How to integrate messenger bot on vue.js based website ?

Calculation using Integrate & Plot take too long time & some error

I want to plot this equation.

enter image description here

mu, Eb, gamma, Eg are constant parameters and x is independent parameter.

\[Mu] := 1; Eb := 0.040; \[CapitalGamma] := 1;(*Fitting parameter*) Eg := 2.354 Ebj := Eg - Eb/j^2 c := 1.4 (*fitting parameter*) A[x_?NumericQ] := \[Mu]^2/x (Sum[(2 Eb /j^3 Sech[(x - Ebj)/\[CapitalGamma]]), {j, 1, 10}] +  Integrate[Sech[(x - e)/\[CapitalGamma]] 1/(1 - c (e - Eg))(*1/(1-  E[-2 Pi Sqrt[Eb/(e-Eg)]])*) , {e, Eg, 2.355}])  Plot[A[x], {x, 2.0, 3.5}] 

There are two problem.

  1. Above the equation, I omit (1/(1-E[-2 Pi Sqrt[Eb/(e-Eg)]])) part because of NIntegrate : non-numerical values error. (maybe divergence issue)
  2. Although I omit some part, It takes too long time to Plot.

How remove that error and save calculation time?

Thank you

how do I integrate existing network(shared) folders to a newly installed SharePoint Foundation?

The setup:

  • Active Directory users have access to a centralized network shared folder
  • Source of the shared folder is on our storage NAS server(i.e. \NAS\SHARED_DATA*)
  • We just setup a new SharePoint Foundation to a different Windows Server 2012 on a different machine within the network. (\SHAREPOINT1)

How can we integrate \NAS\SHARED_DATA\ into the newly setup SharePoint Foundation? Or is that possible with the free foundation version?

thanks.

Which algorithm would be better to integrate “step” like functions

I have a function f[wr], in which the appearance is step like, first of all, the NIntegrate function is not handling this function, so I decided to do the integration algorithm by hand.

enter image description here

Without joined in plot

I have tried to integrate f[wr] using Riemann’s sum

data[mu_] :=   Module[{Te = 300., sum = 0., sum1 = 0., kb = 8.61*10^-5, a},    Do[    sum = sum + (f[wr] 0.01);     sum1 = sum1 + (f[wr] (wr - mu) 0.01);, {wr, mu - 30 kb Te,      mu + 30 kb Te, 0.01}]; sum1/(Te*sum)] 

and then, evaluate it with

Table[{data[mu],{mu,-1,1}] 

I think the results could be better if I try other algorithm. Could you suggest one?

edit: f[wr] algorithm https://pastebin.com/tfbGmhDa

Integrate different sources of notifications in a Laravel web app


Notification Integrations

I am struggling a bit with how to design a flexible/dynamic notification system in my Laravel 5.8 web application. Consider that I have something called streams. Each streams can have many fields – and these fields ultimately contains a string.

Now, I want to be able from within my web application to dispatch all the fields on a stream to various 3rd party sources that my users can set up integrations to, such as:

  • Simple webhooks
  • Zapier
  • Microsoft Flow
  • Emails

I am unsure on how to design the database to allow for this, as well as the code.

My initial thoughts was just to create a table for each type of integration, and then check if a Stream have any integrations defined.

webhook_integrations

id | stream_id | url                | fields 1  | 3         | www.external.com   | 1, 3, 5, 10 2  | 5         | www.other.com      | 2, 4, 5, 10 

I then imagine I can use it like this:

$  stream = Stream::Find(3);  //If the stream have any webhooks defined, fire them off. if($  stream->webhooks) {     foreach($  stream->webhooks as $  webhook)     {         //Fire off each webhook here!         $  FireWebhook = new Webhook();         return $  FireWebhook->url($  webhook->url)->payload($  webhook->fields);     } } 

Please note the above code is simply dummy code, and is just how I imagined firing off webhooks for a specific resource can be carried out.

Now imagine if I wants to introduce another integration into my web application. For example Zapier that uses a Oauth 2.0 authenticaion layer.

A database design for that could for example be:

zapier_integrations

id | stream_id | client_id | client_secret | auth_url | token_url | refresh_url | fields 

But now, I have to check if my code if I need to send a notification to my Zapier integration:

$  stream = Stream::Find(3);  //If the stream have any webhooks defined, fire them off. if($  stream->webhooks) {     foreach($  stream->webhooks as $  webhook)     {         //Fire off each webhook here!         $  FireWebhook = new Webhook();         return $  FireWebhook->url($  webhook->url)->payload($  webhook->fields);     } }  if($  stream->zapierWebhooks) {     foreach($  stream->zapierWebhooks as $  zapierWebhook)     {         //Fire off each webhook here!         $  zapierWebhook = new zapierWebhook();         return $  zapierWebhook->payload($  webhook->fields);     } } 

(And so on.. if I example decide to add another notification integration – for example: sms, email, slack).

I am very unsure on how to go about designing such a setup. How can I allow for different type of notification endpoints (webhook, Zapier, SMS, Email and so on), and check against all these notification types for a specific resource – and if any exist, dispatch it?

Is there a better way to integrate different partner systems to my system?

I am working on a online platform and need some help and advice with my architecture.

Problem: I am connecting multiple different partner systems (number is increasing) to my system which allows me to create and deactivate users in the partner systems backend. Right now I am forcing every partner to implement the same two REST-API web services (to CREATE and DEACTIVATE users) on their side so that I can connect to them with simple AJAX calls (see attached screenshot)

Question: Every partner has a different system and I would like to make the partner’s effort and integration easier. Is there a better way to standardize the integration of all partner’s to my system since they are all implementing the same two web services?

I appreciate every suggestion

Thanks enter image description here

Is there a better way to integrate different partner systems to my system?

I am working on a online platform and need some help and advice with my architecture.

Problem: I am connecting multiple different partner systems (number is increasing) to my system which allows me to create and deactivate users in the partner systems backend. Right now I am forcing every partner to implement the same two REST-API web services (to CREATE and DEACTIVATE users) on their side so that I can connect to them with simple AJAX calls (see attached screenshot)

Question: Every partner has a different system and I would like to make the partner’s effort and integration easier. Is there a better way to standardize the integration of all partner’s to my system since they are all implementing the same two web services?

I appreciate every suggestion

Thanks enter image description here