Referring to a correctly-styled pseudocode procedure name from the main text I'm using the  algpseudocode package, and have defined a procedure inside an algorithmic environment that I would like to refer to from the main text.  Inside this environment,  \Procedure{MyProc}{$x$}   and  \Call{MyProc}{$y$}   both display MyProc in what appears to be a nice small-caps style.  I would like this same styling to be applied when I refer to the procedure name from the main text, but I couldn't find a way to do this in , and trying to start an "in-line" environment didn't work:  Calling the procedure\begin{algorithmic}\Call{MyProc}{$y$}\end{algorithmic} results in   It results in the error:  ! LaTeX Error: Something's wrong--perhaps a missing \item.  See the LaTeX manual or LaTeX Companion for explanation. Type  H &lt;return&gt;  for immediate help.  ... l.418 ...thmic}\Call{MyProc}{$y$}\end{algorithmic}                                                   , results in ?   Any ideas?  Please don't tell me I have to grovel through the algpseudocode source code, dig up whatever style it's applying, and hardcode that each time I want to refer to a procedure name...  Thanks!
Referring to correctly-styled algpseudocode procedure name in document Given an algorithm written in algpseudocode:  \documentclass{article} \usepackage{algorithm} \usepackage{algpseudocode} \begin{document} \begin{algorithm}   \caption{Part 1}   \begin{algorithmic}[1]     \Procedure {FooProc}{$G$}       \State ...     \EndProcedure   \end{algorithmic} \end{algorithm} \end{document}   How can I now refer to FooProc in my document (outside of the algorithm environment) such that it has the same typeset as in inside the algorithm environment?
How can I convert a std::string to int? How do I search a specific user's answers? I find in many places mentions of pre-amplifiers being used to boost audio signals prior to feeding to a power amplifier.  Wikipedia's article on  gives some hints at their usage, but it doesn't really explain why it would be necessary to have two amplifiers in series rather than a single one with greater gain.  If a pre-amp is just a power amp with a smaller gain, what's the point, and why the distinction between the two kinds? Is the distinction in function, or simply purpose? In newer Google Maps I can make area available offline.  Do other applications that rely on Google Maps (utilize Google Maps Android API) use offline maps? Can I run two 4k (3840x2160) displays at 60hz on a Macbook Pro 13" 2015 I think the title says it all. Can I run two 4k (3840x2160) displays, both at 60hz on a Macbook Pro 13' 2015? I understand they might need to be SST and each connected to a Thunderbolt 2 port. But I cannot get a confirmation whether that setup would work.    says:     Simultaneously supports full native resolution on the built-in display and up to 3840 by 2160 pixels on up to two external displays, both at millions of colors.   …   Support for up to 5120-by-2880 resolution at 60Hz on a single external display (model with AMD Radeon R9 M370X only)   Unfortunately, it does not state at what frequency the two displays can be run.    says:     With OS X Yosemite v10.10.3 and later, most single-stream 4K (3840x2160) > displays are supported at 60Hz operation on the following Mac computers: … MacBook Pro (Retina, 13-inch, Early 2015) and later. MacBook Pro (Retina, 15-inch, Mid 2014) and later   Unfortunately it does not state whether two displays can be run at 3840 by 2160 at 60hz How to return only the Date from a SQL Server DateTime datatype When learning a new subject, I would frequently use lecture notes found somewhere in the Internet. When writing a paper (or a master thesis, as in my case, but the rules should be similar, I believe) one should give some reference for used results which are not common knowledge, if I understand correctly. This make me wonder: what do I do if I want to reference a result I found in some notes?  The natural thing to do would be to just add these notes to bibliography. What format would be preferable for this? Note that there will generally not be much publishing information, perhaps not even a definite year and place. (A BibTeX template would be .)  Secondly, is it OK to cite such materials as a reference? Every six months a new Ubuntu version will be released. Does anyone know at which time this will be? When to use “that” and when to use “which”, especially in relative clauses All of a sudden, without any change in the index.html, our site is showing up in Google search results (on multiple browsers and devices) with Google Preview text that, instead of giving a summary of our site, now says:     Your browser does not currently recognize any of the video formats available. Click here to visit our frequently asked questions about HTML5 video.     We have a YouTube embed on our homepage that does include an html5 parameter in the media URL link in the embed, but there are no issues playing the video with any browser and device we can find.  What would suddenly cause this text to appear in Google search results?   We are using the  tags as the metatags in the &lt;head&gt; of our webpage and do indeed have title and description tags.    To mimic the behavior of Googlebot, I installed Windows on a VM and got Chromium 41 running. I get the same Google Preview text with the html5 video message when the site comes up in Google search results using this browser.    When I view the site in Chromium 41, I see the YouTube embed and it renders on the page and plays with no issue, just as with all other browser and devices we've tested on. The only time we see this message is in the Google search results, not on our actual site. Robot arm move a box I learned that the force from a magnetic field does no work. However I was wondering how magnets can be used to pick up pieces of metal like small paperclips and stuff. I also was wondering how magnets can stick to pieces of metal like a refrigerator? The definition of derivative of a function $f(x)$ is $$\lim_{h\to0} \frac{f(x+h)-f(x)}{h}$$  Using this definition, the derivative of $\sin\sqrt{x}$ will be:  $$\lim_{h\to0} \frac{\sin\sqrt{x+h}-\sin\sqrt{x}}{h}$$  $$\lim_{h\to 0} \frac{\cos\left(\frac{\sqrt{x+h}+\sqrt{x}}{2}\right)\sin\left(\frac{\sqrt{x+h}-\sqrt{x}}{2}\right)}{h}$$  Now i got stuck. How to find the limit or simplify this expression?  I get intuition that we have to use $$\lim_{x\to0}\frac{\sin x}{x} = 1$$  but that too is leading no where. I am unable to remove h from denominator.  NOTE  I know the derivative of $\sin\sqrt{x}$ is $\frac{\cos\sqrt{x}}{2\sqrt{x}}$ using chain rule, but this exercise was given to us for practice using division quotient. I need to find a bottleneck and need to accurately as possible measure time.  Is the following code snippet the best way to measure the performance?  DateTime startTime = DateTime.Now;  // Some execution process  DateTime endTime = DateTime.Now; TimeSpan totalTimeTaken = endTime.Subtract(startTime); Identify $E(X\mid X+Y)$ for $X$ and $Y$ independent and Poisson I am currently trying to understand how does an instance of the EM algorithm is derived when there are "hidden variables" in this old paper: .  I don't really understand how the expectation step is derived, and what bothers me the most, is that I cannot prove the following statement (right before 2.11):  $$ \mathbb{E}[X|X+Y] = \frac{(X+Y)\lambda_X}{\lambda_X+\lambda_Y} $$  where $X \sim Poisson\{\lambda_X\}$ and $Y \sim Poisson\{\lambda_Y\}$  To begin, I wrote the discrete expectation as follows: $$ \mathbb{E}[X|X+Y] = \sum_{k=1}^{X+Y} k P(X=k|X+Y)\\ = \sum_{k=0}^{X+Y} k \frac{P(X+Y|X=k)P(x)}{P(X+Y)} $$  Where I can replace $$ P(X+Y=k) = \frac{(\lambda_X+\lambda_Y)^ke^{-(\lambda_X+\lambda_Y)}}{k!}$$ $$ P(k=x) = \frac{\lambda_X^xe^{-\lambda_X}}{x!}$$ $$ P(X+Y=k|x) = P(Y=x-k) = \frac{\lambda_Y^{x-k}e^{-\lambda_Y}}{(x-k)!}$$  but I dont really know how to mix that together, because I don't really see what does the event $X+Y$ stands for, and how does it rely on the x in the integral ?  Thank you very much for you help How to show that the monomials are not a Schauder basis for $C[0,1]$ why the monomials are not a Schauder basis for $C[0,1]$?  $p_n(x)=x^n$ such that $(p_n)$ does not form a Schauder basis for $C[0,1]$  span$\lbrace p_n : n\ge 0\rbrace$ is dense in $C[0,1]$ by Weierstrass approxmation theorem, but I cannot figure out why they are not a Schauder basis.  Could you please explain Bag A has $3$ white and $2$ black marbles. Bag B has $4$ white and $3$ black marbles.  Suppose we draw a marble at random from Bag A and put it in Bag B. After doing this, we draw a marble at random from Bag B, which turns out to be white. Given this information, what is the probability that the marble we moved from Bag A to Bag B is white?  At first since the probability that white is $1/2$ is $2/5$, and the probability that white is $5/8$ is $3/5$, I thought a sufficient answer would be $$\begin{align}\tfrac 1 2 \cdot \tfrac 2 5 + \tfrac 5 8 \cdot \tfrac 3 5 &amp; = \tfrac 1 5 + \tfrac 3 8 \\ &amp; = \tfrac 8 {40} + \tfrac {15}{40} \\ &amp; = \tfrac {23}{40}\end{align}$$, but that was wrong.   Can someone provide me with an answer? Thanks How do I run Command & Conquer Gold on Windows 7 64-bit (in XP mode)? I downloaded the first Command &amp; Conquer game  and burnt some CDs. I couldn't get the Setup.exe program to run in Windows 7 64-bit, as it must need some old DLLs. So I ran up the Windows XP Mode virtual machine, and was able to install it fine.   However, when I try to run the program, I just get an empty message box with an "OK" button. I've set the compatibility to Windows 95, and checked all of the options in the Compatibility tab, but it's not running. I also downloaded the patch suggested by EA, which is an updated version of the THIPX32.DLL file (copied into the C&amp;C installation folder).  Has anyone managed to get this working? Every Function in a Finite Field is a Polynomial Function Command Shift Period (show hidden files) stop working On my MacBook with OS Mojave, Command Shift Period (show hidden files) stop working. How to restore it?? Thanks in advance!