detect

Macro detect KDE or GNOME in qt4

Hi, I have a problem to detect when used in GNOME or KDE operating system that runs the application. The program I am doing QT4, and I have trouble feeling of look- in the systray, so I pass it to KDE, but which is not macro to do so. PD: I use KDE and C / C. I search in web and I see this: http://stackoverflow.com/questions/963611/creat...

Java: WHEN to detect whether cookies enabled

This might be more of a user-experience question than a business logic question, but I'll ask it anyway...because I value your opinion! I'm working in a simple eCommerce site and for security reasons, I want to rely exclusively on cookies for session management. In your opinion, is it more advantageous to detect whether the client's b...

How to find some code to detect code packer?

I wanna check lots of execution files (*.exe) that made by packer or compilers. So I need a library or anything like that which could tell me witch compiler or packer has made the *.exe files. I have tried the exeinfo but it makes me lots of minute to wait becouse it works one by one. Is there any program or library to handle that all...

Linux: how to detect how a process was started

How can my program detect how it was started: by someone using the command-line or by another process? The program has an optional interactive part that I want to suppress when it was started by another process - running in the background; but when it was started from a terminal I want it to do the interactive bit. [edit] If it is poss...

IPhone SDK - How to detect variable type (float or double)?

Hello, How do I detect whether a variable is float, double, int, etc.? Thanks. ...

Detect Motion on axis in android

HI, I am willing to implement a logic in which i need to know about the amount of motion made by phone on x y or z axis, using accelerometer i can only find acceleration on these axis, even if i try calculating the relative x coordinate value based on acceleration on x axis, its of no use as i cannot determine the direction of motion (i....

Python: how to tell if a string represent a statement or an expression?

Hello I need to either call exec() or eval() based on an input string "s" If "s" was an expression, after calling eval() I want to print the result if the result was not None If "s" was a statement then simply exec(). If the statement happens to print something then so be it. s = "1 == 2" # user input # --- try: v = eval(s) ...

How do I determine which css media type is being requested on my page?

Hi, I'm looking to alter the way my asp .net webpage is output to the browser depending on the css media type being used. Although the css is generally taking care of the differences in appearance between screen and print mode I would also like to make some minor adjustments to the markup when print mode is required. I would simply be...

Javascript to detect when a page has loaded in another window in Firefox

Hi, I was wondering what is the best way to detect when a page has finished loading where the page in question is in a different tab or window. And where page to be loaded could be any page on the web and is not under my control. I am using Firefox only and I dont mind if the solution requires a firefox extension or greasemonkey script...

Detecting a 4G capable device

Hi, I need to detect the 4G capability of the device. How can I do that? Thanks for any hints. ...

JavaScript - detecting if user is browsing the internet using Fullscreen mode

Hello again, I don't want to open my site in fullscreen mode (as it's not possible without using Flash) or to open it in 'kiosk mode'. I want to ask the user to press F11 on his/her keyboard to turn the browser into fullscreen mode. And I want to know if he/she did it. Is there a way to determine if the current window is being browsed ...

tortoisesvn not detecting change to SVN repository

we recently had our SVN repository disappear from the server hosting it. We still haven't figured out how it happened, but we had a semi-recent backup which we were able to use to recover the repository. We didn't lose any work (everyone had back ups of their most recent changes on their hard drives) but the revision numbers essentiall...

Why my webview detects events along with phone number

Hi friends Why my webview detects events along with phone number? my code is webview.dataDetectorTypes= UIDataDetectorTypePhoneNumber. Is it can disable the events alone. Regards, sathish ...

How to detect a delimiter in a string in PHP?

I am curious if you have a string how would you detect the delimiter? We know php can split a string up with explode() which requires a delimiter parameter. But what about a method to detect the delimiter before sending it to explode function? Right now I am just outputting the string to the user and they enter the delimiter. That's ...