132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for m1dnight

Hi guys! I found a lot of my answers on this webbie, so I registered myself. I'm creating a java based quiz program. Now i'm running into a lot of problems trying to get stuff working. The problem i'm having now is the following: I have a class Question, and …

Software Development java
Member Avatar for JamesCherrill
0
96
Member Avatar for mharriss

I have downloaded a CPAN package 'Clickatell.pm' for use with a CGI script. I have uploaded it to the cgi-bin folder, set the permissions, but I can't get the script to use it. #!/usr/bin/perl use CGI::Carp qw(fatalsToBrowser); print "Content-type: text/html\n\n"; use lib '/websites/123reg/LinuxPackage06/ma/sa/re/masarestaurant.co.uk/public_html/cgi-bin'; package Clickatell; my $catell = Clickatell->new( API_ID …

Software Development perl
Member Avatar for mharriss
0
99
Member Avatar for jnip

Here is my code. Currently I have my information coming out in a message box, but I need need the information to come out in "prose" form. I am not sure where to put it and how to do it. {{ ' applicant details Dim name As String = txtName.Text …

Software Development vb.net
Member Avatar for Alexpap
0
199
Member Avatar for amadain

Hi Folks I have the following code in one of my classes along with checks when the code does not eval: [code]filterParam="self.recipientMSISDN==tmpBPSS.split('_')[3].split('#')[0] and self.recipientIMSI==tmpBPSS.split('_')[3].split('#')[1]" if eval(filterParam): print "Evalled" else: print "Not Evalled\nfilterParam\n'%s'\ntmpBPSS\n'%s'\nself.recipientMSISDN\n'%s'\nself.recipientIMSI\n'%s'" % (filterParam, tmpBPSS, self.recipientMSISDN, self.recipientIMSI)[/code] I am not getting anything to 'eval'. Here are the results: [code] Not …

Software Development python
Member Avatar for TrustyTony
0
81
Member Avatar for ravi-kr

Hi, I am trying to run some simple updates using java in Oracle(10g). I have a simple java program to do it. Running the code using Eclipse IDE. The strange thing about it is that the connection is fine. If I run a [B]select[/B] query, it works fine. However if …

Software Development ide java oracle
Member Avatar for ravi-kr
0
127
Member Avatar for Ca67

Hi I have been working on an assignment and have run into some problems. The assignment is an awk script that splits the shell script into BEGIN and END. In particular, the problem is in the END section with the sorting of a numeric array. I have tried the following …

Software Development shell-scripting
Member Avatar for LordNykon1121
0
118
Member Avatar for phoenix911

ive created an application which multiple users will be using on an intranet... now if i had to make changes to the app(fixes/bugs/etc) after deployment.... what would be the way to go without the user clicking a button to update... the new version would be put on the server, where …

Software Development vb.net
Member Avatar for phoenix911
0
230
Member Avatar for Cap'nKirk

Hi, I am trying to add extra function to a small app that I have made and part of incorporating this is to use radio buttons. Basically a user has to choose between 1 of 2 radio buttons and then press a normal button. I am having trouble trying to …

Software Development
Member Avatar for Alexpap
0
3K
Member Avatar for t_yalthis

I added these three components from tools menu/choose toolbox items; however they are not working when I changed the drive or directory.. here is the code of these three components in case they change private void driveListBox1_SelectedIndexChanged(object sender, EventArgs e) { try { dirListBox1.Path = driveListBox1.Drive; } catch (Exception ex) …

Software Development vb.net
Member Avatar for rhizome
0
870
Member Avatar for Simon180

how would i go about spliting a string that is stored in a StringList ? information in string looks like this: Name RanK now i need to split them so i can use a funcation like this data[0] for Name and data[1] for rank can sumone help me please? thanks

Software Development pascal
Member Avatar for FlamingClaw
0
227
Member Avatar for salgaby

Hey I need help with the math tutor. I need to be able to print out if the answer is right or not . Also let the user enter the number of math problems per set and what the max number will be for the set. If you could please …

Software Development c++
Member Avatar for salgaby
0
199
Member Avatar for fozzywozzy

Hi, What's the best way to round doubles as in currency? I also have this error that says: internal error, cannot instantiate paycheck(java.lang.string, double, double) at paycheck to (). If you need to see the codes, I can post them. Any help at all would be greatly appreciated! Thanks!

Software Development java
Member Avatar for fozzywozzy
0
93
Member Avatar for 05026652

Hey guys, Im having some problems with an exercise that I need to complete with the use of inheritance - In the exercise I am concerned with two Classes (Cupboard and Safe). The cupboard can be opened and closed and tested to see if it is open or not. A …

Software Development java
Member Avatar for JamesCherrill
0
171
Member Avatar for illway

Hey folks, I'm writing a class called Set that can put in objects (ints, chars, whatever) into a dynamically allocated array. I'm having issues with two functions, union() (which concatenates two arrays of the Set class) and intersection() (which puts two arrays together of the Set class at a point …

Software Development c++
Member Avatar for Fbody
0
111
Member Avatar for JRHughes

Hey All, I'm struggling with a project set to me that involves allocating shifts to staff that work within an Event Venue. Basically, staff only work when there are events on. Therefore, I have a database that contains tables showing: - Staff - Events - Shifts (for the above events) …

Software Development pascal
Member Avatar for JRHughes
0
135
Member Avatar for deadelgabar

The program imitates a gambling card game. The program shows you three cards, then the program interchange them, and if you can guess correctly where a particular card is, you win. Here is some sample interaction with the program: Card 1 is the 7 of clubs Card 2 is the …

Software Development c c# c++ data-structure
Member Avatar for caut_baia
0
268
Member Avatar for ceyesuma

hello Is this String from my properties sheet able to become a prepared Statement. is the syntax compatable? [code][b]if the string from properties is i=0 for the array [/b] private boolean createTables(Connection conn) { for (int i = 0; i < schoolofdbTables.length; i++) { boolean bCreatedTables = false; PreparedStatement ps …

Software Development java
Member Avatar for ceyesuma
0
120
Member Avatar for zachattack05

Thanks to you guys I have been able to get my first application halfway going. But I have a question about data integrity. The application that I am developing utilizes a single sql server and multiple work stations accessing that sql server. What is the best way to maintain data …

Software Development sql
Member Avatar for zachattack05
0
98
Member Avatar for olofom

I'm writing a slideshow program with Tkinter, but I don't know how to go to the next image without binding a key. [CODE=python]import os, sys import Tkinter import Image, ImageTk import time root = Tkinter.Tk() w, h = root.winfo_screenwidth(), root.winfo_screenheight() root.overrideredirect(1) root.geometry("%dx%d+0+0" % (w, h)) root.focus_set() root.bind("<Escape>", lambda e: e.widget.quit()) …

Software Development os-x python tkinter
Member Avatar for olofom
0
311
Member Avatar for ollie60

Hi I am having issues populating a vector using "new" where nodeVec is a vector where each entry consists of another vector with 3 elements. zMap is the vector I am trying to populate with the sum of the squares of the first two elements for each entry in nodeVec. …

Software Development c++
Member Avatar for ollie60
0
112
Member Avatar for cutieann12

hello, everyone i had a project which will have a function to resize the images in the picturebox..i've seen some code snippet in resizing the images. The code works fine but it automatically resizes the image when i run the program..what i need is that the user will be the …

Software Development vb.net
Member Avatar for kvprajapati
0
1K
Member Avatar for chipbu

Hi guys, I have this code to mix elements in an array. Basically I want it to exchange the 1st element with the other elements in order. When it finishes exchanging, it will then take the original array and go to the 2nd element and do the same job as …

Software Development
Member Avatar for farooqaaa
0
209
Member Avatar for Ionelul

Hi, I have a little problem with a macro I'm working at. I need to pull data from a database and then show it in an excel sheet. Everything work fine till the moment when I want to close the recordset . Then my application freezes and I have to …

Software Development mssql visual-basic
Member Avatar for vb5prgrmr
0
331
Member Avatar for lotrsimp12345

When i try it goes heywire and gives me 35 errors. all for the erase command. :( [CODE] for(int i=0; i<populationsize_; i++) { //check for black for(int j=answer_->front(); j!=answer_->back(); j++) { if(answer_[j]==population_[i][j]) { feedback_[i][j].push_back("Match"); for(int k=tempanswer_->at(i).front(); k!=tempanswer_->at(i).back(); k++) { //find first instance if(tempanswer_[i][k]==answer_[j]) { tempanswer_[i].erase(k); break; } } } } …

Software Development c++
Member Avatar for lotrsimp12345
0
251
Member Avatar for DayneD89

I'm fairly sure this will be my second thread to make me facepalm when I realise what I've missed, but oh well. If I have a list, for example L=[0,1,2,3,4], can I take the values out so that, again for example, t1 = 0, t2=1, etc.? The easy way would …

Software Development python
Member Avatar for vegaseat
0
156
Member Avatar for kamos.jura

I have a problem with accessing iterator to the vector in following code (just a few important lines): [CODE]class Data { ... vector<double> hodnoty; public: int CompareData(vector<Senzory*> data); ... } class Senzory : Data { ... const vector<double> &GetData(void){return hodnoty;}; //Returns reference to the vector hodnoty ... } int Data::CompareData(vector<Senzory*> …

Software Development c++
Member Avatar for kamos.jura
0
245
Member Avatar for camigirl4k3

the program I had looks like this: def wordToNumber(word): if word == "one": return 1 elif word == "two": return 2 elif word == "three": return 3 elif word == "four": return 4 elif word == "five": return 5 elif word == "six": return 6 elif word == "seven": return …

Software Development python
Member Avatar for TrustyTony
0
131
Member Avatar for supersuper

Hi there, I'm working on a small task to practice my (non-existing) java skills. I'm trying to write a program that reads a text file and replaces every character with a .wav file containing a musical note. A friend gave me some help, and with his help I made class …

Software Development api java
Member Avatar for supersuper
0
105
Member Avatar for thecoolguy

hi, Please can any one help me out with providing me the code to create a windows application in which if a select a folder and a type of file for example if i select .txt file it should copy all the .txt files present in that folder to the …

Software Development
Member Avatar for thecoolguy
0
84
Member Avatar for Cactusmania

Hi guys, I have two richtextboxes that contain text. I want to go through each line and if a difference is found, it highlights that line on both textboxes and it would be good to highlight the difference itself too. I have attached some code I have written. Note some …

Software Development
Member Avatar for Cactusmania
0
186
Member Avatar for Cap'nKirk

Looking on the web there are many, many people trying to sort out how to overcome the INT rounding in programming and now I am one of the many. Having said that there are lots of seemingly good looking answers to the problem, I have not found one that works …

Software Development
Member Avatar for Cap'nKirk
0
117
Member Avatar for bahnini

hello there u said if any body need help u can help them so plz i need ur help with this i did a program in java gui (temperature converter) and i just need the program to print the result in a text file so plz plz plz help me …

Software Development gui java java-swing
Member Avatar for bahnini
0
128
Member Avatar for tones1986

Hey all - I have created an ArrayList as follows: [code]ArrayList<Object> arList = new ArrayList<Object>();[/code] The arraylist contains the following - every time it will have the same data ... either filled or considered ""; String - transaction type String - name String - ssn String - address int - …

Software Development client-server java
Member Avatar for JamesCherrill
0
354
Member Avatar for fredted40x

Hi, Im trying to use a listBox to search some objects, it then adds the object to the listbox if it meets the condition. So far i have this. [CODE]foreach (Order ord in Form1.cutomerArray) { Order searchCust = (Order)Form1.cutomerArray[i]; if (searchCust.FirstName.ToLower() == txtFirstName.Text.ToLower())//if match is found { lstbSearch.Items.Add(searchCust);//add object to …

Software Development
Member Avatar for fredted40x
0
134
Member Avatar for soumya_mjmder

Hi..i am new with xml and xsl. I have the input xml as: <?xml version="1.0" ?> <Employee> <EmployeeDetails EmployeeName="JohnnyWalker" EmployeeId="12345" CompanyName="ABC Inc." CompanyAddress="Bangalore" ContactNo="0000000" /> </Employee> -------------------------------------------- I want the output xml as: <Employee> <EmployeeDetails JohnnyWalker="12345" CompanyName="ABC Inc." CompanyAddress="Bangalore" ContactNo="0000000" /> </Employee> i need to do this using xsl.....can anybody …

Software Development xml
Member Avatar for fpmurphy
0
2K
Member Avatar for blazted

I have a combobox that is populated by a SQL querry. Problem is the first item of the comboBox where normally the comboBox.text go is blank. You have to drop down the menu item for the items to appear. I want to comboBox to populated with the first item in …

Software Development sql
Member Avatar for kvprajapati
0
113
Member Avatar for Teachme

Hello all, I have a problem binding a combobox in a windows form, what i'm trying to do is the following: I need to bind the combobox to a column (ex: customerID) in a dataset. this column is a foreign key. howerver, I want the datasource of the combobox to …

Software Development dataset
Member Avatar for Teachme
0
189
Member Avatar for Stivdion

This program is suppose to read a line of text and find out if its a palindrome or not(a palindrome is a line of text that has the same sequence of letters both forward and backward. but so far its only reading one line. and its not getting it right …

Software Development c c# c++
Member Avatar for Stivdion
0
83
Member Avatar for Lee21

guyz,can you help me in importing an excel file?first the program should be able to browse for an excel file and then,the values in an excel file will be imported to the datagrid and save all the data in the database.. I needed it for my project! hope you help …

Software Development vb.net
Member Avatar for Lee21
0
124
Member Avatar for rkp728

Using visual studio 2008 I created a small vc++ project and ran it using the exe created. The problem is the exe runs fine on my PC. But when I tried to run the exe on an another PC it gave the error "The application has failed to start because …

Software Development c++ visual-studio
Member Avatar for rkp728
0
152
Member Avatar for tarheelfan_08

Hey guys, I am working on creating a dynamic queue and I am having some problems. I got my code wrote to set up the actual code but I am unsure how to put my information in and print it. I need to enter the following information in my queue …

Software Development algorithm c++ queue
Member Avatar for tarheelfan_08
0
183
Member Avatar for jemz

hello can you help me, i make exe file on my project but the problem is that when i separate the exe file in my folder where my project is stored. it will not run..but i want only my exe file and put it to my flashdrive without the folder …

Software Development visual-basic
Member Avatar for jemz
0
228
Member Avatar for Darkicon

I'm writing a program that gathers a list of files within a directory and optionally, every file within the subdirectories (10 levels deep) of the directory then exports it as a text file. I have no idea how to do this so I just attempted to code it myself. It …

Software Development vb.net
Member Avatar for Darkicon
0
104
Member Avatar for realnsleo

Hi guys, i read an article from <http://www.scratchprojects.com/2006/02/sample_article_tic_tac_toe_p01.php> and got this really cool approach for development of Tic Tac Toe (am sure u all know it) in VB. However i am using sharp develop 2.2.1 to edit anf compile my code and it's working fine. I combined all the code …

Software Development vb.net
Member Avatar for kvprajapati
0
209
Member Avatar for davronrshkent

Hi guys i need help in algarithm code. thanks Remove All Occurrences For this problem please start with the code provided in file list_reversal.cpp. Add a new function to this code. The function should take two parameters: a list head and an integer. The function should remove all elements of …

Software Development c++
Member Avatar for VernonDozier
0
92
Member Avatar for ravi1986

This is a blackjack program using array. It works in Devc++ but doesn't work in visual C++.I think I am missing some kind of header files could anyone help me out? my email is .... thanks [code] #include <iostream> #include <ctime> #include<iomanip> #include <string> using namespace std; void deal(int,int&,int& ,int[][2],int&,int[][2] …

Software Development c++
Member Avatar for Lerner
0
2K
Member Avatar for flyingcurry

Beginner in Java. I am trying to find the highest value and lowest value of an array. The highest value works perfectly fine, while the lowest value keeps on giving me 0, even though 0 is not part of the array. Below is the code. Thanks. [CODE] mxm = n …

Software Development java
Member Avatar for moutanna
0
99
Member Avatar for dwayned

Hi Guys, I am currently creating an application to track timekeeping (a clock in/out system) and I am trying to work out the best way to do this. I have a Main Form which contains buttons to ; - Log in - Out for Break - In from Break - …

Software Development mssql vb.net
Member Avatar for dwayned
0
132
Member Avatar for dad45

I have an open source program that I want to use & associate with my New program. Started the new program with FileNewApplication. I then added the unit SerialNGBasic. When compiling I get an error (halts) in procedure TForm1.Button1Click(Sender: TObject); of Unit1/Main form. Any hints? Tks Vern Attached is the …

Software Development open-source pascal
Member Avatar for dad45
0
170
Member Avatar for flyingcurry

Hi, I'm new to Java. Bumped into an error when doing a program. The code below will basically explain everything. This error [CODE]java.lang.ArrayIndexOutOfBoundsException: 15 at randomintegers.main(randomintegers.java:43)[/CODE]keeps on showing up and the program will not execute further. If anyone can help me soon it would be great! Here is my program …

Software Development java
Member Avatar for flyingcurry
0
98

The End.