How long do summoned beings last in World of Dungeons?

My friends and I are looking to play World of Dungeons, but I’m a little confused about the magic system:

Most magic requires summoning a spirit, demon, or elemental to perform supernatural effects. A Wizard begins play with the occult knowledge to summon two spirits. A spirit has a name, an appearance, and two domains of power (flame, shadow, stone, lightning, secrets, fear, etc.).

To summon a spirit you know, you require one of the following:

  • 1 hour of uninterrupted ritual.
  • A dose of quicksilver—a mild poison and addictive drug. (10s per use). If you drink more quicksilver doses in a day than your Level you must attempt to resist its negative effects with a CON roll.
  • A magic item containing a bound spirit.

A Wizard may command a spirit to perform a single magical effect that falls within its domains (it’s a good idea to give specific commands; spirits and demons can be capricious and cruel). Magical attacks do 2d6+level or 3d6+level damage if they are especially suited to the situation (using fire against a Frost Wraith, for example).

Is the summoned being single use since it performs ‘a single magical effect’? It doesn’t really seem right to have to summon a new spirit for every spell, but infinite uses seems overpowered too.

Remove x last elements of an array and reinsert them before position y

I am looking for an algorithm to move a subarray in before an element (which is not part of that subarray) in the same array where the last element of the subarray is the last element of the array with O(1) extra space and O(n) runtime.

e.g. where *p1 = 5 and *p2 = 3:

1 2 5 6 7 3 4


1 2 3 4 5 6 7

This is what I have so far (written in C programming language). Trouble arises when p1 reaches p2.

void swap(long* p1, long* p2, long* array_end) {   long* p2_i = p2;   while (p1 < array_end) {     if (p2_i > array_end) {       p2_i = p2;     }      // swap *p1 and *p2_i     long* temp = p1;     *p1 = *p2_i;     *p2_i = temp;      ++p1;     ++p2_i;   } } 

How long does damage resistance granted by Wish last?

One of the possible effects you can create with the 9th level spell Wish states:

You grant up to ten creatures that you can see resistance to a damage type you choose.

And that’s it. No length of time is defined, and the Duration of the spell itself is Instantaneous. Thus, my question is this: Does this mean that:

  • The duration of the effect is Permanent, and thus lasts until dispelled?
  • The effect is Instant and effects a permanent change in the targets?
  • It’s an error, and the description was supposed to list a Duration (say, 8 hours)?

My best guess is that it’s the latter; the effect is probably supposed to be temporary but the bug slipped past QC.

Searching the site didn’t show any related questions.

Getting the URL of second last visited page in SharePoint

I am able to get the previous page URL, but also I need to get the URL of the second last visited page.

I have used the below code..

<script> _spBodyOnLoadFunctionNames.push("GetUrl");    function GetUrl() {    var referrer =  document.referrer; alert(referrer);  //var x=history.go(-2); //alert(x); } </script> 

but history.go(-2) will directly redirect to the second last visited page, how to get that url?

OneHourIndexing API broken since last few patches

I wanted to make this post to bring to your attention that OHI has been broken since the patch where the indexer settings was changed around 9/4 – 9/6.  Right now I am getting the error “sending links to One Hour Indexing batch name can’t be blank,and it shows that it is not sending any links to the OHI API.  There is also another problem in the indexer tab, it does not let us set it to send more than 9999 links per day to the OHI API whereas before the change I was able to send as many as I wanted to.

Get the Last Modifying User of a file from the Share Point web API

I am using python and want to make a simple request to get the last modifying user from the list of items in a document library. This is my code:

import sharepy  s = sharepy.connect("", username='', password='password')  r = s.get(spo_site + "/_api/web/lists/getbytitle('" + spo_library + "')/items?$  select=[**What Do I Put Here**]&$  Top=1") 

Basically just need to know what to put in the bold to get the last modifying user. /_api/web/lists/getbytitle(‘Documents’)/items?$ select=Editor? ModifiedBy? LastUser?&$ Top=1

I thought Editor was a valid field, but when I use it, I get this error message:

<m:error xmlns:m=""> <m:code>-1, Microsoft.SharePoint.SPException</m:code> <m:message xml:lang="en-US"> The query to field 'Editor' is not valid. The $  select query string must specify the target fields and the $  expand query string must contains Editor. </m:message> </m:error> 

Command to switch to the last terminal tab

Is there a way to switch to the last terminal tab with some commands or bash script?

What I have got so far:

  • To switch to the next tab:

    xdotool key ctrl+Page_Down 
  • To get the number of terminal tabs:

    let terminal_counts=$  (ls /dev/pts/  | wc -l)-1 

Now I need to know how many times I need to execute xdotool key ctrl+Page_Down. How to know the current tab number?

apache2: Could not update at last version

I have an old server with Ubuntu 12.04.5 LTS and Apache/2.2.22. I need to upgrade at latest version Apache/2.4.41. But I can`t. Can someone help me with this ? I tried to add a new repository with apache2.4 available (add-apt-repository ppa:ondrej/apache2). And tried to make update normal apt-get update and apt-get upgrade but I got nothing, didn’t work. I don’t know how to really do this upgrade.

Thanks, K