java – Spring Boot Cache Hazelcast returns an empty list of cache names and no metrics are displayed

I started working with the hazelcast cache and want to provide metrics for them, and I do not know how to do that.

My java configuration

`@Konfiguration
public class HazelcastConfiguration {

@Bean
public Config config(){
    return new Config()
            .setInstanceName("hazelcast-instace")
            .addMapConfig(
                    new MapConfig()
                    .setName("testing")
                    .setMaxSizeConfig(new MaxSizeConfig(10, MaxSizeConfig.MaxSizePolicy.FREE_HEAP_SIZE))
                    .setEvictionPolicy(EvictionPolicy.LRU)
                    .setTimeToLiveSeconds(1000)
                    .setStatisticsEnabled(true)
            );
}

} `

During the startup application, only these logs are displayed

2019-11-30 19:56:01.579  INFO 13444 --- (           main) com.hazelcast.instance.AddressPicker     : (LOCAL) (dev) (3.12.4) Prefer IPv4 stack is true, prefer IPv6 addresses is false
2019-11-30 19:56:01.671  INFO 13444 --- (           main) com.hazelcast.instance.AddressPicker     : (LOCAL) (dev) (3.12.4) Picked (192.168.43.2):5701, using socket ServerSocket(addr=/0:0:0:0:0:0:0:0,localport=5701), bind any local is true
2019-11-30 19:56:01.694  INFO 13444 --- (           main) com.hazelcast.system                     : (192.168.43.2):5701 (dev) (3.12.4) Hazelcast 3.12.4 (20191030 - eab1290) starting at (192.168.43.2):5701
2019-11-30 19:56:01.695  INFO 13444 --- (           main) com.hazelcast.system                     : (192.168.43.2):5701 (dev) (3.12.4) Copyright (c) 2008-2019, Hazelcast, Inc. All Rights Reserved.
2019-11-30 19:56:02.037  INFO 13444 --- (           main) c.h.s.i.o.impl.BackpressureRegulator     : (192.168.43.2):5701 (dev) (3.12.4) Backpressure is disabled
2019-11-30 19:56:02.761  INFO 13444 --- (           main) com.hazelcast.instance.Node              : (192.168.43.2):5701 (dev) (3.12.4) Creating MulticastJoiner
2019-11-30 19:56:02.998  INFO 13444 --- (           main) c.h.s.i.o.impl.OperationExecutorImpl     : (192.168.43.2):5701 (dev) (3.12.4) Starting 4 partition threads and 3 generic threads (1 dedicated for priority tasks)
2019-11-30 19:56:02.999  INFO 13444 --- (           main) c.h.internal.diagnostics.Diagnostics     : (192.168.43.2):5701 (dev) (3.12.4) Diagnostics disabled. To enable add -Dhazelcast.diagnostics.enabled=true to the JVM arguments.
2019-11-30 19:56:03.007  INFO 13444 --- (           main) com.hazelcast.core.LifecycleService      : (192.168.43.2):5701 (dev) (3.12.4) (192.168.43.2):5701 is STARTING
2019-11-30 19:56:05.085  INFO 13444 --- (           main) c.h.internal.cluster.ClusterService      : (192.168.43.2):5701 (dev) (3.12.4) 

Members {size:1, ver:1} (
    Member (192.168.43.2):5701 - 6ed511ff-b20b-4875-9b39-2dc734d4a9aa this
)

