Here is my code public class xmlreq extends TestBase  { @Test public void buildRequest() {     logger.info(&quot;starting&quot;);     RestAssured.baseURI=&quot;http://webservices.oorsprong.org/websamples.countryinfo&quot;;          httpRequest=    RestAssured.given();     String b= &quot;&lt;soapenv:Envelope xmlns:soapenv=\&quot;http://schemas.xmlsoap.org/soap/envelope/\&quot; xmlns:web=\&quot;http://www.oorsprong.org/websamples.countryinfo\&quot;&gt;\r\n&quot; +              &quot;   &lt;soapenv:Header/&gt;\r\n&quot; +              &quot;   &lt;soapenv:Body&gt;\r\n&quot; +              &quot;      &lt;web:CapitalCity&gt;\r\n&quot; +              &quot;         &lt;web:sCountryISOCode&gt;IND&lt;/web:sCountryISOCode&gt;\r\n&quot; +              &quot;      &lt;/web:CapitalCity&gt;\r\n&quot; +              &quot;   &lt;/soapenv:Body&gt;\r\n&quot; +              &quot;&lt;/soapenv:Envelope&gt;&quot;;     httpRequest.header(&quot;Content-Type&quot;,&quot;text/xml&quot;);     httpRequest.body(b);                    response=   httpRequest.request(Method.POST, &quot;/CountryInfoService.wso?wsdl&quot;);          Assert.assertTrue(response.getBody().asString()!=null);     System.out.println(response.getBody().asString());      }  @Test(enabled=true) public void validate() {     String a = response.getBody().asString();     Assert.assertTrue(a.contains(&quot;New Delhi&quot;));      }  }
Is there a possibility of using REST Assured library for testing SOAP webservices? I have a bunch of Test Suites in SOAP UI and I need to check if there is possibility of using REST Assured. Can anyone suggest if this is possible? Many thanks for any comments.
How do I enable Remote Desktop connection on Xubuntu 11.10? Notepad ignoring linebreaks Most documents I'm opening in notepad.exe under windows 7 lately, there are no linebreaks... everything just runs together.  The same documents in any other program, even previewed directly in Explorer, will show the linebreaks correctly.  this is happening with many .info files, .css, .js.. but not all of them.   I am guessing it's some kind of character encoding unix line endings something or other, but wondering if there's anything I can do or if anyone else has experienced similar and if I can make notepad work correctly. I prefer it to notepad++/other text editors for certain uses. How to calculate temperature in Wire? Let's say I have 1m of 2,5mm² copper wire, insulated with H07V-K. The wire carries 40A and environment temperature is 25°C. The wire is suspended in free air. How hot will the wire get? And how can I calculate it for other values?  The use case is a 12V-230V AC converter I want to hook up to my car and determine the minimum wire thickness required. Because it's only used from time to time and not buried in a wall I suspect I can use thinner wires. This is a temporary thing and doesn't need to be up to code. Why is TV remote's infrared wave shown by a camera as purple light, why not red or something else? How to use EntityFieldQuery with dates? I need to select entities with specific dates.   How should the following be formatted. Do I need to parse 15-May-2010  Also how I get the error page.   function events2() {  $query = new EntityFieldQuery(); $query   -&gt;entityCondition('entity_type', 'node', '=')   -&gt;propertyCondition('status', 1, '=')   -&gt;propertyCondition('type', 'event')     -&gt;propertyCondition('field_event_date', '15-May-2010', '=');  $result = $query-&gt;execute();   return $result;  } How do I convert, NSDate to NSString so that only the year in @"yyyy" format is output to the string? Explanation behind Second Derivative of a Parametric Equation Formula I am looking to find out how the second derivative formula works.  I can blindly apply it but I don't have a grasp of what is going on or why. The first derivitive has the formula $\frac{dy}{dx} = \frac{\frac{dy}{dt}}{\frac{dx}{dt}}$. I told this was because if you divide them you cancel out the dts and get dy/dx. The second derivative has the formula $\frac{d^2y}{dx^2} = \frac{d}{dx} \left(\frac{dy}{dx}\right) = \frac{ \frac{d}{dt}\left(\frac{dy}{dx}\right) }{\frac{dx}{dt}}$. Is this something that can be explained with only a knowledge of calculus or is this something I would have to take on faith until I learn more. Any help would be greatly appreciated. Is it a good practice to ask before exiting an application (with nothing to save)? Every now and then, I come across applications that, when clicking on the main window's "X", ask me whether I'm sure that I want to quit the application.    I'm not talking about asking me to save unsaved documents, but about applications that aren't document related at all.  This always bothers me, since I feel totally interrupted in my workflow. I was already thinking two steps ahead of what I want to do next, and this message box abruptly pulls 100% of my attention.  My question:  Are there any valid use cases where a non-document-centric application should ask me whether I'm sure that I want to exit the application? How can one prove that $\lim_{n \to \infty}a^{1/n}=1$ for every $a>0$? Prove that $\lim_{n \to \infty} a^{\frac{1}{n}} = 1$ if $a &gt;0$.  In my textbook, we are given a suggestion to let $a^{\frac{1}{n}} = (1+h_n)$ and then show that the $h_n$ term goes to zero using a Theorem that states the following conditions:  $\lim_{n \to \infty} = \infty,$ if $a &gt;1, 1,$ if $a = 1,$ and 0, if $\vert a \vert &lt; 1$. I apologize for not formatting the above cases appropriately; I could not figure out how to use a giant left brace to group them altogether.  If I rewrite it as $a^{n^{-1}}$, then I thought that this might help, but I don't think the Binomial Theorem would then apply since the exponent is negative. Furthermore, the problem is only concerned with the positive, real $n$-th roots. I am quite stuck on this problem and any suggestions or advice would be greatly appreciated.   I am using the textbook Introduction to Analysis by Arthur Mattuck. How to insert page number in Beamer navigation symbols? Where do files go when you AirDrop them on iOS? Where do AirDrop files go when I transfer them between an iPad, iPhone and iPod? I AirDropped some Google Docs from my iPad to my iPhone but nothing happened; where did my files go? The file was a list of tools. How to generate multiple maps where one highlighted attribute changes? I have a layer that contains counties within the state of Washington.    I need to build one map (jpg) for each county.  For that specific map all counties will show as light grey, but the specific county will be green, and the file name will be the county name. Sort and count number of occurrence of lines I have Apache logfile, access.log, how to count number of line occurrence in that file? for example the result of cut -f 7 -d ' ' | cut -d '?' -f 1 | tr '[:upper:]' '[:lower:]' is  a.php b.php a.php c.php d.php b.php a.php   the result that I want is:  3 a.php 2 b.php 1 d.php # order doesn't matter 1 c.php There are 11 letters in the word.   M - 1 I - 4 S - 4 P - 2  so the number of different permutations is $\dfrac{11!}{1! 4 !4!2!}$  Is this correct solution? Joining two rigged models I currently trying to join two rigged (and animated) models, which both has separate meshes, separate bones and separate animations. The first mesh is the horse while the second mesh is human:   So I am interested to join human model onto horse model to make a rider:   I think the best way would be to make horse as a parent and human as a child during the join process. In that case I would like that all horse animations (there are 3 of them - idle, walk and run) would remain as they are, while I can lose human animations, as I will need different ones for it. I was also thinking to make human root bone as a child of one horse back bones, that when horse moves up and down it would move entire human mesh together. It would be also good to keep the same weights that human bones would not start deforming horse mesh and vice versa.  I tried to use Ctrl+J by selecting various combinations between bones and meshes in object mode, however, I noticed that it messes up scaling and rotation of the child object. So I was wondering how it would be possible to properly join these models to create a rider? Best way to implement keyboard shortcuts in a Windows Forms application? ‘[...][Harry'll] be famous – a legend – I wouldn’t be surprised if today was known as Harry Potter Day in future – there will be books written about Harry – every child in our world will know his name!’   ‘Exactly,’ said Dumbledore, looking very seriously over the top of his half-moon glasses. ‘It would be enough to turn any boy’s head. Famous before he can walk and talk! Famous for something he won’t even remember! Can’t you see how much better off he’ll be, growing up away from all that until he’s ready to take it?’   Philosopher's Stone - pages 15 - 16 - chapter one, The Boy Who Lived   Did Dumbledore choose correctly?  Knowing what we do about Harry and his canon character attributes (And faults, too!), was Harry really better off enduring eleven years of physical and emotional abuse at the hands of the Dursleys than eleven years of celebrity and fame in the wizarding world? I'm sure we've all read about child celebrities who have done well handling fame, and some who have not fared so gracefully.   Would Harry have endured celebrity as stoically as he did the Dursleys' abuse? Did Dumbledore make the right choice in leaving Harry with the Dursleys instead of letting him grow up in the wizarding world?  Was Harry really better off?  ETA: I'm looking for an answer grounded in Harry Potter canon and written in the spirit of canon. Please do not pair Harry with Elle Fanning or opine that he's secretly an American ;) Thanks! How can one prove that $\lim_{n \to \infty}a^{1/n}=1$ for every $a>0$? Example of a domain where all irreducibles are primes and that is not a GCD domain One has the following relations for a domain $R$:  $R$ GCD domain $\Rightarrow$ All irreducible elements are prime  $R$ PID $\Rightarrow$ $(R$ GCD domain $\land$ $R$ statisfies ACCP$)$  $R$ UFD $\Leftrightarrow$ $(R$ GCD domain $\land$ $R$ satisfies ACCP$)$  $R$ satisfies ACCP $\Rightarrow$ $(R$ UFD $\Leftrightarrow$ All irreducible elements are prime$)$  $R$ GCD domain $\Rightarrow$ $(R$ UFD $\Leftrightarrow$ $R$ atomic domain$)$  So what is the difference between a GCD domain and a domain where all irreducible elements are prime? What is the "weakest" predicate $P$ such that  $R$ GCD domain $\Leftrightarrow$ $($All irreducible elements are prime $\land$ $P(R))$ ? We are in the combat phase:   I declared my attackers  My opponent declared his blockers, stating which attackers he was blocking I cast an instant, which automatically kills his blocker. There is nothing blocking my attacker now   Now we're in the damage phase. I said that my attacker now does damage and  reduces my opponent's hit points. My opponent said that because my attacker was blocked no damage could be done. I pointed out that the blocker was destroyed before the damage phase, so therefore he wasn't blocking, but he wasn't having it. (My attacker does not have trample)  Is this covered by a specific section in the rules?