html – Show items when the user clicked the button

/* works */
#button: verified + span {
text-transform: upper case;
}

/ * does not work :( * /
#button: verified + .box {
viewing block;
}

/ * install * /

input, .box {display: none;}

.btn {
display: inline-block;
padding: 1em 2em;
background: linear gradient (90deg, # 5F6DFF 0%, rgba (195, 113, 255, 0.88) 100%);
shadow-box: 0px 4px 10px rgba (255, 95, 109, 0.25);
border-radius: 40px;
color: #fff;
cursor: pointer;
transition: all linear 0.1s;
}


I'm the first
Second second
I am third

data – What are the best practices for managing user input?

I've always learned how to do client and server side validation, then use htmlentities or htmlspecialchars on the values ​​to sanitize / canonize before storing them in the database, but I try to do that. prevent XSS on a project and because of the technologies we use. If I do that, I'm forced to continue using code like this to render HTML entities:

var tmp = document.createElement (& # 39; textarea & # 39;);
tmp.innerHTML = value;
value = tmp.value;

And or:

$ (& # 39;
& # 39;) .text (value);

Depending on the source of the data. This does not seem to be the best solution to prevent the execution of possible code people added to the input values. I do not know if I make a false assumption that you should not store the user's entries without escaping characters and any other disinfection, or if, in this situation, I'm complicating things excessively because I have to basically change the way the data is displayed because of the way disinfection is handled, and if properly disinfected, its display should not require custom code to handle disinfected values. How do you manage that?

interaction design – Help on a user interface for identification information with a restriction of 2 dependent fields

I'm trying to change the user interface of the credentials in which a user must insert a username and password. The change will include another field called PEM which may be a download button or a drop zone. It is imperative that the user provide a user name and a PEM file OR password.

The user interface currently looks like this:

enter the description of the image here

Where should I add the dropzone OR upload button?

magento2 – Magento 2 – Calling a member function getId () on null, admin user ID

I have a custom module and it works perfectly in the past, and now I have it installed on a new Magento 2 project.

and then I add the data module example, and then configuration: upgrade I receive this error:

Calling a member function getId () on null

and exactly on this line:

$ this-> session-> getUser () -> getId ()

session is a variable of Magento Backend Model Auth Session

is there a solution?

sharepoint server – Checks if the current user is a member of a specific AD security group

next situation: I have a sort of classification tree (with managed metadata) next to a document library. Now, my client had the idea "Hey, it would be nice if you could hide parts of the classification tree by group membership". Alright then, created new SharePoint groups and added the AD security group. And now? I already have a "script" (do not bother me for style, I'm not a developer yet and not even close to that). But this only affects users in the SharePoint group, not those in the AD security group.




Is there an applicable way to reach? In addition, I have to keep in mind that SharePoint is available via the public internet. Maybe it will be my final stop if I have to use LDAP calls ?!

Needless to say, I've already tried to import the "memberOf" AD attribute to the User Profile service. Unfortunately, this field remains empty for all users, even after the 4th or 5th synchronization.

security – The administrator can not select the user to reset the password

2011 Macbook Pro under El Capitan. I am configured as an administrator and my child has a standard account with Parental Control enabled. My child has forgotten his password and I am trying to reset it in System Preferences. I unlock the lock with the administrator password, but my child's account is still grayed out and I can not select it to reset the password. It happened about a month ago, but one day I was able to select their user account and managed to reset the password. I do not know why I could select it suddenly, and I do not know why I can not suddenly select it. I tried to lock and unlock the padlock, but that has not changed. There are many resources to show me how to reset the password in other ways. I am looking for an explanation to why I can not select the user account after unlocking the lock with my administrator password.

confidentiality – Would it be ethical to use artificial intelligence to determine the sex of a user from the content he downloads, without his knowledge?

Aside from ethics, I think this could potentially create a number of different problems. What if your algorithm guesses badly and I am stuck with a poorly targeted user interface? What if my wife and I share an account? And if I am one (insert the orientation here) (insert the genre here) who [coaches, supports] a [men’s, women’s] [volleyball, football] team? People are very diverse and you could make a lot of mistakes. Would you then provide tools to the user to correct these errors? How could you do it without the user being offended?

Instead, I see many fewer issues that can occur in a section like this:

Let's get to know each other better!

If you wish, we can help you tailor your profile to your interests.

You can start by selecting some of your interests from the list below or try searching for your own.

Peach Cooked Soccer Video games Social media
Search my interest ...

Skip this section β†’

You can continue with other questions that may be really relevant for formatting your user interface or application, allowing the user to omit / delete details for any questions.

Just being an opt-in experience saves the user from having the impression that your app is "talking to them" behind their backs.

In this case, more specifically at this point, I think it's wise to be transparent about the data your application knows about (or thought he knows) about your users.

ease of use – What is the best place to ask the user for his ethnicity?

There is no complete list including everyone

Ethnicity is not always formally defined and attempts to define formal ethnicities are often lacking. For example, the Laotian government has classified the entire population into 49 major ethnic groups divided into 160 ethnic groups. Yet, many feel that their identity has been neglected.

UPDATE:
Perhaps it is possible to extract interesting ethnic groups for a medical diagnosis and only list them. The enumeration of the 160 Lao ethnic groups will most likely be unimportant in this context.

Ethnicity can be a very sensitive issue

For example, asking for ethnicity in Sweden could trigger a warning signal about racist intentions.

UPDATE:
Explain clearly why you are asking.

Ethnicity does not have strict boundaries (necessarily)

Unlike countries, the external borders of an ethnic group can often be unclear. The group / group to which an individual belongs does not always appear clearly from the point of view of individuals and / or groups. The simple question may seem to exclude if you do not have a group that you strongly identify with, even if it was possible to create a complete list.

UPDATE:
You are probably interested only in the biological heritage, not in a sense of social belonging. Make sure to explain it to the user.

Where (and if) you ask depends on why you ask

You must clearly define the purpose of your application for ethnic origin and design. If you are designing a BMI calculator, for example, determine which ethnic groups might be relevant to your calculations and ask them specifically (and clearly explain why you are asking). If, on the other hand, you need to know the customs, holidays, cooking, etc. people, you would probably do better to specifically ask for these.

network – Can I change the user name and password of the router provided by the ISP?

When I tried to connect to the interface of my router today, I noticed that the default user name and password were set. I want to change it because of the obvious dangers of exposure to my home network. Should I just log in and change the username and password without waiting for any kind of ISP complaint?

PS: The router was provided by the ISP as part of its Internet package.

Web server – Redirects users to the web server based on the IP of the user

I have a web server that has Windows authentication, I want to disable Windows authentication locally, anyone on the local network can access it without authentication. After much research, I found no way. But, I think I can create two web servers that use the same domain name, one used locally and one with a public IP address. but the question of how will I redirect local users to the local web server?