what off-spring would result from a High elf mother and a Shadar-kai elf father?

I got into a debate with one of my players they claimed that there character having a full high elf mother and full shadar-kai elf father would be considered a half high-elf and should use the players handbook half elf features and traits. But I disagree and think that it would make them a full elf, either high elf like the mother or shadar-kai like the father. I want the player to stick to only official races for character creation, I just feel that 2 elf sub-races are different enough to make only a half race. What do you think?

What offspring would a High elf mother and a Shadar-kai elf father make? A. Full High elf B. Full Shadar-Kai elf C. Half High elf D. Half Shadar-Kai E. Human

Im trying to stick with the D&D 5E lore.

Is decrypting secrets with ccrypt and piping the result via stdin to openvpn secure?

I’ve written the following alias to start an openvpn client more easily than before:

sudo bash -c 'cd OPVN_CONFIGS_DIR && ccrypt --cat _auth.conf.cpt | openvpn --config waw-001.ovpn --auth-user-pass /dev/stdin' 

NB: OPVN_CONFIGS_DIR is located in a synced folder (lets say Dropbox for simplicity)

NB: bash -c rather than a simple expansion because this is sometimes run in fish shell

The options I had before:

  • Use auth-user-pass to store my username + password in clear text. Looks to be the default option with openvpn but seems like a bad idea in general and even more so in my case since the secrets would be stored in a synced folder.
  • Enter my openvpn username and password every time which is a pain since the password is a very long random string. I cannot set a password myself, only reset it to another, just as long, random string. (and I’m not comfortable using a CLI password manager that stores passwords in the clipboard like passwordstore.org does)

My issue is that with the previous command openvpn complains about the following:

WARNING: file '/dev/stdin' is group or others accessible 

My questions:

  • What are the implications of this warning?
  • what is the ‘group’ mentioned in the warning? The sudo group?
  • Is there a better way to manage secrets on the client side with openvpn?

Thank you

Round down operation result in IEEE 754 [closed]

For operations using single precision values in IEEE 754 (float, 32bit), is there a way to somehow condition the two operands to ensure that the operation result is rounded down, when an exact result is not possible?

Example:

  • Typical result (using ’round to nearest’): 1.0f / 3.0f = 0.3333333432674407958984375f
  • Expected result (using ’round down’): 1.0f / 3.0f = 0.333333313465118408203125f

As additional info, I would be doing this in C99, and (unfortunatly) it’s not possible to configure the FPU.

stolen article is the first result in google search

After moving my old domain as I have noted that my post URL disappeared from the google search as shown below

enter image description here

Is it normal?

The main issue when I tried to search by the keyword Show / Hide fields based on choice field selection using JQuery in SharePoint I found out the first result is a stolen article with my identical image and content

enter image description here

enter image description here

So I am Wondering

  • How the stolen article get rank 1 in the search result
  • Is it normal my migrated url not appear in google as sown in the image 1
  • How to overcome this issue and get my post come back to the first result, should I reminded the old post url or reindex the new one

Please Help

update

301 redirect implemented correctly 4 months ago

enter image description here

Search Highlight comes with error on excerpt in search result

I’m not sure what’s going wrong. I’m using a “search highlight” on my wordpress website. I recently noticed 1 issue when doing a search on my site. How to say? Hmm…For example, either post excerpt or content contains active url(clickable), and the keyword is also in the url as well. The search result will become like as displayed in the image as per attached. The highlighted one suppose to be a proper url(www.properurl.com). But, it turned out this result. enter image description here

Below the PHP code of search highlight placed in the functions.php

function search_excerpt_highlight() {     $  excerpt = get_the_excerpt();     $  keys = implode('|', explode(' ', get_search_query()));     $  excerpt = preg_replace('/(' . $  keys .')/iu', '<span class="search-highlight"><u><b></b></u></span>', $  excerpt)."";      echo '<p class="excerpt">' . $  excerpt . '</p>'; } 

I need to know if there is any code i can put in functions.php to make it work correctly?

Need help in this. Thank you!

Postgresql group by and count() problem, missing row with 0 result

I have a problem with group by and count().
I need a result table looks like below.
Tried I guess all the variations of JOIN.

There are two types of wrong result:
– first when the row “3 C 0” is missing,
– the second when it is present but with a false value “3 C 1

Table1:

id name   1  A   2  B   3  C   4  D   

Table2:

id   1   1   2   1   4   

result should look like this:

id name count   1  A    3   2  B    1   3  C    0   4  D    1   

Any ideas?

How to make `Manipulate[]` to show me the result of expression evaluation live?

I have code that works the way I need:

Manipulate[  Plot[-3*x + 2, {x, from, to}, AspectRatio -> Automatic,    PlotRange -> {{-20, 20}, {-20, 20}}], {{from, -10, "frm"}, -10, 10,    1, Appearance -> "Labeled"}, {{to, 10, "t"}, -10, 10, 1,    Appearance -> "Labeled"}] 

Now I need to make Manipulate to also show me the result of expression (-3*x + 2 in our case) evaluation. I mean, when I move sliders I need also a field which is updated live and has the result of evaluation of expression. How to do that?

Would this WPDB setup result in potential race conditions?

I have a page on my site with numerous elements that can be liked/disliked through a simple admin-ajax call.

In the associated PHP code, it looks like this:

// Fetch the existing meta from this element. The array of users who already voted, and the current score. global $  wpdb; $  row = $  wpdb->get_row( "SELECT `rating_users`, `rating_score` FROM `table` WHERE `file_id` = $  file_id" );  $  voted_users   = $  row->rating_users? unserialize( $  row->rating_users) : array(); $  current_score = $  row->rating_score ?: 0;  // Now verify this current user has not already voted, check the array. foreach ($  voted_users as $  id => $  ip) {     // check if current user ID / IP has voted, exit if true... }  // Good to go, add this user to the list of users who have voted now. $  voted_users[] = array(     $  user_id => $  user_ip ); $  current_score++;  $  wpdb->update(     'table',     array(         'rating_users' => serialize( $  voted_users ),         'rating_score ' => $  current_score     ),     array(         'file_id' => $  file_id     ),     array( '%s', '%d' ),     array( '%d' ) ); 

So I feel like in between the time I (retrieve the current list of users who have voted / score…verify if this is a valid vote…and then adjust/update the values back into the database) another user could have initiated the same process – and thus are dealing with “wrong” data. Data would be lost as one process would override the other’s upon the wpdb->update call.

I haven’t verified this, as emulating a race condition is difficult, but seems valid – what is a better method of performing the above that wouldn’t result in this issue?

Does the result of ‘you cast …’ from rolling in Wild Magic Surge table can trigger Wild Magic Surge?

Wild Magic Surge triggers when

Immediately after you cast a sorcerer spell of 1st level or higher, the DM can have you roll a d20. If you roll a 1, roll on the Wild Magic Surge table to create a random magical effect.

I rolled on the table, and rolled on “You cast Fireball as a 3rd-level spell centered on yourself”.

Because fireball is a sorcerer spell, does this mean that this casting triggers Wild Magic Surge feature again?

I know that the DM can choose not to roll on the table, but theoretically, this can build up an infinite chain of fireball!

Recover AES256 zip password by known result

I have a zip file containing unencrypted folder with encrypted files inside.

Given that for some files I have their originals, is it possible to restore password used for encryption?

As of now there seems to be an issue in JohnTheRipper, that prevents it to correctly calculate hash for such a file, and I know of no other tool to aid in password recovery.