199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for KirkPatrick

Alright well I decided I wanted to widen my learning a bit with java and decided I was going to write a program that had to do with networking side of things. It took me a little bit of time to come up with something, so I asked my friend …

Member Avatar for toseo
0
226
Member Avatar for lwaterfo

Hi, How do I change the query below to search in two fields instead of just one? For example, I want the query to search two fields: job_id and jobtype - instead of just job_id. [CODE]$query = "SELECT lastname, firstname, state, zip, jobtype, otherjobtype, nightavail, weekendavail, ptft, resume FROM data …

Member Avatar for hielo
0
72
Member Avatar for QWaz

Hi, I have built an entire site with my localhost on my computer, as you do. and everything has worked fine. I have no issues. and still dont' However, I just uploaded it, and am getting this error: [CODE] Warning: Cannot modify header information - headers already sent by (output …

Member Avatar for QWaz
0
361
Member Avatar for plasticfood

ok i am writing a program that ask for the amount total and amount tender. then i'm supposed to calculate a combined amount of coins and dollars to make up the change amount. i know how to split out the dollar amount, but i'm stuck on how to calculate the …

Member Avatar for jon.kiparsky
0
150
Member Avatar for PhilEaton

Hey guys, I'm trying to mix php and it's not working. I made a form that takes user input and changes the website they input to it's IP address. Next I tried to put that IP as a variable $ip and tried to put that variable in a link(href="") and …

Member Avatar for FlashCreations
0
151
Member Avatar for trustno1butme

Program requirements are as follows: Modify the Inventory Program so the application can handle multiple items. Use an array to store the items. The output should display the information one product at a time, including the item number, the name of the product, the number of units in stock, the …

Member Avatar for fr0styh3rb
0
204
Member Avatar for hazeeel

Please help me to solve the error: coordinates2T[a][b]=-3.7830557977332173 coordinates2T[a][b]=-3.7830557977332173 coordinates2T[a][b]=-3.7830557977332173 Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3 at KateAug24.main(KateAug24.java:137) Press any key to continue... Thanks is adv! [CODE]import java.io.*; import java.util.*; import java.text.*; public class KateAug24{ private static StringBuffer buffer; private static BufferedReader input1=null; public static String [] arrayM1 = new …

Member Avatar for hazeeel
0
124
Member Avatar for Rez11

I am trying to replace "the" with "that". My original sentence is "the ball is under the car". I can successfully change the first "the". But when I try to change the second "the" string1 ends up being "that ball us under that".So it cuts off the world "car". What …

Member Avatar for StuXYZ
0
204
Member Avatar for VB 2012

How can you get to only save all the modified tabs By save i mean save as a text file or open your own savedialog < example :)

Member Avatar for codeorder
0
98
Member Avatar for bpatt22

What are some alternatives to writing [CODE]len(mylist3 & mylist4)[/CODE] within this code? [CODE] mylist1 = [1,2,3] mylist2 = [4,5,6] mylist3 = set(mylist1) mylist4 = set(mylist2) lenresult = len(mylist3 & mylist4) [/CODE] A module i'm importing is unable to use the count() that gets called with the ' & ' operator.

Member Avatar for bpatt22
0
104
Member Avatar for Xzarik

Hey all, I've been having some problem with python - i'm pretty awful at programming but have been soldiering on with this for some time now! What I need to do is take one list and compare it to another. Both lists are presented in rows, and I need to …

Member Avatar for Xzarik
0
157
Member Avatar for Vani3863

Hi All, I'm a relative newbie having trouble completing a program that is required to read the text character by character from a .txt file and to then encode certain characters to something thing else. It is then supposed to be output to a separate .txt What seems to happen …

Member Avatar for Vani3863
0
162
Member Avatar for ceeandcee

Good Morning, I am building a hockey pool site and here is some background on my problem. Our league allows each player to be drafted twice. So we have given each player an A or B listing (ie Sydney Crosby A or Sydney Crosby B). In my database, I have …

Member Avatar for hielo
0
176
Member Avatar for Rajicet
Member Avatar for hielo
0
139
Member Avatar for ceeandcee

I am wondering if anyone knows of a way to post information about the database on the site. What I am looking for is the php code to display the information below. For example: 1) This 'tableXX' in 'databaseXX' has XXX rows. 2) This 'tableXX' was last updated on 'DATE' …

Member Avatar for ceeandcee
0
112
Member Avatar for tehmarto

Hi all, I have a program that loads a dll, uses it for some time and then it unloads it. I have no idea where dll is located or from where it is loaded but I know where dll is unloaded. Loading of the dll is very hardcoded and I …

Member Avatar for tehmarto
0
133
Member Avatar for drizzled42

[CODE]I am a graduating student, taking up BS IT. Unfortunately, i don't have a talent in the field of programming. I have a problem regarding our final project this semester in Software Metrics. Our teacher requires us to have HALSTEAD METRICS PROGRAM to be pass on SEPT. 13 2010. Any …

Member Avatar for coil
0
201
Member Avatar for t_tanweiboon

