dnd 5e – Can the sapphire crushed as part of the Drawmij’s Instant Summons spell be mended and sold for the original price?

The spell Drawmij’s instant summons states (emphasis mine):

(…)
Components: V, S, M (a sapphire worth 1,000 gp)
Duration: Until dispelled

You touch an object weighing 10 pounds or less whose longest dimension is 6 feet or less. The spell leaves an invisible mark on its surface and invisibly inscribes the name of the item on the sapphire you use as the material component. Each time you cast this spell, you must use a different sapphire.

At any time thereafter, you can use your action to speak the item’s name and crush the sapphire. (…)

The spell does not explicitly state the sapphire is consumed, which makes me wonder whether the sapphire can be mended with the mending spell1 and then sold. Rules designer Jeremy Crawford replied to a tweet asking whether the sapphire is consumed, stating:

Yep. You crush it: “Each time you cast this spell, you must use a different sapphire” (PH 235).

However, Jeremy Crawford’s tweets are not official rulings, and the quote he refers to only indicates that mended sapphire cannot be used as a component to cast Drawmij’s instant summons.

Would it be possible to mend the sapphire and sell it to a shopkeeper? If so, would the sapphire still be worth 1000 gp, or would the price be less because it lost the ability to be used as a component in Drawmij’s instant summons?


1 I had missed that this would require a casting of the mending spell for every single broken link within the gem. Unfortunately this means mending the gem takes a little longer — a sapphire broken into 1000 pieces will need to be mended 999 times, which will take about two 8-hour-work days. I’d say 500 gp per day remains worth the cost.

content search web part – How to change “There are no items to show” message for Item Display Template?

We are using SP2016 enterprise and I am trying to customize a Item Display template for a Content Search web part. My work is based on existing template under Master Page Gallery > Display Templates > Content web part (subfolder) > Item_LargePicture.html .

I searched online and several tutorial suggest look for the line with

if (ctx.ClientControl.get_shouldShowNoResultMessage())

but this line is not exist in Item_LargePicture.html.

I have tried inserted the above line and sample content but it is not working. My Content search webpart always returning There are no items to show.

P.S. my custom template works great when there is item to show. The only problem is when result = 0 the error message is not working as expected.

search engine indexing – SEO JSON-LD: Part 1: Understanding Structured Data – Should you use Yoast/Microdata in combination with JSON-LD?

Introduction

I am looking to learn more about everything SEO and structured data, and as such, the question itself becomes notably complex. For context: our company has decided to use JSON-LD syntax and Schema vocabulary for our own website. Therefore, I’ve split this question into 5 general questions regarding SEO, and have linked them between each other for reference. This way, for myself, and any other lost soul, this could act as a guide to SEO best practices post-July 2021.

Contents

  • Link to: SEO JSON-LD: Part 2: Understanding JSON-LD – How to structure your webpage schemas?
  • Link to: [SEO JSON-LD: Part 3: Understanding JSON-LD – Embedded Schemas vs. Nested Schemas?][6]
  • Link to: SEO JSON-LD: Part 4: Understanding JSON-LD – Is there such thing as too much markup?
  • Link to: [SEO JSON-LD: Part 5: Understanding JSON-LD – What else to consider?[8]

Part 1: Question

SEO JSON-LD: Part 1: Understanding Structured Data – Should you use Yoast/Microdata in combination with JSON-LD?

This question is comprised of the following:

  • What is the best combination of syntax and vocabulary? Supposedly JSON-LD in combination with Schema and Productontology?
  • What is the best combination for keyword ranking? Is it a] JSON-LD + Microdata, b] JSON-LD + Yoast or c] JSON-LD by itself
  • What is most practical application of markup? In other words, is there any one bulletproof way of marking up data and making it indexable?

Part 1: Conclusion

Once we’ve understood what tools we must use can we understand how to use them. Supposing that JSON-LD can be used entirely by itself, what does this mean in terms of structure, [as per part 2][9]?

Thank you in advance for your effort.

[9]:

custom field – How to make a complete Meta Box part of a complete Post Type?

I receive the code complete, but I don’t know how to make the Post Type loads the MetaBox when creating a new Post, here is the Post Type:

