detect

Find $HOME or Windows equivalent with FreePascal

My purpose is to deploy user configuration files under: $HOME/.appname for Unix/Linux. \Documents and Settings\(user)\Application Data\AppName for Windows. What are the API's or group of functions that I can use, with the appropriate {$IFDEF}'s, so I can deploy my config files on the appropriate places? ...

Windows volume device detect failed until reboot. Never failed before.

I have code to detect the connection of USB Flash Drives as volumes. The code has been working very well for awhile, but recently a fellow engineer's machine started to fail and didn't work right again until it was restarted. The project uses Qt 4.5.0, but that shouldn't be very relevant to this question. I register for the notificati...

Automatically detect the server's proxy settings in PHP

I have a PHP script which is running on a windows server. The script creates a soapclient object which can be given proxy_host and a proxy_port. Rather than hardcoding these values or making them a config option, I'd like the PHP script to automatically detect the local server's proxy settings so that if they change or if the script is...

Java detection failing in Safari on Windows

I need to detect java version in browser, I have used deployJava.js file to detect java. I think there is definitely a problem , the way deloyJava.js ( java detection and deployment helper file from Sun) works with Safari on Windows. You can see the problem in action if you go to official java verification page (http://www.java.com:80/...

can php detect client browser monitor size/resolution?

Php can detect IP, hostname, client agent etc. Can php detect client browser monitor size/resolution? ...

dectect sifr is active on page

Hi, I want to be able to check if sIFR has activated after the page has loaded so that I can then make other adjustments - sort of like setting up () alternate behaviours Since sIFR is already checking for the existence of flash, is there an easy global flag I can refer to, or should I just query the DOM to see if the sIFR-replaced cl...

TFS : how to programatically detected deleted files?

Hi; In Team Foundation, you can ask Team Explorer to show deleted files by doing this: Tools > Options > Source Control > Visual Team Foundation Server > Show deleted items in the Source Control Explorer. My question is how do you do the same thing programatically? I am developing a synchronisation tool, and I need to detec...

Detect empty buffer on a windows handle without using readfile()

I was wondering if there was any function along the lines of IsBufferEmpty() to use on a synchronous handle rather than using ReadFile() and waiting for it to return false. I need something to eliminate the delay that ReadFile() takes to try to read data. ...

C# Winform Detect Shift Key on Application Startup

hi, is there a way to get a standard winform app to detect if the shift key is being held down on application startup - without using windows hooks? I ideally would like the workflow to change from normal if the shift key is held down when the exe is run. ...

Internet Explorer find out when a user navigates away from the page

I'm using VS2008 (C++) to create an IE plugin that creates a child window. It's like a normal explorer window, but customized to fit my needs. I want to destroy the window when the user navigates away from the page, by calling DestroyWindow(). Unfortunately, I don't know how to detect if the user has actually navigated away. Is there an ...

Detect another process's bitness (in Windows)

How can I detect whether another process is running as 32/64 bit in Windows? I know how to do this for my own process, but not for a different process. A tip or solution in any language would be fine. Thanks! ...

AS3: streamlining a 'universal loader'

In Flash Actionscript 3, when you need to load text, you use a class called 'URLLoader', and when you need to load an image (or .swf) you use a class called 'Loader.' As far as I know, loading a .bmp with URLLoader is as useless as loading an .xml into a Loader - it doesn't compute. I'm making a class that handles a queue of external as...

jquery- how to detect element value when onclick?

how do i bring the tr value into .click event? i want to be able to pass the tr id into updatedb.php as well- for sql updating enter <head> <script src="jquery-1.3.2.min.js" type="text/javascript"></script> <script src="jquery.jeditable.mini.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(fu...

Detect Sql Express From TSQL

Hi, I need a safe (i.e consistent, robust) way of detecting whether or not the sql server I'm accessing is Sql Express. I think I'd prefer to be able to do this from TSQL, since I already have a connection string and all the libraries I need to execute TSQL (this should help avoid issues with whether or not WMI is installed/running, the...

How to AutoDetect/Use IE proxy settings in .net HttpWebRequest

Is it possible to detect/reuse those settings ? How ? The exception i'm getting is This is the exception while connecting to http://www.google.com System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond aft...

Linux: How to detect if a computer is being controlled trough serial console

How could I programmatically detect if a Linux machine is being controlled by a user that has logged in using a serial console? I would be doing the checking through BASH. ...

Detect Robot on Server??

Hi, This question sort of extends my other question on robots and captcha. I did what everyone recommend (thanks everyone!), however is it at all possible to detect a robot on the server first? For Example (Once again, I will use Stackoverflow as a reference): Sometimes when I ask a question, Stackoverflow comes back asking me to verify...

C# Detecting server setup

I'm writing a program that deals with the logs generated by the clients server. How can I detect where the user is storing them? It feels invasive to search all files, but what if they're being stored outside of the root. Is this acceptable, what if I make the user click "detect" first? Regardless, what if they've been renamed and reform...

Detect if certain software is installed on a user's machine in Java

Hi, I have a Java application which requires certain software (one of them being Perl) before it can be run. What I used to do to detect for Perl is: Runtime.getRuntime().exec("perl Test.pl"); and if there was an IOException declare that there was no Perl. However, one of my users complained that the app kept failing because he had ...

generically detecting html position changes using jquery?

I'm using the excellent BeautyTips plugin as a means of indicating validation failures to end users and I'm running into positioning problems whenever page content is dynamically added, removed, or animated. Here's a concrete example. I have a DIV at the top of each page that’s used for confirmation/error messages. It's displayed in $...