connection

Random problem connecting to MySQL

Environment: RHEL 5 servers, MySQL 5.1.43, PHP 5.1.6 (using MySQLi). Currently only available within our internal VPN network. Servers ServerA: Webserver ServerB/C/D: Database server (1 master 2 slaves) The error (on ServerA) [Tue May 25 11:12:17 2010] [error] [client CLIENTIP] PHP Warning: mysqli::real_connect() [function.mysqli-real...

Looking for Reachability (2.0) Use Case Validation

There is so much info out there on using Apple's Reachability example, and so much is conflicting. I'm trying to find out of I'm using it (Reachability 2.0) correctly below. My App use case is this: If an internet connection is available through any means (wifi, LAN, Edge, 3G, etc.) a UIButton ("See More") is visible on various views. If...

Why compiler go to suspend mode when want to open database?

Dear friend I try to connect to database with a less line for my connection string... I find out s.th in oracle website but i dont know Why when the compiler arrive to the line of open database do nothing????!it go back to GUI,but it like hanging...please help me to solve it. p.s.Its funny the program didnt get me any exception also! t...

Is there a reference document for OOTB SharePoint web part interfaces?

I want my web parts to act as providers and consumers with Out-Of-The-Box (OOTB) SharePoint web parts, including filters. To design these web parts I need to know the interface of the OOTB web parts, eg. a "Links" web part provides an IWebPartRow, with a Type, URL and Notes. I can get the information by: a web part programmed to inte...

How increase number of allowed connections to a file in apache server 2.2 ?

I've installed apache server 2.2 on a VPS server, when i want to download a file via HTTP from my VPS using IDM, it only opens 8 of 16 possible connections (for many servers it opens all 16 connections). Is there any configuration to increase number of concurrent connections to a file in apache (or in my VPS) or this is a network or fire...

How to set connection string dynamically in NHibernate

Hi I want assign connection string for NHibernate using following code and getting exception (bold). log4net.Config.DOMConfigurator.Configure(); Configuration config = new Configuration(); IDictionary props = new Hashtable(); props["hibernate.connection.provider"] = "NHibernate.Connection.DriverConnectionProvider"; props["hibernate.d...

Simulating python's With statement in java

Is there something like Python with context manager in Java? For example say I want to do something like the following: getItem(itemID){ Connection c = C.getConnection(); c.open(); try{ Item i = c.query(itemID); }catch(ALLBunchOfErrors){ c.close(); } c.close(); return c; } where in python I just have: ...

MQ Connection - 2009 error

am connectting the MQ with below code. I am able connected to MQ successfully. My case is i place the messages to MQ every 1 min once. After disconnecting the cable i get a ResonCode error but IsConnected property still show true. Is this is the right way to check if the connection is still connected ? Or there any best pratcices around ...

MySql ODBC connection in VB6 on WinXP VERY slow. Other machines on same network are fast.

Hi All, I have a VB6 application that has been performing very well. Recently, we upgraded our server to a Windows 2003 server. Migration of the databases and shares went well and we experienced no problems. Except one. And it has happened at multiple sites. I use the MySQL ODBC 5.1 connector to point to my MySQL database. On identical...

C socket: problem with connect() and/or accept() between clients. 111: Connection refused

Hello ladies and gents, I'm having a bit of problem with accept(). I have a multiple clients and one server. The clients can connect and communicate just fine with server. But at one point, I need some clients to be directly connected to each other and I'm having a bit of difficulty there. The clients have bunch of threads going on, wher...

JSON iPhone problem

My problem is quite simple, I'm sometimes receiving a JSON connection without the whole JSON value in connection, as such I'm getting 2 fragments, together making a whole. I can't call [jsonstring JSONValue]; until I have both joined together. The problem is, it is sometimes, so I really want to know in advance whether JSONValue will w...

php database connection?

I want to connect php to Access without using ODBC connection like MySQL. Please give me solution. and also tell how to connect with SQL Oracle and other databases. ...

Redirect a TCP connection

Hi there, I have something like a proxy server (written in java) running between my clients and the actual video server (made in c++). Everything the clients send goes through this proxy and is then redirected to the server. It is working fine, but I have some issues and think it would be better if I could make this proxy server only to...

Bash script to monitor ISDN connection

On a Ubuntu 10.04 Server I would like to do the following with a bash script: Create a service that monitors the ISDN connection and if downtime exceeds 60 seconds forces reconnect. My current solution looks something like this: #!/usr/bin/bash LOGFILE=/home/msw/router/ping-stats.txt TIME="`date +%C%y%m%d%H%M`" /sbin/ping -c 1 google.c...

how to pass user created connection to hibernate

hi, is there any way, to restrict hibernate not to create connection of its own(what we define in hibernate.properties or hibernate.cfg.xml), instead i can create and pass the connection to hibernate for further processing. The problem is that i need to set the ApplicationContext on the connection given that the i am using oracle connec...

How can I connect to a mysql db from a different server ?

I have, let's say, a root website with mysql db on a remote server. I want to connect to that particular database (to make queries), from many other little websites (with lower priviledges). Can this be done? Language: jsp, java, php ...

check internet connection in cocoa application

Hi How do I check internet connection in cocoa application? Can Reachability code from iphone apple example be reused for this purpose? Thanks, Nava ...

Oracle OLEDB Connection Pooling and Invalid Connections

We are using ADO to access Oracle 10g release 2, Oledb provider for Oracle 10g. We are facing some issue with the connection pooling. The database reside on the remote machine and connection pooling is occuring as it should. But if the remote machine goes down for some reason, the connection is returned from the pool and query on that co...

Connect Android application to remote data

Sheesh talk about limited information! I'm trying to get my Android application to connect to an online database to access information. There's quite a bit of info including geotags and these are going to be mapped on my app. The developer site has the very informative piece of information: You can use the network (when it's availabl...

Absurd connection timeout in HttpURLConnection in Java

In one of my applications, we hit another server using HttpURLConnection - the application worked for fine for months, and now suddenly all hits are facing a connection timeout. Intermittently, a few calls (1 in 500) succeed while all others fail. The application is deployed on Linux running on Java 5 with Tomcat 5.5. I have tried a curl...