if ( ! function_exists('cpt_campaign_details') ) {

// Register Custom Post Type
function cpt_campaign_details() {

    $labels = array(
        'name'                  => _x( 'Campaign Details', 'Post Type General Name', 'text_domain' ),
        'singular_name'         => _x( 'Campaign Detail', 'Post Type Singular Name', 'text_domain' ),
        'menu_name'             => __( 'Campaign Details', 'text_domain' ),
        'name_admin_bar'        => __( 'Campaign Detail Post', 'text_domain' ),
        'archives'              => __( 'Campaign Details Archives', 'text_domain' ),
        'attributes'            => __( 'Campaign Detail Attributes', 'text_domain' ),
        'parent_item_colon'     => __( 'Parent Campaign Detail:', 'text_domain' ),
        'all_items'             => __( 'All Campaign Details', 'text_domain' ),
        'add_new_item'          => __( 'Add New Campaign Detail', 'text_domain' ),
        'add_new'               => __( 'Add New', 'text_domain' ),
        'new_item'              => __( 'New Campaign Detail', 'text_domain' ),
        'edit_item'             => __( 'Edit Campaign Detail', 'text_domain' ),
        'update_item'           => __( 'Update Campaign Detail', 'text_domain' ),
        'view_item'             => __( 'View Campaign Detail', 'text_domain' ),
        'view_items'            => __( 'View Campaign Detail', 'text_domain' ),
        'search_items'          => __( 'Search Campaign Details', 'text_domain' ),
        'not_found'             => __( 'Not found', 'text_domain' ),
        'not_found_in_trash'    => __( 'Not found in Trash', 'text_domain' ),
        'featured_image'        => __( 'Featured Image', 'text_domain' ),
        'set_featured_image'    => __( 'Set featured image', 'text_domain' ),
        'remove_featured_image' => __( 'Remove featured image', 'text_domain' ),
        'use_featured_image'    => __( 'Use as featured image', 'text_domain' ),
        'insert_into_item'      => __( 'Insert into Campaign Detail', 'text_domain' ),
        'uploaded_to_this_item' => __( 'Uploaded to this Campaign Detail', 'text_domain' ),
        'items_list'            => __( 'Campaign Details list', 'text_domain' ),
        'items_list_navigation' => __( 'Campaign Details list navigation', 'text_domain' ),
        'filter_items_list'     => __( 'Filter Campaign Details list', 'text_domain' ),
    );
    $args = array(
        'label'                 => __( 'Campaign Detail', 'text_domain' ),
        'description'           => __( 'This post is used to manage all Campaign details', 'text_domain' ),
        'labels'                => $labels,
        'supports'              => array( 'title', 'thumbnail', 'page-attributes' ),
        'taxonomies'            => array( 'category', 'post_tag' ),
        'hierarchical'          => true,
        'public'                => true,
        'show_ui'               => true,
        'show_in_menu'          => true,
        'menu_position'         => 5,
        'menu_icon'             => 'dashicons-megaphone',
        'show_in_admin_bar'     => true,
        'show_in_nav_menus'     => true,
        'can_export'            => true,
        'has_archive'           => true,
        'exclude_from_search'   => false,
        'publicly_queryable'    => true,
        'capability_type'       => 'page',
    );
    register_post_type( 'campaign_details', $args );

}
add_action( 'init', 'cpt_campaign_details', 0 );

}

And here is the Meta Box:

class CampDeta_Resu {

    public function __construct() {

        if ( is_admin() ) {
            add_action( 'load-post.php',     array( $this, 'init_metabox' ) );
            add_action( 'load-post-new.php', array( $this, 'init_metabox' ) );
        }

    }

    public function init_metabox() {

        add_action( 'add_meta_boxes',        array( $this, 'add_metabox' )         );
        add_action( 'save_post',             array( $this, 'save_metabox' ), 10, 2 );

    }

    public function add_metabox() {

        add_meta_box(
            'CampDeta_Resu',
            __( 'Campaign Details Results', 'text_domain' ),
            array( $this, 'render_metabox' ),
            'post',
            'normal',
            'default'
        );

    }

    public function render_metabox( $post ) {

        // Retrieve an existing value from the database.
        $cade_re_results_numbers = get_post_meta( $post->ID, 'cade_re_results_numbers', true );
        $cade_re_results_legend = get_post_meta( $post->ID, 'cade_re_results_legend', true );

        // Set default values.
        if( empty( $cade_re_results_numbers ) ) $cade_re_results_numbers = '';
        if( empty( $cade_re_results_legend ) ) $cade_re_results_legend = '';

        // Form fields.
        echo '<table class="form-table">';

        echo '  <tr>';
        echo '      <th><label for="cade_re_results_numbers" class="cade_re_results_numbers_label">' . __( 'Number', 'text_domain' ) . '</label></th>';
        echo '      <td>';
        echo '          <input type="text" id="cade_re_results_numbers" name="cade_re_results_numbers" class="cade_re_results_numbers_field" placeholder="' . esc_attr__( '', 'text_domain' ) . '" value="' . esc_attr( $cade_re_results_numbers ) . '">';
        echo '          <p class="description">' . __( 'This is the number that will appear over the legend. Example: 5.4M | 8.4M+ | 5x', 'text_domain' ) . '</p>';
        echo '      </td>';
        echo '  </tr>';

        echo '  <tr>';
        echo '      <th><label for="cade_re_results_legend" class="cade_re_results_legend_label">' . __( 'Legend', 'text_domain' ) . '</label></th>';
        echo '      <td>';
        echo '          <input type="text" id="cade_re_results_legend" name="cade_re_results_legend" class="cade_re_results_legend_field" placeholder="' . esc_attr__( '', 'text_domain' ) . '" value="' . esc_attr( $cade_re_results_legend ) . '">';
        echo '          <p class="description">' . __( 'This text will go below the number and will define what the number means. Example: Total print reach | Visits | Engagement growth', 'text_domain' ) . '</p>';
        echo '      </td>';
        echo '  </tr>';

        echo '</table>';

    }