I am supposed to submit my final year project title within 3days. I think i am finished cause till now,i have totally no clue about it. In our University,no titles are given for final year project therefore, We are supposed to choose wat we are interested in. This make it …

Member Avatar for Rashakil Fol
0
186
Member Avatar for asahmed

Hello, I'm new to Redirections in Apache web server, Can anyone tell me how to do the following: I want to redirect: [url]http://www.domain.com/index.php?product=(variable[/url]) To: [url]http://sub.domain.com/index.php?product=(variable[/url]) Variable is numeric, I only want a 301 permanent redirection from domain to subdomains just for that specific category. Hope someone will help

Member Avatar for FlashCreations
0
91
Member Avatar for effizy

I am new to C++ or any form of programming language. Would appreciate any practical tips on: - approaching problems - techniques on writing codes - rule of thumb for writing codes - fixing errors - how to define and use(call) functions - loop - array - float, double - …

Member Avatar for Jackk123
0
139
Member Avatar for xiansen

i am supposed which accepts a five-digit integer value. my program is then to output the digits, one per line. Each line of output should contain the digit value, its square and its cube. Once I have the program running correctly, modify the program so that it will process as …

Member Avatar for xiansen
0
296
Member Avatar for plasticfood

ok i'm tryiing to convert a double into a string to get the 1st character of that number. [CODE] change = (amountPaid - total); String dollars = Double.toString(change); String firstNum = dollars.charAt(0); [/CODE] i got an imcompatiable type error on that part. change, amountPaid, total are double.

Member Avatar for NormR1
0
51
Member Avatar for ticktock

