How do I modify algorithmic \while command to type another word How can I type another word for the statement \while in the pseudo-code? Normally, it writes, While *some termination condition* do  and I want to change it to: DONGU: *some termination condition*  And here is the MWE: \documentclass{article} \usepackage[ruled,vlined]{algorithm2e} \usepackage{algorithmic} \begin{document} \begin{algorithm}[ht] \centering \begin{algorithmic} \caption{some algorithm} \label{alg:myalgo} \While {a termination condition bla bla}{     \STATE $do\;something $\;            } \end{algorithmic} \end{algorithm} \end{document}
“While” loop without “do”; “if” statement without “then” I have a similar question as this :     How can I get rid of the do in a for loop and the then in an if   statement when typesetting algorithms using the algorithm and   algorithmicx packages?   but I want the same thing for algorithm2e package.  A minimal compilable example:  \documentclass[10pt]{article} \usepackage[linesnumbered,ruled]{algorithm2e} \SetKwRepeat{Do}{do}{while} \SetKw{KwGoTo}{go to}  \begin{document}  \begin{algorithm} \DontPrintSemicolon \KwIn{$A,B$} \KwOut{$C$} \While{$B &gt; 0$} {      $C = C+1$;      $B = B-1$;     \uIf{$C &gt; A$}        {            \textbf{break}\;        } } \caption{ABC} \end{algorithm}  \end{document}
What is purpose of /etc/shadow and shadow cache files in Linux operating system? What is the purpose of the /etc/shadow file in Linux Operating system?  Also, is it same for SUSE clients? There is one shadow cache file is maintained what is purpose of that? Why is ++i considered an l-value, but i++ is not? I am running centos 5.8 with cpanel. Lately I am getting reports that my swap is full , but there is a lot of free memory  to use.  top - 10:33:43 up 133 days, 17:00,  1 user,  load average: 0.05, 0.03, 0.05   Tasks: 170 total,   1 running, 169 sleeping,   0 stopped,   0 zombie   Cpu(s):  2.1%us,  0.5%sy,  0.0%ni, 97.2%id,  0.0%wa,  0.0%hi,  0.2%si,  0.0%st   Mem:  24726100k total,  8255368k used, 16470732k free,   599560k buffers   Swap:  1046520k total,   984740k used,    61780k free,  3641828k cached     How do I solve this? The unused ram memory should be used instead of the swap. Or should I increase the swap ( and how do I do that ? ).  Thanks Is it possible to install Ubuntu FROM a smartphone? So, I'm in a situation were I want to install ubuntu in my laptop (currently running windows 8) but I don't happen to have pendrives, CDs or the like available. The only "external" device I have with me is a samsung galaxy s2 with a micro SD-card in it.   Is it possible to use the phone as a pendrive to install ubuntu from it somehow? (without damaging the phone's OS and data) Can we have a moderator only "flag for community team/developer attention" link on posts? What are point releases in LTS versions? There are so called "point releases" for LTS versions of Ubuntu. 10.04.3 for instance.  What are those "point releases" releases? Should laptops remain plugged in when their battery is 100% charged? When your laptop's battery is 100% charged, should you leave it plugged in so any battery power doesn't get used, or will that cause overcharging, overheating, etc.? Should the laptop be unplugged when the battery level is 100%?  I'm asking because my laptop's screen tends to get dim when unplugged, so I don't like to run it on battery. If a lens focuses all incoming light to a point, how do we get 2D images? How do lenses produce 2-dimensional images, if a lens bends all incoming rays of light to intersect at the focal point? Shouldn't this produce a single dot of light on a screen placed at the focal length?  This is basically the standard diagram that always shows up in textbooks:    I know this doesn't happen in real life--I used to use telescopes pretty frequently for work. The most in-focus image would be the one with the smallest diameters for the stars, which, of course, we think of point sources at infinity. But--the light from all stars (despite being at infinity) is not all focused at a single point. Instead, each star's light is focused at its own $(x,y)$ point on a 2D image.  I can't reconcile the theory as I understand it with any of my real-life experience with optics. What am I missing? I want to say "someone (or something) intends to help, but instead it makes things worse". Is there any succinct expression or phrase for this?  Thanks. Wireless USB Adapter 0bda:c811 Realtek Semiconductor Corp I know that the product of two Gaussians is a Gaussian, and I know that the convolution of two Gaussians is also a Gaussian. I guess I was just wondering if there's a proof out there to show that the convolution of two Gaussians is a Gaussian. How can I use multiple overlay effects simultaneously in Photoshop? There are 3 overlay effects available in Photoshop as layer styles: Color, Gradient and Pattern. The problem: these effects come in a strictly fixed order!  Is it possible to make a translucent Gradient Overlay over a Color Overlay using only layer styles? Or a Multiply Pattern and Color Overlays? Ignore citations in captions in list of figures when numbering When using the \cite command in figure captions and the ieeetr bibliography style, then  BibTeX numbers the citations as appearing earlier than they do in reality (i.e. the first citation in the document ends up being [42]).  Is there any way to get BibTeX to ignore the \listoffigures section when numbering? How can I know when my screen was locked last time? Exist a log where I can look for that information? I want to know last days when my PC automatically locked the screen because was idle. After two days of installation, strangely my Ubuntu machine is restarting instead of shutdown from both desktop GUI and command line.  sudo shutdown -h now sudo halt  # (doesn't shutdown, instead freezes on boot screen Plymouth)   I had force shutdown by powering off the machine.  This is not happening all the times.  I have been using Ubuntu for 6 months and never experienced this kind of problem. Prove $\sup(f+g) \le \sup f + \sup g$ Suppose $D$ is a nonempty bounded subset of reals. Let $f:D \to \mathbb R$ and $g:D \to \mathbb R$. Define $(f+g)(x)=f(x)+g(x)$. Prove $\sup(f+g)(D) \le \sup f(D) + \sup g(D)$ (also prove that $\sup (f+g)$ exists).   I understand why this is the case, just not how to prove it. Left side is pretty much $\sup  (f(x)+g(x))$ and right side is $\sup (f(x) + g(y))$ for $x,\,y \in D$. Basically $f+g$ has to use the same variable and $f(D)+g(D)$ use different ones. But I don't know how to go about proving this.     The second part of the question is to find a specific example where strict inequality holds.    Let $D=\{a,b\}$ and $f: a \to 1,\, b\to 0, \,g: a \to 0,\, b\to 1$. $\sup f(D) = 1,\, \sup g(D) = 1,\, \sup f(D) + \sup g(D) = 2.$ $\sup (f+g)(D) = 1$ (if we choose a, $f+g = 1+0,\, b,\, f+g=0+1$). How do the bonus perks from the Advanced Warfare Center work? I have been trying to install the latest version of java-8. However, I found out that the  due to changes in the java licence.  How should I update my java to 8.0_201 or 8.0_211 now?  Thanks! I play with some serious board gamers, but we have neglected Monopoly for a number of years, so our knowledge is mostly based on high school &amp; house rules.  We played last week and enjoyed it, but there was a piece of contention. There are times where we decide that we don't like one of our friends for some reason and don't want them to win (i.e. we landed on their property a bunch, or they refused to make a deal, etc.).  So when player 1 has some property and player 2 lands on it and cannot pay the rent their assets (houses/hotels get liquidated), their property gets transferred to the other player. (Please correct me if I'm wrong.) In this case, though, player 3 "traded" the amount of money owing for a piece of property (way overpaid). In this case they did it so that player 1 would not get the properties. Player 2 had no chance of winning the game (all properties mortgaged, no cash to speak of and many of the other properties with 3+ houses/hotels on them).  To summarize: Is it OK for a third player to purchase/trade property or cash to/from a player who is about to lose? C++ pointer address issue