Do temporary hit points count as part of the HP for resisting certain magical effects?

Temporary hit points in Dungeons & Dragons are a mechanic that allows “a buffer against damage” (PHB 198). There are a few spells of note that can affect a character based on how many hit points they currently have, most notably sleep, power word stun, and power word kill.

Does temporary HP count towards the HP total for determining resistance for these effects?

How to allow my Visio drawing inside a web part to occupy the whole upper area, as currently I will get an empty upper area

I have a Visio drawing with .vdw , then I used the Visio Web Access web part to add the drawing to my wiki page. I set the following settings for the web part:-

enter image description here

But I will get a free upper area as shown in he below picture:-

enter image description here

Now I can move the mouse on the drawing and drag it to start from the upper area,, but of course I need this change to be permanent,, so can anyone advice on this please

Thanks

getEnumerator causing collection has not been initialized error inside of async call inside of a loop in a script editor web part

This is an issue I’ve been struggling with – What I am doing is using a script editor web part and when a user clicks the button, I check to see if a list exists inside of a loop (in this example, it could be called Data1 – Data10) and if so, then I want to pull all of the items from that list based on the query, which is based on filters with other controls (Ignore the datepickers/filters – I know the query works)

The problem I’m hitting is that I’m running these async calls inside of my ‘does the list exist’ loop and getting to the getEnumerator line where I receive the error :

Error: The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.

I had previously posted a simplified version of this question and didn’t receive a response so was hoping if I posted the entirety of my solution that it may give me an answer.

