Strange sudden Change of a Code Snippet’s Behaviour in Google Chrome

I wrote a PHP/MySQL-based private pupil management system which has some odd behaviours since the middle of this summer: While the different display of some elements in their first line (without element:first-line commands in the CSS) is just annoying, function calls don’t work on some pages any more: I use modal dialogs for inputs, called by the link “javascript:showModal(some arguments)” which just loads the proper formular HTML-page by AJAX and then show it within a simple bootstrap modal. On the pupil pages this link works perfectly, on the class pages the identical(!) link suddenly opens a new “about:blank”-tab in the browser (there was no problem before middle of this summer, and the software already runs for a few years).

The only change of the code I made this summer was one “backend database input” (reduce the number of inputs for one specific pupil achievement from 12 options to 4) which should not be able to cause such side effects, especially since even backups from before this summer’s changes (where everything worked perfectly fine) now show the same problems — so the reason should(?) not occur from the code itself … so I’ve no idea where to start some trouble shooting.

Even more interesting: The behaviour described above just occurs in Google Chrome Browser, while everything still works fine in Microsoft Edge. Has anyone an idea what could cause such an interesting behaviour change of identical code snippets in just parts of a website (without having changed them) in just one browser?

Look-up Columns redirecting to folders changed their behaviour

I am using SharePoint Online site.

Some months ago I created a lookup column in document library [A] that referred to another document library [B]. This was the best option I found to be able to refer attachments to each documents in [A], using in [B] a field that is filled only for folders and not for documents.

It was working fine, when clicking on the look-up field, it used to give the possibility of checking the documents directly in a pop-up window or to open the folder in another view.

Since a couple of months this doesn’t work anymore, now when clicking on the look-up field, it opens the “Properties of the folder” (that means just the name of it) and doesn’t show the content of the folder itself.

What’s changed? How can I solve this?

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?