## How to determine minimum word length of regular language

Given a regular language $$L$$ and a regular expression $$r$$ with $$L=L(r)$$. Is it possible to determine the minimum length of words of $$L(r)$$ by the structure of $$r$$?

A straightforward example:

Let’s say we have a regular expression $$r=aac^*aa$$, then $$L(R) = \{aaaa, aacaa, aaccaa, \dots, aac^naa\}$$. To determine the minimal length I would erase everything that is postfixed with $$*$$, leaving $$r’=aaaa$$. Now I would count the concatenations and add 1, which would yield in this example, not unsurprisingly, a minimum length of 4.

Is there a general approach to do this for more complex expressions?

## Functionally, how does Power Word Kill work?

I was just reading this answer, which introduced me to the Power Word Kill spell:

You utter a word of power that can compel one creature you can see within range to die instantly. If the creature you choose has 100 hit points or fewer, it dies. Otherwise, the spell has no effect (101 hp or more).

Functionally, how does this spell work? If I’m understanding this correctly, a PC can speak a word, and if the target has less than 100hp, they instantly are killed without the chance to save. My reason for asking is that this seems extremely overpowered, to the point where it could be used to kill deities or high-level bosses with little effort (especially those who rely less on having high HP and more on dealing extremely high points of damage – Moon Druids come to mind here).

While I recognize that the DnD system does allow for extremely powerful spells (cough cough wish cough cough), this one in particular seems to stand out.

Thus, functionally, how does Power Word: Kill actually work?

Note: I am not asking whether or not the community subjectively finds this spell overpowered. Rather, I am attempting to confirm how this spell works in practice, in order to decide for myself if it is overpowered.

• Are any saves permitted?
• Does the spell need to be heard by the target, or seen being cast?
• How might resistances or type-immunity play a role (if any)?

The purpose of this question is to confirm that this spell works in the way I am imagining, which while to me seems overpowered, if I am incorrect may not be the case.

## Microsoft Word Security Warning for Signed VBA Project

I am attempting to setup signed VBA Projects so that I can find the right balance between security and useability.

Currently my end users are instructed to just hit “Enable Content” on Microsoft Office to allow running of the Macro’s.

Obviously this is a security issue as it’s a blind approval, they should in fact be told to never hit “Enable Content” and the goal is that Word will automatically run the documents because the VBA Projects are digitally signed.

I have made a cert using “SelfCert.exe”. Imported it into the “Trusted Root”. It shows as trused. I opened VB Edited and applied this to my document, changed Word Trust Security Center settings to “Disable all except digitally Signed”. But, I still get the warning and can’t figure it out. Is this a glitch? Am I doing something wrong? Looking for help from somebody with experience with this issue.

## How to mark a tooltip-containing word in a paragraph?

I have a sentence in which one word has a tooltip. The data in the tooltip is supplemental and putting it into the main UI isn’t required.

However, how can I mark the word to notify the user that it has a tooltip? I’ve tried marking the word with an underline and blue color, but it looks too much like a link (which it isn’t).

Below is the image of what it looks like now:

Thanks!

## When I am uploading a Word Document in Document Library – Custom Columns values are getting blank

I have uploaded the Word document on SharePoint Document Library (Modern Site), my Library has following columns:

• Title

• LBB

• Category

Step 1: After uploading the file for the first time, I have filled the values in these columns on SharePoint.

Step 2: Again, I have uploaded the same file, now above columns values got blank.

Issue with Title > I can understand this…. Title is MS Word property as well and it will be overwritten (As per this – Document Properties not carry to new version).

But why my other custom columns values are getting blank???

Note: This issue is coming only for MS Office files (DOC, PPT, XLS, etc.). However it’s working as expected for other file formats – .pdf, .jpg, .zip, etc

## Attaching word document

When I attach a word document in outlook 2013 it does not attach properly. The file name becomes attachment49193829, with no file extention, and the reciever cannot open it. The attachment does not have a word icon but instead a blank page with top corner folded. Any ideas why it wont attach? Cheers.

## Logging to Sharepoint on Premises using C# from Visual Studio Word Addon

Please help. We have Sharepoint on premises 2016. My user is domain user. So I can go there by the web. But I am trying to connect via C#. My code is:

``ClientContext context = new ClientContext("https://something.something/prok/Shared%20Documents");  ICredentials credentials = System.Net.CredentialCache.DefaultNetworkCredentials; // orCredentialCache.DefaultCredentials context.Credentials = credentials; System.Net.NetworkCredential("vladislav.zautin", passWord);          context.AuthenticationMode = ClientAuthenticationMode.Default;                 Web web = context.Web;                 context.Load(web);                 context.ExecuteQuery();                 Label label1 = new Label();                 label1.Text = web.Title; ``

But I ceep getting error:

``System.Net.WebException   HResult=0x80131509   Message=The remote server returned an error: (403) Forbidden. System.Net.WebException: 'The remote server returned an error: (403) Forbidden.'   Source=<Cannot evaluate the exception source>   StackTrace: <Cannot evaluate the exception stack trace>  ``

Our server has two types of login: 1. AD (which I am trying to use by default login) 2. Security token service.

## Disable the option to edit SP document library in Desktop Word Application

I want to change my document libraries in Sp Online to allow staff to view, download and open in Word Desktop App, however I do not want them to be able to edit the document once it opens in the Word Desktop Application — only to Save As another name on their PC. I want to prevent them from altering the form in SP in any way. What do I do? Thx. Caulene

## Disable the option to edit SP document library in Desktop Word Application

I want to change my document libraries in Sp Online to allow staff to view, download and open in Word Desktop App, however I do not want them to be able to edit the document once it opens in the Word Desktop Application — only to Save As another name on their PC. I want to prevent them from altering the form in SP in any way. What do I do? Thx. Caulene

## How to get files from sharepoint C# Word VSTO addin

I am trying to get .doc file names from sharepoint and then get the file by the name. But I have a problem with using GetList() https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-server/dn793734%28v%3doffice.15%29. So far I have a code:

``string url = "https://mysharepoint.com/Things";              var ctx = new ClientContext(url);             Web web = ctx.Web;              var list = web.GetList("/Shared%20Documents/Test");              var listItems = list.GetItems(new CamlQuery());              ctx.Load(listItems,                 items => items.Include(                     item => item["Created"],                     item => item.File));              ctx.ExecuteQuery();              foreach (var item in listItems)             {                 Console.WriteLine("{0} - {1}",                         item["Created"],                         item.File.ServerRelativeUrl);             } ``

But I acnt understand why I have that Error:

``Severity    Code    Description Project File    Line    Suppression State Error   CS1061  'Web' does not contain a definition for 'GetList' and no accessible extension method 'GetList' accepting a first argument of type 'Web' could be found (are you missing a using directive or an assembly reference?)    MestoDljaProb   C:\Ribbon1.cs   111 Active ``