Trigger function accessing newly updated data from another table

I have two tables A and B. In one transaction I update both tables. In the trigger function after update I want to select data from both tables, but the result is the old data. The trigger is on table A, but they both are being updated in the same transaction. Is this possible to achieve or I have to think for another approach?

Bonus Actions Are Actions? Combining Two Weapon Fighting and Extra Attack (Newly Expanded) [closed]

Let me first start by clarifying, I believe there is a point that has been missed in this question before. Consider that before marking it a repeat:

What is the precise differentiation between a bonus action and an action?

I believe that the combination of two weapon fighting and Extra Attack (granted at Level 5 Paladin) allows for a total of 4 attacks. Can anyone confirm this? Let me outline.

Extra attack: “Beginning at 5th Level, you can attack twice, instead of once, whenever you take the Attack action on your turn.”

Two Weapon Fighting: “…you can use a bonus action to attack with a different light melee weapon…”.

Most answers I’ve seen say three attacks, i.e. You get the Attack Action, which includes 2 attacks, and the bonus Action which includes 1 attack.

However, I believe the correct breakdown is first to thinking You get the Attack Action, which grants a Bonus Action (Attack Action). Now both of these Attack Actions should benefit from Extra Attack, giving 4 (lower case a) attacks within 2 (upper case A) Attack Actions. Thoughts?

The rules seem clear, that a bonus action is an action. And an action used to attack is an attack action. Thus, a bonus action used to attack is an attack action.

If this is not the case, where is there a clear distinction between bonus action and action?

metasploit is not detecting newly imported perl exploit [closed]

I downloaded the file and created /root/.msf4/modules/exploits/webapps/php and moved it there.

The exploit in msfconsole at first I found it grab_global.lib.php

Then I can’t find it, I can’t use it, I tried to put it in other exploit folders directly in metasploit framework but it doesn’t appear.

Updated metasploit but nothing

Please, does anyone know what I can do?

How to Update Newly Added Lookup Column using Value from the existing Choice column through powershell

I am working with SharePoint on prem 2019 and in one of the document libraries, I have a field called ‘Trust’ of type choice, this library contains about 7000 files. Now we have to convert this choice field into a lookup column and I am aware its not doable OOTB.

So we added all choice values for Trust field into a list (titled ‘Trust List’) on the same subsite where the library resides. Then created a site lookup column ‘TrustName’ that points to the title field of Trust list and added it to the library as well.

Now I need to find a solution to sort of grab Trust (choice) value for each row and paste it into the TrustName (lookup), maybe there would be need of filtering of ID from lookup list based on the match of values of ‘Trust’ field and Title from lookup list, not sure, I have little expertise in powershell. So looking for a PowerShell script solution for this that I can run. FYI, there are 3 other lookup fields in the same library, couple of text fields, people picker etc.

Please help, thanks in advance.

Newly Installed Ubuntu Showing Only Loading Screen

I just installed Ubuntu on my second hard drive from a USB stick, and just restarted as it asked me to. When it restated and started opening up, it opened up to the Ubuntu loading screen. I waited for about five min and it did not leave the loading screen. It still has not, and I have not yet restart my PC, and was wondering what is causing this and what I need to do to fix it. The only thing that i think might be causing it is that when i went to install it, I selected to install all the drivers for me automatically.

Problem with booting a newly LUKS encrypted root partition

I didn’t encrypt my root partition when I was installing my Ubuntu 18.04 when 18.04 first came out (first few months of it’s release) So for reasons I decided to encrypt it now.

I know this question has been asked before (I posted the links of some of the asked ones, actually!) but I posted this because this issue is specific to me, so please don’t remove my question, thank you very much, dear moderators and admins. I did not find anyone who had an issue same as mine, and after doing some MAJOR linux stuff, I had to ask for help since I was unable to solve this by myself. (Which hasn’t happened a lot over my past 11 years of GNU/Linux-*nix experience. I solved/fixed my problems by myself and dear Google like 99% of the times… and as you know problems happen a lot in linux! 😀 )

Anyway, Here are the steps of which I did it: (In a 18.04 live usb)

