Graphics, graphicx, and Texlive2014
Letter class alternatives with support for figures, tables, and labels
How do I write a correct micro-benchmark in Java? My objective here is really simple -- I'm trying to set an NSString to some test data, then return the class, which should be NSString. Here's my code:  NSString* stringer = [NSString stringWithFormat: @"Test"]; NSLog(@"%@", [stringer class]);   The log says that the class is NSCFString, not NSString. What's going on here? Recently I had to change the folder permissions of /usr folder. Now the whole sudo is not working. If I try to update my system using this command:  sudo apt-get update   I get the following message:  sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins   So I tried to change the folder permissions by opening Nautilus as root by using this command  gksudo nautilus   But nothing happened. Nautilus didn't open. This is an emergency as the whole of sudo is not working. when I tried searching the solution from Google many suggested re-installation. I don't prefer re-installation. so is there any other solution? Change the Python3 default version in Ubuntu I am using Ubuntu 16.04 LTS . I have python3 installed. There are  two versions installed, python 3.4.3 and python 3.6 . Whenever I use python3 command, it takes python 3.4.3 by default. I want to use python 3.6 with python3. python3 --version shows version 3.4.3 I am installing ansible which supports version &gt; 3.5 . So, whenever, I type ansible in the terminal, it throws error because of python 3.4 sudo update-alternatives --config python3 update-alternatives: error: no alternatives for python3 I want to print the floating point number with exactly two significant digits in bash (maybe using a common tool like awk, bc, dc, perl etc.).  Examples:   76543 should be printed as 76000 0.0076543 should be printed as 0.0076   In both cases the significant digits are 7 and 6. I have read some answers for similar problems like:      but the answers focus on limiting the number of decimal places (eg. bc command with scale=2 or printf command with %.2f) instead of significant digits.  Is there an easy way to format the number with exactly 2 significant digits or do I have to write my own function? How to disable phone number linking in Mobile Safari? Why, logically, is proof by contradiction valid? When to use an object pronoun or a possessive adjective before a gerund The rule says that we can use a possessive adjective or an object pronoun before a gerund. Is there a rule  that says when to use each or are they interchangeable? Some say that it's wrong to use an object pronoun before a gerund. Which manga chapters correspond to the 2nd season (or "Season 3" on Netflix) of the anime, "Revival of the Commandments"? I want to unwrap a label which has a transparent area Salesforce REST API authentication? I feel like this should be really easy to do, but I can't find anything about it on the web. Is there a way, through either javascript or a java web servlet, to skip the subsequent authentication?  We are trying to use the REST Api in production, but the problem is, that each time you refresh the page in javascript, or delete the cookies in java, you have to login again to salesforce.  Is there some way to do an ajax call or the login in the background or whatever, so that you can have your application connecting to salesforce right away? How to emulate titletoc with tocloft I was using titletoc until I realized that it has some incompatibilities with hyperref. The thing is, that titletoc can do the same thing in a easier way, less one.  \titlecontents*{subsection}[5.4em] {\small} {\thecontentslabel~ } {} {} [.~\textbullet\ ] [.]   this part does the subsection as a paragraph (with section number and without page number). I have realized that the problem is the pseudo-code used by tocloft for the entries in the TOC  {\cftXfont {\cftXpresnum SNUM\cftXaftersnum\hfil} \cftXaftersnumb TITLE}% {\cftXleader}{\cftXpagefont PAGE}\cftXafterpnum\par   I mean, the last command \par make impossible to leave two subsection entries in the same textline. Any idea? Another interesting solution is with etoolbox, some examples with that package are awesome, but it's not on my hands.  This is a MWE:  \documentclass{book}  \usepackage{titletoc} \titlecontents*{subsection}[5.4em]{\small} {\thecontentslabel~ }{}{}[.~\textbullet\ ][.]  \begin{document}  \tableofcontents  \chapter{Test Chapter 1} \section{Test Section 1.1} \subsection{First Test Subsection} \subsection{Second Test Subsection} \subsection{Third Test Subsection} \subsection{Fourth Test Subsection} \section{Test Section 1.2} \subsection{First Test Subsection} \subsection{Second Test Subsection}  \chapter{Test Chapter 2} \section{Test Section 2.1} \subsection{First Test Subsection} \subsection{Second Test Subsection} \subsection{Third Test Subsection} \subsection{Fourth Test Subsection} \section{Test Section 2.2} \subsection{First Test Subsection} \subsection{Second Test Subsection}  \end{document} Anamorphic Perspective in Illustrator or Photoshop? Recently I created a website with hundreds of thousands of unique pages. A week ago, Google had indexed about 250,000 pages. It has now decreased to 90k URLs (using a site:domain.com query).   What should I do to have Google index all the pages again? Why did all these pages get de-indexed from Google?. I've been trying to play with a rigid body simulations.  I prepared a project of a building made of domino tails. I've placed all objects very tight, but as soon as I start animation it looks like there was some tiny gap between objects, so they all fall down a little bit. For a high building it leads to a construction disaster as the whole building colapses.  Here is an example:  (I'd suggest to use 0.25x speed).  How can I fix it? What are the differences between "to talk" and "to speak"? Both verbs "to talk" and "to speak" refer to the same action.  Is their meaning exactly the same? When is more appropriate to use one, or the other verb? What are the answers for these basic quetions? How can I make Windows Paint save by default as JPEG format? Every time I want to save an image I've pasted into the  application, it chooses a BMP/DIB format (which is the worst for saving things from the clipboard).  How can I hack Paint into defaulting to the JPEG format when saving images?  I am using Windows XP SP3 and Paint 5.1 at the moment. I hope though that any hacks might be generic and I'd be able to use them across all my Windows machines. Incorrect icons on hot network questions I see the same problem has occurred in the past, the most-linked one being   Is this happening for anyone else?   I've marked the icons I could recognize as incorrect.  This exists on every page, is on both chrome and firefox (from Ubuntu 16.04), and persists after hard-refreshes in each.  Edit: The icons in Meta's Hot Network Questions tab appear to be consistently accurate. Every other page I checked (including Unix, Workplace, English Language &amp; Usage, Money, and Sci-fi) have a handful of incorrect ones, even for some of the same questions that are displayed correctly in Meta.  Further note: if it matters, the icons are also incorrect in the drop down community-search feature on the right end of the header. Again, they appear correct on this Meta page, and incorrect on all other pages I've checked. Some of the ones that are consistently incorrect:   computational science constructed languages movies and TV raspberri pi rpg russian language science fiction and fantasy sitecore skeptics super user latex workplace   That distribution seems skewed, but I may just be disproportionately familiar with the sites at the end of the alphabet. Many others could be wrong, those are just the ones I could recognize.    Last edit: apparently my Google skills were lacking -  was asked an hour prior. When in a browser (Chrome or Safari), the following keyboard shortcut will always bring up a window that says "Welcome To Mail":  Command+Shift+I  I would like to use this shortcut for another purpose.  Is there any way to disable this shortcut?