If I hold my action can I then use my reaction for something else?

Merle the Wizard is fighting enemies with his friends on a bridge. He wants to cast a spell on the BBEG, but they are currently out of range and so he uses his action to ready a spell for when the BBEG is in range.

However, before that happens one of Merle’s friends is knocked off the bridge. Can Merle ignore the spell he had readied and use his reaction to cast feather fall?

Removing multiple values using if else statements?

I have a program that downloads raw data from a sensor. Due to to some specifications made in the SQL code, there are values that are duplicated which needs to be deleted to maintain data integrity.

Below is a snapshot of the dataset: enter image description here

Do note that is is just a snapshot of july 10th. I have 33 other devices all of them have data dates from july 10th all the way through october.

Is there a way for me to traverse the whole dataset and find a way to set conditional statements. For example, if there are 2 values that share the same timing, take the row that has the “1” value.

At the same time, i would like to point out that this dataset is data that is collected 24/7.

AWS serverless site security. Anything else I should add?

I have an AWS static site in an S3 bucket, accessible through CloudFront and a bunch of lambda functions that form the backend of the site. Is there anything else I can/should do security wise? Since I know the IP’s of my users I set up:

  • a web ACL for the API Gateway that allows a whitelist of ips (US-east)
  • a web ACL for the CloudFront endpoint that allows the same ips (global)
  • a simple lambda login function that matches a hardcoded password. Successful login sets a token which gets passed to a lambda authorizer.

Is it possible to reassign an approval that belongs to someone else?

I have set up a series of flows which include approval blocks, and a question has been raised what happens should an approver not be available.

I can see the possibility to create a second approval to a different person after x time, but this at minimum builds in a delay, and at least where I work that second person is not well defined so is likely to be different every time.

Is there a way for an admin to find an approval assigned to someone else, and manually reassign it? I know I can reassign approvals meant for myself, so the functionality is present, but either the permission is not available, or I can’t work it out.

The only option I can think of at the moment is to have the admin (myself currently) as an additional approver on every approval block, and then I can just reassign my own version of an approval request to whoever I wish, but I am uncomfortable with that because it effectively means I can approve things well above my station.

dual booting an HP laptop,4gb ram,intel i3 6006.Windows 10 and ubuntu dual boot, each time i install ubuntu “something else” option in installation

I am installing ubuntu on HP laptop with windows 10 preinstalled . Each time i install ubuntu on a partition the grub is not installing i386 file in /boot/grub folder which causes error as grub searches for that file and run into grub rescue at each boot , hence i cannot boot into ubuntu nor windows , i manually added the file by live usb but failed to make grub config for such changes . My partition show (hd,msdos6) as root . grub is installed on root partition. Grub never installs the i386 file and this file can be found in /usr/lib/grub .

How do social media apps notify you when someone else takes a screenshot of your profile?

Social media apps like snapchat, instagram, viber.. Etc notify you if you someone takes a screenshot of your profile, chat, conversation, story.. Etc.

How can the app findout that you are taking a screenshot of their conversation, profile,story?

