How to integrate MathType for Froala in Vue.js project

I am trying to integrate the Wiris MathType editor into Froala (v3.2.6), which is embeded in a Vue project. After following the instructions from the official documentation (https://www.npmjs.com/package/@wiris/mathtype-froala3), I keep getting this error in the browser:
“Uncaught SyntaxError: Unexpected token ‘<‘ at wiris.js:1” even though everything seems to be fine in the public/index.html where the module is loaded (via script tag).

Then, tried to do it differently and import the module in main.js instead of loading it in index.html, but then I got a different error, saying:

Uncaught ReferenceError: FroalaEditor is not defined
at Module.eval (wiris.js?3c99:3)

Any idea how to solve this? Did someone manage to load the module the way the documentation describes it?

theming – How do I integrate a custom header and footer?

I need to add a custom header to a theme that I am currently building.

The only way I can seem to get the header and footer to show up on the page is to hard code it into the page.tpl.php file. I’ve tried to use the include trick, but that isn’t working.

The header and the footer need to appear on every page.

Any help?

9 – Integrate webform submissions with Google sheet

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

c# – web3 integrate existing ERC20 contract

I want to integrate USDT (ERC20) contract for my website, I will generate a deposit address for user. And I will withdraw all the balance into my own wallet end of the day.

I refer https://etherscan.io/token/0xdac17f958d2ee523a2206206994597c13d831ec7 , but only show a contract address: 0xdac17f958d2ee523a2206206994597c13d831ec7

How do i using Web3 to integrate it? Is it the way i do is correct?

``````        var contractABI = @"({""name"":""balanceOf"",""name"":""totalSupply"",.......})";

var web3 = new Web3(?????); //what url should I put here?

var getTotalSupply = contract.GetFunction("totalSupply");
var totalSupply = await getTotalSupply.CallAsync<UInt64>();
``````

How to integrate images into text unity?

Here are two screenshots from Stellaris where images are seamlessly integrated into the text. How can I achieve this in unity?

calculus and analysis – How to integrate faster

I always wanted to know how to speed up my integral computation in mathematica. Is there some techniques that i am unaware to make the integration faster.

Here an example:

``````func = (2 ((Mu)G2-(Mu)Pi2) (5 x^2+5 x (z-2)-4 ((Eta)-(Rho)+z-1)))/mb^2-12 (x+z-2) (-(Eta)-(Rho)+x+z-1)
``````

The integration is given as:

``````Integrate(func, {x, 2*Sqrt((Eta)), 1 + (Eta) - (Rho)},
{z, -((-(2*((Eta) - (Rho) + Sqrt(x^2 - 4*(Eta)) - 1)) + x*(Sqrt(x^2 - 4*(Eta)) - 2) + x^2)/
(Sqrt(x^2 - 4*(Eta)) + x - 2)), (2*(-(Eta) + (Rho) + Sqrt(x^2 - 4*(Eta)) + 1) -
x*(Sqrt(x^2 - 4*(Eta)) + 2) + x^2)/(Sqrt(x^2 - 4*(Eta)) - x + 2)},
Assumptions -> {0 < (Rho) < 1, 0 < (Eta) < 1, (Rho) < (Eta), (Eta) + 1 > 2*Sqrt((Eta)) + (Rho),
Element(mb, Reals)}, GenerateConditions -> False)
``````

On my laptop i need 42.219 s to solve the integral. However, my integrals are getting more and more complicated so to learn new optimization methods would be much appreciated.

python – Functions involving integrate

I’d like to define a function f(x), and then define another function that it its integral.

``````from sympy import *
x = symbols('x')
f = lambda x: x**2
``````

If I do this:

``````g = lambda x: integrate(f(x),x)
g(2)
``````

it fails when I try to enter a value for x. This is because it’s holding the right-hand side unevaluated until I call it. It passes the 2 into the `integrate`, and tries to integrate with respect to 2.

Is there a way to evaluate the integral symbolically in terms of x, and then define the function g(x) with that result?

calculus and analysis – Why so big difference between results of Integrate and NIntegrate?

Studying an interesting article of Daniel Lichtblau, I consider a variation of an example from it, calculating an improper integral

``````Integrate(RealAbs(Sin(x - y))^(-2/3), {x, 0, Pi}, {y, 0, Pi})
``````

`-((12 Sqrt((Pi)) Gamma(-(1/3)) HypergeometricPFQ({1/6, 1/2, 2/3}, {7/6, 7/6}, 1))/ Gamma(1/6))`

This is not very useful analytic expression, so

``````N(%)
``````

`16.7126`

Then I compare that result with the numeric one

``````NIntegrate(RealAbs(Sin(x - y))^(-2/3), {x, 0, Pi}, {y, 0, Pi},
Exclusions -> {y == x}, AccuracyGoal -> 3, PrecisionGoal -> 3)
``````

`22.8915`

The latest result is produced without any warning. How to explain so big difference between the numbers? Could this difference be decreased? Which result is more reliable?

calculus – Shortest way to integrate \$intsqrt{frac{x}{1-x}}dx\$

I’m looking for the shortest way to integrate $$intsqrt{frac{x}{1-x}}dx$$

All the other integration questions I’ve worked through in the same book section were pretty straightforward, whereas this one seems to take me through more steps than seems reasonable based on the other questions.

Any suggestions are appreciated!

Integrate conjugate transpose

I can’t find the

Integrate[conjugate Transpose[u[x, t]] *D[u[x, t], {x, 1}],x]

In mathematica.