199,111 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for netwrkengeer

This is a problem I don't really understand. I think it maybe a time out issue. I have a search box accessing csv files. if the browser is open for 20 minutes and I run a search the browser crashes. if I stop a search in the middle of resolving …

Member Avatar for mail2saion
0
293
Member Avatar for harrykokil

hi guys.. ive tried to integrate a timer code (which works fine) into a tkinter window but im having errors. can u plz fix it 4 me? thanks. this is the code i want to integrate. [icode] import Tkinter as tk import time def start(): global count_flag count_flag = True …

Member Avatar for jlm699
0
118
Member Avatar for JerryShaw

Hello, I typically hang out in the C# forum, however I hope someone here can help. I am converting a C++ program to C#, and I need to know how to handle a couple things: IOW I know almost nothing about C++, and this code is coming from a non …

Member Avatar for JerryShaw
0
271
Member Avatar for emilio

hi a have a gridview with datafield column which is bound to a datetime column. i want the grid column to show the date when the day is first, like this: 24/2/2009 i tried the following format: [CODE=asp]DataFormatString="{0:dd/MM/YYYY}"[/CODE] but the grid is still shows the date when the month is …

Member Avatar for mail2saion
0
393
Member Avatar for robbyboy20

[code=c]# include <stdio.h> # include <conio.h> # include <stdlib.h> int main(int, char**); void welcome_message(void); void main_menu(void); void second_menu(void); void add_customer(void); void edit_customer(void); void print_report(void); void cust_menu(void); void exit_message(void); int main(int argc, char *argv[]) { char menuOpt; int isExit = 0; if (argc > 1) { printf("%s : Start Up Error …

Member Avatar for jephthah
0
190
Member Avatar for deshun
Member Avatar for RizzLinux1388

Hi everybody I am working on a String project for my class and I'm stuck on this swap function. This is what my professor has in his "tests" : [CODE]void test_swap_first_shorter() { // Setup fixture string foo("foo"); string barbar("barbar"); // Test foo.swap(barbar); // Verify assert(foo == "barbar"); assert(barbar == "foo"); …

Member Avatar for jephthah
0
204
Member Avatar for swatiringe

I want to construct a bipartite Graph for matchmaking of web services. First step of my project is graph construction. I need help in Bipartite graph construction

Member Avatar for Freddy00daniweb
0
170
Member Avatar for Lee_Sonnenburg

I'm writing a program that accesses a public web service. The web service has one web method. After referencing the service and creating an instance of it i'm retrieving the data from the web method. The problem: The data that gets retrieved is a long string of xml. What I …

Member Avatar for Lee_Sonnenburg
0
102
Member Avatar for mzdiva041986

This program actually reads in an input expression and using the grammar rule to determine whether the syntax is ok or not. This is a lexical analyzer. I need to be able to read in the input expression and output each token of the expression and it's token kind. I'm …

Member Avatar for BestJewSinceJC
0
74
Member Avatar for jyotiu

Hi all i am a newbie and try different things everyday and always come here when i am stuck with something. I want to write a script using curl and php that goes to this link :[url]http://tools.cisco.com/WWChannels/LOCATR/openBasicSearch.do[/url] and then goes through each page for each country capturing a list of …

Member Avatar for cwarn23
0
1K
Member Avatar for nexocentric

Before I state my problem, which is in bold text, I need to give you a little bit of background. I'm working with 3 binary log files of about 35mb each. Each one holds approximately 65000 records. Each record, which is about 400 bytes, holds information containing the date, transmission …

0
65
Member Avatar for smitem03

I am a new user on this C and have a hard trouble with I/O's. If you could let me know what I am not clarifying. Thank You! [code] #include <stdio.h> #include <stdlib.h> // employee structure definition // struct year2009Data { float SSN; // employee social security number // char …

Member Avatar for Ancient Dragon
0
164
Member Avatar for Dewey1040

