theming – What to use instead of raw filter for D9 in Display Suite templates?

Drupal 9 themeing documentation indicates that the Twig raw filter is deprecated in favor of verbatim.

Twig 2 Verbatim:

The ds-field-expert.html.twig template in Display Suite uses raw to render the input in the prefix and suffix field, which is often HTML.

{{- settings['prefix']|raw -}}

verbatim in the Twig 2 documentation is not a filter, but instead wraps around content in the template, so wrapping the line of code does not actually go and get the prefix/suffix content. It just renders the twig.

  1. What should I use instead of raw in this case so the HTML I enter into the prefix and suffix field of a Display Suite expert field template renders as HTML and not plain text?
  2. Will this template break in D9?

windows 10 – How can I add multiple templates for the same file type to the new context menu?

How would I achieve what is shown in the image below? Assume the first 3 items are text files each using different text file templates and the 4th item is one not using a template i.e. just a blank text file.

enter image description here

One of the solutions I thought of was to just add a random key in HKEY_CLASSES_ROOT, such as .randomkey, then make it run a command to copy the template to the directory where the new file is created but I am unsure how to do that. The key can be assigned an icon to make it look like a text file.

pathfinder 1e – Applying templates to lion shaman Wildshape

Polymorph spells, and abilities like wild shape that are based on them, are specifically barred from turning into templated versions of creatures. There are feats and such that supply specific exceptions, such as Planar Wild Shape, but none of those seem to allow the giant template.

There is an argument that beast shape III, for example, allows you to transform into a “Huge animal,” so that allows you to change into a lion except it is Huge. This is an extremely dubious reading of the rules in my mind, but web searches on this topic reveal a lot of people pushing it. This is functionally equivalent to applying the giant template, and while I find it a dubious interpretation of what the rules actually allow, as a GM I doubt I’d have any problem allowing it.

Resume Templates – Design 3.0 Multilingual macOS | Nulled Scripts Download

Resume Templates – Design 3.0 Multilingual | macOS | 17 mb
Resume Templates is a high-quality collection of 119 original Pages templates designed to give your career prospects a major boost. Present your educational background, experience, and skills in a way that will catch any recruitment manager’s attention.

Every object in Resume Templates can be easily recolored, reshaped, moved, or removed. Type or paste your own text, add or remove text boxes, and change the font if you want to. Add your photos to replace the stock images. Every layout – from the understated elegance of the traditional career descriptions to the buoyant colors of the resumes for creative professionals – features quality design and great usability.

The templates are available in the US and international page sizes.

Requires: the latest version of Pages.

Compatibility: macOS 10.12 or later 64-bit
Mac App Store:

Recommend Download Link Hight Speed | Please Say Thanks Keep Topic Live



rhel7 cis templates in Nessus – confusing reports

how to read Nessus reports which are producing contradictory recommendations (on Rhel7) with default firewalld on board by Redhat?

Example, two “Compliance FAILED” Ensure firewalld service is enabled and running - enabled Ensure firewalld is not installed or stopped and masked - stopped

spfx – How to create items in PnP Provisioning in SP Online site templates?

