My question is similar but opposite to to   For me, telnet to the local port works but trying with IP does not work :(  I am running pgbouncer on port 6432:  $ telnet 192.x.x.x 6432 Trying 192.x.x.x... telnet: Unable to connect to remote host: Connection refused   I set listen_addr = *, but still using telnet with IP from another server is not working.  See  for the same scenario (but no useful answer).  The output of netstat -plnt is   tcp 0 0 127.0.0.1:6432 0.0.0.0:* LISTEN 19879/./pgbouncer   How can I fix this?
My application listens on port 8180.  When I am trying to connect to port 8180 locally. Connection got refused. But when I am trying to connect to port with ip . I am able to connect.  [root@MUMLGOMAPP002 ~]# telnet 10.209.129.54 8180 Trying 10.209.129.54... Connected to MUMLGOMAPP002 (10.209.129.54). Escape character is '^]'. ^] telnet&gt; q Connection closed.   [root@MUMLGOMAPP002 ~]# telnet localhost 8180 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host: Connection refused   My interface is :  [root@MUMLGOMAPP002 ~]# ifconfig bond0     Link encap:Ethernet  HWaddr 44:1E:A1:73:F7:50           inet addr:10.209.129.54  Bcast:10.209.129.63  Mask:255.255.255.224           UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1           RX packets:322997568 errors:23 dropped:0 overruns:0 frame:0           TX packets:304470664 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0           RX bytes:213628580915 (198.9 GiB)  TX bytes:217449664400 (202.5 GiB)   I would like to know what is the difference between telnetting localhost and ip.
Rsync filter: copying one pattern only I am trying to create a directory that will house all and only my PDFs compiled from LaTeX. I like keeping each project in a separate folder, all housed in a big folder called LaTeX. So I tried running:  rsync -avn *.pdf ~/LaTeX/ ~/Output/   which should find all the pdfs in ~/LaTeX/ and transfer them to the output folder. This doesn't work. It tells me it's found no matches for "*.pdf". If I leave out this filter, the command lists all the files in all the project folders under LaTeX. So it's a problem with the *.pdf filter. I tried replacing ~/ with the full path to my home directory, but that didn't have an effect.  I'm, using zsh. I tried doing the same thing in bash and even with the filter that listed every single file in every subdirectory... What's going on here?  Why isn't rsync understanding my pdf only filter?    OK. So update: No I'm trying  rsync -avn --include="*/" --include="*.pdf" LaTeX/ Output/   And this gives me the whole file list. I guess because everything matches the first pattern... Blowing your own sail? How it this possible? Even if the gif is fake, the Mythbusters did it and with a large sail it really moves forward. What is the explanation? sql server linked server to oracle returns no data found when data exists How can you tell when a roast is done? How can you tell when a roast is done?  How long should they roast for? I have read this topic:   There, the issue is handling two different generations of PHP (PHP 4 vs PHP 5), but what I need is to make all but one of my server accounts work under 5.3 and just a single domain under 5.2.  I cannot make this through Apache models, and the answer from  does not apply since in my case I can't use a different port - this is a regular website  on the same server. I once learnt, that it is uncool to use $$, but why is that? Why does \[ not act as a abbreviation to \begin{align}? I noticed, that there is a difference, since one cannot use &amp; and \\ inside a block started with \[. Consider this:  \documentclass{article} \usepackage[framemethod=TikZ]{mdframed}  \begin{document} \begin{mdframed}[innerrightmargin=0pt] TEXT\end{mdframed} \end{document}   This produces a frame that is much wider than its content:    I know this is not a bug: the mdframed documentation mentions a userdefinedwidth parameter that defaults to \linewidth. But how can I get a mdframed frame that has the same width as its content?   (What I actually need is a box with rounded corners and shading options; breaking over multiple pages isn't necessary. mdframed seemed like the easiest way to get the box, but if it's too much hassle to make it size to content, it would be useful to know so I can try pure tikz.) Is there anyway to find and remove ligatures from tex file? Sometimes when I copy/paste a text to Winedt, it shows perfect, but when I compile it to Pdf, some issues appear, e.g. finding becomes nding.  I am wondering if there is any way to search and find these characters?  Here is an example file (needs utf8 encoding).  \documentclass{article} \begin{document} ﬁ \end{document} Show that $S + T$ and $aT$ are linear Let  $S:  V \to W$ and $T: V \to W$ be linear transformations. Given $a$ in $\mathbb{R}$, define functions $(S+T): V \to W$ and $(aT): V \to W$ by $(S+T)(v)=S(v) + T(v)$ and $(aT)(v)= aT(v)$ for all $v$ in $V$. Show that $S+T$ and $aT$ are linear transformations. Why can Naruto still use Rasenshuriken? When Naruto first used Rasenshuriken against Kakuzu the effect was massive. He destroyed   two of Kakuzu's hearts, but there were a huge after effect to him. If I'm not mistaken, Tsunade advised Kakashi to ask Naruto never to use the technique again due to the huge risk. So why is Naruto still able to use the technique and have no side effects after that battle? I may have missed out on something. convergence of $\sum_{n=1}^{\infty }\frac{(-1)^{[\sqrt{n}]}}{n}$ where $[a]$ means floor function of $a$ I have a problem with solving the convergence of $\sum_{n=1}^{\infty }\frac{(-1)^{[\sqrt{n}]}}{n}$ where $[a]$ means floor function of $a$. I've already made the first thep and rewrote it with the $\sum_{n=1}^{\infty }(-1)^{n}\sum_{k=n^2}^{(n+1)^2-1}\frac{1}{k}$, which converges if and only if the previous one converges. Now I want to use Leibniz criterion, but I cannot prove that the second sum in the previous expression is monotonic. Does anyone know how to do it? (I cannot use Riemann integral, we haven't defined it yet) Keyboard layout indicator sometimes disappears Ubuntu 18.04.1 after some update Can you prove that if $p$ is a prime greater than $5$, then the sum of the squares of the quadratic nonresidues modulo $p$ is divisible by $p$?  Note that I have just proved that the sum of the quadratic residues modulo $p$ is divisible by $p$ for $p$ greater than $3$. For all $X \geq 1$,$\sum\limits_{1 \leq n \leq X} \mu(n) \left[\frac{X}{n}\right] = 1.$ I'm currently sitting with the following number theory problem:  Prove that for all $X \geq 1$, $$\sum_{1 \leq n \leq X} \mu(n) \left[\frac{X}{n}\right] = 1.$$  A few ideas I have tried: Using that $[x]=x - \{x\}$ which I couldn't make out to bring anything. Switching around on the summation variables, like $$\sum_{d \leq N} \mu(d) f\left( \frac{n}{d} \right) = \sum_{d \leq N} \mu \left( \frac{d}{n} \right) f(d)$$ but that didn't seem to bring anything.  I tried writing out the first few terms, which give $$\mu(1) [X] - \left[\frac{X}{2}\right] - \left[\frac{X}{3}\right] - \left[\frac{X}{5}\right] + \left[\frac{X}{6}\right] - \left[\frac{X}{7}\right] - \left[\frac{X}{8}\right]$$ but I can't seem to find a system where it simply reduces to one!  What do you think? Whats the simplest way to edit and add files to "/var/www"? Having installed the web server is there a simple way to set a user able to use the graphic interface to copy files and directories to the local web server /var/www  I gave myself administrative privileges in Ubuntu but it still doesn't allow copies. Ever since mods gained the ability to undelete comments, deleting them has become easier as the confirmation dialog was removed.  However, this is not the case in the mod queue &mdash; I still get a confirmation dialog for each comment I want to delete in the queue under a custom-flagged post (single-comment flags can be deleted just fine). And since this is the place from where I delete comments the most, it can be annoying.  In addition, the "purge comments" button, when invoked from the queue, refreshes it, so I have to scroll back down, remember which post I just purged, and mark the flag as helpful. Usually not a big issue but if there are multiple "obsolete comments" flags, then it can get confusing.  Could the workflow for comment thread moderation from within the queue be improved? Ideally, make comment deletion work like everywhere else on the site, and make the purge button AJAX-based like the comment deletes. I have been trying to install the latest version of java-8. However, I found out that the  due to changes in the java licence.  How should I update my java to 8.0_201 or 8.0_211 now?  Thanks! I want to leave my Mac awake overnight so it syncs 4GB of data from Dropbox. I need to prevent the machine from going to sleep because that pauses the Dropbox sync  I've been using  to keep the computer awake, but it also keeps the computer unlocked which is insecure.  I need a method to keep my Mac awake (so that Dropbox can sync overnight) but also locked (so no one can read my email). It'd be great if this method also turned off the screen (to preserve power), but honestly that's not even 100% necessary. Much less than, what does that mean? What exactly does $\ll$ mean?  I am familiar that this symbol means much less than.   ...but what exactly does "much less than" mean? (Or the corollary, $\gg$)  On , the example they use is that $1\ll 9999999999$ But my thought on that is that $10^{10^{10^{11}}}\ll 10^{10^{10^{11}}}+9999999999$, based on the same logic. But I am confused because the numbers are comparitively.   Logically, I am really kinda spent dealing with this issue of mine. Thanks for any input. How to make IntelliJ IDEA recognise code created by macros?