sudo cryptsetup -v -y -c aes-xts-plain64 --key-size 512 --hash sha512 luksFormat --uuid=049172c6-5376-4b9c-bd27-b503b6f25423 /dev/sda5 sudo cryptsetup -v luksOpen /dev/sda5 myroot sudo mkfs.ext4 -m 0 /dev/mapper/myroot sudo mount /dev/mapper/myroot /media/myroot #I created /media/myroot beforehands #Then for copying the contents of my root partition I used dd: sudo dd if=/dev/sda6 of=/dev/mapper/myroot bs=4M #/dev/sda6 is a duplicate of my original sda5 root... 

Then after this I did A LOT of things I thought would help for booting this new encrypted root of mine with GRUB, and also A LOT OF MORE things I found by searching. So I basically tried everything people suggested in these links:

Booting 19.04 from LUKS system drive

Can't get Ubuntu to boot from LUKS / LVM group on external drive on iMac with refind

Ubuntu full disk encryption with encrypted /boot

Mount LUKS encrypted hard drive at boot

How to get grub to boot from a newly encrypted partition

(And a lot of more links)

Here’s the output of fdisk -l:

Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: FE0857E8-E0DE-40A0-96C5-C4FEC80B8742  Device         Start       End   Sectors   Size Type /dev/sda1       2048    534527    532480   260M EFI System /dev/sda2     534528   1067007    532480   260M EFI System /dev/sda3    2582528   4630527   2048000  1000M Lenovo boot partition /dev/sda4    4892672 259438591 254545920 121.4G Microsoft basic data /dev/sda5  259438592 332343295  72904704  34.8G Linux filesystem /dev/sda6  332343296 400898047  68554752  32.7G Linux filesystem /dev/sda7  410068992 425521151  15452160   7.4G Microsoft basic data 

These are my UUIDs:

/dev/sda5: LUKS UUID: 049172c6-5376-4b9c-bd27-b503b6f25423 Partition UUID: 1db5df50-7000-48df-a281-74bad5689ce1  /dev/sda6: Former UUID which I recently changed it to a new one because it was same as sda5's due to using dd for copying root filesystem to new LUKS partition: 1db5df50-7000-48df-a281-74bad5689ce1 New UUID: 7876a195-7219-4440-892a-61b57c706443 

And finally the things I tried in GRUB:

Any help will be much appreciated I really don’t want to reinstall and encrypt from the installer, I need the things I have on my ubuntu and I really can’t do a reinstall, this ubuntu install of mine is just so perfect, I’ve had a lot of experience with GNU/Linux (Over 10 years now) and had a lot of linux installations and I’m no noob, but I just can’t loose all my data or configurations or customizations I made… I know I can back them up but I just… you know?

ORA-01031: insufficient privileges to a newly created user

I have installed 18C Enterprise Edition. I just created a new user with a prefix of c##. And when I tried to login through the newly created user it says…

ORA-01031: insufficient privileges 01031. 00000 – “insufficient privileges” *Cause: An attempt was made to perform a database operation without the necessary privileges. *Action: Ask your database administrator or designated security administrator to grant you the necessary privileges Vendor code 1031

Please guide me to solve this issue.

Safest option for resizing /home and merging newly freed space with existing free space to form shared partition

I have Ubuntu 18.04.2 installed in the dual-boot mode along with Windows 10, and here is my current partition setup.

enter image description here

What I’d like to do is install Ubuntu 18.04.4 afresh while resizing my /home partition to, say, 4 GB (is this a reasonable size? I do not plan on storing any large files such as audio/video ones) and then combining the freed space with the 2.36 GB currently unallocated to create a shared NTFS partition.

What is my best (safest) course of action? Should I carry out the partition resizing and partition creation steps before I install Ubuntu 18.04.4? I believe I can do this by booting using a gparted live USB. Then, I could just install 18.0.4 on the existing / partition while formatting it and the newly resized /home. Is this the right way to do it?

Or will I get a chance to make these changes at the time of the installation of the OS? I have not clicked beyond this screen during the installation process and do not whether the above will be an option.

enter image description here

SharePoint Client side web part, newly added web part does not show in web part list

I have created a webpart using SPfx, Called “Hello world”

Deployed on sharepoint online. Added as an app. and droped on page.

after that I created another webpart called “Test Webpart” in same solution folder. and deployed it.

but this time, “Test webpart” not showing up.

enter image description here

Please suggest.