Selection of menu option

I want to create a menu and that it contains a submenu that, when choosing each submenu option, shows me the data that each option contains, in the same form.


When you choose b1, show me the content, I have to put some pictures on it.
Please, I appreciate the help, because I do not have much knowledge in advance, thanks.

GPU Selection ue4editor.exe

Even though I configured ue4editor.exe to use built-in graphics on my laptop, it ends up using the discreet nvidia gpu; is there a way to define the preferred gpu with the unreal suite?

Material Design Selection Area / Use drop-down menu that corresponds to correct interaction

I like the material design. When using one of the hardware design components (check box / drop-down menu), I was wondering which interaction was correct, the link below has 2 filled-in and improved interactions. If you click on the completed examples, the drop-down list covers the field label. However, the list item opens below the drop-down list, which helps the user to easily read the field label.
So, what is the good interaction for this component? Or simply saying filled means that the good interaction has been updated?

I need a Google Spreadsheet trigger that will fire when the active selection will be changed for a given sheet.

This would be equivalent to the Excel event associated with a change in the selection of the spreadsheet.

7 – Fill in the selection list of a taxonomy term field

I try to populate a selection list dynamically by extracting its values ​​from a taxonomy term field related to the current user account. Just to clarify, the function below is a hook defined by a module provided with a custom installation profile. It is basically used to create fields on a specific form.
So, my custom module has-

function some_function_attributes() {

      global $user;
      $user_fields = user_load($user->uid);
      $termid = $user_fields->field_user_organization('und')('0')('tid');
      $taxonomy_term = taxonomy_term_load($termid);
      $options = field_get_items('taxonomy_term', $taxonomy_term, 'field_org_environment','select');
      return array(
        'environment' => array(
        'type' => 'select',
        'options' => $options,
        'name' => t('Environment'),

Allowed values ​​in the field (for this user) –

E1 | Env1

E2 | Env2

Here is the screenshot of development screen for dsm($options);
enter the description of the image here

So he fills the right field but not as he should.

The current shape element looks like this-
enter the description of the image here

Currently, it's just returning the chart and I can not understand what I missed. I hit my head against the wall to make sure
How can I enter Env1 and Env2 in this selection list?

macos – Text selection on terminal with Mac

My employer just gave me a MacBook (Mojave) and I really have trouble understanding the terminal. I have been a Linux user for years and I am still in the terminal.

I've tried a number of different terminals; Terminal, ITerm2 and Alacritty and, to date, I could not figure out how to perform the most basic text selection operations without having to reach the mouse.

With ITerm2, I managed to run the word selection, but not from the cursor to the beginning / end of the selection line or cut.

I saw people on the Internet (but surprisingly few) asking similar questions and their answer was that it was just not possible. I find it hard to accept that this may be the case – and the fact that not many people seem to be shouting at me makes me wonder if people asking this question (including myself) are misconfigured.

Text selection operations work fine for me outside the terminal, for example. in a text editor.

Can someone help?

filtering – Multiple selection filter

I'm working on a design, however, I ran into an obstacle on a multi-selection filter. The list of filter values ​​will not be very long.

I guess users will not know all the filter values ​​available. So I think the search would not work in this case.

I've created a basic stream – shown in the picture below.
Is there a better way to work or is it working?


Input fields – What is the best way to differentiate users with the same name into a complete selection?

I guess it's a questionnaire. To differentiate people, you will need to ask them for an identification first. It could be a year of birth, a nickname. You can request a nickname only if a name appears more than once.

In households (or any group of people), several people with the same name face this problem in daily communications. In many cases, it is solved with nicknames.

The absolute minimum you can do is always use the same order of names in your form and assign them a number. But this is not the best solution because the number does not connect to the real world and the user should remember which number belongs to which person.

3d – exclusive / exclusive voxel selection box

Let's say I have some voxels in (1,1,1) and (2,2,2), I would like to know if it would be better to consider that the smaller box containing the two voxels is either (1,1, 1) to (2,2,2) or (1,1,1) to (3,3,3). Which is to say is it more correct to make sure that the box contains the bottom point of voxels or voxels in the form of cubes inside the box?

sort – Tri Selection vs. Insert Sort for Flip Table

I had a question in a test, which asked me the following question:

Selection sorting is faster than insert sorting for an array in the reverse order.

Now, to my knowledge, both have a time complexity of $ O (n ^ 2) $ in the case of this particular input arrangement, comparing their execution time is therefore not possible because it is a question of how the algorithms are implemented. A poorly written selection sort can be much slower than insertion sorting and vice versa, so an argument can be advanced for both cases.

But the corrected says that since selection sorting has a smaller number of swaps (order of $ n $) compared to insertion sorting (quadratic comparisons), selection sorting should be faster than insert sorting in this particular case.

What is the right solution? Can the selection be faster under certain assumptions?