Common numbering for figures and tables How can I make a common numbering for my figures and tables?  For instance, I want to obtain in Section 1 something like: Table 1.1, Figure 1.2, Table 1.3, Table 1.4, Figure 1.5
Slave duplicate counter Is it possible to create a counter that is a "slave" to another (master) counter, but also an exact duplicate?  The \@addtoreset{&lt;slave&gt;}{&lt;master&gt;} resets &lt;slave&gt; whenever &lt;master&gt; is incremented (similar functionality is offered by ), but I don't know about anything incrementing one counter (&lt;slave&gt;) automatically whenever another counter (&lt;master&gt;) is incremented.  The idea is to have a macro (say) \dupcntr{&lt;slave&gt;}{&lt;master&gt;} as an analogue to \@addtoreset. The application for this might be where one is interested in renaming a counter used/provided by a package into something more meaningful for the user (say, &lt;slave&gt;), without having to reference &lt;master&gt;. Or, if the original counter contains @ that needs to be escaped every time it's used, it is sometimes more convenient to have a "more user friendly" counter.  I know one way around is to use a macro that returns the value of &lt;master&gt;, but is it possible to perform the same manipulation with a macro than one could with the counter? Manipulation here refers to the printing of the counter (via \the&lt;slave&gt;) and perhaps it's representation (like \arabic, \alph, ...).
I'm passing through Canada, on my way to somewhere else. I'm staying only a short time.   Is there a website, or some other way of find out out if I need a visa? What's the best way to scan in hundreds of pictures? I have thousands of old pictures which were sitting in a photo album. Unfortunately, instead of the photo album protecting the pictures, the plastic coverings yellowed, and the pictures themselves had to be carefully extracted from the books. There is also quite a bit of powdered paper (the backings on the books pretty much fell apart while we extracted the pictures), and the fronts of the images are still a bit sticky.  These pictures are 30+ years old, are often extremely faded, and were originally taken on (what I think is) "110 film" -- they are approximately 2.5" squares.  Anyway, I need to scan all these images in to preserve them from further decay. Unfortunately, it's taking forever -- going through less than 100 images took an entire day, even if one discounts any time spent in Photoshop trying to remove some of the photo album's artifacts on the images.  What I really need is some method of scanning the images in faster. Most automated solutions aren't going to work because they accept 4x6s as their smallest image size, and even if that was not the case, the adhesives still stuck to the prints would probably ruin any such device in 5 seconds flat.  Is there a better way of doing this (i.e. fast scanner?) that wouldn't take so much time? Replicate data from one list to another list sharepoint I have a list A with columns Emp ID, First name &amp; last name and list B wih column name Emp ID, First name, last name , phone number and address.  I want functionality such that when i enter item in List A and save same data should get copied in 3 columns of list B. Can someone help me with the approach. Thnks Trackpad not working after update to Ubuntu 14.10 on Dell Inspiron 15R What can I do to lift a 10 year ban for making a mistake in my UK visa application? I am a Nigerian citizen.  In 2007 I was twice denied a visa to the UK.  Recently I was filling out an application for another UK visitor visa and by mistake I answered no to the question whether I had ever been denied a UK visa, instead of yes.  When reviewing my application, the visa officer found out about the previous visa rejections and as a result I got a 10 year ban on travel to the UK.  What can I do to lift my 10 year ban?   Will this ban affect my chances of obtaining a visitor visa to the USA? Adding HTML entities using CSS content I would like to configure a module () settings with drush. This is the variable:  addtoany_nodetypes: Array (     [about_us] =&gt; about_us     [contact] =&gt; contact     [page] =&gt; page     [legal] =&gt; 0     [webform] =&gt; 0 )   So that, for instance:  [page] =&gt; page [legal] =&gt; 0   becomes  [page] =&gt; 0 [legal] =&gt; legal   But I am rather new at drush and I am at a complete loss. Thanks for your time. There has been a trend now two persons downvote it then it goes on like that. So let there be down voting but do not display the downvotes till the user votes on it. Else the user reads it with an impression that the question is not good.  Am I missing something? How to generate/view PDF using Lightning Components? I need to view/generate PDF in Lightning component. How can I achieve that?  Do I have to user VF page with "renderAs" attribute inside Lightning Component? Or is there any other way to achieve this? I am relatively new to Java, and often find that I need to sort a Map&lt;Key, Value&gt; on the values.  Since the values are not unique, I find myself converting the keySet into an array, and sorting that array through array sort with a custom comparator that sorts on the value associated with the key.  Is there an easier way? Does the series $\sum\limits_{n=1}^\infty \frac{1}{n\sqrt[n]{n}}$ converge? Does the following series converge? $$\sum_{n=1}^\infty \frac{1}{n\sqrt[n]{n}}$$   As $$\frac{1}{n\sqrt[n]{n}}=\frac{1}{n^{1+\frac{1}{n}}},$$ I was thinking that you may consider this as a p-series with $p&gt;1$. But I'm not sure if this is correct, as with p-series, p is a fixed number, right ? On the other hand, $1+\frac{1}{n}&gt;1$ for all $n$. Any hints ? Is there a way to install a newer version than in the repository?  Ubuntu installs vagrant 1.4.3 at the moment, but I need at least 1.5 How can I get a significant overall ANOVA but no significant pairwise differences with Tukey's procedure? In ZFC, a good way of ordering sets by cardinality is by leveraging the notion of an injection. We define: $$X \lesssim Y \leftrightarrow \mbox{ there exists an injection } X \rightarrow Y.$$  Alternatively, we can leverage the notion of a partial surjection, by which I mean a partial function that hits every point of its codomain at least once.  $$Y \succsim X \leftrightarrow \mbox{ there exists a partial surjection } Y \rightarrow X.$$  Now in ZFC, these approaches are equivalent, in the sense that $$X \lesssim Y \iff Y \succsim X.$$  But if we just consider ZF (that is, we drop choice) then the equivalence breaks down. However, we've still got the forward implication, because the converse of an injection is always a partial surjection.  A specific question. Define that two sets are weakly equipotent iff $X \succsim Y$ and $Y \succsim X$. Question: does weak equipotence imply genuine equipotence? I'm guessing "no."  A general question: In broad terms, how would the structure of the cardinal numbers in ZF be altered by adopting $\succsim$ rather than $\lesssim$ as the fundamental order relation, and taking equality of cardinal numbers to correspond to weak equipotence of sets? I'm guessing this would hide a lot of the (usually very complicated) structure of the cardinal numbers in ZF.  Remark. The order symbols can be written \lesssim and \succsim. How to use stars and bars for solving number of integral solutions to an equality? How to use the  method?  Say I want to find number of combinations I can get with $x_1+x_2+x_3+x_4=22$,  where $x_i\in\mathbb{N}$.  Is this the correct time to apply the method?  This is being repurposed in an effort to cut down on duplicates, see here:     and here: How do I safely delete all files with a specific extension (e.g. .bak) from current directory and all subfolders using one command-line? Simply, I'm afraid to use rm since I used it wrong once and now I need advice. Counting the number of propagating degrees of freedom in Lorenz Gauge Electrodynamics How do I definitively show that there are only two propagating degrees of freedom in the Lorenz Gauge $\partial_\mu A^\mu=0$ in classical electrodynamics.  I need an clear argument that   involves the equations of motion for just the potentials $A^0$ and $\mathbf{A}$, and not the electric and magnetic fields.   includes sources $\rho$ and $\mathbf{J}$ in the equations of motion.  This is to justify the assertion that there are degrees of freedom that decouple from the rest of system. does not critically rely on quantum field theoretic arguments (although any supplementary remarks are welcome).     To illustrate the level of clarity I expect, I provide an argument in the Coulomb gauge $\nabla\cdot \mathbf{A} = 0$:  Of the four field degrees of freedom, the gauge condition $\nabla\cdot \mathbf{A} = 0$ removes one degree of freedom (the longitudinally polarized EM waves).  To show that among the remaining three degrees of freedom only two are propagating, consider the field equations of motion in the Coulomb gauge:  \begin{align} \nabla^2 A^0 &amp;= -\rho/\epsilon_0,\\ \big[\frac{1}{c^2}\frac{\partial^2}{\partial t^2}-\nabla^2\big]\mathbf{A}&amp;= \mu_0 \mathbf{J}-\nabla \frac{1}{c^2}\frac{\partial}{\partial t}A^0. \end{align}  The first equation is NOT a wave equation for $A^0$, and thus does not propagate.  The final equation IS a wave equation, and describes the propagation of two degrees of freedom (Gauss' law in first eq. can be solved, and then inserted into the second equation to show that $\mathbf{A}$ only couples to the Solenoidal part of the current). I wrote a script to create a big number of heat maps for a given scenario. I would like to save the result of every heat map as an PNG image. I have figured it out doing it with simple Map Rendering but the quality of the result is too low. Furthermore I would like to export to OpenLayers using the same code, which does not seem to be possible with simple rendering.   Now I am trying to do it with QgsComposition instead. Manually in the Map Composer you can just set the paper color to transparent and disable the background of the map canvas.   This is the code that I have so far. I just cannot figure out why it is not working. The result png-file always has a white opaque background.   My OS is Windows 7 and I'm using QGIS 2.6 Brighton.  I hope someone can help me out here.  # PARAMETERS mainPath = 'path/to/folder/' filename = 'filename' imageType = "png" imageWidth_mm = 400 imageHeight_mm = 160 dpi = 300  mapRenderer = iface.mapCanvas().mapRenderer()  c = QgsComposition(mapRenderer) c.setPlotStyle(QgsComposition.Print)  c.setPaperSize(400, 160)  x, y = 0, 0 w, h = c.paperWidth(), c.paperHeight() composerMap = QgsComposerMap(c, x ,y, w, h) c.addItem(composerMap)  # get all items and disable the backgrounds itemList = c.items() c.removeItem(itemList[2]) c.removeItem(itemList[2]) itemList[2].setBackgroundEnabled(False) itemList[3].setBackgroundEnabled(False) # add them to the composition c.addItem(itemList[2]) c.addItem(itemList[3])  c.refreshItems() c.refreshDataDefinedProperty(QgsComposerObject.AllProperties)  c.setPrintResolution(dpi) dpmm = dpi / 25.4 width = int(dpmm * c.paperWidth()) height = int(dpmm * c.paperHeight())  # create output image and initialize it # image = QImage(QSize(width, height), QImage.Format_ARGB32) image = QImage(QSize(width, height), QImage.Format_ARGB32_Premultiplied) image.setDotsPerMeterX(dpmm * 1000) image.setDotsPerMeterY(dpmm * 1000) #image.fill(0)  imagePainter = QPainter(image)  # This part does not seem to have any effect #brush = QBrush(Qt.BrushStyle(0)) # transparent brush # #imagePainter.setBackgroundMode(0) #c.setBackgroundBrush(brush)  c.renderPage( imagePainter, 0 ) imagePainter.end()   imageFilename =  mainPath + filename + '.' + imageType image.save(imageFilename, imageType) print 'image saved' print 'done' What is the shortcut for opening a new window (opening folders). for that I have to go to folder options and right click and then need to click on open new window.  or I have to make focus on the folder icon or open a folder then press  Ctrl+N  for opening a new window is there any direct command spcific to open a new window in ubuntu. I have an odd error that I have been unable to find anything on this. I wanted to change the user comment with the following command.  $ sudo usermod -c "New Comment" user   This will work while logged onto a server but I want to automate it across 20+ servers. Usually I am able to use a list and loop through the servers and run a command but in this case I get a error.  $ for i in `cat servlist` ; do echo $i ; ssh $i sudo usermod -c "New Comment" user ; done  serv1 Usage: usermod [options] LOGIN  Options: lists usermod options  serv2 Usage: usermod [options] LOGIN  Options: lists usermod options . . .   When I run this loop it throws back an error like I am using the command incorrectly but it will run just fine on a single server.  Looking through the ssh man pages I did try -t and -t -t flags but those did not work.  I have successfully used perl -p -i -e within a similar loop to edit files.  Does anyone know a reason I am unable to loop this?