MathType for TinyMCE not working on Chrome(Works on Firefox)

I’m using MathType for TinyMCE in WordPress to write formulas and display them on the front end. But for some reason, it works fine on Firefox and displays properly but for Chrome it is not working.

This is how it displays on Firefox

enter image description here

This is how it is displayed on Chrome

enter image description here

it is working fine on Firefox. I want it to work with Chrome as well. What can I do to achieve this?

export numbers in EngineeringForm not working

I have a table containing some small numbers and I must export it to a file with the EngineeringForm format, i.e. the xxEyy format. All well and good with EngineeringForm, I get what I want in Mathematica:

EngineeringForm[data[[300 ;; 305, 2]], NumberFormat -> (Row[{#1, "E", #3}] &)] 

and the output is:

{61.7082E-21,70.9711E-21,81.1444E-21,93.1915E-21,106.482E-21,121.853E-21} 

But if I export this with:

Export["file.dat",  Table[   EngineeringForm[data[[i, 2]],      NumberFormat -> (Row[{#1, "E", #3}] &)],   {i, 1, Length[data]}   ],  "Table", "FieldSeparators" -> "    "] 

I get the following in the exported file:

EngineeringForm[6.170824822598857*^-20, NumberFormat -> (Row[{#1, "E", #3}] & )] EngineeringForm[7.097113136522312*^-20, NumberFormat -> (Row[{#1, "E", #3}] & )] EngineeringForm[8.114441559781487*^-20, NumberFormat -> (Row[{#1, "E", #3}] & )] EngineeringForm[9.319148947863342*^-20, NumberFormat -> (Row[{#1, "E", #3}] & )] EngineeringForm[1.0648228685547918*^-19, NumberFormat -> (Row[{#1, "E", #3}] & )] EngineeringForm[1.2185263423417555*^-19, NumberFormat -> (Row[{#1, "E", #3}] & )] 

This puzzles me to no end. I don’t get what I am doing wrong. This exporting of data business in mathematica I find very very confusing! Don’t get me started on exporting publication ready figures, but that’s a different discussion.

Cheers

Unreal Engine 4- Post Processing material isnt working on different viewports except perspective

I would like to render a silhouette of models, I found stencil would be the best way to capture. But when I am working with stencil post-process material its does not work with other viewports except perspective. Post fx material already enabled in the different view modes.

enter image description here

enter image description here

Sprite sorting is working fine but tilemap sorting is working the opposite way I want it to [duplicate]

I provided some screenshots to display what I’m talking about. The blue tile is a sprite, and the bushes are made from tilemap, each being 4 16×16 tiles. My transparency sort axis is set to 0,1,0. I’ve tried messing with the Z value in the axis as well to no avail. I’ll also point out that if I switch my sort axis to 0, -1, 0, the tile map sorting begins to work and the sprite sorting stops working. behind sprite

in front of sprite

in front of tilemap behind tilemap

page.php not working in my website [closed]

enter image description here

Fatal error: Uncaught Error: Call to undefined function woodmart_get_content_class() in /home/u9766796/public_html/wp-content/themes/woodmart/woodmart2/page.php:17 Stack trace: #0 /home/u9766796/public_html/wp-includes/template-loader.php(106): include() #1 /home/u9766796/public_html/wp-blog-header.php(19): require_once('/home/u9766796/...') #2 /home/u9766796/public_html/index.php(17): require('/home/u9766796/...') #3 {main} thrown in /home/u9766796/public_html/wp-content/themes/woodmart/woodmart2/page.php on line 17

I have shopping website but I’m new to WordPress and i downloaded All in One SEO plugin even though I have Yoast SEO on my site after that my site crashed and became inaccessible even if I removed the plugin from cpanel. I now get this page.php problem. How can I solve this problem and reopen my site?

Unity DontDestroyOnLoad not always working after Android build

I’ve been using this small script as a component to any object I want to not be destroyed at scene loading.

public class DontDestroy : MonoBehaviour {     void Start()     {         DontDestroyOnLoad(gameObject);     } } 

It has been working fine. It works for my GameOver canvas which I’ve been using for a long time whilst making the game.

Today I added the same script to a new AndroidControls Canvas I made. In the Editor it worked fine. Then I built it for Android to run on my physical phone (Galaxy S10). It gave me a Null exception.

It turned out to be caused by the AndroidControls Canvas being destroyed between scene loading (even though as I say, I tested in Editor for a few runs and it didnt get destroyed). And it gets a little weirder because after the attempted build to APK, and fail on physical device, it then failed to work in the editor. It continues to not work in each test after this in Editor, however if I remove the component and add it again, the entire process then repeats.

Please help as I don’t have a clue how to start fixing this. The only thing I can imagine it being wrong is it started as soon as I used this script on two canvas’s simultaneously. (I highly doubt I am correct but it’s the only thing I could notice at all that might be causing this).

This picture actually shows my DontDestroy component is attached to Canvas_AndroidControls, but in the Hierarchy you can already see that it is not in the DontDestroyOnLoad section (excuse the pink overlay for play-mode):

enter image description here

Maybe relevant, here are some of my specs:

Win 10 Unity 2020.3.5f1 (Just downloaded NDK/SDK for Android today via Unity Modules) Android 11 (Samsung Galaxy S10) 

Redirect stop working

I am building a Members only WordPress site using Astra Theme with WooCommerce, WooCommerce Cart Abandonment Recovery, Beaver Builder Plugin (Lite Version), Ultimate Addons for Beaver Builder – Lite, Carousel Slider, My Custom Functions, New User Approve, Peter’s Login Redirect, Redirection, Shortcode in Menus, Starter Templates, Theme My Login, Tuxedo Big File Uploads and WP-MLM as active Plugins.

It works 100% the way I wanted it to work on my localhost, but when I go live on the server everything works except the Redirections if I activate the WP-MLM Plugin. When the WP-MLM Plugin is activated I cannot Logout. If I attempt to Logout I get a blank screen. If I refresh I get a message "You are attempting to log out of MySite" "Do you really want to log out?" although I have deactivated this in functions.php with this code:

function wp_nonce_ays( $  action ) {     if ( 'log-out' === $  action ) {         $  html = sprintf(             /* translators: %s: Site title. */             __( 'You are attempting to log out of %s' ),             get_bloginfo( 'name' )         );         $  html       .= '</p><p>';         $  redirect_to = isset( $  _REQUEST['redirect_to'] ) ? $  _REQUEST['redirect_to'] : '';         $  html       .= sprintf(             /* translators: %s: Logout URL. */             __( 'Do you really want to <a href="%s">log out</a>?' ),             wp_logout_url( $  redirect_to )         );     } else {         $  html = __( 'The link you followed has expired.' );         if ( wp_get_referer() ) {             $  html .= '</p><p>';             $  html .= sprintf(                 '<a href="%s">%s</a>',                 esc_url( remove_query_arg( 'updated', wp_get_referer() ) ),                 __( 'Please try again.' )             );         }     }      wp_die( $  html, __( 'Something went wrong.' ), 403 ); } 

I hope someone can give me some insight on what I am doing wrong? All successful logout’s must be redirected to the login page as was set up in Peter’s Login Redirect Plugin.

Run calculation not working in sub query, “does not exist”

PostgreSQL 13.2 (Debian 13.2-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit 

I have a query that provides the count of 2 things over 2 time periods:

  • time period of this week, start of the week (Sunday/Monday midnight) -> today
  • time period of last week, start of last week (Sunday/Monday midnight) -> today but last week

What I would like is to also perform a calculation on the two "car" count ints that are returned and provide this with the query result.

I can of course do this in the consuming app, but I’d love to be able to do it in my SQL.

Working SQL

This is the base SQL and is what I currently have and working:

WITH last_week AS (   SELECT COUNT(car_name) as car_count_last_week   FROM car_store   WHERE car_name = 'awesome'   AND car_time >= date_trunc('week', CURRENT_DATE - INTERVAL '1 week')   AND car_time <= CURRENT_DATE - INTERVAL '6 days' ), current_week AS (   SELECT COUNT(car_name) AS car_count_current_week   FROM car_store   WHERE car_name = 'awesome'   AND car_time >= date_trunc('week', CURRENT_DATE)   AND car_time <= CURRENT_DATE ) SELECT car_name,   date_trunc('week', CURRENT_DATE - INTERVAL '1 week') AS start_of_last_week,   CURRENT_DATE - INTERVAL '6 days' AS today_but_last_week,   date_trunc('week', CURRENT_DATE) AS start_of_current_week,   CURRENT_DATE AS today,   car_count_last_week,   car_count_current_week   FROM car_store   CROSS JOIN last_week, current_week   WHERE car_name = 'awesome'   GROUP BY car_name, car_count_last_week, car_count_current_week   ORDER BY car_name; 

Setup DB table

CREATE TABLE IF NOT EXISTS car_store (      car_id INT GENERATED ALWAYS AS IDENTITY,      car_time TIMESTAMP NOT NULL,      car_name VARCHAR(255) NOT NULL,      PRIMARY KEY(car_id)   )  INSERT INTO car_store(car_name, car_time) VALUES ('awesome', '2021-05-03 15:28:00.116594'); INSERT INTO car_store(car_name, car_time) VALUES ('awesome', '2021-05-11 16:13:07.217903');  INSERT INTO car_store(car_name, car_time) VALUES ('awesome', '2021-05-01 18:03:27.217903');  INSERT INTO car_store(car_name, car_time) VALUES ('awesome', '2021-05-14 18:03:27.217903');  INSERT INTO car_store(car_name, car_time) VALUES ('awesome', '2021-05-12 18:03:27.217903');  INSERT INTO car_store(car_name, car_time) VALUES ('awesome', '2021-05-13 18:03:27.217903');  

Thing that causes error

I would like add the following code – to calculate difference_between_weeks:

ROUND(car_count_current_week/(car_count_last_week/100) - 100)     AS difference_between_weeks 

I have tried calculating in the columns, I have tried adding another sub query. But I don’t seem to be able to calculate the difference_between_weeks as it tells me "does not exist" or ERROR: division by zero

Full SQL that errors

An example of the SQL with the added code that errors:

WITH last_week AS (   SELECT COUNT(car_time) as car_count_last_week   FROM car_store   WHERE car_name = 'awesome'   AND car_time >= date_trunc('week', CURRENT_DATE - INTERVAL '1 week')   AND car_time <= CURRENT_DATE - INTERVAL '6 days' ), current_week AS (   SELECT COUNT(car_time) AS car_count_current_week   FROM car_store   WHERE car_name = 'awesome'   AND car_time >= date_trunc('week', CURRENT_DATE)   AND car_time <= CURRENT_DATE ) SELECT car_name,   date_trunc('week', CURRENT_DATE - INTERVAL '1 week') AS start_of_last_week,   CURRENT_DATE - INTERVAL '6 days' AS today_but_last_week,   date_trunc('week', CURRENT_DATE) AS start_of_current_week,   CURRENT_DATE AS today,   car_count_last_week,   car_count_current_week,   ROUND(car_count_current_week/(car_count_last_week/100)) - 100 AS difference_between_weeks   FROM car_store   CROSS JOIN last_week, current_week   WHERE car_name = 'awesome'   GROUP BY car_name, car_count_last_week, car_count_current_week   ORDER BY car_name; 

Returned error

I get the following error:

ERROR:  division by zero SQL state: 22012 

I feel like I am close but I also feel this may not be possible? Any pointers to what I am missing would be hugely appreciated.

Please let me know if I have missed something?

Thanks

Unity 2D animated tiles library: IsSelected variable not working or not present within RuleTileEditor.cs

I have just tried downloading a library which will allow me to add animated tiles to unity. I have been following this tutorial:http://shadowpeakstudios.com/2018/10/22/unity-tutorial-animated-tiles/

It told me to download this library in order to work the animated tiles: https://github.com/Unity-Technologies/2d-extras

After this the tutorial told me to unzip the library and place it into my assets folder. It loaded into my assets folder and then got the following error:

Assetsd-extras-masterd-extras-master\Editor\Tiles\RuleTile\RuleTileEditor.cs(277,26): error  CS1061: 'ReorderableList' does not contain a definition for 'IsSelected' and no accessible extension  method 'IsSelected' accepting a first argument of type 'ReorderableList' could be found (are you  missing a using directive or an assembly reference?) 

Does anyone perhaps know why this error is occuring.

Created Domain Accounts in WHM/Cpanel but are not Working?

Recently I created an EC2 instance to install WHM/cPanel in Amazon Web Services. After going through all installations and configurations, managed to run it perfectly. Though I haven’t purchased a license for using WHM/cPanel Software, am still running on trial version, so I have created two domain accounts for testing but whenever I try to run the domain in different browsers, I get this error;

Hmmm… can’t reach this page
Check if there is a typo in www.domain-name.com
If spelling is correct, try running Network Diagnostics.
DNS_PROBE_FINISHED_NXDOMAIN

Could this be as a result of running a trial version of WHM/cPanel or all domain accounts I register nor create in whm are not being considered.