internet-connection

Android: internet access connection

Hi, i'm retreiving data from an internet service. Is there a way to control which (data) connection the device uses for connecting to a website?(access via wifi or via the cellular network) thx ...

Check if Internet Connection Exists with Javascript?

How do you check if there is an internet connection using Javascript? That way I could have some conditionals saying "use the google cached version of JQuery during production, use either that or a local version during development, depending on the internet connection". ...

Check if Internet Connection Exists with Ruby?

Just asked how to check if an internet connection exists using javascript and got some great answers. What's the easiest way to do this in Ruby? In trying to make generated html markup code as clean as possible, I'd like to conditionally render the script tag for javascript files depending on whether or not an internet condition. Some...

What is the length of time to send a list of 200,000 integers from a client's browser to an internet sever?

Over the connections that most people in the USA have in their homes, what is the approximate length of time to send a list of 200,000 integers from a client's browser to an internet sever (say Google app engine)? Does it change much if the data is sent from an iPhone? How does the length of time increase as the size of the integer list...

Setup.exe files downloading without cab files over poor connections

We have customers who are trying to download a setup.exe file over mobile connections that appear to be very slow. They have reported that when they click on the downloaded setup.exe, the install wizard starts up, but part way through the wizard they get an error message indicating that a cab file is corrupt or missing. They couriered ...

How to detect working internet connection in C#?

I have a C# code that basically uploads a file via FTP protocol (using FtpWebRequest). I'd like, however, to first determine whether there is a working internet connection before trying to upload the file (since, if there isn't there is no point in trying, the software should just sleep for a time and check again). Is there an easy way ...

Internet connection in android emulator always displays connected state

hi I tried in many ways to check Internet connection in my android emulator ConnectivityManager conMgr = (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo info= conMgr.getActiveNetworkInfo(); if(info != null || info.isConnected()) { Log.v("NetworkInfo","Connected State...

Java - How to detect that the internet connection has got disconnected through a java desktop application?

I am developing a Java Desktop Application that access internet. It is a multi-threaded application, each thread do the same work (means each thread is an instance of same Thread class). Now, as all the threads need internet connection to be active, there should be some mechanism that detects whether an internet connection is active or ...

How to detect Internet Connection Sharing through sniffing?

I'm sniffing my current connection, but I have a second computer linked to mine with ICS. And my application makes no difference between the two. How can I detect the second one and filter it? ...

Bash script to (more or less) reliably check if the internet is up

I need a bash (or a plain shell) script to put in a cron job that every minute checks if the internet is up. This is how I did it: #! /bin/sh host1=google.com host2=wikipedia.org curr_date=`date +"%Y%m%d%H%M"` echo -n "${curr_date};" ((ping -w5 -c3 $host1 || ping -w5 -c3 $host2) > /dev/null 2>&1) && echo "up" || (echo "down" && exit ...

Google Chart API - internet connection requirement?

Does Google Chart API need internet connection on both server and client side? ...

Programmatically changing Control Panel network options to connect to VPN

I offer a VPN service to my users, and a lot of them complain that it's a hassle to set up a new VPN connection and switch to it every time they want to connect to my VPN. After doing some research I found there are ways to do this programatically, for example: http://hidemyass.com/vpn/ This service offers a program to connect to thei...

Programmatically changing Control Panel network options to connect to VPN

I offer a VPN service to my users, and a lot of them complain that it's a hassle to set up a new VPN connection and switch to it every time they want to connect to my VPN. After doing some research I found there are ways to do this programatically, for example: http://hidemyass.com/vpn/ This service offers a program to connect to thei...

Can I automatize pppoeconf?

Hello everyone, I am a Ubuntu user (10.04 as of now), since I use it, over a year, I have to manually enter the command $ sudo pppoeconf everytime I turn on the computer and want to connect to the internet, the I click enter some times, enter my password of my internet provider, then I click enter some more times to have internet. I ha...

Handling Internet Connection Hiccups and Database Connections

I realize that there is no way to atomically guarantee: if(hasInternet) doDatabaseCall(); However, what is the correct way of handling connection problems when dealing with DbConnection and DbCommand objects in the .NET world? I'm specifically interested in the MySqlConnection and MySqlCommand objects but assume (hope) its patter...

Wireless settings dialog

Hello, i am checking networking connection using the below code: public static boolean haveInternet(Context ctx) { NetworkInfo info = (NetworkInfo) ((ConnectivityManager) ctx.getSystemService(Context.CONNECTIVITY_SERVICE)).getActiveNetworkInfo(); if (info == null || !info.isConnected()) { return false; // no connecti...