program

C question: how to get two consecutive chars from a stream

I'm reading a file in C, char by char but I need to get 2 consecutive chars. Please, can someone suggest me some options? the main idea of the program is to read a source C file and to find the number of all significant chars (ignore ws) and to ignore '*/' & '/*'. I'm trying to write the program in really basic level because it is for c...

cygwin programming

how do you compile java progrmas in cygwin? ...

cygwin and java

i am new to cygwin..what are the normal steps that are followed while setting classpath and all for running programs in cygwin? ...

How to mute the microphone c#

Hi! I wanted to know, what would the coding be if I wanted to toggle mute/unmute of my microphone. I am making a program that can run in the background and pickup a keypress event and toggle mute/unmute of the mic. Any help with any of that coding would be very helpful. I am pretty new to C#, and this is just a really simple program I wa...

programming in mahout

what is the step-by-step procedure for executing a program in mahout ...

How to prevent a Demo Java Program from my client's regular use?

I have made a demo small program that I want to deliver to my client so that he can run it for 5 times to check its functionality. It is not a big software for which I implement some serial-key functionality and make a trial software. I want a simple solution which can restrict the use of the program more than 5 times or which can delet...

Detecting Assembly

I want to detect that people with access to the sql server didn't write an unapproved application against a database. I noticed in sql server that the application name comes over in the log. I don't want someone to be able to just look at that name in the log and then name their assembly the same thing. ...

How many ways a java Program can end ?

I know use System.exit(0) can end a java program, for instance, if I have a JFrame window, it will close and end the program, but I wonder how many other ways, can it be closed and the program be ended ? Including when an error occurs, will the program be shut down and the JFrame be closed ? ...

Useful program to render CSS in different browsers instead of installing each one separately?

In order to test CSS in different browsers, do I have to result to installing each browser on my development system? Isn't there a useful program where you can just load an html+css file and view how it's rendered in different modern browsers? ...

In php , i have send a mail using mail() , it must not saved in my sent items folder

Hi Send email using mail function working fine. but my question is how to auto save the mail in sent items folder when mail sent i m using own smtp server and port no is 25 is any config needed on php ini file or i may use imap my code is as follows <?php function send_email($from, $to, $subject, $message){ $headers = "From: ".$fro...

Difference between script and program?

Hi, I like to know difference between script and a program. Most of the time I hear script is running , is that not a program.I am bit puzzled.Can anybody elaborate on this? Thanks ...

Write a C program to measure time spent in context switch in Linux OS.

Can we write a c program to find out time spent in context switch in Linux? Could you please share code if you have one? Thanks ...

On wxWidgets Mac version (wxMac) where is the setup.h file I need to modify?

I can't seem to find the right version of setup.h that gets used when building with ../configure, make. What directory is it? There seems to be tons of variations but I change them and the changes aren't used. Help. ...

how does a research topic fit into a program?

My project is supposed to be about creating a program to help put a math test online. The program should generate questions that vary on each run of the test, and it should grade the test after someone takes it. (I found out recently that there's a system that can do some of the tasks already, but I don't think many people know how to us...

Is there a way to test a program's hardware requirements without just using it on a bunch of different computers?

Is there a program out there or some other thing that will run some kind of virtualization for me or something, to test the hardware minimums for a program I write? Something I can do locally without install testing on, say, a 33 mhz 64kb ram IBM or something ...

Good way to flatten a multiple file python program for distribution?

I am writing a console application in python that will consist of a handful of modules, each with a couple hundred lines of code. For development it would be nice to modularize the program, but for distribution I like the idea of being able to post the program as a single python script. Are there any good scripts out there for flatteni...

C#- Executing Exe without using System.Diagnostics.Process.Start

Hi all, I have a program that crashes when I execute it with System.Diagnostics.Process.Start in C#, but works fine if I execute a shortcut or batch file that runs the exe. Are there any alternative means of executing programs in C#, or any reasons why Process.Start might not work compared to the shortcut or batch file? I'd rather not h...

Does there exist a version control gui that is compatible with most version control systems (git, svn, hg, cvs, perhaps bzr).

I Just think that I could actually contribute code much faster if I didn't have to learn what is an almost entirely other subject. ...

How to run code before program exit?

Hi all, I have a little console C# program like Class Program { static void main(string args[]) { } } Now I want to do something after main() exit. I tried to write a deconstructor for Class Program, but it never get hit. Does anybody know how to do it. Thanks a lot ...

pointer in c and the c program

Hello, I am studying pointers and I encountered this program: #include <stdio.h> void swap(int *,int *); int main() { int a=10; int b=20; swap(&a,&b); printf("the value is %d and %d",a,b); return 0; } void swap(int *a,int*b) { int t; t=*a; *a=*b; *b=t; printf("%d and%d\n",*a,*b); } Can any on...