How can I cover these two lines in test class? I was able to cover first line but not the second. I need to create and assign the id to the child object. Id oppid = Apexpages.currentPage().getParameters().get('Id'); solist = [ select Order_Number__c from requested_item__c where quote_number__c=: oppid  and awarded__c=true order by Order_Number__c ASC];
How do you make a test class for custom controller? My search results involves this but trying to apply it in my test class only create too many error that I don't understand.  public static testMethod void testMyController() {     PageReference pageRef = Page.success;//Observe how we set the Page here     Test.setCurrentPage(pageRef);   . Does my test class need those line of codes when my controller class is only very simple.  public class ClientInfo_VFcontroller{     public Org_Info__c orgInfo {get; set;}     public ClientInfo_VFcontroller(){         orgInfo = new Org_Info__c();     }     public PageReference save(){         insert orgInfo;         orgInfo = null;         ScheduleRetrieve.ScheduleRetrieve();         return null;     } }
Ought we only form beliefs based on sufficient empirical evidence? Things to focus on in a model lesson A model lesson is a usual element in interviews for the faculty level positions. Normally this is not a full lesson but a 15-minute version which is performed in absence of actual students for just a few professors from a hiring committee. It is supposed to demonstrate "your teaching style", but by design this is clearly a different enterprise: you should "act normal" doing "the same" things    in a different time-frame,  for a different audience,  with completely different motivation and  under exorbitant cost of failure.   Having said this, I also acknowledge the model lesson as indeed a much needed element of the interview, which helps to assess a candidate's set of relevant skills.  The question is how one can ideally prepare to give such a model lesson. Putting aside obvious things like "structure of the talk," "clear slides," "projection of the voice," and "body language", which normally should be already trained by experience, are there specific things that should be taken into account for the model lesson only? What about techniques like jokes, questions to the audience (e.g. how many of you are familiar with the definition of the derivative), work in pairs, which you probably use in a real classroom &mdash; is it a good idea to demonstrate them in a room full of senior professors? I am a little confused. General formula of $\sum_{n\ge1}{\binom{2n}{n}^{-k}}$. If $k=1$, we have \begin{align} \sum_{n\ge1}\frac{1}{\binom{2n}{n}}&amp;=\frac12\sum_{n\ge1}n\mathrm{B}(n,n)\\ &amp;=\frac12\int _{0}^{1}\sum_{n\ge1}n(t-t^2)^{{n-1}}{\mathrm  d}t\\ &amp;=\frac12\int _{0}^{1}\frac{1}{(t-t^2-1)^2}{\mathrm  d}t\\ &amp;=\frac13+\frac{2\sqrt3\pi}{27} \end{align} I wonder if there exists a general formula of $\sum_{n\ge1}{\binom{2n}{n}^{-k}}$ with $k\in\Bbb N^*$. This may involve some ${}_pF_q$ functions. I Roll To Seduce The Dragon! (or, Do doublings of proficiency bonus stack?) Lets say there exist some enterprising young bard 3/ sorcerer 1 named Kirk.   Deciding to uphold (long past) family tradition, he has chosen to go out and have a little half-dragon of his own.   He chose Persuasion as his expertise skill, and is of a dragon bloodline himself, gaining the Dragon Ancestry perk.  Do they stack? Not the same ability, and both say "Your proficiency is doubled" when they activate. Granted, it would only happen when dealing with dragons. But there are certainly worse times to ramp up your charm. How do I make an object face the mouse position, but only on one plane? I want a game object to turn and look towards where the mouse was clicked (in world space).  It works well when considering all 3 dimensions, but I really only care for the plane formed by the x and z axis, not the y.  I've tried to fix this by setting the y of the directionTarget to the y of the object's position, but that gives weird results.  My code looks like this:  Quaternion rotationTarget;     float rotationLerpProgress;     float rotationLerpDuration = 1f;      // Use this for initialization     void Start ()     {      }      // Update is called once per frame     void Update ()     {             if (Input.GetMouseButtonDown (0)) {                     var ray = Camera.main.ScreenPointToRay (Input.mousePosition);                     RaycastHit rayHit;                      if (Physics.Raycast (ray, out rayHit)) {                             var rayHitPoint = rayHit.point;                              var rotationDirection = transform.position - rayHitPoint;                                                            rotationDirection.Normalize ();                             //rotationDirection.y = transform.position.y;                             rotationTarget = Quaternion.LookRotation (rotationDirection);                             rotationLerpProgress = Time.deltaTime;                     }                     //targetPosition = Camera.main.ScreenToWorldPoint (Input.mousePosition);                                     }              if (rotationTarget != transform.rotation) {                      transform.rotation = Quaternion.Lerp (transform.rotation, rotationTarget, rotationLerpProgress / rotationLerpDuration);                     rotationLerpProgress += Time.deltaTime;                       if (rotationLerpProgress &gt;= rotationLerpDuration) {                              transform.rotation = rotationTarget;                     }              }      }   I must be missing something. How do I do this right? What is the difference between an "API," a "framework," an "IDE," and an "engine?" Seeking English term for relationship between two members of extended family? Here at the Genealogy and Family History Stack Exchange we see many questions about relationship mapping which is also known as:   relationship calculation kinship terminology etc   If you are just trying to understand how to calculate "cousins and removes" then  provides an excellent guide.  However, if you are seeking an English term for a more complicated relationship between two members of an extended family, rather than asking a question like:          site users are encouraged to first review the answers below.    Note: This Q&amp;A arises from  and is set to  to help make it canonical. How should I transform non-negative data including zeros? If I have highly skewed positive data I often take logs. But what should I do with highly skewed non-negative data that include zeros? I have seen two transformations used:   $\log(x+1)$ which has the neat feature that 0 maps to 0. $\log(x+c)$ where c is either estimated or set to be some very small positive value.   Are there any other approaches? Are there any good reasons to prefer one approach over the others? Mouse rotated 90 degrees Uniform continuity of $\sin(x\sin x )$ for all $x\in (0,\infty)$ Ubuntu does not offers me "install alongside Windows" Any of the partitions makes in Windows was not recognised by Ubuntu, or Zorin OS, or LinuxMint. It's like a blank hard disc, 250 gb free. I'm a new Linux user, but what confuses me is that I was able to install Ubuntu alongside Windows on my laptop with no problems, but on PC... no way! Why aren't orbitals symmetric? Is it possible with GEE to export all the images in an image collection? Set the size of pgf picture? I have a pgf picture which I insert with:  \input{m1.pgf}   But the image is too big. Instead of regenerating a smaller image, I'd rather take advantage of vector graphics, and have XeLaTeX scale it. How do I set the width of pgf picture (keeping its aspect ratio)?  MWE  tex:  \documentclass{article}  \usepackage{fontspec} % enagles loading of OpenType fonts \usepackage{polyglossia} % support for languages  % fonts: \defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text} % without this XeLaTeX won't turn "--" into dashes \setmainfont{DejaVu Sans} \setsansfont{DejaVu Sans} \setmonofont{DejaVu Sans Mono}  % pgf: \usepackage{pgf}  \begin{document}  \input{m1.pgf}  \end{document}   Sample pgf:  (it's too big to cite it here, and I can't make much smaller). How to find application's path from command line? For example, I have git installed on my system. But I don't remember where I installed it, so which command is fit to find this out? I'm having problems understanding the following situation. Suppose two 1-tonne cars are going with the same orientations but opposite senses, each 50 km/h with respect to the road. Then the total energy is   $$\begin{eqnarray}E=E_1+E_2&amp;=&amp;\frac{1\mathrm t\times(50\mathrm{km}/\mathrm h)^2}2+\frac{1\mathrm t\times(50\mathrm{km}/\mathrm h)^2}2\\&amp;=&amp;1\mathrm t\times(50\mathrm{km}/\mathrm h)^2\\&amp;=&amp;2500\frac{\mathrm t\times\mathrm{km}^2}{\mathrm h^2}.\end{eqnarray}$$  Now if we look at it from the point of view of one of the cars, then the total energy is   $$\begin{eqnarray}E=E_1+E_2&amp;=&amp;\frac{1\mathrm t\times(0\mathrm{km}/\mathrm h)^2}2+\frac{1\mathrm t\times(100\mathrm{km}/\mathrm h)^2}2\\&amp;=&amp;\frac{1\mathrm t\times(100\mathrm{km}/\mathrm h)^2}2\\&amp;=&amp;5000\frac{\mathrm t\times\mathrm{km}^2}{\mathrm h^2}.\end{eqnarray}.$$  I know that kinetic energy is supposed to change when I change the frame of reference. But I understand that then there must be some other kind of energy to make up for it so that the energy in the system stays unchanged. But I don't see any other kind of energy here. I only see two total energies of the same system that seem to be different. Could you explain this to me?  Please note that while I don't understand any physics, I do understand college level mathematics, so if necessary please use it. (I doubt anything more than high school maths should be needed here, but I want to say this just in case.) How do I install Adobe Flash player? I have had significant problems with watching flash video in 64-bit Ubuntu.  Does anyone know of a good way to get flash running on the platform? "There Is"/"There are" depends on plurality of the first list element or not? It seems I put a   Bounty assigned by outside party, two lengthy, reference-citing answers, one "-1" (awarded the bounty), one "-2", two others scored "0" and "-2" respectively, the answers suggesting one or the other is correct, 73 comments and no consensus so far - and me, as the asker, lost without a clue what to think of the answers anymore -  this is no longer "Learners' Level" question, so I thought I'd bring it here and hear what the experts have to say.    Original question:  Plurality of verb depending on plurality of list elements  An edit was suggested to my sentence.     There was were an orange, some grapes, two apples and a small pile of cherries on the plate.   In my native language plurality of the verb always follows plurality of the first element on the list. There were an orange,... sounds awkward to me, no matter what follows up. My simple solution was reordering:     There were some grapes, an orange, two apples and a small pile of cherries on the plate.   But that's not the first time I faced this situation and I'd like to know what the rules of grammar say about that - was my editor overzealous or am I trying to copy rules of my language that don't apply in English?    Someone linked a  for negatives, where the situation is more clear-cut ("There is no..."). Same applies to connection with "or" apparently, per accepted answer there. Still, nothing for "and".  It seems there is a consensus that in that if the verb goes after the list, it will be plural.     an orange, some grapes, two apples and a small pile of cherries were on the plate.   There doesn't seem to be clear consensus for:     On the plate { was | were } an orange, some grapes, two apples and a small pile of cherries   Adding more to the confusion is the abbreviated form: "There's"     One last note. In North America, at least, there is a widespread use of using a singular form like "there is" and "there was", without regard for the subject item or items, and this "there is" is often shortened to "there's":           There's three apples on the table!      Could you please clarify this mess? How do I remove all loose edges? I have cut a hole in a plane, but I am left with some loose edges.  Is there an easy way to select and delete them all?  See this screenshot:    See this edges siting out with no face? What does 'Ign' , `Get` or 'Hit' mean when running an apt-get update?