devices

Windows Mobile Device Emulator - how to save config permanently?

I am working at a client site where there is a proxy server (HTTP) in place. If I do a hard reset of the emulator it forgets network connection settings for the emulator and settings in the hosted Windows Mobile OS. If I 'save state and exit' it will lose all of these settings. I need to do hard resets regularly which means that I lose t...

Bash Pipe Handling

Does anyone know how bash handles sending data through pipes? cat file.txt | tail -20 Does this command print all the contents of file.txt into a buffer, which is then read by tail? Or does this command, say, print the contents of file.txt line by line, and then pause at each line for tail to process, and then ask for more data? The...

Find out which process has an exclusive lock on a USB device handle

I have a library that reads/writes to a USB-device using CreateFile() API. The device happens to implement the HID-device profile, such that it's compatible with Microsoft's HID class driver. Some other application installed on the system is opening the device in read/write mode with no share mode. Which prevents my library (and anythin...

Mobile devices for developers

I need to develop some programs for mobile devices but haven't decided the platform to build upon. I'm looking for Palm or Pocket PC devices that have Touch screen and Wi-Fi connection and are cheep because I'll need to buy several of them. I don't really need camera, mp3 players, video players, pdf readers or anything else since the a...

How to detect the presence of a default recording device in the system?

How do I detect if the system has a default recording device installed? I bet this can be done through some calls to the Win32 API, anyone has any experience with this? I'm talking about doing this through code, not by opening the control panel and taking a look under sound options. ...

C# driver development?

Before I jump headlong into C#... I've always felt that C, or maybe C++, was best for developing drivers on Windows. I'm not keen on the idea of developing a driver on a .NET machine. But .NET seems to be the way MS is heading for applications development, and so I'm now wondering: Are people are using C# to develop drivers? Do you ...

Best way to get started with programming other things than your computer?

What is the best way to get started with programming things outside of your computer? I don't mean mainstream things like cell phones with APIs. Please assume working knowledge of C/C++ ...

Detecting appearance/disappearance of volumes on osx

I want to update a list of storage devices as the user inserts USB keys, adds external disks and mounts disk images. IOKit's IOServiceAddInterestNotification looks like the way to go, but the obvious use of registering general interest in kIOMediaClass only gives you notifications for unmounting of volumes and then only sometimes. What'...

What are TIOCM_OUT1 and TIOCM_OUT2 good for?

termios.h defines #define TIOCM_OUT1 0x2000 #define TIOCM_OUT2 0x4000 but what are the flags good for? ...

What's the smallest device I can program on?

I'm thinking of something smaller than a laptop that i can spend my hours on the way to work doing project euler problems or such. Any ideas? ...

Developing for a Windows Mobile Phone, without a contract

Greetings! Anyway, My question, If you want to experiment developing for a Windows Mobile device, how would you go about testing your applications? I know there is a emulator but is not really ideal. Is there anyway, without paying a stupid astronomical cost, to get a development phone? Akin to what Google did with the android and I ...

What are your favorite programmable portable devices?

Have you worked on portable devices? Palms, WinCE devices, cellulars, other embedded devices. Which offered the best experience developing for it? Thanks ...

How might I receive notifications when a USB device is connected?

I'm writing a program to monitor a specific device. This device may or may not always be connected, and when connected may be connected to any one of several different ports; I'd like my program to handle this gracefully. Is there a way to receive notifications when a specific USB device is connected, and from there to determine which p...

What are Java's native ways of communicating with devices directly?

What are Java's native ways of communicating with devices or ports such as LPT1, COM1, USB directly? ...

Cheap programmable GPS devices

I'd like to start a side project that involves programming with GPS devices. All that I need is a GPS device that can record its location every X seconds or minutes, save those locations locally, and then send the list to a central server. I know that iPhones have GPS support, but I don't want to spend $300+ on an iPhone and another $1...

Multiple iPhone OS devices attached to one Mac -- how to select for build

I have an iPod touch with OS 2.2.1 and an iPhone 3GS with OS 3.0 both attached to my Mac. They both show up in Xcode Organizer. I now would like to be able to select which one of them an application gets installed on when running it from Xcode during testing. Is there any way at all to do this (except unplugging one of the devices, of co...

Detect the specific iPhone/iPod touch model

I am making a game that utilizes the peer-to-peer bluetooth capabilities of the iPhone (and probably the iPod touch 2nd generation). However, to stop the users from trying to play a multiplayer on an iPod 1st gen and iPhone 2G I need to check for the specific device model. [[UIDevice currentDevice] model] will only tell me if the device...

How should I go about implementing this SMS notification system?

Hi, I have developed a application which involves billing users. To do this i have incorporated a GSM modem (gateway) that the SMS messages are sent through. This SMS message is sent to the user when he is billed with the bill details. The GSM modem is connected to a single computer but the billing can happen in other systems. How do I s...

Get the full audio device name from Windows

Is there a way to get the full audio device name in Windows XP and later? I can use MIXERCAPS but the szPname member will limit to 32 characters (including NULL). For an audio device name of "Microphone (High Definition Audio Device)", I only get back "Microphone (High Definition Aud". This is due to MAXPNAMELEN being defined to 32. I h...

How to disable system devices without using DevCon?

Hi, I need to disable a device but not using the DevCon exe. Is there any script or a way to do this? ...