Write a program to compare two text files. The names of the files are to be supplied as command line arguments. The program should write a message to the screen indicating that the files are exactly the same or that there are differences. If the files differ, the program should …

Member Avatar for Ancient Dragon
0
83
Member Avatar for aerobama

okay, so I'm a little lost on how to use selection sort and i/o files for this project. the program is supposed to sort a list of first and last names into alphabetical order. here's the catch. each name has a GPA that goes with it. so not only do …

Member Avatar for siddhant3s
0
211
Member Avatar for viki0077

I made this small C++ program, and it won't compile. Please if someone can help me to fix these 2 errors: error C2059: syntax error : ';' error C2059: syntax error : '}' The text is not in english, but it doesn't metter, just these 2 syntax errors so it …

Member Avatar for waldchr
0
170
Member Avatar for Straightone

My question is how do i call the variable Neotile from the main function into the Neo() function and then redefine it and return it back into the main function at the begging of the while loop so it is redefined? [code]from p2lib import * from string import * def …

Member Avatar for adam1122
0
146
Member Avatar for enginer

I am completely new to assembler and I am starting to write in assembler 8086-8088 with tasm. I have the beginning correctly. I need only the coding for reading two digit numbers. So far I know that you have to multiply the first by 10 and add the second. Please …

Member Avatar for peachville
0
83
Member Avatar for dimitriz5

Please, if anyone could give me assembly code for a calculator it would be a great help . I am using mips... Thanks in advance.:-|

Member Avatar for peachville
0
176
Member Avatar for gotm

How come this just hangs, after debugging I found it never returns True for precondition even though it should on the very first go around....ugh!!! [code=python]#!/usr/local/bin/python #Scott Landau #CS 380 #Assignment 1 Programming Portion in Python #Created - 4/6/09 #Last Edited - 4/8/09 import pdb #n is going to be …

Member Avatar for gotm
0
143
Member Avatar for Potato.Head

Hi to all I'm new in the forum and I have the following question: can I share a javascript object between pages? I'll explain my self, I have a page that contains two frames: Currently I can call methods from frames, I was wandering if can retreive the all object, …

Member Avatar for Airshow
0
204
Member Avatar for Acidburn

Hey guys I've got a Factory that can return a database writing object. It takes in a config file that points it to which class to create an object of. Now this is were I'm stuck. Factory -> returns a database writter now there's more than 1 way of writing …

Member Avatar for JerryShaw
0
101
Member Avatar for ShadowScripter

I stumbled upon another what I think is initializer, like int and char, named [B]HANDLE.[/B] It's also used when creating an application, I've browsed the net and found that it is a sort of pointer to an object that can change without me knowing it... eh... It wasn't really that …

Member Avatar for ShadowScripter
0
108
Member Avatar for southernd0529

[code=cplusplus] #include<iostream> #include<iomanip> #include<fstream> using namespace std; const int N = 20; // file declaration and open ifstream inFile; ofstream outFile; /* need to open files here */ //function prototypes void initialize(int& zeroCount, int& oddCount, int& evenCount); void getNumber(int& num); void classifyNumber(int num, int& zeroCount, int& oddCount, int& evenCount); void …

Member Avatar for jephthah
0
350
Member Avatar for booker

Hello I have a C++ project A which has to use heather/source files of project B. When I do include "B.h" then B's heather can't be seen because B and A are in a different sub-folders of the same folder.What can I do thank you

Member Avatar for booker
0
99
Member Avatar for dustman

[I]<< split from [URL="http://www.daniweb.com/techtalkforums/thread28858.html"]this[/URL] >>[/I] [quote=Narue;145474]>u asking me if i cant code why should i be asking about sockets? No, I was asking you what you know so we don't waste time going over things that we don't need to. But if you want to be a dick about it, …

Member Avatar for jephthah
0
169
Member Avatar for sharensla

I have a problem with this code given below when i compile it without pointers it easily runs i want to run it by using pointer it gives me erro can any body runs the programme with pointers. when i compile this without pointer it runs #include<iostream.h> #include<conio.h> #include<string.h> #include<stdio.h> …

