For some obscure reason, which seemed like a good idea at the time, I installed Kubuntu onto an external USB 1TB drive. It never worked.  Now, I would like to use that drive as storage but cannot delete any of the installation or boot files. I also cannot upload any other files onto it.  How would I reformat the whole drive so it can be used as general storage which can be read by linux, android and windows devices  Many thanks
In Windows there is a straightforward "Format" option in a flash drive's right-click pop-up menu. Where's that in Ubuntu?
How can I install a Nautilus script? JavaScript equivalent to printf/String.Format I'm looking for a good JavaScript equivalent of the C/PHP printf() or for C#/Java programmers, String.Format() (IFormatProvider for .NET).  My basic requirement is a thousand separator format for numbers for now, but something that handles lots of combinations (including dates) would be good.  I realize Microsoft's  library provides a version of String.Format(), but we don't want the entire overhead of that framework. Trailing spaces on comment link format Trailing spaces on comment link format preventing it to form a link  [Stack Overflow ](http://stackoverflow.com)   May be by-design or even dup, but just reporting what I accidentally found today. Recommendation for mobile prepaid SIM card for smartphone + home calls in Germany What SIM card would you recommend for a smartphone user for travel in Germany?  It would be probably the only or the most important connection to the Internet, so large amounts of data and relatively fast transfer is an issue.  I need to stay in touch with friends and family, so the calls to other EU countries should be as cheap as possible.   For to the first criteria, I found the T-Mobile offer interesting. The internet costs 10 Euros/month and after reaching the transfer limit it stays relatively fast. According to tests (Galileo from Pro7, AFAIR) it has also the best coverage. However, calls to other countries are very expensive.  For to second criteria, Lebara and Mobilka are interesting. The calls are very cheap, but there are problems with signal strength in many locations, where T-Mobile has no problem. The voice quality, at least in Lebara, is also limited. They both have mobile internet with unlimited transfer, but after reaching the high speed limit, the transfer is reduced to 64 kbps, which is too slow.  I've found out that O2 has foreign calls at moderate prices, but I haven't yet checked for details. There are so many other options, making it is hard to compare them all without spending the whole weekend on it. So, if someone has found a better option than having 2 SIM cards and constantly switching them, this answer would be greatly appreciated. Is there any way to import a .json model into Blender? How do I match any character across multiple lines in a regular expression? Please revisit the CAPTCHA & China issue Back in 2012 when China first blocked all Google services, thereby preventing non-VPN users from proving their non-roboticness, someone quickly opened this thread on Meta:    The consensus at the time was "we can't think of a better way of doing things".  Well, 3 years have passed and China is showing no signs of unbanning Google. Meanwhile, CAPTCHA technology has evolved. Can the SE admins please revisit this situation? People in China without a VPN are completely unable to prove they are not bots. I couldn't even search for the phrase "pgp" on Security.SE without hitting the human verification barrier. Blocking questions is one thing, but searches also? I think that's too strict.  (yes, I wrote this with my VPN) 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 Picking random points in the volume of sphere with uniform probability Find a bijection from $\mathbb R$ to $\mathbb R-\mathbb N$ Find a bijection from $\mathbb R \to  \mathbb R-\mathbb N$. I want to set my function up such that all natural numbers get mapped to $n+.1$ and reals of the form $n+.1$ to $2n+.1$ is this correct? Why do liquids boil when their vapor pressure equals the ambient pressure? Given that the boiling point of a liquid is the temperature at which the vapor pressure is equal to the ambient (surrounding) pressure, what significance does a liquid's vapor pressure have in the formation of bubbles that happens at and above the boiling point?    The definition of boiling point seems to imply that the pressure inside of the bubbles must be at least as great as the liquid's vapor pressure in order to balance the outside pressure, but is there any particular reason why the pressure inside of the bubbles is related to the vapor pressure?    The vapor pressure seems to be a measurement describing the tendency of the molecules to escape from the surface of the liquid, but I don't see how that relates to bubble formation within the liquid.  This question has bothered me for a while, so any help would be much appreciated. This is something I've been curious about since starting this whole 'meta' thing a couple years back.     Let's say a user posts a feature request.   Under what circumstances is the feature-request read by staff? If staff decline to do anything (I'd guess it's some sort of triage), under what circumstances is the feature-request reevaluated by staff?     Let's say a user posts a bug.    Under what circumstances is the bug tested? What generally determines whether a verified bug is actionable? (And/or what are the criterion for deciding what to do?)     For both of the above, would it be possible to see a general-but-relatively-detailed flow for what happens to these questions? Non-EU spouse of UK citizen Schengen visa requirements I'm a British citizen and my wife is in the UK on a spouse visa. She holds a BRP card. We're planning to visit Germany and some other Schengen countries, and I've got a question around visa requirements/supporting documents.  I've read in few places (i.e ) that the visa requirements are more relaxed if the applicant is a spouse of a UK citizen, and is travelling with the UK citizen.  How relaxed are the requirements? Does my wife need to submit supporting documents for accommodation, finances, flight booking, etc.? Or is it simply submitting the application form alongside the passports and BRP? (i.e standard documentation for Schengen visa application section from ) During my upcoming holiday to the USA I'm thinking about buying a new guitar as the exchange rate is extremely favorable. Excuse my naivety but I have never flown with a guitar before. What is a recommended way to go about this? Could I take it as carry on luggage or would it have to be checked? If checked luggage what kind of precautions should I take to keep it safe? Are there any problems with flying US budget carriers? If I do buy the guitar I'm expecting to have to make two flights with it, one domestic flight with Virgin America and an international flight with Air NZ. Scanning Java annotations at runtime What is the best way of searching the whole classpath for an annotated class?  I'm doing a library and I want to allow the users to annotate their classes, so when the Web application starts I need to scan the whole classpath for certain annotation.  Do you know a library or a Java facility to do this?  Edit: I'm thinking about something like the new functionality for Java EE 5 Web Services or EJB's. You annotate your class with @WebService or @EJB and the system finds these classes while loading so they are accessible remotely. problems with ellipse TikZ I'm working on a mac, I use the package TikZ and it works. But I have problems when I want use ellipse or diamond ex :  \documentclass{article} \usepackage{graphicx} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[ellipse] {Ellipse}; \end{tikzpicture} \end{document}   If somebody could help me thank you ! I use multiple displays, and the available options for Spaces that I am aware of allow surprise Space-switching, even when working in a completely different space.  Ideally, interacting with the Dock will only affect the same Space on the same display on which I used the Dock. This means:   If app clicked in Dock, and no copy of app is running on any space, then start the app and confine it to the current Space. If app clicked in Dock, and the program is already running in another Space, then either 1) open a new window if the program allows this, or 2) silently move the app to the current Space without disturbing or changing any other Space or display. If app clicked in Dock, and the program is already running in the current Space, then change focus to the app.   Specifically: - Clicking an icon in the Dock should rarely affect any other Space. - Clicking an icon in the Dock must never affect which Space is displayed on which display  OS X Yosemite 10.10.2, MacBook Pro 2012. (Dock set to auto-hide, and pops up at the bottom of any screen when I put the mouse there.) How can I revert a config file back to the originally installed version after I have edited it? I want to revert a file in /etc/ back to its originally-installed form. I have edited the file since it was installed. How can I revert this config file? Apt is smart enough not to overwrite edited config files, so how do I tell it that I want it to do so?  For argument's sake, let's say that I want to revert the file /etc/foo.conf from the package foo. I had a problem with disappearing marker as the data sum up to more than 100 while xmax was set to 100. See .  As written in the answer to the cited question I tried to avoid the problem by normalizing the value to 100. But this lead to (much smaller) rounding errors in previously correct rows and now the marker disappear there. See the following example. Before the normalisation the column F ist affected, after the column B.   How can I in a reliable way avoid this rounding problem? Or at least get a clear error message. I have quite a number of this plots and I don't want to have to check them all the time for missing markers.    \documentclass{scrreprt} \usepackage{pgfplots} \pgfplotsset{compat=1.13} \usepackage{pgfplotstable} \pgfplotsset{  my stackbar plot/.style={              xbar stacked,              xmin=0,xmax=100,              symbolic y coords={A,B,C,D,E,F,G},              ytick=data,              nodes near coords={xxx},}}  \begin{document}  \pgfplotstableread[col sep=space]{  text   --  -    +       ++  A      0.0 1.7 13.8    84.5  B      0.0 0.6 20.1    79.3  C      0.0 1.9 13.2    84.9  D      0.0 1.6 27.9    70.5  E      1.3 3.9 19.5    75.3  F      0.0 1.4 15.0    83.7  G      0.3 1.7 24.8    73.2  }\data   \pgfplotstablecreatecol[create col/expr={\thisrow{--}+\thisrow{-}+\thisrow{+}+\thisrow{++}}]{sum}\data %  \pgfplotstablecreatecol[create col/copy=--]{--o}\data  \pgfplotstablecreatecol[create col/copy=-]{-o}\data  \pgfplotstablecreatecol[create col/copy=+]{+o}\data  \pgfplotstablecreatecol[create col/copy=++]{++o}\data  \pgfplotstablecreatecol[create col/expr={100/\thisrow{sum}*\thisrow{--o}}]{--}\data  \pgfplotstablecreatecol[create col/expr={100/\thisrow{sum}*\thisrow{-o}}]{-}\data  \pgfplotstablecreatecol[create col/expr={100/\thisrow{sum}*\thisrow{+o}}]{+}\data  \pgfplotstablecreatecol[create col/expr={100/\thisrow{sum}*\thisrow{++o}}]{++}\data  \pgfplotstablecreatecol[create col/expr={\thisrow{--}+\thisrow{-}+\thisrow{+}+\thisrow{++}}]{sumnew}\data  \pgfplotstabletypeset[columns={text,sum}   ,precision=10,columns/text/.style={string type}]\data \quad \pgfplotstabletypeset[columns={text,sumnew},precision=10,columns/text/.style={string type}]\data   %\pgfplotstablesave{\data}{pgfplotstempout.dat} \begin{tikzpicture} \begin{axis}[my stackbar plot]  \addplot table [x expr = \thisrow{--o},y=text] {\data};  \addplot table [x expr = \thisrow{-o}, y=text] {\data};  \addplot table [x expr = \thisrow{+o}, y=text] {\data};  \addplot table [x expr = \thisrow{++o}, y=text] {\data}; \end{axis} \end{tikzpicture} \quad \begin{tikzpicture} \begin{axis}[my stackbar plot]  \addplot table [x expr = \thisrow{--},y=text] {\data};  \addplot table [x expr = \thisrow{-}, y=text] {\data};  \addplot table [x expr = \thisrow{+}, y=text] {\data};  \addplot table [x expr = \thisrow{++}, y=text] {\data}; \end{axis} \end{tikzpicture}  \end{document} What is a command to compile and run C++ programs? I am  new to Linux. I am using Ubuntu 11.04 and do not know how to compile and execute C++ program in it. I need to know the commands to Compile and Execute a C++ program in Linux.