Yellow page error for a specific keyword

I have used this keyword in YP a few times successfully, however just lately It will run about 96 rows and sends back 20 errors consistently. As a result it ends early. I’ve tried resuming from previous jobs and again it’s the same thing. The error is:

404 HTTP/1.1 404 Not Found accessing https://www.yellowpages.com/search?searc…&s=default

there are 20 all specific to a location.

If I change the keyword it works and I’ll get 500K but many of the records aren’t related. Once again, I’ve used the single keyword in the past and it worked, now it errors out.

Has anyone seen this happen?

Thanks!

Is there an error in the universal monster rules for table:natural attacks by size?

I am working on a druid character and just getting around to wild shapes natural attacks and I spotted what should be an error in its damage progression under the universal monster rules which conflicts with the newer damage dice progression rules.

Official Damage Dice Progression Chart $ $ \begin{array}{l|l} \text{Level} & \text{Dice}\ \hline 0 & 0 \ 1 & 1d1 \ 2 & 1d2\ 3 & 1d3\ 4 & 1d4\ 5 & 1d6\ 6 & 1d8\ 7 & 1d10\ 8 & 2d6\ 9 & 2d8\ 10 & 3d6\ 11 & 3d8\ 12 & 4d6\ 13 & 4d8\ 14 & 6d6\ 15 & 6d8\ 16 & 8d6\ 17 & 8d8\ 18 & 12d6\ 19 & 12d8\ 20 & 16d6\ \end{array} $ $

Here we have the chart for Bite

$ $ \begin{array}{l|l|l} \text{Size} & \text{Dice Level} & \text{Dice}\ \hline Fine & 1 & 1d1\ Diminutive & 2 & 1d2\ Tiny & 3 & 1d3\ Small & 4 & 1d4\ Medium & 5 & 1d6\ Large & 6 & 1d8\ Huge & 8 & 2d6\ Gargantuan & 9 & 2d8\ Colossal & 12 & 4d6\ \end{array} $ $

Here we can clearly see that huge to gargantuan is only 1 and not 2, and from gargantuan to colossal is 3 instead of 2. If gargantuan was changed from 9 to 10 then the chart would be correct, its the only value that’s off. So is this just a mistake or is this actually what its suppose to be?

Error while giving initial condition in NDSolve

I am trying to solve following differential equation $ $ \frac{d^2y}{dx^2}+(a+b \frac{2}{\pi}\tan^{-1} x)y=0$ $ with the initial condition $ y(-10)=e^{10i\sqrt{a+b}}$ and $ y'(-10)=-i\sqrt{a+b}e^{10i\sqrt{a+b}}$ .

To implement it I write the following code

