Cannot get this specific class above 75% for testing help SOS
Help, I cannot get my test code coverage higher than 75%! Code below
Representing several points with same coordinates on map using ArcGIS Desktop? I'm working on Arcgis 10.  I have a point shapefile representing events with several points having coinciding coordinates (They have the same coordinates). For representing them in a dynamic way, I found a nice way - .  Problem is: I was asked to produce a static (paper) map of the events. Is there a tool that can take these events and shift them apart a bit so all will be seen?  (I know that spreading them about will alter their coordinates, but I am prepared to do so on a duplicate shapefile for the display on the map). Similar to my old question about  are there any limits to the animal forms an Animagus can be?     We know that the animal form can be much smaller than human (cat, rat, beetle) so I don't think size is a factor.   I'm not aware of any Animagus who transforms into a magical creature (e.g. unicorn or phoenix) so maybe those aren't possible.   Ultimately, what I'd like to know is whether there could be a T-Rex Animagus... (prompted by ) Finite abelian group contains an element with order equal to the lcm of the orders of its elements I will quote a question from my textbook, to prevent misinterpretation:     Let $G$ be a finite abelian group and let $m$ be the least common multiple of the orders of its elements. Prove that $G$ contains an element of order $m$.   I figured that, if $|G|=n$, then I should interpret the part with the least common multiple as $lcm(|x_1|,\dots,|x_n|)=m$, where $x_i\in G$ for $0\leq i\leq n$, thus, for all such $x_i$, $\exists a_i\in\mathbb{N}$ such that $m=|x_i|a_i$. I guess I should use the fact that $|x_i|$ divides $|G|$, so $\exists k\in \mathbb{N}$ such that $|G|=k|x_i|$ for all $x_i\in G$. I'm not really sure how to go from here, in particular how I should use the fact that $G$ is abelian. Why exactly did the Sorting Hat originally want to put Harry in Slytherin? How to convert strings into integers in Python? I have a tuple of tuples from a MySQL query like this:  T1 = (('13', '17', '18', '21', '32'),       ('07', '11', '13', '14', '28'),       ('01', '05', '06', '08', '15', '16'))   I'd like to convert all the string elements into integers and put them back into a list of lists:  T2 = [[13, 17, 18, 21, 32], [7, 11, 13, 14, 28], [1, 5, 6, 8, 15, 16]]   I tried to achieve it with eval but didn't get any decent result yet. How to write (La)TeX (with parentheses) [or any other TeX-related logo] I'm looking after a macro to write the (La)TeX logo (with parentheses), i.e. something similar to \TeX, \LaTeX, but where the output includes ()'s. I want to draw a table and i used the following code  \begin{table}[htbp]  \centering \caption{Ship simulator required inputs} \begin{tabular}{|c|c|} \hline L_{PP},  L_{WL}, L_{OS}, B, T, T_{a}, T_{f}, C_{B}, D_{P}, `\\` Bulbous bow, Number of bosses, brackets, thrusters. &amp; ship particulars `\\` \hline Required speed or propeller rpm, ship course angle &amp; Mission data \\ \hline BN, weather angle, water temperature &amp; Environment \\  \hline \end{tabular}% \label{inputs}% \end{table}%`   the result of this is as shown in figure    How can i complete the right border of the table ??? I used \\ to break the line of first row How to find P(2X>4)? This is a Binomial question. I am required to find P(2X>4), and given that X~B(10,0.2), how do I convert it to 2X~B(n,p)?  Have tried converting from P(2X>4) to P(X>2), but understand that it doesn't work that way.  Do i have to use integration or any formula that i should refer? Deciding what answer to accept: the correct one-liner or the later elaborate one with code? Lately I've been getting some good answers to some specific questions. However, I've been hesitating on what answer I should accept.  Do I go with the short quick answer or do I accept a later answer where someone has elaborated on the previous answer with some code?  It's not really important but it kind of bugs me to not accept an answer when people have taken the trouble of replying.  Here's two examples: Is there a 'rule of thumb' on the upper limit of how many related records in related objects an object should have to avoid slow page loading? Typically, each record in Salesforce will be 2kb large: .   However, let's say in an extreme example, the Opportunity object is related to 40 custom objects, each which has 100,000 records. The page would load much slower, especially in an older browser version.   1) Is there a 'rule of thumb' as to what the upper limit of how many related records an object should have?   2) Also, , there's an indication that there's some sort of tier-tuning per org based on the volume of data it has. Is that correct? And if so, are the volume ranges and respective tier-tuning capacity available? Is named indexer property possible? I have some files with different extensions such as *.pdf, *.mp3, *.jpg and a few others. All of them are stored in a parent directory.  How can I get a list of all extensions, create some folders based on these  extensions and then move all files into their relevant folders? How can I transfer large files from Linux to iPad over a cable or wifi? I am looking for a way to transfer large files to the iPad without using iTunes or pushing to and pulling from a remote server.  I run an Ubuntu laptop as my only OS at the moment and want to be able to transfer movies to my iPad.  I currently transfer most of my files by way of the dropbox app which works well for small files but is quite slow for larger files and eats up my bandwidth.  Ideally I'd like to be able to transfer over a cable or through WiFi.  Thanks for any tips. Brute-force attacking One Time Pads feasible? I have a ciphertext encoded with One Time Pad. I do not know the key. How can I find the possible keys which when decoded, will result in a meaningful plain text? What is the definition of layer in neural network? What is the best way to increase my reputation and privileges? Why massless particles have zero chemical potential? How do I backup data (SMS/contacts) from a device with a broken screen? I just broke the screen of my (unrooted) Galaxy S.  How do I get back my SMS and contacts?   PS: I tried Kies but it won't detect my phone for some reason. (Kies works fine with another Galaxy I possess but not this one) Translate of an ideal by $a$ coincides with the ideal iff  $a \in I$ How  can I show the following?     Show that, if $a$ and $b$ are elements of a ring $R$ and $I$ is an ideal of $R$, then $$a+I=0+I \iff a \in I$$    I am so interested to know the proof.Thanks and good night all! PostgreSQL execute a default query when no row are returned I need to calculate the average score of a list of userId.  I have a table user_place_score:  (user_id, place_id, score)   Sometimes I do not have the score (no row for (user_id,place_id) in the table) so I need to fetch a "default" score from the table default_place_score:  (place_id, score)   Is is possible in PostgreSQL to do this in one query? For a given list of users and one place_id, select all their scores in the user_place_score and if no row is found then take the score found if the default_place_score table?  Basically I want to avoid doing this kind of stuff:  for (Integer userId : userIds) {   score = (query to fetch the score for this userId)   if (score == null)     defaultScore = (query to fetch the default score for this PlaceId)    total = total + defaultScore }  //return the average return total/numberOfUser