Questions tagged [connection]

0

votes
0

answer
5

Views

Chat Programm with C# via IP-Address. Connecting two Computers in different Networks

I'm writing a Chat Programm for me and my friend in C# and I don't know how to connect my Computer to a Computer in a different Network. The Code Works fine in my Home Network between two Computers but between two different Networks it doesn't work. I know why it doesn't work, I mean it makes sense,...
Eric de la Fuente
1

votes
2

answer
1.9k

Views

How to read connection string inside .NET Standard Class library project from ASP.NET Core

In my solution, I have a ASP.NET Core web project and a .NET Standard class library project. Class library project is the data access layer and I want to read the connection string from my appsettings.json (ASP.NET Core project) in my data access layer. I have found few answers such as by Andrii Li...
Learning Curve
1

votes
2

answer
241

Views

api call in android 9 configuration devices and emulator shows connection error

I am using android 9 emulator, it has internet connection from system and i have added internet permission in manifest. When i try to call api it shows connection error.
Athira
1

votes
1

answer
636

Views

Mongo-Go-Driver Failing to Connect

So I am trying to use https://github.com/mongodb/mongo-go-driver to connect to a mongo database in golang. Here is my connection handler: var DB *mongo.Database func CreateConnectionHandler()(*mongo.Database, error){ fmt.Println('inside createConnection in database package') godotenv.Load() fmt.Pri...
Peter Weyand
1

votes
1

answer
23

Views

How to Execute couchbase N1ql query through java [closed]

i am getting a N1Ql query as a string through another service as a input, so i want to execute it by making a connection to couchbase
Shubam Garg
1

votes
2

answer
2.7k

Views

Connecting TFS to TeamCity

I'm trying to connect my TeamCity project to my TFS project with a free account (a windows live account). But I'm having a little bit a trouble doing this. I'm getting the error TF30063 (You are not authorized to access /DefaultCollection/). I've tried a lot of things, I even follow the instruction...
Victor Franchi
1

votes
0

answer
12

Views

Client program only connecting to server 1/2 of the time. Python noob, can't figure out why

I'm attempting to set up a client program that interacts with 3 different servers, AS, TS1, and TS2. I boot up the servers TS1, TS2, and AS and then I start Client, however on first attempt my client gives me '[Errno 61] Connection refused'. This shuts down TS2, AS, and Client obviously. TS1 remains...
Jessi Medina
1

votes
2

answer
12.2k

Views

connectionString outside SQL server with App.config file

I have a console application and in the App.config I need to add a connectionString to another SQL server that is in the same network. If I try the connectionString to a local server by only passing the Server='localhost' its worked but I cannot make it work for an outside server. Thanks Here is the...
A arancibia
0

votes
0

answer
5

Views

Connecting 4 MySql tables for real estates

I have 4 MySql tables with real estates connected together and I am working on the formu to filter the results by (price, space, rooms etc.) Could somebody help me to find the good way to do that? I am not beginner with MySql but clean solution for 4 tables it's a bit too much for my skills. Thank y...
tomdawayhet
1

votes
2

answer
71

Views

How to simultaneously read and write a file line by line?

I would like to remove all lines from a file which start with a certain pattern. I would like to do this with R. It is good practice to not first read the whole file, then remove all matching lines and afterwards write the whole file, as the file can be huge. I am thus wondering if I can have both a...
Marius Hofert
1

votes
0

answer
12

Views

Seeking advice on technologies to use for a project: ORMs, Building reactive interfaces, etc

My friend and I are starting a relatively ambitious long term project and we require some assistance deciding which technologies would be best suited for our needs. We would be very grateful for any advice or opinions on which technologies would be best suited for our project. Below is some informat...
zbbz
1

votes
0

answer
99

Views

Python IRC bot will only send 1 message

I'm writing a Twitch bot and it will only send one message to server. When executing code below 'Connected' shows up in Twitch chat, 'Testing' does not. import socket HOST = 'irc.chat.twitch.tv' PORT = 6667 NICK = 'mybot' PASS = 'oauth:mytoken' CHANNEL = 'mychannel' def send_message(msg): s.send(byt...
PileOfMeatballs
1

votes
3

answer
503

Views

How to build connection string from existing connection for new database created dynamically?

I have query to dynamically create database. private void ExecuteNonQuery(string sql) { using (var connection = new SqlConnection(_connectionString)) { connection.Open(); SqlCommand command = connection.CreateCommand(); command.CommandText = sql; command.ExecuteNonQuery(); } } private void CreateDat...
Sachin
0

votes
0

answer
10

Views

How to change the username/password and database runtime using HikariCP

