How to remove the class of other items by clicking on the button?

There are several buttons that, when clicked on, open a box with options. How to do this when I open a box, the others close?

var button = document.querySelectorAll (". popup-btn")
var pop = document.querySelectorAll (". popup")
var li = document.querySelectorAll ("li")



button.forEach (item => {
item.addEventListener ('click', () => {

let popup = document.getElementById ("popup-" + event.target.dataset.itemid);
popup.classList.toggle ("visible");

})
})


li.forEach (item => {
item.addEventListener ('click', () => {

let target = document.getElementById ("target-" + event.target.dataset.alvo);
target.value = event.target.innerHTML

let popup = item.parentNode;
popup.classList.toggle ("visible");

})
})
.container {
position: relative;
}

.popup {
position: absolute;
display: none;
}

.popup.visible {
display: block;
}

I tried to use the for each inside the buttonbut did not work

jsFiddle

dnd 5th – Tarrasque gastric fluids remove the magic

The Tarrasque has an acid stomach, but it does not suppress the magic:

When swallowed, the creature is blinded and restricted, fully protected against attacks and other external effects of the tarrasque, and suffers 56 acid damage (16d6) at the beginning of each turn. .

I am not sure that the previous editions had such an effect, but not the 5th Tarrasque.

Your wizard will be blinded, held back and will suffer acid damage, but he will not lose his magic.

list manipulation – How to remove duplicates in the following example?

You can use DeleteDuplicatesBy

