FunJoint – VERY ACTIVE in our 17th year nearly 900,000 posts | Forum Promotion

Hi @Migi

Thanks for the kind words. Oh yes, I have lost motivation once or twice before. We were fairly quiet from 2011ish until the end of 2015 with only 4 or 5 members keeping us going. Start of 2016, the inspiration returned and 2016 was possibly our best year ever. Not really any secret to be honest, new members always keep it fresh, at the very beginning way back in 2003 there was about 15 people who all knew each other on another forum that ended so that helped kick start us. Only 4 from way back then still remain though.

Just a short while ago, the 10,000th thread was made on the forum.

Total Threads: 10,000 Total Posts: 493,915

41 members online in the last 24 hours :]

8 – How to get drupal to check for a twig template in the active theme folder before checking the module folder?

I’m developing a contrib module for Drupal 8 that sends email notifications to group members when new content has been posted in groups they have subscribed to. The module defines some new view modes for nodes and comments. It then uses these new view modes to render the contents of the emails it sends out. The module defines a theme hook suggestion for each view mode and supplies a twig template for each view mode.

It works fine as is. The twig templates from within the module are utilized without a problem. What I’m not understanding is why copies of these templates placed within the active theme are not utilized. I’m familiar with the process of copying an existing twig template into a theme to be modified. But no matter what I do the template from the module is always used in this case. It was my understanding Drupal searches for suitable twig templates in the theme first and then works backward but perhaps my module is missing something.

Here are code samples for more details.

Define the view mode for comments – in modules/contrib/group_subscription/config/install/core.entity_view_mode.comment.group_subscription_immediate

langcode: en
status: true
dependencies:
  module:
    - comment
id: comment.group_subscription_immediate
label: 'Group Subscription Immediate (comment)'
targetEntityType: comment
cache: true

Define the theme hook suggestion – in modules/contrib/group_subscription/group_subscription.module

/**
 * Implements hook_theme()
 */
function group_subscription_theme($existing, $type, $theme, $path) {
  return (
    'comment__group_subscription_immediate' => (
      'base hook' => 'comment',
    )
  );
}

/**
 * Implements hook_theme_suggestions_comment_alter()
 */
function group_subscription_theme_suggestions_comment_alter(array &$suggestions, array $variables) {
  if ($variables('elements')('#view_mode') == 'group_subscription_immediate') {
    $suggestions() = 'comment__group_subscription_immediate';
  }
}

Please let me know if there is anything else I can provide to help me figure this out. I’ve been working with Drupal for years but am still relatively new to D8 and this is my first attempt at creating a module to give back. Thanks in advance!

is buycpanel.com still active ?

Hi,

is buycpanel.com still active ?

i do not get any new invoice,

do you also have the same issue ?… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1809978&goto=newpost

dnd 3.5e – How is miss chance calculated if a caster has Entropic shield active and is inside Darkness spell?

My question is simple. I have a warlock that has following invocations:

Darkness:

“This spell causes an object to radiate shadowy illumination out to a
20-foot radius. All creatures in the area gain concealment (20% miss
chance). Even creatures that can normally see in such conditions (such
as with darkvision or low-light vision) have the miss chance in an
area shrouded in magical darkness.”

Entropic warding:

“A magical field appears around you, glowing with a chaotic blast of
multicolored hues. This field deflects incoming arrows, rays, and
other ranged attacks. Each ranged attack directed at you for which the
attacker must make an attack roll has a 20% miss chance (similar to
the effects of concealment). Other attacks that simply work at a
distance are not affected.” Devil’s Sight: “You gain the visual acuity
of a devil for 24 hours. You can see normally in darkness and magical
darkness out to 30 feet.”

Devil’s Sight:

You gain the visual acuity of a devil for 24 hours. You can see
normally in darkness and magical darkness out to 30 feet.

With entropic warding I get 20% miss chance on ranged attacks as deflection. In addtion, Darkness grants 20% miss chance if the caster is in it. If I am inside darkness and I have entropic warding on, do my miss chances stacks up to 40% (given I get ranged attack) or do I roll miss chance twice as twice with 20% with each roll.

How can I create a Firebase Audience based on the hour users are active?

I want to figure out how to set up an Audience of users who enter my app between 4:00 pm and 5:00 pm so I can send them push notifications. However, I have not been able to figure it out. Is it possible to segment an audience depending on what time they’re active?

azure active directory – How to access Microsoft One Drive with python only using username & password

