XAMPP MySQL service crash after reboot

Operating System: Window 10 64bit Video: https://youtu.be/HodTJxphn94

When I run mysql, it immediately exits. I think this happens every 3 months. Is there any way to solve this?

12:10:51  [mysql]   Attempting to start MySQL app... 12:10:52  [mysql]   Status change detected: running 12:10:54  [mysql]   Status change detected: stopped 12:10:54  [mysql]   Error: MySQL shutdown unexpectedly. 12:10:54  [mysql]   This may be due to a blocked port, missing dependencies,  12:10:54  [mysql]   improper privileges, a crash, or a shutdown by another method. 12:10:54  [mysql]   Press the Logs button to view error logs and check 12:10:54  [mysql]   the Windows Event Viewer for more clues 12:10:54  [mysql]   If you need more help, copy and post this 12:10:54  [mysql]   entire log window on the forums 


InnoDB: using atomic writes. [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions [Note] InnoDB: Uses event mutexes [Note] InnoDB: Compressed tables use zlib 1.2.11 [Note] InnoDB: Number of pools: 1 [Note] InnoDB: Using SSE2 crc32 instructions [Note] InnoDB: Initializing buffer pool, total size = 16M, instances = 1, chunk size = 16M [Note] InnoDB: Completed initialization of buffer pool [Note] InnoDB: 128 out of 128 rollback segments are active. [Note] InnoDB: Creating shared tablespace for temporary tables [Note] InnoDB: Setting file 'C:\xampp\mysql\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... [Note] InnoDB: File 'C:\xampp\mysql\data\ibtmp1' size is now 12 MB. [Note] InnoDB: Waiting for purge to start [Note] InnoDB: 10.4.17 started; log sequence number 44926144; transaction id 195314 [Note] InnoDB: Loading buffer pool(s) from C:\xampp\mysql\data\ib_buffer_pool [Note] Plugin 'FEEDBACK' is disabled. [Note] Server socket created on IP: '::'.``` 

Capturing variable after slash in domain

I’m developing an ecommerce website with WordPress / Shopify API. I’d like to be able to capture discount codes through the URL.

So if the discount code was code40, I’d like the enduser to be able to go to website.com/code40 and have that discount code automatically feed into the checkout. I’ve tried a few different methods, but I’m struggling to get a working solution. I have a good idea on how I’m going to feed the variable into checkout, but I’m struggling with capturing the data after the URL. Is this something I should do through HTACCESS/PHP or maybe JavaScript and a cookie? Any suggestions?

Wrong boundary in RegionPlot after RegionUnion

I have defined three regions, Slice1, Slice2 and Slice3.

Slice1 =    Polygon[{{0, 0}, {1, 0}, {1, 1/(Sqrt[3])}, {1/2, Sqrt[3]/2}}]; Slice2 =    Polygon[{{0, 0}, {-1, 0}, {-1, 1/(Sqrt[3])}, {-1/2, Sqrt[3]/2}}]; Slice3 =    Polygon[{{0,       0}, {-1/2, -Sqrt[3]/2}, {0, -2/Sqrt[3]}, {1/2, -Sqrt[3]/2}}];  CombinedSlice = RegionUnion[Slice1, Slice2, Slice3]; RegionPlot[CombinedSlice, AspectRatio -> Automatic] 

When I RegionPlot the combined plot, Slice3 does not have correct boundaries. The boundary shows up correctly when I plot Slice3 individually.

enter image description here

I am using Mathematica 12.0

add another html tag after li element in wp_nav_menu

I have a nav menu in footer. I just want to display it side by a <p> tag, I mean something like this

<ul> <li> <p>copyright C 2021</p> </li> <li> contact </li> <li> blog </li> </ul> 

this is my menu function

if ( function_exists( 'register_nav_menus' ) ) {     register_nav_menus(         array(           'top_nav_menu' => 'My Footer Menu'         )     ); 

and I’m calling it in footer

<?php if ( has_nav_menu( 'top_nav_menu' ) ) { ?>             <?php wp_nav_menu( array(                 'menu' => 'Footer Navigation Menu',                  'theme_location' => 'top_nav_menu',                  'menu_class' => 'footer-links'                 ));              ?>             <?php } else {?>             <ul class="sf-menu">                 <?php wp_list_pages( array('title_li' => '','sort_column' => 'menu_order')); ?>             </ul>             <?php } ?> 

How can I insert an extra <li> element just before its first <li> and add a <p> tag between that later added <li> element?

Is placing the folder after the page in the URL better for SEO?

I read on https://moz.com/learn/seo/url that google prioritizes the folder over the path/page. Which wold mean that a url such as:


would perform better than


This is something that could easily be done via a .htaccess URL redirect, but I’m wondering if it’s even worth the effort?

Does arcane ward come back after a polymorph?

In the description of polymorph, it states that

The target’s game statistics, including mental ability scores, are replaced by the statistics of the chosen beast.

And this sage advice clarifies the meaning of “game statistics”, which are meant to also include class features.

So it seems reasonable to interpret this as to say that an abjuration wizard does not have Arcane Ward up while under the effect of a polymorph spell, since it is a class feature. But when the wizard reverses to their original form, does the Arcane Ward come back up?

By the description in the PHB, p.115, there is a relevant remark:

Once you create the ward, you can’t create it again until you finish a long rest.

which suggests that it can end by some method. So when the effect of polymorph ends, does the wizard no longer have Arcane Ward up, therefore having to wait until the next long rest to be able to raise it again, or does it return in the same situation as immediately before polymorph entered into effect?

How can I keep a player from “shutting down” after a streak of bad rolls?

In my sessions I’ve repeatedly noted that after a few bad rolls, one of my players (age 20) seems to become reclusive and stop paying attention.

Now I’ve tried various methods to get the player to pay attention again, but it seems that no matter how much his PC is punished or rewarded in game, even to the point of almost dieing to a hefty bag of gold, that this player did not care. I’ve even tried abstract methods, and given him a verbal slap, getting the other players to laugh at his PCs expense just to see if he’d dignify his character. Complete disconnect. The Player didn’t even care.

A Few rounds later, the dice rolls are in his favor, and suddenly, he cares about the story again! Participation happens, and the players are moving nicely.

This is bad for both of us. For me because suddenly I’ve got a brain dead PC that is being lugged around, slowing the game. For him, because he isn’t enjoying the game.

How do I as a DM prevent the disconnect that happens when players are on a bad luck streak?

Does the light from Branding Smite persist after the target dies? [duplicate]

The players were exploring Castle Ravenloft. A trap separated the human paladin from the rest of the party and placed him in a deep pit with no light source. In looking for a way out, he accidently released and then began to fight a wight. This was initially quite bad as he was attacking with disadvantage, while the wight (with darkvision) was attacking twice with advantage. The paladin remedied this by casting Branding Smite, hitting the wight, and making it glow.

Branding Smite, emphasis mine:

The next time you hit a creature with a weapon attack before this spell ends, the weapon gleams with astral radiance as you strike. The attack deals an extra 2d6 radiant damage to the target, which becomes visible if it is invisible, and the target sheds dim light in a 5-foot radius and can’t become invisible until the spell ends.

After two more hits and some Divine Smite, the wight was dead. The paladin wanted to hack off a piece of the glowing wight corpse and use it as a light source to help him climb out of the pit (spell duration is Concentration – 1 minute, the paladin needed three rounds to climb out of the pit). I hesitated, because when the wight ceased to be undead and became just dead, it was transformed from a creature into an object and was thus no longer a valid target of the spell.

Ultimately I ruled that one thing is a valid target for casting the spell itself, another is the persistent effects of the spell, and that the corpse would go on glowing for the duration. However, I would like to know RAW for this and whether all the effects of the spell would cease when the wight was killed.

Related: Is a target suppressed or removed when the target becomes invalid?. Superficially this might appear like a duplicate of my question. However, the question there is about the dominate person spell when the target is no longer a Humanoid because of polymorph. Obviously dominate person cannot continue to work if the target is no longer a Humanoid to dominate, but a dead wight could still continue to be a source of light. I feel like that question is a different situation than Branding Smite where the 2d6 radiant damage is the spell itself and the light produced is a persistent effect of the spell. Maybe the answer is not different, but I believe the question is different enough that it stands on its own.

Also, although not a reason to say that this is not a duplicate, I am unsatisfied with the accepted answer to that question being based on a Crawford tweet.

Will a target being apatic after broken haste still remain apatic after beeing downed? [closed]

We had a strange situation in a fight,

and I really side with my DM here who denied it, but the question still remains:

  1. a character is hasted
  2. the concentration breaks, character is in an lethargic state
  3. character gets knocked down before his next turn
  4. the target is no longer a willing creature (?), also it’s status alignments should end when knocked unconscious
  5. the character receives healing and gets back up on his feet -> will he still be lethargic?

I should note that we assume a character would not remain unconscious even after beeing healed / stabilized for simplicity reasons. ( I heard some groups play it this way, unsure about the correct rulings here )

Jquery ajax loses connection after minutes

Is there a way to get jquery ajax to remain connected until the external execution of code is done?


$ .ajax({
        type: "POST",
        data: "pro=2",
        url:"engine/process.php", // huge data to be processed here
        error: function(){
        success: function(finish){
                //php code is complete

the code works but after some few minutes it returns error alert when the connection is lost.
due to that the php code will not finish processing