Thanks

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js "></script>     <link rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css">     <script src="//code.jquery.com/ui/1.11.2/jquery-ui.js"></script>     <script type="text/javascript" language="javascript">      $  (function() {         $  ( "#datepickerStart" ).datepicker();         $  ( "#datepickerEnd" ).datepicker();     });      var valStopped = 10;     var allItems;     function getListData()      {         var _clientContext;         var _web;         _clientContext = new SP.ClientContext.get_current();         _web = _clientContext.get_web();         var lists = _web.get_lists();         _clientContext.load(lists,'Include(Title)');         //Get all lists...         var listTitle = "";         var arrayOfMatchedLists = [];         var responses = {exists:false,record:0};         var arrayOfPromises = [];          for (var j = 1; j < valStopped; j++) //loop through all potential lists and see if they exist         {             listTitle = "Data" + j;             arrayOfPromises.push(get_isListExists(listTitle,j,function(listExists,counter){             if (listExists){                 responses = {exists:listExists,record:counter};                 arrayOfMatchedLists.push(responses);             }             },function(sender,args){}));         }         $  .when.apply($  , arrayOfPromises).done(function() {         var largest = 0;         for (var item in arrayOfMatchedLists)          {         //Get the largest list index             if (arrayOfMatchedLists[item].record > largest)             {                 largest = arrayOfMatchedLists[item].record;             }         }         populateList(largest);             });      }       function populateList(counter)      {      for (var i = 1; i <= counter; i++)         {              var _clientContext;             var _web;             _clientContext = new SP.ClientContext.get_current();             _web = _clientContext.get_web();             var listTitle = "Data" + i; //+ i;             var list = _web.get_lists().getByTitle(listTitle);             var myquery = new SP.CamlQuery();             if ($  ("Data6").val() !== "All") //get Data6 as a filter if it's not all, else don't use Data6 as a filter.             {                 myquery.set_viewXml('<View><ViewFields><FieldRef Name=\'Data1\'/><FieldRef Name=\'Data2\'/><FieldRef Name=\'Data3\'/><FieldRef Name=\'Data4\'/><FieldRef Name=\'Data5\'/><FieldRef Name=\'Data6\'/><FieldRef Name=\'Data7\'/><FieldRef Name=\'Data8\'/><FieldRef Name=\'Data9\'/><FieldRef Name=\'Data10\'/></ViewFields></View>');             }             //else set query as all facilities             allItems = list.getItems(myquery);              _clientContext.load(allItems, 'Include(Data1,Data2,Data3,Data4,Data5,Data6,Data7,Data8,Data9,Data10)');             _clientContext.executeQuery(Function.createDelegate(this, this.onQuerySucceeded()), Function.createDelegate(this, this.onQueryFailed));         }                }      function onQuerySucceeded()      {         var Data1 = null;         var Data2 = null;         var Data3 = null;         var Data4 = null;         var Data5 = null;         var Data6 = null;         var Data7 = null;         var Data8 = null;         var Data9 = null;         var Data10 = null;         var txtHTML = "";          console.log("before enum");         var listEnumerator = allItems.getEnumerator();         console.log("get enumerator");             while (listEnumerator.moveNext()) {                     console.log("before got current");                     var currentItem = listEnumerator.get_current();                     console.log("got current");                     Data1 = currentItem.get_item('Data1');                     Data2 = currentItem.get_item('Data2');                     Data3 = currentItem.get_item('Data3');                     Data4 = currentItem.get_item('Data4');                     Data5 = currentItem.get_item('Data5');                     Data6 = currentItem.get_item('Data6');                     Data7 = currentItem.get_item('Data7');                     Data8 = currentItem.get_item('Data8');                     Data9 = currentItem.get_item('Data9');                     Data10 = currentItem.get_item('Data10');                     var row = document.createElement("tr");                      txtHTML = txtHTML + "<tr>";                     txtHTML = txtHTML + "<td>";                     if (Data1 != null) {                         txtHTML = txtHTML + "<p>" + Data1 + "</p>";                     }                     txtHTML = txtHTML + "</td>";                      txtHTML = txtHTML + "<td>";                     if (Data2 != null) {                         txtHTML = txtHTML + "<p>" + Data2 + "</p>";                     }                     txtHTML = txtHTML + "</td>";                      txtHTML = txtHTML + "<td>";                     if (Data3 != null) {                         txtHTML = txtHTML + "<p>" + Data3 + "</p>";                     }                     txtHTML = txtHTML + "</td>";                      txtHTML = txtHTML + "<td>";                     if (Data4 != null) {                         txtHTML = txtHTML + "<p>" + Data4 + "</p>";                     }                     txtHTML = txtHTML + "</td>";                                                      txtHTML = txtHTML + "<td>";                     if (Data5 != null) {                         txtHTML = txtHTML + "<p>" + Data5 + "</p>";                     }                     txtHTML = txtHTML + "<td>";                     if (Data6 != null) {                         txtHTML = txtHTML + "<p>" + Data6 + "</p>";                     }                     txtHTML = txtHTML + "</td>";                         txtHTML = txtHTML + "<td>";                     if (Data7 != null) {                         txtHTML = txtHTML + "<p>" + Data7 + "</p>";                     }                     txtHTML = txtHTML + "</td>";                         txtHTML = txtHTML + "<td>";                     if (Data8 != null) {                         txtHTML = txtHTML + "<p>" + Data8 + "</p>";                     }                     txtHTML = txtHTML + "</td>";                         txtHTML = txtHTML + "<td>";                     if (Data9 != null) {                         txtHTML = txtHTML + "<p>" + Data9 + "</p>";                     }                     txtHTML = txtHTML + "</td>";                         txtHTML = txtHTML + "<td>";                     if (Data10 != null) {                         txtHTML = txtHTML + "<p>" + Data10 + "</p>";                     }                     txtHTML = txtHTML + "</td>";                         txtHTML = txtHTML + "</tr>";             }             console.log("ran");         $  ("#tblCustomListData").append(txtHTML);     }      function onQueryFailed(sender, args)      {         alert("failed Message" + args.get_message());     }      function get_isListExists(listTitle, counter, OnSuccess, OnError){          var ctx = SP.ClientContext.get_current();         var web = ctx.get_web();         var lists = web.get_lists();         ctx.load(lists);          var outValue = $  .Deferred();         ctx.executeQueryAsync(           function() {           if (counter <= valStopped){             var listExists = false;               var le = lists.getEnumerator();             while (le.moveNext()) {                     var list = le.get_current();                     if(list.get_title() == listTitle) {                         listExists = true;                         break;                     }                 }                 }            outValue.resolve();           OnSuccess(listExists,counter);           OnError();             });         return outValue.promise();     }  </script>        <p> Data6: <select id="Data6">       <option value="Op1">Op1</option>       <option value="Op2">Op2</option>       <option value="Op3">Op3</option>       <option value="Op4">Op4</option>       <option value="Op5">Op5</option>       <option value="Op6">Op6</option>     </select> </p>     <p>Start Date: <input type="text" id="datepickerStart">     End Date: <input type="text" id="datepickerEnd"></p>     <center><button ID="retrieveList" onclick="ExecuteOrDelayUntilScriptLoaded(getListData(), 'sp.js');return false">Retrieve List</button></center></br>     <table id="tblCustomListData" border="1">         <thead>             <tr>                 <th>Data1                 </th>                 <th>Data2                 </th>                 <th>Data3                 </th>                 <th>Data4                 </th>                 <th>Data5                 </th>                 <th>Data6                 </th>                 <th>Data7                 </th>                 <th>Data8                 </th>                 <th>Data9                 </th>                 <th>Data10                 </th>                                    </tr>         </thead>     </table> 

RSS Viewer Web Part Loading Error

Working in SP13 and the RSS Viewer Web Part is available. The web part came over from a site original created in SP10. It worked when it entered into SP13 however it’s not working now. Things I have done to correct the problem was to delete the web part and put another on the site. However, the URL does not work. This error appears when applying the URL “An unexpected error occurred when processing your request. See logs for further information and correct the error.” I checked the URL in the browser and it worked fine.

What I want to be able to do is to show each RSS Feed (total of 4 on a page) as individual feeds on a page.

To resolve the issue I tried many things.

  1. I have searched and found many questions about the same problem. Many had no answers.
  2. I found another solution to create a content query web part. But found no clear steps on how to do so.
  3. Tried to show the RSS Feed page by using the Page Viewer web part, but the URL will not show. Is this because it’s an RSS Feed?
  4. I haven’t checked the Kerberos authentication , but if worked a week ago wouldn’t mean the Kerberos is on?

Has anyone ran across this issue in SP13?

Note: To get to the RSS Feed an username/password is to be entered if you just use the company URL. The RSS Feed URL (short cut URL) does not work in the RSS Viewer web part.

Print the content part of DIV in SharePoint 2013

I`ve researched a lot and spent more than 24 hours on it, but what ever reason adding the following in Content Editor WebPart on SharePoint 2013 List page, doesn’t does the job as expected. Expectation: To Print the content and no blank pages.

If I just give the print command with no Javascript or CSS code to customized printing, then its prints blank pages apart from the original content.

Following code added to Content Editor WebPart –

<script type="text/javascript" src="https://jqueryjs.googlecode.com/files/jquery-1.3.1.min.js"> </script><script type="text/javascript">      function PrintElem(elem)     {         Popup($  (elem).html());     }      function Popup(data)      {         var mywindow = window.open('', 'my div', 'height=auto,width=600');         mywindow.document.write('<html><head><title>my div</title>');         /*optional stylesheet*/ //mywindow.document.write('<link rel="stylesheet" href="main.css" type="text/css" />');         mywindow.document.write('</head><body >');         mywindow.document.write(data);         mywindow.document.write('</body></html>');          mywindow.print();         mywindow.close();          return true;     }  </script>  <input type="button" value="Print Div" onclick="PrintElem(&#39;#WebPartWPQ2&#39;)"/>​​​​​​​​​ 

Please suggest where am i wrong? Also, I`ve tried with having the print.css with @media print function, but that print with extra blank pages, due to which I went for printing only the DIV content ( in order to avoid blank page)

How can I use the Quick Chart Web Part with data from a Document Library?

I would like to use the Quick Chart Web Part with data from a Document Library not a list.

When I try to place a Quick Chart Web Part onto my page it only seems to be able to connect to a LIST or for values to be manually input.

I wish for the content to be taken from certain documents, tagged as Process Maps in my library and using column values from a column called FPMO

Blank Black Screen Part Way Through Boot After HD Replacement

I just replaced the hard drive in my home server with a larger one, and now I get a weird not-quite-booted state. I’m running Ubuntu 16.04 LTS (yeah yeah, I know I need to update).

The procedure I used was as follows:

  1. Ran an update.
  2. Rebooted to be sure it was working.
  3. Shut down.
  4. Removed old HD from the server (called “Yemaya”).
  5. Put old and new HD into an entirely different computer (called “Darth”).
  6. Booted Darth off a live USB of CloneZilla.
  7. Did a device-to-device clone of from the old HD to the new HD.
  8. Shut Darth down.
  9. Booted Darth off a live USB of GParted.
  10. Expanded the partitions on the new HD to fill the available space.
  11. Shut down Darth.
  12. Removed both HDs from Darth.
  13. Put the new HD into Yemaya.
  14. Hooked it up and turned it on.

It POSTs fine:

Photo of the system's BIOS screen POST-ing.

It starts booting:

Photo of the system booting.

I allowed the fsck to run; no errors were reported any time I tried it.

Aaaaand at that point it switches to a blank, black screen.

The system is there. If I let it sit for about five minutes, eventually the monitor loses signal and starts searching for one. But if I tap any key on the keyboard, then the monitor finds a signal immediately and resumes displaying an empty black screen. So it’s responding to keyboard input.

I tried SSH’ing into it, but it did not work. I can’t ping it. Whatever is going wrong must be happening before the network gets started.

I can cause it to reboot by pressing CTRL+ALT+DELETE. When I do, it shows me the Ubuntu shutdown screen:

Picture of the system shutting down.

And then it reboots. I can boot it into recovery mode:

Picture of the system in recovery mode

I checked dmesg, but it had nothing interesting to say. All of my partitions mounted fine. Everything in the recovery mode console appears to work normally.

It feels like it must be a problem with the video driver, but how? I didn’t touch that! The data on the disk is a bit-for-bit copy of the original. The only thing that changed was the disk capacity.

The system is rather elderly. Hardware:

  • Mainboard: Intel D945GSEJT Johnstown
  • CPU: integrated Atom processor (N270 @ 1.333 GhZ, one core, 512 KB -cache)
  • RAM: 2 GB of the fastest the board would take
  • Original HD: Western Digital Scorpio Black WD3200BEKT 320GB 7200 RPM
  • New HD: Western Digital Scorpio Black WD7500BPKT 750GB 7200 RPM

Adding a content editor web part (which reference a .txt file) will break my list view inside mobile devices

I am working on a SharePoint 2013, and i have a team site collection which have the mobile browser view feature enabled. now inside the team site i have around 10 lists which are working well when accessed from mobile devices. except for one list view which i have edited its page (from setting >> Edit Page), and i add a content Editor web part which reference a .txt file. the .txt file have the following HTML:-

<img src="/Resources/Matrix.png" alt="Risk Matrix" style="width:854px;height:258px;">  

enter image description here

Now the list view page which is referencing the above content editor, will have the image added correctly inside non-mobile devices screens. but the problem is that when i access the list view from mobile devices i got the error:-

enter image description here

now if i remove the content editor web part the page will work well inside the mobile screens. so my question is how i can overcome this problem? i am thinking if any of these approaches can be achieved :-

  1. either to allow my content editor web part to work on mobile devices. in other words to force the image to be shown inside mobile screens .
  2. the other option is if i can force sharepoint to bypass the content editor web part on mobile devices.

seems strange to me as sharepoint 2013 claim that it is mobile supported,, and i am adding a built-in web part of type content editor,, so how come this is not not working on mobile devices ?? Thanks

EDIT

now here is the full table which i am rendering as an image:-

enter image description here

and here is how it will look like on mobile devices when i deactivate the mobile browser view feature:-

enter image description here

Updating List View Web Part property in page

I have a List View web part (In the page > Add web part > App > document library name). I need to update the TitleUrl property of this web part through C# code.

The SaveChanges() method below works for my visual web parts, but not for the List view webpart. I get an error saying: Exception has been thrown by the target of an invocation

webpartManager = myPage.GetLimitedWebPartManager(System.Web.UI.WebControls.WebParts.PersonalizationScope.Shared); webPart.TitleUrl = titleURL; webpartManager.SaveChanges(webPart); 

I did a casting as below

XsltListViewWebPart listViewWebPart = (XsltListViewWebPart)webPart; listViewWebPart.TitleUrl = titleURL; webpartManager.SaveChanges(listViewWebPart); 

But I get the error at SaveChanges() method.

An exception of type ‘System.Reflection.TargetInvocationException’ occurred in Microsoft.SharePoint.dll but was not handled in user code

The error description is as below

>    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] > arguments, Signature sig, Boolean constructor)    at > System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, > Object[] parameters, Object[] arguments)    at > System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags > invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)   > at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] > index)    at > Microsoft.SharePoint.WebPartPages.BinaryWebPartSerializer.DoesPersonalizedPropertValueMatchDefaultValue(SPPersonalizablePropertyEntry > spPersonalizablePropertyEntry, Object value, Control defaultControl)   > at > Microsoft.SharePoint.WebPartPages.BinaryWebPartSerializer.Serialize(PersonalizationScope > scope, BinaryWebPartSerializerFlag binaryWebPartSerializerFlags, > BinaryWebPartSerializerWriter writer)    at > Microsoft.SharePoint.WebPartPages.BinaryWebPartSerializer.Serialize(SerializationMode > mode, BinaryWebPartSerializerFlag binaryWebPartSerializerFlags, > SPSerializationBinderBase serializationBinder, > BinaryWebPartSerializerWriter writer)    at > Microsoft.SharePoint.WebPartPages.BinaryWebPartSerializer.Serialize(SerializationMode > mode, BinaryWebPartSerializerFlag binaryWebPartSerializerFlags, > SPSerializationBinderBase serializationBinder)    at > Microsoft.SharePoint.WebPartPages.SPWebPartManager.SaveChangesCore(SPLayoutProperties > layoutProperties, Boolean httpGet, Boolean saveCompressed, Boolean > skipRightsCheck, Boolean skipSafeAgainstScriptCheck, WebPartTypeInfo& > newTypeId, Byte[]& newAllUsersProperties, Byte[]& > newPerUserProperties, String[]& newLinks)    at > Microsoft.SharePoint.WebPartPages.SPWebPartManager.SaveChangesInternal(SPLayoutProperties > layoutProperties, Boolean skipRightsCheck, Boolean > skipSafeAgainstScriptCheck)    at > Microsoft.SharePoint.WebPartPages.SPWebPartManager.SaveChanges(Guid > storageKey)    at > Microsoft.SharePoint.WebPartPages.SPLimitedWebPartManager.SaveChanges(WebPart > webPart)    at > WSP.ABC.ABC.ABCWindow.<>c__DisplayClass5.<ChangeWebPartProperties>b__4() > at > Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3() > at > Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated > secureCode) 

any reason why ?