I'm trying beamer for the first time (but have some experience with LaTeX).  I want to use \pause and number some problems, but the numbers increment when I don't want them to.  There must be a simple way to fix this, but I haven't found it yet. Here is an example of code  \documentclass{beamer} \usetheme{Madrid}  \newcounter{bar} \newcommand{\pbctr}{%    \stepcounter{bar}%     \thebar}  \begin{document}  \begin{frame}{Some examples and problems} \begin{block}{Problem \pbctr} \begin{enumerate} \item How many divisors does the number 2 have? \pause \item How many divisors does the number 4 have? \pause \item What is the smallest number with six divisors? \end{enumerate} \end{block} \pause \begin{block}{Problem \pbctr} \begin{itemize} \item Can I distribute evenly 30 apples amongst 5 children \pause \item Can I distribute evenly 33 apples amongst 6 children? \end{itemize} \end{block} \end{frame} \end{document}   Any help would be appreciated.  code
I'm trying to continue the numbering of examples in enumerate environments in beamer. For example, I'd like one slide to feature   Foo Bar   and the next slide   Zip Yadda   My strategy so far has been to define a counter that saves the enumerate counter at the end of the first environment and can then be queried to set the enumerate counter at the start of the second enumerate environment. (This is essentially the proposal also found at )  That works wonderfully so long as I don't try to uncover elements of the slide sequentially. The problem, of course, is that as each of the pdf-pages that make up the slide is created, the counter is advanced. Here's a MWE.  \documentclass{beamer}  \setbeamercovered{highly dynamic}  \newcounter{saveenumi} \newcommand{\seti}{\setcounter{saveenumi}{\value{enumi}}} \newcommand{\conti}{\setcounter{enumi}{\value{saveenumi}}}   \begin{document}  \begin{frame}[&lt;+-&gt;]   \begin{enumerate}   \item foo   \item bar%     \seti   \end{enumerate} \end{frame}  \begin{frame}[&lt;+-&gt;]   \begin{enumerate}     \conti   \item zip   \item yadda%     \seti   \end{enumerate} \end{frame}  \end{document}   As the second slide is progressively uncovered (pages 3 and 4 of the resulting PDF), the counter at the beginning of the enumerate environment is advanced each time. So page 3 of the PDF has the right numbering, (3) and (4) respectively, while the fully revealed page has the wrong numbering. Pictures follow:   on one of the slides    on the following one
What is the tolerable magnetic field (in Tesla) for a hard disk? I was wondering what would be the safest magnetic field for a hard drive so that the data inside it is safe and not wiped off?  For example I have a 2.1 home theatre system and when I take my android phone near it to check the magnetic field range it gives me a reading of 1000 micro Tesla. Would that be considered safe for a nearby hard disk? Union of uncountable cardinals Uploading an image from the web can leave paste broken in editor Show the number of up-votes and down-votes on the mobile site theme How do I start applications automatically on login? How can I make an application automatically start when I have logged in? Around 3 months ago, I submitted a paper to a Math journal for peer-review through an online submission system. The same day I received in my e-mail an acknowledgement saying that the paper had been received.  The problem is that the status of the paper on the online submission system is still "Manuscript submitted".  I think this means that the paper has not even been assigned to an editor yet (once this happens, the editor will probably start looking for reviewers), but as far as I know submissions are assigned to editors within a few weeks (I once submitted a paper to another journal and when an editor had been assigned, the status on the online system changed to "Editor handles" or something like that).  I know that publishing is a long and complicated process and I'm not trying to rush anybody, but sometimes manuscripts are lost in the system. In fact, this has once happened to me, so I just want to make sure that the paper was not lost in the system.  Should I send an e-mail asking for the status of the paper?  PS: I think that, at the time of submitting the paper, I didn't choose any specific editor to submit the paper to. Does Python have a ternary conditional operator? How do I get a slanted \sum symbol? I want to use a slanted \sum symbol denoting a different meaning from summation. How do I get a slanted \sum symbol? I am trying to slice up my models using the Boolean modifier.  After applying the modifier on my smooth mesh, I get the expected result, a flat dissection to separate my mesh into two.  The problem lies in how I can resolve the visual "jaggered" edge that separates my (smooth) mesh exterior from the flat dissection face.    Is it possible to achieve a smooth-to-flat variation without this artifact?   I tried to alter a mixture of the two but end up with artifacts, or unwanted blocky flat mesh faces around the dissection edge of my mesh. "It looks straightforward, but actually it isn't" In , I asked about proof of statements which are simple but incorrect.   Here, I ask about statements which seems, at a first glance, straightforward, but if we try to write a proof, we can see it's much harder than it looked. So I expect the answers to contain:   the statement; why it looks easy to prove; why actually it isn't. Continuous and bounded imply uniform continuity? How do I avoid the "S to Skip" message on boot? After upgrading my laptop from karmic to lucid, my fat32 partition won't mount automatically. I get the message:  The disk drive for /osshare is not ready yet or not present Continue to wait; or Press S to skip mounting or M for manual recovery   Funny thing is, if I skip, then /osshare/ is mounted once I log in.   I've a similar setup on my desktop, and it works fine. Fstab on desktop:  UUID=4663-6853  /osshare        vfat    utf8,umask=007,gid=46 0       1   /etc/fstab on laptop:  UUID=1234-5678 /osshare vfat utf8,auto,rw,user 0 0 gain admin access to sql express 2008 Which method performs better: .Any() vs .Count() > 0? in the System.Linq namespace, we can now extend our  to have the  and  extension methods.  I was told recently that if i want to check that a collection contains 1 or more items inside it, I should use the .Any() extension method instead of the .Count() &gt; 0 extension method because the .Count() extension method has to iterate through all the items.  Secondly, some collections have a property (not an extension method) that is Count or Length. Would it be better to use those, instead of .Any() or .Count() ?  yea / nae ? Normally to remove files with spaces in their filename you would have to run:  $ rm "file name"   but if I want to remove multiple files, e.g.:  $ find . -name "*.txt" | xargs rm   This will not delete files with spaces in them. I'm struggling to understand the difference between the standard error and the standard deviation. How are they different and why do you need to measure the standard error? Is there a travelling speed of for electric field? If yes, what is it? Consider two circuits containing a battery, bulb, switch and conducting wires but of length 1 meter in one case and 1000KM in other. When switched on at the same time both the bulbs glow instantaneously. I think it is because, electric filed travels from positive terminal of battery to negative terminal through wire almost instantaneously.  My question is there any speed for this electric field? If yes, what is it? By any modification in this circuit is it possible to induce any delay in glowing the bulb? Configure HAProxy to include host headers for different backends I am exploring the use of HAProxy as a balancer in front of a set of web apis that run on IIS.   node1.myapp.mycompany.com node2.myapp.mycomapny.com   We are currently using Host Headers to correctly resolve the right web application on IIS.  For example, we may have otherapp.mycompany.com running on the same server/port, but using Host Headers IIS knows which one to serve up.  My initial attempt at HAProxy left me with 404 errors, because I was not including the host headers in my request, and so IIS was serving back the default site bound to the given IP, and not resolving by host name.    The fix left me with something like this:  frontend localnodes     bind *:80     mode http     default_backend nodes  backend nodes     mode http     balance roundrobin     option forwardfor     reqirep ^Host: Host:\ node1.myapp.mycompany.com     server web01 node1.myapp.mycompany.com:80   This works great for a single backend, but I am left scracthing my head on how to include the correct host headers depending on which backend is serving up the request:  backend nodes     mode http     balance roundrobin     option forwardfor     reqirep ^Host: Host:\ node1.myapp.mycompany.com     server web01 node1.myapp.mycompany.com:80     server web02 node2.myapp.mycompany.com:80   The above does not work whenever node2 is used because it doesn't resolve correctly in IIS (node2 in this case is on a different server, and therefore different IP.  In fact, if they were running on the same server/ip I suspect the request work "work", but they would all be served by node1 per the host header).     Is it possible to set the host based on the url of the backend used to serve up the request? If so, this implies my checks also need to provide the correct host header based on backend, how would that be done?   Edit: Am using HA-Proxy version 1.7.9 2017/08/18  Let me give this just a little more background.  We used to have just myapp.mycompany.com serving up api requests.  We need to expand it.  Our clients will still call myapp.mycompany.com, but that will just point to the HAProxy, which will balance it out to node1.myapp.mycompany.com and node2.myapp.mycompany.com.  Our current server configurations have us binding a single IP address on each server, so we use host headers to resolve. Which of the following is most correct?      The distance of the shortest path must not be higher than 10km.   The distance of the shortest path must not be greater than 10km.   The distance of the shortest path must not be bigger than 10km.   Or is there an even better word? I was trying to accomplish this through a trigger, but its not really working. Is there a way to get this done through Process Builder? If so, what is that process?  I'm trying to have ProductB being added to the opportunity automatically once ProductA is manually added to the opportunity.  Also, is there a way to have the $ amount of ProductB being 0.5% of ProductA?  Trigger that I have so far:  trigger Attempt1 on OpportunityLineItem (after insert) { List&lt;OpportunityLineItem&gt; oliList = new List&lt;OpportunityLineItem&gt;();  for( OpportunityLineItem item: [SELECT  OpportunityId,                                          Name                                  FROM    OpportunityLineItem                                 WHERE   Id = :Trigger.new AND                                          Name = 'NAME OF PRODUCTA'])  {   oliList.add(new OpportunityLineItem(     OpportunityId = item.OpportunityId,      PricebookEntryId ='01uA000000QPDldEAt',     Quantity = 1,     UnitPrice = 25)   );  }  Insert oliList; }