Modify Fibonacci Heap to Have a Linear Chain of Marked/Unmarked Nodes Only

In CLRS book there is an exercise (19.4-2) the aim of which is to create a linear chain of nodes by a sequence of Fibonacci-Heap operations. I have solved the problem by recursively making a union with a chain of two nodes, inserting a new minimum node and extracting the minimum, after which consolidation takes place and returns a new linear chain. Since there are no DECREASE-KEY or DELETE-NODE operations, no node is being marked.

My question is, is it possible to create a linear chain consisting of marked nodes only. If so, how?

I have tried several strategies. In one case I am getting a linear chain with all but the last node marked and I cannot proceed from there.

Another possibility is to get a chain as follows for $ n$ nodes:

Example of resulting FH

From here one can delete all the nodes on the shortest path for each sub-tree starting from the bottom to mark all of the nodes on the longer path. However, I cannot find a way to get this Fibonacci-Heap in the first place (and I am not sure whether it is possible). Any help would be appreciated.

Home page only visible for some viewers

we created a website for a client. When we enter the URL, it loads to the home page no problem for us and several other testers, but a bunch of other users are reporting getting the old holding page. Those users can see all the other pages on the website, but not the home page. url: www.sally-denton.com Any clues? We’ve tried getting them to clear caches and use different search engines but all they’re getting is a contact form instead of the correct home page.

only last option from theme options is being saved to the DB

I have this admin page functions where I am trying to prompt the admin for some text data.

the problem that is only the last field is being saved and existed ain the DB, the top ones do not exist in the DB at all.

adding options to admin page:

 register_setting( 'top-data-group', 'yourLogo');  register_setting( 'card1-group', 'card1_text');  register_setting( 'card4-group', 'card4_text');     add_settings_section('top-options', 'Top Information', 'top_options', 'top-data' );   add_settings_section('card1', 'Card 1', 'card1_options', 'top-data' );   add_settings_section('card4', 'Card 4', 'top_options', 'top-data' );    add_settings_field('yourLogo', 'Logo Image URL:', 'yourLogoImage_callback', 'top-data', 'top-options'  );  add_settings_field('card1_text', 'card 1 text:', 'card1_text_callback', 'top-data', 'card1'  );  add_settings_field('card4_text', 'card 4 text:', 'card4_text_callback', 'top-data', 'card4'  ); 

callback functions:

 function card1_text_callback (){     $  preText =  esc_attr( get_option('card1_text'));      echo ' <input type="text" name="card1_text" placeholder="card text" size="50" value="'.$  preText. '" > ';  }   function card4_text_callback (){     $  preText =  esc_attr( get_option('card4_text'));      echo ' <input type="text" name="card4_text" placeholder="card text" size="50" value="'.$  preText. '" > ';  }  function yourLogoImage_callback (){     $  preText =  esc_attr( get_option('yourLogoImage'));      echo ' <input type="text" name="yourLogoImage" placeholder="your Logo Image URL" size="50" value="'.$  preText. '" > <p> use external or internal image url , preferred (300 * 50 px) </p>'   ;  } 

the form page:

<h1> Top Section </h1> <?php settings_errors(); ?>   <form action="options.php" method="post" >       <?php        settings_fields('top-data-group');     do_settings_sections('top-data');      settings_fields('card1-group');     do_settings_sections('card1');      settings_fields('card4-group');     do_settings_sections('card4');      submit_button('save', 'primary sub-button', 'submit', true);    ?> </form> 

only last option is being saved to the db, top ones are all empty.

Do multiple sources of temporary hit points combine, or do you only get one set?

Do multiple sources of temporary hit points combine, or do you only get one set?

For example, say you cast armor of Agathys and false life on yourself. Do you have two separate pools of temporary hit points, or do you have to pick one of the two? By separate pools, I mean that you have 5 temp HP from AoA and 8 temp HP from FL. If you take 10 damage, can you pick one of the two pools of temp HP and take the leftover damage to your real HP, but still have the other pool to protect against a second attack?

I ask because a warlock player in my game insists that she gets both pools, but I think it should be either-or.

How do multiple sources of temp HP interact with one another?

How to make S3 Presigned url single use only?

Issue: I have a presigned url which is valid for 15 minutes. Upload can be initiated any number of times if the presigned url is captured in this time frame.

I want to make an S3 presigned url for upload as secure as possible, so that uploaded file is not modified. I always need first version.

Solutions I researched from various sources:

  1. Have upload in one folder of the bucket and then use a lambda (only once for the first time) to move it to another folder which eventually consumes the uploaded file. Cons: introduction of lambda and its cold start for even a small file.
  2. Have a version check in all the places where S3 file is consumed. Cons: Too much code change and version needs to be maintained somewhere along side filename.

