connection

can client side Javascript detect when server has closed http connection while client is working?

In my application, the client is a Javascript set of functions in the browser, and it does some work - for example, playing a clip. It uses XmlHttpRequest to talk to the server. However, the server is allowed to abruptly close the connection since there is no other way it seems, to interrupt the client. Can the client detect, while it i...

Java Socket close not detected

I am writing a quick server to test an application. If i close the socket on the other end it does not throw and exceptions that the socket is closed. I keeps writing 100mb of random data( what it is suppose to do). How can i detect if the other end closed connection? import java.io.PrintWriter; import java.io.BufferedReader; import jav...

Is there any library/component for dial-up connections?

I want to dial-up through VoIP. Yes, I know that it's almost impossible. I have heard that softmodems use software for DSP, but I guess the code its hardware specific. If I only could isolate the code that makes the modem signal I could use it on my project. Anyone ever heard about a library that would fullfill my needs? PS: iaxmodem on...

SSIS - AcquireConnection method call to the connection manager <Excel Connection Manager> failed with error code 0xC0202009

I have an SSIS package which reads an Excel File (Data Flow Source) and transfer the data to SQL Server using OLEDB Destination Data Flow Item. The OLEDB Connection Manager used for the destination is configured to use Windows Authentication. The package works fine on my development machine. But when I open the same package on another ma...

How to check for LINQ to SQL connection error

How to check if Linq.DataContext object is filled with data and no connection error has appeared? Thanks. ...

facebook connect iphone - Is this possible? Any help would be appreciated!

Within your iPhone app environment be able to connect to Facebook. Then post a comment & a chosen photo to your Facebook newsfeed: [ Comment: "Hey guys check out my photo! ] [Photo: Image appended to comment ] 3a. User clicks 'post on wall'> On the user's Facebook news feed, this will appear. [ "Hey guys check out my photo!" ] + [ ph...

Easiest way to tranfer large files to remote server in .NET

Hello. I am writing a program in C# / VS2005 to back up our production database, compress it, and transfer it to a remote server. I have a simple ftp site set up on the remote server. The problem is that the file only transfers about half way (~500 - 600 MB) and the program throws the exception: "An existing connection was forcibly...

Python: MySQLdb Connection Problems

I'm having trouble with the MySQLdb module. db = MySQLdb.connect( host = 'localhost', user = 'root', passwd = '', db = 'testdb', port = 3000) (I'm using a custom port) the error I get is: Error 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) Which doesn't make much se...

What's a good resource for grokking database connection strings?

Often the most frustrating thing in starting a new database project or learning a new database is figuring out the magic incantation known as the "connection string". Where are the good resources for understanding each database's connection string format? ...

Grouping sys.dm_exec_connections by database (it's not quite like sys.sysprocesses)

Following on from my last question: I've written some code to upgrade a SQL Server database. Before I upgrade the database, I plan to limit access to the database with the following statement: ALTER DATABASE Test SET SINGLE_USER WITH ROLLBACK IMMEDIATE Before running this code, I'll give the user an opportunity to opt out. At the tim...

jQuery: $(document).ready() too slow in IE.

What would be the preferred way of hiding an element before the page is rendered? $(document).ready() works just fine for firefox, but sometimes (connection to the server seems to be a major issue in this) it lags a little behind in internet explorer; the element is shown, and hidden shortly after wards. That is: the page is rendered be...

Updating from svn repository returns "Could not read chunk size" error

When updating from subversion repository using tortoise svn client I get error looking like that: Could not read chunk size: An existing connection was forcibly closed by the remote host. It doesn't prevent me from updating, just interrupts update process, so that I have to repeat update several times, before it is complete. What can...

Local ASP.Net connection issues

I have been trying to set-up my recently reimaged workstation for working with one of our ASP.Net applications that consists of a ASP.Net website and some C# Web Services. I can successfully start debug instances of each the services and web site. However as soon as the site attempts to connect to and use one of the web services I get ...

Sharepoint - connectable receiving, XSLT editable web part?

You can use the "Data View" webpart to take data from a database call, then you can edit the XSLT manually to make it look and do whatever you want, within the scope of that data and XSLT capabilities. Is there a web part that allows me to do the same thing, but with data that is received by a connected webpart source rather than a data...

Java - DocumentBuilder closing Socket connection

I have a problem with Socket connection closing too fast. I was told I need to temporarily load data from Socket and the parse it. Here is my code: ServerSocket listen = new ServerSocket(this.port); Socket server; while(i < this.maxConnections) { server = listen.accept(); processRequest(server); i++; } processRequest pro...

Windows Mobile - auto connect to Internet (GPRS) when opening SqlConnection (.NET)

Hello! I've set up a GPRS connection on a mobile device running Windows Mobile 5.0. It connects on demand (e.g. when entering an URL in Internet Explorer). However, connecting to a remote database (via SqlConnection) fails if the device isn't already connected, ie. it doesn't connect automatically. Is there a way to configure the devic...

How to detect the physical connected state of a network cable/connector?

In a Linux environment, I need to detect the physical connected or disconnected state of an RJ45 connector to its socket. Preferably using BASH scripting only. The following solutions which have been proposed on other sites do NOT work for this purpose: Using 'ifconfig' - since a network cable may be connected but the network not pro...

Mysql Dropping Connection

I am on Instant Ruby on Rails Mysql version 5.0.27, developing a system and all was going ok (sort of). Now the database keeps dropping. I found some comments that the userid needs to be root and password blank, I had changed the password, so I changed it back. Views run fine displaying and making changes than 500 Internal error, log say...

sever/kill tcp connection in windows

I would like to see how a program responds when it's connection is severed. Aside from disabling the network card, is there a way to sever a tcp connection in Windows without killing the process, or the thread that owns the connections? ...

php connection pooling mysql

Hi, I am planning to use MYSQL. Is there a connection pooling extension available. or what is the normal practice for connection. is this the one used in every where... mysqli_connect("localhost", "xxx", "xxx", "test"); Do people use just normal msql_connect or pconnect..? how better is pconnect and what setting should I do for PConnec...