Samsung J7::I have several different “contact” Apps on my phone.. each a different color icon, each called “Contacts”. – which is which?

A long title I know, but if it were shorted, someone trying to help would probably make a wrong assumption without being so specific. I’m assuming that each different “Contact” list application, is associated to different email systems or different services that I use for Email? Every different “Contacts” App wants to control the world by merging into it, every piece of contact information it can find from other similar applications. My problem I don’t know which ICON is from which email vendor. Or otherwise saying: which “Contact” Icon refers to my Google, Yahoo, Microsoft, and Verizon accounts? I would like to standardize on something if I new which Icon belongs to who? For example I have a Red, Blue, and Orange colored Icon on my J7 home screen and don’t know whose belongs to who.

Magento 2 Custom module default.xml CSS not called

I’ve my module files as following


<?xml version="1.0"?> <page xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">     <head>         <css src="Vendor_GeoIp::css/popup.css" />     </head> </page> 

My CSS file at following path


Other code of module is working fine, I cleared cache,s:upgrade,s:s:d many times but it isn’t working.

I can’t find any mistake in above code. What is wrong?

Why is it called network “topology”? Why not network “graph”?

I want to understand why we use the term “network topology” as opposed to “network graph“, or another term, to talk about the structure of networks. I’m working on a network design for a project, and want to make sure I don’t use any terms that I don’t truly understand.

Wikipedia defines network topology as “the arrangement of the various elements (links, nodes, etc.) of a computer network.” This strikes me as interesting, because when I hear the words link and node, I immediately think of graph theory and the objects it is concerned with.

Topology, according to Wikipedia again, is “concerned with the properties of space that are preserved under continuous deformations…” And when you look at the basic examples of topological objects, you see coffee cups and Möbius strips, as opposed to the discrete vertices and edges you see with graph theory.

So why do we refer to networks as having a “topology”?

Why isn’t the access check being called at all?

I have the below code. I have set up the business logic and it works fine in a .module file, but not in an access controller. What am I doing wrong?

// nodeaccess.routing.yml  nodeaccess.people:   path: '/user/{user}/edit'   requirements:     _custom_access: '\Drupal\nodeaccess\Access\NodeaccessCustomAccessCheck::access'  // nodeaccess/src/Access/NodeaccessCustomAccessCheck.php  <?php  namespace Drupal\nodeaccess\Access;  use Drupal\Core\Access\AccessResult; use Drupal\Core\Routing\Access\AccessInterface; use Drupal\Core\Session\AccountInterface; use Drupal\user\Entity\User; use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;  /**  * Class NodeaccessCustomAccessCheck.  *  * @package Drupal\nodeaccess\Access  */ class NodeaccessCustomAccessCheck implements AccessInterface {    /**    * A custom access check.    *    * @param \Drupal\Core\Session\AccountInterface $  account    *   Run access checks for the logged in user.    */   public function access(AccountInterface $  account) {     $  current_user = User::load(\Drupal::currentUser()->id());     $  user = User::load(explode("/", $  _SERVER["REQUEST_URI"])[1]);     if ($  current_user->field_department->target_id != $  user->field_department->target_id) {       throw new AccessDeniedHttpException();     }     return AccessResult::allowed();     }  } 

York Region VIVA bus stop: Was it originally called Scott-Bantry?

I was recently traveling on YRT’s Viva Blue rapid transit buses in the Greater Toronto Area, for the first time in a decade or so. One of the stops announced by the on-board system was Bantry-Scott, named for the two streets that meet Yonge Street there. This wasn’t the order I remembered from my previous visit: I recalled it being Scott-Bantry instead.

I’ve had a look around the internet, and haven’t found anything to corroborate my recollections.

Was this stop called Scott-Bantry circa 2006-2009, or am I simply mis-remembering things?

Excel.exe is still running after called “app.quit”

Excel.exe is still running in Task manager after app.quit. I have tried the following codes:

            wb.Save(); //WB is workbook             wb.Close(true);             wbs.Close();             app.Quit(); //Excel application             Marshal.ReleaseComObject(ws);             Marshal.FinalReleaseComObject(ws);             Marshal.ReleaseComObject(wb);             Marshal.FinalReleaseComObject(wb);             Marshal.ReleaseComObject(wbs);             Marshal.FinalReleaseComObject(wbs);             Marshal.ReleaseComObject(app);             Marshal.FinalReleaseComObject(app);              GC.Collect();             GC.WaitForPendingFinalizers();             GC.Collect();             GC.WaitForPendingFinalizers(); 

Message Reliability By Proxy – What is this called?

One function of message queues is to guarantee that a message will reach its target destination(s). However, there could be another approach to solve the same problem in a different way when full message queuing is not necessary. A proxy server could be set up that takes messages and then proxies the request to the target service. When the target service is not available, or returns specific http responses, the proxy could retry until the target services returns the desired http status.

The idea is pretty simple. If some messaging between systems has become unreliable – especially if the target service is crashing or going offline, you could stick the proxy in the middle without having to change either of the two existing systems except for pointing the first system to the Url of the proxy. It would mean that the message would eventually get delivered to the target system and the calling system would be none the wiser.

What is this pattern called, and are there some configurable example proxy services available to achieve this?

PyTorch – backward() is not called in custom layer

What I am going to do is modifying weight in Conv2d after loss.backward() and before optimizer.step(). One solution is to modify weights in corresponding layers after loss.backward(). I just want to make a custom layer to do this keeping train() function clean. I wrote some code as shown below.

The problem is the backward() of WeightModifier in the first CustomConv is not called (that in second CustomConv is called). I guess the reason is that Pytorch finds that input_tensor does not require gradient and layer WeightModifier does not have any parameters. Is the any method to force or “cheat” Pytorch to execute the backward()?


class CustomConv(nn.Conv2d):     def __init__(self, *kargs, **kwargs):         super(CustomConv, self).__init__(*kargs, **kwargs)      def forward(self, input):         input = WeightModifier(self.weight)(input)         out = nn.functional.conv2d(             input,             self.weight,             None,             self.stride,             self.padding,             self.dilation,             self.groups)         return out  class WeightModifier(torch.autograd.Function):     def __init__(self, weight):         self.weight = weight      def forward(self, input):         return input.clone()      def backward(self, grad):         # Some op to change self.weight.         # In other words, change weights in the following conv2d         # after loss.backward() and before optimizer.step()         return grad.clone()  hidden = CustomConv()(input_tensor)  # backward not called  hidden = CustomConv()(hidden) loss = cal_loss(hidden, gt) optimizer.zero_grad() loss.backward() optimizer.step() 

Why called double centralizer property?

This is related to Lam A first course in non-commutative rings Thm 3.11 of Chpt 1, Sec 3.

Thm 3.11 Let $ R$ be a simple ring, $ 0\neq A\subset R$ is a left ideal. Let $ D=End(_RA)$ (R-linear maps) which acts on $ A$ on the right side. Then the natural map $ f:R\to End(A_D)$ (D-linear maps) is isomorphism by $ r\to r\cdot$ .

Then the book comments this property of $ _RA$ is referred as double centralizer property.

$ \textbf{Q:}$ Why is this called double centralizer?