Why check your email in haveibeenpawned rather than regularly changing your password regardless of any leaks?

There’s a lot of news right now about haveibeenpawned but I don’t understand why people need a service like that in first place. If you’re a security concious user, you’d change your passwords regularly on any website that matters (banking, email, paid services) and thus leaks would not affect you in the first place.

So why are people so interested in using haveibeenpawned? Why not follow the right security practices regardless of any leaks?

How to prevent series from changing color when series are removed from the chart/graph?

I have a graph, similar to the one in this gif:


When I uncheck different series, removing them from the data that is then read by the graph, the colors shift. I believe the issue is that the color corresponds to the position in which the graph reads the data, not the actual data itself. Is there any way to fix this? Or perhaps a workaround?

Thank you for the help.

Reducing a graph without changing its chromatic number

Does reducing a graph (removing or replacing vertices or edges) without changing its chromatic number has a specific name?

Take this cactus graph as an example:

a cactus graph

The edges with vertex of degree 1 could be removed without affecting the vertex chromatic number. I think something similar should be possible with cycles e.g. removing the two vertices in the bottom of the cactus should not affect its chromatic number.

Are there polynomial algorithms that do that? I would prefer not to reinvent the wheel.

My goal is to simplify graphs before feeding them into other algorithms.

I will also appreciate references to relevant literature. Thank you!

Changing ‘#view_mode’ in content type’s render array

I have a content type in Drupal 8 project that has image, name, info and body field as a default display, and image,name and information as a teaser display. I am able to display this content type with teaser view at the page, but right under that i would like to get the default display along with body field so i can create a bootstrap modal with that.

I am using hook_node_view in the module level to change the #view_mode of that render array to ‘full’ instead of ‘teaser’.

function team_bio_node_view(array &$  build, \Drupal\Core\Entity\EntityInterface $  entity, \Drupal\Core\Entity\Display\EntityViewDisplayInterface $  display, $  view_mode) {  if($  entity->bundle() == 'about_us'){  if($  view_mode == 'full'){   if($  display->getComponent('field_team_bio')){     $  build['full_view'] =  $  build['field_team_bio'];      $  build['full_view'][] = array(        'full_view' =>array(          '0'=>array(             '#view_mode'=>'full'          ),          '#weight'=>'103'        )     );     kint($  build);    }  } } } 

i can display the content type right under teaser views, but i can’t change the view_mode to full. This is what i see when i kint($ build):

enter image description here

Current contents have name like ‘0’,’1′,’2′,’3′,’4′, and they have the view mode that are ‘teaser’ but i dont how to pass ‘view_mode’ to ‘full’in render array, I am not sure if there is specific name for that or not. Trying this:

     $  build['full_view'][] = array(        'full_view' =>array(          '0'=>array(             '#view_mode'=>'full'          ) 

didnt change the view_mode neither. So my question: What is the best way to change these view modes to full for the contents? Should I search these numeric keys in the array and pass them to another array then change view_mode like that? Or is there an easier way to approach the problem?

Post not redirecting to non www after changing from www

Recently I changed my domain from www to non-www, still Post accessing using www. But showing blank page, what to do ? So that all post redirect to non-www. I did it through cpanel, after that everything is fine except 12-15 post not redirecting, still accessing through www and showing blank page, it’s only 12-15 post among 90 post, why so, and how to solve this, thanks. Also used redirect plugin, rank math SEO plugin redirect module.

Changing width of integration

For $ F: \mathbb{R} \to \mathbb{R}$ and $ w \in \mathbb{R}$ , define $ g_w(a) = f(a + w) – f(a)$ .

Given $ g_1$ (and not $ F$ ), how can we compute $ g_w$ for other $ w$ ?

We can assume $ F$ is well behaved: $ n$ times differentiable for your favorite $ n$ , with all derivatives bounded.

In my case, $ F$ is the indefinite integral of another function, $ f$ , so $ g$ is the definite integral, and I’m trying to compute the definite integral for other widths, hence the title.

changing and deleting files and directories from hard was connected to solaris 9 system/computer

I have files and directories in a IDE hard disk was installed in solaris9 computer. I have to delete and copy to that hard some files and directories to it. but all I can do it is to read and copy from it to my computer. I understood that it is a permissions issue, but I don’t know how to overcome it.

  • I use: kubuntu 18.10. I could attach the hard and see the contents.
  • I tried to open krusader as root and then tried to delete or rename and copy to the hard with no luck.
  • I also tried to change the permissions with pcManfm file manager

Could any one help with bit detailed steps cause I’m not very familiar with unix or linux commands. If it helps I tried the command “fdisk -l” :

~$   sudo fdisk -l /dev/sdb [sudo] password for inspiron:  Disk /dev/sdb: 301.7 GiB, 323928170496 bytes, 632672208 sectors Geometry: 16 heads, 255 sectors/track, 57459 cylinders Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: sun  Device        Start       End   Sectors   Size Id Type       Flags /dev/sdb1  20971200  41942399  20971200    10G  2 SunOS root       /dev/sdb2         0  20971199  20971200    10G  3 SunOS swap    u  /dev/sdb3         0 234432719 234432720 111.8G  5 Whole disk       /dev/sdb7  41942400  42023999     81600  39.9M  0 Unassigned       /dev/sdb8  42024000 234432719 192408720  91.8G  8 SunOS home       

Partition table entries are not in disk order.

The one I want to work on is sdb8. Many Thanks