I need to use filtered subscription using lightning:empAPI for Push Topic notifications. But it does not work with Id filter after records page refresh (F5) whereas when it subscribes on the first place the notifications are coming in. Does it mean that only one active filtered subscription has to exist for the record and user session? If so how can I unsubscribe prior the component is reloaded and new subscription is initiated during refresh (F5).                       &lt;aura:attribute name="channel" type="String" default="{!'/topic/QuoteProcessing?Id=' + v.recordId}"/&gt; &lt;!--&lt;aura:attribute name="channel" type="String" default="/topic/QuoteProcessing"/&gt;--&gt; &lt;aura:handler name="init" value="{!this}" action="{!c.doInit}" closable="false"/&gt;  // doInit just executes helper.subscribe helper.subscribe(component, event);  // helper.subscribe subscribe : function(component, event) {         const empApi = component.find('empApi');         const channel = component.get('v.channel');         const replayId = -1;         //var Qchannel = '/topic/QuoteProcessing?Id='+component.get('v.recordId');         // Subscribe to an event         //console.log('Qchannel '+Qchannel);         empApi.subscribe(channel, replayId, $A.getCallback(eventReceived =&gt; {             console.log('Received event ', JSON.stringify(eventReceived));               $A.get('e.force:refreshView').fire();               var toastEvent = $A.get("e.force:showToast");             toastEvent.setParams({             mode : "dismissable",                 message : "Processing  - "+eventReceived.data.sobject.ProcessingStatus__c,                 type : "info",                 duration : 8000             });             toastEvent.fire();            }))         .then(subscription =&gt; {             console.log('Subscribed to channel ', subscription.channel);             console.log('subscription ', JSON.stringify(subscription));             component.set('v.subscription', subscription);         });             empApi.onError($A.getCallback(error =&gt; {             console.log('EMP API error from subscribe: '+ JSON.stringify(error));         }));        }   PushTopic query contains Id and the field I am changing in SELECT clause. Subscription is established but notifications are not coming.
I have a very simple component:  PushTopicTest.cmp &lt;aura:component implements="flexipage:availableForAllPageTypes" access="global"&gt;     &lt;lightning:empApi aura:id="empApi"/&gt;     &lt;aura:handler name="init" value="{!this}" action="{!c.onInit}"/&gt; &lt;/aura:component&gt;    PushTopicTestController.js ({     onInit: function(component, event, helper) {         var empApi = component.find("empApi");         empApi.setDebugFlag(true);         empApi.subscribe("/topic/AccountChanges?Id=0011t0000033C9QAAU", -1, function(message) {             console.log("Event Received : " + JSON.stringify(message));         });     } })   I also have PushTopic created like this:   What I am trying to do, is to only receive events for specific record Id. Based on documentation this should work: "/topic/AccountChanges?Id=0011t0000033C9QAAU", but it doesn't.   "/topic/AccountChanges" works though.  I've tried Id='0011t0000033C9QAAU' aswell, but no luck.  Do you know if it is possible at all?
Finding total after percentage has been used? Tried my best with the title. Ok, earlier while I was on break from work (I have low level math, and want to be more fond of mathematics)  I work retail, and 20% of taxes are taken out, and I am wanting to find out how much I made before 20% is taken out.  So I did some scribbling, and this is without googling so please be gentle. but lets say I make 2000 dollars per paycheck, so to see how much money I get after taxes I do 2000 * .8 which gives me 1600. I can also do 2000 * .2 which gives me 400 and then do 2000 - 400 (imo I don't like this way since I have a extra unnecessary step)  Anyways, I was pondering how to reverse that to have the answer be 2000, and what I did was 1600 * 1.20 (120%) which gave me 1920, and I thought that is odd so I did 1600 * 1.25 and answer was 2000 exact.  My question is why did I have to add extra 5% (25%) to get my answer? I am sure I did something wrong, and I fairly confident the formula I am using is a big no no.  edit; wow thank you all for your detailed answers. I am starting to like mathematics more and more. Schur's theorem and numbers Can you give a proof for bounds of  $S(r)$? Please suggest me articles to have better idea of Schur's theorem (Ramsey theory). Can I store the .git folder outside the files I want tracked? I have an unusual idea to use git as a backup system. So let's say I have a directory ./backup/myfiles and I want to back that up using git. To keep things clean I don't want to have a .git directory in the myfiles folder, so I thought I could create ./backup/git_repos/myfiles. From looking at the git docs, I've tried doing this:  $ cd backup/myfiles $ mkdir ../git_repos/myfiles $ git --git-dir=../git_repos/myfiles init Initialized empty Git repository in backup/git_repos/myfiles/ $ git --git-dir="../git_repos/myfiles/" add foo fatal: pathspec 'foo' did not match any files   You can see the error message I get there. What am I doing wrong? I would like to know if anyone can help me with installing Ubuntu on VirtualBox When conducting multiple regression, when should you center your predictor variables & when should you standardize them? In some literature, I have read that a regression with multiple explanatory variables, if in different units, needed to be standardized.  (Standardizing consists in subtracting the mean and dividing by the standard deviation.)  In which other cases do I need to standardize my data?  Are there cases in which I should only center my data (i.e., without dividing by standard deviation)? How to move boot and root partitions to another drive I have two drives on my computer that have the following configuration:  Drive 1: 160GB, /home Drive 2: 40GB, /boot and /   Unfortunately, drive 2 seems to be dying, because trying to write to it is giving me errors, and checking out the SMART settings shows a sad state of affairs.  I have plenty of space on Drive 1, so what I'd like to do is move the / and /boot partitions to it, remove Drive 2 from the system, replace Drive 2 with a new drive, then reverse the process.  I imagine I need to do some updating to grub, and I need to move some things around, but I'm pretty baffled how to exactly go about this. Since this is my main computer, I want to be careful not to mess things up so I can't boot. How are echo and print different in PHP? Possible Duplicate:          Is there any major and fundamental difference between these two functions in PHP? Can you Start Skyrim 'silent' without the launcher showing up? Understanding how references and labels work I'm trying to understand why I cannot effectively reference figures or equations that I have defined with labels.  For example:  \begin{figure}   \label{fig:area_Treasuries}   \caption{Treasuries as a portion of total financial flows.}   \centering   \includegraphics[width=0.75\textwidth]{graphs/Area_Treasuries.png} \end{figure}  \paragraph{} Figure~\ref{fig:area_Treasuries} presents Treasuries (both flowing into and out of the United States) as a share of total financial flows.  From 1985 to 2010, Treasuries account for, on average, 53.2\% of total financial flows.   With the above code, I get this warning:      LaTeX Warning: Reference `fig:area_Treasuries' on page 37 undefined on   input line 477.   The result is "Figure ?? presents Treasuries..."  Why is this happening?  Related, I don't understand why I can't reference, say, an equation before (I mean physically above in the text) the actual equation.  Isn't this what compiling multiple times and cross references is supposed to take care of? Let $P$ denote the quotient space obtained by the action of $\mathbb{Z}\backslash2\mathbb{Z}$ by the antipodal map $z\mapsto\frac{1}{z}$ on the riemann sphere $\hat{\mathbb{C}}$ (identified here with $\mathbb{C}\cup\left\{\infty\right\}$). I identify $P$ with the set:  $\left\{ z\in\mathbb{C}:\left|z\right|&lt;1\right\} \cup\left\{ e^{it}:0\leq t\leq\pi\right\} $   that is to say, I use elements of the above set as the representatives for the equivalence classes in $P$. I am looking for formula for a function $f:P\times P\rightarrow[0,\infty)$ such that $f$ is a metric on $P$. Specifically, I would like a formula for $f$ that I can evaluate by plugging in representative elements in the above set (or something like that, more or less).  Thanks in advance.  Edit: forgive me for sounding desperate, but I cannot make due with an explanation of how to obtain such a formula. I want the formula.   An analogy for you if I have yet to make myself clear: suppose I was asking for the area of a square with side length $s$. The answers I have received so far for my question are akin to saying "multiply $s$ by itself" or "use the area formula for a square". The answer I am looking for is akin to saying "$s^{2}$". I need the formula. And please, no expressions with differentials, nor matrices, or any of that. I need to know how to compute the metric by using the complex numbers in the indicated set that I have identified with $P$. /oracle/GR1/121/bin/sqlplus / as sysdba &lt;&lt;EOF &gt;&gt; $LOGFILE whenever sqlerror exit sql.sqlcode; set echo on; set serveroutput on; STARTUP; EXIT EOF   Already tried it with the path, but it hasn't worked. How to divide LaTeX table cells vertically? I want my table to have separated cells. Basically double lines but I can't figure how to have horizontal lines disconnected. I tried \hline and \cline but those connect too.  This is best I can do:    This is how I want my table to look:   \begin{tabular}{|c||c||c||c|}   \hline   \multicolumn{2}{|c||}{First Cell}&amp;   Second Cell&amp;   Third Cell\\   \hline   \hline   \begin{tabular}{@{}l@{}} Data\\ Data\\ Data\\   \end{tabular}&amp;   \begin{tabular}{@{}l@{}}     Data\\     Data\\     Data\\   \end{tabular}&amp;   \begin{tabular}{@{}l@{}}     Data\\     Data\\     Data\\   \end{tabular}&amp;   \begin{tabular}{@{}l@{}}     Data\\     Data\\     Data\\   \end{tabular}\\    \hline  \end{tabular} Assume that $M$ and $N$ are two finitely generated $R$-modules. Then $\operatorname{Hom}_{R}(M,N)$ is a finitely generated $\mathbb Z$-module and/or $R$-module (in this case, assume that $R$ is commutative)?   Note that $R$ is not Noetherian ring. Is there any counterexample (for any cases)? How to use Launchctl for schedule application I try to work with Launchctl and have a question:  How can I set up an application to run in a few minutes using Launchctl? (for example, open the program MyApp.app with arguments "hello" "world" Every 10 minutes)  I know that it can easily be done by creating Launch Agent, I looking for a way to do it using Launchctl directly to programmatically. Motivation for Napier's Logarithms In the wikipedia article on logarithms, I am clueless about the approach and motivation for the following computations done by Napier (and the mysterious appearance of Euler's number) in this . Please help me understand:       By repeated subtractions Napier   calculated $10^7(1 − 10^{−7})^L$ for L   ranging from 1 to 100. The result for   $L=100$ is approximately $0.99999 = 1  − 10^{-5}$. Napier then calculated the   products of these numbers with $10^7(1  − 10^{−5})^L$ for L from 1 to 50, and   did similarly with $0.9995 ≈ (1 −  10^{−5})^{20}$ and $0.99 ≈ 0.995^{20}$.   These computations, which occupied 20   years, allowed him to give, for any   number ''N'' from 5 to 10 million, the   number ''L'' that solves the equation      $$N=10^7 {(1-10^{-7})}^L$$      In modern notation, the relation to   natural logarithms is:      $$L = \log_{(1-10^{-7})} \!\left(  \frac{N}{10^7} \right) \approx 10^7  \log_{ \frac{1}{e}} \!\left(  \frac{N}{10^7} \right) = -10^7 \log_e  \!\left( \frac{N}{10^7} \right)$$      where the very close approximation   corresponds to the observation that      $${(1-10^{-7})}^{10^7} \approx  \frac{1}{e}. $$   I understand the computations, but I don't know what's going on. Forgot to submit consumption tax (GST) declaration form upon exiting Tokyo Why is asymmetric cryptography bad for huge data? I've been told that asymmetric cryptography requires that the message to be encrypted be smaller than its key length. Why is this?  I know about hybrid encryption, which . But I still want to know why public-key cryptography needs the data to be shorter than the key length. What is the difference between == and equals() in Java? Pages: How to put a word between horizontal rules How can I make something that looks like this?  --------   Text   ---------  where the horizontal rules extend to the margin on either side? I need a counsel about my websites' domain.  Let's say I have just bought two domains: xyz.com and xyzphotography.com.  As we can see, the first one is shorter but way less meaningful than the second one. The second one contains a photography keyword but it's longer.  I have only one website which is my photography portfolio. Can you advise me how to set those domains to make it all as SEO-friendly as possible? Which one should be the main one, does the rest should work on their own or have some kind of SEO-friendly redirect to the main domain?