I have a multi tenant application that tries to connect to database per tenant and each database will have its own username/password. I want to achieve this using a single datasource by switching between the datasources and users. I tried to set the username and password at runtime on getting the co...
Srik91
1

votes
2

answer
1.1k

Views

Android App not connecting to internet on emulator

The app does not connect to the internet. I have in my manifest and I checked the other applications on the emulator for example youtube and google search works but the application isn't able to load the page. This is my main java file. import android.app.Activity; import android.os.Bundle; import...
helpmeplease
1

votes
1

answer
1k

Views

Laravel Valet sites connection refused on port 80

Ever since Chrome and Safari started forcing HTTPS redirection on the .dev TLD I've been getting issues connecting to my Laravel Valet sites. Without knowing that Chrome and Safari had done this, I updated Valet to from 1.2 and not thinking to check in Firefox first (doh! 😖). I've installed the l...
Ben
1

votes
0

answer
100

Views

Symfony Repository service configuration with multiple connections

I have a Symfony app with two different database connections. Until yesterday I only needed the default connection but now I need the other one. I configure my services in yaml and I have absolutely no idea what I have to do differently for the other connection to inject my repository. The configur...
jvda
1

votes
0

answer
43

Views

Swift app cant connect to internet when distributed via .ipa

I am developing an app, when the app is installed on my device it works fine, never had any connectivity issues. I added a UDID of a beta tester, updated the provisioning profile and sent him the a link to download the .ipa via manifest etc... If I download the app via the AWS S3 server its being ho...
captCC
1

votes
0

answer
53

Views

How to force close a urllib connection?

I was looking at urllib in python and I was wondering is it possible to force close urllib.request.urlopen if the connection seems to be taking too long.
ConnorReardon
1

votes
0

answer
718

Views

Tableau could not receive data from server: Software caused connection abort

I have a Tableau (reporting) server on Windows 10 that internally uses PostgresDB. Besides I have a PostgresDB, where my data is located, so reports are aggregated using this data. What should our end-user experience? - He or she opens in a web browser a report by url and see the data. For some rea...
Marcel Mars
1

votes
1

answer
94

Views

After registering Airplay receiver on iOS, it won't connect

After successfully registering an Airplay service on iOS, I can see it in the list of Airplay receiver in the Control Center. When clicking on it, it tries to connect but ends in an error alert (Connection to 'myDevice' not possible). I'm using the DNSServiceRegister command from the dns-sd library...
ggs
1

votes
1

answer
58

Views

Run process and suspend it while Internet is down, continue when up, on loop

I have a command that is overly sensitive to timeouts, and a shitty Internet connection that gives me multi-second periods of no connection that are just frequent enough to cause that command to fail. I would like a Bash script of the form: tubeify -t 100ms -- /usr/bin/somecommand with its arguments...
Sai
1

votes
0

answer
365

Views

Unable to connect to mongodb database via Studio3T with Authentication

I am using Ubuntu16.04 and i had enabled authorization in mongodb and created user via following. use admin db.createUser( { user: 'ABC', pwd: 'XYZ', roles: [ { role: 'root', db: 'admin' } ] } ); And after restarting mongodb server authorization working fine while connecting to the mongodb via termi...
Jitendra
1

votes
0

answer
34

Views

Can't update any page in wordpress site

After updating any page in the wordpress site I see the mistake http://joxi.ru/gmvg1LQfLanRJ2 This problem disappearing if I access Internet through wifi network using the same router, pc and browser. Trying different browsers makes no difference. My colleges from other cities update pages of the...
Konstantin
1

votes
1

answer
403

Views

Sporadically my docker container gets 'orphaned'

My docker container builds a software product which takes more or less a couple of hours. Most times, it runs fine. However, sometimes it gets 'orphaned' towards the end of execution. By 'orphaned,' I mean: 1. 'docker ps' reports the container properly. 2. 'docker inspect' reports normally too. 3....
Munjo Yu
1

votes
1

answer
438

Views

Connection pooling on server vs application

What is difference between doing connection pooling settings in application code like shown in below link vs doing on the server itself like shown in the second link for weblogic? http://javarevisited.blogspot.com/2012/06/jdbc-database-connection-pool-in-spring.html https://docs.oracle.com/cd/E13222...
NaiveCoder
1

votes
1

answer
132

Views

how to unwrap PostgreSQL connection from the IBM WSJdbc41Connection

I have been trying to unwrap PostgreSQL connection from the IBM JNDI (WebSphere liberty ) and have had no luck please any help with that : Context ctx = new InitialContext(); DataSource dataSource = (DataSource) ctx.lookup('jdbc/indi'); Connection cnx = dataSource.getConnection(); I get this excepti...
Joe Kel
1

votes
1

answer
479

Views

