Is the command palette a UX tool only for experienced users? Or can they also be used effectively by non-technical users?

command Panel

VS code is also accessed via the keyboard. The main key combination you need to know is Ctrl + Shift + P command Panel , From here you have access to all functions of VS Code, including keyboard shortcuts for the most common operations.

command Panel

The command Panel Allows access to many commands. You can execute editor commands, open files, search for symbols, and get a quick overview of a file, all in the same interactive window. Here are a few tips:

another example from fman

The quickest way to explore fman abbreviations is via command Panel :

Just press Ctrl + Shift + P (or Command + Shift + P for Mac) open in fman.

After the command palette (see above) for power users and developers in some apps (vscode, sublimetext, some Pythonide, jupyterlab … etc.) has become a normal user interface, I think that in every complex program with many hidden tools / functions a range of commands would be very useful.

In my opinion, a modern range of commands serves three different purposes

  • Recognize commands / functions based on the desired actions (i.e. duplicate a file, export a tree view, create a timestamped zip file, … etc.)
  • Discovery of links
  • Executing commands that have no obvious visual interface or are deeply nested and would require a few clicks. Or for the lazy ones who type faster, then move and click the mouse and don't remember the shortcuts.

The way I see human memory is to map the basic dictionary object (key, value). And our intention is directly related to the action we want to take. Typically, in any software, a user must learn to map their intent to the learned behavior of steps that must be performed in the software to achieve their goal. (Let me know if I can explain all of this better). I find that the command palette shortens this approach and enables a faster learning experience.

I personally find it easier to remember words and actions that I want to achieve than the steps I have to take to achieve them. So I often have to google the exact recipe and run it manually. A command palette helps considerably and reduces the effort. Google has also greatly influenced people to move from structured information to queryable (?) / Searchable information. I've also always thought that the command line is great to run when you know what you want, and the UI is great to recognize.

As for the future, we move from learning behavior to dictation and let the software figure it out. I think that's all about assistants.


So my question is whether this is only useful for certain groups of people (i.e. developers) or whether it is generally applicable to the general population.

MacOS has the help search function, which is similar, or the action item, which is pretty good.

If someone wants to implement such a function in software, what are the guidelines from a UX perspective?

Caching – How can I prevent users from bypassing my server cache?

I have a Shopify store that does flash sales. It uses Cloudflare to manage the server caching of my products.json file. However, it looks like users can monitor my products.json and bypass the cache. I want the cache there because it reduces server usage and also prevents my sales from falling because they can't see exactly when I update my products.

You keep getting X-Cache: miss when I expect to return hit, server,

Does anyone know how to do this and how can I stop it?

Thank you very much.

How to save all users with Drupal 8 again

I don't know how familiar you are with code. I would suggest writing an update hook to a custom module. Something like:

MYMODULE_update_8100(&$sandbox) {
  // Protect against timeouts.
  $time = time() + 55;

  // On the initial run, set up the update.
  if (empty($sandbox)) {
    // Get all user ids.
    $sandbox('items') = Drupal::entityQuery('user')
      ->accessCheck(FALSE)
      ->execute();
    $sandbox('max') = count($sandbox('items'));
  }

  while (time() < $time && $sandbox('items')) {
    // Resave each user.
    Drupal::entityTypeManager()
      ->getStorage('user')
      ->load(array_pop($sandbox('items')))
      ->save()
  }

  // Update the completion status as a number between 0 and 1.
  $sandbox('#finished') = ($sandbox('max') - count($sandbox('items')) / $sandbox('max');
}

See hook_update_N for more informations.

Force all fields in comment forms to be displayed to logged in users

You can paste the following code into your theme functions.php file, it should generate almost the same comment form for logged in and logged out users

add_filter( "comment_form_fields", function( $comment_fields ) {
    if( is_user_logged_in() ) {
        // Get an array of field names, excluding the textarea
        $comment_field_keys = array_diff( array_keys( $comment_fields ), array( 'comment' ) );

        // Get the first and the last field name, excluding the textarea
        $first_field = reset( $comment_field_keys );
        $last_field  = end( $comment_field_keys );

        foreach ( $comment_fields as $name => $field ) {
            if ( 'comment' === $name ) {
                echo apply_filters( 'comment_form_field_comment', $field );
                //echo $args('comment_notes_after');
            } else {
                if ( $first_field === $name ) {
                    do_action( 'comment_form_before_fields' );
                }
                echo apply_filters( "comment_form_field_{$name}", $field ) . "n";

                if ( $last_field === $name ) {
                    do_action( 'comment_form_after_fields' );
                }
            }
        }
        return array();
    }
    return $comment_fields;
}, 2000 );

Note that I have not checked whether the data entered in the form is used when the comment is saved. You should check this (since WordPress can force the use of the user details stored in the profile).

magento2.3.3 – Magento 2.3.3: Requested storage not found (for logged in users)

Switching between branches normally works smoothly.

This is the result when I switch from children to women:
exemple.com/kids/clothes -> before changing
exemple.com/women -> after changing

However, if someone is logged in and is on a category page, the switch will not work:
exemple.com/kids/clothes -> before changing
exemple.com/women/clothes -> after the change, women don't have this category

Any idea what it's about?

Ease of use – How can users be motivated to archive / delete to improve system performance?

I don't see any way that would go through me thousands (Did I understand you correctly?) And archived some lists that I do not use. Sounds like I have to hire someone to do this job for me all the next month.

If I create 100 playlists for Apple music, why should I care how the platform handles it? Why I have to delete / archive playlists, I need each one.

As a developer, I clearly see that you have a technical problem that you are trying to ignore by getting users to solve it for you.

There are many options that do not require user attention:

  • If the list is not changed / not used, why should you recalculate it? Ask you dev 🙂 It's 2020, we have lazy loading, caching, etc. out of the box for all major languages ​​and platforms.

  • If the list is not going to be used for a long time, why shouldn't you automatically archive it for users?
    Set the (..zZZ) symbol for such a list and restore it when the user clicks on it. It can't happen right away.

In my company, the entire account is blocked if it is inactive for a certain period of time: data is removed from the database, etc., so that no resources are used, but only space. But it is 100% transparent to the user, when the user visits his blocked account, he sees a message: "You have been inactive for a while. Please wait, we will freeze your account."

I know for sure if we can archive your account if I ask you if you have been inactive for a while. Most of them will "of course not !! although I don't use it, I still need it."

Linux users SSH in folder, but can Nano in any top folder?

I did useradd -s /bin/rbash -d /var/www/html/directory USRNAME

and SSH login with USRNAME (including SSH key) directory and CD doesn't go back. So that works … but

if you use nano /var/www/html/.env (In front directory) will say it

Unable to create directory /var/www/html/directory/.local/share/nano/: Permission denied
It is required for saving/loading search history or cursor positions.

Press Enter to continue

If you press enter it will allow them to read any File with nano .. anywhere in the system!

Any help that only allows this user the particular directory only with Google Cloud?