How to convert a string to Double with all the numbers after the floating poing?
How do I print a double value with full precision using cout?
I'd like to setup a WCF service to send emails. The System.Net.MailMessage doesn't seem to be serializable, and cannot be passed in a [DataContract]  The error I receive is      Type 'System.Net.Mail.MailAddress'   cannot be serialized. Consider marking   it with the DataContractAttribute   Any suggestions? How to show $\lim_{n \to \infty} \sqrt[n]{a^n+b^n}=\max \{a,b\}$? I want to extract infromation from logs using a shell script for a particular time range . A line in logs looks like this:  [14:58:27:176][15-10-2015]: testing1-vidya-Thu Oct 15 11:49:27 IST 2015 [14:59:27:178][15-10-2015]: testing2-vidya-Thu Oct 15 11:49:27 IST 2015 [15:00:27:179][15-10-2015]: testing3-vidya-Thu Oct 15 11:49:27 IST 2015 [15:01:27:180][15-10-2015]: testing4-vidya-Thu Oct 15 11:49:27 IST 2015 [15:01:27:181][15-10-2015]: testing5-vidya-Thu Oct 15 11:49:27 IST 2015 [15:02:27:182][15-10-2015]: testing6-vidya-Thu Oct 15 11:49:27 IST 2015 [15:02:27:183][15-10-2015]: testing7-vidya-Thu Oct 15 11:49:27 IST 2015 [15:02:27:184][15-10-2015]: testing8-vidya-Thu Oct 15 11:49:27 IST 2015 [15:02:27:191][15-10-2015]: testing9-vidya-Thu Oct 15 11:49:27 IST 2015 [15:03:27:192][15-10-2015]: testing10-vidya-Thu Oct 15 11:49:27 IST 2015 [15:03:27:193][15-10-2015]: testing11-vidya-Thu Oct 15 11:49:27 IST 2015 [15:03:27:208][15-10-2015]: testing12-vidya-Thu Oct 15 11:49:27 IST 2015 [15:04:27:209][15-10-2015]: testing13-vidya-Thu Oct 15 11:49:27 IST 2015 [15:49:27:210][15-10-2015]: testing14-vidya-Thu Oct 15 11:49:27 IST 2015 [13:02:17:209][15-10-2015]: testing13-vidya-Thu Oct 15 11:49:27 IST 2015 [15:04:27:209][16-10-2015]: testing13-vidya-Fri Oct 16 11:49:27 IST 2015 [15:49:27:210][16-10-2015]: testing14-vidya-Fri Oct 16 11:49:27 IST 2015   I need to extract data in specific intervals. for example in between 14:59 to 15:03 on 15-10-2015 as shown below:   [14:59:27:178][15-10-2015]: testing2-vidya-Thu Oct 15 11:49:27 IST 2015 [15:00:27:179][15-10-2015]: testing3-vidya-Thu Oct 15 11:49:27 IST 2015 [15:01:27:180][15-10-2015]: testing4-vidya-Thu Oct 15 11:49:27 IST 2015 [15:01:27:181][15-10-2015]: testing5-vidya-Thu Oct 15 11:49:27 IST 2015 [15:02:27:182][15-10-2015]: testing6-vidya-Thu Oct 15 11:49:27 IST 2015 [15:02:27:183][15-10-2015]: testing7-vidya-Thu Oct 15 11:49:27 IST 2015 [15:02:27:184][15-10-2015]: testing8-vidya-Thu Oct 15 11:49:27 IST 2015 [15:02:27:191][15-10-2015]: testing9-vidya-Thu Oct 15 11:49:27 IST 2015 [15:03:27:192][15-10-2015]: testing10-vidya-Thu Oct 15 11:49:27 IST 2015 [15:03:27:193][15-10-2015]: testing11-vidya-Thu Oct 15 11:49:27 IST 2015 [15:03:27:208][15-10-2015]: testing12-vidya-Thu Oct 15 11:49:27 IST 2015   I am new to shell script.I have tried with grep command . Can anyone suggest me how to do this ? Sine $\theta$ = opposite/hypotenuse   Cosine $\theta$  = adjacent/hypotenuse   Tangent $\theta$  = opposite/adjacent      In order to calculate the sine or the cosine or the tangent I need to know $3$ sides of a right triangle. $2$ for each corresponding trigonometric function. How does a calculator calculate the sine, cosine, tangent of a number (that is actually an angle ?) without knowing any sides? OSGi/Felix Declarative Services: How to filter the services to be bound? I am using Apache Felix and its Declarative Services (SCR) to wire the service dependencies between bundles.  For example, if I need access to a java.util.Dictionary I can say the following to have SCR provide one:  /** * @scr.reference name=properties interface=java.util.Dictionary */  protected void bindProperties(Dictionary d) { }  protected void unbindProperties(Dictionary d) { }   Now, I have more than one Dictionary service available, and I want to filter them using the "name" service property (I only want "name=myDictionary"). I can do that with code (using a ServiceTracker), but I'd rather specify the filter in the @scr annotation instead. Don't count non-printing characters, HTML comments or other content not displayed toward minimum character requirements Convergence in measure and almost everywhere In a finite measure space, let $\{f_{n}\}$ be a sequence of measurable functions. Show that $f_{n}  \rightarrow f$ in measure if and only if every subsequence $\{f_{n_{k}}\}$ contains a subsequence $\{f_{n_{k_{j}}}\}$, that converges almost everywhere to f.   I can prove from converge in measure to converge almost everywhere, but I don't know how to write it down for the other direction. How to get the file name from a full path using JavaScript? Prove that $f'(a)=\lim_{n\to\infty}\frac{f(b_n)-f(a_n)}{b_n-a_n}$ under some conditions Prove that $f'(a)=\lim_{n\to\infty}\frac{f(b_n)-f(a_n)}{b_n-a_n}$, with $f: (k_1,k_2)\to\Bbb R$ differentiable at $a\in (k_1,k_2)$, $\lim b_n=\lim a_n=a$, and $a_n&lt;a&lt;b_n$.   My attempt: Im trying to write the above equality as a particular case of this other equality that hold by any interior point $a$  $$f'(a)=\lim_{h\to 0}\frac{f(a+h)-f(a-h)}{2h}$$  Because $a_n&lt;a&lt;b_n$ then I can write  $$f'(a)=\lim_{n\to\infty}\frac{f(b_n)-f(a_n)}{b_n-a_n}=\lim_{n\to\infty}\frac{f(h_n+a)-f(a-j_n)}{h_n+j_n}$$  Where $h_n=b_n-a&gt;0$ and $j_n=a-a_n&gt;0$, where these two new sequences tends monotonically to zero.  Now my problem: my thought is that $h_n$ and $j_n$ are particular sequences then I can build a sequence $k_n$ such that $j_n$ and $h_n$ are subsequences so I can write:  $$\{h_n:n\in\Bbb N\}\subset\{k_n:n\in\Bbb N\}\text{ and }\{j_n:n\in\Bbb N\}\subset\{k_n:n\in\Bbb N\}$$  (I can build this $k_n$ by example doing $k_{2n}=h_n$ and $k_{2n-1}=j_n$) and then I have the desired expression  $$f'(a)=\lim_{n\to\infty}\frac{f(b_n)-f(a_n)}{b_n-a_n}=\lim_{n\to\infty}\frac{f(k_n+a)-f(a-k_n)}{2k_n}$$  My question:   Is this proof right? In particular Im unsure of the implicit statement "if the limit exist for $k_n$ then it must exist too for the particular case with $h_n$ and $j_n$". The use of two sequences, $h_n$ and $j_n$ in the limit make me unsure about the validity of this manipulation and assumption. There is a simpler/different way to prove the same?   Thank you in advance. How to get a cross-origin resource sharing (CORS) post request working Compute $\iint\limits_R\frac{y}{x+y^2}dA$ where $R=[0,1]\times[1,2]$ Compute $\displaystyle\iint\limits_R\frac{y}{x+y^2}dA$ where $R=[0,1]\times[1,2]$  $\displaystyle\int_0^1\int_1^2\frac{y}{x+y^2}dydx=\int_0^1\int_1^2y(x+y^2)^{-1}dydx$  How do I integrate the denominator if the superscript is $-1$?   Hints are appreciated! What level should I be to kill Alduin I am level 31 and I have the Elder Scroll. I am not sure if my level is high enough to go to Whiterun and trap one of Alduin's minions. What level should I be before I attempt it? I have a string variable that represents the name of a custom class. Example:   string s = "Customer";   I will need to create an arraylist of customers. So, the syntax needed is:  List&lt;Customer&gt; cust = new ..    How do I convert the string s to be able to create this arraylist on runtime? Some time ago I closed my front door (rather forcefully) while the deadbolt was sticking out partially.  This loosened the deadbolt, and the top screw no longer held. In addition, it cracked the door on the interior side. I've attached a picture showing the damage.   The door works mainly, though it can be difficult to lock sometimes, especially when the weather gets colder.  I'm currently renting, and will soon be moving out of this house, once I buy a house. I would like to repair this door myself, and I'm hoping I don't have to replace the entire door.  Is this something that can be repaired? If so, how? I realize that a new deadbolt is probably needed, but how can I repair the wood damage around it? How to effectively deal with Imposter Syndrome and feelings of inadequacy: "I've somehow convinced everyone that I'm actually good at this" is a psychological phenomenon wherein an individual is convinced that they do not deserve the success that they have achieved despite (perhaps extensive) empirical evidence to the contrary.  Some people with imposter syndrome doubt their own ability level. For me, this usually manifests in the thought:  I've somehow convinced everyone into believing that I'm actually good at this.  followed by the horrifying notion that eventually I'll be found out and my world will collapse. I believe that the imposter syndrome is not uncommon in academia. I'm interested to know how other people here have experienced and dealt with it.  In particular, I'm looking for actual tactics that someone might use to combat imposter syndrome.   Why I asked this question: Beyond the obvious reason that this is something I have struggled with for many years and only recently gotten a handle on myself, there's also some evidence that merely realizing that other people experience imposter syndrome helps fellow imposters. As a grad student, I've managed to meet a fair number of people who are in their own struggles with imposter syndrome; however, the tactics and self-trickery that have helped me don't always speak to them and perhaps someone else's methods might. Getting all files that have been modified on a specific date Is it possible to find all php files within a certain directory that have been modified on a certain date  I'm using   find /var/www/html/dir/ -mtime -28 | grep '\.php'    to get files modified within the last 28 days, but I only need files that have been modified on the following date: 2011-02-08 How do I prove this form of mean value theorem for integral? I only knew the standard mean value theorem for integrals. (i.e. $\int_a^b f(x)dx= f(c)(b-a)$ for some $c$ between $[a,b]$ where $f$ is continuous. This is directly derived by applying mean value theorem and Fundamental theorem of calculus) I'm taking numerical analysis this year and there is one theorem stated without a proof in my text. That is:  Let $f,g$ be continuous real-valued functions on $[a,b]$ such that $g$ is nonnegative. Then there exists some $c$ between $a,b$ such that $\int_a^b fg(x) dx = f(c) \int_a^b g(x) dx$  How do I prove this? I have the following pieces of hardware I would like to network mostly for file sharing (media primarily): 1 gaming laptop, 1 i7 (2.3Tb storage) desktop, 1 P4 desktop (500g storage), and 1 250gig PS3.  I am looking to setup a linux host (with a PS3 media server) with the i7 desktop but am concerned about leaving it on all the time. What stripped down, low energy usage distro can I couple with which windows &amp; PS3 friendly software?  Also, how should i reformat my i7 (in terms of partitions, RAID options, whatever)? It has 2 1Tb drives (likely adding a third), and 1 320 gig. How close does a particle-antiparticle pair need to be for annihilation to happen? What is the opposite of "parallel" in architecture? The two towers of the Verrazano Bridge are not parallel: they are slightly [???] to account for the curvature of the earth.    What is that word?