For dynamically batched objects the `unity_ObjectToWorld` shader variable is always set to default?

I’m using the standard render pipeline and the unity_ObjectToWorld variable for some calculations in my shader. After I enabled dynamic batching these calculations got broken. It seems that unity_ObjectToWorld is set to default when the objects are being batched. Is it by design? I didn’t find anything in the documentation.

Default Post post type and custom post type rewrite slugs

So, currently, my blog page is at /blog/ and I also have 2 custom post types. What I’m trying to get is to have all the posts/archives of the Post post type show under /blog/, and for one of the custom post type to use "/" as a rewrite slug. That way, I could get,, which are the custom post types, and if I go to post archive for December of 2020, it would show under /blog/2020/12/.

I’ve tried that, as I said, by setting /blog/%postname%/ under my wp admin permalink settings, and using 'rewrite' => array( 'slug' => '/', 'with_front' => false ), with register_post_type for my custom post type. That works for blog posts, but my custom post type posts show 404, with proper url though.

Key Lookup isn’t applied by default?

I’m trying to learn about covering indexes. In the Northwind database, I select from the table Categories:

enter image description here

As you can see the table has a non-clustered index on the column CategoryName.

This SQL query:

select CategoryName  from Categories where Categories.CategoryName like 'Beverages' 

returns an execution plan with an index seek:

enter image description here

However, this:

select CategoryName ,Description from Categories where Categories.CategoryName like 'Beverages' 

returns this execution plan with an index scan using the primary key index, which isn’t expected:

enter image description here

I can find the expected behaviour only when I force the query with the non-clustered index:

 select CategoryName ,Description from Categories     with(index(CategoryName))  where Categories.CategoryName like 'Beverages' 

enter image description here

What is the problem?

how to make email optional while user registration using default wordpress form

I wonder if there is any way to make email an optional field while registering using default form. So that those who don’t know mail may leave it blank.

I got code from stackexchange but that doesn’t seems to work.I added code to functions.php under theme folder.

add_action('user_profile_update_errors', 'my_user_profile_update_errors', 10, 3); function my_user_profile_update_errors($  errors, $  update, $  user) {     $  errors->remove('empty_email'); }  add_action('user_new_form', 'my_user_new_form', 10, 1); add_action('show_user_profile', 'my_user_new_form', 10, 1); add_action('edit_user_profile', 'my_user_new_form', 10, 1); function my_user_new_form($  form_type) {     ?>     <script type="text/javascript">     jQuery('#email').closest('tr').removeClass('form-required').find('.description').remove();      <?php if (isset($  form_type) && $  form_type === 'add-new-user') : ?>         jQuery ('#send_user_notification') .removeAttr('checked');     <?php endif; ?>     </script>     <?php } 

Any help is appreciated.Thanks in advance


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>'; }  

Are your default racial traits suppressed when choosing the Doppelganger Character Secret?

Icewind Dale: Rime of the Frostmaiden contains a Character Secrets section, one of which is "Doppelganger" :

I’m a shapechanger. I have none of the traits of the race I’m imitating, but I retain my class features, background, and alignment. I have darkvision out to a range of 60 feet. I can use an action to do either of the following at will:

I can innately cast detect thoughts, requiring no components. My spellcasting ability is Intelligence. The spell’s Wisdom save DC is 8 + my proficiency bonus + my Intelligence modifier. I can polymorph into any humanoid I have seen or back into my true form. My statistics, other than my size, don’t change. Any equipment I’m wearing or carrying isn’t transformed. I revert to my true form when I die.

Does this mean that your default race’s traits are nullified when selecting this Character Secret ? Example – a Variant Human Doppelganger wouldn’t have the +1 bonus to two ability scores, the extra skill & extra feat, with that interpretation.