I am trying to delete some of my production code.  I am using VS Code and when I push the following to Prod:  &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;ApexTrigger xmlns="http://soap.sforce.com/2006/04/metadata"&gt;     &lt;apiVersion&gt;36.0&lt;/apiVersion&gt;     &lt;status&gt;Deleted&lt;/status&gt; &lt;/ApexTrigger&gt;   I receive the following error:  INVALID_OPERATION: INVALID_OPERATION: testLevel of NoTestRun cannot be used in production organizations   How do I delete Apex code from production? To my knowledge, you go into the metadata of your production code and change the status from "Active" to "Deleted".
I was recently told (  ):     You cannot delete a class in production directly. You will need delete   the class from your sandbox and then deploy the deletions to your   production org.   When you deploy from sandbox to production, the   missing classes will come up in red and you can choose to deploy these   deletions to Production.   However, I'd like some clarification because finding information on how to do this is like pulling teeth, unfortunately.  Am I supposed to:   Delete the Trigger in Sandbox Make a deployment package in Sandbox Add the Trigger which is going to be listed in RED now Deploy (and that deletes it from Production)?   I am not seeing deleted Triggers in Red in Sandbox.  Are they NOT listed under "Triggers" for deployment, but elsewhere?   Frustrated = true.   Does this ONLY apply to Classes??  UPDATE:  I just tried again, with a CLASS, and it still doesn't show up at all as a Deployable package (red or not) after I delete it in the Sandbox.  UPDATE 2:  I was just able to delete a class, that I know was written via IDE from a third party, in both Sandbox and Production.  So now I'm wondering if it has to do with where it was originally deployed from (if from IDE, IDE can delete it - it from Sandbox, you have to jump through hoops).  :-(
Are PHP variables passed by value or by reference? How do you remove a file whose filename begins with a dash (hyphen or minus) -?  I'm ssh'd into a remote OSX server and I have this file in my directory:  tohru:~ $ ls -l total 8 -rw-r--r--    1 me  staff  1352 Aug 18 14:33 --help ...   How in the world can I delete --help from a CLI?  This issue is something that I come across in different forms on occasion, these files are easy to create, but hard to get rid of.  I have tried using backslash  rm \-\-help   I have tried quotes  rm "--help"   How do I prevent the minus (dash or hyphen) character to be interpreted as an option? Joint distribution of two dependent variables Is my C1/D visa valid for transit in the US, if I want to go on a vacation to Mexico? Pronunciation differences between "finite" and "infinite" In my experience, "finite" is pronounced (IPA) ˈfaɪnaɪt while "infinite" is ˈɪnfɪnɪt.  In general, the prefix "in" negates an adjective, but does not change the pronunciation. Based on this, I would expect ˈɪnfaɪnaɪt.  Is there a reason for this "deviation from the norm"? Are there dialects/regions that actually say ˈɪnfaɪnaɪt (or ˈfɪnɪt, for that matter)? How do I insert a line at the top of a text file using the command line? Cauchy-Product of non-absolutely convergent series While grading some basic coursework on analysis, I read an argument, that a Cauchy product of two series that converge but not absolutely can never converge i.e. if $\sum a_n$, $\sum b_n$ converge but not absolutely, the series $\sum c_n$ with $$c_n= \sum_{k=0}^n a_{n-k}b_k$$ diverges.  Although we didn't have any theorem in the course stating something like this, it made me wonder if it was true. How do I find packages to install via apt-get How to change default window background color in Windows 10? Inequality with exponents $x^x+y^y \ge x^y +y^x$ Let $x,y$ be positive numbers. Prove that $x^x+y^y \ge x^y +y^x$.   This question appeared in Summer 1991 Russian Olympiad team test. Apparently, I tried to come up with different approach such as Jensen, Karamata's inequality and nothing works so far. I just need a discussion here. Hints are not necessary. Is it possible to pass properties as "out" or "ref" parameters? Can I pass a property as an "out" or "ref" parameter if not then why not?   e.g.  Person p = new Person();    . . .  public void Test(out p.Name); Accurately simulating the lots of dice rolls without loops? OK so if your game rolls lots of dice you can just call a random number generator in a loop. But for any set of dice being rolled often enough you will get a distribution curve/histogram. So my question is there a nice simple calculation I can run that will give me a number that fits that distribution?  E.g. 2D6 - Score - % Probability  2 - 2.77%  3 - 5.55%  4 - 8.33%  5 - 11.11%  6 - 13.88%  7 - 16.66%  8 - 13.88%  9 - 11.11%  10 - 8.33%  11 - 5.55%  12 - 2.77%  So knowing the above you could roll a single d100 and work out an accurate 2D6 value. But once we start with 10D6, 50D6, 100D6, 1000D6 this could save a lot of processing time. So there must be a tutorial / method / algorithm that can do this fast? It is probably handy for stock markets, casinos, strategy games, dwarf fortress etc. What if you could simulate the outcomes of complete strategic battle that would take hours to play with a few calls to this function and some basic maths? What to write in visa application form and what documents to submit as an unregistered freelancer? There are many visa applicants who are working as an unregistered freelancer (photographer, construction contractor, fashion designer, journalist etc ). Some of these freelancers make really handsome monthly income and don't really need to work as a full time employee. Most of them receive variable amount of payments (cash, cheques, demand drafts etc) When it comes to filling a visa application form (USA, UK, Schengen etc), there is always an employment section in all visa form, eg for Schengen visa employment form :    This is a very important factor to make an application really strong.  Questions:   1 Unregistered freelancers can just simply write their profession? what documents to produce along with the application?  2 Bank statements with variable methods of payments could convince the visa officer that these are all legitimate payments? I've just installed Ubuntu and I need either video, wireless, or some sort of other manufacturer (non-opensource) driver. How can I run the tool that will fetch all of these for me? I'd like graphical instructions.  Related: What happens to objects that enter a Stargate from the destination side? We know that matter can only travel one way through a Stargate, ie. from the dialing gate to the destination. What happens to things that enter the wormhole from the destination side?   For example, if someone dials a gate that has tipped on its side (as in the SG-1 episode Hundred Days) and walks through, what happens when he reaches the other side and gravity causes him to immediately fall back into the gate?  Does the matter disappear, or does it pass through to the other side of the destination gate, as if the wormhole were not there?  Related: Difference between "theoretical computer science" and (beta) "computer science" Possible Duplicate:          Title says it all. From what I can see, "theoretical computer science" questions seem to be slightly more isolated to discussing algorithms, whereas "computer science" seems to have questions that are slightly broader and higher-level. Is there any place on the Stack Exchange sites where they give a longer description?  I'm just curious as to what niche the beta "computer science" site is meant to fill, as I see many topics in both forums that overlap. According to "Moving Around Other Creatures" (PH p. 191 / SRD p. 92):     You can move through a nonhostile creature’s space. [...] another creature’s space is difficult terrain for you.    Whether a creature is a friend or an enemy, you can’t willingly end your move in its space.   So it's possible for Alice to , the only penalty being that the ally's space counts as difficult terrain to enter.  If an enemy adjacent to the ally's space has readied a grapple against Alice and is successful, then Alice (unwillingly) ends her move in her ally's space.  Do allied characters in the same space suffer any negative effect?  Now the rest of Alice's allies do the same thing.   Is there a limit to the number of characters that can be stacked on a space?   What if Alice's ally was the one with the readied grapple?  Can you stack an ally on your space by readying a grapple to prevent them from leaving? Continuous function from $(0, 1]$ onto $(0, 1)$? What is the regular expression for a decimal with a precision of 2?  Valid examples:  123.12 2 56754 92929292929292.12 0.21 3.1   Invalid examples:  12.1232 2.23332 e666.76   The decimal point may be optional, and integers may also be included. What does it mean by 'bringing him gasping to all fours' in Harry potter? Immediately, his insides started writhing as though he'd just swallowed live snakes -- doubled up, he wondered whether he was going to be sick -- then a burning sensation spread rapidly form his stomach to the very ends of his fingers and toes -- next, bringing him gasping to all fours, came to a horrible melting feeling, as the skin all over his body bubbled like hot wax -- and before their eyes, his hands began to grow, the fingers thickened, the knuckles were bulging like bolts -- his shoulders stretched painfully and a prickling on his forehead told him that his hair was creeping down toward his eyebrows -- his robes ripped as his chest expanded like a barrel bursting its hoops -- his feet were agony in shoes four sizes too small      Harry potter and the chamber of secrets   It is the description of the feeling of drinking Polyjuice Potion, which makes someone into a different person, from the point of view of Harry Potter turning into Gregory Goyle.  And I don't understand what 'bring him gasping to all fours' means, especially 'four'. Does four here mean number 4?