detect

Portable way to detect heap fragmentation in c++ at runtime?

I'm writing a qt-based c++ application and i need to be able to detect memory fragmentation in order to check if the current system can actually sustain the memory load: the program load a big image (15/21 megapixels are the norm) in memory and then perform some filtering on it (w/ sparse matrices). For instance, i'm having memory fragme...

Is there a way to detect whether Flash is above the browser fold?

I'm looking for a way to determine if a Flash movie is visible within the browser viewport. Unfortunately there's a big caveat here: it must be done without JavaScript. Is there a native method, in Flash or Flex, that can detect when the movie becomes visible? I was thinking that the only way to do it would be some kind of low-level rend...

What's a reliable way to check an RSS feed for new entries?

Part of an app I'm building needs to check RSS feeds for updates. I'm looking for a reliable way to know if a feed has new entries. I know that sometimes people make posts to the future and, after that, posts to the present time which could cause some entries to be hidden. It seems like there could be more complications than that, as we...

How to detect TraceMonkey?

Is it possible to detect that a Firefox browser is running the TraceMonkey JavaScript interpreter? If so, is it possible to do it with JavaScript? A solution which involves examining the browser binary or shared libraries is also OK for me. I'm running Linux with Firefox 3.0.14 right now. ...

c# how to determine if a smartphone is a standard or professional device?

Hi! I have used the SystemState.PhoneRadioPresent to determine if the device is a standard or professional, but isn't that just for determine if it is a pocketpc or a smartphone. I have a smartphone with no touchscreen or mouse, and i have two GUI's. One that handles mobile devices with touchscreen or mouse, and the other one which hand...

Microphone detection Actionscript 3

Hi guys, I'm having a few problems detecting whether a microphone is detected or not. I'm running the function Microphone.getMicrophone() and that should return null if there is no microphone attached, or if the user has clicked Deny on the security panel, right? The problem I'm facing is, on some computers where there is no microphone ...

How do you detect when the connection breaks when a web service is returning a result?

In a C# ASP .NET application I have a web service that receives a DataSet, processes it, and returns it. Returning it can take up to a minute over a slow connection. What happens in the background if that connection breaks after the last line of the web service method has run but while the data is still being sent? I tried wrapping my...

iphone SDK detect Wifi and Carrier network

Hello everybody, my app accesses the internet and i just want to detect whether there is a connection either via wifi or via carrier data network or not apple has made an example for that "Reachability" https://developer.apple.com/iphone/library/samplecode/Reachability/ i think it just detects the wifi and not the carrier network ca...

Get iPhone's camera resolution?

Is there any way to get the resolution of the iPhone's camera? Apparently the 3G has 1200x1600, and 3GS has 1500x2000, but how do I obtain these values from inside my code (without taking the picture). I need them to make some affine transform to the camera preview. I could detect if it's 3G or 3GS to hardcode these values, but it's jus...

How to detect wether remote computer is running RDP (remote desktop protocol) ?

How do I detect if a remote client is running Remote Desktop Protocol? and it is also accepting remote desktop connections ?? Like Open an port to detect HTTP and send request, receive request headers and see in request headers information about HTTP so I will know the person is running HTTP weather if he changed the port e.g: running H...

Unable to detect client disconnect on SendAsync

Hi, I have Server that needs to echo back data from client continously with a delay of 1 second. Following is the code. private void ProcessSend(SocketAsyncEventArgs e){ if (e.BytesTransferred > 0 && e.SocketError == SocketError.Success) { System.Threading.Thread.Sleep(1000); // Done echoing data back to the client....

Newbie regex question - detect spam

Here's my regex newbie questions: How can I check if a string has 3 spam words? (for example: viagra, pills and shop) How can I detect also variations of those spam words like "v-iagra" or "v.iagra" ? (one additional character) ...

detect Citrix ICA protocol

Hello, I want to detect weather Citrix ICA protocol is running on my network or not. I don't want to hit on port because it is not a good solution. What flags (bytes) to send to server and read its response, like detecting VNC i send some bytes to server and in response it returns me Protocol Version, so I know that VNC is running on th...

detect RGS protocol

Do any body knows what control messages does RGS Client sends to server for establishing connection? I want there messages to know weather RGS Server is running on some machine or not? If you know the documentation link of RGS Protocol then please mention it. ...

Detecting if mouse position is within a set of position rules?

I have some JavaScript objects such as this (it's psuedo so I know if syntax is wrong): [{ "divid":"1","x1":"35","y1":"100","height":"150","width":"150" }, { "divid":"2","x1":"45","y1":"110","height":"150","width":"150" }, { "divid":"3","x1":"55","y1":"120","height":"150","width":"150" }, { "divid":"4","x1":"65","y1":"130","height":"150...

Detect chinese (multibyte) character in a string in a column in oracle database

how can i detect that a column in oracle database has chinese (multibyte) characters in it. ...

Detecting when textarea scroll has reached the bottom to enable button

I want to display a license agreement in a scrolling textarea and detect when the user has scrolled to the bottom of the text area, then enable the submit button. Is there a way to do that? ...

How to detect if a link has signal with Java ?

Is there a way to detect if a link like the following examples has signal with a Java method ? If you cut and paste them into your browser's url field, you'll see the first one has signal but the 2nd has none, so if I have a Java method like this, how to detect the signals ? boolean hasSignal(String Link) // Link = "mms://online.ntdtvc...

How to detect whether java runtime is installed or not on a computer using c#

I program windows applications using Java and this builds a ".jar" file not an ".exe" file. When a client computer with no java runtime installed opens the ".jar" file, it runs as an archive with winrar. All I want to know is how to detect whether java runtime is installed or not on a computer using c# code in order to show a MessageBox ...

PL/SQL: How to detect which browser is being used?

I'm using the pl/sql htp package to create simple web pages. Now I need to use different templates based on the device accessing the pages (Desktop Browser or Mobile Blackberry Client ). Is this possible in pl/sql? ...