Help with NIntegrate settings to evaluate integral

I am trying to evaluate this integral: \begin{align*} \alpha_{2}=\int_{-\infty}^{1.645}\left[1-\Phi\left(\frac{\sqrt{25}}{\sqrt{15}} 1.645-\frac{\sqrt{10}}{\sqrt{15}} z_{1}\right)\right] \phi\left(z_{1}\right) d z_{1} \end{align*} where $ \Phi$ is the Normal CDF and $ \phi$ is the normal PDF. I know that the answer should be 0.03325.

I used the following code, but it doesn’t converge to an answer. Any suggestions?

pdf[x_] := PDF[NormalDistribution[0, 1], x]  cdf[x_] := CDF[NormalDistribution[0, 1], x]  NIntegrate[ 1 - cdf[Sqrt[25]/Sqrt[15] 1.645 - Sqrt[10]/Sqrt[15] x]* pdf[x], {x, -Infinity, 1.645}]  

which returns

NIntegrate::slwcon: Numerical integration converging too slowly; suspect one of the following: singularity, value of the integration is 0, highly oscillatory integrand, or WorkingPrecision too small.  NIntegrate::ncvb: NIntegrate failed to converge to prescribed accuracy after 9 recursive bisections in x near {x} = {-8.16907*10^224}. NIntegrate obtained 8.582639123060543`15.954589770191005*^27949 and 8.582639123060543`15.954589770191005*^27949 for the integral and error estimates. 

The following code in R gives me the correct answer:

