Expected User Interaction behaviour for selectable tabs laid vertically

Context
I’m working on a user preferences settings page where a user can choose between products and features for themselves. The “Product Settings” section below is where the user can select a product and configure some of its settings.

enter image description here

Problem

I’m confused about a few things regarding the interaction and user expectations.

  1. What should the default selection be? Should it be something like in the wireframe above with “Choose a product from the left” written? or should it default to the first product’s configuration view?

  2. Should clicking on the product name also automatically activate the checkbox? Especially because some products do not have any settings to configure yet and can only be either activated or deactivated. enter image description here

enter image description here

Note:

This layout and interaction is largely inspired by Safari’s extension settings workflow. Is this a common design pattern? Is there a general name for such a layout?

enter image description here

Recommended browser back button behaviour for SPA’s

Our company is building an SPA and we’re having a discussion about the best behavior for the browser back button. The SPA is a management tool with a lot of tables and filters. Every time a filter is changed the URL parameters are updated to reflect the current state.

There are two sides to the argument of what the back button should do:

  • One side thinks the back button should switch states. So every time a filter changes it should push the new state in the browser history.
  • The other side thinks the back button should switch pages. So filter changes should be ignored and the browser should return to the previous page/view.

Both options have their pro’s and cons. Is there a common view on what the back button should do?

Behaviour modifiers on classes

I am trying to make a simple game where you have a weapon and you can attach things to the weapon that changes the behaviour of said weapon.

But how do you design code for this behaviour overriding/modifying.

Normally i would use virtual method overrides when i want a derived class to have a different behaviour to the base class, but it doesn’t make sense in this case because the attachments are not derived classes of the given weapon, they are instead something tacked on to the weapon compositionally.

I have no idea how to approach this to give me the freedom and flexibility to attach anything i want to a weapon, so some advice on what my options are would be welcome.

Use hardware threads as independent cpus changes Barrier() behaviour

I am using Open MPI and C++ to try out simple programs on my laptop. When I use the 2 cores on my computer as processors, the program runs us expected. However, when I instead do –use-hwthread-cpus, it seams that I never get past the Barrier(). That is the only thing I am changing, just the way I start the program. It is the same .exe file running.

How is the behaviour of backupset in RMAN?

I found this definition on WEB:

A logical grouping of backup files — the backup pieces — that are created when you issue an RMAN backup command. A backup set is RMAN’s name for a collection of files associated with a backup. A backup set is composed of one or more backup pieces.

but I don’t understand why when I make one backup of whole database the rman creates several backupsets

Here is the an output about one backup that I make (I’ve used parallelism 4)

