w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Javascript to check the status of wireless connection
Browser errors and system tray icons will sufficiently indicate the state of the wireless network to the user. The way you describe your application indicates, to me, that you are doing some kind of continuous AJAX-style querying that is frequently interrupted. Rather than concentrating on underlying network connections, I recommend taking a more business-level approach: If your application cannot maintain a connection (or does not receive a response within a certain time limit), simply notify the user that a connection could not be established (for added robustness, keep retrying until it succeeds -- see, e.g. GMail's web interface). The user will have other means to diagnose why - your application should not and can not know the reason for the failure, your application only knows that i

Categories : Javascript

Socket.getOutputStream() blocking when wireless connection disabled
SSLSocket.getOutputStream() initiates the SSL handshake if neceessary, which involves reads, which may block. You should set a read timeout on the socket before calling it, with Socket.setSoTimeout(). I'm intrigued by "SSLSocket.getOutputStream() initiates the SSL handshake if neceessary" what defines "if necessary"? If it hasn't already been done, or the current SSL Session has been invalidated. Is this behavior (initiating the SSL handshake) something that's required by the JVM specification? IOW is it guaranteed across JVMs? No, it's required by the TLS/SSL specification. I've also read the only way to determine if a socket connex will work is to read/write data with it. This is not an option for me. Yes it is. You're doing it. The SSL handshake consists of reads

Categories : Java

How to configure docker to be able to have internet access via wireless connection?
I see two possibility: 1) Make sure your ip_forward is set to 1 (sysctl -w net.ipv4.ip_forward=1) 2) Make sure it is not a DNS issue: try docker run base ping google.com, if it does not work, you can set custom dns server: docker run -dns 8.8.8.8 base ping google.com.

Categories : Misc

