I have an element that takes 100% of its container's width:  How do I make it so the width of the element is as wide as the text? I can't find the answer online because I don't know how to formulate the question proprely. float: left; works but it messes up the surrounding elements as some of them have this porperty as well. Is there another way?
I have a layout similar to:  &lt;div&gt;     &lt;table&gt;     &lt;/table&gt; &lt;/div&gt;   I would like for the div to only expand to as wide as my table becomes.
What are the most downvoted questions and answers on Stack Overflow, Server Fault, Meta, and Super User history to date?  Similarly, what are the most upvoted questions and answers on SO, SF, Meta, and SU to date? "This webpage has a redirect loop" in Chrome but working fine on FF and IE? Which versions of C++ redistributables can I remove? I have a number of Microsoft Visual C++ 2005 and 2008 Redistributable and I would like to know which ones are safe to remove, because there are actually more than 10 installed on my computers.   Microsoft Visual C++ 2005 ATL Update kb973923 - x64 8.0.50727.4053 Microsoft Visual C++ 2005 Redistributable Microsoft Visual C++ 2005 (x64) Microsoft Visual C++ 2008 ATL Update kb973924 - x64 9.0.30729.4148 Microsoft Visual C++ 2008 Redistributable - x64 9.0.30729.17 Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.17 Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.4148 Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.4974 Microsoft Visual C++ 2010 x64 Runtime - 10.0.30319   It could be that these versions are all different, but a confirmation of that is fine for me as well. Thanks in advance.  PS. I'm using an x64 machine one windows 7. I'm working on a fairly big document that has a lot of graphs of functions- so far it has around 200, by the end it will have around 1500. I use pgfplots for each graphic, and the functions are pretty basic: exponential, rational, polynomial, and trigonometric.  Once I am happy with each graph, I don't necessarily need to see it every time I compile, and would like to minimize compilation time for future drafts. Naturally, the document is already chopped up into chapter files, but each chapter contains around 100 figures.  Having studied the pgfplots documentation, I haven't found a draft mode, but I'm interested in knowing if one could be created.    I'm envisaging something similar to the draft mode of the graphicx package, in which graphics are not included, and blank boxes are put in their place.  Some things I've considered:   the  documentclass; but with about 1500 figures, wouldn't this mean over-modulization?  tikzexternalize, but this still requires an initial 'monster' compilation to get the images externalized before the draft option could be invoked   Here's a MWE to play with  \documentclass{article} \usepackage{pgfplots}  \begin{document}  \begin{tikzpicture}     \begin{axis}         \addplot {x^2};     \end{axis} \end{tikzpicture}  \end{document} As an online shopper, I regularly use Amazon to purchase lots of stuff.  When I reconcile my credit card spending, I use Mail.app to search all mailboxes for specific dollar figures (e.g. command-option F, then type 24.95). Prior to Big Sur, finding dollar figures in Mail.app worked perfectly, whether the email messages resided &quot;On My Mac&quot; or on iCloud.  However, since Big Sur, doing a global Mail.app search for numeric strings, especially with a decimal point, doesn't work reliably. For example, I'll do a global search in Mail.app for 65.88 and I'll get one result from a locally archived message from years ago, however a very recent message in my InBox containing that figure is not found.  When I do a single message search (command-F) looking for 65.88, the value IS found. Unsurprisingly, using Spotlight delivers the exact same results. Using mdutil, I've manually erased and rebuilt the Spotlight index, rebuilt my Mail.app mailboxes, deleted all ~/Library/Mail/V8/MailData/Envelope* files to force the Mail.app to re-import everything, and reinstalled Big Sur.  I've also confirmed all my Spotlight settings to assure that Mail and Messages are included in searches, and that the volume where my mail resides is not excluded.  Nothing worked. I should note that I am using one SSD for macOS, and a separate SSD for my Home directory (c/o &quot;Advanced Options&quot; under Users &amp; Groups).  I've had this setup well before Big Sur, again, without any issues. Interestingly, I tried using the Spark email app, which DID successfully find dollar figures without any issue.  I suspect that Spark is not relying on Spotlight to obtain search results, and that's why it works.  (I would use Spark, however it doesn't support local mailboxes.) I've already sent Apple a report using the Feedback Assistant, and I can only hope something will get fixed. Can anyone else confirm this issue with Mail.app on Big Sur?  Any ideas on what else I can do? If we pick randomly two points inside a circle centred at $O$ with radius $R$, and draw two circles centred at the two points with radius equal to the distance between them, what is the expected area of the intersection of the two cirlces that contain the origin $O$. Can present progressive statements be use at present or for the future? or both? PostgreSQL create line from points How to Set a Short User Password in macOS Mojave and Later (10.14+) I just installed macOS Mojave and put in my usual short desktop-only password I've been using for years (yes, you read that right). Now though, the operating system rejects setting a password less than 4 characters. It also does not allow having no password at all.  I am completely comfortable using the shell if need be.  How can I change the password policy to allow quite short passwords? How to pass parameters to an alias? Wording of "possible/exact duplicates" when closing the question When marking question for "duplicate", the reason in dialog window is "exact duplicate", yet when the process is completed there's a comment added that says "possible duplicate". Maybe those two should be evened out to either "possible duplicate" or "exact duplicate"?  Edit: Take  for instance, it says "Possible" on top but "exact" at the bottom    and the top remark was added by the system only after the question was closed, i.e. after it was concluded that it was an exact duplicate rather than a possible one.  So the question is: can the text on top be changed to "Exact Duplicate" please? Is there an injective function $f :\mathbb{R}^2\rightarrow\mathbb{R}$?  I approached this problem from the perspective of $f^{-1}$, from which I showed there exists a surjective function $f^{-1}:\mathbb{R}\rightarrow\mathbb{R}^2$. Would this imply that there exists an injective function for the inverse mapping? How do I set environment variables from Java? How do I set environment variables from Java?  I see that I can do this for subprocesses using . I have several subprocesses to start, though, so I'd rather modify the current process's environment and let the subprocesses inherit it.  There's a System.getenv(String) for getting a single environment variable. I can also get a Map of the complete set of environment variables with System.getenv(). But, calling put() on that Map throws an UnsupportedOperationException -- apparently they mean for the environment to be read only. And, there's no System.setenv().  So, is there any way to set environment variables in the currently running process?  If so, how?  If not, what's the rationale?  (Is it because this is Java and therefore I shouldn't be doing evil nonportable obsolete things like touching my environment?)  And if not, any good suggestions for managing the environment variable changes that I'm going to need to be feeding to several subprocesses? I just learned that some Lenovo laptops include a utility that offers to limit battery charging capacity to within 0–80% in order to slow the attenuation of the battery lifespan:    How can I do this in Ubuntu? Cocos2d-x supporting multi-resolution using density independent pixels Is there a way to use Density Independent pixels(dp) in cocos2d-x?  I am developing an Android game using Cocos2d-x 3.0.  The Android reference  tells me not to use pixels in code but use dp when supporting multi-resolution support. It also tells me to provide different images for different screen size groups and different density groups.  However, cocos2d-x tutorials use pixels for multi-resolution support. If I were to use pixels, I think it means I need to have images for all these different resolutions:  240x320, 240x400, 240x432 320x480 480x640, 480x800, 480x854 600x1024 640x960 1024x600, 1024x768 1280x768, 1280x800 1536x1152 1920x1152, 1920x1200 2048x1536 2560x1536, 2560x1600  Even if I don't support every screen resolutions, I think this requires more work than following the Android reference's best practice.  Am I missing something on how supporting multi-resolution works or do I indeed do need to do much more work using cocos2d-x? Heat production of magnifying glass Why Magnifying glass(convex lens) produces heat when placed in front of sun? Series prove or disprove statement Let $a_n$ be a sequence. $\lim_{n\to\infty} a_n =0 $ then the series: $\sum_{n=1}^\infty a_n, \ \sum_{n=1}^\infty (a_n+a_{n+1}) $ converge and diverge together.  It doesn't seem right, there are no convergence tests that fit this question yet every counterexample I try does not seem to work. Is this how I should see the sum? $\sum_{n=1}^\infty (a_n+a_{n+1})=2\sum_{n=1}^\infty a_n +a_{n+1}$ If so then there's no real difference between the two series since you multiply it by a constant and add just one more value. What can I do if my USB flash drive is write-protected or read-only? When I plug in my USB flash drive, it shows up on my computer as write-protected or read-only. I am unable to transfer data to it, nor can I modify or delete any files already stored on it. I also cannot repartition or reformat the drive using Windows Disk Management, DiskPart, GParted, or other tools. The drive does not have a write-protect switch.  Why did this happen and what can I do about it? Is there a way to remove the write protection?  (Note that this can happen with some memory cards, too, as they often use controllers similar to those used in flash drives. In some cases, the system may report that the drive or card was formatted successfully even though it was never actually formatted; the original data reappears when the device is reinserted.)     This question comes up often and the answers are usually the same. This post is meant to provide a definitive, canonical answer for this problem. Feel free to edit the answer to add additional details. Is it true that The Doctor can only regenerate 12 times? ISP blocking port 25 My ISP has started blocking port 25 so I can not send email through my dedicated server any more.   I have several options:   Send email through the SMTP server provided by my ISP. Any problems with this? Setup mu server so that it receives email on another port instead of port 25     No one else sends email through my server so it should be OK. How do I do this on a Linux server? Buy a static client IP - these are not being blocked so far.   Which one is preferable?