## what wrong am i doing with SOAP request, getting error invalid timeout formats [closed]

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><SecurityHeader xmlns="http://services.medconnect.net/submissionportal"><UserName>2143883</UserName><Password><![CDATA[I3zt!7&W]]></Password></SecurityHeader></soap:Header><soap:Body><SubmitSync xmlns="http://services.medconnect.net/submissionportal"><request><![CDATA[ISA*00*          *00*          *ZZ*EXPEDIUM       *30*204202692      *200904*0419*^*00501*007281118*0*P*:~GS*HS*EXPEDIUM*204202692*20200904*0419*7281119*X*005010X279A1~ST*270*007281120*005010X279A1~BHT*0022*13*7281120*20200904*0419~HL*1**20*1~NM1*PR*2*BCBS OF NORTH CAROLINA*****PI*10383~HL*2*1*21*1~NM1*1P*2*BEAUFORT COUNTY HEALTH DEPARTMENT*****XX*1679576763~REF*TJ*566001521~PRV*PE*PXC*261QP0905X~HL*3*2*22*0~TRN*1*1013076869*9919649646~NM1*IL*1*BROWN*JEAN*M***MI*KBOW1747326401~REF*SY*141117752~DMG*D8*19650504*F~DTP*291*D8*20200904~EQ*30~SE*16*007281120~GE*1*7281119~IEA*1*007281118]]></request><requestFormat>EDI</requestFormat><responseFormat>EDI</responseFormat><synchronousTimeout>00:01:00</synchronousTimeout><submissionTimeout>00:01:00</submissionTimeout></SubmitSync></soap:Body></soap:Envelope>  Response ----------- <faultstring>Invalid Timeout Format: , Valid Format: d.hh:mm:ss, Note: Hours &lt;= 23, Minutes &lt;= 59, Seconds &lt;= 59</faultstring>  please advise on this 

## What is my error trying to create a new table in the database?

I tried creating the tables in different ways and I always get the same error: "Error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘( …… at line 1 of the WordPress database for the CREATE TABLE IF NOT query EXISTS"

    require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );          global $wpdb,$  rs_plugin_db_version, $table_name_clientes,$  table_name_promociones;          $charset_collate =$  wpdb->get_charset_collate();          $wpdb->query( "CREATE TABLE IF NOT EXISTS$  table_name_clientes (             id int(11) NOT NULL,             logo text NOT NULL,             name text NOT NULL,             whatsapp text DEFAULT '' NOT NULL,             instagram text DEFAULT '' NOT NULL,             facebook text DEFAULT '' NOT NULL,             PRIMARY KEY  (id)         ) $charset_collate ENGINE = InnoDB" ); dbDelta();$  wpdb->query(         "CREATE TABLE IF NOT EXISTS $table_name_promociones ( id int(11) NOT NULL, img text NOT NULL, title text NOT NULL, content text NOT NULL, owner int(11) NOT NULL, contact int(11) NOT NULL, PRIMARY KEY (id), FOREIGN KEY (owner) REFERENCES$  table_name_clientes(id) ON DELETE CASCADE ON UPDATE CASCADE         ) $charset_collate ENGINE = InnoDB" ); dbDelta();  In one of the tables I need to create a foreign key, if I didn’t misunderstood dbDelta() does not support them and therefore my last attempt was with$ wpdb->query, but with or without foreign key the result is the same.

maybe my mistake is obvious, but honestly I can’t find it

## When does NDSolve issue zero step size error NDSolve::ndsz?

I want to detect directly when step size becomes "effectively" zero. The below example from the documentation throws the error message as expected:

