Sorry, you do not have permission to send message.

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

  • Ask questions get answers!

    We want to connect the people who have knowledge to the people who need it, to bring together people with different perspectives so they can understand each other better, and to empower everyone to share their knowledge. All that you need is create an account. Join our community. Create your feed, follow your desired categories and users and keep updated.Besides gaining reputation with your questions and answers, you receive badges for being especially helpful. Badges appear on your profile page, questions & answers.Use your eared points to cread freely sticky questions and get answers rapidly.

Share & grow the world's knowledge!

We want to connect the people who have knowledge to the people who need it, to bring together people with different perspectives so they can understand each other better, and to empower everyone to share their knowledge.

What's your question?
  1. Hi, use P_TRIG to monitior everything in the left of this instruction. It turns to ON for one scan when the entire set of logic to the left goes from off to on use -|P| to monitor a single tag. it turns on one scan when the tag goes from off to on. Best regards

    Hi,

    use P_TRIG to monitior everything in the left of this instruction. It turns to ON for one scan when the entire set of logic to the left goes from off to on
    use -|P| to monitor a single tag. it turns on one scan when the tag goes from off to on.

    Best regards

    See less
  2. Follow this example to create a variable outside functions, and use it inside the functions: MyVariable = 99 #this is a global variable def changeAndPrint_GlobalVariable(): global MyVariable #use global variable in this function with "global" keyword print('Global variable "MyVariable" before changeRead more

    Follow this example to create a variable outside functions, and use it inside the functions:

    MyVariable = 99 #this is a global variable
    
    def changeAndPrint_GlobalVariable():
        global MyVariable  #use global variable in this function with "global" keyword
        print('Global variable "MyVariable" before change = ', MyVariable) # the global variable is printed
        MyVariable = 1  #change the value of the global variable is printed
        print('Global variable "MyVariable" after change = ', MyVariable) # the global variable is printed
    
    def changeAndPrint_LocalVariable():
        MyVariable = 77 #this is a local variable
        print('Local variable "MyVariable" = ', MyVariable) #the local variable is printed
    
    changeAndPrint_GlobalVariable() #call the function
    changeAndPrint_LocalVariable() #call the function

    This code will print:

    Global variable "MyVariable" before change =  99
    Global variable "MyVariable" after change =  1
    Local variable "MyVariable" =  77

     

    See less
  3. Hello this code may help you: def flatten_list(original_List): flat_list = [] for sub_list in original_List: for element in sub_list: flat_list.append(element) return flat_list #test original_List=[['a', 'b', 'c', 'd','e'], ['f', 'g', 'h', 'i'], ['j', 'k', 'l'], ['m', 'n', 'o']] print('original listRead more

    Hello

    this code may help you:

    def flatten_list(original_List):
        flat_list = []
        for sub_list in original_List:
            for element in sub_list:
                flat_list.append(element)
        return flat_list
    
    #test
    original_List=[['a', 'b', 'c', 'd','e'], ['f', 'g', 'h', 'i'], ['j', 'k', 'l'], ['m', 'n', 'o']]
    print('original list = ', original_List)
    print('flat list = ', flatten_list(original_List))

     

    See less
  4. Please use this code: $first_date = new DateTime("2022-01-01"); $second_date = new DateTime("2023-02-02"); $difference = $first_date->diff($second_date); echo "<difference> = " . $difference->y . " years, " . $difference->m." months, ".$difference->d." days " . "<difference in dRead more

    Please use this code:

    $first_date = new DateTime("2022-01-01");
    $second_date = new DateTime("2023-02-02");
    $difference = $first_date->diff($second_date);
    echo "<difference> = " . $difference->y . " years, " . $difference->m." months, ".$difference->d." days " . "<difference in days> =" . $difference->days . " days ";

    It works as you expect

    See less
  5. This answer was edited.

    Hi, This is the syntax to concatenate strings: $text1 = "hello"; $text2 = "world"; $text = $text1 . ' ' . $text2; For your code, use this: function UppercaseText($text_list) { $GlobalText = ""; $TableSize = sizeof($text_list);; for ($i = 0; $i < $TableSize; $i++) { $BigText[] = strtoupper($text_lRead more

    Hi,

    This is the syntax to concatenate strings:

    $text1 = "hello";
    $text2 = "world";
    $text = $text1 . ' ' . $text2;

    For your code, use this:

    function UppercaseText($text_list) {
    	$GlobalText = "";
    	$TableSize = sizeof($text_list);;
      	for ($i = 0; $i < $TableSize; $i++) {
        $BigText[] = strtoupper($text_list[$i]);
        $GlobalText .=  strtoupper($text_list[$i]);
        if ($i != $TableSize-1) {
        $GlobalText .= " ";
        }
      }
      //return $BigText;
      return $GlobalText;
    }
    $text_list = ['the', 'train', 'was', 'late'];
    var_dump(UppercaseText($text_list));

    Have a good day

    See less
  6. This answer was edited.

    Hi, I think Yoast SEO removed metakeywords. Please see this aricle : Meta keywords Why we don't use them - and neither should you use this key instead : _yoast_wpseo_focuskw You can update it like any post meta. This is the syntax: //the value of the focus key word $myFocusKeyword = "focus keyword eRead more

    Hi,

    I think Yoast SEO removed metakeywords. Please see this aricle :

    Meta keywords Why we don’t use them – and neither should you

    use this key instead :

    _yoast_wpseo_focuskw

    You can update it like any post meta. This is the syntax:

    //the value of the focus key word
    $myFocusKeyword = "focus keyword example"; 
     //wrtie the value to postmeta key _yoast_wpseo_focuskw
    $updatedKeyword = update_post_meta($post_id, ‘_yoast_wpseo_focuskw’, $myFocusKeyword);

    I tested it and it works fine.

    regards

    See less
  7. Hi, In my case, I used multiple MB_client function blocks to read data. I was using the same client ID for all of them. I changed the connection ID of those differents connections and the problem was fixed. if you have 3 instances of MB_client. you must set unique connection ID per instance Example:Read more

    Hi,

    In my case, I used multiple MB_client function blocks to read data. I was using the same client ID for all of them. I changed the connection ID of those differents connections and the problem was fixed.

    if you have 3 instances of MB_client. you must set unique connection ID per instance

    Example:

    ID = 1  for MB_client_1 instance

    ID = 2  for MB_client_2 instance

    ID = 3  for MB_client_3 instance

    Regards

    See less