I'm trying to make a number guesser that starts from 000001 and counts up all the way to 999999 how can I do that?
Given: a = 1 b = 10 c = 100  How do I display a leading zero for all numbers with less than two digits? This is the output I'm expecting: 01 10 100
Prove that a topological space equipped with a delta-complex structure is Hausdorff Why is the multiplicative group of a finite field cyclic? Can HIV be transmitted via mosquitos? It is known that HIV is usually transmitted by direct blood or body fluid contact between an infected individual and a healthy person (like blood transfusion or needle sharing):  Suppose a mosquito bites an individual suffering from AIDS and in the process sucks up some T cells infected with HIV along with RBCs. Then it bites another person not suffering from the disease, and transfers these infected T cells. Isn't there a high probability of the second individual contracting HIV? Search among posts you've voted for Related posts:    These posts are different from mine in that they merely ask for the &quot;votes&quot; tab back or ask if it is at all possible to get such information, while I propose how to implement this as a search feature. Background I recently found myself facing a problem very similar to one that I had solved before. I remembered that I found the solution on SO and I remembered upvoting the post containing the solution. I wasn't able to find that particular post by just searching with relevant keywords. It would have been nice if I could search only among the questions I have voted on. I searched on meta and found that there had been a tab for looking at what you've voted on, but that it was removed due to lack of interest. This is understandable, since just listing the hundreds/thousands of posts you've voted on isn't particularly useful. Proposal What I want is to be able to search for posts I've voted on similarly to the way I'm able to search on my posts within a specific tag. For instance: user:310121 [iphone] apple  This will return all my posts tagged iPhone, where I mention Apple. This is brilliant. This is just how I want search to work. Now what I want to do is to extend this to include votes. The exact syntax isn't relevant, but I had to make one up to show you what I mean: To show all posts you've voted on: user:310121 {votes}  To show all posts you've upvoted: user:310121 {upvotes}  To show all posts you've downvoted: user:310121 {downvotes}  You could probably omit the the user part, since you're only allowed to see your own votes. (Unless it's desirable to be able to look at other peoples votes. Maybe you should be allowed to do this if you have enough rep? Well, that's another discussion.) I guess that even if you're allowed to see other peoples votes it would make sense to display your own votes if the user part is omitted. So in my case I could have done the following search and found the post I was looking for: {upvotes} keyword  Lastly I just want to suggest that clicking on your vote count will work just like clicking on a tag. If I click on a tag in my profile the following search will be done: user:310121 [tag]  So if I click on my upvote count the following search should be made: user:310121 {upvotes}  The same goes for downvotes: user:310121 {downvotes}  This would be a very useful feature and it wouldn't be intrusive in any way. The users that don't care for this feature might never know that it's there. And just for the record the favorite system doesn't replace this feature. I'm sure everyone is familiar with the Ship of Theseus paradox, basically "If you replace parts of a ship over time until none of the original ship is left, is the end product still the same ship?"  I just read pop philosophy books, so spare me if this is an idiotic question, but could this be applied to the Brain and consciousness? If you were the take individual atoms/neurons, and somehow replace them with its exact copy one at a time, how would the person experience that?   I don't think there would be an interruption of consciousness, but at the end it's a completely separate (but identical) brain from the one you started with. Exactly as if you had just cloned the whole thing, right? But without interruption.  What interests me is the gradual transition of consciousness here, is it possible to know how that would  work?  I think I remember hearing people argue similarly for both the existence of a transcendent soul and also AI consciousness. And the only other discussion I found of this was on a flat earth forum, so I don't know what to make of that.   I hope I articulated my question clearly. Thank you! Proving the second root of a quadratic equation If $\alpha$ is a root of the equation $4x^2+2x-1=0$, then prove that $4\alpha^3-3\alpha$ is the other root. How do I proceed? The sum of the roots, the product of the roots lead me nowhere. Should I find the roots of the equation and substitute in the given two expressions of $\alpha$ and check whether manipulating the first root gives me the second root (which seems much complicated), or is there any other way? Write18: capturing shell (script) output as command/variable? Let's say I compile the following file with pdflatex -shell-escape test.tex:   \documentclass{minimal}  \begin{document}  File listing is:  \immediate\write18{ls /usr}  \end{document}   This will send the output of the command ls /usr to report/log of pdflatex (primarily to stdout).   There are then two cases I'd like to utilize:    The output of ls /usr being included directly in the document (LaTeX stream). The output of ls /usr becoming the contents of a \newcommand (by this I mean, that I'd like the script to be executed when the \newcommand is executed first - and upon subsequent calls to the new command, the shell code should not be executed anew).    I have read through , but I'm not sure if this "pipe input" can be applied to \newcommand.   I have also read through  - and it seems that Tex' file I/O should be used; but I'm quite disliking the fact that I'd still have to redirect the script output (actually, in this case, the ls /usr output) to a file, and then read it in, to have it as contents of a command.   So, is there an easier way to achieve what I'd want (hopefully, illustrated through an example based on the above code)?     EDIT: Ehm, I should have asked one more question earlier :) I'll try with an edit here, although it will probably get missed .. :)   I originally asked for a \newcommand that will execute shell code only upon its definition (i.e., in a sense it is "cached"); and the answer from @egreg does exactly that. But then - would it be possible to have a different \newcommand definition, such that each time this newcommand is called, the shell command is executed anew? I.e. executing something like \@@input|"cat tempfile" (which cannot be executed as such), where tempfile changes between calls? In The Dark Knight Rises, at the beginning of the film Bane kidnapped a guy from the plane, then he drew blood from the guy he kidnapped. And then throughout the movie I didn't see any news regarding this kidnap scene. But, before the end of the movie we find out that the guy kidnapped by Bane was Dr Pavel. Bane needed him to convert the fusion project into a nuclear bomb and Dr Pavel was the only guy who could have done it.   But I don't understand, why did he draw blood from Dr Pavel? Disposing WPF User Controls Revert new tab page behavior in Google Chrome 29+ I don’t like the behavior of the new tab page in Google Chrome 29+. How can I restore the old behavior?  The new tab page (if you have Google set as the default search engine) now shows the Google logo (or, apparently, the doodle of the day if there is one), a search box, and a few recently visited websites. It also added an Apps button to my favorites bar, seemingly the only way to access my apps page, which has easy access to things I use regularly (Calendar, Gmail, Docs, G+, Facebook, Feedly, Google News, Netflix, Play Music, Pandora, Drive, Keep, etc.) I don’t like this behavior. I actually don’t mind having the logo of the day and search box, but I want my apps linked to on my new tab page.  Is there any way to get the old behavior back? I checked the settings and it doesn’t seem like it’s possible to set chrome://apps to be the new tab page (which would restore the old behavior) or to configure the new new tab page to display apps instead of recently visited sites. i have a huuuuge problem.  Created a snapshot and image from my instance...instance has 1000GB of disk.  Now i need to reduce it but everytime i try to create an image or a snapshot from that, i get the same error "Disk need to be at least 1000GB".  There is a way to reduce disk size directly on instance? Some workaround? Have the Linux kernel bugs that caused data loss when using a Samsung 850 Pro SSD been resolved? I just got a brand new Samsung 850 Pro SSD, and I would like to install Ubuntu 14.04 onto it.  I have read some pretty ugly stories of data loss with the 850 series SSDs when using Linux due to bugs in the kernel, as well as bugs in the TRIM operation.  I have done my research, but most of what I'm finding is very outdated. For example, see , and , as well as .  My question is, what is the current status? Have all major the bugs been worked out yet? Can't move/snap Nautilus window to occupy left or right half of the 1366x768 screen - is it just me? I'm running Ubuntu 18.04 LTS with GNOME Shell. Nautilus does not want to occupy 50% (left or right) of the screen sized at 1366x768.    Other applications (such as GNOME Terminal, Eye of GNOME, Gedit) are normally snapping to the left/right half of the screen.  But Nautilus can be resized to the width lower than half of screen (I can get 650 px, which is smaller than 1366/2 = 683 px).  The first usable screen resolution seems to be 1400x1050, then goes 1440x900. But large amount of current devices .  Is it just me?     Updates: 1. standard shortcut Super+← or Super+→ do not work too. 2. I reported  which has linked upstream . 3. It does not work on GNOME FlashBack session too. There are several distinct usages:   kernel density estimation   kernel trick   kernel smoothing   Please explain what the "kernel" in them means, in plain English, in your own words. How can I specify JUnit test dependencies? Is there a way to have a copy of any message sent from a Gmail account sent to another address?  I've got any messages coming to my address copied to another (see  for one solution, setting up filters is another), but I haven't yet found a way to have outbound messages automatically copied.  Is there a way? I searched wide and far and couldn't come up with a title for a movie I watched somewhere around the mid-90ies up to early 00's as a rerun in late-night television (in Germany, specifically on Vox; but I'm sure it was an American movie to begin with).  Basically, what I remember from the story revolves around a crew in a space station or maybe space ship of some sort. Some crew members murder other crew members and there is some kind of door they are not supposed/unable to go through. Late in the movie they do go through the door and I'm pretty sure one of the first views is a skeleton of a dead security guard. It turns out the whole thing was some kind of simulation gone wrong and they find themselves to be in a (nuclear?) wasteland. And that's pretty much the revelation/wrap-up of the movie, as I recall it.  I would be delighted if somebody had any idea what movie this could be :) Thanks!  EDIT: The whole movie was in color and I think it was feature-length, not just 45 mins. How to align text in TikZ nodes by baseline? I need to draw a graph where some nodes have the same y-coordinate. I want the text within the nodes on the same y-coordinate to be baseline-aligned. However, the text seems to be aligned by the bottom lines, not the baseline.   Here's what I tried to do:  \documentclass[final,t]{beamer} \mode&lt;presentation&gt; \usepackage{tikz} \usepackage{pgfplots} \tikzstyle{gate2} = [circle,fill=white,draw=black,minimum size=1cm] \begin{document}     \begin{tikzpicture}         \node[gate2] (mu_0) at (0, 0) {$\mu_0$};         \node[gate2, baseline = (mu_0.base)] (Lambda_0) at (2,  0) {$\Lambda_0  $};     \end{tikzpicture} \end{document}   What I see is that the shapes are at the same y-coordinate (as expected), but mu is higher than Lambda. How do I specify that mu and Lambda should be on the baseline? A generic question across most board games: once a player has taken their turn (taken their finger off the piece they are playing), should they be allowed to change their mind?  Similarly, if a player forgets to take a privilege, such as an occupied building in Puerto Rico giving an extra worker, or plantation, if they remember a few moves later, should they be allowed to take the privilege?  Very few rules explicitly express how these events should be dealt with, so they are generally left up to the group. However, my group's rules will change depending on the personality of the players playing (not all members are available each time we play). I would like to make this consistent, and would appreciate feedback on how others deal with this scenario. What is the method for converting radians to degrees? I run into this occasionally and always forget how to do it.  One of those things that pop up ever so often.  Also, what's the formula to convert angles expressed in radians to degrees and back again?