character creation – Where can I find post per post roleplaying partners, adults and in an html site format. Paragraph writers please

The site ScFi based of the planet Gor. I am looking for paragraph writers who enjoy plots, plot twists and good character development. Email me if interested and I will provide more details. Thank you

google sheets arrayformula – =IMPORTHTML forces content to date format

I am a beginner with code and formulas here, so I was wondering if anyone could do exactly what was done on this question:

Trying to use Google Sheets importHTML() to import a table. It forces content to a date format

to this table:

https://www.actionnetwork.com/nfl/nfl-against-the-spread-standings

In short, IMPORTHTML changes sports records to date format. Changing the numbers format to plain text does not work when importing websites, as the format is preset. However, there is a workaround using the ARRAYFORMULA and REGEXREPLACE. When you open the link scroll down to Aurielle’s response for the single formula version. I have tried to implement the workaround for the NFL record link above, but I can’t quite find the right formula mostly because, again, I’m a beginner and I don’t understand these formulas. I was wondering if anyone understood this better and could give me the correct formula for this specific table of NFL records.

I would greatly appreciate any help!

modern experience – Modify Microsoft form embedded webpart format on SharePoint page

I have created a Microsoft form and embded the code in SharePoint page.

But I cannot modify the text on display of webpart.

As of now, the webpart on SharePoint page is as below

enter image description here

Now, how can I modify the the text like “Microsoft Form” to actual form name and change the background color?

And how to choose a format to

html – Can converting a virus-infected webpage to PDF format still contain viruses

So I know that PDF files can contain viruses themselves if they are target specifically for that purpose. However, my question for here is this: If a webpage that has some malicious scripts or a virus is converted into a PDF using one of the popular programmatic html to pdf conversion libraries (eg. in nodejs or python), and a user opens that PDF, is there any chance at all that the PDF itself is infected as well?

authorization – Token format for unauthenticated verification processes

I have a JWT-based web app where:

  1. user logs in (username + password)
  2. if valid, backend generates a JWT and sends it back in the signin response
  3. client can then use that JWT on subsequent requests to authenticated URLs until the JWT expires

There are a few times when I want to grant special permissions to an unauthenticated user. The two scenarios I can think of are:

  • User needs to verify their email address for a new account that they just created, before we will allow them to actually access the new account and do things with it; and
  • User has forgotten their password and needs to reset it

…though, there may be other scenarios that I just haven’t ran into yet.

In both cases, we send the user an email. This email needs to have some type of token/hard-to-forge that will act as a credential for them.

In the case of email verification, the email they receive will have a link to a static page; this link will contain a token that we validate on our side. If it validates, we set their account status to “verified” and they will be allowed to log in and begin using their account.

In the case of a password reset, we will send them an email that contains a link to a form. This link will also contain a token that we validate on the backend. If it validates, we display the form and allow them to reset their password. When they submit this “reset password” form, that form submission will also contain the token which we will validate a second time for good measure. If it validates, their password is updated.

On to my question:

I was going to use a JWT for these “verification” tokens, as I can set their expiry and wouldn’t need to keep them in storage for tracking and invalidation purposes. The cost there is, so long as a token hasn’t expired, it will still be valid for some period of time, which may carry its own security risks. Also, JWTs typically are very long (character-wise), and I was wondering if there are any known standard practices here for these types of verification tokens that I might be overlooking. Thanks in advance for any-and-all help!

intuition – How do I tell users that they can ask questions in Audio format?

First of all, you are on the right track! The design is clean and usable! Now back to your question. You said that when the audio version was presented to the user by default, then they would use it. However, when the text version is used by default, less than 1% actually switch to the audio. The objective here is to encourage users to record their question.

How about this: Instead of directly opening the text area or the audio recording button, give the user the ability to choose either one from the beginning. I have attached a quick wireframe to illustrate the idea:

enter image description here

testing – How do I test a CKEditor text format field with Behat/Mink?

This doesn’t yet have official support in the Drupal Extension. The linked thread has some examples that use traits.

