if / whether it rains or not
"Whether" Vs. "If"
Clicking to reload an updated answer removes the code snippet buttons and removes syntax highlighting Example of mailmerge package with an Excel spreadsheet I am looking for an example for using the  package to write a cover letter, with names and addresses on a spreadsheet. The package comes with an example, but you have to manually enter all the data. Flex HTTPservice and POST, Sending Files? I use a basic Post to send data to a Django server.  The data consists of a base64 encoded 640*380 PNG image dynamically created by the flex component.  &lt;mx:HTTPService id="formSend" showBusyCursor="true"      useProxy="false" url="http://127.0.0.1/form/"      method="POST" result="formSentConfirmation(event)"    fault="formSendingFailed(event)"/&gt;    private function sendForm(url:String, message:String, meteo:Number):void {     formSend.url = url;     var params:Object = { message: message, image_data: getEncodedImage() };      snapButton.label = "sending ...";     formSend.send(params); }   On the server side i can see that the data is in the request.POST not in request.FILES. That means the image is not send as a File with multiencode HTTP.   Will i get into trouble on a real server ? since the limit is 200k for urlencoded POST var. How to make HTTPservice send the data as a file? Any other solutions?   Thanks How to prove for each positive integer $n$, the sum of the first $n$ odd positive integers is $n^2$? I'm new to induction so please bear with me. How can I prove using induction that, for each positive integer $n$, the sum of the first $n$ odd positive integers is $n^2$?  I think $9$ can be an example since the sum of the first $9$ positive odd numbers is $1,3,5,7,9,11,13,15,17 = 81 = 9^2$, but where do I go from here. Display SharePoint Online in an iframe on different domain We would like to display pages from SharePoint Online in an iframe of a Page hosted somewhere else, e.g. in an Azure Web App:  &lt;iframe src="https://site.sharepoint.com/"&gt;&lt;/iframe&gt;   When we do this (in Chrome for example), we get the following error:     Refused to display " ⏎                      Home.aspx" in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.   A Page from SharePoint 2013 (on premise) can be displayed in an iframe from a Page hosted on another domain, if the following control is added to the head of the master page:  &lt;WebPartPages:AllowFraming runat="server" /&gt;   However if this control is not added to the master-page, then we also get the above mentioned error.  As far as I know there is no possibility to adjust the master-page in a SharePoint Online Team Site. Is that correct?   In a Publishing Site you are allowed to adjust the master-page, or even add a new one. But I can't find anything similar in Team Sites.  Does anybody know if it is somehow possible to configure domains which do not fall under the "X-FRAME-OPTIONS: SAMEORIGIN"-policy in a SharePoint Online environment? Or if there is another possibility to display SharePoint Online content in an iframe on a different domain. I checked google, checked the Site settings and checked the Office 365 admin center, but didn't find anything. Remove pseudo nodes in QGIS Print total free memory from `free -m` When an option expires does that constitute a buy or sell A similar question recently asked about stock sales and option buys triggering wash sale rules.  If an option expires, is that considered a buy/sale ?  What I mean is: let's assume I have a call option with a target date of August 16. Now I sell the underlying stock somewhere before that (after July 16th). Does that trigger wash sale rules (if the option expires in the money, exercised by default) ?  Is an option expiring out of the money considered a sale ? I have a query going that gets data for an ID for the last 3 months.  I need to tweak it so I get the highest value for each of the three months.  I've tried a couple of things with the aggregate function MAX, but I'm not getting anywhere.  I'm trying to get the max value for each of the past months ....  Here's the data from the query, currently sorted by date (asc):   ID      Date               Value 12410   01/03/2017 12:17    0.000178 12410   01/10/2017 11:36    0.000186 12410   01/17/2017 11:27    0.000189 12410   01/24/2017 13:09    0.000182 12410   01/31/2017 10:37    0.000169 12410   02/07/2017 11:03    0.000214 12410   02/14/2017 11:52    0.000176 12410   02/21/2017 10:51    0.000200 12410   02/28/2017 12:29    0.000194 12410   03/07/2017 08:39    0.000206   Here's the query:   select AnalysisID as "ID" , AnalysisDateTime as "Date", AnalysisValue as "Value" from AnalysisValueTbl where AnalysisID = 12410 and DatePart(m, AnalysisDateTime) = DatePart(m, DateAdd(m, -3, getdate())) and DatePart(yyyy, AnalysisDateTime) = DatePart(yyyy, DateAdd(m,-3, getdate())) or AnalysisID = 12410 and DatePart(m, AnalysisDateTime) = DatePart(m, DateAdd(m, -2, getdate())) and DatePart(yyyy, AnalysisDateTime) = DatePart(yyyy, DateAdd(m,-2, getdate())) or AnalysisID = 12410 and DatePart(m, AnalysisDateTime) = DatePart(m, DateAdd(m, -1, getdate())) and DatePart(yyyy, AnalysisDateTime) = DatePart(yyyy, DateAdd(m,-1, getdate())) order by AnalysisValue desc A linear operator commuting with all such operators is a scalar multiple of the identity. The question is from Axler's "Linear Algebra Done Right", which I'm using for self-study.  We are given a linear operator $T$ over a finite dimensional vector space $V$. We have to show that $T$ is a scalar multiple of the identity iff $\forall S \in {\cal L}(V), TS = ST$. Here, ${\cal L}(V)$ denotes the set of all linear operators over $V$.  One direction is easy to prove. If $T$ is a scalar multiple of the identity, then there exists a scalar $a$ such that $Tv = av$, $\forall v \in V$. Hence, given an arbitrary vector $w$, $$TS(w) = T(Sw) = a(Sw) = S(aw) = S(Tw) = ST(w)$$ where the third equality is possible because $S$ is a linear operator. Then, it follows that $TS = ST$, as required.  I am, however, at a loss as to how to tackle the other direction. I thought that a proof by contradiction,  ultimately constructing a linear operator $S$ for which $TS \neq ST$, might be the way to go, but haven't made much progress.   Thanks in advance! Function on $[a,b]$ that satisfies a Hölder condition of order $\alpha > 1 $ is constant I want to show that if a function $f:[a,b]\rightarrow \mathbb R$ satisfies a Hölder condition of order $\alpha &gt; 1 $ then it is constant.  The way I think of it is as follows:  $$|f(x) - f(y)| &lt; K|x-y|^\alpha$$  $$\frac{|f(x) - f(y)|} {|x-y]}  &lt; K|x-y|^{\alpha -1}$$  $$\lim_{y\rightarrow x} \frac{|f(x) - f(y)|} {|x-y]} \le \lim_{y\rightarrow x}  K|x-y|^{\alpha -1} =0 $$ As the limit is $0$, we can remove the modulus, so we get:  $$\lim_{y\rightarrow x} \frac{f(x) - f(y)} {x-y} = 0$$ So $f$ is derivable and $f'(x) = 0$ for all $x$ in $[a,b]$. Note that the reason we can add the limit $y\rightarrow x$ is because $[a,b]$ is closed in $\mathbb R$.  However, the question gives as a hint using the mean value theorem. I am not sure why one should do that. You would first have to prove that $f$ is derivable in a similar manner to what I did, and then prove that $f$ is constant. Or is there a simpler way to do it and I am missing it?  Also please inform me of any mistakes I did in the proof (if any)/ Thank you! Functions Which are non differentiable on a Given Set. Why does the reputation dropdown not show this upvote? I have a Lenovo T570 with Xubuntu 18.04 LTS. My current issue is that my cpu speed stepping is kind of going nuts and does what ever it thinks its best.  Sample: when I run my IDE and cpu load increases during build time, the governor changes automatically. I caught the moment during compiling my project with the following call:  martin@martin-ThinkPad-T570:~$ while cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor; do sleep 1; done powersave powersave performance performance   cpufreq-info tells me this:  martin@martin-ThinkPad-T570:~$ cpufreq-info  cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009 Report errors and bugs to cpufreq@vger.kernel.org, please. analyzing CPU 0:   driver: intel_pstate   CPUs which run at the same hardware frequency: 0   CPUs which need to have their frequency coordinated by software: 0   maximum transition latency: 4294.55 ms.   hardware limits: 400 MHz - 3.50 GHz   available cpufreq governors: performance, powersave   current policy: frequency should be within 3.50 GHz and 3.50 GHz.                   The governor "performance" may decide which speed to use                   within this range.   current CPU frequency is 3.25 GHz. analyzing CPU 1:   driver: intel_pstate   CPUs which run at the same hardware frequency: 1   CPUs which need to have their frequency coordinated by software: 1   maximum transition latency: 4294.55 ms.   hardware limits: 400 MHz - 3.50 GHz   available cpufreq governors: performance, powersave   current policy: frequency should be within 3.50 GHz and 3.50 GHz.                   The governor "performance" may decide which speed to use                   within this range.   current CPU frequency is 3.36 GHz. analyzing CPU 2:   driver: intel_pstate   CPUs which run at the same hardware frequency: 2   CPUs which need to have their frequency coordinated by software: 2   maximum transition latency: 4294.55 ms.   hardware limits: 400 MHz - 3.50 GHz   available cpufreq governors: performance, powersave   current policy: frequency should be within 3.50 GHz and 3.50 GHz.                   The governor "performance" may decide which speed to use                   within this range.   current CPU frequency is 3.26 GHz. analyzing CPU 3:   driver: intel_pstate   CPUs which run at the same hardware frequency: 3   CPUs which need to have their frequency coordinated by software: 3   maximum transition latency: 4294.55 ms.   hardware limits: 400 MHz - 3.50 GHz   available cpufreq governors: performance, powersave   current policy: frequency should be within 3.50 GHz and 3.50 GHz.                   The governor "performance" may decide which speed to use                   within this range.   current CPU frequency is 3.36 GHz.   Please take a look at     current policy: frequency should be within 3.50 GHz and 3.50 GHz.       The governor "performance" may decide which speed to use   Afterwards to go back to powersave I use my little script:  martin@martin-ThinkPad-T570:~$ cat cpu_freq_save.sh  #!/bin/bash sudo cpufreq-set -g powersave -c 0 --min 400MHz sudo cpufreq-set -g powersave -c 1 --min 400MHz sudo cpufreq-set -g powersave -c 2 --min 400MHz sudo cpufreq-set -g powersave -c 3 --min 400MHz   Which resets the min frequency and the governor but as soon as I compile again with my IDE every time the governor and the min frequency changes again.  Any idea how I can disable that automatic change?  PS: If you need more details, just tell me where to find them and I will provide them Alphabetically display the items in itemize I am wondering whether it is possible to display the items alphabetically regardless of the order we type on the backend? For example I am using itemize as follows:  \begin{itemize}     \item ISDYNSTP:  Is dynamic time step used?     \item ISCDCA:     \item MVAR     \item IS2TL_ \end{itemize}   But I want to display the items in the alphabetical order. I don't know whether it is possible or not. I have like hundreds of itemize items. Actually I am trying to create a glossary for the different parameters. Apparently I cannot count. I think there are three files in /media  $ tree /media /media ├── foo ├── onex └── zanna 3 directories, 0 files   However, ls -l finds 12.  $ ls -l /media total 12 drwxr-xr-x  2 root root 4096 Jul 31 20:57 foo drwxrwxr-x  2 root root 4096 Jun 26 06:36 onex drwxr-x---+ 2 root root 4096 Aug  7 21:17 zanna   And, if I do ls -la I get only . and .. in addition to the above, but the count is total 20  What's the explanation? Excel Date to String conversion If n is such that every element $(\mathbb{Z}/n\mathbb{Z})^{\times}$ is a root of $x^2-1$. Prove that $n$ divides 24. I have a hard time formulating proofs.  For this problem, I  can see that if $n$ is equal to $8,$ this statement is true.  $(\mathbb{Z}/8\mathbb{Z})^{\times}$ includes elements:  $1,3,5,7$, and all of these are roots of $1-x^2 \pmod 8.$  And obviously $8$ divides $24.$  But how do I prove this without depending on number calculations and only using theorems?  Help Please?  I need a step by step walk through of how to do this proof and what theorems would be appropriate to use. SF novel -- the only human on a space station full of aliens Some things I remember:   Pretty sure the author was female The novel had won some award or other The title was one word (I think) and it started with "I" (I think) It would have come out in the mid to late 90s or early 2000s It was a paperback or trade paperback, in English.  The book was originally written in English as far as I know. The cover, if I remember correctly, had an orangish background.   The plot involved a sole human representative to what was effectively an alien "United Nations" type of organization.  There were myriad types of aliens, many of whom were completely biologically incompatible.  Even the ones that could live in the same conditions generally found each other either repugnant or incomprehensible.  The main character ended up feeling incredibly lonely and was "set up" with a superficially similar humanoid female, but found their pheromones were incompatible and it was still difficult to communicate. Possible Duplicate:          The FAQ specifies that:     Use your downvotes whenever you encounter an egregiously sloppy, no-effort-expended post, or an answer that is clearly and perhaps dangerously incorrect.   But if I find a correct question, closed (or not yet) as duplicate, is downvote a correct behavior for Stack&nbsp;Overflow policy?