- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 7
- Posts with Upvotes
- 3
- Upvoting Members
- 6
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I live in Australia, Queensland. I recently graduated from tafe, with 2 diplomas in Information Technology (Software Development and Database Design), and am currently doing a Bachelor of IT (majoring in Software Engineering).I enjoy all aspects of programming.…
- Interests
- Computers, computer games, music, guitar, reading, football...
- PC Specs
- 1.ASUS NotebookWindows Vista UltimateIntel Core 2 Duo4 Gig RAM 2.Intel i7Windows XP Home4 Gig RAMXFX…
Hi, I would like to extract the return (currently false) value from the following XML: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <ns:isPumpOnResponse xmlns:ns="http://webservice.whatever"> <ns:return>false</ns:return> </ns:isPumpOnResponse> </soapenv:Body> </soapenv:Envelope> Is there a way of getting it out of the SOAPMessage object? SOAPMessage soapResponse = soapConnection.call(createSOAPRequest(webMethodName), url); Thanks. |
|
Hi, I'm trying to make a label visible by clicking on a button. The following code will make the label visible, but will disappear in less than a second. I'm assuming its because the form is getting submitted in the java script, so the page is getting refreshed? Is there … |
|
Hi all, I have a html page with html form input boxes in it. What I want to do is validate these input boxes with javascript. I have a span element(error message) next to the text boxes which will only be visible when the user submits the form without entering … |
|
Hi all, I want to make scroll bars appear when I resize the window(for the entire web page). At the moment the image in the header is just cut off at both ends, with no scroll bars. What do I need to do to the following code to make this … |
|
Hi all, My computer seems to have a problem with its peripherals (no display on the monitor, no red light on the mouse and lights on the keyboard won't light up). The computer does power up (blue led lights, fans, motherboard lights) and I can open and close the DVD … |
|
Hi all, Does anyone know of any good tutorial that explains how to set up a website on apache web server. I need it to be in Linux (Ubuntu). Or if anyone can explain to me how to do it that would be great to :) all I need to … |
|
Hi all, Is there a way to make thread pools in POSIX pthreads? (using c) I could only find implementations for java and c++, but I need it to be in c. Thanks. |
|
Hi all, I'm making a client server program in Linux. I use fork() to create a child process of the server to handle a new client. When a client disconnects it should kill the child process. At the moment the program is able to kill the fist client(server) that connects, … |
|
I can't get strcmp() to return 0 with the following code. please help.. [CODE] char quit[10] = "q"; scanf(buf, ""); fgets (buf, 100,stdin); fflush(stdin); if(strcmp(quit, buf) == 0) { printf("Quiting program\n"); ...[/CODE] when I type 'q' into the command line it should enter that if statement, but it doesn't. |
|
Hi all, I have a multithreaded program, one of the threads needs to listen for user input. I was wondering is there a way of checking for user input every few seconds or milliseconds, without having the thread hang on a fgets() function? Current I have: [CODE] while(keep_running == TRUE) … |
|
Hi all, I need to convert a char array to an int. But the char array has regular characters in them('A', 'B', 'C'...) and numbers. how would I omit those characters and extract the number, then store it as an int. any help would be great thanks. |
|
Hi all, Why do I get a fatal error when I try and free this memory? [CODE] char *timeBegin = (char *)malloc(sizeof(char) * 21); timeBegin = time_stamp(); sleep(1); char * test; test = calc_time_difference(timeBegin); printf("%s", test); free(timeBegin);[/CODE] time_stamp() returns a static char array. Would this be the cause? |
|
Hi all, why is the following code printing the wrong result? [CODE]/* Returns the current time. */ char *time_stamp(){ char *str = (char *)malloc(sizeof(char) * 23); int len; struct timeval tv; struct timezone tz; struct tm *tm; gettimeofday(&tv, &tz); tm=localtime(&tv.tv_sec); printf("\n\n\n%04d-%02d-%02d %d:%02d:%02d:%03d\n\n\n", tm->tm_year, tm->tm_mon, tm->tm_wday, tm->tm_hour, tm->tm_min, tm->tm_sec, tv.tv_usec/1000); sprintf(str, … |
|
Hi all, I'm making a miltithreaded program that uses the pthreads library. One of the threads monitors the users input. my problem is when I enter a close command I get the following error: 9 [sig]...: *** fatal error - called with threadlist_ix -1 make: *** [run] Hangup I know … |
|
Hi all, I need to get a random number from the following: [CODE]#define RAND(min,max) ((min)+(int)((double)(max-min+1)*rand()/(RAND_MAX+1.0)))[/CODE] but when I print it out it just prints the value of min. [CODE]printf("%d", RAND(10000000,99999999));[/CODE] please help! thanks in advance. |
|
Hi all, I have a problem with one of my computer's network connection. The problem: [LIST] [*]cannot view any websites ("Problem loading page" error messages in firefox,"The connection has timed out"). [*]cannot ping any web sites [*]cannot ping localhost [*]renewing or repairing the ip address does nothing [/LIST] fyi: Im … |
|
Hi all, Is there any way to get the location of the CLASSPATH environment variable within a pragram. I need to get the location of rt.jar so that I can dynamically load the classes within that jar file using URLClassLoader. thanks in advance. |
|
Re:
good day.. i am starting to learn..and experiment in namespaces just simple one... calling void functions..then print f.h [CODE]#include<iostream> #include<limits> namespace A { void f() { std::cout<< "Testing \"void f()\""; std::cout<<std::endl; } }[/CODE] f.cpp [CODE]#include "f.h" int main () { A::f(); std::cin.ignore(std::numeric_limits<std::streamsize>::max(),'\n'); std::cin.get(); } [/CODE] g.h [CODE]#include<iostream> #include<limits> namespace A … |
|
Hi all, why do I get an error with this line of code? [CODE]string test("a" + "b" + "c");[/CODE] error C2110: '+' : cannot add two pointers I have included the string class. thanks. |
|
Re:
Hello! I'm trying to make a simple calculator in Visual C++ and while coding the decimal button, I encountered the error C2228. Basically, I'm checking if the textBox1 (its name!) already contains a '.'; if yes, then it should return; else, it'll add a '.'. To check for that, I … |
|
Hi all, Does anyone know where I can get an ASUS M50VM series laptop battery? I know they have discontinued making the laptop. So can I use any M50 (SA, SR, SV) series battery? or do they make batteries specific to the laptop? I found one at: [URL="http://www.laptop-batteries.com.au/computer-battery/asus-m50vm.htm"]http://www.laptop-batteries.com.au/computer-battery/asus-m50vm.htm[/URL] but I've … |
|
Re:
I need to create a new txt file using ofstream, but I need to use a string to name the file. For example: [CODE] string string1 = "testfile.txt"; ofstream myfile; myfile.open (string1);[/CODE] but when I try, it says I can do this because string is not a valid variable type … |
|
Hi i am using vb to make a hospital system which works with a access database i am having an issue with the updatign function to the database this time round instead of hard codding the connection i used the connection/data source wizard in microsoft visual studio 2008 and there … |
|
Hi all, Has anyone used PFDBox before? I'm having trouble with makeing a pdf with mulitple lines: [CODE]contentStream.drawString( patient.toString() );[/CODE] patient.toString() has newline characters in it(\n) and drawString dosn't recognize them. |
|
Hey all, can anyone tell me what this error usually means: 1>Client.obj : error LNK2001: unresolved external symbol "public: bool __thiscall StudentCollection::addStudent(class Student)" (?addStudent@StudentCollection@@QAE_NVStudent@@@Z) 1>D:\Sem1_2010\INB371_DSA\Assignments\Assignment2\Assignment2\Debug\Assignment2.exe : fatal error LNK1120: 1 unresolved externals. [CODE] StudentCollection *studentCollection; Student *studentUser; ..... student = new Student(studentNumber, firstName, lastName, phoneNumber, address); studentCollection->addStudent(*student);[/CODE] [CODE]bool addStudent(Student student){ … |
|
Hi all, i am trying to get an address from a user but when the program gets to the street i have an issue where the intended input i would like is: "big St" but this causes the cin /getline function(have tried both) to write it into the next input … |
|
Hi all, I have a file called Client.cpp, which has main() contained in it. my problem is at the start of the file: [CODE]#include <iostream> using namespace std; #include "Student.h" enum User { NO_USER = 0, STUDENT = 1, ADMIN = 2}; [/CODE] I get errors on the line with … |
|
Re:
I am having error in the following code. What should I do to fix it? Also, how should I call it in main method to test the code? please HELP :( [CODE] package sortingelements; public class Main { public static void main(String[] args) { } public int indexOfMaxInRange (int[] myArray, … |
|
Hi all, Im using hibernate in netbeans to map to a mysql database, but am having problems.... when I open a session: [CODE]Session session = SessionFactoryUtil.getInstance().openSession(); session.beginTransaction();[/CODE] it prints out this in the console:... [COLOR="Red"]12/04/2010 9:50:26 AM org.hibernate.cfg.annotations.Version <clinit> INFO: Hibernate Annotations 3.3.1.GA 12/04/2010 9:50:26 AM org.hibernate.cfg.Environment <clinit> INFO: Hibernate … |
|
Re:
Hi all, I need some help finishing this program, I know it's easy but I'm new in C++ and programming. [CODE]#include "stdafx.h" #include <iostream> using namespace std; int main() { const int arraysize = 10; int a[arraysize] = {11,22,33,44,55,66,77,88,99,100};[/CODE] This is the start of my program ; a giving array … |