I have multiple outlets in my room where the top plug on the outlet is controlled by a light switch. My objective is simply to make it so that these top plugs are always hot, regardless of the position of the light switch. After turning off the breaker, testing the outlet, and opening the outlet, the job appeared pretty simple: I have the expected ground wire near the bottom and two white wires connected to the left side of the outlet under screws (and connected together by an unbroken brass/copper tab), and on the right side there was a red wire connected to the top screw and a black wire connected to the bottom screw (but the brass/copper tab on this side has been intentionally broken, presumably to allow them to operate independently of each other). Since the top plug is connected to the red wire, and the top plug is the one that's controlled by the light switch, my instinct was that the red wire was my culprit. Therefore, my goal was to remove the red wire and have only black wires going to the right side:  To confirm this hypothesis, I opened up an adjacent full-hot outlet. As I suspected, no red wires were attached, only two white, two black, and the ground (green).  The electrician seemed to make things easy for me. There were two caps, one red and one black. The red had three wires terminating in the cap, one of which was very short (it was this short wire that was connected to the outlet). I just removed this short wire, and left the other two wound together and in the cap.  Similarly, there were three black wires terminating in the cap, one of which was very short (again, the short wire was the one connected to the outlet). I removed the short wire and the cap completely, and just took both of the other two wires and attached them to both of the (newly available) screws.  After completing the wiring, I turned the breaker back on. Nothing alarming occurred (and the breaker didn't trip or anything), but now all of the half-hot outlets in my room are completely non-functional. In fact, the light/fan that were also controlled by other switches in the room is also not working. The other outlets and lights in the room are working normally. My only guess is that I need to get an unbroken brass/copper tab to replace the broken one on the outlet. This is my guess because the adjacent full-hot outlet had an unbroken one, which I saw when I opened it up as a reference. I was very careful to make sure that screws were fully screwed in to prevent a wire from popping out and was careful that uninsulated ground wasn't touching any uninsulated hot (which I imagine would have caused an immediate short/breaker flip if it had).
In my bedroom the bottom half of all receptacles are controlled by one switch. Is it possible to have just one receptacle with top and bottom hot all the time?  The top half is hot all the time the bottom half is controlled by one switch.  Keep in mind there are six other receptacles in this room that are the same way controlled by the same switch. When I took the receptacle out the right side tab had been removed.  The top right screw had a black wire, the bottom right had a red wire, the top and bottom left screws had separate white wires.  I changed the receptacle out as suggested, I capped off the red wire and I capped off the white wire that was attached to the bottom left screw. I attached the other white wire to the top left screw and attached the black wire to the top right screw. I now have none of the receptacles working at all. What did I do wrong?
What does the term "BODMAS" mean? What is BODMAS and why is it useful in programming? Does this email mean that I have been granted the visa? I received the following email this morning. Does it mean that my visa has been granted?  UK Visas &amp; Immigration has now assessed your UK visa application and made a decision. Your documents and the decision will be sent back to either the UK Visa Application Centre where you applied, where we will contact you by email over the next few days to collect them, or if you are using the courier return service, will be sent directly back to the address provided. Please note that TLScontact does not know the outcome of the assessment and has played no role in the decision-making process. Kind regards, TLScontact UK VIsas &amp; Immigration Warning: Total photoshop newb!  I recently got a cool image of my fiancee and I holding hands and showing off her engagment ring. The backdrop is the beach:    I tried to trace an image using a combo of the laso and magic wand tools to select my target. Then I used that to pull out the target as another layer.  I then pasted in a background gradient.     Ended up with a really lame photoshoped looking picture. Notice the white lines where I didn't get the arms close enough and the choppy spots where I got too close.    So what's my main problem here?   Is their a way to bet a better cutout? Is their a blending tool that will make the background look more natural? both   I tried a dozen or so tutorials I found in google searches but they just don't blend these types of images together in any of them. Thanks in advance. I attended a business meeting in the Midwest and one of our clients took our management team and a few other business partners to dinner at an awesome Mexican restaurant. When the appetizers were served I commented that it was a wonderful presentation and that everything looked very fresh, including the avocado slices.   Speaking to the woman seated across from me I said that even though I use a good amount of lemon juice, whenever I prepare avocados they still turned dark pretty quickly. This happens whether they are sliced, used in guacamole, etc. She responded that the secret is to use lime juice. She proceeded to tell me that she was born and raised in Central America and that it is customary there to use fresh limes or juice rather than lemon.  I have tried it and lime seems to work much better than lemon, so it would stand to reason that they are more acidic. However, I never thought there was that much difference. So, on to the questions.  Are limes more acidic than lemons? Are there any other differences in their properties that could make a difference? How can I sanitize user input with PHP? If I put my phone on my notebook's left corner, it shuts down. Can anybody give me reliable explanation as to why this is happening?? Random place change in row with restrictions I'm trying to connect to a sandbox using the sfdx cli and the JWT flow through force:auth:jwt:grant. According to , we can use the same connected app information from Production to connect to our Scratch Org.  Is it something that should work for sandbox too ? I'm getting a "Failed: Not approved" error.  Connected app in sandbox comes from the refresh but has a different consumer key. The Permission set is set correctly on my user.  Is there a way to connect to a recently refreshed sandbox using the JWT flow (without manually changing something like the consumer key) ? Reprojecting MODIS-Sphere ESRI GRID file to WGS84 using QGIS/GDAL I have an ESRI GRID file projected in MODIS-Sphere (here's the dataset ) that I need to convert to a WGS84 GeoTIFF.  I tried Raster > Projections > Warp (Reproject) and got this nonsense:   I then thought I'd use the MODIS reprojection tool or HEG to convert it, but they only accept HDF files and using QGIS' warp or translate functions to convert this file to HDF throwns an error. This guy was trying to do the same thing in Arc, no joy:   I looked for clues in the metadata, and the file seems a little goofy; gdalinfo yields:  Driver: AIG/Arc/Info Binary Grid Files: seto_uf        seto_uf.aux        seto_uf/.aux.xml        seto_uf/.DS_Store        seto_uf/dblbnd.adf        seto_uf/hdr.adf        seto_uf/log        seto_uf/metadata.xml        seto_uf/sta.adf        seto_uf/vat.adf        seto_uf/w001001.adf        seto_uf/w001001.tif        seto_uf/w001001.tif.aux.xml        seto_uf/w001001x.adf Size is 7468, 2911 Coordinate System is `' Origin = (-17345341.010356999933720,8423784.764957003295422) Pixel Size = (5000.000000000000000,-5000.000000000000000) Corner Coordinates: Upper Left  (-17345341.010, 8423784.765)  Lower Left  (-17345341.010,-6131215.235)  Upper Right (19994658.990, 8423784.765)  Lower Right (19994658.990,-6131215.235)  Center      ( 1324658.990, 1146284.765)  Band 1 Block=256x4 Type=Byte, ColorInterp=Undefined   Description = Seto_UF   Min=0.000 Max=101.000    NoData Value=255   So it can't determine the coordinate system.  There's a .tif included in the directory, but gdalinfo on that shows:  Driver: GTiff/GeoTIFF Files: w001001.tif        w001001.tif.aux.xml Size is 7468, 2911 Coordinate System is: GEOGCS["Unspecified datum based upon the GRS 1980 Authalic Sphere",     DATUM["unknown",         SPHEROID["unnamed",6371007,1]],     PRIMEM["Greenwich",0],     UNIT["degree",0.0174532925199433],     AUTHORITY["EPSG","4047"]] Origin = (-17345341.010356999933720,8423784.764957003295422) Pixel Size = (5000.000000000000000,-5000.000000000000000) Metadata:   AREA_OR_POINT=Area Image Structure Metadata:   INTERLEAVE=BAND Corner Coordinates: Upper Left  (-17345341.010, 8423784.765)  Lower Left  (-17345341.010,-6131215.235)  Upper Right (19994658.990, 8423784.765)  Lower Right (19994658.990,-6131215.235)  Center      ( 1324658.990, 1146284.765)    So it says the units are degrees but those huge corner coordinates and origin values don't agree.  Any ideas?  My setup: OSX 10.9.4 QGIS 2.6.1 Brighton GDAL 1.11.2 (apparently there are newer versions but this is the latest you can get on OSX without having to compile it yourself) How to show the transfer progress and speed when copying files with cp? Otherwise, is there any alternative command line utility that can achieve this? Shell script- To fetch the content from the specific tag at all occurrence using shell scripting I have an XML file on my server. In that file, I have many tags in which there is a tag for example, "container" tag. I need to fetch the content of all the container tags content separately. Many thanks in advance. I am looking for a story about the future of mankind, in which most people have been enslaved in a virtual reality. It ends with the revelation that the people are just lying there imagining their lives with their heads in a trough of feed.  It explains that chemists began to create compounds that could be released into the air to manipulate citizens - causing them to live, shop, think as desired by whoever was in charge. Eventually these tools got subtle enough that they could simulate reality using just these airborne compounds.  This was clearly a prescient view of what later became computer-based virtual reality fiction. Fermat's Last Theorem with negative exponent Given $f_{n} : [a,b]\rightarrow \mathbb R$ is uniformly Lipschitz and $f_{n}\rightarrow f$, how can I show that $f$ is Lipschitz?  $f_{n}$ is uniformly Lipschitz $\leftrightarrow \exists K &gt; 0$ such that for all $n$ and for every $x,y\in [a,b]$ we have $|f_{n}(x)-f_{n}(y)| &lt; K|x-y|$.  $f_{n}\rightarrow f \leftrightarrow \forall~\epsilon&gt;0~~\exists~N$ such that $\forall~n&gt;N$ we have $\mid f_{n}(x) - f(x)\mid&lt;\epsilon~~~(=\mid x-y\mid?)$  Then we have  \begin{align} |f(x)-f(y)| &amp;\leq |f(x)- f_{n}(x)| + |f_{n}(y)-f(y)| + |f_{n}(x)-f_{n}(y)| \\ &amp;\leq |x-y| + |x-y| + K|x-y| \\ &amp;\leq (K + 2) |x - y| \end{align}  which shows that $f$ is Lipschitz. Can anybody tell me if this makes sense? Sorry if layout is poor. How can I get my graphics card to be recognized in System Info? I am new to Linux/Ubuntu. I installed Ubuntu 11.10 on my Lenovo IdeaPad y510.   System info says    Graphics: unknown.   Driver: unknown,   Experience: Standard.   What should I do to use all my laptop hardware components to work properly with Ubuntu? Screenshot: Python re.sub with a flag does not replace all occurrences Show that $\mathbb{Q}\times \mathbb{Q}$ is denumerable I am new to functions and relations, and with some concepts I am not so familiar. I have a question in an homework:     Show that $\mathbb{Q} \times\mathbb{Q}$ is denumerable.   From what I understood, denumerable means that it is infinitively countable. There are some  on the web about this topic, but I am still not understanding their explanation, maybe because they are not explained so easily (for me).  From what I understood, a set is denumerable if there's a relation with the natural numbers (but I am still not understanding what is this relation).  I have heard also about equinumerous sets (contain a bijective function = onto + one-to-one function), but I cannot relate this information with the problem to try to solve it. I am travelling form Delhi (DEL) to San Francisco (SFO), I have to make a connection flight in Vienna that would take me to Frankfurt (FRA). My flight to SFO is from FRA, I have one ticket for entire journey and the flights are operated by Lufthansa or its subsidiaries.  Do I need a transit visa? My flight arrives at Vienna international airport and leaves from the same, and for second leg it arrives at Frankfurt international airport.  I asked this question as an addendum to my  but was advised to make a new post.  I hold Indian passport and valid US visa. As our users regularly upload ~6MB images to use on the website (and aren't too familiar with how to resize them first), WordPress stores the originals as well as resizing them to several different sizes.  I'd like a function or plugin that takes the uploaded image, resizes it down to something more manageable and then replaces the original.  I've seen some functions that delete the original but do not replace it, meaning it is impossible to regenerate the thumbnails at a later date. I need this to be replaced so the user can upload a large image and it is automatically resized down and stored for future resizing if needed. Why does a proof of $\exists f: X\to Y$ injection $\iff \exists g: Y \to X$ surjection requires the axiom of choice? Why does a proof of $\exists f: X\to Y$ injection $\iff \exists g: Y \to X$ surjection requires the axiom of choice?  This question is answered here:   I'm not interested in a proof itself of this theorem, I want to know why this requires the Axiom of Choice.