need to collect image id attribute while onclick function is not working, unable to find fault

Please help, I don’t understand what’s wrong. when I click on the images nothing happens. onclick="collectImageId(this.id) doesn’t seems to work. I checked everything up to my knowledge but couldn’t find what’s missing! can somebody help me to find the fault? THE CODE IS TO COLLECT IMAGE IDs (my target project is to collect image ids… Read More need to collect image id attribute while onclick function is not working, unable to find fault

Powershell: how to set 'preferredLanguage' in on-premise Active Directory for every User based on his AD-Group membership?

My goal is to change the "preferredLanguage" attribute in Active Directory for all Users in one AD-Group. I am executing the following code in two separate lines: $Users_UK = Get-AdGroupMember -identity "AD-Group-UK" Get-ADUser $Users_UK -Properties preferredLanguage | Set-ADUser -Replace @{preferredLanguage = "en"} However, the second line generates an error and I can’t find the exact… Read More Powershell: how to set 'preferredLanguage' in on-premise Active Directory for every User based on his AD-Group membership?

In python, should attributes only be accessed by methods?

Here are two examples of classes that handle their attribute differently. class MyClassA(): def __init__(self): self.my_attribute = 1 class MyClassB(): def __init__(self): self._my_attribute = 1 def get_my_attribute(self): return self._my_attribute def set_my_attribute(self, value): self._my_attribute = value Is there a python consensus on which is best practice? >Solution : Best practice is to pick the one that… Read More In python, should attributes only be accessed by methods?