Android ksoap connection timed out when using more than one device on same wireless network :(
Turns out ksoap2 works well, and my code works well. After tracing ksoap call method, and sniffing html traffic I found out that, sometimes, server doesn't respond on my requests. This happens because server configuration was changed and now, when there are a lot of requests from the same IP address, server treats some of them as retransmission and ignores them. This problem has to be solved on server side.

Categories : Android

Windows Mobile 6.5 Professional
I recently stumbled upon the same issue. JavaScript works in IE but not in my C# webbrowser component. The solution was to check HKLMSecurityInternet ExplorerMSHTML registry key. It must be 0 to allow javascript inside webbrowser! Now my code checks and changes this reg key to zero (if not alreday 0) and then calls InitializeComponents(). The key will change the behaviour of the webbrowser in another way too: the arrow keys now do not move the focus from link to link but they scroll the webbrowser view. Hope that helps you too. EDIT: here is a code sample: using System; using System.Linq; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace WebBrowser { public partial class

Categories : C#

Wireless-tools for linux to scan for wireless devices without them being connected
The following tools are available NetworkManager wicd Adding another Answer: You can use the following command also iwlist wlan0 scanning It gives lot of information about all the wireless networks available in your range... the sample output is also given here wlan0 Scan completed : Cell 01 - Address: 00:1F:E6:00:48:12 Channel:11 Frequency:2.462 GHz (Channel 11) Quality=28/70 Signal level=-82 dBm Encryption key:off ESSID:"BrcmAP0" Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s 24 Mb/s; 36 Mb/s; 54 Mb/s Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s Mode:Master

Categories : C

Is it possible to write Windows 8 drivers without Visual Studio professional?
Yeah, now WDK requires MSVC 2012 installed before : see http://msdn.microsoft.com/en-US/windows/hardware/hh852362#_System_Requirements. Also now WDK don`t include toolset (compiler, linker, etc) and i think there are no way to bypass this.

Categories : Misc

Windows Mobile 6.5 Professional Font Size doesn't work
WM6.5 comes with new Internet Explorer Mobile (IEM) >=6.1.4. This browser is different to the included browser of WM6.1 and before and all the time the browsers on Windows Mobile are very different to browsers on Windows CE. This new browser tries to re-render the pages optimized for mobile view. There are various settings, if you look at the browsers menu. In example Mobile contra Desktop view, font size setable to small/medium/large etc. All these settings change the view of the page. See also http://msdn.microsoft.com/en-us/library/bb416418.aspx I assume best compatibility should be using Desktop mode. Further on there is one registry setting that makes IEM behave totally different: HKLMSecurityMSHTML:DWORD[0|1], see also Windows Mobile 6.5 Professional. Changing the setting makes IE

Categories : CSS

Send and receive info between windows and android through wireless network
You need to create Web Services and call them from your android app. Please have a look at this link which will give you information on calling webservices in android how to call RESTful web service from android?

Categories : C#

postgresql connection error with qt creator in windows
If you are missing the driver (as the comments suggest) then you should look at getting it. On Debian, for example you would: apt-get install libqt4-sql-psql On Fedora you would use a similar yum command However without knowing your platform, I can't suggest specific steps.

Categories : Database

WebDAV Server Error 401.2, connection issue with Windows Authentication after pausing virtual server/domain controller
We figured out what was causing our issue although I may not be able to explain entirely why it mattered. In IIS there is a setting in the "HTTP Response Headers" under "Set Common Headers" called "Enable HTTP keep-alive". We check marked this option as true and our Windows Authentication started working again. It seemed to have something to do with the connection not staying open between requests and the application or IIS not realizing the connection was restarted during the SYNC operation.

Categories : Iis

Windows Mobile emulator network connection on Windows 7 64bit
You are talking about two different things. One is "How to 'cradle' Devcie Emulator Images and the other is how to get a working virtual network card in Emulator Image: For the virtual network setup look here: http://www.petenetlive.com/KB/Article/0000241.htm. You need to install a special driver. For 'docking' (cradle) option download Device Emulator Manager and after starting a Windows Mobile Emulator select 'Cradle' in the context menu of the running emulator inside device emulator manager. If you have problems with docking, chack that DMA is enabled in WMDC Connection Settings. Also check the option "USB to PC" (Start-Settings-Connections) and ActiveSync Connection setup inside emulated Windows Mobile device. As you have done changes that may conflict with the desired setup, I reco

Categories : Misc

Unplugging causes Adb connection Error:An existing connection was forcibly closed by the remote host
Solution1 run this command: adb uninstall com.yourpackagename Solution2 This is not an answer to solve problem with unplugging. However, if you set android:debuggable="false" in your manifest, then running your android in release mode with the wire plugged in is quite fast. So if you don't switch devices, u don't need to unplug your device then. it is 10x speed up vs running in debug mode.

Categories : Android

How to catch connection lost error on open socket connection?
public static boolean isNetworkAvailable(Context context ,DialogInterface.OnDismissListener dismissListener, Boolean endActivity){ ConnectivityManager conMgr = (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo info= conMgr.getActiveNetworkInfo(); boolean isNetworkAvailable=false; if(info != null && info.isConnected()) { isNetworkAvailable=true; // Log.e("NetworkInfo","Connected State"); } else{ isNetworkAvailable=false; alertNetworkConnection(context,dismissListener,endActivity); // Log.e("NetworkInfo","Not Connected state"); } return isNetworkAvailable; }

Categories : Android

jdbc connection error: not associated with a managed connection
If you are using an EJB, it's possible that your Stateless Session Bean Pool is not big enough. The connection can't find an associated thread. Maybe you have an extended Transaction for a not Stateful Session Bean, wich is maybe not a good idea.

Categories : Java

How can I use one Windows account for ASP.Net impersonation, and a different windows account for a Sql Server trusted connection in the same app?
Ultimately I wanted to be sure that the same rules apply now, that Identity Impersonation on a web app will pass user credentials to a sql database using Windows AD authentication. Based on the comments above, that seems to be the case. Thanks everyone for their time, should any future readers see this Q&A and say "Eric's wrong and he's an idiot!", please feel free to correct me accordingly

Categories : Asp Net

Error: Object reference not set to an instance of an object./The connection was not closed. The connection's current state is open
For the first error, your executeScalar() call is returning a null value. Either refine your query - you can check your query by running it directly in your database - or change your logic to deal with null values. For the second error, if calling Open() is throwing that error, it's because the connection object was in use before and was not closed properly. It's usually considered bad practice to reuse connections like that, so consider creating a new connection instance when you go opening one. Edit: I tried to imply something in the second paragraph there, but now I feel I must make it explicit: don't forget to deal with the connection you left open there, as it may be a major performance hog for your application. Specially since it's an ASP.NET one. Dispose of connections as soon as

Categories : C#

Connection error - connection refused
Use 10.0.2.2 instead of 127.0.0.1 10.0.2.2 Special alias to your host loopback interface (i.e., 127.0.0.1 on your development machine) Reference: Emulator Networking

Categories : Android

Using an SSL connection in windows azure
Windows Azure Web Sites is a prime candidate for Facebook application development. If you use the base domain mysite.azurewebsites.net you have SSL without needing your custom domain. The reason for this being the azurewebsites.net domain has a wild card certificate in place.

Categories : Security

Windows 8: SQL Server Connection Delay
The Sql server network libraries have extensive tracing available that ties into the ETW (Event Tracing for Windows) framework. By using this tracing functionality, you'll be able to identify which portion of the connection is causing the 2 sec delay. Event Tracing for Windows The ETW framework is a very light weight, very fast event logging system that can capture ten's of thousands events per second with minimal overhead. It's built into the windows core and consists of "providers" which publish events. For example, IE, the sql client library, the .net framework and most windows system drivers expose events. Subscribers register for the events they are interested in and that's it. If no one is listening for an event, it turns into a minimal overhead no-op. FYI, ETW drives the e

Categories : Sql Server

Detach program from SSH connection on a windows
Does this help you? You can write a batch script that'll start in the background: Running windows batch file commands asynchronously

Categories : Windows

Would a long running sql command using connection pooling cause other command using that same connection to error?
The first statement is locking out all of the other statements at the database level. Are you using SQL Server? In my experience SQL Server locks tables in so many scenarios that the DBA always reverted to dirty reads--any other locking configuration caused too much contention. To get around this problem you can do the long running work in a temporary table, and then copy to the real table when the work is done.

Categories : Sql Server

PHP Connection with DB2 in Windows running Apache Server
Open the php.ini file in a text editor and add the following lines Enable the PDO extension and PDO_ODBC driver: extension=php_pdo.dll extension=php_pdo_odbc.dll Note: On Windows, the PDO_ODBC driver uses the Windows ODBC Driver Manager to connect to database systems. To access DB2 database systems with PDO_ODBC on Windows, you must install the IBM® DB2® Driver for ODBC and CLI. To enable the ibm_db2 extension: extension=php_ibm_db2.dll Enable PHP support in Apache HTTP Server 2.x by adding the following lines to your httpd.conf file, in which phpdir refers to the PHP install directory: LoadModule php5_module 'phpdir/php5apache2_2.dll' AddType application/x-httpd-php .php PHPIniDir 'phpdir' For more details check this http://publib.boulder.ibm.com/infocenter/db2luw/v9/index

Categories : PHP

how to set up a bluetooth connection between windows pc and android device
Visit these links. Hope these help http://www.forward.com.au/pfod/serialBluetoothConnections/index.html http://blackmarketserver.com/blog/2010/11/23/bluetooth-file-transfer-between-android-2-2-and-windows-7 It is a possible duplicate of this question. Please have a look access of files on windows pc from android device, bluetooth?

Categories : Android

Need to generate a windows authentication connection string
When creating a model from the database you will be asked to provide a connection string. Sometimes this connection string can be lost (for instance when checking code into source control). If you need to re-enter the connection string you can open your edmx file, and click the white area, then view the Properties window to see the connection string property. Alternatively you can set the connection string in the app.config file using the connection strings section.

Categories : Dotnet

ODBC connection to Access database in 64-bit Windows
64-bit Windows machines have two separate "ODBC Data Source Administrator" control panels: one that creates 64-bit DSNs for 64-bit applications, and a separate one that creates 32-bit DSNs for 32-bit applications. On a 64-bit Windows machine, Control Panel > Administrative Tools > Data Sources (ODBC) will open the 64-bit ODBC Data Source Administrator. To open the 32-bit counterpart you need to run C:WindowsSysWOW64odbcad32.exe You don't see an Access database driver because you are running a 64-bit version of Windows and there is no 64-bit Access driver included with Windows. Windows does ship with a 32-bit Jet driver (.mdb files only). So, you will need to do one of the following: If you are running a 32-bit version of Java and you want to connect to an .mdb file then you

Categories : Java

Add VB.NET to Visual Studio 2010 Professional
I apologize for my earlier flippant comment, and offer you http://download.cnet.com/Microsoft-Visual-Studio-2010-Professional/3000-2212_4-10618634.html

Categories : Vb.Net

what would be the professional way to get noticed if any field is empty
If you can put fields in an array, you will check them as following var nonEmpty = false; ko.utils.arrayForEach(self.fields, function(field){nonEmpty = nonEmpty || field()});

Categories : Javascript

Detecting if a mouse is wireless
start here: http://www.ibm.com/developerworks/library/j-usb/index.html[^] read on here: http://today.java.net/pub/a/today/2006/07/06/java-and-usb.html[^] and then check out this project: http://jusb.sourceforge.net/[^] These might help to get a little close to extract the specification of a hardware. I dont know if it can check whether a hardware is wireless or not, as the computer has nothing to do with it..

Categories : Java

why ip address differs when wireless is off?
.An IP address is the address of a network adapter within a specific local network. It will be different when connected to different networks. When not connected to any network, it will either be a link-local address or an auto-configuration address. You might want the MAC address, which is the hardware address of a single network adapter and is not very likely to change.

Categories : Java

iPhone Wireless Ad Hoc App Distribution
(Updated) Easiest Way: I have found another way to distribute the ipa. http://www.diawi.com/ This website provide service to distribute you adhoc app (ipa). Another way: To Distribute your app to other device your have to register those device in your developer account. To AdHoc distribution you need the devices UDID.... register those in developer account and make a AdHoc profile and sign your app using the profile. After that send the AdHoc profile and your app to the Users...

Categories : Iphone

Arduino wireless and Node.js
While the monitor is running no other program can read the serial port. In case you do not open both at the same time then things are more tricky. My suggestion would be to spy on the wire. That is: install Wireshark and have a look at the data on the serial connection / USB bus. You might also want to check how the serial port of the APC220 and the Arduino differ with regard to their serial/USB converters. Another idea would be to analyze this issue under Linux since may allow more insights into the low-level differences of the chip sets / USB activity. Of course if you do not have Linux experience this is hard to do, but maybe you know some Linux enthusiasts.

Categories : Node Js

adb device offline with ADB wireless
Disconnect adb over wifi, connect your phone with a USB-cable to your pc. It will ask you on your phone is you want to allow the connection. Tick always allow. You will only get this when you connect with USB and have to do this only once, you can use over wifi afterwards. Don't get the pop-up? Try the answers on google over a cable, since you need to do this first.

Categories : Android

C# Read Windows Mobile Broadband connection properties
Mobile Broadband API is also available in Windows 8 Desktop. If you're using Windows 8 Metro/RT/whatever name, you need these WindowsRT APIs (Windows.Connectivity.NetworkInformation etc).

Categories : C#

How to check that an internet connection is available from a Windows local service?
Which OS ? Windows 8 : GetInternetConnectionProfile() more informations on MSDN Windows 7 : System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable(); more informations on MSDN For all : Why you don't use ping ? Edit : I had not seen the comment about ping

Categories : Windows

my odbc connection is too slow using sql 2012 netbeans 7.3 windows 8
Assuming you can change the database, make ORDER_ID an index - doing this should speed up the query. I'm guessing that as the table is called Order_Detail that the Order_ID column is going to be used a lot when querying and this should help your query run faster. This page details how to add indexes to columns on MS SQL Server.

Categories : Java

Why would my samba connection fail after an upgrade to windows 2012?
Windows Server 2012 includes latest version of SMB protocol 3.0 and it full of really interesting updates and improvements (details and some relevant discussion here). As with any serious improvements there is a compromise in terms of legacy clients support. Probably there is no support for SMB 3.0 on your Samba client side or some backward compatibility should be enabled on Server 2012 side.

Categories : Java

Windows Azure VM Remote desktop connection issue
RDP port (3389) is widely blocked from network administrators of most corporations. What you need to do is either of: Talking with your network administrator at work and ask for permission to use RDP port to connect to your Azure Virtual Machine Configure different public port for the RDP Endpoint. Setting it to 443 (the HTTPS Standard port) or 22 (Standard SSH port) might solve the issue without contacting system administrator Of course, if you use that VM for Secure Web (which works on 443) you have to chose another port number.

Categories : Windows

How to connect blue tooth connection in windows phone 8?
Both the official MSDN documentation and Nokia Developer Wiki have a good overview of what's possible using Bluetooth on Windows Phone 8... http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj207007(v=vs.105).aspx http://developer.nokia.com/Community/Wiki/Introduction_to_Bluetooth_support_on_Windows_Phone_8 As well as a link to a sample Bluetooth project which should get you started... http://code.msdn.microsoft.com/wpapps/Bluetooth-app-to-device-644870ba

Categories : C#

flash professional cs 6 include XML file in published swf
Instead of using external XML files you could just create XML variables inside your game code. See the first two examples here about creating an XML object from an XML: Initializing XML variables

Categories : Xml



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.