program

i want to add speed ranges with some fine amounts and save them into databse

..here my problem is i should check whether the speed ranges overlap or not and if they overlap i should display a message saying the speed ranges cannot be overlapped. Minimum Maximum Rate 1 15 10 16 25 15 ...

# pragma directive and its uses in c

Hello , can anyone tell my what does the #pragma can do in the c language . what are its uses and why the above program is not giving the output 'inside v1'& 'inside v2' in the following program ... # include<stdio.h> void v1(); void v2(); # pragma startup v1 # pragma exit v2 int main() { printf("inside main\n"); return 0; } void v1(...

need help with a small Python program

Basically looking for a small program that will do nothing but activate the F6 key every x seconds for the active window, x being whatever number I enter, and the program stops with the hit of like ctrl+z or something. What would be a good way to do this? ...

PHP & bash; Linux; Compile my own function

Hi. I would like to make my own program but I have no idea how.. for example I want to make a typical 'Hello $user' program. So.. ├── hi │   ├── hi.sh │   ├── hi_to.sh hi.sh #!/bin/bash ~/hi/hi_to.sh $1 hi_to.sh #!/usr/bin/php <?php echo "\nHellO ".$argv[1]."\n"; ?> Run it in terminal: me:~/hi → ./hi.sh User He...

R plot- SGAM plot counts vs. time - how do I get dates on the x-axis?

I'd like to plot this vs. time, with the actual dates (years actually, 1997,1998...2010). The dates are in a raw format, ala SAS, days since 1960 (hence as.date conversion). If I convert the dates using as.date to variable x, and do the GAM plot, I get an error. It works fine with the raw day numbers. But I want the plot to display t...

R dates "origin" must be supplied

axis.Date(1,sites$date, origin="1960-10-01") Error in as.Date.numeric(x) : 'origin' must be supplied Why is it asking me for the origin when I supplied it in the above code? ...

Disable everything in windows except program c#

Hello, I've got the following question: Is it possible te disable everything in windows except the program it's running? I need to program an application on a touchscreen (fullscreen), where people can fill in a survey. The only thing they should use is this program. (for protection of the survey anwsers and other secret stuff :p ) And...

How to synchronize cuda threads when they are in the same loop and we need to synchronize them to execute only a limited part

Hi all, I have written a code and Now I want to implement this on cuda GPU but I'm new to synchronization so please help me with this, It's little urgent to me. Below I'm presenting the code and I want to that LOOP1 to be executed by all threads (heance I want to this portion to take advantage of cuda and the remaining portion (the porti...

In what ways can a flag be used within the program design?

In what ways can a flag be used within the program design? How can you use multiple flags? ...

Data Extraction?

Hello everyone, Summer is here! And it is time for me to find a summer programming project as I am very fond of taking learning into my own hands.. My question to you is this, I am looking for methods to extract various data from various websites. I know there are programs out there you can buy but being that I am trying to learn I wan...

How to check location of 32bit Program FIles folder in windows .bat script

I want to write .bat script which works under all flavours of Windows, no matter if 32 or 64 bit. In this script I want to run some file.exe. That file is located in C:\Program Files\ under 32-bit systems or C:\Program FIles (x86)\ under x64 systems. I can write: "%ProgramFiles(x86)%\file.exe" under 64bit systems or "%ProgramFiles%\fil...

How to create a .BAT file opening programm and preventing it from opening new windows?

So I am starting a consol programm from .bat file. I want it to run as a process but not showing any windows. How to do such thing? ...

A error about "Address 0x0 is not stack'd, malloc'd or (recently) free'd" in c program under linux enviroment

[Edit1:] For the seqName, I declare it as a global parameter at the beginning of the file as char seqName[20]; [Edit2:] Aren't those number of passing to the program during the actual execution? I got the following message just by using the valgrind tool. The command I input is: jl@ubuntu:~/work/dsr_analysis$ valgrind --tool=memchec...

Possible memory leak problem

I write two pieces of c programs like following, during memcheck process using Valgrind, a lot of mem leak information is given. int GetMemory(int framewidth, int frameheight, int SR/*, int blocksize*//*,int ALL_REF_NUM*/) { //int i,j; int memory_size = 0; //int refnum = ALL_REF_NUM; int input_search_...

Simple program logic to Call method continuously

Hi everybody, I am in a situation, in which my program needs to do processing and then wait for some interval, let's say 5 seconds and the do the same processing again. I don't know how to implement the logic. I have developed a logic, the code is below: private void ProcessEmail() { PprocessEmail:; //Do whatever ...

What's a good high level diagramming program?

I'm looking for a simple way to make high level designs of the structure of a program I'm working on. Something along the lines of class dependencies and connections, but I'm using it for planning, not for analysis, so it needs to be some sort of drawing app rather than a code analysis tool. I've been using Openoffice Draw but it's somew...

Virtual PC (Program Developed on XP Runs on W7 Problem)

I have a developed a C++ application using 32 bit and it create a executable file. This project has uses some external library like window socket 32bit, Qt GUI and boost library. The dll is located at same directory with the executable. I wonder how can i run this application on window 7. MY window 7 version is Home Premium 64 bit. Th...

Is it possible to share an Apple Developer Program license between programmers?

A couple of friends and I are working on a project for our final thesis that will run in the Iphone, and we're looking at the prospect of purchasing an Apple Developer Program License. I'd like to know if we could purchase a license between the three of us, and still be able to deploy to the iphone individually. That is, each of us wo...

OpenCL build program from binary

Hello, I'm trying to test the OpenCL functionality of building a program from pre-compiled binaries. So far I've managed to create the binary file, but I'm having trouble to load it. I'm trying to adapt this code for use with the C++ bindings: FILE* fp = fopen("oclLLtoUTM.ptx", "r"); fseek (fp , 0 , SEEK_END); const size_t lSize = ftell...

Multiple program shortcuts from one application

In my application I have a number of Activity classes. When I run on emulator (or install to a device) a corresponding number of program shortcuts show up in the programs menu. Why does this happen and how can I avoid it? Many thanks. ...