132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for wonderland

Hi, I wan't to add simple web form to my page. name, e-mail, comment, so I started poking around internet and found out about CGI. I put premade cgi.(pearl) script in cgi-bin folder on server and adjusted form for that script: When I tested out my form , i got …

Software Development apache html-css perl ruby ubuntu web-server
Member Avatar for wonderland
0
169
Member Avatar for J-M DESMETTRE

Hi, I wrote this sample code to check the integrity of an IBAN (International Bank Account Number) bank account number. (See Wikipedia for further information) Any advice to simplify this? [code=python] # # IBAN_Check.py # Utility to check the integrity of an IBAN bank account No. # Python 2.5.1 # …

Software Development python
Member Avatar for orinbai
0
3K
Member Avatar for pochis40

I need an advice: I have a program made from a person that now it is not available. It is a Java applet; it is perfectly working and I have the sources: 4 Java files of, respectively, 326, 210, 119 and 35 lines (not a big program) and a very …

Software Development java
Member Avatar for javaAddict
0
67
Member Avatar for kolibrizas

[CODE]int a = 4, b = 3; String code = "a*b+a+2*b"; int result = unknown_function(code); System.out.println(result);//expecting 22[/CODE]Any ideas how to do that please?

Software Development java
Member Avatar for masijade
0
93
Member Avatar for Joebrauk

Hey, I'm new here. Just getting into c++ programming and saw some great resources on this site. I figured out how to print a fully random array, but I need help printing an array like this. 1 2 3 2 3 1 3 1 2 It could be any three …

Software Development c++ puzzle
Member Avatar for mrnutty
0
76
Member Avatar for nevets04

Why is it that if input 1, line 1 isn't deleted in a.txt? [code] x = open('a.txt','r') l = [] q = 0 for line in x: l.append(str(line)) b = "".join(l) print b a = raw_input("Which line do you want to delete?: ") l[int(a)] = "" x.close() x = open('a.txt','w') …

Software Development python
Member Avatar for leegeorg07
0
88
Member Avatar for rajeevbhatt17

Hi, I have a small FTP class, written in VB.NET 2.0, which keeps polling for a particular file at a remote location, at 2 minute intervals, till it successfully downloads the file, and then it stops. So far I had been using wget as an external process, and recently I …

Software Development vb.net
Member Avatar for kvprajapati
0
142
Member Avatar for timaquerra

is it possible to put void function into loop statement?

Software Development c
Member Avatar for Iam3R
0
171
Member Avatar for lithium002

Hello, I've a program that asks a user for four different integer values, and then draws a rectangle on a graph based on those values. I have done everything except now I need to set limits within the program so a user can only use valid values and I'm lost! …

Software Development java
Member Avatar for BestJewSinceJC
0
2K
Member Avatar for bruceaj

I'm trying to pass "this" as an argument of a constructor. Is there any way can determine what the type of Object "this" is? Thanks....

Software Development java
Member Avatar for bruceaj
0
67
Member Avatar for naziatarannum

Hi, Am new to shell scripting. Please advise me as to how to write a shell script that checks a set of files under a directory, if the files are not updated/modified today then an alert mail should be sent to certain mail id. Please help. Am new to this …

Software Development shell-scripting
Member Avatar for naziatarannum
0
144
Member Avatar for hosh

