connect

HTTP :connect timeout and read timeout for URLStreamHandler with SAAJ working for windows but not working on linux sytem

匿名 (未验证) 提交于 2019-12-03 02:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm a beginner when it comes to HTTP connections. Currently i'm working with SAAJ api to have my soap based client, where to handle timeouts i ended up using URLStreamHandler for HTTP connection properties with the endpoints. Problem is that this timeout works for my windows based system, however it isn't working for the Linux server it is going to go live on. below is the code for fetching endpoint with set properties. It is a HTTP POST connection. URL endpoint = new URL (null, url, new URLStreamHandler () { protected URLConnection

MS SQL ping external server

匿名 (未验证) 提交于 2019-12-03 02:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is there a 'nice' way to check whether an network host is up making use of 'plain' SQL? I thought of some MS-SQL specific command or maybe some getting the return value from a ping script on the server itself. Does anyone has an idea on this? 回答1: There's two possible ways to take your answer: 1. you want to know if a SQL server is running on an arbitrary host 2. You want to ping an arbitrary host from a SQL server using some query. you could use dariom's answer. 1a. if you want to query one SQL server from another, you're better off using

socket.io parse connect (>= 2.4.1) signed session cookie

可紊 提交于 2019-12-03 02:28:14
With the latest version of connect (as of 2012-07-26), I've found the following way to get a session ID from socket.io that will work with a connect-redis store. var express = require('express') , routes = require('./routes') , fs = require('fs') , http = require('http') , io = require('socket.io') , redis = require('connect-redis') , connect = require('express/node_modules/connect') , parseSignedCookie = connect.utils.parseSignedCookie , cookie = require('express/node_modules/cookie'); var secret = '...'; var rStore = new(require('connect-redis')(express)); //... var server = http

Microsoft Power BI connect to mysql

匿名 (未验证) 提交于 2019-12-03 02:27:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My mysql server is on the cloud. I install the connector to connect mysql on window 7 machine. Then i try to connect from power bi to mysql server. I give the ip address and database name, my root credential. Then i click on save. It give me the following error. DataSource.Error: MySQL: Unable to connect to any of the specified MySQL hosts. Details: Message=Unable to connect to any of the specified MySQL hosts. ErrorCode=-2147467259 Then i try to connect from mysql workbench with same credential from same machine. I can connect, But i am not

How to connect TFS in Visual Studio code

匿名 (未验证) 提交于 2019-12-03 02:27:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm new to VS code. So far it seems very nice and much lighter than VS. How could I connect my existing TFS server to VS code (my TFS must stay on premises - company requirements). I read that this can be done but so far I've seen only examples for Git or TFVC. 回答1: Just as Daniel said " Git and TFVC are the two source control options in TFS ". Fortunately both are supported for now in VS Code. You need to install the Visual Studio Team Services Extension for Visual Studio Code . The process of installing is pretty straight forward: Search

Android: How to use webcam in emulator?

匿名 (未验证) 提交于 2019-12-03 02:26:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm connecting a webcam to my emulator by setting the front camera to "webcam0" in the AVD Manager. When I start the emulator's camera application, I get the error CameraService::connect X (pid 702) rejected (invalid cameraId 0). Here's the relevant portion of the Android source code: sp CameraService::connect( const sp & cameraClient, int cameraId) { int callingPid = getCallingPid(); [...] if (cameraId = mNumberOfCameras) { LOGE("CameraService::connect X (pid %d) rejected (invalid cameraId %d).", callingPid, cameraId); return NULL; } [...]

R RPostgreSQL Connect to Remote Postgres Database with SSL

匿名 (未验证) 提交于 2019-12-03 02:26:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to connect to a remote PostgreSQL database from within R using the RPostgreSQL package, and I am getting errors that appear to be related to the SSL settings for the connection. I have verified that I can connect from the command line using psql , so I know the connection is valid and accessible from my computer. My first attempt at connecting in R was the following (where <MyHost> and <MyPass> were filled out appropriately for my connection): library(RPostgreSQL) pg <- dbDriver( 'PostgreSQL' ) con = dbConnect( pg, host=<MyHost>,

How do you connect to a TFS server in C# using specific credentials?

匿名 (未验证) 提交于 2019-12-03 02:25:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am attempting to write a c# application that connects to TFS and retrieves work item information. Unfortunately, it seems like all examples of using the TFS SDK are using the default credentials for the current user (i.e. my domain login information). The closest piece of information I found is to use the TeamFoundationServer (String, ICredentials) constructor, however I cannot find any information for a suitable class that interfaces with the ICredentials interface (especially since it seems to not be using the System.Net ICredentials but

pyodbc.Error: (&#039;IM002&#039;, &#039;[IM002] [unixODBC][Driver Manager]Data source name not found, and no default driver specified (0) (SQLDriverConnect)&#039;)

匿名 (未验证) 提交于 2019-12-03 02:24:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to connect to a datbase using pyodbc and running into following error,can anyone suggest how to overcome below error? Installed pyodbc using the following commands sudo apt-get install unixodbc-dev pip install pyodbc Code:- #!/usr/bin/python import pyodbc server_name='odsdb.qualcomm.com' database_name='ODS' #cnx = pyodbc.connect("SERVER="+server_name+";DATABASE="+database_name) cnx = pyodbc.connect("DRIVER={SQL Server};SERVER="+server_name+";DATABASE="+database_name) db_cursor = cnx.cursor() print "List of tables in DB" for row

Python socket.error: [Errno 111] Connection refused

匿名 (未验证) 提交于 2019-12-03 02:24:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to write a program for file transfer using sockets. The server end of the code is running fine. However, in the client side I get the following error Traceback (most recent call last): File "client.py", line 54, in <module> uploadFiles(directory) File "client.py", line 36, in uploadFiles transferFile(fname) File "client.py", line 13, in transferFile cs.connect((HOST, 36258)) File "/usr/lib/python2.7/socket.py", line 224, in meth return getattr(self._sock,name)(*args) socket.error: [Errno 111] Connection refused My code is as