Are there official rules for drugs and addiction in Call of Cthulhu?

I’m playing the 7ed version of Masks of Nyalethotep(sp?). I decided to have my character a laudanum user as he’s an opium addict, because I was certain there were rules about narcotics and drug addiction in Call of Cthulhu.

But now I can’t find any in the main rulebooks (I have 5th to 7th edition), investigator and keeper handbooks, or other sourcebooks and campaigns I have.

Are there any official rules for PCs using narcotics and for addiction?

If there are, which book are they in?

At the last session, myself and the GM decided to give my PC a penalty dice on skill and characteristic rules and movement, and to reduce the effects of Sanity rolls (sometimes he won’t make them, if he does the sanity costs might be reduced), when he’s under the influence of laudanum

I think my DM is consistently faking dice rolls for saves against a specific spell; how do I call my DM out?

I’ve been watching one of our players repeatedly cast toll the dead (Xanathar’s Guide to Everything, p. 169), across seven sessions, and a dozen different combat encounters, and the DM has never once allowed her to do any damage with the cantrip. She has a spell save DC of 16, yet our DM always “mysteriously” rolls the saving throw.

Obviously, “just quit the game”, “that group is not for you”, are the answers most folks will immediately suggest, but I’m not the one playing a warlock and I feel like telling her to quit would be awfully rude of me. She’s a really quiet and shy person, and I can’t help feeling like someone needs to stand up and defend her. Last session she looked like she was on the verge of tears.

Anyone have a creative method of calling your DM out for being a dice cheat in front of the entire group? I’m really disgusted by his behavior and I’m guessing that statistically speaking the permutation is so large by this point that his monsters have won the powerball ten times over.

Headers already sent error with get_template_part in REST API call

Crosspost from StackOverflow

I’ve looked at multiple other questions about this warning (Headers already sent…etc) and this thorough explanation, but I’m not finding a solution for the circumstances I’m dealing with:

  1. I have a custom WordPress REST API endpoint that returns the output of get_template_part. When I just call get_template_part normally on a page, there’s no warning. It only appears when it runs in register_rest_route‘s callback.
  2. I am also fetching data from an external API using this library. The error started when I started making these requests. I’ve tried making the request both inside and outside the template part, the latter either within register_rest_route‘s callback or as an init action.
  3. The line that triggers the error is an img tag, where I’m echo-ing a URL as the src using data from the external API response. There are other echo calls all over this template, so I doubt that’s the issue.
  4. The line in question actually works fine and does its job. I just need to get rid of the accursed warning.


Inside functions.php:

<?php    //the api endpoint declaration   add_action( 'rest_api_init', function () {     register_rest_route(         'theme/v2',   // namespace         '/homepage',  // route         array(                  // options             'methods'  => 'GET',             'callback' => 'build_home',         )     );   });    //the callback for the wordpress api   function build_home() {      // this is the external API request, using their PHP library.      // I linked the library above. The request returns an object with a bunch of data     include_once(get_template_directory()."/arena/arena.php");     $  arena = new Arena();     $  page = $  arena->set_page();      $  per = 8;      $  slug = 'concepts-bo-6ajlvpqg';      $  channel = $  arena->get_channel($  slug, array('page' => $  page, 'per' => $  per));      //I'm passing the response from the external API (in $  channel) to get_template part     //get_template_part is then the output for the wordpress API request     get_template_part('custom-home-template',null,array('channel'=>$  channel));  }   ?> 

Inside template part:

<?php   $  channel=$  args["channel"];   ?>    <div id="concepts-box" class="bodycontent reg-width">     <?php foreach ($  channel->contents as $  item) { if($  item->class=="Image"){       $  img=$  item->image["square"]["url"];       ?>     <div class="concept-wrapper">       <!-- the line below is the one that triggers the error -->       <img lozad src="<?=$  img; ?>">     </div>     <?php }} ?>   </div> 

Full warning:

<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /filepath/wp-content/themes/theme/custom-home-template.php:63) in <b>/filepath/wp-includes/rest-api/class-wp-rest-server.php</b> on line <b>1372</b><br /> 

Cannot assign to function call when looping through and converting excel files [closed]

With this code:

 xls = pd.ExcelFile('test.xlsx') sn = xls.sheet_names for i,snlist in list(zip(range(1,13),sn)):     'df{}'.format(str(i)) =  pd.read_excel('test.xlsx',sheet_name=snlist, skiprows=range(6))  

I get this error:

‘df{}’.format(str(i)) = pd.read_excel(‘test.xlsx’,sheet_name=snlist, skiprows=range(6)) ^ SyntaxError: cannot assign to function call