Hi i'm trying to compile this code, but getting warning. need some help to understand what I'm doing wrong. void printGraph(FILE *out, GraphRef G){ out = fopen (out, "w"); if( out==NULL ){ printf("Unable to open file %s for writing\n", out); exit(1); } } warning: passing arg 1 of `fopen' from …

Software Development c
Member Avatar for Aia
0
84
Member Avatar for scott_rider

I tested /project/pages/page[@completed='n'][not(text())=''] at [url]http://www.mizar.dk/XPath/Default.aspx[/url] with success but the xpath expression below doesn't work in C#. How do I re-write the xpath statement so I can use .Evaluate to return a empty node-set in C#? [code] string xpath = "/project/pages/page[@completed='n'][not(text())='']"; bool not_finished = (bool)xd.CreateNavigator().Evaluate(xpath); [/code] [code=xml] <project> <pages> <page id="1" …

Software Development xml
Member Avatar for kvprajapati
0
157
Member Avatar for sidd.

[code] float[] x = new float[10000]; float[] y = new float[10000]; int c=0; using (StreamReader sr = new StreamReader("e: \\CuPeak.dat")) { while (!sr.EndOfStream) { string s = sr.ReadLine(); string[] variables = s.Split(' '); x[c] = float.Parse(variables[0]);//run time ERROR in this line " format exception was unhandled" y[c] = float.Parse(variables[1]); Console.WriteLine(x[0]); …

Software Development
Member Avatar for kvprajapati
0
198
Member Avatar for maverick405

I am trying to find the average for the 10 different integer input from user and then to fine numbers above the average and below the average, I dont know what is wrong the code below executes and i am able to input 10 different integer but after that the …

Software Development c++
Member Avatar for maverick405
0
100
Member Avatar for isralruval

how would i write a function that parses a hex number as a string into a decimal integer? the following header should be: int parseHex(const string &hexString)

Software Development c++
Member Avatar for donaldw
0
540
Member Avatar for danibootstrap

Hi , Is there a way that I can draw lines or circles etcc..(graphics) onto windows screen? Please let me know.Sample code would greatly help.

Software Development c
Member Avatar for Ancient Dragon
0
328
Member Avatar for Deadmon

Hello all, Let's say I have a vector like so: [CODE]vector < char *>rlist;[/CODE] and [CODE]char* word;[/CODE] Let's say char* word was pointing to a 9 character word, like "statement". If I were to do [CODE]rlist.push_back(word)[/CODE] I would get a seg fault. I believe this is because push_back expects a …

Software Development c++
Member Avatar for Ancient Dragon
0
165
Member Avatar for ineedhelp09

Hey everyone, I'm new at this.. so please bear with me. Anyway, I'm really confused. I'm supposed to convert the first character of the String firstName to upper case. Problem is... I have no idea how to :-/ I've done so much research and reading and still nothing. Please help …

Software Development java
Member Avatar for webmstr
0
194
Member Avatar for restrictment

I really want to add sounds to my programs, but all of the codes I use fail! I am using an empty project in visual c++, if anyone could find a snippet that would work for this, I would be extremely grateful. Thanks! Here is my current code that doesn't …

Software Development c++
Member Avatar for restrictment
0
396
Member Avatar for deftones

Hello, How to generate random non-repeating numbers?

Software Development visual-basic
Member Avatar for crackerjacker
0
82
Member Avatar for drabsch

i need to add code to the form using code like the Controls.Add(). but to add code not a control. any ideas.

Software Development visual-basic
Member Avatar for crackerjacker
0
126
Member Avatar for gogodr

I'm developing a 3D Board Game based on the World of Warcraft miniatures board game. I don't know what's wrong ... the game runs and the system is like this I have a model that can move in a map through Cells I made a procedure so you click and …

Software Development audio c c# c++ storage
Member Avatar for gogodr
0
152
Member Avatar for jk8204

my assignment is to retrieve data from a txt file and output how many tests were input, average of all the tests, and then list the letter grade beside each text what i have so far: [CODE] private StreamReader strRead; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs …

Software Development display file-system
Member Avatar for Alxandr
0
253
Member Avatar for jennwenn25

Hello, I am trying to create a time conversion calculator and I think I have it down but I do not know how to get it to display just one answer per selection. Like I can select 1 and it shows results for 1 and 2 . . or I …

Software Development c++
Member Avatar for mikiurban
0
118
Member Avatar for sanch01r

Hey guys, I am writing an Active Directory Tool and I created a Dictionary<> that iterates through all of the available attributes from the LDAP server. The Keys are the names of the attributes (displayname, samaccountname, gn, sn, etc), the TValues are the associated values to the keys. I am …

Software Development
Member Avatar for DdoubleD
0
177
Member Avatar for nizbit

I need to parse an assembly program. I have no problems parsing a group of instructions or a group of instructions with one loop. For example: [CODE] LD R2, 0(R1) DADD R4, R2, R3 SD 0(R1), R4 DADDI R1, R1, #-8 DADD R2, R2, R4 or Loop: LD R2, 0(R1) …

Software Development assembly python
Member Avatar for nizbit
0
128
Member Avatar for gibson.nathan

ive got most of this figured out. the problem is then when i run, instead of my methods iterating through my array list, they simply reuse the same data set over and over, giving the same results. if anyone can help, it is appreciated. [CODE] /** * Write a description …

Software Development java
Member Avatar for gunjannigam
0
129
Member Avatar for voxis

What is the method to remove dupplicate items from an character array?? A Sample Program is Here which take two arrays merge them and sort them please include some lines that should remove duplicates from an resulted array?? [code] #include <stdio.h> // A simple bubble sort void sort(char data[], int …

Software Development c
Member Avatar for kommuru
0
796
Member Avatar for emilio

hi i have a WinForm with DataGridViewControll. one of the datagrid columns is a DataGridViewCheckBoxColumn. how can i Check or uncheck the Checkbox column of a certain row ?

Software Development
Member Avatar for emilio
0
280
Member Avatar for choosenalpha

Hello Guys, I am trying to code this assignment below but I can't seem to get the running total stored for each user that I have listed below(A, B, E). Can someone guide me on how I can store the running total for each user so that I can have …

Software Development programming-construct
Member Avatar for choosenalpha
0
422
Member Avatar for speedy94519

My code: [code] printf("\n"); printf("\tSlalom Race, Version 1.0\t\t\n\n"); printf("1. Play\n"); printf("2. Instructions\n"); printf("3. Quit\n\n"); printf("Your choice: "); scanf("%d", &choice); } /* Initializes loop to begin game */ while (choice != 3) { /* Begins execution of game and Selects instructions if needed */ while (choice == 1) { printf("You are …

Software Development c
Member Avatar for kommuru
0
83
Member Avatar for gedas

hi guys im creating a dictionary which would show the word and the meaning of the word this is what i have done so far, i created a class called meaning which stores the meaning of the word [code] #ifndef MEANING #define MEANING #include<string> class Meaning { public: Meaning(); ~Meaning(); …

Software Development c++ linked-list
Member Avatar for power_computer
0
158
Member Avatar for neithan

Hi, i'm facing a weird behavior in this code that i just wrote. It was supposed to read a string from stdin and just write it out. I've debugged it and for me it reads perfectly, but in the while (line 38), *p just seems to be taking weird chars …

Software Development c
Member Avatar for gerard4143
0
155
Member Avatar for jaison2

I want to be able to draw an eye for a colour inputted by the user. If the user enters the colour green,brown or blue then the eye should be drwan orelse an error message saying "not a valid colour" should be outputted [code] from graphics import * def drawCircle(win, …

Software Development python
Member Avatar for Kobrakai
0
227
Member Avatar for frankycool

I have an arraylist As such :- products.add( new CarsSubProduct( "FordMustang",1,12,10000 ) ); products.add( new CarsSubProduct( "JEEP",2,10,10000 ) ); I am trying to Edit just the value 12 without altering the value of the other objects but no success.When i use the set method it automatically modifies all the four …

Software Development java
Member Avatar for ~s.o.s~
0
850
Member Avatar for Aiban

I'll keep this simple for now Can a windows (7) gadget be made with python or does some microsoft type development kit need to be used? Thanks

Software Development python
Member Avatar for vegaseat
0
83
Member Avatar for mahela007

Say I've written a function that will take an unlimited number of arguments and store them under different variables. Since the use is able to input any number of strings, it's not possible to give names to all the variables that might be created. So, how would I create variables …

Software Development python
Member Avatar for mahela007
0
111
Member Avatar for Rahyalain

This my problem>>>>if any one can solve it>>> Write a java program that calculates and prints out bills of the city water company. The water rates vary, depending on whether the bill is for home use, commercial use, or industrial use. A code of 1 means home use, a code …

Software Development java
Member Avatar for VernonDozier
0
2K
Member Avatar for tknopriest

OK... so I am pretty new to Java and need some help. I'll try to explain as best I can... I am trying to create a frame that will be a "menu frame" and then based on which option the user picks (JButton) it will then run the version of …

Software Development java java-swing
Member Avatar for tknopriest
0
77
Member Avatar for squigworm

Hello and thank You in advance, I have been struggling quite a bit with this so any help is greatly appreciated. I need to add 3 global variables with an unknown amount of elements to a program. As far as I know and as far as I can find in …

Software Development c++ storage
Member Avatar for squigworm
0
138
Member Avatar for ShailaMohite

Hi, I am create one application in which i use checkedlistbox. In checkedlist box i display all employee name and calculate id of particular checked employees. but how to check which employee's name checked in checked list box and how to compare this employee is checked or selected. Regards, shailaja

Software Development
Member Avatar for sanch01r
0
112
Member Avatar for xacronyx

Hi! Does anyone know how can I make my own defragmentation tool in C# ? (similar with the windows one).

Software Development c c# c++
Member Avatar for xacronyx
0
48
Member Avatar for danibootstrap

Hi, I want to write code for opening an external file or program from the C program.Could anyone tell me how to do this? Say if I want to open calculator.exe I mention the path in the program and it should open it or say if I want to open …

Software Development c
Member Avatar for danibootstrap
0
279
Member Avatar for Wtyy

How to print this pattern use "for" ??? [IMG]http://ser1.share.ysk.cc/upload/photo/20091112/754158.JPG[/IMG] :?::?::?:

Software Development c c# c++
Member Avatar for Wtyy
0
89
Member Avatar for bsewell

Hi all, I'm trying to populate a datagrid as part of a search function for my application. I've tried running my code, which gets executed with no errors but the contents ain't showing up in the datagrid. Please fix this for me :) [CODE]Private Sub Search_Click() Dim dbuser As String, …

Software Development visual-basic
Member Avatar for AndreRet
0
163
Member Avatar for adamsn

Good day all Is it possible to type an exponent in a textbox or a label using VB6? I am currenltly using two textboxes, one for the base and the other for the exponent, by using the tabkey to go from textbox 1 to textbox 2. thanx. N

Software Development visual-basic
Member Avatar for AndreRet
0
799
Member Avatar for siggivara

I've written a method that takes a variable number of arguments. My problem is that the method is supposed to do one thing if there is only one argument, and something different if it recieves multiple arguments. If it's one argument I'm supposed to get info from a global variable, …

Software Development c
Member Avatar for siggivara
0
188
Member Avatar for th3learner

[icode]a = int.Parse(textBox1.Text); b = int.Parse(textBox2.Text); c = a(int.Parse(comboBox1.Text)); textBox3.Text = c.ToString(); [/icode] I am inputing 2 values in a and b ....and through combox1 I am doing calculations Thanks

Software Development c#
Member Avatar for ddanbe
0
111
Member Avatar for bufospro

Hi, I would like to make a database with users. But I take errors in the function Could someone help me please? My code is : [CODE]typedef struct user user; int id2=0; struct user { char name[20]; char last[20]; int id; }; int function(user* users, int id, char name[], char …

Software Development c
Member Avatar for bufospro
0
93

The End.