DeleteDuplicatesBy[#[[{2, 3}]]&]@ table

Example:

table = RandomInteger[3, {7, 4}]

{{1, 0, 1, 0}, {0, 0, 1, 1}, {0, 1, 0, 0}, {0, 2, 3, 0}, {3, 0, 1,
2}, {2, 3, 3, 0}, {3, 0, 1, 3}}

DeleteDuplicatesBy[#[[{2, 3}]]&]@table

{{1, 0, 1, 0}, {0, 1, 0, 0}, {0, 2, 3, 0}, {2, 3, 3, 0}}

Alternatively, you can use union:

union[table, SameTest -> (#[[{2, 3}]]== # 2[[{2, 3}]]&)]

{{0, 0, 1, 1}, {0, 1, 0, 0}, {0, 2, 3, 0}, {2, 3, 3, 0}}

Note that DeleteDuplicatesBy retains the items that appear at the beginning of the list of origin while union sort the list.

high sierra – How to remove an 802.1x profile in OS 10.13 when Profiles does not show up in System Preferences?

I'm trying to delete an eduroam 802.1X profile that appears in the network preferences of OS 10.13.

The solutions I found online indicate that this can be done in Profiles, System Preferences. However, there is no Profiles icon in my System Preferences. What should I do?

Stolen Photos Deleting amazon vendor service for $ 1

Stolen Images Deleting the Service of the Seller of Amazon

if a seller is using your amazon product images and you wish to remove these images, purchase this service.
I'm removing 1 ASINS in 1USD.
you simply need to provide an original image (your property).
an order a asins
if you have ten donkeys then buy this service ten times
duration 20 to 45 days.

.

Why ClearAll[“Global’*”] does not remove all variables?

Consider the following code:

In[19]: = a = 2;

In[20]: = ClearAll["Global'*"];

In[21]: = a

Outside[21]= 2

As you can see, the variable has not been reset. Why ?
Erase everything[“Global’*”] is supposed to erase all the symbols defined by the user: How to erase all the symbols defined by the user?

module – How to remove GraphQL from Magento 2.3?

You may be able to remove it from your Magento 2.3 by installing this package below:

composer require yireo / magento2-replace-graphql: 2.3.1

OR

You can specify which packages to delete in your composer.jsonas you can see below.

"replace": {
"magento / module-bundle-graph-ql": "*",
"magento / mod-catalog-graph-ql": "*",
"magento / mod-catalog-inventory-graph-ql": "*",
"magento / module-catalog-url-rewrite-graph-ql": "*",
"magento / mod-cms-graph-ql": "*",
"magento / cms-module-url-rewrite-graph-ql": "*",
"magento / module-configurable-product-graph-ql": "*",
"magento / module-customer-graph-ql": "*",
"magento / module-directory-graph-ql": "*",
"magento / module-downloadable-graph-ql": "*",
"magento / module-eav-graph-ql": "*",
"magento / module-graph-ql": "*",
"magento / module-grouped-product-graph-ql": "*",
"magento / mod-theme-graph-ql": "*",
"magento / module-quote-graph-ql": "*",
"magento / module-sales-graph-ql": "*",
"magento / module-send-friend-graph-ql": "*",
"magento / mod-store-graph-ql": "*",
"magento / module-swatches-graph-ql": "*",
"magento / module-tax-graph-ql": "*",
"magento / module-url-rewrite-graph-ql": "*",
"magento / module-weee-graph-ql": "*",
"magento / module-wishlist-graph-ql": "*"
}

How to remove a system application from the Play Store Update List

I wonder how I can remove SwiftKey keyboard form the list of updates.

enter the description of the image here

Remarks

  • This is a system application.
  • His deactivate The button is grayed out.

python – Remove "space" and "empty" from an item in the list, how can I?

I only need to retrieve the first 10 items from each item in the list, but only a few empty items that appear in this list:

def ():

pre =['BSI2019001', 'BSI2019002 BSI2019013', 'BSI2019014', 'BSI2019014 BSI2019015', 'BSI2019013', 'BSI2019014', 'BSI2019009', 'BSI2019011 BSI2019014', 'BSI2019008 BSI2019021', 'BSI2019022', 'BSI2019020 BSI2019022', 'BSI2019023', 'BSI2019025', 'BSI2019009', 'BSI2019027', 'BSI2019027', 'BSI2019032', 'BSI2019018', 'BSI2019031', 'BSI2019016 BSI2019017 BSI2019025', '', 'BSI2019035', 'BSI2019014 BSI2019026', 'BSI2019014', '', 'BSI2019011 BSI2019014', 'BSI2019025 BSI2019105', 'BSI2019016 BSI2019020', 'BSI2019010 BSI2019014', 'BSI2019016 BSI2019017 BSI2019014', 'BSI2019033', 'BSI2019033', 'BSI2019034', 'BSI2019023', 'BSI2019029 BSI2019037', 'BSI2019029', 'BSI2019113 BSI2019032', 'BSI2019016', 'BSI2019017', 'BSI2019016 BSI2019017 BSI2019025', 'BSI2019011', 'BSI2019001 BSI2019009', 'BSI2019009', 'BSI2019031', '', 'BSI2019009', 'BSI2019009', '', '', '', '', 'BSI2019021 BSI2019028 BSI2019032', 'BSI2019028', 'BSI2019032 BSI2019033', 'BSI2019020 BSI2019022', 'BSI2019014 SI2019026', 'BSI2019020 BSI2019026', 'BSI2019014 BSI2019015', 'BSI2019026', '', '', '', '', 'BSI2019014', '', 'BSI2019014', 'BSI2019001']
for i in pre:
if (len (i)) = 10:
print (i)

main ()

Execution:
BSI2019001
BSI2019002 BSI2019013
BSI2019014
BSI2019014 BSI2019015
BSI2019013
BSI2019014
BSI2019009
BSI2019011 BSI2019014
BSI2019008 BSI2019021
BSI2019022
BSI2019020 BSI2019022
BSI2019023
BSI2019025
BSI2019009
BSI2019027
BSI2019027
BSI2019032
BSI2019018
BSI2019031
BSI2019016 BSI2019017 BSI2019025
BSI2019035
BSI2019014 BSI2019026
BSI2019014
BSI2019011 BSI2019014
BSI2019025 BSI2019105
BSI2019016 BSI2019020
BSI2019010 BSI2019014
BSI2019016 BSI2019017 BSI2019014
BSI2019033
BSI2019033
BSI2019034
BSI2019023
BSI2019029 BSI2019037
BSI2019029
BSI2019113 BSI2019032
BSI2019016
BSI2019017
BSI2019016 BSI2019017 BSI2019025
BSI2019011
BSI2019001 BSI2019009
BSI2019009
BSI2019031
BSI2019009
BSI2019009
BSI2019021 BSI2019028 BSI2019032
BSI2019028
BSI2019032 BSI2019033
BSI2019020 BSI2019022
BSI2019014 BSI2019026
BSI2019020 BSI2019026
BSI2019014 BSI2019015
BSI2019026
BSI2019014
BSI2019014
BSI2019001

But I need it to go like this:
BSI2019001
BSI2019002
BSI2019014
BSI2019014
BSI2019013
BSI2019014
BSI2019009
BSI2019011
BSI2019008
BSI2019022
BSI2019020
BSI2019023
BSI2019025
BSI2019009
BSI2019027
BSI2019027
BSI2019032
BSI2019018
BSI2019031
BSI2019016
BSI2019035
BSI2019014
BSI2019014
BSI2019011
BSI2019025
BSI2019016
BSI2019010
BSI2019016
BSI2019033
BSI2019033
BSI2019034
BSI2019023
BSI2019029
BSI2019029
BSI2019113
BSI2019016
BSI2019017
BSI2019016
BSI2019011
BSI2019001
BSI2019009
BSI2019031
BSI2019009
BSI2019009
BSI2019021
BSI2019028
BSI2019032
BSI2019020
BSI2019014
BSI2019020
BSI2019014
BSI2019026
BSI2019014
BSI2019014
BSI2019001

Only the first of each element, but some are separated by a space, how to remove them?

postgresql – Unable to remove user's view privileges from the user

Legacy database for me, pg version 9.6.12 running on a linux friend.

I have a user (& # 39; example_user & # 39;) that i would like to delete. I've confirmed that & # 39; example_user & # 39; does not have any object. However, when I run DROP USER & # 39; user_example; I receive this error (I truncated for the sake of brevity):

exampledb = # removes the user & # 39; user_example;
ERROR: the role & # 39; example_user & # 39; can not be deleted because some objects depend on it
DETAIL: privileges for the materialized view "example-prod" .view_foo
privileges for the materialized view "example-prod" .view_bar
privileges for the materialized view "example-dev" .view_foo
privileges for the materialized view "example-dev" .view_bar

I've tried about 15 different revocation statements to try to remove privileges, and in some cases, Postgres does not even complain. For example:

exampledb = # revokes all privileges on all tables in the public schema from "user_example";
REVOKE

# OR

revoke all privileges on "example-prod" .view_foo of "user_example";
REVOKE

I've tried countless different revocations on schemas, views, databases and nothing seems to work. Privileges are not removed and I get the same errors when I try to delete the user. I do not know if it is related in any way, but pg complains if I do not quote twice the user.

How can these specific privileges, or even all privileges, be removed from this user? Are there any other strategies for removing this user if I do not have to worry about object preservation or privileges?

Thank you!