Different behaviors of 'is' operator when comparing variables with same int values
Is there a difference between "==" and "is"?
I have a local user on my laptop. My company is migrating to a domain setup and I want to migrate the local user to a domain user, with all the settings (desktop, Start menu, programs) intact. How can I do that?  Also, is it possible to have a local user with the same settings as the domain, for when I'm working on my laptop while not connected to the domain? I have added an mp3 file as a static resource, can someone please help me to call that resource in the lightning component so when I hit the button it will play that static resource  as per the Salesforce documentation I have tried below but instead of playing the sound it is displaying the message. I was doing some re-tagging and I noticed that the automatically generated revision comment says that I edited the post body where I only edited the tags. Whenever both my roommate and I use the wifi in a certain room in our apartment, it slows dramatically for me. It doesn't slow for him. If he uses it in another room, it's fine; if I use it in another room together with him, it's fine; it's just in this particular room. Does anyone know of a reason this could be? HP PSC 1410 all scanner's images are black I have a HP PSC 1410 printer with scanner inside.  I've been scanning documents and images with it for the last couple of years.  Recently my scanner has stopped performing as excepted and i can't scan or copy images\documents.  My problem is that every images\document i'm trying to scan - the result from the printer is a black page.  I've been googling about this issue and couldn't find any helpful stuff beside replacing the whole printer - which is something i'm trying to avoid.  Any ideas ? I've read something about the shipping lock of the scanner but couldn't find any information about how to check it.. Is there a recursive version of the dict.get() built-in? Intuition on proof of Cauchy Schwarz inequality To prove Cauchy Schwarz inequality for two vectors $x$ and $y$ we take the inner product of $w$ and $w$ where $w=y-kx$ where $k=\frac{(x,y)}{|x|^2}$ ($(x,y)$ is the inner product of $x$ and $y$) and use the fact that $(w,w) \ge0$ . I want to know the intuition behind this selection. I know that if we assume this we will be able to prove the theorem, but the intuition is not clear to me. Does the alarm work when my phone is turned off? proof of functional completeness of logical operators CMake & CTest : make test doesn't build tests Existence of $f'\in F$ such that $f^{[G:F]}=(f')^n$ for finite extension $F\subset G$ Let $F$ be a field and $u\in F$. Further, let $F\subset G$ be a finite extension and $v\in G$ such that $v^n=u$ for $n&gt;0$.     How would I show that there exists a $\tilde{u}\in F$ such that $u^{[G:F]}=(\tilde{u})^n$?   My first thought was to use the norm map $N_{G/F}(x)=\Pi_{\sigma\in X(G/F)}\sigma(x)$, where $X(G/F)$ is the fundamental set for $F\subset G$. However, I wouldn't know how to continue on this path. Valid characters in a Java class name What characters are valid in a Java class name? What other rules govern Java class names (for instance, Java class names cannot begin with a number)? Where can I find information about ubuntu compatible or certified hardware/PC models? Problem with defining shortcuts for TikZ matrices For  I wanted to define a shortcut for creating a matrix inside a tikzpicture. As a minimal example, consider  \newcommand\mymatrix[1]{     \begin{tikzpicture}         \matrix[matrix of math nodes] {#1};     \end{tikzpicture}% }   which would then be used as  \mymatrix{     a &amp; b \\     e &amp; f \\ }   But LaTeX complains about Package pgfbasematrix Error: Single ampersand used with wrong catcode at the line with the closing brace of \amatrix{}. Why does it do that and how can I avoid it? Strange arrow mark with TikZ edge and anchors. When I draw an edge between two nodes with anchors and globally set option [-&gt;], I get an additional arrow tip symbol at the beginning of the last edge in the path. For example in  \documentclass{article} \usepackage{tikz}  \begin{document} \begin{tikzpicture}     \node (A) at (0,0) {$A$};     \node (B) at (1,0) {$B$};      \draw[-&gt;] (A.north east) edge (B.north west);      \draw (A.south east) edge[-&gt;] (B.south west); \end{tikzpicture} \end{document}   the first \draw command produces incorrect output, while the second produces correct output:    Am I doing something wrong, or is this a bug in TikZ? Windows Explorer sort method I'm looking for an algorithm that sorts strings similar to the way files (and folders) are sorted in Windows Explorer. It seems that numeric values in strings are taken into account when sorted which results in something like  name 1, name 2, name 10   instead of  name 1, name 10, name 2   which you get with a regular string comparison.  I was about to start writing this myself but wanted to check if anyone had done this before and was willing to share some code or insights. The way I would approach this would be to add leading zeros to the numeric values in the name before comparing them. This would result in something like  name 00001, name 00010, name 00002   which when sorted with a regular string sort would give me the correct result.  Any ideas? Oxford Comma Conventions What can primes, except 2, 3, and 5, be congruent to $\pmod {30}$? After some trials, I found out that a prime $p \gt 5$ is congruent to $q\pmod{30}$, where $q$ is also a prime, and $1 \le q \lt 30 \;$ (i.e.  $p \equiv q\pmod{30}.$  Is there a way to write a formal proof to show this?  Is that an acceptable answer. For the past couple of weeks, a process identified as usernoted appeared to "take over" my machine after a few hours of use, eating over 99% of available CPU.  Force quitting the process doesn't help; only a system restart puts usernoted to sleep for a while.  What is this process and how do I get it under control?  I am running OS X 10.10.5 (build 14F1021). Is there a Pythonic way to have only one instance of a program running?   The only reasonable solution I've come up with is trying to run it as a server on some port, then second program trying to bind to same port - fails. But it's not really a great idea, maybe there's something more lightweight than this?    (Take into consideration that program is expected to fail sometimes, i.e. segfault - so things like "lock file" won't work)