Any other ideas?

Does Time Stop apply a magical effect on only the caster, or does it affect everyone else too?

If the answers to this question are anything to go by, time stop seems to be a surprisingly nuanced spell, but one basic disagreement that’s appeared in the comments has been that one camp thinks time stop applies an effect only on the caster, whereas the other thinks it also applies a magical effect to everyone else, too.

Granted, time stop applies a magical effect on the caster – of that, I have no question. But does it also apply a magical effect on everyone else in the multiverse as well?

Why does time stop NOT apply a magical effect on other creatures

Here are the points I’ve understood for the side that thinks time stop applies only to the caster:

  1. It has a range of Self, meaning that it only applies a magical effect on the caster.

  2. There is no spell in D&D that applies an effect to every single creature in the multiverse, except maybe for wish.

Why DOES time stop apply a magical effect on other creatures

Here are the points from the side that thinks time stop applies a magical effect to everyone as well (I’m a member of this camp):

  1. Spells with a range of Self can still apply magical effects to other creatures, such as detect thoughts, dream, magic jar, and spirit guardians.

  2. The spell’s first sentence says: “You briefly stop the flow of time for everyone but yourself,” and that wording seems to directly state that everyone but the caster experiences a magical effect where the flow of time stops for them.

Consequences, implications

There are consequences for choosing one side over the other, which is the motivation for asking this question.

Consequences: Time stop does NOT apply a magical effect to other creatures

Going with the first camp, you can side step the confusion that comes with zones of antimagic and time stop. But, it doesn’t strictly follow the wording of the spell by ignoring the sentence “You briefly stop the flow of time for everyone but yourself.”

In addition, by claiming that spells with a range of Self do not impose a magical effect on other creatures, that same logic can be applied to, say, magic jar, where a humanoid inside a zone of antimagic can still be possessed because the spell has a range of Self, so it affects only the caster, and therefore the possession of other creatures is not a magical effect of the spell. The same logic can be applied to many other spells with a range of Self, some of which are listed above.

Consequences: Time stop DOES apply a magical effect to other creatures

Going with the second camp, yes, you can more closely follow the spell’s text as written. However, you also open the doors to the aforementioned confusion between zones of antimagic and time stop.

If time stop creates a magical effect on every other creature in the multiverse, across planes of existence (which seems to be the valid interpretation of “everyone but yourself” – and take note, this is a 9th level spell on par with wish), then being immune to it in any way (whether you’re inside a zone of antimagic, you are immune via the wish spell, or you’re one of the gods of the multiverse) will allow you to observe as everyone suddenly freezes in time whenever someone casts time stop.

It also fails to offer a resolution to the linked question, where initiative order between someone inside an antimagic field and a caster of time stop is not well defined.

The Question

With all the above in context, the question is as the title says: does Time Stop apply a magical effect on only the caster, or does it affect everyone else too?

extract only single value from multiple rows based on certain condition for same id in Oracle

I’m oracle beginner, and I’m having trouble shooting the below issue –

My table is –

+——-+——+——-+—— + | ID | GRP | ITDESC| DEN |
+——-+——+——-+—— + | 12345 | MANX | Apple | SendV | +——-+——+——-+—— + | 12345 | MANX | Apple | Manual| +——-+——+——-+——- | 12345 | MANX | Apple | UnVeri| +——-+——+——-+—— + | 12346 | MANX | Mango | UnVeri| +——-+——+——-+—— + | 12347 | MANX | PineAp| SendV| +——-+——+——-+—— + 12348 | MANX | Pine | Manual|

I am expecting –

+——-+——+——-+—— + | ID | GRP | ITDESC| DEN |
+——-+——+——-+—— + | 12345 | MANX | Apple | SendV | +——-+——+——-+—— + | 12346 | MANX | Mango | UnVeri| +——-+——+——-+—— + | 12347 | MANX | PineAp| SendV| +——-+——+——-+—— + | 12348 | MANX | Pine | Manual| +——-+——+——-+—— +

I have multiple rows that has only the DEN column different for the same id. My aim is – for the same id perform the check – If the Value of DEN is ‘Manual’ then check to see if there is ‘SendV’ in DEN column for that id. If it is present then consider ‘SendV’ otherwise consider ‘Manual’. Note in the provided example, the order is a random, the SendV can be in 2nd row or 3rd row or 4th row based on the action, however the text of DEN will be same as said above.

select * from table t1 where DEN IN (‘Manual’, ‘SendV’) .I am not aware how to write the condition??

Any suggestions/oracle query help is welcome.