2019-11-30 19:56:05.142  INFO 13444 --- (           main) com.hazelcast.core.LifecycleService      : (192.168.43.2):5701 (dev) (3.12.4) (192.168.43.2):5701 is STARTED
2019-11-30 19:56:05.295  INFO 13444 --- (e.HealthMonitor) c.h.internal.diagnostics.HealthMonitor   : (192.168.43.2):5701 (dev) (3.12.4) processors=4, physical.memory.total=23,9G, physical.memory.free=11,8G, swap.space.total=27,2G, swap.space.free=10,3G, heap.memory.used=306,9M, heap.memory.free=357,1M, heap.memory.total=664,0M, heap.memory.max=5,3G, heap.memory.used/total=46,23%, heap.memory.used/max=5,63%, minor.gc.count=0, minor.gc.time=0ms, major.gc.count=0, major.gc.time=0ms, load.process=100,00%, load.system=100,00%, load.systemAverage=n/a thread.count=37, thread.peakCount=37, cluster.timeDiff=0, event.q.size=0, executor.q.async.size=0, executor.q.client.size=0, executor.q.client.query.size=0, executor.q.client.blocking.size=0, executor.q.query.size=0, executor.q.scheduled.size=0, executor.q.io.size=0, executor.q.system.size=0, executor.q.operations.size=0, executor.q.priorityOperation.size=0, operations.completed.count=1, executor.q.mapLoad.size=0, executor.q.mapLoadAllKeys.size=0, executor.q.cluster.size=0, executor.q.response.size=0, operations.running.count=0, operations.pending.invocations.percentage=0,00%, operations.pending.invocations.count=0, proxy.count=0, clientEndpoint.count=0, connection.active.count=0, client.connection.count=0, connection.count=0

after the autowired-class cachemanager I get an empty list and I do not know why?

and when first added to the cache in the log viewer

2019-11-30 20:11:12.760  INFO 16464 --- (nio-8080-exec-6) c.h.i.p.impl.PartitionStateManager       : (192.168.43.2):5701 (dev) (3.12.4) Initializing cluster partition table arrangement...

In the metric configuration file, I have this and nothing in the metrics is displayed:

    @Autowired
private CacheMetricsRegistrar cacheMetricsRegistrar;

Does anyone have an idea why it does not work?

Google Sheets: Array formula with N / A that can be printed as good as empty?

So we use a pretty long formula like =ArrayFormula(JOIN(", ",UNIQUE(FILTER(SOURCERANGE!A1:A99999,SOURCERANGE!N1:N99999=A2 ))))

Some cells in our table gave results and printed well

Only a few cells have NO results. And the pressure as # N / A …

So I've never really liked the # N / A and would rather show an empty cell or a hyphen

The only solution I've found so far is to add an ISERRROR () or ISNA () form, but that feels silly because the initial formula runs twice

question: Is there an easy way to tell the sheets to print "" instead of # N / A?

Many thanks

mysql – Empty PHP page

I have the following problem with leaving the third site empty, since this is the first page where I put data into my database. I assumed that something was wrong with the connection or the query, but it just shows me a kind of mistake in white
try it

error_reporting (-1)

and always empty, I run the first MySQL code

   mysqli_connect($server,$userdb,$passdb);
echo($server);
mysqli_select_db($nombredb);  
$sSQL="Update dbpanel Set nombre='$nombrecompleto',celular='$celular',telefono='$telefono' Where usuario='$usuario'";
mysqli_query($sSQL);
if($sSQL){
    echo'si entro';
}

Another web test will correct the values ​​if the connection to the bd was successfully established and if the connection was made, perhaps some of the query

GUI Design – Teasing Dashboard Reports. Are you using dummy data or empty reports?

I'm currently designing a dashboard based on a connection to Google Analytics. What is best for users who are not affiliated with GA? We want a strong CTA to connect to Google Analytics while reviewing the reports that will become available once the connection is made.

Option 1. Display empty reports with the "Connect to GA" call. Tables and graphs are present but contain no data

Option 2. View dummy data with a treatment to indicate that it is not real data

Option 3. something else

formal languages ​​- Is it decidable "if M ever writes a non-empty symbol on a TM M when it starts on the empty tape?"

I came across the following problem in this PDF:

For a TM M, if M ever writes a non-empty symbol when it starts on the blank tape.

The solution indicated is as follows:

Let the device write only an empty symbol. Then its number of configurations in the calculation of w q × 2, where q is the number of states of M; the factor 2 is for the selection regarding. the direction of the head movement; There is no factor for the written symbol because it is always empty. So the problem can be decided by the following machine: input (M, w), perform M on w for q × 2 steps; If it ever writes a non-empty symbol, stop it with Yes. If M never writes a non-empty symbol, you will stop without an answer

Doubt:

Q1. How can you ensure that all q x 2 configurations are executed while q x 2 steps are executed on w? Some configurations may be repeated in steps of q x 2.