    public function save_metabox( $post_id, $post ) {

        // Sanitize user input.
        $cade_re_new_results_numbers = isset( $_POST( 'cade_re_results_numbers' ) ) ? sanitize_text_field( $_POST( 'cade_re_results_numbers' ) ) : '';
        $cade_re_new_results_legend = isset( $_POST( 'cade_re_results_legend' ) ) ? sanitize_text_field( $_POST( 'cade_re_results_legend' ) ) : '';

        // Update the meta field in the database.
        update_post_meta( $post_id, 'cade_re_results_numbers', $cade_re_new_results_numbers );
        update_post_meta( $post_id, 'cade_re_results_legend', $cade_re_new_results_legend );

    }

}

new CampDeta_Resu;

I googled “add a created metabox to a post type” and a lot of things like that and there is a lot of tutorials but unfortunately I can’t make it work.

performance – RHEL8: Does NFS I/O count as part of “%iowait” calculations?

Customer telling us that they see high %iowait in top and iostat output on a busy RHEL8 NFS client.

iostat man page clearly says that iowait is related to % of time kernel is waiting on “disk” I/O

Question – does NFS I/O count as “disk” I/O in %iowait calculations?

how to create custom module to remove .html part from product page?

I want to create a custom module to remove .html part from product page. I have found solution only from admin panel but want editing in module.

design – What is the best approach to have user input whole number values while hiding the fractional part?

Our financial web application deals with the currency values where the user inputs some change value either in whole number(USD 5) / fractions (USD 5.99). This change value sometimes gets auto calculated by the system in different scenarios and may results in fractional values because of the underlying calculation.

Although, our whole calculation is done on the actual decimal numbers our users wants us to be able to show only whole numbers and allow input in whole numbers only.

We can restrict the input element to take only whole number values but it is the system values that gets calculated but sometimes lead fractions part to be appended (which is expected because the underlying system has some formulas involving arithmetic calculations).

Even if we hide the fractional part it would be wrong at the user part to assume that there was never a fraction part but it was always there. Thinking that there is no fraction part, a user can give the wrong input value and have incorrect output.

Is there any optimum design we should take to show fractions separately while taking input as only whole numbers?

❓ASK – Are surveys a necessary part of a business plan? | NewProxyLists

I guess survey is very important for your bussiness. It may have a great impact on your bussiness because to make a bussiness successful, market research is so important and survey is the easiest and cheapest way of market research. You can easily know what people like by running a survey. Offline surveys are more effective than online bussiness

javascript – Moving part of a ASP.Net Webforms to some type of JS, maybe

got an interesting project ahead and would appreciate some tips.

I have an older ASP.Net web forms application that has been running for many years.
It’s divided into two sections, one is the admin section (where the user hardly ever spend any time) and one part is the “front”, where the user spends almost all his/her time.

I recently gave the admin section a facelift and improved the code, it works great and people are happy with it. It doesn’t matter that it’s a bit slow and there are tons of overhead since the user is hardly ever there.

Now for the fun project that lies ahead. I need to rewrite the “front”, and it cant be web forms, it needs to be some type of JS.

But, I only want to rewrite some pages with JS, not the entire front. For example, a login page, it doesn’t matter if that is written with web forms, you only use that once a day (max).

So, my question is, would it be a good approach to have a site with mainly ASP.Net webforms pages and some pages (that is used 99% of the time) in pure JS?

I do understand that it’s technically possible, I have done some tests myself and it looks like it can work, but is this a good approach?

Note, all data will be pulled from an API, so there will be no need for any backend code.

privacy – Is there a device which encrypts messages in a physically isolated place from the part which is used for communication?

The recent NSO scandal made me think, how could I design a system which enables encrypted communication even if the devices are use are compromised. I came up with this idea: take two Raspberry Pis or similar devices. On on of them, I physically destroy the chips which enable wireless communication, the other one I connect it to the internet. Both would have a screen and a camera. If I want to send a message to someone with the same device, I use the RP not connected directly to the internet to encrypt the message, using the recipient’s public address. The encrypted message is displayed on the screen of this RP. The other RP reads the message, sends it to someone with a similar device, over the internet (this does not have to be encrypted as the message I am sending is already encrypted by the offline RP). The online RP of the recipient displays the message, the offline RP reads it, decrypts it, and viola, communication is done.

The only information which enters into the RP which has the private keys (ie the one doing the encryption) has to come through the screen, which is just displaying QR codes (if I successfully destroy the WiFi-enabling chips, of course.)

The difference between this setup and a normal communication using 1 device, is that the device which is connected to the internet (ie the one which is exposed to insecurities), is not the one which is doing the encryption, and their only connection is the QR codes displayed on the screen. Given how end-to-end encryption did not stop Pegasus, it seems like a good idea not to rely on the same device to do both encryption & communication.

enter image description here

What could go wrong with this setup, and has there been a similar project done before?