javascript – I can't add class to item obtained from getElementsByClassName

I have my div with the element class, in javascript I get them like this:

var elemento = document.getElementsByClassName('elemento');

And I want to assign an addEventListener that when you click on a div that has the element class, you add another class. I tried it like this:

for(var i = 0; i < elemento.length; i++){
elemento(i).addEventListener('click', function(){
        elemento(i).addClass('modtooltip');
});

I also tried classlist, classname but it doesn't let me in any way, what am I missing? Thank you

stochastic processes: variance of a random variable obtained from a linear transformation

Edit: I needed to review this question as suggested.

Suppose there are $ N $ Realizations of the Gaussian process denoted as vectors $ mathbf {z} _ {j} in mathbb {R} ^ {n} $ for $ j = 1, ldots, N $. Leave $ and $ be a random variable such that $ y = sum_ {j = 1} ^ {N} ( mathbf {B} mathbf {z} _ {j}) (i) $
where $ mathbf {B} $ It is a unitary matrix. What is the variance of $ y2?

Explanation: Boldface represents the vector or matrix. $ ( mathbf {B} mathbf {x}) (i) $ represents the $ i $-th vector entry $ mathbf {B} mathbf {x} $.

Algorithm: maximum benefit obtained in non-directed weighted tree

I found this problem by doing a sample test. The problem was that we have given him a tree that is not addressed. We can start from any node of our choice. Initially we have the power "P" and, when moving from one node to another, we lose some power "X" (what is considered as the cost of the trip) and we get some "Y" gains. So, we must say that what is the maximum gain we can obtain with a given power?

Example: the first line contains the number of nodes and the initial power

The following lines n-1 contain node-node-cost-benefit

5 4

1 2 1 2

1 3 2 3

1 4 2 4

4 5 2 2

Answer => 7. We can start from 4 and go to 1 and then to 3.

I have applied DFS in this to obtain the maximum benefit obtained when traveling each route.

But is there any way to reduce time?

from collections import defaultdict
class tree:
    def __init__(self,nodes):
        self.nodes = nodes
        self.graph = defaultdict(list)
    def add(self,a,b,charge,profit):
        self.graph(a).append((b,charge,profit))
        self.graph(b).append((a,charge,profit))
    def start(self,power):
        maxi = -1
        visited = (False for i in range(self.nodes))
        for i in range(1,self.nodes+1):
            powers = power
            visited(i-1) = True
            for j in self.graph(i):
                temp = self.dfs(j,powers,0,visited)
                if temp > maxi:
                    maxi = temp
            visited(i-1) = False
       return maxi

    def dfs(self,node,powers,profit,visited):
        v,p,pro=node(0),node(1),node(2)
        if powers-p < 0:
            return 0
        if powers-p == 0:
            return profit + pro
        profit += pro
        powers = powers-p
        visited(v-1) = True
        tempo = profit
        for k in self.graph(v):
            if visited(k(0)-1) == False:
                temp = self.dfs(k,powers,tempo,visited)
                if temp > profit:
                    profit = temp
        visited(v-1) = False
        return profit

t = tree(5)
t.add(1,2,1,2)
t.add(1,3,2,3)
t.add(1,4,2,4)
t.add(4,5,2,2)
print(t.start(4))

php – Separate values ​​from an array obtained from fetch_assoc () or fetch_row ()

I need help to get the values ​​I want.

I have made the following query, which brings together fields from different tables:

Query

Well, me in my .php through the function fetch_row () I get each record of the query (as you can see in the image, there are 4 records). I assume that this function is returning the following:

  • a array containing the 4 records, Y those records, in turn, are arrays that contain each data that corresponds to them.

My php code is as follows:

fetch_row()){
    print json_encode($regtaller);
    echo "
"; } ?>

The function json_encode () I return every record that is within the array. Here is an image:

Array records

Well, now comes the problem. I need to access each value individually within the records. For example, I only need to access the 1st record and print "ROBOTIC MEP". Therefore, theoretically to be able to access the first array, I modify the line of json_encode () as follows:

print json_encode($regtaller(0));

That is, I selected the position (0) of the array, which would have to return me the first record. However, it returns the full column of "Subject Detail" instead of the first record:

Modifying json_encode

At that moment I thought: "Well, it doesn't matter, if I put

json_encode ($ regtaller (0) (0))

maybe I can access "MEP ROBOTICA" equally. But no, what it does is take the first letter of each subject and print it, so it looks like this:

Modification number 2

Anyway, that would be the problem. I can not access what I want, which would be to go through each record to my liking and take the data I want, without accompanying it with other data. Any input is welcome. Thank you very much in advance.

Authentication – Cannot be obtained in Central Administration

Apparently, in the last 3-4 weeks we lost our ability to enter the Central Administration. Now, when I or the other SA try to reach the URL with the port, it asks us to authenticate again and not accept our credentials. (Directly on the server, as we have always done). I tested our domain accounts and the local administrator account in the box.

We were trying to get there because the Sharepoint database in C: exploded in size last week and filled the drive and the configuration is in … Central Administration. It is impressive to solve problems in an interface to be able to solve the initial problem.

No changes have been made to this server since, apparently, the SharePoint manager left them in a test organizational unit without GPO, it has no firewall / McAfee … I'm not sure what could have changed.

I appreciate any advice.

DTS-NET Since 1997 VPS NOT OBTAINED additional IPs as needed: price equalization and uptime of 24-7-365 and more

DTS-NET is a leader in VPS hosting solutions, DTS-NET has provided professional, affordable and quality managed hosting solutions to users around the world. To who DTS-NET, we offer everything that larger companies do and even more, but only for a fraction of the cost.

DTS-NET offers you our packages of Virtual Private Servers for a limited time "MIGRATION + CONFIGURATION + FREE INSTALLATION" starting at ONLY $ 9.95 per month or as low as $ 40 per year.

Migration and customization / FREE installations included in all VPS, just contact us after registration (eg: Plesk migration, cPanel and other platforms, The software is not on the list, just ask!run PHP, modules, ffmpeg, red5, plex media server, ruby, java, JSP, Adobe ColdFusion MSSQL, MYSQL NOSQL and more,
Get answered questions! Call us Talk to us @ DTS-NET.COM click here to order

Price matching guarantee

DTS-NET The price will match the characteristics and the lowest current price of the following most popular hosting companies.

Send it here in the live chat or click on contact us or open a support ticket.

Contact our team today with a copy of the competitor's quote and let our team match or exceed the prices offered.
Requirements for consideration of price equalization:
– Plans must include data transfer without a meter.
– The provider must offer 24×7 TELEPHONY, Live Chat and Ticket Compatibility. The price equalization guarantee is limited to a price equalization per hosting plan, per customer and does not apply to: promotional prices are valid for the original period .

18.04 – "The size could not be obtained: 0x80000000000000000e" occurred after the start menu to install the Ubuntu18.04 server on Intel Compute Stick

I have followed this guide to install Ubuntu Server 18.04 LTS on Intel Compute Stick.
However, the installer displays "The size could not be obtained: 0x800000000000000e" and many messages could not start the installation.

The photo of the errors here.

I am sure that I have written the correct image that I downloaded from here to the USB drive. I tried 19.04 at this time. But "Could not get the size: 0x800000000000000e" has been shown again … How can I solve this problem?

DTS-NET Since 1997 VPS NOT OBTAINED additional IPs as necessary: ​​price equalization and uptime of 24-7-365 and more

DTS-NET is a leader in VPS hosting solutions, DTS-NET has provided professional, affordable and quality managed hosting solutions to users around the world. To who DTS-NET, we offer everything that larger companies do and even more, but only for a fraction of the cost.

DTS-NET offers you our packages of Virtual Private Servers for a limited time "MIGRATION + CONFIGURATION + FREE INSTALLATION" starting at ONLY $ 9.95 per month or as low as $ 40 per year.

Migration and customization / FREE installations included in all VPS, just contact us after registration (eg: Plesk migration, cPanel and other platforms, The software is not on the list, just ask!run PHP, modules, ffmpeg, red5, plex media server, ruby, java, JSP, Adobe ColdFusion MSSQL, MYSQL NOSQL and more,
Get answered questions! Call us Talk to us @ DTS-NET.COM click here to order

Price matching guarantee

DTS-NET The price will match the characteristics and the lowest current price of the following most popular hosting companies.

Send it here in the live chat or click on contact us or open a support ticket.

Contact our team today with a copy of the competitor's quote and let our team match or exceed the prices offered.
Requirements for consideration of price equalization:
– Plans must include data transfer without a meter.
– The provider must offer the price equalization guarantee for 24×7 telephone services, live chat and ticket assistance is limited to a price equalization per accommodation plan, per client and does not apply to: promotional prices valid for the period original.

reference request: weak convergence for periodic generic points, which is obtained from the specification

Leave $ X $ Be a compact metric space and let $ f: X rightarrow X $ Be a transitive map and anosov.

Leave $ x $ be a generic point so that $$ mu_ {n_ {i}}: = frac {1} {n_ {i}} sum_ {j = 0} ^ {n_ {i} -1} delta_ {T ^ {j} (x) } rightarrow mu $$ by some invariant measure $ mu $.

It is well known that $ T $ It satisfies the specification property. Leave $ p in X $ be
a periodical point associated with $ delta, S $ Y
$ {x, f (x) ,. . . , f ^ {n} {i} (x) }
for the property specification. In particular, $ f ^ {n} {S} + S} (p) = p $ and orbit of $ p $ cover orbit $ f ^ {n_ {i}} (x) $.

My first question is the following:

$ mu_ {n_ {i}, p}: = frac {1} {n_ {i} + S} sum_ {j = 0} ^ {n_ {i} + S-1} delta_ {T ^ { i} (p)} rightarrow mu $?

If so. by $ mu in mathcal M (X) $ we wrote $ text {supp} mu $ For him support of $ mu $. It is easy to see that if a sequence of measurements $ ( mu_n) _ {n = 1} ^ infty $ weak$ ^ * $ converges to some $ mu in mathcal M (X) $, so
$$
text {supp} , mu subset liminf_ {n to infty} ( text {supp} , mu_n).
$$

(By $ liminf $ above I mean the lower limit of Kuratowski, for a definition see the wikipedia entry.)

According to the above, we can say $ supp mu $ Periodical point? Why $ mu_ {n_ {i}, p} $ It has periodic support.

Owners of MS-Teams / Office-365-Group obtained full control permissions on the underlying SharePoint site

Using the Office 365 admin center and the Office 365 admin user name, I created a new MS Team in the following way, and named it "TestTeam123": –

enter the description of the image here

now this has created a new modern group site of Office 365 group + sharepoint. I also noticed the following:

  1. Adding a member to the MS-Teams or Office 365 group will automatically grant the member user edit permission on the sharepoint site. now this behavior is understandable since within the SharePoint site, we can find that within the group of members of sharepoint >> there is a member of Office 365 group added by default (that has the same name as the group of members of sharepoint) as follows:

enter the description of the image here

and, what is more important, if I remove the previous member of the group of office 365 from the group of members of sharepoint (I did it only for testing purposes, since in reality we should not do it), the members of the group of Office 365 already they will not have access to the sharepoint site.

  1. But what I did not understand is that if we add an owner to MS Teams / Office-365-group, then the owner will have full control permission on the sharepoint site. so I thought that, as in the case of members, I will find that the owner of the office 365 group is added within the group of sharepoint owners, but this is not the case. but, on the other hand, I checked the administrators section of the SharePoint site collection and found that this group was added by default:
    enter the description of the image here

Now based on the previous case, I have the following 3 questions:

  1. for the previous group "TestTeam123 Owner" added within the site collection administrators section, is this the group of sharepoint owners? Or do you own the 365 group office?

  2. Why did Microsoft add the office 365 group member within the sharepoint group of members, while not adding the owner of the office 365 group within the group of sharepoint owners?

  3. For testing purposes, I delete the "TestTeam123 Owner" group from the site collection administrators section, but the users of the Office 365 group owners have full control over the SharePoint site … what happens after backstage? I did the removal about 20 hours ago, so I do not think it's a synchronization or synchronization problem …