s = {}; NDSolve[{(2 - f[x]) f'[x] == f[x], f[0] == 1}, f, {x, 0, 5}, StepMonitor :> AppendTo[s, x]];  NDSolve::ndsz: At x == 0.3862940268757776, step size is effectively zero; singularity or stiff system suspected. 

The below code indicates that none of the actual steps taken has zero length.

AnyTrue[Differences@s, PossibleZeroQ]  (* False *) 

How does NDSolve decide that the step size is zero? I can of course capture the NDSolveValue::ndsz error, but I want to know when exactly (depending on what parameters) the error is issued. In some extreme cases, NDSolve may generate an InterpolatingFunction solution that has practically zero domain length (but not according to PossibleZeroQ).

## Error in nonlinearmodel fit for a function with Definite Integral and complex number

I am trying to fit a function and Here is the code which I am trying, Please find the data here dataset

Data = Import[    "E:\Shelender\codes\Mathematica\Aelastic \ relaxation\datat.asc"]; real = Data[[All, {1, 2}]]; imag = Data[[All, {1, 3}]]; w = 1.26*10^8; k = 1.38*10^-23;  f[H_, s_, d_] := ((1/(Sqrt[2*Pi]*s*H))*Exp[(-(Log[(H/d)])^2/(2*s^2))]) dynamic[x_?NumericQ, s_?NumericQ, d_?NumericQ, A_?NumericQ,    t_?NumericQ] :=   A*(1 - NIntegrate[      f[H, s, d]/((1 + (I*w*t*Exp[((H)/(k*x))]))), {H,        0, \[Infinity]}])  fit = ResourceFunction["MultiNonlinearModelFit"][    Rationalize[{real, imag}, 0],     ComplexExpand[ReIm@dynamic[x, s, d, A, t]],     Rationalize[{{A, 1.0*10^-4}, {t, 1.0*10^-12}, {d, 10}, {s, 0.25}},      0], {x}, PrecisionGoal -> 3, AccuracyGoal -> 3];  fit["ParameterTable"] Show[ListPlot[{real, imag}],   Plot[{fit[1, x], fit[2, x]}, {x, 0,     Max[real[[All, 1]], imag[[All, 1]]]}, PlotRange -> All],   PlotRange -> All] 

Although I am not getting any error but fit values are completely off

## What does it mean by the error “10 is not a valid variable”?

I wrote a very basic test function in Mathematica (I am the absolute beginner)

Fun1[x_] := Module[ {y, z, t}, y = Min[x + 10000, 500]; z = y + 24; t = y + z; t ] 

However, when I try to solve for the root Solve[Fun1[x] == 0, x], I was never able to get the expected value, but this error occurred "… Solve::ivar: 10 is not a valid variable".

what does it mean? and how to overcome this?

Many thanks Tien

## Uncaught Error: Class ‘Redis’ errors on a site I’ve transfered to new hosting

I’ve been given a site that I need to install on my server. The site was made by someone else and it seems to have redis installed.

I get errors such as (paths altered/truncated in the error msg for privacy reasons):

Fatal error: Uncaught Error: Class ‘Redis’ not found in wp-content\object-cache.php:732 Stack trace: #0 wp-content\object-cache.php(171): WP_Object_Cache->__construct() #1 wp-includes\load.php(638): wp_cache_init() #2 wp-settings.php(131): wp_start_object_cache() #3 wp-config.php(94): require_once(‘\path\…’) #4 wp-load.php(37): require_once(‘\path\gree…’) #5 wp-blog-header.php(13): require_once(‘\path\…’) #6 index.php(17): require(‘\path\…’) #7 {main} thrown in wp-content\object-cache.php on line 732

What’s really odd is that they didn’t give me the WP codebase, just the wp-content folders with theme, plugins, uploads.

So the entire wp codebase, wp-config etc are all defaults that I’ve just obtained from the current latest version at WordPress.org.

So if the wp-config is as default, how can some redis like system be coming into play? I’ve never had this issue before and transferred 101 pre-build WP sites between servers.

Can anyone assist ?

## Is machine epsilon the largest relative error in representing a number as a floating point number?

Is machine epsilon the largest relative error in representing a number as a floating point number?

There are so many definitions of machine epsilon. I’m starting to get confused. Isn’t the machine epsilon the smallest?

## PostgreSQL 9.6.17 COALESCE function error

I’m trying a SQL query with the function COALESCE in PostgreSQL 9.6.17, but it produces an error:

invalid syntax for type double precision: ""

Example query:

SELECT COALESCE(date_part('year', s.date_pp),'') FROM public.sendoc s. `

This query is working on PostgreSQL 9.3.17.

How to get around the error at the server DB level without changing the source code of the program?

## Distributional error probability of deterministic algorithm implies error probability of randomized algorithm?

Consider some problem $$P$$ and let’s assume we sample the problem instance u.a.r. from some set $$I$$. Let $$p$$ be a lower bound on the distributional error of a deterministic algorithm on $$I$$, i.e., every deterministic algorithm fails on at least a $$p$$-fraction of $$I$$.

Does this also imply that every randomized algorithm $$\mathcal{R}$$ must fail with probability $$p$$ if, again, we sample the inputs u.a.r. from $$I$$?

My reasoning is as follows: Let $$R$$ be the random variable representing the random bits used by the algorithm. \begin{align} \Pr[ \text{ \mathcal{R} fails}] &= \sum_\rho \Pr[ \text{ \mathcal{R} fails and R=\rho }] \ &= \sum_\rho \Pr[ \text{ \mathcal{R} fails} \mid R=\rho] \Pr[ R=\rho ] \ &\ge p \sum_\rho \Pr[ R=\rho ] = p. \end{align} For the inequality, I used the fact that once we have fixed $$R = \rho$$, we effectively have a deterministic algorithm.

I can’t find the flaw in my reasoning, but I would be quite surprised if this implication is true indeed.