Wikipedia:Reference desk/Archives/Computing/2013 May 27

= May 27 =

branch coverage
If I have a line of code to the effect of:


 * if (a && b && c)

and I run a a code coverage tool on it (eg cobertura) I might get an annotation telling me that I have missed x of 6 branches. Where might I find a good reference to read, to help me understand which branches those 6 are? If I invoke the method containing that line like this:


 * method(true,true,true)


 * method(true, false, false)


 * method(true, true, false)


 * method(false, false, false)

all six branches are covered with four statements.

Where can I learn more about how the branches are quantified and decided as covered?

Thanks!

Duomillia (talk) 13:40, 27 May 2013 (UTC)


 * For anybody who might be puzzled, this question presumably relates to Java, since that's what cobertura works on. Looie496 (talk) 14:33, 27 May 2013 (UTC)


 * I don't know what kind of reference you're going to find for this. It's just counting each value of each test as a branch, much as if you had written


 * where the null statements are placeholders where you might have put code even if you didn't. The equivalence of && to nested ifs is called short-circuit evaluation if you don't already know that.  (If there's an else on your original if, it's a bit harder to convert to this form, but it can be done.)  Your four tests exercise each of the elses I wrote (which in the original version are indistinguishable), so it's happy.  In particular, all three tests being true exercises the three true branches at once, while if they are false they only exercise the outermost <tt>false</tt> branch.  --Tardis (talk) 15:15, 27 May 2013 (UTC)

As it turns out, since my a b c functions were StringUtils.isNotBlank, I had the correct solution all along but the JUnit wasn't passing because I had my trues and falses inverted. - Duomillia (talk) 17:59, 27 May 2013 (UTC)

What type/kind of charger is this?
I know its from a Dell Laptop but i dont know which model, does anyone know? file:///C:/Users/ALUMNO/Downloads/63101_119417451550010_2048659690_n.jpg — Preceding unsigned comment added by 189.223.210.195 (talk) 18:54, 27 May 2013 (UTC)
 * We can't view pictures that are located on your computer. If you want us to be able to see them, you'll have to upload them either to some photo-sharing site or to Wikimedia Commons. Looie496 (talk) 19:08, 27 May 2013 (UTC)


 * Yeah; a Google search for "63101_119417451550010_2048659690_n.jpg" turns up nothing but this page (I thought perhaps it had been copied to your system from the internet with no name change.) Strangely, the only image result is one of the pictures above (under "Getting rid of the daemon & speeding up D-Bus without hacking the kernel?") --Yellow1996 (talk) 01:29, 28 May 2013 (UTC)

Annoying Drupal problem
The Module XML Sitemap shows Nodes&aliases, thought logically it need to present only the aliases. how could the nodes be automatically removed from there?. tried to install the famous module "Globalredirect" as i was recommended, but it didn't help. any ideas?, bless U. Ben-Natan (talk) 21:59, 27 May 2013 (UTC)


 * Most of what I turned up were just people complaining about the exact opposite of what you want. You may have better luck on the Drupal forums. --Yellow1996 (talk) 01:12, 29 May 2013 (UTC)

Citrix apps rental service
Dear Wikipedians:

I have found Citrix to be a rather neat solution for running Microsoft Office on Linux, however, Citrix the company by itself does not offer any services directly to the end user, therefore I am wondering:

Are there companies out there from which I can rent applications that are delivered by the Citrix virtualization solution similar to what's found at http://demo.citrixcloud.net/ ? More specifically, I would like to rent the following set of applications:

<ol> <li> Microsoft Word <li> Microsoft Excel <li> Microsoft Powerpoint <li> Google Chrome <li> Software 1 to 3 must be able to print to PDF. <li> Software 1 to 5 must reside on the same server. </ol>

Since I am renting on a personal basis, I am tentatively looking at a price range of $20 to $40 per month although I would like to hear of any suggestions you may have regardless of prices.

Thanks for all your help,

64.231.129.106 (talk) 23:07, 27 May 2013 (UTC)


 * At $20 to $40 a month, you will exceed the cost of buying a copy of Windows & Office that you can run on a spare box or in a VM guest (which can with minimal configuration yield the appearance of applications running as normal native apps on a Unix host) on any box you have in 4-9 months. ¦ Reisio (talk) 05:14, 28 May 2013 (UTC)


 * Thanks for the answer. Actually I also had the issue of noise on my mind as running my own spare box can be particularly noisy but if I were to access a remote server using a tablet then it would be totally quiet computing. 64.231.129.106 (talk) 13:08, 28 May 2013 (UTC)


 * I'd have to agree with Reisio on this one. The money saved would surely outweigh the annoyance of noise, wouldn't it? --Yellow1996 (talk) 01:17, 29 May 2013 (UTC)


 * Alright, I will maybe try to set up the server in my basement then. Thanks all for help. 64.231.129.106 (talk) 13:00, 29 May 2013 (UTC)