I’m planing to transfer the files from my linux system to Onedrive. However I implemented it using Microsoft Garph API. But I want to know if I only give username and password, How can I get the access.

For your reference my code

import os
import requests
params = {
          'grant_type': 'refresh_token', 
          'client_id': '',
          'refresh_token': ''
         }

response = requests.post('https://login.microsoftonline.com/common/oauth2/v2.0/token', data=params)
access_token = response.json()('access_token')
new_refresh_token = response.json()('refresh_token')
header = {'Authorization': 'Bearer ' + access_token}
directory='./uploads'
upload_url="https://graph.microsoft.com/v1.0/users/username/drive/root:/fotos/HouseHistory"

for root, dirs, files in os.walk(directory):
    for filename in files:
        filepath = os.path.join(root,filename)
        print("Uploading "+filename+"....")
        fileHandle = open(filepath, 'rb')
        r = requests.put(upload_url+"https://stackoverflow.com/"+filename+":/content", data=fileHandle, headers=header)
        fileHandle.close()
        if r.status_code == 200 or r.status_code == 201:
            #remove folder contents
            print("succeeded, removing original file...")
            os.remove(os.path.join(root, filename)) 
print("Script completed")
raise SystemExit

How to generate the client ID & refresh token using API if the username & password is given. In addition to that we need to set the permission also like FileReadWrite

May I know what all changes is need in my code for generalizing the script. Only by giving username & password I need to perform all this. Currently I generated the client ID & settled the PERMISSION here manually by

https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/Overview

Thanks in advance for your help

dnd 5e – Can the Shillelagh cantrip be active on two clubs at the same time?

No, shillelagh can only be active on one weapon at a time.

The shillelagh spell description says:

The wood of a club or quarterstaff you are holding is imbued with nature’s power. (…) The spell ends if you cast it again or if you let go of the weapon.

It says the wood of a club or quarterstaff, which is only one. At the end of the spell description, it says this spell ends if you cast it again. So sadly, no you can’t dual-wield 1d8+Wis weapons at 1st level with no feats.

Google script “if” condition not working on active sheet however no error recieved

The purpose of the google script is to compare cell B2 & cell A5 (Sum of C2:M2) in active sheet/tab; if B2 is less than A5 than it will pop up an alert & simultaneously change the background color of B2 to ‘red’ otherwise it will be ‘white’. Code seems to be Ok but it is only calculating sum in cell A5… I feel that “if” loop is not working.
Here is the code any help would be highly appreciable.

function onEdit(e) {
  // Set a comment on the edited cell to indicate when it was changed.
  //var range = e.range
  //range.setNote('Last modified: ' + new Date());
//var message = 'Alert';
  //var title = 'OTPS is over limit';
  //SpreadsheetApp.getActiveSpreadsheet().toast(message, title);
   //var currentSelection = SpreadsheetApp.getActiveSheet().getActiveSelection()

  var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getActiveSheet();

var cell = sheet.getRange("A5");
cell.setFormula("=SUM(c2:m2)");

   var value1 = dataSheet.getRange(2, 2).getValue();               //Getting value from B2 in "Raw Data"
    var value2 = dataSheet.getRange(5, 1).getValue();              //Getting value from A5 in "Raw Data"

  if (value1<value2){
    var message = 'Alert';
  var title = 'OTPS is over limit';
  SpreadsheetApp.getActiveSpreadsheet().toast(message, title);
   sheet.getRange(2,2).setBackground('red');
      } else {
       sheet.getRange(2,2).setBackground('white');
      } 

  }

heatsink – Is it possible to swap passive for active cooling on this supermicro board?

I’m looking to buy this Supermicro Mini-ITX board for an upcoming NAS build:
https://www.supermicro.com/en/products/motherboard/A2SDi-H-TF

The only thing is, it has an integrated CPU with passive cooling – has anyone had success swapping the passive for an active cooler on these boards? I’m a newbie when it comes to supermicro – just wondering if this is a regular thing to do.

Cheers!

dnd 5e – Does casting the Polymorph spell on a creature break an active Warding Bond spell affecting that creature?

We had a recent event in our campaign where our Warlock cast the Polymorph spell (PHB, p. 266) to change another player into a Giant Ape.

I had the Warding Bond spell (PHB p. 287) cast on the player that was polymorphed. My question is about the mechanic of Warding Bond interacting with Polymorph.

Since the protection provided by Warding Bond is dependent on both the caster and creature wearing a platinum ring, does casting Polymorph on a creature break an active Warding Bond affecting that creature?