Unable to change Group Policy – "The setting is incorrect" Registration failed

I have an SBS2011 server which is a single server domain, which will not allow me to change the default domain policy. When i tried to increase the maximum password age and then press OK, i get this alert box:

Alert box named "Security Templates"

The parameter is incorrect.
Failed to save \(DC)sysvol(DC)Policies{31B2F340-016D-11D2-945F-00C04FB984F9}MachineMicrosoftWindowsNTSeceditGptTmpl.inf. 
Make sure that this object exists.

Then I click OK several times and it looks like it was accepted as a change, but when you close GPMC and then come back to it, the changes were not saved.

I have browsed the location under Sysvol and I can open the GptTmpl.inf file. I can also create a test file in the same folder, then edit and delete it, so my access there seems OK. I'm using a domain administrator login.

To test, I created a new Group Policy object and tried to define certain strategies and I got the same kind of error.

I ran Best Practice Analyzer and DCDIAG but they did not help.

I don't know how to do it. Anyone have a suggestion on how to fix this problem?

How to unlock a memory card on my Android phone without even setting a password?

I have a Huawei Y9 phone. Everything was normal until he asked me for a password for my memory card. I do not remember having a password set or locked. Is there a way for me to unlock it? I do not want to format my SD card because I have a lot of important files on it.

The SFML function does all the work with setting up timestamps?

Usually, I configure something like this:


But SFML has the following function: window.setFramerateLimit (). Does it do the same thing as described above?

postgresql – JDBC can not use the current master database by setting multiple hosts

  • node1: as primary
  • node1: on standby

The JDBC string is defined as follows:


Using repmgr do the folding and automatic tilting.

First, use node1 as the principal:

 ID | Name  | Role    | Status    | Upstream | Location | Priority | Timeline | Connection string
 1  | node1 | primary | * running |          | default  | 100      | 7        | host=node1 user=repmgr dbname=repmgr connect_timeout=2
 2  | node2 | standby |   running | node1    | default  | 100      | 7        | host=node2 user=repmgr dbname=repmgr connect_timeout=2

If node1 is down, it can be changed to node2:

 ID | Name  | Role    | Status    | Upstream | Location | Priority | Timeline | Connection string
 1  | node1 | primary | - failed  |          | default  | 100      | ?        | host=node1 user=repmgr dbname=repmgr connect_timeout=2
 2  | node2 | primary | * running |          | default  | 100      | 8        | host=node2 user=repmgr dbname=repmgr connect_timeout=2

The application can work well at this time.

But if the node1 recovery manually:

 ID | Name  | Role    | Status    | Upstream | Location | Priority | Timeline | Connection string
 1  | node1 | standby |   running | node2    | default  | 100      | 8        | host=node1 user=repmgr dbname=repmgr connect_timeout=2
 2  | node2 | primary | * running |          | default  | 100      | 8        | host=node2 user=repmgr dbname=repmgr connect_timeout=2

It seems that the application will try to connect again to node1, and then, as it is in read-only mode, can not insert new data. Therefore, you must change the JDBC connection order as follows:


Let node2 be in the first place. Restart the application. It works.

Even tried to add parameters to the connection string base in the original way (order node1, node2):


The application searches for lost data and will create data again.

So, is the method of order of the songs the only way in this case? Can not he correctly choose the current main database?

https – Google Analytics seems to be affected after setting the preferred domain

I hope you can help me with that! I have recently changed the preferred domain of my site https://example.com. Unfortunately, after that, it seems that the views / visits are no longer recorded by Google Analytics. I've changed the URL in the admin settings of GA to indicate that it is now https://example.com – maybe it just needs some time to settle down?

In addition, I am not sure I have correctly configured the 301 redirect after setting my preferred domain.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.example.com$ (NC)
RewriteRule ^(.*)$ http://example.com/$1 (R=301,L)

If I have an HTTPS site, should I add the "s" to the sections that contain "HTTP"?

