host

Access docker container from host using containers name

匿名 (未验证) 提交于 2019-12-03 02:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am developing a service and using there docker compose to spin services like postgres, redis, elasticsearch. I have a web application that is based on RubyOnRails and writes and reads from all those services. Here is my docker-compose.yml version: '2' services: redis: image: redis:2.8 networks: - frontapp elasticsearch: image: elasticsearch:2.2 networks: - frontapp postgres: image: postgres:9.5 environment: POSTGRES_USER: elephant POSTGRES_PASSWORD: smarty_pants POSTGRES_DB: elephant volumes: - /var/lib/postgresql/data networks: - frontapp

Hostname / IP doesn't match certificate's altname

匿名 (未验证) 提交于 2019-12-03 02:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to create a TLS server / client setup using Node.js 0.8.8 with a self-signed certificate. The essential server code looks like var tlsServer = tls.createServer({ key: fs.readFileSync('server-key.pem'), cert: fs.readFileSync('server-cert.pem') }, function (connection) { // [...] }); tlsServer.listen(3000); Now when I try to connect to this server I use the following code: var connection = tls.connect({ host: '192.168.178.31', port: 3000, rejectUnauthorized: true, ca: [ fs.readFileSync('server-cert.pem') ] }, function () { console

java.net.UnknownHostException: Invalid hostname for server: local

匿名 (未验证) 提交于 2019-12-03 02:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: What are the steps I should take to solve the error: java.net.UnknownHostException: Invalid hostname for server: local I added the new virtual host name at Android emulator but the result returns to java.net.UnknownHostException virtualhostname at java.net.InetAddress.lookUpHostByName(InetAddress.java:506) When I type my virtualhost URL on my PC, it works on display. Then again, when I ran on Emulator and check on Logcat, I couldn't be able to read or check the HTTP status if 200, 202, or an error code number. It simply returned to

How to send email via Django?

匿名 (未验证) 提交于 2019-12-03 02:03:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In my settings.py , I have the following: EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' # Host for sending e-mail. EMAIL_HOST = 'localhost' # Port for sending e-mail. EMAIL_PORT = 1025 # Optional SMTP authentication information for EMAIL_HOST. EMAIL_HOST_USER = '' EMAIL_HOST_PASSWORD = '' EMAIL_USE_TLS = False My email code: from django.core.mail import EmailMessage email = EmailMessage('Hello', 'World', to=['user@gmail.com']) email.send() Of course, if I setup a debugging server via python -m smtpd -n -c DebuggingServer

Maven Wagon SCP is not able to establish a connection

匿名 (未验证) 提交于 2019-12-03 02:01:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to copy resources to another location. I am using maven wagon-ssh plugin to do this. It works fine locally, I am having issues when using Hudson/Jenkins. My settings.xml file looks like this: iq no user pass I tried this answer to skipping checking as I was getting: Are you sure you want to continue connecting? (yes/no): The authenticity of host 'address' can't be established. RSA key fingerprint is 10:.......:bb. but now I am getting: Could not apply configuration for iq to wagon org.apache.maven.wagon.providers.ssh.jsch

ERROR 1396 (HY000): Operation CREATE USER failed for 'jack'@'localhost'

匿名 (未验证) 提交于 2019-12-03 02:00:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I seem to be unable to re-create a simple user I've deleted, even as root in MySQL. My case: user 'jack' existed before, but I deleted it from mysql.user in order to recreate it. I see no vestiges of this in that table. If I execute this command for some other, random username, say 'jimmy', it works fine (just as it originally did for 'jack'). What have I done to corrupt user 'jack' and how can I undo that corruption in order to re-create 'jack' as a valid user for this installation of MySQL? See example below. (Of course, originally, there

Vagrant port forwarding for Mysql

匿名 (未验证) 提交于 2019-12-03 01:59:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to setup port forwarding in Vagrantfile to connect to guest mysqld from host system, but get reading initial communication packet error. Host: Yosemite, Guest: Trusty, vagrant 1.7.4 Vagrantfile(host): config.vm.network "forwarded_port", guest: 80, host: 8080 config.vm.network "forwarded_port", guest: 3306, host: 3309 my.ini(guest): bind-address = 127.0.0.1 8080 forwarding works like a charm. mysql -h127.0.0.1 -uroot -p from guest also works. mysql -h127.0.0.1 -P 3309 -uroot -p from host results with reading initial communication

Symfony 2 SQLSTATE[HY000] [2002] Connection refused Error

匿名 (未验证) 提交于 2019-12-03 01:59:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I get an error like database operations using Symfony2. SQLSTATE[HY000] [2002] Connection refused parameters.yml parameters: database_driver: pdo_mysql database_host: 127.0.0.1 database_port: '8889' database_name: symfony database_user: root database_password: root mailer_transport: smtp mailer_host: 127.0.0.1 mailer_user: null mailer_password: null locale: tr secret: ef9b4381fe75208f060b7c786951242bebcfb3c2 database_path: /private/var/mysql/mysql.sock And console: Kemal-Karakass-MacBook-Pro:~ kemalkarakas$ locate mysql.sock /private/var

Ping with timestamp

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: On the Windows command prompt cmd , I use ping -t to 10.21.11.81 Reply from 10.21 . 11.81 : bytes = 32 time = 3889ms TTL = 238 Reply from 10.21 . 11.81 : bytes = 32 time = 3738ms TTL = 238 Reply from 10.21 . 11.81 : bytes = 32 time = 3379ms TTL = 238 Are there any possibilities to get an output like this? 10 : 13 : 29.421875 Reply from 10.21 . 11.81 : bytes = 32 time = 3889ms TTL = 238 10 : 13 : 29.468750 Reply from 10.21 . 11.81 : bytes = 32 time = 3738ms TTL = 238 10 : 13 : 29.468751 Reply from 10.21 . 11.81 : bytes = 32 time =

Using Emacs server and emacsclient on other machines as other users

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I know that after I call (start-server) inside an existing Emacs session I can then use emacsclient -c (on the same computer) to create new frames that connect into that server, so that each new frame created by emacsclient has access to the same set of shared state (e.g. buffers). Most of the documentation I've found focuses on the "give me fast access to my local Emacs" use case, and so there are two things that I haven't seen any details of yet: Can emacsclient -c access Emacs servers started by other users, or is it hard-wired to detect