What magic college could I have gone to before Hoard of the Dragon Queen?

I’m joining a running campaign of HotDQ where they just finished a chapter (I don’t know which, but the DM says everyone’s level 4) and I’m looking for a lore-friendly magic college to be part of. I’m playing as a level 4 Tiefling Sorcerer who meets up with the party while investing and dealing with reports of "strange happenings"in the area.

What magic colleges (or universities whatever) are in the forgotten realms that my character can be a part of?

Bonus action before Action for Crossbow Expert?

The Crossbow Expert feat says:

When you use the Attack action and attack with a one-handed weapon, you can use a bonus action to attack with a hand crossbow you are holding.

While I am aware that in general, the order of action/bonus action is irrelevant. My question is: does the wording of the feat require the action before the bonus action?


Compare and contrast with:

  • Monk’s Martial Arts

When you use the Attack action with an unarmed strike or a monk weapon on your turn, you can make one unarmed strike as a bonus action. For example, if you take the Attack action and attack with a quarterstaff, you can also make an unarmed strike as a bonus action, assuming you haven’t already taken a bonus action this turn.

  • Monk’s Flurry of Blows

Immediately after you take the Attack action on your turn, you can spend 1 ki point to make two unarmed strikes as a bonus action.

  • Shield Master Feat (relevant question)

If you take the Attack action on your turn, you can use a bonus action to try to shove a creature within 5 feet of you with your shield.

Can you make a bonus-action attack from Two-Weapon Fighting before you take your action?

The rules on Two-Weapon Fighting state:

When you take the Attack action and attack with a light melee weapon that you’re holding in one hand, you can use a bonus action to attack with a different light melee weapon that you’re holding in the other hand.

However, the description of bonus actions states:

You choose when to take a bonus action during your turn, unless the bonus action’s timing is specified

So, can you attack with your bonus action first?

memory storage of a program before compiling

Whenever we write code, after compilation the code will be converted to machine language and then stored in the hard disk. But before compiling the code, it is still in the high-level language. How and where the memory is allocated for the code before compiling the code while it is in a high-level language.

I assume, before compiling the code is stored in RAM, but how? because we can only store in machine language in RAM.

If there is any wrong with my question or it is a wrong way of asking, please comment below. It will be helpful

Ensure function has completed before allowing another Ajax call

I am updating an array saved in a users meta field using an ajax function.

The values added to the array are taken from the data-attributes within the tags which also act at the trigger to make the ajax call.

Whilst the function works 95% of the time, it can be a bit hit and miss whether the values save or not. I suspect this is because a user can fire these ajax calls too quickly and not give enough time for the original function call to save and update the meta field.

What would be the best method to ensure the ajax triggered function of updating the meta field value has been completed before allowing the function to run again?

Hope this makes sense – needless to say, please let me know if you need any more info.

Thanks in advance!!

Sample HTML

<div id="rjb_slots" class="slots">   <h5>Mon, 24th Aug 2020</h5>   <div class="slot">     <span class="time">10:30</span>     <a class="book" data-timestamp="1598265000" href="#"></a>   </div>   <div class="slot">     <span class="time">11:00</span>     <a class="booked" data-timestamp="1598266800" href="#"></a>   </div>   <div class="slot">     <span class="time">11:30</span>     <a class="booked" data-timestamp="1598268600" href="#"></a>   </div>   <div class="slot">     <span class="time">12:00</span>     <a class="book" data-timestamp="1598270400" href="#"></a>   </div>   <div class="slot">     <span class="time">12:30</span>     <a class="booked" data-timestamp="1598272200" href="#"></a>   </div>   <div class="slot">     <span class="time">13:00</span>     <a class="book" data-timestamp="1598274000" href="#"></a>   </div>   <div class="slot">     <span class="time">19:30</span>     <a class="book" data-timestamp="1598297400" href="#"></a>   </div> </div> 

Ajax .js

