Workaround for DSolve in V 12 when it gives undefined as solution to 1D heat PDE?

Comparing the following, all done from clean kernel


Mathematica graphics


Mathematica graphics

The strange thing is that V 12 can solve this same PDE without the assumptions

k    = 1/10; A = 60; pde  = D[u[x, t], t] == k*D[u[x, t], {x, 2}]; bc   = u[0, t] == A; ic   = u[x, 0] == 0; sol  = DSolve[{pde, bc, ic}, u[x, t], {x, t}] 

Mathematica graphics

But it says in the above answer that it wants x>0,t>0, which is why I gave it the assumptions to help it, but then it returns undefined.

Something seems to have gone wrong in V 12 DSolve here, or may be in the Integrate? I do not know.

Do others see the same result on V 12?. Answer given by V 11.3 is the correct one.

Any workaround for V 12 to make it give same answer as V 11.3?

After enabling the SSL Magento gives 404 error to internal pages and to css and js

I am having a very irritating issue after i enabled the SSL in my website. I changed the Base URL (Secure) from http to https and I set “Use Secure URLs on Storefront” to YES. Then I regenerated static content via this command line -: php bin/magento setup:static-content:deploy -f

and then i cleared my cache. When i see the website it is redirecting to https URL but CSS/JS are not loading and some images are not showing in the Home page. And none of the links to internal pages are working. But same URL is working with http smoothly. One more thing i noticed that https URLs are working but when i am adding /index.php after the website URL. This is really strange because all http URL works with URL re-write then why not https URL. To remove /index.php from all URLs i am using this .htaccess from the starts. I am still using .htaccess for that purpose.

RewriteBase / RewriteRule ^index\.php$   - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] 

I tried every possible way which are available on the internet. But nothing helps.

Sum over powers of roots of unity gives only partial answer

Mathematica seems to be unable to handle sums over roots of unity. For example, Simplify[Sum[Exp[2 Pi I a b/m], {a, m}], {b, m} \[Element] Integers] yields 0 instead of a piecewise function like:$ $ \begin{cases} 0 & gcd(b,m)=1\ m & \text{otherwise} \end{cases} \ $ $ Has anybody managed to obtain the correct answer?

Command “istats” gives “-bash: istats: command not found” after “gem install iStats”

I wanted to use iStats in command line/terminal mode, so I did the following:

  • I installed iStats with the command gem install iStats as per this answer to an AskDifferent question;
  • However, when I issue the command istats I get a -bash: istats: command not found;
  • Issuing the command gem list shows me that iStats is installed (*** LOCAL GEMS *** and in second position it reads iStats (1.6.1);
  • I checked and the app resides in /usr/local/lib/ruby/gems/2.6.0/gems/;
  • Issuing a gem environment command shows the following - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/2.6.0;
  • I uninstalled the Gem by issuing gem uninstall iStats;
  • Then issuing gem list shows that the app was indeed removed;
  • Then I issued gem install iStats that gave the following output: Fetching iStats-1.6.1.gem Building native extensions. This could take a while... Successfully installed iStats-1.6.1 Parsing documentation for iStats-1.6.1 Installing ri documentation for iStats-1.6.1 Done installing documentation for iStats after 0 seconds 1 gem installed
  • Issuing istats command gives again -bash: istats: command not found.

Any ideas?


System used (just in case):

  • macOS Mojave Version 10.14.5
  • MacBook Pro (13-inch, 2018, Four Thunderbolt 3 Ports)
  • Processor: 2.7 GHz Intel Core i7
  • Memory: 16 GB 2133 MHz LPDDR3
  • Graphics: Intel Iris Plus Graphics 655 1536 MB

Hydra gives different password each time (DVWA)

I’ve looked up this issue and everyone’s problem was they didn’t have the failed login string. I do. Trying to get into DVWA. Here’s my command

hydra 10.0.250.143 -l admin -P P.txt http-get-form “/dvwa/vulnerabilities/brute/index.php:username=^USER^&password=^PASS^&Login=Login:Username and/or password incorrect.:H=Cookie: security=low; PHPSESSID=uuojn9pfsbuehh26eitbvh6k91”

I’ve tried all different combinations of GET, POST, using just failed login striong, using just PHPSESSIS, using both, trying different files, trying /dvwa/login.php with these credentials and vise versa. Sometimes it stops after 16 sometimes it goes for a few minutes. But no matter what, it gives a few same incorrect ones over and over. What’s happening?!? example run

Start Workflow via JS gives error “Value cannot be null”

Hi I am attempting to start an SP 2010 workflow using Jquery SP Services but i seem to be getting a response 500 Value cannot be null. There is not supposed to be an initiation form yet when i manually start the workflow via link i get an infopath form with just Start Cancel buttons as i have no parameters. Can anyone spot an issue?

 $  ().SPServices({             operation: "StartWorkflow",             item: "https://mytenant.sharepoint.com" + fileRef,             templateId: "{463231b0-e608-44e1-ae9f-57af1832565d}",             workflowParameters: "<root><data></data></root>"         }); 

coupon for free shipping gives an Error

Magento 1.9.4 2 shippings methods:   1. flat rate local delivery option 2. table rate (we use that for nationwide shipping) 

We would like to run a promo for free shipping on the first shipping option (flat rate) for local delivery only on orders over $ 70.

I have setup a coupon for free shipping by going to:

Promotions –) shopping cart rules

where in Conditions I’ve entered the following:

If ALL of these conditions are TRUE : Subtotal greater than 70
Shipping Method is [flatrate] Local delivery

I also tried the following:

If ALL of these conditions are TRUE : Subtotal greater than 70
Shipping Method is not [tablerate] Table Rate

But when customers try to put the coupon code in on the 2nd page of the check-out – it gives the “Coupon code “test” is not valid.” Error.

I suspect the reason for that could be because customer does not get to choose the shipping option until later on in the check-out process.

Is there any way to achieve what we are trying to do? (free flat rate shipping only on orders over $ 70 – this should not concern the nationwide shipping which we set up under the table rates option at all)