Application.exit() calls FormClosingEvent of different Windows Form
How to close entire application when application has more than 2 forms without showing messagebox more than once
List has No Rows for Assignment to SObject: Error 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 Xorg 100% cpu with pulseaudio On Ubuntu 16.04.3 LTS  Pulseaudio causes Xorg to use 100% CPU.  After disabling autospawn in /etc/pulse/client.conf and killing pulseaudio CPU immediately drops to acceptable level. After restarting pulseaudio Xorg returns to 100% CPU.  pulseaudio --kill pulseaudio --start   Installed versions:  pulseaudio 1:8.0-0ubuntu3.7 xorg       1:7.7+13ubuntu3 nvidia-390 390.30-0ubuntu1    How to fix this? Javascript to sort contents of select element is there a quick way to sort the items of a select element? Or I have to resort to writing javascript?  Please any ideas.  &lt;select size="4" name="lstALL" multiple="multiple" id="lstALL" tabindex="12" style="font-size:XX-Small;height:95%;width:100%;"&gt; &lt;option value="0"&gt; XXX&lt;/option&gt; &lt;option value="1203"&gt;ABC&lt;/option&gt; &lt;option value="1013"&gt;MMM&lt;/option&gt; &lt;/select&gt; Evaluating $\int_{0}^{\infty}\frac{\sin^{2n+1}x}{x}\mathrm{d}x$ I was generalizing the following integral: $$\int_{0}^{\infty}\frac{\sin^{2n+1}x}{x}\mathrm{d}x \hspace{40pt} n\geq 0$$ We can start by noting that $\sin x =\dfrac{e^{ix}-e^{-ix}}{2i}$ and thus $\displaystyle \sin^{2n+1}x=\frac{(-1)^n}{2^{2n}}\sum_{r=0}^n (-1)^r \binom{2n+1}{r}\sin(2r+1)x$. This implies $$\begin{aligned}\displaystyle \int_{0}^{\infty}\frac{\sin^{2n+1}x}{x}\mathrm{d}x &amp;=\frac{(-1)^n}{2^{2n}}\sum_{r=0}^n (-1)^r \binom{2n+1}{r}\int_{0}^{\infty}\frac{\sin(2r+1)x}{x}\mathrm{d}x \\ &amp;=\frac{(-1)^n\pi}{2^{2n+1}}\sum_{r=0}^n(-1)^r\binom{2n+1}{r} \\ &amp;=\frac{(-1)^n\pi}{2^{2n+1}}\sum_{r=0}^n\left((-1)^r\binom{2n}{r}-(-1)^{r-1}\binom{2n}{r-1}\right)\end{aligned}$$ Where I have used the well known  $\displaystyle \int_{0}^{\infty} \frac{\sin(2r+1)x}{x}\mathrm{d}x=\int_{0}^{\infty}\frac{\sin x}{x}\mathrm{d}x=\frac{\pi}{2}$ and the property of binomial coefficients that $\displaystyle \binom{n}{r}+\binom{n}{r-1}=\binom{n+1}{r}$ Since the above sum telescopes, we have $$\displaystyle \int_{0}^{\infty}\frac{\sin^{2n+1}x}{x}\mathrm{d}x=\frac{(-1)^n\pi}{2^{2n+1}}(-1)^n\binom{2n}{n}=\frac{\pi}{2^{2n+1}}\binom{2n}{n} ~\forall ~ n\in \mathbb{Z^{+}}$$ I would like to know other methods for evaluating this integral. Substituting table salt or sea salt for kosher salt? The roasted chicken recipe I'm following of course calls for kosher salt, but I don't have any, and getting some is out of the question.  I have sea salt and table salt on hand.  Can I substitute one of those instead, and if so, what is the proper ratio of the kosher salt the recipe calls for to either sea salt or table salt? One of the joys of working for a government healthcare agency is having to deal with all of the paranoia around dealing with PHI (Protected Health Information). Don't get me wrong, I'm all for doing everything possible to protect people's personal information (health, financial, surfing habits, etc.), but sometimes people get a little too jumpy.  Case in point: One of our state customers recently found out that the browser provides the handy feature to save your password. We all know that it has been there for a while and is completely optional and is up to the end user to decide whether or not it is a smart decision to use or not. However, there is a bit of an uproar at the moment and we are being demanded to find a way to disable that functionality for our site.  Question: Is there a way for a site to tell the browser not to offer to remember passwords? I've been around web development a long time but don't know that I have come across that before.  Any help is appreciated. jQuery not working when a new row is added to table hierarchical retreival of records in postgresql I have a Java bean like this:  class Person {   int age;   String name; }   I'd like to iterate over a collection of these beans in a JSP, showing each person in a HTML table row, and in the last row of the table I'd like to show the total of all the ages.  The code to generate the table rows will look something like this:  &lt;c:forEach var="person" items="${personList}"&gt;   &lt;tr&gt;&lt;td&gt;${person.name}&lt;td&gt;&lt;td&gt;${person.age}&lt;/td&gt;&lt;/tr&gt; &lt;/c:forEach&gt;   However, I'm struggling to find a way to calculate the age total that will be shown in the final row without resorting to scriptlet code, any suggestions? How to align prices in columns when both 2 digit and 4 digit variations of a price exist? When I double-click on a script in Nautilus in order to run it, the script opens in my text editor with no option to do so.  Using Nautilus, how do I run executable text files and/or scripts? Schengen visa refusal on threat to public policy, security, health What resampling method is used in the raster 'Save as...' dialog? I received a raster that was resampled using the Save as dialog in QGIS. Now I need to describe the resampling process in a report. But I could not figure out the method used in the resampling. Is it Nearest Neighbor? Bicubic?  This question has been asked before () but the answer does not specify the method used.   I also tried looking at the QGis source code in GitHub, but unfortunately, I could not find where the magic takes place (I'm not a programmer) Is there a good reason to use "printf" instead of "print" in java? How to properly hook up various maps types in Cycles? I created some texture maps in MindTex to use in Blender, but I can't figure out how to properly hook them up. The maps I have:  - Diffuse  - Normal  - Height   - Specular   - Gloss   - Self Illumination  - Reflection  - Ambient Occlusion   MindTex (left) vs. Blender (right)  As you can clearly see it's a pretty big difference.  is my material node setup in Blender. In the examples I don't actually use self illumination or reflection images, but including this in the answer would be helpful. Expressing an opinion: to me or for me? When is a biased estimator preferable to unbiased one? Body Diode of a MOSFET So for some MOSFETs, specially with Power MOSFETs, the body diode is a flyback diode that (as far as aI can tell) can be conveniently added to the MOSFET's bulk as there already PN junctions (correct me if I'm wrong).  I've looked at the datasheet of a Power P-MOSFET and it has parameters like "Internal Source Inductance" and "Internal Drain Inductance". So, is the build up of reverse voltage on the source and drain sides, when said MOSFET is suddenly turned off, a behavior intrinsic to (at least some) MOSFETs? Or are these from the rest of the circuit, say inductive loads? How can I load a Python module given its full path? Note that the file can be anywhere in the filesystem, as it is a configuration option.