$  ('.slot').on('click', 'a.book', function(e) {   e.preventDefault();    var user   = $  ('#rjb_day').attr( 'data-user' );   var stamp  = $  (this).attr( 'data-timestamp' );       // console.log(bookCap);      $  (this).removeClass('book').addClass('booked');    $  .ajax({     type: 'POST',     url: ajax_object.ajaxurl,     data: {         action: 'rjb_make_diary_slots',         user: user,         stamp: stamp     },     success: function(data) {       // This outputs the result of the ajax request       console.log(data);     },     error: function(errorThrown){         console.log(errorThrown);     }   });      }); 

Function that updates the user metafield

add_action( 'wp_ajax_rjb_make_diary_slots', 'rjb_make_diary_slots' );  function rjb_make_diary_slots() {    $  user   = $  _POST['user'];    $  stamp  = array(               array(                  'rjb_cal_day'           => strtotime('today', $  _POST['stamp']),                 'rjb_cal_when'          => $  _POST['stamp'],                 'rjb_cal_position_id'   => '',                 'rjb_cal_candidate_id'  => ''               )             );    $  calendar   = get_user_meta( $  user, 'rjb_cal', true);   $  stamps     = !empty($  calendar) ? $  calendar : array();   $  new_stamp  = array_merge($  stamps, $  stamp);    usort($  new_stamp, function($  a, $  b) {     return $  a['rjb_cal_when'] <=> $  b['rjb_cal_when'];   });    update_user_meta( $  user, 'rjb_cal', $  new_stamp);    $  log = print_r($  stamp);    wp_die($  log);  } 

Example of a value stored in the rjb_cal user meta field

array (   [0] => array (     [rjb_cal_day] => 1598227200     [rjb_cal_when] => 1598266800     [rjb_cal_position_id] =>      [rjb_cal_candidate_id] =>    )   [1] => array (     [rjb_cal_day] => 1598227200     [rjb_cal_when] => 1598268600     [rjb_cal_position_id] =>      [rjb_cal_candidate_id] =>    )   [2] => array (     [rjb_cal_day] => 1598227200     [rjb_cal_when] => 1598272200     [rjb_cal_position_id] =>      [rjb_cal_candidate_id] =>    ) ) 

Can a flying character choose to fall, and then use a reaction to stop falling before hitting the ground?

As a flying character there are a few scenarios that I’d like to know are valid/RAW, invalid, or up to the DM.

Assume in these scenarios that all characters fall at 1000ft/round (this is not up for discussion (no matter how strongly you feel about it) as my DM has made this ruling.) Also assume the fall is intentional (on my turn/not done by an enemy or enemy’s turn).

  1. Fly at 1,005ft, fall (drop prone?) in 1 round (1000ft), next round recover (stand up from prone), land safely or continue to fly.

  2. Fly at 600ft, fall, to 60ft recover to fly normally.

  3. Fly at 600ft, fall, to 60ft cast feather as a reaction to falling. This scenario could also include carrying a halfling (600ft), then dropping her, and she can cast feather fall (as a reaction) 60ft before hitting the ground.

Feel free to add additional cool scenarios that could work. Or if a scenario doesnt work, what would be needed to make it work.

If possible please use citations, especially if any of the scenarios are invalid/against the rules.

Was Sallah Adrian Eldrich’s husband before?

From NetherWar #2: The Pentagram Peril

The event’s guest of honor is Sallah, Adrian Eldrich’s surviving partner. A handsome older Egyptian man, he retains legal control of his departed husband’s legacy and has worked closely with the museum to make sure the artifacts and documents on loan are treated with respect and caution. The heroes briefly encountered an unconscious Sallah if they played through Assault on the Nerian Nexus, and if so, he takes the opportunity to thank them again for their aid that night. If this is their first meeting, Sallah is polite enough, and curious about any magical powers among their number. The old man is fastidious and soft-spoken, with keen observation skills and a dry wit. His favorite topic of conversation is Adrian and their unusual adventures, and he’s happy to talk about the former Master Mage to anyone who will listen, peppering the mythology and adventures stories with occasional romantic insights. While he has mostly come to terms with his partner’s passing, he still sighs and wipes away the occasional tear as he speaks

Poking through the previous editions of Freedom City (I have copies of all three), Book of Magic, and the other NetherWar adventures, this is the first I’ve seen mention of Sallah and Adrian being romantically entangled, all of the prior descriptions having him be the archetypical "faithful manservant". Recognizing, of course, that Freedom City has long been a bit more inclusive of different sexual orientations, reflective of author Steve Kenson, it feels odd that this should show up a few decades after the character was introduced. Were there earlier mentions of their relationship being romantic?

Obscure compression before encrypting

Assuming whatever encryption algorithm used was designed to support compression without any information leakage, would there be any reason not to use some custom compression algorithm to add obscurity to security?

Instead of a compression algorithm, what if it were just a simple custom algorithm that mixed the bits or bytes of the input? Would that impact the security at all?

(This is assuming that the implementation of said algorithm is secure against side-channel attacks.)