Q2. The question is "At startup in an empty state", but the answer tried to simulate TM on a non-empty string w. How does it make sense?

Custom post-type ad and works empty Quick Edit

I have a puzzle problem. I have successfully created a custom post type with associated categories. BUT when I list the posts, the "QuickEdit" section does not display the title, date, or information. It's empty and I do not know why. Can someone see the problem?

//////////////////////// setup admin pages
add_action( 'init', 'mmd_client_tracking_form', 0 );                            // Add the menu
function mmd_client_tracking_form()
{
  $labels = array(
    'name'               => _x( 'Review Client Workouts', 'mmd_client_list' ),
    'singular_name'      => _x( 'Manage Clients', 'mmd_client_list' ),
    'add_new'            => _x( 'New Client', 'mmd_client_list' ),
    'add_new_item'       => __( 'Add New Client' ),
    'edit_item'          => __( 'Edit Client' ),
    'new_item'           => __( 'New Client' ),
    'all_items'          => __( 'Workout Clients' ),
    'view_item'          => __( 'View Client' ),
    'search_items'       => __( 'Search Clients' ),
    'not_found'          => __( 'No Clients found' ),
    'not_found_in_trash' => __( 'No Clients found in the Trash' ), 
    'parent_item_colon'  => '',
    'menu_name'          => 'Biorider Tracking'
  );


  $args = array(
    'register_meta_box_cb' => 'mmdtrack_meta_box', // Register a meta box
    'labels'               => $labels,
    'description'          => 'This post type holds all posts for your directory items.',
    'public'               => true,
    'menu_position'        => 10,
    'show_ui'              => true,
    'supports'             => array( 'title' ),
    'has_archive'          => true,
    'menu_icon'            => 'dashicons-media-spreadsheet',
  );
  register_post_type( 'mmdtrack', $args );  

}


//-----------------------------------------------------------------
// CUSTOM CATAGORY
//-----------------------------------------------------------------
add_action( 'init', 'mmd_track_taxonomies', 0 );                                  // Add the standard submenu
function mmd_track_taxonomies() {

  $labels = array(
        'name'              => _x( 'Biorider Categories', 'Biorider Categories' ),
        'singular_name'     => _x( 'Category', 'taxonomy singular name' ),
        'search_items'      => __( 'Search Clients Categories' ),
        'all_items'         => __( 'All Clients Categories' ),
        'parent_item'       => __( 'Parent Clients Categories' ),
        'parent_item_colon' => __( 'Parent Clients Category:' ),
        'edit_item'         => __( 'Edit Clients Category' ),
        'update_item'       => __( 'Update Clients Category' ),
        'add_new_item'      => __( 'Add New Clients Category' ),
        'new_item_name'     => __( 'New Clients Category Name' ),
        'menu_name'         => __( 'Clients Categories')
  );
  $args = array(
        'hierarchical'      => true,
        'labels'            => $labels,
        'show_ui'           => true,
        'show_admin_column' => true,
        'query_var'         => true,
        'rewrite'           => array( 'slug' => 'mmdtrack_cat' )
  );

  register_taxonomy( 'mmdtrack_cat', 'mmdtrack', $args );
}

add_action( 'init', 'mmd_tracking_menu', 0 );                                          // Add the standard submenu
function mmd_tracking_menu()
{

add_submenu_page('edit.php?post_type=mmdtrack',   // Parent Slug from add_menu_page 
                 'Biorider Settings',             // Title of page
                 'Settings',                      // Menu title
                 'manage_options',                // Minimum capability to view the menu.
                 'mmd_Tracking_Settings_slug',    // Unqiue Slug Name
                 'mmd_trackingAdminPage' );    // A callback function used to display page content. 

}





//-----------------------------------------------------------------
// ENTRIES OF MEMBER LISTINGS - MANUAL
//-----------------------------------------------------------------
function mmdtrack_meta_box(WP_Post $post)
 { 
 $prefix = 'mmdtrack';                               // Custom Post Name    
 add_meta_box($prefix, 'Set Tracking', mmdtrack_client_tracking_form);  
 }