How to make Spring Boot application run despite whether a datasource is available

In my Spring Boot application, a datasource is configured. application.properties is like: spring.datasource.url=jdbc:mysql://localhost/test_db spring.datasource.username=test spring.datasource.password=test The application code looks like: public class Foo { @Autowired private JdbcTemplate jdbcTemp...
Yu Hao
1

votes
0

answer
413

Views

Connecting to Informix Connection Manager Using JDBC

I need some clarification on how (some) JDBC drivers connect to (Informix) Databases. We had the issue of 'connection refused' when trying to connect to Informix connection manager from a Java application via JDBC,although access was granted via firewall. When we consulted Informix Team,they told us...
selman
1

votes
1

answer
57

Views

data is not coming from DB even there is data in the table, ORM is Dapper

I am facing a strange issue, i am not sure what happened to code, it was working perfectly yesterday. I have data in table and am using below function to retrieve it from DB. i am using My SQL. when the application is started the data fetch correctly, but once we hit few times to DB for some tracti...
Ram Singh
1

votes
2

answer
77

Views

Where is it better to initialise the Database connection [closed]

I am working on a project, while doing coding I got confused, as to where to initialize the connection in the constructor of the class or in the function I am using it. My code in the constructor is as below: public class clsTest { private readonly MySql.Data.MySqlClient.MySqlConnection _dbInstance;...
Ram Singh
1

votes
0

answer
2.2k

Views

Can't create mysqli connection to MariaDB via PHP [duplicate]

This question already has an answer here: PHP parse/syntax errors; and how to solve them? 16 answers Reference - What does this error mean in PHP? 32 answers PHP's white screen of death 15 answers I have a new MariaDB 10.2 instance running on Windows 2012r2 with IIS 7 and PHP 7.1 (all on one mach...
Chip
1

votes
0

answer
213

Views

putty and internet connectivity to lxc container in CentOS 7 host

I want to create multiple machines on my laptop so are that I can try out distributed coding and software. I have been able to do this for my Ubuntu setup on VMWare but I am unable to do it for CentOS7.3 on VirtualBox 5.1.30. I have created LXC containers with static IP. Below are more details. Com...
Bharat Elwe
1

votes
0

answer
57

Views

Connecting to two diffrent data bases using Pro* C code

how can we connect to two different databases using Pro* C code. I have entries in tnsnames.ora file. By default it is connection to one of the Databases using EXEC SQL CONNECT statement which I am not sure how it is connecting. I want to connect to another DB which is having an entry in tnsnames.or...
Vijay Kumar
1

votes
1

answer
329

Views

Connecting UWP App to Remote SQL Server 2008 provider: TCP Provider, error: 0

System.Data.SqlClient.SqlException: 'A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 0 - The operation completed successfully)' I'm trying to connect to SQL Server 2008 R2 database with a UWP APP. Remote...
Lee
1

votes
0

answer
316

Views

iOS Is it possible to detect wifi network connection(without internet connection) via Reachability

How to detect a scenario when user is connected to a wifi network without active internet connection? It is possible to detect wifi connection with internet connection. I downloaded sample from here. https://github.com/xamarin/ios-samples/tree/master/ReachabilitySample Its coded in Xamarin but I a...
kostik
1

votes
1

answer
209

Views

DBCP Connection Pool Active connections not closed

I am using DBCP connection pool and I have created a MBean to show the connection pool stats in Jconsole. What I have observed is that even if there is no activity on the application (means no page click, etc) the connection pool stats shows active connections. The 16 NumActive connections we see ab...
NaiveCoder
1

votes
1

answer
1.1k

Views

Android Studio - Cannot Connect to Bluetooth Device

Well, I have everything set up to create a connection to another bluetooth device. I have a ListView that shows me devices that are paired to my bluetooth device and when I click on the desired device within the listView it should connect to it, but somehow the connection is not being established. H...
julio
1

votes
1

answer
546

Views

IntelliJ/PyCharm: Connection to localhost MySQL failed

I am using PyCharm to connect to my local MySQL database running at localhost port 3306. Here's my JDBC url in the 'Data Sources and Drivers' window as shown by PyCharm: jdbc:mysql://localhost:3306/mydb When I try to connect or click 'Test Connection' I am getting this error in IntelliJ: Error: Conn...
Babken Vardanyan
1

votes
1

answer
121

Views

CloseableHttpClient doesn't use sslcontext

I use PoolingHttpClientconnectionManager and i need specific sslcontext on each request. By default CloseableHttpClient use manager's sslcontext, but i need sslcontext from .setSSLContext(context). How resolve this problem? I need connection pool and at the same time i need specific sslcontext on ea...
Shirvan

View additional questions