I'm looking for a text editor that can compile and run .java files directly, without having to use javac filename.java and java filename. Something similar would be Textpad for Windows, which uses ctrl+1 to compile and ctrl+2 to run.  I've been using gedit for a while, but I find that Textpad is so much easier. What is a program for Linux (preferably free) that offers this feature?  I also don't want an IDE, just a simple text editor with keyboard shortcuts. I have tried Eclipse and Netbeans and found them too unwieldy for my tastes.
I want an editor that is as good as TextPad (for Windows) for compiling and running Java programs on Ubuntu 12.04. Please suggest one.
no Get More in Plugin Manager in qgis 2 + ubuntu 13.04 After upgrade of qgis 1.8 to qgis 2.0 I couldn't find the choice "Get more" in Plugin Manager and I can't install plugins. Is it safe to use a voltage divider for Arduino and DC motor controller? How to process a multi column text file to get another multi column text file? I have a text file:  a   aa  aaa     b   bb  bbb     c   cc  ccc d   dd  ddd     e   ee  eee     f   ff  fff g   gg  ggg     h   hh  hhh     i   ii  iii j   jj  jjj   How can I process it and get a 2 column file like this:  a   aa aaa b bb  bbb c   cc ccc d dd  ddd e   ee eee f ff  fff g   gg ggg h hh  hhh i   ii iii j jj  jjj   Or a three column file like this:  a   aa  aaa b   bb  bbb c   cc  ccc d   dd  ddd e   ee  eee f   ff  fff g   gg  ggg h   hh  hhh i   ii  iii j   jj  jj   I prefer to get awk solution but other solutions are welcomed too. Show $\inf_f\int_0^1|f'(x)-f(x)|dx=1/e$ for continuously differentiable functions with $f(0)=0$, $f(1)=1$. Let $C$ be the class of all real-valued continuously differentiable functions $f$ on the interval $[0,1]$ with $f(0)=0$ and $f(1)=1$. How to show that $$\inf_{f\in C}\int_0^1|f'(x)-f(x)|dx=\frac{1}{e}?$$  I have been able to show that $1/e$ is a lower bound. Indeed, $$\begin{align*} \int_0^1|f'(x)-f(x)|dx &amp;= \int_0^1|f'(x)e^{-x}-f(x)e^{-x}|e^xdx \\ &amp;\geq \int_0^1\left(f'(x)e^{-x}-f(x)e^{-x}\right) dx \\ &amp;= \int_0^1 \frac{d\left(f(x)e^{-x}\right)}{dx}dx  \\ &amp;= f(1)e^{-1}-f(0)e^{0}\\ &amp;=\frac{1}{e}. \end{align*}$$ But how to show this is the infimum? Is there a function $f\in C$ such that we get $\int_0^1|f'(x)-f(x)|dx=1/e$? My Déjà Dup backups have become quiet large and I noticed they contain a huge number of unnecessary files (e.g. *.pyc files, **__pycache__ folders and other build related temporary stuff).   I know that I can ignore specific folders, but is there a way to exclude files and or folders by patterns?  I thought there might be more options usable trough a configuration file, but Déjà Dup doesn't use one. So I looked at duplicity (the CLI it is based on), but the man page doesn't mention a configuration file either. I know that duplicity can ignore files and folders based on patterns (--exclude, --exclude-filelist), but I have no idea how to combine this with Déjà Dup.  Do I have to ditch Déjà Dup and use duplicity manually? Or is there a way to set the needed options, so that they are used automatically, when duplicity is used by Déjà Dup? Converting shapefile To GeoJSON using ArcPy? Given a Java InputStream, how can I determine the current offset in the stream? I'd like something like a generic, re-usable getPosition() method that will tell me the number of bytes read from the starting point of the stream.  Ideally, I would prefer this to work with all InputStreams, so that I don't have to wrap each and every one of them as I get them from disparate sources.  Does such a beast exist?  If not, can anyone recommend an existing implementation of a counting InputStream? The usage of singular and plural has always been confusing for me.   I often see sentences like these         People are using cell phones.   People are using a cell phone.      Does the first sentence mean everyone has a phone and they are all using their own?  Does the second sentence mean they are sharing one cell phone?   If I see a group of people holding a cell phone in their hand(s), &lt;- even this is confusing for me, should I use the first sentence then?   Another example: you see two men, and both of them are carrying a bag. Which sentence should I say/use?        They are carrying backpacks          They are carrying a backpack      Could you please make it clear for me? Let $X$ be a locally compact metric space which is also $\sigma$-compact. Let $C_{c}(X)$ be the continuous functions on $f$ from $X$ to $\mathbb{R}$ with compact support. Is $C_{c}(X)$ separable?  My work so far:   If $X$ is a compact metric space, then by Urysohn's Lemma and Stone-Weierstrass, the continuous functions $C(X)$ on $X$ are separable and hence the result follows as $C_{c}(X) = C(X)$.  Suppose $X = \mathbb{R}$. Write $\mathbb{R} = \bigcup_{N  = 1}^{\infty}[-N, N]$. Let $f \in C_{c}(\mathbb{R})$. Then $f$ is supported on a compact set $K \subset [-N, N]$ for some $N$. Thus $C_{c}(\mathbb{R}) =\bigcup_{N = 1}^{\infty}C([-N, N])$. Each $C([-N, N])$ has a countable dense subset $\{\psi_{N, n}\}_{n = 1}^{\infty}$ and so $\bigcup_{N, n = 1}^{\infty}\{\psi_{N, n}\}$ is a countable dense subset of $C_{c}(\mathbb{R})$.  In the general case, $X = \bigcup_{i = 1}^{\infty}X_{i}$ where each $X_{i}$ is compact and $X_{1} \subset X_{2} \subset \cdots$. Let $f \in C_{c}(X)$. Then $f$ is supported on a compact set $K = \bigcup_{i = 1}^{\infty}K \cap X_{i}$. Is it still true that $C_{c}(X) = \bigcup_{i = 1}^{\infty}C(X_{i})$? How can I install MonoDevelop v4 on 12.04? I am using Ubuntu 12.04. I can install v2.8.6.3 of Monodevelop from software center but I need at least v3 to use Monogame v3 or higher. Can anyone point me in the right direction please?   Thanks What is the difference between "why are you worried" and "why you are worried"? What is the difference between these two sentences?     Why are you worried?   Why you are worried?   Which one is correct? Multiple Inheritance #include&lt;iostream&gt; using namespace std;  class A  {    int a;    int b;    public:    void eat()    {       cout&lt;&lt;"A::eat()"&lt;&lt;endl;    } };  class B: public A {    public:    void eat()    {        cout&lt;&lt;"B::eat()"&lt;&lt;endl;     }  };  class C: public A {     public:    void eat()     {        cout&lt;&lt;"C::eat()"&lt;&lt;endl;     }  };  class D: public B, C {  };  int foo(A *ptr) {  ptr-&gt;eat();  } main() {  D obj; foo(&amp;(obj.B)); //error. How do i call with D's B part.  }   The above foo call is a compile time error.  I want to call foo with obj's B part without using virtual inheritance. How do i do that.   Also, in case of virtual inheritance, why the offset information need to be stored in the vtable. This can be determined at the compile time itself. In the above case, if we pass foo with D's object, at compile time only we can calculate the offset of D's A part. I wish to have long and short forms of command line options invoked using my shell script.  I know that getopts can be used, but like in Perl, I have not been able to do the same with shell.  Any ideas on how this can be done, so that I can use options like:  ./shell.sh --copyfile abc.pl /tmp/ ./shell.sh -c abc.pl /tmp/   In the above, both the commands mean the same thing to my shell, but using getopts, I have not been able to implement these? show that $$\lim_{n\to \infty}\sin{(n^m)}$$  divergent,where $m\in N^{+}$  I have kown $$\lim_{n\to\infty}\sin{n^2}$$  to be divergent and dense in $[-1,1]$. This is very  famous problem,the problem is first is post $AMM$( The American Mathematical Monthly,1970-1975) problem,and after some years  $AMM$ post $\sin{(n^{14})}$ in $[-1,1]$ was dense? and this is open problem.so I Guess  $$\sin{(n^m)}$$ is dense in $[-1,1]$. strange character replacement on SO I added a comment to  but something strange is happening. The end code reads "); but SO decided to change that to ";);.    I did not add a ; in front of the ).  To further explain what's happening here, the following:  "http://example.com/." http://example.com/. "http://example.com." http://example.com. "http://example.com" http://example.com   renders as: Block any query in BIND I've been trying to block ANY queries in my BIND server with no success.  I followed this post  which says that I can use minimal-responses but it doesn't work.  None of the answers fit my current configuration.  view world {     match-clients   { world-clients; };     allow-recursion { none; };     recursion       no;     allow-transfer  { key XXXXXX; };      minimal-responses yes;      forwarders      { };      include         "/etc/bind/world.conf"; }; Does $x^{y^z}$ equal $x^{(y^z)}$? If so, why?   Why not simply apply the order of the operation from left to right? Meaning $x^{y^z}$ equals $(x^y)^z$?  I always get confused with this and I don't understand the underlying rule. Any help would be appreciated! Why do my LED lights stay on, even when the switch is off? What is the US Visa Waiver Program and what is an ESTA? Exposing database IDs - security risk? I've heard that exposing database IDs (in URLs, for example) is a security risk, but I'm having trouble understanding why.  Any opinions or links on why it's a risk, or why it isn't?  EDIT: of course the access is scoped, e.g. if you can't see resource foo?id=123 you'll get an error page. Otherwise the URL itself should be secret.  EDIT: if the URL is secret, it will probably contain a generated token that has a limited lifetime, e.g. valid for 1 hour and can only be used once.  EDIT (months later): my current preferred practice for this is to use UUIDS for IDs and expose them. If I'm using sequential numbers (usually for performance on some DBs) as IDs I like generating a UUID token for each entry as an alternate key, and expose that.