199,114 Archived Topics
Remove Filter ![]() | |
Hi, Here is my code, [code] ids=(1 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 90 100 110 120) for ((i=0;i<${#ids};i++)); do awk '{ print ${ids[${i}]}" "$1; }' > ${TMP} < ./results/$1${ids[${i}]}/test_error.dat done [/code] I got this error [quote] awk: { print … | |
[ICODE]<?php error_reporting(E_ALL); $to = 'whom@yahoo.com'; $subject = 'The Playboys!'; $message = ' <html> <head> <title>TESTING!</title> </head> <body> <p>Playboy in the Philippines</p> <table> <tr> <th>Name</th><th>Sex</th><th>Age</th><th>Vitamin</th> </tr> <tr> <td>Tukmol</td><td>Twice a Day</td><td>75</td><td>Viagra</td> </tr> <tr> <td>Tamulmol</td><td>M ...W.....F</td><td>80</td><td>Tongkat Ali</td> </tr> </table> </body> </html> '; // Content-type header $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= … | |
Hey so as i mentioned here [url]http://www.daniweb.com/forums/post840142.html[/url] i need to check if a process is responding by using sendmessage however i have no idea how to get the hwnd because i start the process using system::diagnostics::process [CODE] process->StartInfo->WorkingDirectory=sinfo->workingDirectory; process->StartInfo->Arguments=" -exec "+sinfo->init+" -port "+sinfo->port+" "+sinfo->options; process->StartInfo->FileName = sinfo->exe; process->StartInfo->UseShellExecute=true; [/CODE] so … | |
I am new to programming and am having trouble with a school assignment. I need to make a class planner that prints out information after the user enters it and then askes for specific class numbers. The user enters the following information (in this order): 1. Name of Class 2. … | |
I am trying to create the meta tag: [CODE=HTML]<META HTTP-EQUIV="Pragma" CONTENT="no cache">[/CODE] I tried the following line: [CODE=PERL]print $cgi->start_html(-title => 'Meta Test', -meta=> { 'HTTP-EQUIV'=>'Pragma', 'CONTENT'=>'no cache'}), "\n"; [/CODE]But I get this: [CODE=HTML]<meta name="HTTP-EQUIV" content="Pragma" /> <meta name="CONTENT" content="no cache" /> [/CODE] Can someone tell me how to create the … | |
Hi I am trying to write a function [I]password_input(prompt, password)[/I] that will repeatedly ask for a password using the given prompt until the given password is entered. I have testing code, but I am completely lost upon how to do it and where to begin. This is the testing code: … | |
I have the following code below which is part of a program to create a Huffman Coding tree. The problem is that it runs through correctly for one node, outputting that character 'l' for a certain file has a specific frequency. However...after going through several iterations, it runs into a … | |
hi how to copy or move array to another array [ICODE]for example: Dim arr1 As New ArrayList Dim arr2 As New ArrayList[/ICODE] and arr1 has values ...I want to copy or move all values to arr2 with out use for loop to copy each value help me!!! | |
i have installed a new open source cms i would like to add up the login session unset session and destroy the session i wanted to know where do i place the coding. i have no idea about php any help would be appreciated | |
Aight well I figured that the simplest way of getting the text would be to directly check bit for bit if its the same letter. What I got so far is I am trying to seperate each letter from an image. Then I go letter to letter line to line … | |
Hi, I have a home assignment in C#, I need to make a simple one-way linked list and I'm having trouble. I can make all kinds of linked lists in C++ with no problem at all but I can't do it in C# and that's because I can't access memory … | |
Hi, I'm trying to read certain values from a text file and store them in a variable/string so that I can populate a combobox with the values. I have my read stream etc, but I'm unsure about how I would pick out certain data from the text file that I … | |
The program I'm trying to write uses a linkedList templated class to manipulate and add polynomials in the form ax^b + cx^d + ex^f etc. The polynomials are stored as linked lists. My problem occurs when I try to add them together. I've added some cout lines to try to … | |
Hi everyone! As u can see by my username, I'm a newbie in PHP. Now to the question: I have made a site that extracts data (in my case movies) that logs in a user and shows all data that the user has entered as a table. I've written some … | |
Hi, I'm trying to create an array or <list> of different objects ( of different type). All of the objects will have parent objects of a Manager type, but each one ( as a singleton) will be in the array/list. It's for some networking code I'm building, where each incoming … | |
Hello I am currently making a program for a database which includes an SSN. The user can input the ssn but I want it in xxx-xx-xxxx and to make sure the user ddoes this have the user input 3 numbers then 2 numbers then 4 numbers in seperate cin statements: … | |
The function should remove all the occurrences of an integer (say, removeItem) from an array. If the value does not exist or the array is empty, ,output an appropriate message. My program is able to print the array without all the occurences of removeItem , but I don't know how … | |
i = 1; while ( i < 10) { j = i * i - 1; k = 2 * j - 1; } I would like to know what's wrong with this code? Is "i" here the loop variable? I'm also not sure what's the function of "j" and … | |
i wanna learn how to add and delete records in a car stock inventory without having to delete the contents of the file and save it back. but i don't know how to. This is my code: #include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #include <windows.h> #include <time.h> int … | |
hey I am trying to make a program on visual basic 6 to determine weather a word or phrase is a palindrome or not. I need my program to be able to tell if the word or phrase is a palindrome and it not being case sensitive. The code below … | |
Hey guys, I think I have this mostly figured out but i'm still getting some errors, I'm not sure if it's a syntax thing or if I called out a variable wrong. For some reason eclipse is saying that my variable [B]average[/B] "may not have locally been declared" which doesn't … | |
hi there! basicly i want to make a program that will detect when windows email recives a new message. so... thats basicly it. thanks | |
What is the FTP server? Please tell me the key of the Renames a file or directory on the FTP server, Changes the current directory to the parent directory on the FTP server? | |
Hi need some help with this half attempt at a deal or no deal game I would appreciate your help very much the problem is in the comments. [CODE] #include <iostream> #include <vector> using namespace std; const int n_suitcase = 26; struct Suitcase{ int money_val; }; //hold the list of … | |
I am trying to do this [code] #!/bin/bash for i in 1 2 3 4 5; do File1="$i.txt" File2="$i.obj" ./Test $File1 $File2 #save i and the result of the program somehow done; [/code] For example, at the end I would like to have a file like this [code] 1 3.4 … | |
Help me please... Can anyone tell me the link of sample J2EE Application(Downloadable) which involves JSP, Servlets, EJB, Java Classes. | |
I have a database named newbase and columns are 1. Itid 2. Itname 3. Itprice 4. Itquantity I get the sum of the price using itname and the query is [code=sql] select SUM(itprice)as total from trick where itname=’a’[/code] I got the result but now problem is that I want to … | |
I'm currently wrapping up an assignment for class and i've been able to figure out most of the curveballs the professor threw at me but i've hit this one and it just seems strange. It seems he's declared... a pointer that is also a function? [code] struct data_node { char … | |
I've been working with SQL2008 AdventureWorks; specifically database AdventureWorks, table Person.Contact. I experimented with using a DataGrid control's DataSource property to add a new project data source to the DataGrid, although my code was written to access the database without using a DataGrid. My code was unable to do so … | |
[code=cplusplus] class Base { //private methods void printMyType() { cout << "this is base type" << endl; } //public methods void printAllInfo() { cout << "this An accout" << endl; printMyType(); } }; //end base class class derived : public Base { //private method void printMyType() { cout << "this … | |
The [B]problem [/B]I have is how to do a switch where I have to call the certain choices. [CODE]int main(void) { do { cout << "Hello there ." << endl; cout << "Select from the menu." << endl; cout << "A gets lyrics." << endl; cout << "B gets artist." … | |
[B]hey yall[/B] I've been working on this python program for a while and I need some help please. This program consists of classes and functions to make a basic maze. I'm not using Tkinter or any gui's. Just a printout where python does all the calculating. I have three files, … | |
Good morning! What I am trying to do is: display some text, wait 3 seconds (so the person can read it) and redirect that person to a different web page. I can get it to either: 1 - Display the text or 2 - Sleep(3) and redirect them to the … | |
I know a lot of vBulletin people view these forums, and some of the developers are Moderators here. So, the question is, would you guys ever convert over to ASP.NET? I'm not saying dump php, just run on two different systems. If you guys did, I know you would make … | |
please help me i want to make a program that implement functions and arrays using pointers.The user provides an array of integer data, while the system calculates the average ,standard deviation,and median of the array. i am unable to convert the input data string into separate parts and save into … | |
As a java beginnners what i incline to do for my program almost get solution from this site. Right now i need a small help to get file name or full path for output files of my program. so far my program is running as a search engine to find … | |
Hi! I'm new to the forum and to xslt. My problem is that I have to transform a cloud-like data hierarchy xml into a tree-like data hierarchy xml. Let me give you some example: input xml: [CODE] <DATA> <OBJECT id="1" class="CAR"> <ATTRIBUTE name="name" value="CITROEN CX" /> <ATTRIBUTE name="content" value="photo_link" /> … | |
I am trying to get this finished, but it seems everything I do to fix it, I get even more errors. Please help me figure this out, I am having a lot of problems with this particular program. Below is my program and build errors, can someone let me know … | |
Write a program which uses a for statement to simulate 120000 rolls of two dice. 'Keep track' of the number of times each possible outcome (a total in the range 2 to 12) is rolled using 11 integer variables. After all the rolls output a table showing the number of … | |
Sorry for the noobish question, but I'm trying to write a function that accepts strings as inputs. Here's what I've got: def backwards(x): word = "x" index = 1 while index < len(word)+1: letter = word[-index] print letter index = index + 1 Whenever I call the function, such as … | |
Hey, I want to check if a program is frozen by using send message.. what message should i send it? and will this work? like could i send it something random like 0xFFFC? | |
Hello everyone, Can someone please explain to me the meaning of the code below: [code] public class Client extends javax.swing.JFrame implements Runnable { // constructutor public Client( String host, int port ) { . . . new Thread( this ).start(); } public void run() { something.... } } [/code] This … | |
Everybody hi. I need to swap elements of my std::vector container. For example, i have vector with values from 1 to 5; and i need to swap 2 with 3 (only nearby elements), that in result i'll have 1,3,2,4,5. In real world i don't have std::vector filled with numbers - … | |
My problem definition is ,I have to send a message from one node in a network and it has to be broadcasted to all other nodes in the network.The program what I have given below will be running in all the nodes in the network.The same program should be capable … | |
Hi guys, I was wondering if someone could help me?! I am doing a uni project where we have to access and query a MA database. At the moment I have the database accessed and query is working but I'm having some problems displaying the records - I can scroll … | |
Hi, I need to populate a drop down box with size and colour values from my db. I have got it working but it just seems to be too clunky. I'm going to be marked on it and so would like to know where I'm going wrong. What I do … | |
hey can any one help me?? i have 2 develop a code to find the "lowest and unique" number from a array..i thot of sorting them and then comparing the lowest number with othe numbers but i m feelin it wont work...pls help me out... | |
Hi all! I'm learning Assembly by my own with FASM, but i'm having trouble running and compiling some codes... like this, for example: [CODE] CODE SEGMENT ASSUME CS:CODE, DS:CODE START: MOV AX, CODE MOV DS, AX CODE ENDS END START [/CODE] i get an error about the "CODE SEGMENT" one. … | |
I have 2 questions to ask: (1) I have been doing php for quite some time and I would like to know how a link such as this one works: [url]http://www.rooftop.com/forums/index.php?do=login&f=31[/url] My problem is the part that comes after the question mark. I have been using joomla of late and … | |
Hi, I have written a c++ program which takes a word and prints a list of all possible words that can be formed from it. I want to create a .exe file which can serve this purpose for me. By that I mean, I don't want to always compile and … |
The End.