Member Avatar for JugglerDrummer
0
179
Member Avatar for Nickair

Hi i am trying to find a good C++ tutorial to help get me started with programming. Does anyone know of a good one?

Member Avatar for tux4life
0
104
Member Avatar for scrypt3r

I have just wrote a quick task manager-like-app that shows you running processes and the threads and affinity etc but i have a problem, on all of the processes it returns that the process affinity is 3?? (i have a dual core) Why would it return 3?

Member Avatar for ddanbe
0
74
Member Avatar for daviddoria

I found some code to parse command line arguments (is there an easier way? sed always seems so complicated...) [code] #!/bin/bash for i in $* do case $i in --files=*) FILES=`echo $i | sed 's/[-a-zA-Z0-9]*=//'` ;; --default) DEFAULT=YES ;; *) # unknown option ;; esac done echo $FILES echo "File …

Member Avatar for hexram
0
110
Member Avatar for bolx

Hi there, i have an assignment, and i need to create a monthly expenditure. I have managed to get alot done, a fully functioning menu and all the functions. Im stuck when it comes to deleting an entry I have been using structured arrays to store data, ive posted all …

Member Avatar for bolx
0
141
Member Avatar for Trav580

Ok, so I just started using Python last week and I have written 4 VERY simple, non-GUI programs. This is for my intro to game physics class and I happen to be stuck on the last project until my next class. What this project is SUPPOSED to do is ask …

Member Avatar for Trav580
0
453
Member Avatar for LogicWeb

I'm trying to figure out why some of the ajax tabs are not working. The first two tabs work, the third through 5th tabs do not work when you click on them. The js file is tab.js and contains this: [CODE]// JavaScript Document function tab(){ var labels=document.getElementById("tab_product").getElementsByTagName("li"); var part_1=document.getElementById("part_1"); var …

Member Avatar for LogicWeb
0
142
Member Avatar for viki0077

I'm really a beginner in C++ programming, and the above problem is just a part of c++ excercise. Can somebody give me a tip how to implement this in C++? The biggest problem for me is to implement and write this: • red+yellow light on cat traffic light is 2 …

Member Avatar for tux4life
0
8K
Member Avatar for jomacho

Hi, this is my first post here. The fact is i'm not a programmer and i need help. I have a software that i need to solve a vehicle routing problem for my thesis. But i only got the source code for it, one header file and 6 cpp files. …

Member Avatar for tux4life
0
127
Member Avatar for vidaj

Hi, In my current project I'm trying to compose some objects at runtime based on a string containing the object-configuration. Based on the "Favour composition, not inheritance" pattern, but done runtime. My usecase: I have a downloader that downloads web-pages. The downloader is configured with a set of request-handlers and …

Member Avatar for vidaj
0
105
Member Avatar for Egypt Pharaoh
Member Avatar for paulchen82

