connection

Opening a connection on Android and using it via the NDK

Hey all, this is briefly what im trying to do: Im making an Android application that uses C++ libraries compiled from the Android NDK. Some of these C++ libraries create connections and act as servers to report data over a wifi connect (i am not trying to use the phones 3g connection or anything similar). The connection will be created u...

PHP SQL-Server connection error.

I am trying to connect to sql server using php using following code: $myServer = "server"; $myUser = "username"; $myPass = "password"; $myDB = "test"; //connection to the database $dbhandle = mssql_connect($myServer, $myUser, $myPass) or die("Couldn't connect to SQL Server on $myServer"); Getting following error: Fatal error: C...

Android HTTP User Agent

Hi.. Can i ask how to get http_user_agent real device? When i use WebView, i can get the real value like this: [HTTP_USER_AGENT] => Mozilla/5.0(Linux; U; Android 2.2; en-gb; LG-P500 Build/FRF91) AppleWebKit/533.0 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1 But when i use Apache connection, the result is different like this:...

connection pooling webservices axis2

Hi Guys, here is my code on how I have implemented connection pooling for a webservice stub. package com.arcot.integrations.frontend.tasks.custom.utils; import java.util.Stack; import org.apache.axis2.client.Options; import org.apache.axis2.client.ServiceClient; import com.tpf.mdm.tpf.service.TPFServiceStub; //import com.arcot.ws.w...

detect connection type for iphone on website?

hello there - is it possible with javascript, PHP (or anything!) to see if the iphone is using 3g or wifi from a website? We want to load low-res content if its 3G you see, I found SCNetworkReachabilityFlags but that is just for apps... Any pointers would be great! Dan ...

setting up Android SDK - get the "Failed to fetch URL http://dl-ssl.google.com/android/repository/repository.xml" error no matter what

In trying to set up the Android SDK, I can't seem to get connected to the repository. With the proxy set correctly, and https forced to http, I get this error: Failed to fetch URL http://dl-ssl.google.com/android/repository/repository.xml, reason: Connection reset. Without the proxy set, I get the same result, except it says the conne...

Concurrency with SQLITE

Hi There, we are planning to use SQLite in our project , and bit confused with the concurrency model of it (because i read many different views on this in the community). so i am putting down my questions hoping to clear off my apprehension. we are planning to prepare all my statements during the application startup with multiple conn...

Relative file paths for Excel Data Connections

I have 7 csv files and one xls file. In the xls file I have 7 sheets (one for each csv file). I can create a data connection that will read each csv file into a given sheet. However, when I zip up the xls, and 7 csv files and send them to someone they are not able to open see the data in the xls file becuase it is trying to access the...

How do you display a Alert when not connected to the internet ? iOS

hi How do you display a Alert when not connected to the internet ? iOS not connected to internet means has no wifi , no connection to remote host ( www.google.com) no Cellular Data Network as i have seen many applications showing this message when i am not connected to the internet. i have tried downloading the Reachability from appl...

What are the issues with having a long open connection to a web server from a device connected via wifi?

Hi there I am aware of timeout settings for certain executions over the internet. My iphone application is downloading videos over the internet via a wifi router connection. I've heard that a connection like this shouldn't be open for more than 240secs? Is this true? What dangers/security threats/issues/etc will I encounter the more ...

java program to copy files from/to mobile device

Is there a java api that can be used to write a program on a desktop computer, a program to connect to a Windows Mobile 6 device and copy a file from/to the device? ...

PHP Speed Test for user connection speed without echo in current page.

Hey guys, I am looking for a possibility to check the user connection speed. It is supposed to be saved as a cookie and javascript files as well as css files will be adapted if the speed is slow. The possibility for testing speed i have at the moment ist the following $kb = 512; flush(); // echo "<!-"; $time = exp...

Javamail IMAP connection with Gmail drops after a random duration

I'm using Javamail to authenticate into gmail imap server and fetch messages headers for complete mailbox one at a time and index locally. For inboxes which have few messages, this works fine. For inboxes with messages more than 10k in general, javamail imap connection gets dropped (possibly by server). The point to note is that this dur...

VPN on a Cocoa app

Hey, I'm developing an app for a customer. He has a company and he wants the app to connect to the other Macs via VPN. I googled for a tutorial, but I could not find any. Does anyone know a good tutorial/guide for that? Thanks! ...

rsync command is slow when I'm not connected to the internet

Any ideas? I'm issuing the following rsync command via a hotkey and whenever I'm not connected to the internet it slows down. Takes maybe 4,000ms instead of the regular 300-400ms. All it does is sync up a directory on my local FS to one connected through parallels (where I have a lamp running, etc.) rsync --delete --archive --quiet --p...

How to make socket connection to a server where server is accessed only through another server in Java applets?

I have a server and client program. client is a java applet. Previously I could run the server program in the server and the client successfully connected to the server program through the socket's proper port. Now, I switched to a new server and I have problem with this server. Direct connection (ssh) to this server (let say it is serv...

Connection Pooling

May I know if the connection pooling is applicable also for the window base application and not just for web base? Please advice. Thanks ...

How to connect PHP with Oracle-xe server when both reside on the same pc

Hay I ve installed oracle-xe 10g sever version on ubuntu desktop 10.10 32 bit. for installation i ve followed the these steps: [https://help.ubuntu.com/community/Oracle10g] Now im working with my dbms. its just working fine. for php setup i've followed this: [http://netbeans.org/kb/docs/php/configure-php-environment-ubuntu.html] now ...

Create MySQL database on server

I'm following a tutorial for constructing a PHP and MySQL ecommerce driven website, and I'm uploading them to my server at the moment, but in need of some assistance determining how to proceed. In the README of the tutorial, are the following instructions: INSTALLATION INSTRUCTIONS 1.) Unzip plaincart.zip to the root folder under your...

How to update a status message on the lotus connections server from the other web application?

I have found the following info "To update a status message, send an updated status document in Atom format using an HTTP PUT request" but i don't underctand how to sent the xml file to the lotus connections server. I tried to submit a form with xml data...I tried to call ajax query.. Please anybody help - give me an example how...