connect

OpenShift: How to connect to postgresql from my PC

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have an openshift app, and I just installed a postgresql DB on the same cartridge. I have the postgresql DB installed but now I want to connect to the DB from my PC so I can start creating new tables. Using port forwarding I found my IP for the postgresql db to be 127.3.146.2:5432 under my webaccount I see my Database: txxx User: admixxx Password: xxxx Then Using RazorSQl I try to setup a new connection keeps coming as user password incorrect. If I try and use the local IP to connect such as the 127.0.0.1 then I can connect fine. How can I

Connect from one Docker container to another

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to run rabbitmq-server in one docker container and connect to it from another container using celery ( http://celeryproject.org/ ) I have rabbitmq running using the below command... sudo docker run -d -p :5672 markellul/rabbitmq /usr/sbin/rabbitmq-server and running the celery via sudo docker run -i -t markellul/celery /bin/bash When I am trying to do the very basic tutorial to validate the connection on http://docs.celeryproject.org/en/latest/getting-started/first-steps-with-celery.html I am getting a connection refused error:

Connect to MySQL on AWS from local machine

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to set up a dev environment on my local machine that accesses a MySQL DB on AWS, but I keep getting a "Can't connect" message. mysql_connect('xxx.xxx.xxx.xxx:3306', 'USERNAME', 'PASSWORD'); I also commented out the bind-address in the my.cnf file, and granted permissions to the IP address that is connecting. Anyone ever successfully get this working? 回答1: I suppose this is firewalled by Amazon, try using a SSH tunnel: http://blogs.oracle.com/divyen/entry/connecting_mysql_server_on_amazon Note: Do not open MySQL to the public

ssh: connect to host github.com port 22: Connection timed out

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am under a proxy and I am pushing in to git successfully for quite a while. Now I am not able to push into git all of a sudden. I have set the RSA key and the proxy and double checked them, with no avail and git is throwing me the error shown in the title of the page. 回答1: The reason could be the firewall modification as you are under a network.(In which case they may deliberately block some ports) To double check if this is the reason ... do ssh -T git@github.com this should timeout. If that's the case use http protocol instead of ssh

JavaMail API to iMail ― java.net.SocketException: Permission denied: connect

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am having trouble getting an application to use the JavaMail API to send out some files in a more automated way than we are used to doing. I am very new to Java and NetBeans, but have programmed in other languages, so please forgive me if I seem a little lost to Java and or NetBeans. I keep getting this error java.net.SocketException: Permission denied: connect when trying to connect to the local mail server. I have connected and sent mail successfully through gmail's SMTP server with the same code, just changing username, password, and

Warning: mysql_real_escape_string(): Access denied for user 'root'@'localhost' (using password: NO) …/public_html/checklogin.php

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Thank you guys for the wonderful job you are doing. I just uploaded my website on the the remote server and it brought me back this error message. Warning: mysql_real_escape_string(): Access denied for user 'root'@'localhost' (using password: NO) in /home/therealimage/public_html/checklogin.php on line 3 Warning: mysql_real_escape_string(): A link to the server could not be established in /home/therealimage/public_html/checklogin.php on line 3 Warning: mysql_real_escape_string(): Access denied for user 'root'@'localhost' (using password: NO)

QtCore.QObject.connect in a loop only affects the last instance

匿名 (未验证) 提交于 2019-12-03 02:42:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have got a loop. I created a QCheckBox and put it in a QTableWidget cell, and everything is Ok. In each step of loop I have called a connect function, for myslot SLOT, but only the last QCheckBox instance is applied. I googled a lot and have found many people have my problem. I have applied their solutions, but my problem remains. for row in xrange(len(uniqueFields)): instance = QtGui.QCheckBox(uniqueFields[row], findInstance.tableWidget) print QtCore.QObject.connect(instance, QtCore.SIGNAL(_fromUtf8("stateChanged (int)")), lambda:

Warning: mysqli_select_db() expects exactly 2 parameters, 1 given *13* [duplicate]

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This question already has an answer here: Warning: mysqli_select_db() expects exactly 2 parameters, 1 given [duplicate] 7 answers I'm working on a system for my school that lets the teachers post any notices they have for the day on the intranet. However I got this error when testing it out: Warning: mysqli_select_db() expects exactly 2 parameters, 1 given in C:\Users\Matthew\Desktop\wamp64\www\my-site\viewguestbook.php on line 23. Here is the page's code: <?php $host="localhost"; // Host name $username="root"; // Mysql username $password=""

Android save BLE device to reconnect after app close

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm developing an android BLE app in which i try to establish a stable Connection between the app and a BLE device. To achieve this i want my app to keep the BLE device data in shared preferences or somewhere. After app close, i'd like my app to retrive this data and attemp a connection without scan for devices. I prefer to avoid scanning every time becouse scan gives me a lot of problems and it takes time. How can do it? Is there a way to save BLE data? 回答1: You need to store the Bluetooth Device Address (AB:CD:EF:01:02:03) of the device in

phpmailer and gmail SMTP ERROR: Failed to connect to server: Network is unreachable (101) SMTP connect() failed

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I need help please this is my code: require 'PHPMailerAutoload.php'; $mail = new PHPMailer; $mail->isSMTP(); $mail->Host = "smtp.gmail.com"; $mail->SMTPDebug = 2; $mail->SMTPAuth = true; $mail->SMTPSecure = "tls"; $mail->Port = 587; $mail->Username = 'some@gmail.com'; $mail->Password = 'somepass'; $mail->addAddress('another@gmail.com', 'Josh Adams'); $mail->Subject = 'PHPMailer GMail SMTP test'; $body = 'This is the HTML message body in bold!'; $mail->MsgHTML($body); if (!$mail->send()) { echo "Mailer Error: " . $mail->ErrorInfo; } else {