df+str(i) also return error

i want to make result as: df1 = pd.read_excel.. list1… df2 = pd.read_excel… list2….

What should I alternatively call that URL of /books-more/ ? (SEO)

I have an Area on a Website that we’re relaunching that will include Books & Other Products (like DVD’s, Calendars ect.). It’s the website of a bestselling author, so most of the people will look and know him for his books. That’s why were going to call the Overview-Page (every product has it’s own sub-page) "Books & More".

You can’t buy the Single "Products" on the Website, they just include a Link to amazon.

Now the problem that I’m having is the URL from SEO-Perspective:

What I have now is:

Books & More (Overview Page): /books-more/
Single-Product: /books-more/product-name/

Alternative 1

I’m thinking, that the "more" in the URL is an empty word, making the URL-unnessecary longer. but only having /books/ in the url would not be logically correct (for instance: /books/this-is-a-dvd/)

Alternative 2

Making the URL /products/ while keeping the Page name, Menu Item and all references to that page as "Books & More". Here I see a problem with sending mixed signals to Google. (Also, the main Keyword for that page will be "name + text".

What do you think?

I don’t see any other or better alternative. What do you think is the right way to handle that SEO-Wise?

wp_remove_object_terms correct way to call child of parent taxonomy in woocommerce

In Woocommerce I am currently able to assigned and unassign a product taxonomy from a product by calling the following.

// to assign wp_add_object_terms ( $  product_id,'in-stock', 'product_cat' );  //to unassign wp_remove_object_terms ( $  product_id,'in-stock', 'product_cat' );  

However how would one achieve this with a child of the parent taxonomy.

Do I need to call the parent and then the childs tag_ID ? Maybe something like below. Can someone clarify how I should correctly format ‘pa_stock&tag_ID=27’ please.

wp_remove_object_terms ( $  product_id,'in-stock', 'pa_stock&tag_ID=27' );  

Just to clarify pa_stock represents the parent taxonomy, tag_ID 27 represents the child taxonomy.

Java stored procedure or user-defined function could not call Java method

After I created a Java external stored procedure in DB2 as in my previous question, the call

call user1.send_mail(    P_TO          => ''   ,P_CC          => NULL   ,P_BCC         => NULL   ,P_FROM        => ''   ,P_SUBJECT     => 'db2 java subject'   ,P_TEXT_MSG    => 'db2 java test'   ,P_HTML_MSG    => null   ,P_ATTACH_NAME => null   ,P_ATTACH_MIME => null   ,P_ATTACH_BLOB => null   ,P_SMTP_HOST   => ''   ,P_SMTP_PORT   => 465   ,P_USER_NAME   => ''   ,P_PASSWORD    => 'secret'); 

fails it due to the following error:

Java stored procedure or user-defined function "USER1.SEND_MAIL", specific name "SQL201208113215436" could not call Java method "send_mail", signature "(Ljava/lang/String".. SQLCODE=-4306, SQLSTATE=42724, DRIVER=3.68.61

I made sure that all parameters that have no default values receive non-NULL values. What else is necessary for this to work?

How to create a clickable static call us button that links to a new setting in general

I recently had an admin setting created on my website that allows me to input a contact number to display on the front end via a shortcode.

Now I am now trying to use this field to also create a clickable and static call button for mobile devices only that appears on the bottom of their screens.

There are plugins like WP Call Button that achieve this, but I am trying to keep my website as light as possible. Any help would be much appreciated!

I think I may need another 2 admin fields created that act as a text label as well as the hyperlink function? e.g. tel:035555555?

enter image description here

Here’s the code that was created (thanks again Walter) for my general settings:

/**  * Class for adding a new field to the options-general.php page  */ class Add_Settings_Field {      /**      * Class constructor      */     public function __construct() {         add_action( 'admin_init' , array( $  this , 'register_fields' ) );     }      /**      * Add new fields to wp-admin/options-general.php page      */     public function register_fields() {         register_setting( 'general', 'phone_number_custom', 'esc_attr' );         add_settings_field(             'custom_phone_number',             '<label for="custom_phone_number">' . __( 'Phone Number' , 'phone_number_custom' ) . '</label>',             array( $  this, 'fields_html' ),             'general'         );     }      /**      * HTML for extra settings      */     public function fields_html() {         $  value = get_option( 'phone_number_custom', '' );         echo '<input type="text" id="custom_phone_number" name="phone_number_custom" value="' . esc_attr( $  value ) . '" />';     }  } new Add_Settings_Field(); 

How to create shortcodes that pull custom field data from general settings