Are there problems with handwaving attunement for timebounded adventures?

I will be running Strahd Must Die Tonight! for 5e and in previous games of it, due to the real and in-game time constraints and lack of short rests, I have handwaved attunement and allowed attunement to magic items just before the climax.

Are there any rules that speed up attunement that should be considered? Are there any mechanics of attunement to take into account for one-shots? Are there any compelling reasons not to allow players attune to items pivotal to the game?

Would allowing all Unearthed Arcana create rules problems?

I’m thinking of running a campaign where the players don’t have books and I wanted to recommend that they use the SRD until then, but also use any Unearthed Arcana material from Wizards’ site if they wanted.

Would allowing all Unearthed Arcana material create any balance problems or fundamental rule contradictions?

The main reasons being would be to allow players to use free material without worrying about buying books just yet, but also having available more interesting stuff to work with.

Submiting with problems on one of the options php wprdpress

Hello I having a strange behavior with a simple submit in a page that has to fill some data from 2 inputs. Basically everytime i try inserting without values it insert, if i try and put ‘teste1’ it inserts but it doesnt insert anything than that values more.

down i have the code im using:

        if (isset($  _POST['addit'])) {     $  wpdb->insert($  table_name, array(         'names' => $  _POST['name'],         'descriptions' => $  _POST['description']     )); } elseif(isset($  _POST['deleteit'])) {         if ($  _POST['deleteid']) {             $  wpdb->delete($  table_name, array('id'=>$  _POST['deleteid']));         } } $  categories = $  wpdb->get_results($  sql); 

this is only happening in a specific tempalate i created on wordpress and not in the others that have a similar constrution. Already tried recreating the page, configuring a new page. One more thing its strange, every time i put some other string, it goes to the standard 404 wordpress page. Any Thought?

Best Regards

Problems getting values from response from wp_remote_post

I am using wp_remote_post to send a request to a 3rd parti API. The response from the API looks something like:

{   status: 'a',   member_id: 12345678 } 

I understand that this is returned in the body of the array returned by wp_remote_post, but I’m having problems checking the value of status. here’s what I’ve got:

$  response = wp_remote_post($  url, $  myArr);  if ( is_wp_error( $  response ) ) {    $  error_message = $  response->get_error_message();    echo "Something went wrong: $  error_message"; } else {    echo 'Status: ' . json_decode($  response['body'])['status']; } 

This results in NOTHING being echoed. I know the call was successful because I receive the email notification from the 3rd party saying a member was just updated (and I can see the updates in their app). If I change echo 'Status: ' . json_decode($ response['body'])['status']; to echo '<pre>' . print_r($ response['body']) . '</pre>';, the object above is printed to screen, so I’m guessing I’m doing something wrong with json_decode.

here’s the full response, in case it helps:

Array (     [headers] => Requests_Utility_CaseInsensitiveDictionary Object         (             [data:protected] => Array                 (                     [accept-ranges] => bytes                     [age] => 0                     [content-type] => application/json; charset=utf8                     [date] => Fri, 16 Oct 2020 16:43:59 GMT                     [server] => Apache                     [via] => 1.1 varnish (Varnish/5.2)                     [x-varnish] => 1016917066                     [content-length] => 48                 )          )      [body] => {   "status": "a",    "member_id": 14958539705 }     [response] => Array         (             [code] => 200             [message] => OK         )      [cookies] => Array         (         )      [filename] =>      [http_response] => WP_HTTP_Requests_Response Object         (             [response:protected] => Requests_Response Object                 (                     [body] => {   "status": "a",    "member_id": 14958539705 }                     [raw] => HTTP/1.1 200 OK accept-ranges: bytes age: 0 Content-Type: application/json; charset=utf8 Date: Fri, 16 Oct 2020 16:43:59 GMT Server: Apache via: 1.1 varnish (Varnish/5.2) x-varnish: 1016917066 Content-Length: 48 Connection: Close  {   "status": "a",    "member_id": 14958539705 }                     [headers] => Requests_Response_Headers Object                         (                             [data:protected] => Array                                 (                                     [accept-ranges] => Array                                         (                                             [0] => bytes                                         )                                      [age] => Array                                         (                                             [0] => 0                                         )                                      [content-type] => Array                                         (                                             [0] => application/json; charset=utf8                                         )                                      [date] => Array                                         (                                             [0] => Fri, 16 Oct 2020 16:43:59 GMT                                         )                                      [server] => Array                                         (                                             [0] => Apache                                         )                                      [via] => Array                                         (                                             [0] => 1.1 varnish (Varnish/5.2)                                         )                                      [x-varnish] => Array                                         (                                             [0] => 1016917066                                         )                                      [content-length] => Array                                         (                                             [0] => 48                                         )                                  )                          )                      [status_code] => 200                     [protocol_version] => 1.1                     [success] => 1                     [redirects] => 0                     [url] =>                     [history] => Array                         (                         )                      [cookies] => Requests_Cookie_Jar Object                         (                             [cookies:protected] => Array                                 (                                 )                          )                  )              [filename:protected] =>              [data] =>              [headers] =>              [status] =>          )  ) 

Can anyone tell me the correct way to get the value of the status property returned in the body object of the response?

In what cases is solving Binary Linear Program easy (i.e. **P** complexity)? I’m looking at scheduling problems in particular

In what cases is solving Binary Linear Program easy (i.e. P complexity)?

The reason I’m asking is to understand if I can reformulate a scheduling problem I’m currently working on in such a way to guarantee finding the global optimum within reasonable time, so any advice in that direction is most welcome.

I was under the impression that when solving a scheduling problem, where a variable value of 1 represents that a particular (timeslot x person) pair is part of the schedule, if the result contains non-integers, that means that there exist multiple valid schedules, and the result is a linear combination of such schedules; to obtain a valid integer solution, one simply needs to re-run the algorithm from the current solution, with an additional constraint for one of the real-valued variables equal to either 0 or 1.

Am I mistaken in this understanding? Is there a particular subset of (scheduling) problems where this would be a valid strategy? Any papers / textbook chapter suggestions are most welcome also.

Are NP problems lower bounded by exponential order of growth?

My understanding of P. vs NP is quite limited. I can understand P refers to an algorithm with an upper bound (big O) with order of growth $ n^c$ for some constant c and variable n. My question is, do NP problems have a hypothesized lower bound order of growth (big Omega) of $ c^n$ for deterministic machines? I can’t find this stated anywhere and I’m trying to understand if this is something that is assumed or not.


Choosing a method for algorithmic problems – is it an art or science?

I’ve been doing lot of programming challenges lately (such as on and often find myself in a situation when I cannot pick a method for solving a problem. I stuck with questions like – should I use brute force or greedy search would work better or maybe dynamic programming would do the job? Then I start coding a solution just too find out it does not work and I have to pick another method.

I wonder if there is a way to restate the problem in some abstract way and from there to see what solution technique would work for it?

Are there any known W[3] or W[3]-hard problems?

We are currently working on a variant of domination parameter and we have shown that it is in W[3] with regard to parameterized complexity. To show it is W[3]-complete, we must show the problem is W[3] hard i.e, reduce an already known W[3] hard problem to ours. But unlike W[1] and W[2], where many famous problems are proved those classes, surprisingly we have not come across a single problem that is W[3] hard and not even in just W[3]. Of course there is the general W[t] case which we can go for, but any result for W[3] in particular would help a lot.