Dear all, here is my AJAX file [code]<script language="javascript" type="text/javascript"> var xmlHttp; var temp; function showHint(str,IdDet,str2) { temp = IdDet; if (str.length==0) { document.getElementById("txtHint"+temp).innerHTML="&euro;0"; return; } xmlHttp=GetXmlHttpObject(); if (xmlHttp==null) { alert ("Your browser does not support AJAX!"); return; } var url= "<?php echo $mosConfig_live_site."/administrator/components/com_virtuemart/html/basketAJAX.php";?>"; if(window.location.protocol == 'https:') url= str_replace("http://", "https://", …

Member Avatar for johnnyN
0
153
Member Avatar for rock9449

i am a bit confused on how to start this i have to write a for loop to read in 10 number , write bubble sort having 2 nested for loops and writing a loop to output to sorted array [code] int main () { int total_neg=0;// intialize int total_pos=0; …

Member Avatar for WaltP
0
152
Member Avatar for LiBOC

Dear all, Background: Rabbit Microcontroller. Accessing the board via Telnet. TCP/IP Uses VT100 Emulation Telnet. I had been thinking how do I check whether a user had keyed in an UP ARROW. I tried to do a HEX key capture and they returned me 3 HEX numbers. I am using …

Member Avatar for jephthah
0
312
Member Avatar for Clockowl

Hey guys, I got this code, and I can't get it to compile, no clue what I'm doing wrong. [code=cpp]#include <iostream> #include <vector> #include <iterator> using namespace std; template <class T> void kill_dupes(vector<T> &x){ vector<T> y; for(vector<T>::iterator it = x.begin(); it != x.end(); it++){ if(find(x.begin(), x.end(), *it) == x.end()){ y.push_back(*it); …

Member Avatar for siddhant3s
0
2K
Member Avatar for rEhSi_123

Hello all, I have a bit of an issue, Currently I am working on a forum system. This is the code for when a person click on a forum category. I would like some suggestions as to how I could implement in such a way that if a non user …

Member Avatar for rEhSi_123
0
138
Member Avatar for Dewey1040

There is a famous mathematical conjecture called the Goldbach conjecture, that every even integer greater than 2 has the property that it is the sum of two prime integers. Write a C program that will prove that this conjecture is true for even numbers between a START value and a …

Member Avatar for Aia
0
121
Member Avatar for prawin@123

Hi can any one help me!!! I need to display the latest entries by date and time ie i stored the date as 2009-Apr-16. so that i wrote a query as select * from tbl_projectstatus order by date asc ,time desc" But the above code displays as follows ie Normaly …

Member Avatar for rikcando
0
103
Member Avatar for guano

Dears, I am staring to learn python/wxpython in order to make an app aimed at structural geology analysis. As usual, I am starting with something simple, and after I get the way of it, make it more complex. The idea is (what I have running so far): a window with …

Member Avatar for scru
0
529
Member Avatar for daviddoria

I need to get an unknown number of file names from the command line, ie ./python MyScript.py --Files 1.txt 2.txt 3.txt [code] parser.add_option("-n", "--NumFiles", type="int", help="Number of files") parser.add_option("--Files", nargs=options.NumFiles, help="a triple") (options, args) = parser.parse_args() [/code] Clearly this will not work because options.NumFiles is not available until after parse_args() …

Member Avatar for daviddoria
0
197
Member Avatar for daviddoria

I want to parse some simple arguments from the command line. This shows all of the arguments: [code] #!/usr/bin/python import sys #print all of the arguments for arg in sys.argv: print arg [/code] but I want to handle something like [code] --file a.txt [/code] or [code] --x 12 --y 13 …

Member Avatar for jlm699
0
111
Member Avatar for Grn Xtrm

Hello, I'm facing another problem with vectors, this time with the problem of converting infix to postfix. The compile process completes, but I recieve an error after I enter the infix expression. Here is the exact error I recieve: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 43 >= 2 at java.util.Vector.removeElementAt(Vector.java:511) at …

Member Avatar for Grn Xtrm
0
142
Member Avatar for serkan sendur

i have the following code : [CODE]static IScanningService scanningLayer = null; public static IScanningService BarcodeReader { get { if (scanningLayer == null) { string serviceName = GetServiceName(); try { if (deviceService == null) deviceService = Assembly.Load(serviceName); object o = deviceService.CreateInstance(serviceName + ".BarcodeReader"); scanningLayer = o as IScanningService; scanningLayer.AutoStartScan = Global.device.AutoStartScan; …

Member Avatar for serkan sendur
0
116
Member Avatar for cherryduck

Hi everyone, I'm making a program to store library books details, my constructor is such: [CODE]public Book(String author, String title, String publisher, int year)[/CODE] and I'm using an array to store and number the books and details, as such: [CODE]for(int i = 0; i <= 100; i++) { String book[i] …

Member Avatar for cherryduck
0
132

The End.