Invalid Nginx Timeout Setting – Server Error

I have it in /etc/nginx/conf.d/gessin.conf

server {
        listen       80 ;
        listen       [::]:80 ;
        server_name  admin.example.com;
        root /home/developer/www/admin;
        client_body_timeout 5s;
        client_header_timeout 5s;
        index index.php index.html index.htm;
    location / {
      try_files $uri $uri/ /index.php?$args;
    location ~ .php$ {
            limit_req zone=http burst=20 delay=8;
            limit_conn addr 10;
            try_files $uri =404;
            fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include fastcgi_params;

But nginx complains that the delay is not a correct parameter:

[root@dmz-1 developer]# nginx -c /etc/nginx/nginx.conf -t
nginx: [emerg] invalid parameter "delay=8" in /etc/nginx/conf.d/gessin.conf:14
nginx: configuration file /etc/nginx/nginx.conf test failed

data visualization – Setting the color palette for the matrix in Matlab

I've visualized the matrix eta2. eta2 is obtained by etas according to the code below. I would like to define different colors for each of the grains that are shown by imagesc. I've tried Colormap in Matlab, but it generates the same colors for all grains. I am looking to visualize as the sample image attached. Also use the m.file link to execute the required data.
Thank you.

     eta2 = zeros(64,64); 
     load storeEtas
       for igrain=1:25
           for i=1:64
               for j=1:64
                   ii =(i-1)*Nx+j;

                   eta2(i,j) =eta2(i,j)+etas(ii,igrain)^2;

                   if(etas(ii,igrain) >= 0.5)





An image sample

Set the new theme setting on the default theme update


  1. We have a basic custom theme.
  2. There are custom theme settings with default values.
  3. When the theme is initially installed, its settings are correctly set as the default settings. Good.
  4. This basic custom theme is now available on our many live sites.

Does not work

  1. We've added a new custom theme setting to the base theme and set a default value.
  2. When we update the base theme on a site, the new theme setting is present. Good.
  3. However, the default value is not populated.

How to set the default value of a new theme setting when the theme is updated?

What is the default setting of "NeighborhoodRadius" in the "MeanShift" method of "FindClusters"?

I use FindClusters' MeanShift method. It works without a "NeighborhoodRadius" entry. What is the default radius setting? I can not find the description anywhere. Help me, please!

caching – Problem when setting user-specific cache tags on a custom block with a user context

I have a simple custom block with a user cache context and a user-specific cache tag:

 * Provides a 'User example' block.
 * @Block(
 *   id = "user_example_block",
 *   admin_label = @Translation("User example block"),
 *   category = @Translation("Blocks")
 * )
class UserExampleBlock extends BlockBase implements BlockPluginInterface {

   * {@inheritdoc}
  public function build() {
    return (
      '#markup' => 'Current User ID: ' . Drupal::currentUser()->id() . '',

   * {@inheritdoc}
  public function getCacheContexts()  {
    return Cache::mergeContexts(parent::getCacheContexts(), ('user'));

   * {@inheritdoc}
  public function getCacheTags() {
    return Cache::mergeTags(parent::getCacheTags(), ('example_user:' . Drupal::currentUser()->id()));

The block output varies correctly according to the logged in user, but the user-specific cache tag is not set correctly.

It seems that the cache tag is only defined once for users with the same role or permissions.

Here's how to reproduce it:

  1. Rebuild the cache (drush cr)
  2. Login with User 100 -> The block output is correct. The correct cache tag is set (user_example: 100).
  3. Connect – Out
  4. Connection with the user 101 (same role as the user 100) -> The output of the block is correct, but the cache tag has not been changed, it is still a question of example_user: 100. In fact, the getCacheTags, getCacheContexts methods were not even called.

What works is when I put the caching metadata in the build method (with the "#cache" element in the rendering table).

What could be the reason?

Thank you for any help.