function  mmdtrack_client_tracking_form($PostId)
{
... displaying code for metabox
}



////////////////////////////////////////////////////////////////////////
//  THIS HOOKS IN TO WORDPRESS CUSTOM POST AND CHANGES THE 
//  MANAGE LIST FORM
//////////////////////////////////////////////////////////////////////
add_filter('manage_mmdtrack_posts_columns', 'mmd_member_track_columns_head');
function mmd_member_track_columns_head($defaults) {

    $new_columns('cb') = '';
    $new_columns('mmd_member_name')                    = 'Name';
    $new_columns('mmd_member_tracking_workout_count')  = 'Number of Workouts';
    $new_columns('mmd_member_memberships')             = 'Active Membershps';
    $new_columns('mmd_member_category')                = 'Categories';

    return $new_columns;
}



add_action('manage_mmdtrack_posts_custom_column', 'mmd_track_columns_content', 10, 2);
function mmd_track_columns_content($column_name, $post_ID)
{

switch($column_name)
 {  
  case 'mmd_member_name': 
      $Name  = get_the_title( $post_ID );
      echo $Name;
  break;

  case 'mmd_member_tracking_workout_count':
     $user_ID = mmd_track_FindUser($post_ID);
     echo mmd_track_GetWorkoutCnt($user_ID);
  break;

   case 'mmd_member_memberships':
     $user_ID = mmd_track_FindUser($post_ID);
     if($user_ID==0)
       echo "None";
  break;

  case 'mmd_member_category':
    $terms = get_the_terms( $post_ID, 'mmdtrack_cat' );

    /* If terms were found. */
    if ( !empty( $terms ) ) 
        {
        $out = array();

        /* Loop through each term, linking to the 'edit posts' page for the specific term. */
        foreach ( $terms as $term ) 
           {
           $out() = sprintf( '%s',
                    esc_url( add_query_arg( array( 'post_type' => 'mmdtrack', 'mmdtrack_cat' => $term->slug ), 'edit.php' ) ),
                    esc_html( sanitize_term_field( 'name', $term->name, $term->term_id, 'mmdtrack_cat', 'display' ) )
                           );
           }

         /* Join the terms, separating them with a comma. */
         echo join( ', ', $out );
        }

  break;        

 }
}






function mmd_track_emptytrash($post_ID)
{
if(get_post_status( $post_id ) === 'trash') 
  ClearMemberWorkouts($post_ID);

return 0;       
}
add_action( 'before_delete_post', 'mmd_track_emptytrash');

////////////////////////////////////////////////////////////
//  If a list is trashed, make sure all the list records are
//  removed from the table.
////////////////////////////////////////////////////////////
function mmd_track_place_in_trash($post_ID)
{
}
add_action('wp_trash_post', 'mmd_track_place_in_trash');



magento2 – Input values ​​in the edit form are empty. Use the UI component Magento 2 for this purpose

This is the content of my UI component file:

vendor_modulename_shippingmethods_form.shippingmethods_form_data_source General Information templates/form/collapsible entity_id entity_id
text name Name input name false

and that's my DataProvider:

    namespace VendorModuleNameModelShippingMethods;

    use VendorModuleNameModelResourceModelShippingMethodsCollectionFactory;

    class DataProvider extends MagentoUiDataProviderAbstractDataProvider
    {

        protected $_loadedData;

        public function __construct(
            $name,
            $primaryFieldName,
            $requestFieldName,
            CollectionFactory $employeeCollectionFactory,
            array $meta = (),
            array $data = ()
        ) {
            $this->collection = $employeeCollectionFactory->create();
            parent::__construct($name, $primaryFieldName, $requestFieldName, $meta, $data);
        }

        public function getData()
        {
            if (isset($this->_loadedData)) {
                return $this->_loadedData;
            }
            $items = $this->collection->getItems();
            .......
        }
    }

When I display my query string in the getData() With echo $this->collection->getSelect();, The result is:

SELECT `main_table`.* FROM `mytable` AS `main_table` WHERE (`entity_id` = '') . My id is missing. Not sure how, any idea where to look ?  Thnx in advance