\begin{figure} \centering \includegraphics[width=3.0in]{C:/Users/Augusto/Documents/TEX FILES/venn3.eps} \end{figure}`     I want to remove that "FILES/venn.eps" path that accompannies a EPS file at TeX that uses \includegraphics, is there an easy fix?
I want to import graphics into my main input file using the macro \includegraphics. It does not work if the filename contains spaces.   also discusses this subject, but there is no solution there.  My compilation routine is latex->dvips->ps2pdf (because of PSTricks).
What does it mean to instantiate a trait? We know Euler formula:  $$ e^{ix}=\cos(x)+i\sin(x). $$  Does this formula work if we replace real number $x$ with complex number $z$? Hiding sublayer with toggle button using LayerActions? I have a toggle map (like ) with sublayers. I want all the sublayers to be visible when you open the map, but I would like to hide some sublayers when the toggle buttons are clicked. I've tried adding a hide sublayer code into the LayerActions section of my code, but it's not hiding the sublayers (the button does the same function no matter whether the 'layer.getSubLayer(1).hide()' is there or not). This is the code I'm using:  var LayerActions = {  all: function(){   layer.getSubLayer(1).hide();   sublayers[0].setSQL("SELECT * FROM spreadsheet");   return true;  },  2011: function(){   layer.getSubLayer(1).hide();   sublayers[0].setSQL("SELECT * FROM spreadsheet WHERE year IN ('2011') AND year IS NOT NULL");   return true;  },  2012: function(){   layer.getSubLayer(1).hide();   sublayers[0].setSQL("SELECT * FROM spreadsheet WHERE year IN ('2012', '2012/2013') AND year IS NOT NULL");   return true;  } }   $('.button').click(function() {  $('.button').removeClass('selected');  $(this).addClass('selected');  LayerActions[$(this).attr('id')](); });   Could someone point me to where I'm messing up with my code? Or is it not possible to hide a sublayer using the LayerActions?    I'm now loading my layers differently, and this is my new code:   cartodb.createLayer(map, url1)     .addTo(map, 0)     .done(function (layer) {         console.log('added url1 ',url1);         cartodb.createLayer(map, url2)         .addTo(map, 1)         .done(function (layer) {             console.log('added url2 ',url2);         })         .error(function (){             console.log('problem adding 2nd layer');         });     })     .error(function () {         console.log('There is something wrong with requested data!');     });   So if I wanted to hide the first layer that's loaded (url1) and select only certain points from the second layer (url2), how would I code that in my LayerActions section? I've tried the following, but nothing changes when I click the buttons:  var LayerActions = { all: function(){   layer.getLayer(0).hide;   layer[1].setSQL("SELECT * FROM spreadsheet");   return true; }, 2011: function(){   layer.getLayer(0).hide;   layer[1].setSQL("SELECT * FROM spreadsheet WHERE year IN ('2011') AND year IS NOT NULL");   return true; }, ... Open firefox from bash file "Error: no display specified" The screen of my phone is physically broken, so it doesn't display anything, but the touch aspect does seem to be working, as I can unlock my phone, and get haptic feedback.  Before I go to get it replaced, I'd like to back up some personal data from the built-in memory to the SD card. I'm fairly certain that if I can get adb to recognize the device, then I can use  to see where I am touching the screen and do what I need to do. Problem is, when I plug it in, it's not recognized, while my emulator is.  I suspect that I might not have USB debugging enabled, which I think is necessary for adb to work. If this is the case, can someone give me screenshots of their Droid X (running 2.3.X) going from the home screen, through all the menus, to activating debug mode? Hopefully I can do it by dead reckoning and adb from there.  Edit: I haven't changed anything about the ROM or launcher; it's all stock. Persistent Dummy Output The soundcard I want to use is detected and works (it only recently switched to dummy output and didn't allow me to go back). HDMI is no longer listed under Audio and Video - KDE Control Module; everything under audio module is set to dummy output and its the only 'soundcard' on the list now. I can view my previous sound cards in alsamixer, but changing the settings from there does nothing. How can I get my real soundcards to work again? I have already tried the following answers without success:  EDIT: name@name-desktop:~$ lspci -vvv | grep -A8 Audio 00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kaveri HDMI/DP Audio Controller         Subsystem: ASRock Incorporation Kaveri HDMI/DP Audio Controller         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast &gt;TAbort- &lt;TAbort- &lt;MAbort- &gt;SERR- &lt;PERR- INTx-         Latency: 0, Cache Line Size: 64 bytes         Interrupt: pin B routed to IRQ 43         Region 0: Memory at ff764000 (64-bit, non-prefetchable) [size=16K]         Capabilities: &lt;access denied&gt;         Kernel driver in use: snd_hda_intel         Kernel modules: snd_hda_intel -- 00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01)         Subsystem: ASRock Incorporation FCH Azalia Controller         Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow &gt;TAbort- &lt;TAbort- &lt;MAbort- &gt;SERR- &lt;PERR- INTx-         Latency: 32, Cache Line Size: 64 bytes         Interrupt: pin A routed to IRQ 16         Region 0: Memory at ff760000 (64-bit, non-prefetchable) [size=16K]         Capabilities: &lt;access denied&gt;         Kernel driver in use: snd_hda_intel  Could this image possibly help?:  There is another soundcard but I'm unsure of what its for because it never outputs sound, but it does have a lot of settings: that sound card is labelled as &quot;HD-Audio Generic&quot;.   So I went into Software &amp; Updates under the Additional drivers tab and I see this:  It was on Do not use the device so I changed it and applied the settings but unfortunately the soundcard isn't back even after reboot. Why uniform closure $\mathscr{B}$ of an algebra $\mathscr{A}$ of bounded complex functions is uniformly closed? Let $\mathscr{A}$ be an algebra of bounded complex functions. (Or if necessary, continuous and domain of functions is compact)  Definition:  $\mathscr{B}$ is uniformly closed iff $f\in\mathscr{B}$ whenever $f_n\in \mathscr{B} (n=1,2,\cdot)$ and $f_n\rightarrow f$ uniformly.  $\mathscr{B}$ is the uniform closure of $\mathscr{A}$ iff $\mathscr{B}$ is the set of all functions which are limits of uniformly convergent sequences of members of $\mathscr{A}$.  ============  Let $\mathscr{B}$ be a uniform closure of $\mathscr{A}$.  How do i prove that $\mathscr{B}$ is uniformly closed in ZF?  Does Stone-Weierstrass theorem require choice since it is critical to prove Stone-Weierstrass Theorem? Let $G$ be a group and $\{H_i\}_{i\in I}$ a family of subgroups. I would like to find a condition that will imply that $\cup_{i\in I} H_i$ is a subgroup. I know that it's not true in general, I need help to find this condition.  Any help is welcome.  Thanks a lot. Custom Post Type Archives by Year & Month? How do you display the archives of a Custom Post Type by Year &amp; Month? I have created my StackOverflow Careers panel, and when I click 'add a stack overflow account with over 200 reputation' the site decides that I have no StackOverflow account at all, although my current one has over 300. I log in to both with the same StackExchange Account with the same email etc so I'm curious as to why this is happening. What differences exist between third-party and official lenses for Canon APS-C DSLRs? I am just another guy who just taken up photography as a social hobby who enjoys taking pics of everyday life, social events / parties &amp; some portraits. Need camera for short overseas trip (2-3 times a year), maybe some landscape pics.   I have done some research and have come up a list of main lenses that I am considering and hope you guys can offer some advice / comments to whether I should make those purchases.   Main reason why I chose "third party lenses" 'cos apparently they cost less, newer and are "award winning" - so I don't see the point of spending more for the original canon lens (which some maybe quite old - ie 3-5 yrs).   Sigma 17-70mm F2.8-4 DC MACRO OS HSM Lens (day to day lens) Sigma 85mm F1.4 EX DG HSM (for portrait &amp; bokeh effects) Wide angle lens (any suggestions)   Main questions / comments please...   Q1) What do you think of the lens choices that I have decided to build my kit?  Q2) Any wide angle lens that you will recommend? (third party or canon) or should I get wide angle zoom lens ? Q3) What are your thoughts that I chose all my lens from Third Party instead of Official Canon ones... is that a "smart move"? PHP function substr() error I almost remember it but not really Is there a word for the feeling/situation where we almost remember a thing/word/scene,etc. but are not able to exactly recall it. For example, the other day I was trying to recall the author of the book Contact (i.e. Carl Sagan). I wasn't able to exactly recall 'Carl Sagan' but was in that situation where I could feel I almost remember it. I could recall there was the letter 'C' in his name. Finally after some effort I could recall the exact name 'Carl Sagan'. Is there any word for such a feeling/situation? EDIT:  The feeling is not necessarily of trying to remember a single word(as in from vocabulary). It could be trying to remember a movie or an experience that you were a part of, etc. Eg: If say I was with friends and we were having a conversation. After few days I was able to recall a statement said by someone, but wasn't able to remember by whom; i.e. I had a clouded recollection and I could almost remember but not really. "He needn't say" / "He doesn't need to say" When I studied English at school (in Italy, more than 35 years ago), we were taught a rule according to which one should say, e. g., "He needn't (need not) say", but NOT "He doesn't need to say".  If I'm not mistaken, it was explained to us that the rule holds good with the following limitations:  1) only in the negative form: thus, "He needn't say", but "He needs to say", and "Does he need to say?";  2) only in the present tense: thus, "He needn't say", but "He didn't (won't, wouldn't, etc.) need to say";  3) only when an infinitive follows: thus, "He needn't see a doctor", but "He doesn't need a doctor".  But, if I google "doesn't need to", I find 125,000,000 occurrences.  I was wondering: does the rule hold good more for British than for American English?  Also, perhaps it isn't an absolute rule, and both constructions ("He needn't say" and "He doesn't need to say") are possible.  Is the rule at least a good description of the circumstances when we CAN (but needn't necessarily) use this construction?  Thank you very much, for this and the other answers. This question has an inverse:     What would be the most efficient way to translate a combination of $k$-tuple into its positions within the $\left(\!\!\binom{n}{k}\!\!\right)$ combinations? I need this to be fast for combinations of $\left(\!\!\binom{70}{7}\!\!\right)$ order of magnitude - very large, but not exceeding 2 billion (fits into int32 maximum value).  Below is an example of $\left(\!\!\binom{6}{3}\!\!\right)$, where the aim is to quickly translate (a, d, f) tuple to value 9, while in the real problem $k$ ranges between 5 and 8.  $$\begin{array} {cccccc|c} a&amp;b&amp;c&amp;d&amp;e&amp;f&amp;^{combination}/_{sort\_order}&amp; \\\hline x&amp;x&amp;x&amp; &amp; &amp; &amp;1\\ x&amp;x&amp; &amp;x&amp; &amp; &amp;2\\ x&amp;x&amp; &amp; &amp;x&amp; &amp;3\\ x&amp;x&amp; &amp; &amp; &amp;x&amp;4\\ x&amp; &amp;x&amp;x&amp; &amp; &amp;5\\ x&amp; &amp;x&amp; &amp;x&amp; &amp;6\\ x&amp; &amp;x&amp; &amp; &amp;x&amp;7\\ x&amp; &amp; &amp;x&amp;x&amp; &amp;8\\ x&amp; &amp; &amp;x&amp; &amp;x&amp;9\\ x&amp; &amp; &amp; &amp;x&amp;x&amp;10\\ .&amp;.&amp;.&amp;.&amp;.&amp;.&amp;.\\  &amp; &amp; &amp;x&amp;x&amp;x&amp;20\\ \end{array}$$  I know that I could pre-calculate all the combinations and reverse the lookup dictionary. However, such dictionary would not be efficient in terms of memory usage. Therefore I am looking for either calculation-based approach, or a more efficient data structure to perform this mapping. Why doesn't hydrogen gas exist in Earth's atmosphere? The root mean square velocity of hydrogen gas at room temperature is: Gas constant: $R=8.31\ \mathrm{J\ K^{-1}\ mol^{-1}}$ Molar mass of hydrogen gas: $M=2.02\times10^{-3}\ \mathrm{kg/mol}$ $$\begin{align} v &amp;= \left(\frac{3\times8.31\ \mathrm{J\ K^{-1}\ mol^{-1}}\times300}{2.02\times10^{-3}\ \mathrm{kg/mol}}\right)^{\frac12}\\ &amp;= 3356.8377\ \mathrm{m/s}\\ &amp;= 3.356\ \mathrm{km/s} \end{align}$$ The escape speed of Earth is $11.2\ \mathrm{km/s}$, which is larger than the root mean square velocity of hydrogen gas. But still, hydrogen gas doesn't exist in Earth's atmosphere. Why? Have I made any mistakes in my calculations? How can I know if a branch has been already merged into master? I have a git repository with multiple branches.   How can I know which branches are already merged into the master branch? “May I know your good name?” "May I know your good name” is a typically Indian way of honouring another person by asking their name using an adjective like sweet, good, beautiful, et cetera. Of course there won’t ever be any bad or sour name (unless we feel it such) when asking.   If this manner of asking someone’s name is incorrect or inappropriate, then how could I make it sound more polite and amicable without negotiating the basic principles of English? How do I update Ubuntu manually? I wanted to update Ubuntu manually, because I used CDMA USB modem and connected using wvdial, but it won't able to update Ubuntu via Update Manager, because my Ubuntu won't showing "Connected" message via network-manager.  Can I update Ubuntu manually? Am I should download separate files, or use terminal instead? How to look up a symbol or identify a letter from a math alphabet or other character?