[oracle@orcl12 ~]$   rman target /  Recovery Manager: Release 12.2.0.1.0 - Production on Sat Jul 20 12:48:52 2019  Copyright (c) 1982, 2017, Oracle and/or its affiliates.  All rights reserved.  connected to target database: ORCL (DBID=1525136414)  RMAN> list backup;  using target database control file instead of recovery catalog  List of Backup Sets ===================   BS Key  Size       Device Type Elapsed Time Completion Time ------- ---------- ----------- ------------ ------------------- 161     3.92M      DISK        00:00:01     20/07/2019 12:06:12         BP Key: 161   Status: AVAILABLE  Compressed: NO  Tag: TAG20190720T120610         Piece Name: /u01/app/oracle/recovery_area/ORCL/backupset/2019_07_20/o1_mf_annnn_TAG20190720T120610_gm6ch3t2_.bkp    List of Archived Logs in backup set 161   Thrd Seq     Low SCN    Low Time            Next SCN   Next Time   ---- ------- ---------- ------------------- ---------- ---------   1    58      14688057   20/07/2019 11:55:34 14693433   20/07/2019 12:06:09  BS Key  Type LV Size       Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ ------------------- 162     Full    307.59M    DISK        00:03:59     20/07/2019 12:10:15         BP Key: 162   Status: AVAILABLE  Compressed: NO  Tag: TAG20190720T120613         Piece Name: /u01/app/oracle/recovery_area/ORCL/7F4405983DB33E47E055FAC8EF8905E8/backupset/2019_07_20/o1_mf_nnndf_TAG20190720T120613_gm6chcwh_.bkp   List of Datafiles in backup set 162   Container ID: 3, PDB Name: ORCLPDB   File LV Type Ckp SCN    Ckp Time            Abs Fuz SCN Sparse Name   ---- -- ---- ---------- ------------------- ----------- ------ ----   10      Full 14693446   20/07/2019 12:06:16              NO    /u01/app/oracle/oradata/orcl/orclpdb/sysaux01.dbf  BS Key  Type LV Size       Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ ------------------- 163     Full    276.60M    DISK        00:04:11     20/07/2019 12:10:27         BP Key: 163   Status: AVAILABLE  Compressed: NO  Tag: TAG20190720T120613         Piece Name: /u01/app/oracle/recovery_area/ORCL/7F43A22D9E7528CCE055FAC8EF8905E8/backupset/2019_07_20/o1_mf_nnndf_TAG20190720T120613_gm6chg3m_.bkp   List of Datafiles in backup set 163   Container ID: 2, PDB Name: PDB$  SEED   File LV Type Ckp SCN    Ckp Time            Abs Fuz SCN Sparse Name   ---- -- ---- ---------- ------------------- ----------- ------ ----   6       Full 1441967    12/01/2019 11:41:59              NO    /u01/app/oracle/oradata/orcl/pdbseed/sysaux01.dbf  BS Key  Type LV Size       Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ ------------------- 164     Full    503.65M    DISK        00:05:59     20/07/2019 12:12:14         BP Key: 164   Status: AVAILABLE  Compressed: NO  Tag: TAG20190720T120613         Piece Name: /u01/app/oracle/recovery_area/ORCL/backupset/2019_07_20/o1_mf_nnndf_TAG20190720T120613_gm6ch8s4_.bkp   List of Datafiles in backup set 164   File LV Type Ckp SCN    Ckp Time            Abs Fuz SCN Sparse Name   ---- -- ---- ---------- ------------------- ----------- ------ ----   3       Full 14693445   20/07/2019 12:06:16              NO    /u01/app/oracle/oradata/orcl/sysaux01.dbf   7       Full 14693445   20/07/2019 12:06:16              NO    /u01/app/oracle/oradata/orcl/users01.dbf  BS Key  Type LV Size       Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ ------------------- 165     Full    738.59M    DISK        00:06:22     20/07/2019 12:12:37         BP Key: 165   Status: AVAILABLE  Compressed: NO  Tag: TAG20190720T120613         Piece Name: /u01/app/oracle/recovery_area/ORCL/backupset/2019_07_20/o1_mf_nnndf_TAG20190720T120613_gm6ch803_.bkp   List of Datafiles in backup set 165   File LV Type Ckp SCN    Ckp Time            Abs Fuz SCN Sparse Name   ---- -- ---- ---------- ------------------- ----------- ------ ----   1       Full 14693444   20/07/2019 12:06:15              NO    /u01/app/oracle/oradata/orcl/system01.dbf  BS Key  Type LV Size       Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ ------------------- 166     Full    285.26M    DISK        00:01:08     20/07/2019 12:13:58         BP Key: 166   Status: AVAILABLE  Compressed: NO  Tag: TAG20190720T120613         Piece Name: /u01/app/oracle/recovery_area/ORCL/8D6E79BBBC2A140CE0531400A8C06C3B/backupset/2019_07_20/o1_mf_nnndf_TAG20190720T120613_gm6cvr4x_.bkp   List of Datafiles in backup set 166   Container ID: 4, PDB Name: HOMOL   File LV Type Ckp SCN    Ckp Time            Abs Fuz SCN Sparse Name   ---- -- ---- ---------- ------------------- ----------- ------ ----   57      Full 14693594   20/07/2019 12:12:54              NO    /u01/app/oracle/oradata/orcl/ORCL/8D6E79BBBC2A140CE0531400A8C06C3B/datafile/o1_mf_sysaux_glh6b049_.dbf  BS Key  Type LV Size       Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ ------------------- 167     Full    198.24M    DISK        00:01:35     20/07/2019 12:15:22         BP Key: 167   Status: AVAILABLE  Compressed: NO  Tag: TAG20190720T120613         Piece Name: /u01/app/oracle/recovery_area/ORCL/7F43A22D9E7528CCE055FAC8EF8905E8/backupset/2019_07_20/o1_mf_nnndf_TAG20190720T120613_gm6cxvsl_.bkp   List of Datafiles in backup set 167   Container ID: 2, PDB Name: PDB$  SEED   File LV Type Ckp SCN    Ckp Time            Abs Fuz SCN Sparse Name   ---- -- ---- ---------- ------------------- ----------- ------ ----   5       Full 1441967    12/01/2019 11:41:59              NO    /u01/app/oracle/oradata/orcl/pdbseed/system01.dbf  BS Key  Type LV Size       Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ ------------------- 168     Full    222.91M    DISK        00:02:53     20/07/2019 12:15:49         BP Key: 168   Status: AVAILABLE  Compressed: NO  Tag: TAG20190720T120613         Piece Name: /u01/app/oracle/recovery_area/ORCL/7F4405983DB33E47E055FAC8EF8905E8/backupset/2019_07_20/o1_mf_nnndf_TAG20190720T120613_gm6cxov8_.bkp   List of Datafiles in backup set 168   Container ID: 3, PDB Name: ORCLPDB   File LV Type Ckp SCN    Ckp Time            Abs Fuz SCN Sparse Name   ---- -- ---- ---------- ------------------- ----------- ------ ----   9       Full 14693605   20/07/2019 12:13:22              NO    /u01/app/oracle/oradata/orcl/orclpdb/system01.dbf   12      Full 14693605   20/07/2019 12:13:22              NO    /u01/app/oracle/oradata/orcl/orclpdb/users01.dbf  BS Key  Type LV Size       Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ ------------------- 169     Full    204.08M    DISK        00:02:21     20/07/2019 12:17:20         BP Key: 169   Status: AVAILABLE  Compressed: NO  Tag: TAG20190720T120613         Piece Name: /u01/app/oracle/recovery_area/ORCL/8D6E79BBBC2A140CE0531400A8C06C3B/backupset/2019_07_20/o1_mf_nnndf_TAG20190720T120613_gm6d1dhk_.bkp   List of Datafiles in backup set 169   Container ID: 4, PDB Name: HOMOL   File LV Type Ckp SCN    Ckp Time            Abs Fuz SCN Sparse Name   ---- -- ---- ---------- ------------------- ----------- ------ ----   56      Full 14693679   20/07/2019 12:15:52              NO    /u01/app/oracle/oradata/orcl/ORCL/8D6E79BBBC2A140CE0531400A8C06C3B/datafile/o1_mf_system_glh69zz4_.dbf  BS Key  Type LV Size       Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ ------------------- 170     Full    3.07M      DISK        00:02:04     20/07/2019 12:18:00         BP Key: 170   Status: AVAILABLE  Compressed: NO  Tag: TAG20190720T120613         Piece Name: /u01/app/oracle/recovery_area/ORCL/7F4405983DB33E47E055FAC8EF8905E8/backupset/2019_07_20/o1_mf_nnndf_TAG20190720T120613_gm6d4lp2_.bkp   List of Datafiles in backup set 170   Container ID: 3, PDB Name: ORCLPDB   File LV Type Ckp SCN    Ckp Time            Abs Fuz SCN Sparse Name   ---- -- ---- ---------- ------------------- ----------- ------ ----   11      Full 14693696   20/07/2019 12:16:40              NO    /u01/app/oracle/oradata/orcl/orclpdb/undotbs01.dbf   60      Full 14693696   20/07/2019 12:16:40              NO    /u01/app/oracle/product/12.2.0/dbhome_1/dbs/brelele  BS Key  Type LV Size       Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ ------------------- 171     Full    7.98M      DISK        00:00:36     20/07/2019 12:18:13         BP Key: 171   Status: AVAILABLE  Compressed: NO  Tag: TAG20190720T120613         Piece Name: /u01/app/oracle/recovery_area/ORCL/7F4405983DB33E47E055FAC8EF8905E8/backupset/2019_07_20/o1_mf_nnndf_TAG20190720T120613_gm6d5kdw_.bkp   List of Datafiles in backup set 171   Container ID: 3, PDB Name: ORCLPDB   File LV Type Ckp SCN    Ckp Time            Abs Fuz SCN Sparse Name   ---- -- ---- ---------- ------------------- ----------- ------ ----   55      Full 14693724   20/07/2019 12:17:54              NO    /u01/app/oracle/oradata/orcl/ORCL/7F4405983DB33E47E055FAC8EF8905E8/datafile/o1_mf_rman_gldpgddc_.dbf   61      Full 14693724   20/07/2019 12:17:54              NO    /u01/app/oracle/product/12.2.0/dbhome_1/dbs/brelele2  BS Key  Type LV Size       Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ ------------------- 172     Full    37.42M     DISK        00:00:34     20/07/2019 12:18:44         BP Key: 172   Status: AVAILABLE  Compressed: NO  Tag: TAG20190720T120613         Piece Name: /u01/app/oracle/recovery_area/ORCL/7F43A22D9E7528CCE055FAC8EF8905E8/backupset/2019_07_20/o1_mf_nnndf_TAG20190720T120613_gm6d61cl_.bkp   List of Datafiles in backup set 172   Container ID: 2, PDB Name: PDB$  SEED   File LV Type Ckp SCN    Ckp Time            Abs Fuz SCN Sparse Name   ---- -- ---- ---------- ------------------- ----------- ------ ----   8       Full 1441967    12/01/2019 11:41:59              NO    /u01/app/oracle/oradata/orcl/pdbseed/undotbs01.dbf  BS Key  Type LV Size       Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ ------------------- 173     Full    2.57M      DISK        00:00:31     20/07/2019 12:19:01         BP Key: 173   Status: AVAILABLE  Compressed: NO  Tag: TAG20190720T120613         Piece Name: /u01/app/oracle/recovery_area/ORCL/8D6E79BBBC2A140CE0531400A8C06C3B/backupset/2019_07_20/o1_mf_nnndf_TAG20190720T120613_gm6d6nnb_.bkp   List of Datafiles in backup set 173   Container ID: 4, PDB Name: HOMOL   File LV Type Ckp SCN    Ckp Time            Abs Fuz SCN Sparse Name   ---- -- ---- ---------- ------------------- ----------- ------ ----   58      Full 14693749   20/07/2019 12:18:34              NO    /u01/app/oracle/oradata/orcl/ORCL/8D6E79BBBC2A140CE0531400A8C06C3B/datafile/o1_mf_undotbs1_glh6b04c_.dbf  BS Key  Type LV Size       Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ ------------------- 174     Full    1.04M      DISK        00:00:32     20/07/2019 12:19:16         BP Key: 174   Status: AVAILABLE  Compressed: NO  Tag: TAG20190720T120613         Piece Name: /u01/app/oracle/recovery_area/ORCL/8D6E79BBBC2A140CE0531400A8C06C3B/backupset/2019_07_20/o1_mf_nnndf_TAG20190720T120613_gm6d7mhm_.bkp   List of Datafiles in backup set 174   Container ID: 4, PDB Name: HOMOL   File LV Type Ckp SCN    Ckp Time            Abs Fuz SCN Sparse Name   ---- -- ---- ---------- ------------------- ----------- ------ ----   59      Full 14693756   20/07/2019 12:18:51              NO    /u01/app/oracle/oradata/orcl/ORCL/8D6E79BBBC2A140CE0531400A8C06C3B/datafile/o1_mf_users_glh795h1_.dbf  BS Key  Type LV Size       Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ ------------------- 175     Full    16.57M     DISK        00:00:16     20/07/2019 12:19:21         BP Key: 175   Status: AVAILABLE  Compressed: NO  Tag: TAG20190720T120613         Piece Name: /u01/app/oracle/recovery_area/ORCL/backupset/2019_07_20/o1_mf_nnndf_TAG20190720T120613_gm6d7q9r_.bkp   List of Datafiles in backup set 175   File LV Type Ckp SCN    Ckp Time            Abs Fuz SCN Sparse Name   ---- -- ---- ---------- ------------------- ----------- ------ ----   4       Full 14694166   20/07/2019 12:19:15 14694171     NO    /u01/app/oracle/oradata/orcl/undotbs01.dbf   28      Full 14694166   20/07/2019 12:19:15              NO    /u01/app/oracle/oradata/orcl/ORCL/datafile/o1_mf_haha_gb1k1h6b_.dbf  BS Key  Size       Device Type Elapsed Time Completion Time ------- ---------- ----------- ------------ ------------------- 176     4.99M      DISK        00:00:00     20/07/2019 12:19:37         BP Key: 176   Status: AVAILABLE  Compressed: NO  Tag: TAG20190720T121936         Piece Name: /u01/app/oracle/recovery_area/ORCL/backupset/2019_07_20/o1_mf_annnn_TAG20190720T121936_gm6d89jz_.bkp    List of Archived Logs in backup set 176   Thrd Seq     Low SCN    Low Time            Next SCN   Next Time   ---- ------- ---------- ------------------- ---------- ---------   1    59      14693433   20/07/2019 12:06:09 14694370   20/07/2019 12:19:30  BS Key  Type LV Size       Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ ------------------- 177     Full    18.09M     DISK        00:00:05     20/07/2019 12:19:54         BP Key: 177   Status: AVAILABLE  Compressed: NO  Tag: TAG20190720T121948         Piece Name: /u01/app/oracle/recovery_area/ORCL/autobackup/2019_07_20/o1_mf_s_1014121189_gm6d8tj6_.bkp   SPFILE Included: Modification time: 20/07/2019 12:18:10   SPFILE db_unique_name: ORCL   Control File Included: Ckp SCN: 14694951     Ckp time: 20/07/2019 12:19:49 

