random number generation and probability problems
Random number generation and probability
Should I vary input field lengths in a single page checkout form? Change default shell for Terminator Calculation of pressure from flow rate of water Anybody kindly help me to find how to calculate pressure in bar from flow rate. I have a pipe and from that I am transferring water at a constant flow rate of 5ml/min. At this flow rate, with a 0.5 cm diameter pipe, what will be the pressure generated by water? Maximum of $|\sin(z)|$ as $\{z: |z| \leq 1 \} $  So according to the Maximum Principle, the maximum is when $|z|=1$. I tried using the fact that $\sin z= \dfrac {e^{iz}-e^{-iz}}{2i}$, but didn't know how to continue from there. Setting $z=e^{it}$ doesn't help much.  I saw this question was answered before, however the answer uses hyperbolic functions ($\sinh, \cosh$) which I haven't actually studied.  Thanks in advance for any assistance! I'm trying to use the ant migration tool to retrieve all the Custom Metadata records for a single Custom Metadata Type.  However, I can't figure out the syntax.  I would think that something like this would work:    &lt;Package xmlns="http://soap.sforce.com/2006/04/metadata"&gt;     &lt;types&gt;         &lt;members&gt;State_Sales_Tax.*&lt;/members&gt;         &lt;name&gt;CustomMetadata&lt;/name&gt;     &lt;/types&gt;     &lt;types&gt;         &lt;members&gt;State_Sales_Tax__mdt&lt;/members&gt;         &lt;name&gt;CustomObject&lt;/name&gt;     &lt;/types&gt;     &lt;version&gt;36.0&lt;/version&gt; &lt;/Package&gt;   but no dice. PHP & MYSQL: using group by for categories How to make a good glow effect around a sun? $_POST empty on utf-8 characters I would like to show that   $$ \int_{0}^{1} \frac{x-1}{\ln(x)} \mathrm dx=\ln2 $$  What annoys me is that $ x-1 $ is the numerator so the geometric power series is useless.  Any idea? Is volunteer work allowed in the US while visiting under the VWP or a B1/B2 visa? I am going to Santa Monica for 4 weeks to polish my English in July and would like to volunteer at the Planetary Society located in Pasadena.  I am a Swiss citizen and have a biometric passport. However, I don't have any special visa, as there is no visa needed for the school I am attending and using the Visa Waiver Program, I am allowed to stay up to 90 days in the US.  Am I allowed to do volunteer work during my stay? I cancelled the Microsoft Windows 10 Reservation and uninstalled KB3035583, but Windows 10 is still trying to install.   After I uninstalled KB3035583 and restarted my laptop as instructed, I could not find KB3035583 to hide it.   Now Windows 10 is sitting in my Windows Update saying that it will install when I restart my computer. Just noticed a minor css issue on this question:    The related questions on the right hand side have some overlapping text in Chrome:        (This only applies to this very site, Meta Stack Exchange) SyntaxError: invalid syntax // SyntaxError: unexpected EOF while parsing How do I detect text inside of this, this is HTML &amp; this is XPath. I tried  HTML     &lt;span class="messageText"&gt;Hello.&lt;/span&gt; XPath     //*[@id="liveAgentChatLogText"]/span[22]/span[2]   I tried with this but it didn't work, it said no such element found.  driver.find_element(By.XPATH, '//*[@id="liveAgentChatLogText"]//*[contains(string(.), "Hello")]') E.g.: If your Gmail ID is abc.xyz@gmail.com, it considers this the same as abcxyz@gmail.com.  Why is this so? Purge unused data (e.g. particle system, or groups) by script How can I completely remove a objects (e.g. particle system or groups used in particle systems) in blender using python?  The problem is this: I have a script, with which I create a scene (e.g. adding some normal objects and some group of objects with a particle system). For a research study I would like to repeat that that several times, without restarting blender. So I can create a scene, delete everything, e.g. with a script like this:  import bpy scn = bpy.context.scene for obj in scn.objects:     obj.select = True bpy.ops.object.delete()   If I rerun the script to recreate the scene with objects using particle system, the latter is not shown in the scene anymore (only the placeholders of the particle system). Now I'm not sure where exactly the problem lies, but I guess not everything is immediately deleted, running the script above. Only the startup of blender helps (but that's not what I want) or pushing the purge button. The purge button seems to start the command:  bpy.ops.outliner.orphans_purge()   But I can't get this piece of code to run in the console. It says that "the context is incorrect". Is there a way to purge the unused data by python script? Thanks a lot for any help. Equivalent definitions for simple connectivity Register On-Click Event with jQuery - Not Firing How to modify itemize vertical spacing within blocks in beamer? I have noticed that when I have "itemize" environments defined within blocks in beamer, that they introduce more vertical spacing between the top and the bottom of the blocks, than vertical text. Since I have a slide with some text filled blocks and directly after, a slide with only "itemize" holding blocks, I would like the spacing between the itemized text and the block to be the same as for regular text.   On  I have read about "squeeze" option, but it doesn't seem to work...   Additional info:  The problem is in the additional vertical space that is included by the "\itemize" environment. I have found  on how to remove vertical spacing from the itemize list, and I am using this approach. However, it is a brute force approach. What I would like to know if it is possible to have the same vertical space between the end of the itemize list and the bottom of a block, as the one set between the normal text and the bottom of the block.   MWE:   \documentclass[10pt]{beamer} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{exscale} \usepackage{epsfig} \usepackage{fancybox} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage{overpic}  \usepackage{multimedia}  \usetheme{default} \usecolortheme{crane}  % -- Modifications that enable the footline and set black color for the fonts  \setbeamertemplate{footline}{%     \begin{beamercolorbox}[wd=\paperwidth,ht=2.25ex,dp=1ex,right, rightskip=1mm, leftskip=1mm]{titlelike}         \textcolor{black}{             %\inserttitle\hfill\insertauthor\hfill\insertframenumber%             Something\hfill Something Else \hfill\insertframenumber%         }     \end{beamercolorbox} }  \setbeamertemplate{itemize items}[square]  \setbeamercolor{item}{fg=black} \setbeamercolor{frametitle}{fg=black} \setbeamercolor{block title}{fg=black} \setbeamercolor{title}{fg=black} \setbeamercolor{block body}{bg=white}  % END Modifications  \begin{document}   \begin{frame}   \frametitle{text blocks}     \begin{block}{block}         block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   blockk     \end{block}{block}      \begin{block}         block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block     \end{block}     \begin{block}{block}         block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block   block     \end{block} \end{frame}  \begin{frame}   \frametitle{itemize blocks}     \begin{block}{item}         \begin{itemize}             \item item              \item item              \item item         \end{itemize}     \end{block}     \begin{block}{item}         \begin{itemize}             \item item              \item item              \item item         \end{itemize}     \end{block}     \begin{block}{item}         \begin{itemize}             \item item              \item item              \item item         \end{itemize}     \end{block}   \end{frame}  \end{document} I have the Xiaomi Mi A3 and I'm currently on both phone and PC latest stock update. I am using Windows 10 20H2 and I have tried everything – but still don't get it. I tried another Mi A3 and it got attached normally. I've tried installing all kind of drivers and different ports, nothing. When suddenly it worked and I installed the stock ROM – but because the stock ROM is kinda laggy and ugly I want to change it. But I can't because I am also on stock recovery and I can't install another recovery because my device isn't recognized in fastboot mode. My device is recognized in adb mode and in edl mode as well, only not in fastboot. If $A^2\succ B^2$, then necessarily $A\succ B$ I remember reading somewhere about the following properties of non-negative definite matrix. But I don't know how to prove it now.  Let $A$ and $B$ be two non-negative definite matrices. If $A^2\succ B^2$, then it necessarily follows that $A\succ B$, but $A\succ B$ doesn't necessarily leads to $A^2\succ B^2$.  How can you prove it? Thanks!