I am creating templates using the PnP provisioning but am noticing the items are not being created. I have this .json file

    "persistAssetFiles": false,
    "handlers": [
    "lists": {
        "lists": [
                "title": "MyData",
                "includeItems": true
    "pages": {
        "includeAllClientSidePages": true

and the exported XML file has the datarows data in it, but when I apply it to a site, the lists that get created don’t have the data in it. Does anyone know what’s wrong?

Who bought templates from Templatestore?

Who bought templates from "Templatestore"? What is the site, what are the reviews?

c++ – Generic test case templates

I often find that when I am writing, refactoring, or reviewing code that I want to do some simple testing. There are many existing test frameworks such as gtest and cppunit but my desire was to create something much simpler and with fewer features.

Specifically, I have two use cases in mind:

  1. I have some test input values with known desired outputs
  2. I have an existing function that I want to optimize but keep correct

For both of these, I’ve create a very simple pair of templated objects after studying my own use of such techniques in existing code. In looking at how I use such code, I find that I have three general uses:

  1. I want pretty color printing to the screen with good values in green and bad ones in red
  2. I want to redirect the output to a file without the pretty colors
  3. I want to run all the tests and just silently get a bool that indicates whether all tests passed

Here are the templates I’d like to get reviewed.



#include <string>
#include <string_view>
#include <vector>
#include <iomanip>
#include <iostream>

namespace edward {

static const std::string CSI{"x1b("};
static const std::string RED{CSI + "31m"};
static const std::string GREEN{CSI + "32m"};
static const std::string RESET{CSI + "0m"};

static const std::string badgood(2)(2){ 
    { "(BAD) ", "(OK) " },
    { RED + "(BAD) " + RESET, GREEN + "(OK)  "+ RESET },

template <class InputType, class OutputType>
class TestCollection {
    struct TestCase {
        InputType input;
        OutputType expected;
    TestCollection(OutputType (*testfunc)(InputType), std::vector<TestCase> tests) 
        : testfunc{testfunc}
        , tests{tests}
    bool testAll(bool verbose = true, bool color = true) const {
        return verbose ? verboseTest(color) : quietTest();
    bool quietTest() const {
        bool good{true};
        for (const auto& t : tests) {
            good &= (testfunc(t.input) == t.expected);
        return good;
    bool verboseTest(bool color = true) const {
        bool good{true};
        std::size_t i{0};
        for (const auto& t : tests) {
            auto result = testfunc(t.input);
            bool isOK = result == t.expected;
            good &= isOK;
            std::cout << badgood(color)(isOK)
                << "Test #" << i << ": "
                << std::boolalpha << "got "" << result 
                << "", expected "" << t.expected 
                << "" from "" << t.input << ""n";
        return good;
    OutputType (*testfunc)(InputType);
    std::vector<TestCase> tests;

template <class InputType, class OutputType>
class DynamicTest {
    DynamicTest(OutputType (*testfunc)(InputType), OutputType (*trustedfunc)(InputType))
        : testfunc{testfunc}
        , trustedfunc{trustedfunc}
    bool test(InputType in, bool verbose = true, bool color = true) const {
        return verbose ? verboseTest(in, color) : quietTest(in);
    bool quietTest(InputType in) const {
        return testfunc(in) == trustedfunc(in);
    bool verboseTest(InputType in, bool color = true) const {
        OutputType result{testfunc(in)};
        OutputType expected{trustedfunc(in)};
        bool isOK{result == expected};
        std::cout << badgood(color)(isOK)
            << std::boolalpha << "got "" << result 
            << "", expected "" << expected 
            << "" from "" << in << ""n";
        return isOK;

    OutputType (*testfunc)(InputType);
    OutputType (*trustedfunc)(InputType);

}; // end of namespace EDWARD


Here is some sample test code that exercises both templates and illustrates the intended use. Note that these use this idiom to decide whether or not to print color:

bool color{static_cast<bool>(isatty(STDOUT_FILENO))};

This works on Linux (or any POSIX compliant) machines but is not, to my knowledge, portable to Windows. Rather than make the template non-portable, I simply omit it from the templates and rely on the caller. Also note that the printing is only done to std::cout in the template. Here again, I found that it’s the only way I used existing code, so I didn’t incorporate features I’ve never used.


#include "testcase.h"
#include <iostream>
#include <string>
#include <algorithm>
#include <cmath>
#include <functional>
#include <unistd.h>

bool isInteger(const std::string& n) {
    if (n.size() > 1) {
        return std::all_of(n.begin() + 1, n.end(), isdigit)
            && (isdigit(n(0)) || (n(0) == '-') || (n(0) == '+'));
    return isdigit(n(0));

void one() {
    bool verbose{true};
    bool color{static_cast<bool>(isatty(STDOUT_FILENO))};

    static const edward::TestCollection<const std::string&, bool> tc{ isInteger, {
        {"+", false},
        {"-", false},
        {"0", true},
        {"3", true},
        {"9", true},
        {"a", false},
        {"99a9", false},
        {"9909", true},
        {"", false},
        {"this test lies", true},  // deliberately bad test
        {"-3.14", false},
        {"+32768", true},
        {"-32768", true},
    auto result{tc.testAll(verbose, color)};
    std::cout << "All tests " << (result ? "passed" : "did NOT pass") << "n";

int square_it(int x) {
    return std::pow(x, 2);

void two() {
    bool verbose{true};
    bool color{static_cast<bool>(isatty(STDOUT_FILENO))};

    edward::DynamicTest<int, int> dt{()(int x)->int{return x*x;}, square_it };
    bool result{true};
    for (int i{-5}; i < 5; ++i) {
        result &= dt.test(i, verbose, color);
    std::cout << "All tests " << (result ? "passed" : "did NOT pass") << "n";

int main() {

I’m interested in a general review.

magento2.3 – Magento2 Enable WYSIWYG On Email Templates Admin Panel

I know Magento has a WYSIWYG library but I am surprised that when you go to Marketing>Email Templates and click into one of the email templates the textarea is not WYSIWYG enabled.

Does anyone know what fileI would edit or an open source plugin that would enable that textarea to be a WYSIWYG

SharePoint 2013 page layout does not show up in Page Layouts and Templates

OK, I confess! It has been a while that I have not used page layouts and especially now when we have got SPFx, and other nice things.

I created a page layout using Design Manger (SP 2013 :(). I have published the page layout, however it does not show up in: Page layouts and site templates.
Of course, nor in the Ribbon or when I create a new page.
Both HTML and aspx are present in the Master Page Gallery.

What am I missing or have forgotten? 🙂