However, I found this gist by johnennewdeeson to be a faster, easier solution for me, just cut and paste into FeatureContext.php:

  /**
   * @Then I fill in wysiwyg on field :locator with :value
   */
  public function iFillInWysiwygOnFieldWith($locator, $value) {
    $el = $this->getSession()->getPage()->findField($locator);

    if (empty($el)) {
      throw new ExpectationException('Could not find WYSIWYG with locator: ' . $locator, $this->getSession());
    }

    $fieldId = $el->getAttribute('id');

    if (empty($fieldId)) {
      throw new Exception('Could not find an id for field with locator: ' . $locator);
    }

    $this->getSession()
      ->executeScript("CKEDITOR.instances("$fieldId").setData("$value");");
  }

javascript – Parsing “key: value” format in which values can span multiple lines

So I’ve written a function which parses a fairly simple key-value pair syntax.
Each pair can span across multiple lines, as long as the value does not have a colon in it. If it does, then any new line must be preceded by three spaces. For each pair, I create an object with the key, the value, and the offset at which they appear (from the beginning of the string).

You can get a better idea of this syntax from the following image (keys in blue, values in green):

enter image description here

I thought about using regex, but seeing as I also need to keep track of the offsets for each item, and performance is extremely important – I thought it may be easier/more efficient to just use plain typescript. Here’s the function I came up with:

function parseTitlePageChunk(text: string):{key:string, value:string, keyoffset:number, valueoffset:number}() {
    console.time("pairs");
    let pairs = ();
    let potentialValue = ""; //keep track of a string which may be a key
    let potentialKey = ""; //keep track of a string which may be a value
    let potentialKeyOffset = 0;
    let potentialValueOffset = 0;
    let colonInLine = false;
    let forceValue = false; //true if a line starts with three spaces
    let spaceCounter = -1; //if the spaceCounter==-1 there's no more spaces at the beginning of the line
    for (let i = 0; i < text.length; i++) {
        let c = text(i);
        if (c == ':' && !colonInLine && !forceValue) {
            //We ran into a colon, promote the potential key to an actual one
            pairs.push({key: potentialKey, value:"", keyoffset:potentialKeyOffset, valueoffset:potentialValueOffset});
            potentialValue = ""; //reset the potential value
            potentialValueOffset = i+1; //reset the potential value offset
            colonInLine = true;
        }
        else if (c == 'n' && pairs.length > 0) {
            //we hit a new line, and there exists a previous key
            pairs(pairs.length - 1).value = potentialValue; //set the value of the previous key
            pairs(pairs.length - 1).valueoffset = potentialValueOffset;
            potentialValue += 'n';
            potentialKey = "n";
            potentialKeyOffset = i;
            colonInLine = false;
            forceValue = false;
            spaceCounter = 0;
        }
        else {
            if(spaceCounter!=-1 && c == ' '){
                spaceCounter++;
            }
            else{
                spaceCounter = -1;
            }
            potentialValue += c;
            potentialKey += c;
            if(spaceCounter>=3) forceValue=true;
        }
    }
    if (pairs.length > 0) {
        //add the last potential value as a key
        pairs(pairs.length - 1).value = potentialValue;
        pairs(pairs.length - 1).valueoffset = potentialValueOffset;
    }
    console.timeEnd("pairs");
    return pairs;
}

It works pretty flawlessly as far as I can tell, and seems quite efficient (it’s only iterating through the string once), but I also find it’s a little overcomplicated for what seems like a fairly simple task. However I can’t figure out how to simplify it any further. Thoughts?

views – Format files related to node

I used Drupal a lot in my old days but now I’ve been like 10 years without using it and using it again.
What I want to do is to show the files that are related to a node of a specific content type in the format I want, that is all the files related to the node in a table at the bottom and with description and upload date. These files are in a unlimited file field.

The table format that the presentation of the content type lets me choose is not good for me, it only displays name and file size.
Is there a a way to specify what you want the table to show? I haven’t found any way.

Then two options have come to mind: make my own template and make a view block.

To make my own template I need to learn how these twig templates work now, and I would like to know where to find the default template for this table, so I can copy it and add the columns I want.

Fot the views approach I haven’t been able to get a successful relation that only shows the files attached to the node I am in.

I would appreciate help with any of these solutions, and in case it is possible to solve it in many ways, which one would be the best?