I set up, ubuntu linux on virtual box. Then I installed postgresql and node.js  So basically I made a clean installation and i want that  ubuntu handles my requests.  When i run node server.js , a Sequelize.js error occurred.   Unhandled rejection SequelizeConnetionRefusedError: connect ECONNREFUSED 127.0.0.1:5433  PostgreSQL is listening on port 5432, and once i run node server.js,tables are created with no problem.  I think is a problem with my client, and I don't know why.  postgres.conf listen_addresses='*'.  pg_hba.conf  host all all 0.0.0.0/0 trust.  I have little bit experience with Linux Ubuntu and configuration So a big hug and thanks for who will help me
This is a  about Connection Refused    We see a lot of questions to the effect      When I try to connect to a system I get a message      Connection refused      Why is this ?
Linux: clnt_create: RPC: Program not registered NFS mounts recently automatically got un-mounted. When I checked, the NFS service status it was shown to be running.  [root@hsluasrepo]# service nfs status rpc.svcgssd is stopped rpc.mountd (pid 4083) is running... nfsd (pid 4148 4147 4146 4145 4144 4143 4142 4141) is running... rpc.rquotad (pid 4079) is running...  [root@hsluasrepo]# service rpcbind status rpcbind (pid  4203) is running...  [root@hsluasrepo common]# rpcinfo -p 10.80.3.154    program vers proto   port  service     100000    4   tcp    111  portmapper     100000    3   tcp    111  portmapper     100000    2   tcp    111  portmapper     100000    4   udp    111  portmapper     100000    3   udp    111  portmapper     100000    2   udp    111  portmapper   But showmount output was showing an error.  [root@hsluasrepo ]# showmount -e 10.80.3.154 clnt_create: RPC: Program not registered   After restarting the NFS service, showmount output displayed the NFS server's export list.  Can anyone tell me the root cause of this issue and How to avoid this problem in future?  /var/log/messages:  Jul 7 03:22:01 hsluasrepo rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="1188" x-info="rsyslog.com"] rsyslogd was HUPed Jul 7 03:22:02 hsluasrepo rhsmd: In order for Subscription Manager to provide your system with updates, your system must be registered with RHN. Please enter your Red Hat login to ensure your system is up-to-date. Jul 8 03:22:01 hsluasrepo rhsmd: In order for Subscription Manager to provide your system with updates, your system must be registered with RHN. Please enter your Red Hat login to ensure your system is up-to-date. Jul 8 16:36:55 hsluasrepo kernel: nfsd: last server has exited, flushing export cache Jul 8 16:36:55 hsluasrepo rpc.mountd[4083]: Caught signal 15, un-registering and exiting. Jul 8 16:36:55 hsluasrepo rpc.mountd[24463]: Version 1.2.3 starting Jul 8 16:36:55 hsluasrepo kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory Jul 8 16:36:55 hsluasrepo kernel: NFSD: starting 90-second grace period Jul 8 16:37:32 hsluasrepo rpc.mountd[24463]: authenticated mount request from 10.60.5.208:1004 for /common/PROD (/common/PROD) Jul 8 16:38:09 hsluasrepo rpc.mountd[24463]: authenticated mount request from 10.60.5.181:869 for /common/PROD (/common/PROD)  Jul 8 16:38:43 hsluasrepo rpc.mountd[24463]: authenticated mount request from 10.60.5.180:825 for /common/PROD (/common/PROD) Jul 8 16:39:12 hsluasrepo rpc.mountd[24463]: authenticated mount request from 10.60.5.176:688 for /common/PROD (/common/PROD) For any matrix $A$, $AA^T$ is symmetric, and thereby diagonalizable (Spectral Theorem). This implies that $AA^T$ has n linearly independent eigenvectors and therefore full rank.  Does this imply that for any matrix $A$, $AA^T$ is always invertible ? I know there is something wrong here because from the above chain we can conclude that a symmetric matrix is always invertible, which is definitely not true.  Could someone please point out where I am going wrong? Questions on "All Horse are the Same Color" Proof by Complete Induction The only thing I need is an exact copy of an existing shapefile in the same directory with a different name.  I have tried:   arcpy.CopyFeatures_management (ORLinks, MyLinks) #ORLinks: old links, MyLinks: new links   but for some reason, I cant make it a feature layer using:  arcpy.MakeFeatureLayer_management(MyLinks, 'MyLinks')   Error Encountered:  Error: Failed to execute. Parameters are not valid. ERROR 000732: Input Features: Dataset  M:\RAIL\Rail2.0.shp does not exist or is not supported Failed to execute (MakeFeatureLayer). How to enable fast user switching when Login Options are disabled? How do I print all lines of a file with duplicate values in a certain column Given a file like this:  1,768,12,46576457,7898 1,123,435,134,146 2,345,6756856,12312,1311 5,234,567465,12341,1341 1,3245,4356345,2442,13 9,423,2342,121,463 9,989,342,121,1212   I would like to list all rows (in bash terminal) such that the value in column 1 appears at least twice (in column 1). The result should be  1,768,12,46576457,7898 1,123,435,134,146 1,3245,4356345,2442,13 9,423,2342,121,463 9,989,342,121,1212 Let $A,B \subseteq \mathbb{R}^d$ be non-empty sets. Define their distance to be $$ d(A,B) = \inf \{ \|x-y\| : x \in A, \; \; y \in B \} $$ For any $A,B$, I want to prove that $d(A,B) = d( \overline{A}, \overline{B} )$. My Attempt Put $\alpha = d(A,B)$. Therefore, $\alpha = \|x_0 - y_0 \|$ for some $x_0 \in A$ and some $y_0 \in B$. But, notice $x_0 \in \overline{A}$ and $y_0 \in \overline{B}$ by definition. hence $$ \| x_0 - y_0\| \geq \inf\{ \|x' - y'\| : x' \in \overline{A}, \; \; y' \in \overline{B} \} =  d( \overline{A}, \overline{B} )$$ $$\therefore d(A,B) \geq d( \overline{A}, \overline{B} )$$ I am stuck trying to show the other direction: $d(A,B) \leq d( \overline{A}, \overline{B} )$ Can someone help me? thanks a lot Why is the derivative of a circle's area its perimeter (and similarly for spheres)? When differentiated with respect to $r$, the derivative of $\pi r^2$ is $2 \pi r$, which is the circumference of a circle.  Similarly, when the formula for a sphere's volume $\frac{4}{3} \pi r^3$ is differentiated with respect to $r$, we get $4 \pi r^2$.  Is this just a coincidence, or is there some deep explanation for why we should expect this? Where does Google Chrome automatically save pages? Often more than one person contributes to the community coming up with the final accepted answer to a question. However, it is only possible to accept a single answer. Restricting to one final answer does make sense for the sake of referencing that answer later, but in many cases that answer is the product of the input from several individuals. I would like to be able to decide how much of a bounty goes to different users, or some other mechanism to recognize the contribution of multiple users. Of course I could always upvote their previous answers, but this is really incorrect if their previous answers aren't the complete, final answer I've accepted.  What think you metaSOrs? Actually snapping to pixel grid Does anyone know if there's a way to have Illustrator CC (2014) constrain control points to the pixel grid? I understand that "Align to pixel grid" makes it so that a shape will try to match the pixel grid, but the actual control points don't line up to said grid... The image I've attached illustrates my problem. Layover at Tokyo Narita airport: can I travel outside, and what kind of visa would I need? I am travelling from Singapore to San Francisco and the airline has a layover of 7.5 hours at Tokyo Airport (NRT). I am wondering if I would be allowed to go out to experience the city for a while in some form a visitor visa.  I know Singapore has such facilities, but does anyone know if I can do it in Tokyo? Any suggestions or pointers are welcome. Note - I do not have a visa for Japan yet, but I am hoping that 1 day visitor visa could be possible at airport. ${a^2}{\mid}({b^3} + 1)\;$and$\;{b^2}{\mid}({a^3} + 1)$ How to sample from a discrete distribution? Assume I have a distribution governing the possible outcome from a single random variable X.  This is something like [0.1, 0.4, 0.2, 0.3] for X being a value of either 1, 2, 3, 4.  Is it possible to sample from this distribution, i.e. generate pseudo random numbers upon each of the possible outcomes given the probability of that outcome. So if I wanted to know what the probability of getting a 2 is, the sampling operation may return 0.34 or something like that.  The reason I ask is that I'm trying to implement an action selection policy for a reinforcement learning method based on a research paper. From what I gather from the paper, the author is able to sample the distribution by "mapping the uniform distribution U[0,1] through cumulative probability density functions obtained by adaptive numerical integration". From this he then samples the transition probabilities for each trial...  I would be grateful for any info on this...  Thanks in advance Apply SP3 on SQL Server 2012 AlwaysOn AAGs How do you file a bug report for Windows? I have come across an issue that I feel is a  in Windows 7. What is the official process for submitting an issue to Microsoft from a consumers perspective as an end user of Windows? How to set edge bevel weights from a python script I need to set weights for some edges from a python script. I have tried looping through object.data.edges and setting bevel_weight values but I can't get it right. It only works if I have first edited some edge's bevel weight by hand from the 3d-view's transform window. But I would like to get it work from my script without any manual hacking.  Steps to reproduce:  Start Blender with default cube and switch to Scripting view.  Try to set weights for all edges:  for edge in C.object.data.edges:     edge.bevel_weight = 1.0   Verify that values changed:  for edge in C.object.data.edges:     edge.bevel_weight   Switch into edit mode in 3d-view and open up transform window by pressing n. Select edges to see that the change did not work (bevel weights are all zero). Switch back to object mode and read values again in scripting console to see that they were reset to zero:  for edge in C.object.data.edges:     edge.bevel_weight   Go back to edit mode and change some edge bevel weight straight from the transform window by hand. Go back to object mode and change values again from the scripting console:  for edge in C.object.data.edges:     edge.bevel_weight = 1.0   This time it works, bevel weights are 1.0 when you go back to edit mode and look from the transform window.   Any ideas? My final need is to apply a bevel modifier to only some set of edges and that's why I'm trying to mark them by using weights. Using vertex group for bevel modifier does not work in my situation, since I need to specify edges, not vertices, which to bevel.   I'm using Blender v2.71. Is it a scam if the person only wants to deposit into my account, not make a withdrawal? I've recently started playing Minecraft, and I only have a little experience with enemies (I've been playing with the peaceful setting so I can figure out what the heck I'm doing).  When I did play some survival mode, I happened to be at the top of a pretty large cliff when night hit, and this seemed to protect me - the baddies just piled up at the bottom of the cliff.  However, it seems like this probably only worked due to pathing flukes.  The terrain behind me was pretty easy going, so I suspect if enemies spawned in the right areas, they could still come up and visit.  That said, how can I set up a quick protective shelter for the first night or two?  The days don't seem to last very long, so I don't expect I would be able to generate a lot of high-end materials, tools, etc. to work with.  Also, the zombies caught fire nicely when the sun came up, but there were still some spiders and some other things (creepers? - they were explosive) that didn't go away at daybreak.  Do I need multiple exits for my shelter or some other way to avoid running into all the enemies outside the front door that have accumulated overnight? Xorg 100% cpu with pulseaudio On Ubuntu 16.04.3 LTS  Pulseaudio causes Xorg to use 100% CPU.  After disabling autospawn in /etc/pulse/client.conf and killing pulseaudio CPU immediately drops to acceptable level. After restarting pulseaudio Xorg returns to 100% CPU.  pulseaudio --kill pulseaudio --start   Installed versions:  pulseaudio 1:8.0-0ubuntu3.7 xorg       1:7.7+13ubuntu3 nvidia-390 390.30-0ubuntu1    How to fix this?