When replacing a light switch and fixture, I noticed there were only 2 wires...red/black connected to the switch. The new fixture has a black/white/ground. What is the proper way of connecting? The wires are the original red/black that went to the single pole switch. The fixture is a new light attaching to wall.
I'm installing a brand new motion activated security light to an existing box on my garage. After removing the old light, I notice it only has white/black wiring while the new light fixture has of course white/black/green (ground) wires to attach. What do I do if no ground wire is available with the old box?
How to list files installed by a snap package? After a snap has been installed with sudo snap install [package] how can I list the files which have been installed by the snap? Is Angular Momentum truly fundamental? This may seem like a slightly trite question, but it is one that has long intrigued me.  Since I formally learned classical (Newtonian) mechanics, it has often struck me that angular momentum (and generally rotational dynamics) can be fully derived from normal (linear) momentum and dynamics. Simply by considering circular motion of a point mass and introducing new quantities, it seems one can describe and explain angular momentum fully without any new postulates. In this sense, I am lead to believe only ordinary momentum and dynamics are fundamental to mechanics, with rotational stuff effectively being a corollary.  Then at a later point I learned quantum mechanics. Alright, so orbital angular momentum does not really disturb my picture of the origin/fundamentality, but when we consider the concept of spin, this introduces a problem in this proposed (philosophical) understanding. Spin is apparently intrinsic angular momentum; that is, it applies to a point particle. Something can possess angular momentum that is not actually moving/rotating - a concept that does not exist in classical mechanics! Does this imply that angular momentum is in fact a fundamental quantity, intrinsic to the universe in some sense?  It somewhat bothers me that that fundamental particles such as electrons and quarks can possess their own angular momentum (spin), when otherwise angular momentum/rotational dynamics would fall out quite naturally from normal (linear) mechanics. There are of course some fringe theories that propose that even these so-called fundamental particles are composite, but at the moment physicists widely accept the concept of intrinsic angular momentum. In any case, can this dilemma be resolved, or do we simply have to extend our framework of fundamental quantities? What is the proof that the total number of subsets of a set is $2^n$? What is the proof that given a set of $n$ elements there are $2^n$ possible subsets (including the empty-set and the original set). If $f:[0,1]\to\mathbb R$ is continuous and $\int_0^x f(t)dt = ∫_x^1f(t)dt$ then prove that $f(x)=0$.  I suppose that $f(x)$ isn't zero, set $g(x)= \int_y^xf(t)dt$ with $y\in[0,1]$ and use Bolzano but I don't know if it's right. Is a droid a ‘he/she’ or an ‘it’? Inspired by  question.  Are droids in the Star Wars universe referred to with gendered pronouns (i.e. he or she), or are they referred to as objects (i.e. it)? Rails Previous Sunday in Relation to Any DateTime What are the most commonly used and basic Apache htaccess redirects? This question is here so we can offer users who are looking for information on how to make one or more common or basic redirects in Apache using the htaccess file. All future questions pertaining to finding information that is that is covered by the question should be closed as a duplication of this question. .  Whats the point in this question? The idea while not perfect is catch the most commonly asked questions regarding redirects using the  htaccess on the Apache platform either on  some type of lamp or a live server. The type of answers should be generally those that you could imagine are used by 100,000’s of sites world-wide and are constantly asked here at Pro Webmasters repeatedly over and over in various forms.  A few examples of the type of answers we are looking for:   How can I redirect non-www to www? How can I redirect a sub domain to the main domain? How can I redirect a sub folder from domain to a root or a subdomain?  How can I redirect an old URL to a new URL?   A few examples of the types of answers that we are not looking for:   Answers that do not involve a redirect. Any answers relating to NGinx, IIS or any other non-Apache platform. Answers that involve custom and complex string or query removals.   Resources for Advanced to Complex Mod_Rewrite Rules:      Please note: that this question is still in construction and may need some refining either by myself or a real moderator of Pro Webmasters, if you have any concerns or questions . Atiyah-Macdonald, Exercise 5.4 I was having some trouble with the following exercise from Atiyah-Macdonald.     Let $A$ be a subring of $B$ such that $B$ is integral over $A$. Let $\mathfrak{n}$ be a maximal ideal of $B$ and let $\mathfrak{m}=\mathfrak{n} \cap A$ be the corresponding maximal ideal of $A$. Is $B_{\mathfrak{n}}$ integral over $A_{\mathfrak{m}}$?   The book gives a hint which serves as a counter-example. Consider the subring $k[x^{2}-1]$ of $k[x]$ where $k$ is a field, and let $\mathfrak{n}=(x-1)$. I am trying to show that $1/(x+1)$ could not be integral over $k[x^{2}-1]_{\mathfrak{n}^{c}}$.  I have understood why this situation serves as a counterexample. But I am essentially stuck at trying to draw a contradiction. A hint or any help would be great. Can quarks be considered real and elementary? Pre-image of a measurable set A is always measurable? Let $f$ be a continuous function on a set $E$.  Is it always true that $f^{-1}(A)$ is always measurable if $A$ is measurable?  I say no.  We know that $\bar{\psi(x)}:=\frac{\phi(x)+x}{2}$ where $\phi$ is the Cantor (or Cantor-Lebesgue) function and $\bar{\psi}:[0,1] \rightarrow [0,1]$.  We know this function maps a measurable subset of $C$ (the Cantor set) into a non-measurable set $W$.  A few observations about $\bar{\psi(x)}$.  It is strictly increasing and continuous, so it has a continuous inverse $\bar{\psi(x)}^{-1}$.  Thus $\bar{\psi(x)}^{-1}(W)=c \subset C$; that is, $\bar{\psi(x)}^{-1}(W)$ is non-measurable, but c is.  Is this correct? Reputation block layout after earning new privilege On the mobile web after new privilege is earned, reputation block contains some design issues:   no margins poor text color inside bar         By tapping on "track the next one" link, page have been refreshed:   no margins empty block in the middle obscure content         Only after manual refreshing, page looks fine again:        It is hard to reproduce because you need to earn next privilege which takes a lot of time. But I believe it's no too hard for developers :) What lens characteristics are important in star photography? If $\sum{a_n}$ converges does that imply that $\sum{\frac{a_n}{n}}$ converges? I know if $\sum{a_n}$ converges absolutely then $\sum{\frac{a_n}{n}}$ converges since $0\le \frac{|a_n|}{n} \le |a_n| $ for all $n$ so it converges absolutely by the basic comparison test and therefore converges. However, I cannot prove the convergence of $\sum \frac{a_n}{n}$ if $\sum{a_n}$ converges but not absolutely even though I suspect it to be true. Can you give me a proof or a counterexample for this? How to remove Apple System Apps How can I delete Apple OS X application such as Photos, iPhoto, and others that I never use? Set the location in iPhone Simulator I'm a bit overwhelmed by the available options in regards to the three major photo editing apps from Adobe.  Does anyone know of an article or site that lists the features of Lightroom, PS Elements, and PS, side by side?  I know that Lightroom revolves around edits and workflow, and that PS is the big kahuna of image editing.  Where does Elements fit in to this understanding? What is the best base to use? After the top bar changes in the , when a non logged-in user click the Sign Up button, instead of navigating to the corresponding page it displays the openid related code in the screen.  Screenshots for reference: How disk space is used on Android device? I have critical low storage level and can't understand what takes much of it and how that's possible that the installed applications can use 7 GB? I only use a few social media clients without any games or soft like Photoshop. Also on the second screenshot it indicates that the apps are using just 1.13 GB and so I can't understand the situation. Also what is the "Other"? I just moved to a new computer: Windows 10 with XAMPP. As far as I know I set everything up the same as it was on my old Windows 7 computer. But now, for some reason, much of the time when I run drush cc all or run update.php, the database gets corrupted. Most frequently, some cache tables' *.idb files (tablespaces) are deleted from my mysql directory, which makes those tables appear as "in use" in phpMyAdmin and prevents them from being edited or emptied. They are always cache tables and never tables that actually get modified by my update hooks. Restoring the database is the only way to fix it then. This is a mature site that I've been working on for a long time, and have never seen this until the new computer. What's happening here?  A sample error message when using update.php, caused by a missing *.idb file:  PDOException: SQLSTATE[HY000]: General error: 1812 Tablespace is missing for table '(null)': DELETE FROM {cache_field} WHERE (cid = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] =&gt; field:message_type:6 ) in cache_clear_all() (line 168 of C:\&lt;path&gt;\includes\cache.inc).   My most recent drush cc all error message, which Google has never even heard of, was:  exception 'PDOException' with message 'SQLSTATE[HY000]: General      [error] error: 1030 Got error -1 "Internal error &lt; 0 (Not system error)" from storage engine InnoDB'