shouldn’t the rman creates one backupset for one backup and in this backupset include all backup pieces?

Why getData() and toArray() on collection have a different behaviour for EAVs tables such as Product?

 $  collection = $  this->productCollectionFactory->create();  $  collection->addAttributeToSelect('*'); 
  • collection->getData() -> returns only a few data (most of the main table until explicitly provided in addAttributeToSelect('my_attr_code').
  • collection->toArray() -> returns complete data.

This behaviour is same on the Flat tables, but why different on EAV table such as product?

States and behaviour for progress bars embedded in tables

These days it is not uncommon for data tables to contain more complex UI elements (i.e. not just data), with things like pills (or tags), call-to-action buttons, icons, and even graphs & charts (e.g. sparklines) to be embedded.

However, I haven’t actually seen the specific behaviour for these embedded UI elements specified in the context of an child element in a table cell.

So the question is, what happens to a progress bar (and other UI elements) when the table row cycles through different states (e.g. hover-over, active, selected, etc.) and how does the styling and behaviour change compared to when they are outside of a table?

enter image description here

A specific example of this is to consider what happens to a table cell containing a progress bar (which is actually not an uncommon thing to see) if it is selected. Should it be:

  1. Unchanged (even though there might be some contrast issues with the table cell’s selected state).
  2. Modified by making changes to the colour or styling
  3. A custom rule to the behaviour of the table to accommodate the interaction

If you can include any screenshots of actual examples of applications (rather than CodePen or design concepts) that would be very useful for illustrating the answer.

Weird and Inconsistent Behaviour Syncing Books with iTunes

I have spent quite a bit of time debugging this, and still can’t figure it out.

While debugging, I ended up turning off the “Sync Books” option in iTunes. My iTunes sidebar, after clicking on the phone icon in the top left, would look like this,

Screenshot of iTunes Sidebar

except for one thing – every other time I would sync, the “Books” entry in the “Settings” section would be missing. (In order to make the “Books” entry appear or disappear, it was necessary to quit iTunes, and restart it – just leaving iTunes running and syncing again wouldn’t do it.)

I figured out how to make this strange phenomenon stop – I opened the Book app on the phone. Even though “Sync Books” was turned off, I could see all my books. If I set the phone in aeroplane mode, though, I was unable to access them, so I guess they are in iCloud rather than stored locally.

Once I did this, the “Books” entry in the “Settings” section of the sidebar seemed to become permanent. However, there is still bizarre oscillating behaviour. Every other time I run iTunes, if I click on the phone icon, and then the “Books” entry in the “Settings” section, I see this on the right.

Empty book list

So no books at all. Every other time, I see this.

Full book list

That is, the books are all there.

Checking the “Sync books” box launches me into yet another cycle. The first sync seems normal enough, but after that, every time iTunes starts, I get this pop-up window asking me to transfer purchased items from the phone to iTunes.

Transfer purchased items

This window now comes up every time, despite choosing “transfer” the time before. During the sync, 73 books (out of 74) are transferred from the phone to the computer. But it, doesn’t matter, the next time, I am asked again. There is still cyclical behaviour here – every other time, clicking on the “Books” entry in the “Settings” section of the sidebar results in zero books displayed on the right side at the beginning of the sync, and 73 books at the end of the sync. But the other times iTunes is started, there is one book displayed on the right side at the beginning of the sync (the one I was last reading), and 74 books at the end of the sync.

Opening the Books app on the phone, at various points in the cycle, does not seem to change behaviour. Clicking “Don’t Transfer” launches me into another weird alternating cycle, which I can describe further if needed.

What could possibly be going on here? Has anyone seen anything like this, or know how to fix it?

In all cases, the oscillating behaviour occurs when the iTunes program is closed and started again. Just clicking on “Sync” again doesn’t do it.

iPhone 6s plus – iOS 12.3.1 iTunes 12.9.5.5 on recent MacBook Pro

Expected behaviour when adding items to your ‘favourites’

I am tweaking our current user journey for adding specific items to your ‘favourites’ list.

The question is: if the user isn’t logged in when they add an item to their ‘favourites’ – should they be prompted to log in at that point?

Or should they be allowed to add more items until they click checkout and then be prompted to log in then?

I feel it would be less disruptive to what the user expects if they need to log in after clicking ‘Checkout’ then being prompted. But then my concern is if the users don’t click checkout and the session ends. They could potentially lose their items.

Basic Powershell script strange behaviour

I have small script. Which i want test it with “If, else statement”. I have the same value variables but when try to compare it, it gives else condition, but it should give true condition. Below are my vars with results.

$  ASE1=Get-Content -path "C:\Program Files\Kratos\Tools\ASE\cnf\_ASE.cnf" | out-string -Stream | Select-String "VERSION" 

Version 85

$  ASE2=Get-Content -path "C:\ProgramData\Kratos\Tools\NaCl\Files\xASE.cnf"| out-string -Stream | Select-String "VERSION" 

Version 85

if($ ASE1 -eq $ ASE2) { echo “equal”} else { echo “not equal”}

This above small script return me “not equal” condition but in true this vars is equal to each other. Do you know what im doing wrong ?