inside <- function(z1, n1, n2, cv) {   nt <- n1 + n2   (1 - pnorm(sqrt(nt/n2) * cv - sqrt(n1/n2) * z1)) * dnorm(z1) }  additional.error <- function(n1, n2, cv) {   integrate(inside, lower = -Inf, upper = cv, n1 = n1, n2 = n2, cv = 1.645)$  value }  additional.error(n1 = 10, n2 = 15, cv = qnorm(0.95)) ``` 

Settings to import list

Hi, how are you?
I have a list of sites that I just scraped with scrapebox, and I want to add them to my campaign that is currently running in GSA. And I want GSA to go through those sites and be able to get some links.
Currently the GSA is configured to harvest on google.
My question is:
1. The configuration is correct to import list Or is it necessary to click on a section? View image:

2. If I import the URLs using this method, see the following image.
GSA will automatically start using the imported sites to see if it is possible to verify some or is it necessary to check any option?

3. If I use this method, see the following image:
Gsa will start visiting those sites or is it necessary to mark another option?

How to output choices from a custom sortable checkboxes control via Customizer settings

I’m trying to dynamically output some settings from theme Customizer. I use this custom controls, Example 3.

How can I display the settings so that the selected options appear as well as in the order in which they were placed in Customizer?

So far I’ve tried without success:

    $  box = get_theme_mod( 'sample_pill_checkbox3' ) ;       switch ( $  box ) {                  case 'author':                 echo 'Author';                 break;                  case 'date':                 echo 'Date' ;                 break; } 

Basically, if Author and Date is selected and Date is placed first, so I would need to appear in the frontend, Date first then Author.

Thank you!

Help with settings for Verified list please

I have in excess of 500k of verified sitelist_Blog Comment-General Blogs. With a lot of do-follows
I want to attempt to post a comment to all the do-follows, and I don’t care about keyword matching etc. I’m doing some parasite linking. When I try to set it up, it goes through the list eventually but only posts to about 100. I just don’t get it. In Scrapebox you can just import a list of good urls and an post to them. How do I do that with GSA ?

InnoDB: page_cleaner: settings might not be optimal (how to tune)

I am having similar issues to this question but I’m trying to understand how to tune the database correctly (rather than just lowering settings and hoping 😉

In the error log I have these entries (often days or weeks apart)

2020-12-19T11:54:53.640527Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 12204ms. The settings might not be optimal. (flushed=27 and evicted=0, during the time.) 2020-12-19T23:14:04.901370Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 6788ms. The settings might not be optimal. (flushed=10 and evicted=0, during the time.) 

And corresponding entries in the mysql-slow log! down to the second. What I find weird is that I thought the cleaner was supposed to be some kind of background process… why does it have any impact on the queries themselves?

mysqltuner is happy, the db has 32 gigs ram and some relevant settings are

Settings:

  1. innodb_page_cleaners is currently 4,
  2. innodb_buffer_pool_instances is 25 !.
  3. innodb_buffer_pool_chunk_size is 134217728
  4. innodb_buffer_pool_size is 26843545600

Questions:

  1. Should I just set the page cleaners to 25 as suggested in the other answer.
  2. Should I try 1) first, see if it makes a difference, then lower the innodb_lru_scan_depth if I don’t see an improvement?
  3. Why doesn’t MYSQL just default the page cleaners to be the same as the number of instances if it can have such a drastic affect? t suggests setting the page cleaners to the same as the pool instances. Why doesn’t MYSQL just default to that if it’s so sensible?
  4. Is it expected to see the cleaner have an impact in the slow-query log?

Thanks!

Multiple differences of opinion about transaction log autogrowth settings

We have a two-node SQL Server 2017 AG. There’s a job that looks at autogrowth settings for our databases and makes sure they’re not set to use a percentage. For the past day, its been continually saying it’s updating the settings for a particular database. This hasn’t happened before. Upon investigation, I found sys.master_files on node 01 says the transaction log file for the database will grow in increments of 512MB, but node 02’s sys.master_files says it will grow in increments of 10% Server 02 is the primary. On both replicas, is_percent_growth is cleared in sys.database_files for this database. Looking at file properties in SSMS, both replicas show 512MB autogrowth, most likely because SSMS looks in sys.database_files (a guess on my part).

There haven’t been any failovers on this AG.

Questions

  1. How could there a difference of opinion between sys.master_files and sys.database_files on node 02?
  2. How did the autogrowth settings for the database get out of sync between the two replicas?
  3. How can I clear the is_percent_growth flag on node 02 so I don’t have any more false positives? Ideally, I’d like to do this without taking the AG offline.

I’ve read https://stackoverflow.com/questions/4174520/sql-server-sys-master-files-vs-sys-database-files which explains the difference between sys.master_files and sys.database_files, but it doesn’t explain the circumstances here.

How can I convert D&D 4e adventures and settings to 5e?

At my public library, I have ready access to resource books from older editions of D&D (only 5e are in heavy demand). Most of the books at the library are 4e. I am interested in converting some of the adventures and/or campaign settings for use with the 5e group I DM.

How can I convert these 4e adventures to 5e?

My background is a few years playing and DMing AD&D back in the 80s, then nothing for 35 years. I fiddled with the 4e beginner’s set and now play 5e.

I have no experience converting. Currently my group is playing HotDQ. They enjoy it, but I find it a little railroad-y and want to expand the world.

Settings API: Setting default option via ‘get_option’ fails

  1. All my options are stored in one array test_hs_options
  2. I have select list settings field ( test_hs_options['duration_months'] ) which stores the selected month (1-12).
  3. For this settings field, I would like to set a default option at 5.
  4. All my attempts at setting the default have failed.
  5. What am I missing?
// Callback for displaying sfield_select_duration. function cb_test_hs_sfield_select_duration() {      // get option test_hs_options['duration_months'] value from db.     // Set to '5' as default if option does not exist.     $  options  = get_option( 'test_hs_options', [ 'duration_months' => '5' ] );      $  duration = $  options['duration_months']; // fails!      var_dump($  options); // PHP Notice:  Undefined index: duration_months      // define the select option values for 'duration' select field.     $  months = array( '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12' );      // Display select control     echo '<select id="duration" name="test_hs_options[duration_months]">';         // loop through option values         foreach ( $  months as $  month ) {             // if saved option matches the option value, select it.             echo '<option value="' . $  month . '" ' . selected( $  duration, $  month, false ) . '>' . esc_html( $  month ) . '</option>';         }     echo '</select>'; }