s = ParametricNDSolve[{y''[x] + (a + b (2 + 2/Pi ArcTan[x])) y[x] ==  0, y[-10] = Exp[I 10 Sqrt[a + b]], y'[-10] = -I Sqrt[ a + b]*Exp[ I 10 Sqrt[a + b]] }, y, {x, -10, 10}, {a, b}] 

But I am getting an error that ParamatericNDSolve expects equation or list of equations instead of $ e^{10i\sqrt{a+b}}$ in the first argument. Can anyone point me out where am I making the mistake?

Foreign Key Constraint does not exist ERROR

I keep getting this error in my psql database;

bikefacility=# ERROR:  syntax error at or near "c" bikefacility-# LINE 1: c bikefacility-#         ^ bikefacility-# bikefacility=# ALTER TABLE bicycle ADD CONSTRAINT fk_maintenance_contact_person FOREIGN KEY (maintenance_contact_person) REFERENCES maintenance(maintenance_contact_person); ERROR:  syntax error at or near "ERROR" LINE 1: ERROR:  syntax error at or near "c"         ^ bikefacility=# ERROR:  column "maintenance_contact_person" referenced in foreign key constraint does not exist bikefacility-# bikefacility=# ALTER TABLE bicycle ADD CONSTRAINT fk_rental_period FOREIGN KEY (rental_period) REFERENCES rental(rental_period); ERROR:  syntax error at or near "ERROR" LINE 1: ERROR:  column "maintenance_contact_person" referenced in fo...         ^ bikefacility=# ERROR:  column "rental_period" referenced in foreign key constraint does not exist bikefacility-# bikefacility=# ALTER TABLE bicycle ADD CONSTRAINT fk_terminal_id FOREIGN KEY (terminal_id) REFERENCES terminal(terminal_id); ERROR:  syntax error at or near "ERROR" LINE 1: ERROR:  column "rental_period" referenced in foreign key con...         ^ bikefacility=# ERROR:  column "terminal_id" referenced in foreign key constraint does not exist 

Here is the code I’m using

CREATE TABLE member (   member_id INTEGER PRIMARY KEY,   member_fname VARCHAR(15) NOT NULL,   member_lname VARCHAR(15) NOT NULL,   member_status VARCHAR(15) NOT NULL,   member_address VARCHAR(10) NOT NULL,   member_email VARCHAR(30) NOT NULL );  CREATE TABLE bicycle (   bicycle_id INTEGER PRIMARY KEY,   bicycle_brand VARCHAR(25) NOT NULL,   bicycle_model VARCHAR(25) NOT NULL,   bicycle_colour VARCHAR(15) NOT NULL,   bicycle_type VARCHAR(20) NOT NULL,   bicycle_size VARCHAR(10) NOT NULL,   bicycle_availability VARCHAR(20) NOT NULL  );  ALTER TABLE bicycle ADD CONSTRAINT fk_bicycle_pickup_date FOREIGN KEY (bicycle_pickup_date) REFERENCES rental(bicycle_pickup_date); ALTER TABLE bicycle ADD CONSTRAINT fk_maintenance_contact_person FOREIGN KEY (maintenance_contact_person) REFERENCES maintenance(maintenance_contact_person); ALTER TABLE bicycle ADD CONSTRAINT fk_terminal_id FOREIGN KEY (terminal_id) REFERENCES terminal(terminal_id); ALTER TABLE bicycle ADD CONSTRAINT fk_rental_period FOREIGN KEY (rental_period) REFERENCES rental(rental_period);  CREATE TABLE company (   company_id INTEGER PRIMARY KEY,   company_name VARCHAR(20) NOT NULL,   company_contact VARCHAR(50) NOT NULL,   company_address VARCHAR(50) NOT NULL );  CREATE TABLE sponsor (   sponsor_id INTEGER PRIMARY KEY,   sponsor_name VARCHAR(15) NOT NULL,   sponsor_contact VARCHAR(30) NOT NULL,   sponsor_period DATE NOT NULL,   sponsor_address VARCHAR(50) NOT NULL,   sponsor_fee DECIMAL (6, 2) NOT NULL );  ALTER TABLE sponsor ADD CONSTRAINT fk_company_name FOREIGN KEY (company_name) REFERENCES company(company_name); ALTER TABLE sponsor ADD CONSTRAINT fk_bicycle_availability FOREIGN KEY (bicycle_availability) REFERENCES bicycle(bicycle_availability);  CREATE TABLE terminal (   terminal_id INTEGER PRIMARY KEY,   terminal_address VARCHAR(50) NOT NULL,   terminal_minstorage VARCHAR(50) NOT NULL,   terminal_maxstorage VARCHAR(50) NOT NULL );  ALTER TABLE terminal ADD CONSTRAINT fk2_maintenance_contact_person FOREIGN KEY (maintenance_contact_person) REFERENCES maintenance(maintenance_contact_person); ALTER TABLE terminal ADD CONSTRAINT fk2_bicycle_availability FOREIGN KEY (bicycle_availability) REFERENCES bicycle(bicycle_availability); ALTER TABLE terminal ADD CONSTRAINT fk_bicycle_id FOREIGN KEY (bicycle_id) REFERENCES bicycle(bicycle_id);  CREATE TABLE rental (   rental_no INTEGER PRIMARY KEY,   rental_period DATE NOT NULL,   bicycle_pickup_date DATE NOT NULL );  ALTER TABLE rental ADD CONSTRAINT fk2_bicycle_id FOREIGN KEY (bicycle_id) REFERENCES bicycle(bicycle_id); ALTER TABLE rental ADD CONSTRAINT fk2_terminal_id FOREIGN KEY (terminal_id) REFERENCES terminal(terminal_id);   CREATE TABLE bill (   bill_id INTEGER PRIMARY KEY,   bill_date DATE NOT NULL,   bill_total_amount DECIMAL(6, 2) NOT NULL,   payment_no INTEGER NOT NULL,   payment_date DATE NOT NULL,   payment_method VARCHAR(15) NOT NULL );  ALTER TABLE bill ADD CONSTRAINT fk3_bicycle_pickup_date FOREIGN KEY (bicycle_pickup_date) REFERENCES rental(bicycle_pickup_date);   CREATE TABLE maintenance (   maintenance_id INTEGER PRIMARY KEY,   maintenance_contact_person VARCHAR(15) NOT NULL,   maintenance_phone_number INTEGER NOT NULL,   maintenance_fee DECIMAL(6, 2) NOT NULL );  ALTER TABLE maintenance ADD CONSTRAINT fk3_bicycle_id FOREIGN KEY (bicycle_id) REFERENCES bicycle(bicycle_id); ALTER TABLE maintenance ADD CONSTRAINT  fk3_terminal_id FOREIGN KEY (terminal_id) REFERENCES terminal(terminal_id);    CREATE TABLE visitor (   visitor_id INTEGER PRIMARY KEY,   daypass_no INTEGER NOT NULL,   daypass_date DATE NOT NULL,   visitor_phone_number INTEGER NOT NULL,     visitor_fname VARCHAR(15) NOT NULL,   visitor_email VARCHAR(40) NOT NULL,   visitor_address VARCHAR(80) NOT NULL );  ALTER TABLE visitor ADD CONSTRAINT fk4_bicycle_id FOREIGN KEY (bicycle_id) REFERENCES bicycle(bicycle_id); ALTER TABLE visitor ADD CONSTRAINT fk_bill_id FOREIGN KEY (bill_id) REFERENCES bill(bill_id);  CREATE TABLE invoice (   invoice_id INTEGER PRIMARY KEY );  ALTER TABLE invoice ADD CONSTRAINT fk_customer_type FOREIGN KEY (customer_type) REFERENCES customer(customer_type); ALTER TABLE invoice ADD CONSTRAINT fk_rental_no FOREIGN KEY (rental_no) REFERENCES rental(rental_no); ALTER TABLE invoice ADD CONSTRAINT fk2_rental_period FOREIGN KEY (rental_period) REFERENCES rental(rental_period); ALTER TABLE invoice ADD CONSTRAINT fk5_bicycle_id FOREIGN KEY (bicycle_id) REFERENCES bicycle(bicycle_id); ALTER TABLE invoice ADD CONSTRAINT fk_bicycle_brand FOREIGN KEY (bicycle_brand) REFERENCES bicycle(bicycle_brand); ALTER TABLE invoice ADD CONSTRAINT fk_bicycle_model FOREIGN KEY (bicycle_model) REFERENCES bicycle(bicycle_model); ALTER TABLE invoice ADD CONSTRAINT fk_bicycle_size FOREIGN KEY (bicycle_size) REFERENCES bicycle(bicycle_size); ALTER TABLE invoice ADD CONSTRAINT fk2_bill_id FOREIGN KEY (bill_id) REFERENCES bill(bill_id); ALTER TABLE invoice ADD CONSTRAINT fk_bill_date FOREIGN KEY (bill_date) REFERENCES bill(bill_date); ALTER TABLE invoice ADD CONSTRAINT fk_bill_total_amount FOREIGN KEY (bill_total_amount) REFERENCES bill(bill_total_amount);   CREATE TABLE customer ( customer_id INTEGER PRIMARY KEY ); ALTER TABLE customer ADD CONSTRAINT fk_member_id FOREIGN KEY (member_id) REFERENCES member(member_id); ALTER TABLE customer ADD CONSTRAINT fk_visitor_id FOREIGN KEY (visitor_id) REFERENCES visitor(visitor_id); ALTER TABLE customer ADD CONSTRAINT fk_member_status FOREIGN KEY (member_status) REFERENCES member(member_status); ALTER TABLE customer ADD CONSTRAINT fk3_bill_id FOREIGN KEY (bill_id) REFERENCES bill(bill_id); ALTER TABLE customer ADD CONSTRAINT fk6_bicycle_id FOREIGN KEY (bicycle_id) REFERENCES bicycle(bicycle_id);  

I have a feeling the error ” foreign key does not exist ” is going to show up a lot. Could someone help me out, please? What’s wrong with my code? Thank you in advance!

Error messages generated in a table calculation prevent “good” elements of that table being accessed

If I make a batch fitting routine, something like:

FitResultsData =      Table[              SpectrumData = Import[SpectrumList[[i]]];                SpectrumFit = NonlinearModelFit[SpectrumData, Model, {a, b, c}, x];                  aFitOut = a /. SpectrumFit["BestFitParameters"];                  bFitOut = b /. SpectrumFit["BestFitParameters"];                     cFitOut = c /. SpectrumFit["BestFitParameters"];               {i, aFitOut , bFitOut, cFitOut},              {i, 1, Length[SpectrumList]}             ] 

and a fit fails completely, e.g. I get a Power::infy: Infinite expression 1/0.^2 encountered. error or something, I find that when it comes to going on to use FitResultsData after all Table[..] has finished fitting and executing no matter which row I select for example FitResultsData[[1]] the error Power::infy: Infinite expression 1/0.^2 encountered. will be returned. This happens even say the original source of the error was in spectrum i = 99.

Is there a method of escaping such errors, such that even though one spectrum fit might be bad, it doesn’t stop be accessing the 99% successful

Move form validation error messages to top of page

When a user registers on our site (using Ultimate Member plugin, but I think it’s a generic issue) and the form doesn’t validate, it reloads the page with an error message right down the bottom, where users don’t see it, and they assume the form submitted correctly. This seems like a crazy choice! Is there a way to move the error message to the TOP of the page, so it’s more obvious when the form submit fails?? Or scroll the page to the bottom when it loads? Thanks so much! Julie

I’m using PHP 7.1 but Hostgator says they are on 5.4, and Cron throws an error

Trying to make sense of this. Doing a quick phpinfo() I get:

PHP Version 7.1.14 System  Linux gatorxxxxx.hostgator.com n.nn.nnn-nnn.nnn.nnn.x86_64 #1 SMP Tue May 21 13:24:40 CDT 2019 x86_64 

But when I try to install a cron that hits a URL every 30 days for the Auto-Install-free-SSL plugin that I’ve been using for years on a different host, cron reports:

Your server is running PHP version 5.4.45 but WordPress 5.3.2 requires at least 5.6.20.

Got Hostgator on the phone and they reported that all shared hosts are still on 5.4.x which fits the error message, but if phpinfo() is showing I’m on 7.1… what the heck is actually going on here? How can I get cron to also use 7.1 so the command will execute?

Algorithm to position samples minimizing error

We have a 1D function f(x). We would like to approximate this function with a polyline of n points. How can we find the x position for these points so the polyline approximates f(x) with low error (not necessarily optimal but if it was, then even better)?

What algorithms are available to solve this problem? What are their trade-offs?

Example: the following two polylines have the same number of points but the second one approximates better the curve.

enter image description here