Hey all, I am trying desperately to create a cube using VBO. I have the correct vertices that must be used yet when I render it, it only displays one part of the face of the cube (which in this case is a half triangle, since a square is made …

Member Avatar for ticktock
0
2K
Member Avatar for oochi

Hi I want to write a loop that will terminate only when the cancel button is hit. I am using a JOptionPane.ConfirmInputDialog(null message1, Title, JOptionPane.OK_CANCEL_OPTION) to display three different messages at a time and the program will terminate once the cancel button has been hit. can someone please help oochi

Member Avatar for NormR1
0
91
Member Avatar for neural_jam

<edit>(scroll down a bit to avoid some rambling and get to the main question!)</edit> Hi there, I'm trying to write a C++ program that repeatedly executes another program (with a system call) that creates a file called 'output', then copies the output into a subdirectory and renames it so that …

Member Avatar for neural_jam
0
168
Member Avatar for shantuli

hello everyone, can anyone please help me to solve the following problem. Write a program 1. To demonstrate division operation handling the arithmetic Exceptions. 2. To Access different elements of the given array: int [] arr1 = {10,69,30,12,11,34,56,78,35} Write exception-handling statements for ArrayIndexOutOfBounds Exception. thank you, regards, shantuli

Member Avatar for coil
0
176
Member Avatar for fr0styh3rb

Hello, I am developing an inventory program in one of my IT classes. So far I have implemented my Camera class correctly, I just need some help configuring my Inventory class. I have underlined the section of my code I am having trouble with. If someone could take a peek …

Member Avatar for coil
0
419
Member Avatar for lordbaddkitty

I'm working with VB.Net. I have imported some data into the Data Set. I have four columns of data. [CODE] [Column 1]This is a test[/Column 1] [Column 2]This is a comma, Test.[/Column 2] [Column 3]This is a double quote " test.[/Column 3] [Column 4]This is a comma, quote " test.[/Column …

Member Avatar for lordbaddkitty
0
540
Member Avatar for Jamesbch

Hello there, I'm developing a server which use epoll to manage the incoming connections. I'm working at the moment on timers and I'm using the [I]setitimer[/I] and [I]sigaction[/I] interface of Linux. It's working well but I've found out that epoll and setitimer conflict each other: I guess they share the …

Member Avatar for Jamesbch
0
329
Member Avatar for y2kshane
Member Avatar for Stefano Mtangoo
0
156
Member Avatar for embooglement

I'm trying to write a to string function that would use std::stringstream to convert the the instance data into a string, but haven't been able to get operator overloading to work with it. As soon as I define a new << operator, I get a bunch of ambiguity errors saying …

Member Avatar for embooglement
0
2K
Member Avatar for low_coder

hey, im making a database program using standard c functions (fopen, fclose...) and i need to read and write data to files quite frequently, so is it better to open (fopen) and close (fclose) the files before and after each operation or open the files at the beginning of the …

Member Avatar for low_coder
0
99
Member Avatar for ultimatebuster

Why do people say isinstance is bad? If I have my own class, named Test, and if I want to check an variable to see if it is an instance of Test or Test's child classes, is using instance() bad?

Member Avatar for TrustyTony
0
188
Member Avatar for aikiart

Good day, I've got a question about why program 19-3 won't display a returning message but program 19-2 will. THIS IS 19-2 // This program demonstrates a simple recursive function. #include <iostream> using namespace std; // Function prototype void message(int); int main() { message(5); return 0; } //************************************************************ // Definition …

Member Avatar for aikiart
0
294
Member Avatar for loll_l

When customers submit bookings on my website [url]http://www.n-v-m.co.uk/Booking.html[/url] most of the time the booking goes through fine but sometimes I get completely blank bookings sent through (even when I know the customer has filled the form out). Does anybody know why this could be happening? It is a very rare …

Member Avatar for FlashCreations
0
165
Member Avatar for gabblesargh

The following code runs, but it only returns the same string, as many counts as the array. I want to return all the objects in the array (values) to the "lblMessage", one by one. Where is my mistake? [CODE] int i; int count; for (i=0, count = [values count]; i<count; …

Member Avatar for peter_budo
0
188
Member Avatar for frankinaround

Hi, im looking for any tips on how to make a program that can move the windows vista mouse icon to different spots + left and right click. So I can tell it to go to this spot and click. can anyone please help

Member Avatar for vegaseat
0
100
Member Avatar for abysss

I am new to thread programming,i basically want to learn how write threads in c++.It would be a great help to me if anyone could guide me through this or provide any tutorial links. thanks in advance sidharth

Member Avatar for abysss
0
145
Member Avatar for perryg30313

I have a vb .NET 2005 form that needs to load data based on a selected month by the user. Because there is a large amount of data in the table (60k+ records per month) it is taking the query a long time to pull the dataset back and populate …

Member Avatar for perryg30313
0
130
Member Avatar for pdk123

Hi , Sorry for this basic question, i am stuck, with somethings, I have a class class A{ int * mem_ptr; } then somewhere in the code: if ( mem_ptr == NULL ) { mem_ptr = new int; } Is it safe to assume that mem_ptr is NULL when the …

Member Avatar for wtf4096
0
149
Member Avatar for lewilaloupe

Hi - new to ASP... I have a form with a dropdown list. Based on what option is selected I want the form to be send to different email addresses. Sample code I have is: [code=asp]<p>Gender: <br> <select name="gender"> <option selected value="">Choose....</option> <option name="gender" value="male">Male</option> <option name="gender" value="female">Female</option> </select> <% …

Member Avatar for hielo
0
173
Member Avatar for sravan953

Hello all, I want to make a Python program which will go to a particular site, login with my credentials, and do a specific task, such as in this case: go to WordPress.com, login, navigate to the drafts section, and add a line to a draft. I believe most of …

Member Avatar for ultimatebuster
0
174
Member Avatar for muppet

We have 3 shifts running at our plant, day 0720 - 1520 swing 1520 - 1120 night 2320 - 0720 I have a table storing the bags packed on each shift, and now need to display the team (tech, packer_l, packer_r etc) with the greatest number of packed bags depending …

Member Avatar for muppet
0
180
Member Avatar for toydiaz

Hi, this script work im Crhome, but not in IE, or Firefox, please help me!! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>teste</title> <script> function idade(object, birthDay){ now = new Date(); bD = birthDay.value.split('/'); if(bD.length==3){ born = new Date(bD[2], bD[1]*1-1, bD[0]); …

Member Avatar for toydiaz
0
144
Member Avatar for phaedrusGhost

Hi all, I am trying to handle an sql query for multiple dropdowns where all won't neccessarily be active. EX: Dropdown1: CITY Dropdown2: STATE Dropdown3: COMPANY BUTTON: GO Need the ability to choose from one, two or all to make a query. Here is what I have now: Above the …

Member Avatar for phaedrusGhost
0
103
Member Avatar for KnifeDarky

Hi everyone, I'm making some kind of game in Python and i need to save random number to text file but i cant. Please help me out. Here is the code: [code]def lvl(): x = random.randint(100,1000) tfile = open("text.txt", 'w') tfile.write(x) input("")[/code] Without x everything is good, but i need …

Member Avatar for snippsat
0
118
Member Avatar for DavidNeedsHelp

Hi All, I'm getting a segmentation fault that I simply cannot understand. I run gdb and get the following message: Program received signal SIGSEGV, Segmentation fault. 0x00000000004a91a5 in BDD::BandB (this=0x7ffffffe4e60, fixedVars=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece. ) at BDD.cpp:550 550 void …

Member Avatar for Fbody
0
185
Member Avatar for gchurch

hey all i'm new to this all and was wondering if anyone can help me solve a prob i'm havin with my project for a booking system. i have a drop down menu with the day, one for months, and finaly year... all the values are real time dates but …

Member Avatar for hielo
0
138
Member Avatar for Aslam Mansoor

I will greatly appreciate, if someone could help me to revert a VB6 Exe. file into Source code file. Cause I have lost my working project as a result of formating my PC. I have a copy of the Exe. file on my Flash memory. Only hope is that to …

Member Avatar for MooGeek
0
1K
Member Avatar for dorien

Hi, I have been reading a number of posts about this, but I have not been able to figure it out. I want to write hex to a midi file. The hex code of the midi file looks like this: [CODE]4D 54 68 64 00 00 00 06 00 01 …

Member Avatar for dorien
0
9K

The End.