Links:(https://support.viber.com/customer/en/portal/articles/2739322-secret-chats) (https://www.women.com/connieliou/lists/can-someone-see-if-you-screenshot-a-snapchat-message) (https://www.google.com/amp/s/amp.businessinsider.com/does-instagram-notify-screenshots)

Does the Chaos Bolt spell have to target someone else if the energy would leap to a new target?

In Xanathar’s Guide to Everything (p. 151), the spell Chaos Bolt includes the following:

If you roll the same number on both d8s, the chaotic energy leaps from the target to a different creature of your choice within 30 feet of it. Make a new attack roll against the new target, and make a new damage roll, which could cause the chaotic energy to leap again.

Let’s say I cast Chaos Bolt, it hits, and I roll two of the same number on my d8s. However, the party is fighting a lone enemy, so there are no other creatures I want to target.

Can I “choose” to target no-one, since the spell description says “of your choice”, or does it happen regardless, and I just have to choose which party member takes the hit?

In summary, can I choose not to make this extra attack?

Just installed LVM Raid 1 on a new server with 2x 10Tb hard drives and the Disk I/O is killing everything else every second

I copied a bit of data on my LVM based RAID1 (not hardware RAID) with 2× 10Tb hard drives:

/dev/mapper/users-users  9.1T  1.9G  8.6T   1% /home 

and now it’s killing my I/O to the point where my mouse, keyboard, video are blocked/unblocked/blocked/unblocked…

I’m thinking that maybe something is wrong at the hardware level but wondering what that could be. Wondering what to test first to try to make a better diagnostic.

I have another 2 drives in the same drive array but they are not setup in RAID mode.

Looking at the output of iotop it tells me that there is about 2Mb/s written to disk, a pretty much permanent write… When I look at the Disk LED, I can see them come up and out over and over again and can hear the seeking heads too.

Trying to watch a video, it fails really bad. Choppy would not even be the word here. It’s like one image every other second if even that much. So a really big I/O killer for the entire computer.

Wondering whether someone would have encountered such a problem before and what can be done to fix it if possible (I certainly hope it is possible!)

My motherboard is a Supermicro X11DPH-T and I also got a case from Supermicro the 745BAC-R1K28B2 4U Full Tower Chassis. I’m running Ubuntu 18.04 LTS. The server is new and so is the install (i.e. not an upgrade from 16.04 or who knows what…)

Would there be a way to know whether a specific hard drive or some other hardware device is causing the trouble?

Problema con validacion if, else if con jquery

les explico, tengo la siguiente función:

function valida() {             if (document.formAction.qty.value == 0) {                 $  ("#qty_INVALID").show();                 $  ("#qty").css('border-color', 'red').focus();                  return 0;                      }             if (document.formAction.password.value == 0) {                 $  ("#password_INVALID").show();                 $  ("#password").css('border-color', 'red').focus();                  return 0;                      }             //Enviar datos             var qty = $  ("#qty").val();             var password = $  ("#password").val();              var dataPost ="qty="+qty+"&pass="+password+"&moneyOut";             $  .ajax({                 type: "POST",                 url: "data/insert.php",                 data: dataPost,                 dataType: 'html',                 cache: false,                 success: function(data) {                        alert(data);                     if(data=="next_money") {                         alert("cierra modal");                         //$  ("#retiroModal").modal("hide");                                                    } else if(data="error_money"){                         alert("activa errores");                         /*$  ("#password").val('');                          $  ("#password").css('border-color', 'red').focus();                          $  ("#alerta_pass").fadeIn("fast");  */                     }                  }             })         }  

Les expongo toda mi función. Primero hace una validación de campos, si no son nulos continúa…Después en php imprimo dos posibles respuestas dependiendo de la consulta si el password es correcto envía “next_money” de lo contrario “error_money”.

Mi problema viene cuando intento validar la respuesta del data, si imprimo en la alerta el resultado del data todo es correcto, sin embargo como menciona a la hora de validar no hace nada o bien aunque evalúe el primer if se pasa al segundo. Creen que mi problema venga o sea necesario formatear mi data como string? De antemano agradezco su ayuda.

Is Decimal (correctly-rounded arbitrary precision decimal floating point arithmetic) fixed-point, floating-point or something else?

The Decimal data type I am referring to is GNU MPFR(https://en.wikipedia.org/wiki/GNU_MPFR), or libmpdec (http://www.bytereef.org/mpdecimal/doc/libmpdec/index.html).

I have been searching for information about decimal for days and learned that you can use fixed-point (int + scaling factor) to represent a non-int real number, but I have looked into the above two libraries, which doesn’t look like fixed-point. Instead, they refer to the implementation as (correctly-rounded arbitrary precision decimal floating point arithmetic).

The information online is very limited (or there are something obvious I have missed).

I would like to know more.