How to Cover for Loop in test Class in vf
How do I increase my code coverage, or why can't I cover these lines?
People are born and grow up and die of old age in a matter of 5 days. The elders (5 days old) train children and send the most promising one on a trek across the dessert to a monolith that is the cause of the rapid aging to hopefully disable it.   I saw it on a reel to reel in the mid 90's. It looks like it was made in the late 70's or 80's. The cast was small. A few men played the elders seated in a row of chairs and the young boy who had to set out to save them who matures into a man and finally an elderly man.  I've been trying to figure out the title for years. Are two (or N) resistors in series more precise than one big resistor? Let's say I have one 2 k&ohm; resistor with 5% tolerance. If I replace it with two 1 k&ohm; resistors with 5% tolerance, will resulting tolerance go up, down, or remain unchanged?  I'm bad with probabilities, and I'm not sure what exactly tolerance says about resistance and its distribution.  I am aware that in the 'worst case' it will be the same; I'm more interested in what will happen on average. Will the chance of getting a more precise value increase if I use a series of resistors (because deviations will cancel each other out)?  On 'intuitive level' I think that it will, but I have no idea how to do the math with probabilities and find out if I'm actually right. Series about being that could change sex and age - "The Morph*" I'm trying to remember information about a series of three books I read in the early 1980's (first book could have been published in the 1970's). The book featured a character who was a scientific creation of some sort. It was (initially, I believe) an assassin, and had the ultimate getaway scheme; with effort, it could change its body, becoming about 10 years younger and switching sex. It changed 4 or 5 times in the first book, coming down from a senior citizen to someone in their teens or twenties; in the second and third books, it changed once per book (by the last book, it was a child or a young teenager).  The first book was title something like "The Morph..." where whatever the word was that started with "Morph" was this creature. No recollection of the author's name, or the titles of the other two books.  I think the cover of the first book was predominantly yellow, with black silhouettes representing the character at the four ages seen in the book, and a black title. And/or, the book might have been published by DAW (all their books at the time had yellow spines with black letters). nginx support for .htaccess / rewrite rules? Differences from Apache? Why does chmod succeed on a file when the user does not have write permission on parent directory? I am trying to understand file/dir permissions in Linux.  A user can list the files in a directory using   cd test ls -l    Even if the user issuing above commands does not have read, write or execute permission on any of the files inside the test directory, still he can list them because he/she has read permissions on the test directory.   Then why in the following scenario user B can change permissions of a file he owns but does not have write permissions of the parent directory?  User A, makes a test directory and gives other users ability to write in it:  mkdir test chmod o+w test   User B, creates a file in test folder.  cd test touch b.txt   User A removes write permission of others from the directory  chmod o-w test   User B, can successfully change permissions, even though permissions are part of directory and this user does not have write permission on the parent directory of the file he owns  chmod g-r b.txt   why does chmod not fail since the user cannot modify the directory which has the file information - permissions etc? Reference request: Standard textbook for first-order predicate logic in english I am writing my bachelor thesis in english, but I have studied logic in my different native language. Since a rely on elementary results from first-order predicate logic (especially satisfaction in structures), I should reference the reader to a textbook for details.   Is there a standard textbook that starts with elementary propositional logic and goes to Incompleteness theorems? Truncated 200GB table but disk space not released Why log-transforming the data before performing principal component analysis? Im following a tutorial here:  to gain a better understanding of PCA.  The tutorial uses the Iris dataset and applies a log transform prior to PCA:     Notice that in the following code we apply a log transformation to the continuous variables as suggested by [1] and set center and scale equal to TRUE in the call to prcomp to standardize the variables prior to the application of PCA.   Could somebody explain to me in plain English why you first use the log function on the the first four columns of the Iris dataset. I understand it has something to do with making data  relative but am confused what's exactly the function of log, center and scale.  The reference [1] above is to Venables and Ripley, Modern applied statistics with S-PLUS, Section 11.1 that briefly says:     The data are physical measurements, so a sound initial strategy is to work on log scale. This has been done throughout. How to properly indent PHP/HTML mixed code? regexp in ksh for extensions tgz, tar.tgz I'm trying to get a regexp (in ksh) to identify files with only the following extensions: tgz, tar.gz, TGZ and TAR.GZ. I tried several but can't get them to work. I'm using this regexp to select only files files with those extensions to do some work with them:  if [ -f $myregexp ]; then    .....  fi How do I get a list of all subdomains of a domain? I want to find out all the subdomains of a given domain. I found a hint which tells me to dig the authoritative Nameserver with the following option:  dig @ns1.foo.bar some_domain.com axfr   But this never works. Has anyone a better idea/approach Proving $\sum\limits_{k=1}^{n}{\frac{1}{\sqrt{k}}\ge\sqrt{n}}$ with induction How do I make 'X-Axis Mirror' available in Pose Mode? More often that not, while posing an armature, I want to mirror the pose across the X-axis, so that when I move "brow.L", "brow.R" also moves in the same way.  You can copy and paste a mirrored pose, or select both bones prior to performing a transform, but both of these options aren't particularly good workflow wise.  In edit mode, in the tools panel, under options you can enable "X-Axis Mirror" to copy all transforms across the X-axis in real time, but this option is not available in pose mode.  I'm not very experienced with python, but edit source reveals:  col.prop(ob.data, "use_mirror_x")   My understanding is that "use_mirror_x" refers to a boolean property, but I have no idea how to find where that boolean property is defined or if it would be possible to modify it to get the same result in pose mode.  Any advice on this is appreciated. Maybe there's a better way to achieve this?  Thanks. What does var prime = num != 1; mean? What is the standard team composition for a conquest game? I'm very new to Smite, and I'm wondering if there is some kind of standard team composition in high level play, comparable to the top, jungle, mid, dual lane meta in LoL.  What are the roles, and where should they go to start the game? Custom sorting (non-alphabetical) Comment deletion notification I think you should be notified if anything of yours is deleted or even flagged, preferably with some explanation (even if it's a simple categorisation like #rude, #irrelevant, #incorrect) and who did it.  Recently, a couple of comments of mine vanished without warning or evidence afterwards. I'm fine with deletion, but I think it should be used sparingly and be based on democratic decisions. What's the harm of letting a comment simply sit with no up-votes or responses rather than outright removal? Or allow downvoting and then negatively voted comments are hidden by default?  I get the impression that anything I post could be deleted. Very few people want to be unpopular or do the wrong thing. It takes time to understand what something is about and how best to use it (this site). Whether or not what I posted deserved to be deleted is irrelevant because I got no feedback. No-one can learn without feedback. The number of frivolous comments with many upvotes I've seen shows how inconsistently the rules are applied. A community that gives too much power to highly rated users won't grow but turn stagnant.  Sorry if this was rude, inappropriate or pathetic. I'm aware that similar discussions have occurred. In any case, I'll continue to use the site and move on... This question and answer is a response to a request from Joseph Wright.   Why shouldn't I use getnonfreefonts to install additional fonts? Why shouldn't I use updmap when installing or removing fonts?     Background  There are a number of questions on the site concerning problems caused by people installing additional fonts and using updmap to update the 'map' files on which TeX depends.  One common cause of these problems is the use of getnonfreefonts.  Other causes are the use of other font installation scripts or executing updmap directly. Salesforce DX daily limits As a package developer scratch orgs look like a great solution for automated CI testing and Salesforce has even done some great demos using Github and TravisCI to show automatically testing code using the DX CLI. However, in reviewing the details of DX, it looks like the limit is currently set to 50 orgs a day. If we want to test pull requests against 5 different org configurations, this limits us to 10 test runs a day. On a moderately sized team, this is going to be a tough limit to deal with. Has anyone had any success in working around this limit (or heard of any planned limit increases in the future). My initial thoughts are:   Get Salesforce to increase the limit (does not seem likely since this is a very young feature) Reuse scratch orgs for a period of time (this would require a good way to clean them and some savvy CI build code) Run fewer tests (not going to go over well the first time a bug for a specific org configuration slips through) How do I bridge network interfaces? I have a laptop running 11.10 with 2 network interfaces, wired and wireless.  Wireless interface connects to the router with DHCP and connects to the internet. Wired interface is connected to a switch. I want the computers on the switch to get their IP addresses from the router not my laptop.     How would I go about setting this up? Bridging the interfaces?