199,114 Archived Topics
Remove Filter ![]() | |
Right I must first say, this is not homework, if it was, I might have a clue what I am doing. I am currently doing some research and as part of the understanding of the data we have produced I am trying to convolute it. For this I want a … | |
i'm trying to create a code where every content image in my html that is click must display a <div id="credits"> whenever the image is clicked. so the <div id="credits"> must display information in a format where it shows: File Name - image_file_name.jpg File Size - image_file_size (with units of … | |
Hi, This is small c++ guess game, I almost finished it, but when i tried compile it gave me an error: "Cannot open include file: 'stdlib': No such file or directory" is this file part of c++ standard library..? why compiler can't find it? here is my .cpp source: | |
For the final part of our project, we're supposed to: Add the following constant (the file name must match exactly): const string MASTER_FILE_NAME = "master.txt"; 2. Create the file master.txt and add it to your project. The master file must contain account records (one record per line). Each account record … | |
A criticism of the break and continue statements is that each is unstructured. Actually they statements can always be replaced by structured statements, although doing so can be awkward. Describe in general how you would remove any break statement from a loop in a program and replace it with some … | |
Hi all, I've been working on a Java guessing game, similar to hangman which rewards you with a picture using the Gogga class (developed by the people who wrote my IT textbook for Grade 10, also I removed gogga for this website, since I doubt you'd be able to find … | |
what is the script to customise a login. for example if "abc" logs in to the website, how do i get it to display "Welcome abc", if "pqr" logs in "Welcome pqr" and so on... please help! | |
I am totally new to programming and could use some help. I am trying to write a while loop in python that could execute this equation but in a while loop type function. the equation is n * (n + 1) / 2 any ideas? | |
I have a datagrid bound to a sql proc. I have made the last column in the datagrid into text boxes so the items are editable. how do i return the values from these cells? Basically I want to be able to sum the entire column, as well as set … | |
A few days ago I decided to install MySql v1.2.17 and I downloaded a client class library: MySql.Data.dll v5.0.9.0 (by MySQL AB). I included the client classes inside my wrapper class and had it creating, dropping, inserting, and deleting tables..., or so I thought. I guess I never actually looked … | |
Hi, We are taking backups for ldap instances, and with the new requirement would like to keep 1 day's of backup to local disk (/export1) and rest 14 days backup to SAN (/export2). Now we are in kind of fix on how to move the backups ( includes files & … | |
Ideally I'd like to do it with a list comprehension. Something like this [CODE]result = [(key, value)for key in dict.keys(), value in dict.values()][/CODE] but clearly that isn't the right format. Any suggestions? EDIT: This seems like what I want to do, but it doesn't work: [CODE]result = [(dict.keys[i], dict.values[i]) for … | |
Hi, I'm new here. I have been looking around for the last few months. Very new to java and I need help with this assignment. I am to program hangman, I know that this has been asked multiple times. I just cannot seem to find the answers that I need. … | |
Let's start with 1 pipe such as ex: "ls | grep hello" What I'm trying to do is to split the *args[] into 2 that one contains "ls" (left-of-the-pipe command) and the other contains "grep hello" (right command) -> so I can execute the child pipe as producer and parent … | |
I'm getting StringIndexOutOfBoundsException when I try to reasign the value of a variable. [icode]protString = protString.substring(newRPos+1, input.length());[/icode] I understand that this is something I would rather not do... but as I don't know the index of newRPos I can't think of another way to iterate. Thanks | |
Hi, I am comparing 2000 files with one other file. I want the program to go through each line in both files and compare. If the line is present, then it has to write to another file. What I tried was to open both the files and use readlines() to … | |
I am interested in learning python and picked up a friends textbook to try and work through it. I have no cs experience so am pretty clueless. I am having difficulty with one of the problems in the first chapter lol. i am trying to make the program spit out … | |
Hello all, i want to creat a list of an object so i used ArrayList in C# after declaring a class book i declare the array list as follwing: [CODE]private ArrayList mobileStore = new ArrayList();[/CODE] then i have an object of class , say Mobile [CODE]Mobile m1;[/CODE] and finally i … | |
I want to create a menu. The files i have are main.cpp BMI.cpp and BFP.cpp. I want the program to use the BMI.cpp when 1 is pressed and the BFP.ccp when 2 is pressed. Here is my code so far. [CODE] #include <iostream> using namespace std; int main(void) { int … | |
Hi, I want to write a small desktop application which will fetch Live stock price from NSE/BSE or Yahoo finance website. In order to create such application I need the guidance that how shoudl I proceed with? The major problem I am facing is connecting a desktop application with intenet … | |
how do i add an image path to a mysql table of mine which has "product image" as a field. i have saved the necessary images to images folder in root folder as well... please help! ![]() | |
Hi all. pls help me.I repair a program for my need.At that time Text are not appear.Original progarm is here. [code] import java.awt.Color; import java.awt.Dimension; import java.awt.Rectangle; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.io.IOException; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.Timer; public class MarqueeFrame … | |
i’m using javascript, below is the form. If you go to the(A * B / C * D); part of the form. For some reason it does not work…do not know if I have something wrong. But if I were to enter 30 as A, 100,000 as B, 6 as … | |
The reason is that : 1. I wish to run multiple databases on a single server. To do this securely each login must be granted db_owner on the database so we can use "deny view any database" to hide the other databases from view. (login can see all databases they … | |
Hi, I have stumbled on an interesting problem. I have thought 'n' thought, but haven't come up with any good ideas of how to handle this. I have a text file that contains many records, but without the records being seperated. I need to figure out how to seperate these … | |
Is there a way I can display an image, pdf or word doc that is stored in a my sql database? I tried to pull up a word doc with this: [CODE]$sql = " SELECT * FROM user WHERE username = '$_SESSION[MM_Username]' "; $result = mysql_query($sql); while($row=mysql_fetch_array($result)) { $inv=$row['invoice'];} ?> … | |
Just wondering what the difference is. I don't think I need to post my code, but basically for my assignment, I have stubs for a binary search tree. There are nodes created in the constructor, and among them are: Node parent Node predecessor Node sucessor Node right Node left Is … | |
Right, you're going to think I'm crazy but is Association like "Has is" For example: I have 2 classes, Teacher and Classroom, to create association would be: Teacher has a Classroom? Thanks | |
Please help, I don't know why it is not reading the file. I am working in VS C++ 2008, I saved "input_data.txt" in the header files, see below. What is wrong? #include <iostream> #include <fstream> #include <ctime> #include <cstdlib> #include "input_data.txt.h" using namespace std; class Node { public: int x; … | |
When I run my fie and open this one folder, I get this error message Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/ezbiz/public_html/ar/templates/a_settings.html on line 61 Any help will be greatly appreciated. | |
Hello all.. Very new to php and am working on an online strategy game as a precursor to my business websites. I am having a problem coming up with something I thought would be simple. My intention was to have a list of units display on the screen using checkboxes … | |
Hello friends, I am having a problem writing a function to search for a string in an input file. I have successfully output the file with line numbers, which was the first step in the program, but now I am stuck on searching for a given string. After searching for … | |
Hi, I'm a newbie and trying to use javascript to hide or display different divs within a single IFRAME. I can't seem to get the syntax right... the Iframe, ID "frame", has 5 div's which I want to show depending on what link someone clicks. here's the js : [CODE]<script … | |
Hi, I have stumbled on an interesting problem. I have thought 'n' thought, but haven't come up with any good ideas of how to handle this. I have a text file that contains many records, but without the records being seperated. I need to figure out how to seperate these … | |
I get an error trying to parse som XML. The error is [icode]System.Xml.XmlException: Root element is missing..[/icode], and I can't understand why. Here is the code I run: [code=C#] MemoryStream xmlStream = new MemoryStream(); StreamWriter xmlStreamWriter = new StreamWriter(xmlStream); String xml = "<html>\n<body>\n\n<h1>My First Heading</h1>\n\n<p>My first paragraph.</p>\n\n</body>\n</html>"; xmlStreamWriter.Write(xml); xmlStreamWriter.Flush(); XmlReader … | |
hi i have two tables, one is products, the other is for 'discounts' on those products... when adding a new 'discount' i want to avoid adding two discounts to a single product... so i was looking for some sort of Right Join which would exclude all products which have a … | |
Hi, I am having problems with a device bulit by a colleague that needs to be working for Tuesday. If you talk to this device in HyperTerminal it errors all the time as it get the data from the UART too quickly it , he has found a thing call … | |
The code is evaluating a expression tree. My issue is on line 57 when I try to dynamically allocate an array to be used as the nodes in the expression tree, the compiler gives the following error: tree.cpp(58): error: no suitable constructor exists to convert from "ExprNode *" to "ExprNode" … | |
Hello friends, I've tried to install wxwidgets in my mandriva 2009 spring for GUI interaction with python. In the installation instruction it said that i need gtk+ library. So i downloaded GTK+. When i configured GTK+ i got the message checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2.0 >= 2.21.3 … | |
Hello, I am a training developer in .NET and web 2.0 technologies and this one is an exercise from one of our first lessons in PHP: accessing a MySQL database from a PHP script. The problem I've encountered is that while database is thought to be in Unicode (i.e. the … | |
Hi everbody, can anybody give me the code for payment integration for hsbc,paypro. also i need code for xml aparing in php5 thanks shailesh | |
The program runs but has a logic error how can I fix it? and I need to finish the header block on the function, but I don't know how to, can anyone help [CODE] #include <iostream> using namespace std; // Function prototype bool searchList(long [], int, long); // Constant for … | |
Hi, I have an assignment to read mails from Outlook and store them in DB in C# plateform. When I read the attachment File and store its contents in BYTE[] when I run the query to store contents in Database it is throwing EXCEPTION [quote]"An object or column name is … | |
I want to knw whether I can access WAMP 's function (of course mysql) such as export & import programatically. (I am using java) or as mysql commands??? Thanks | |
The programming assignment is to read a text file, extract the words from it, and save them in a 2D array that contains the word and the number of occurrences of that word. For example, if a text file contains the words "first" "second" "third" "second", the array should contain … | |
Hi, This is Ashok from India as I am a student but currently having a training for web development so I made a Job Consultancy Project and face the following problems.... 1. i designed a form on which user can input the information about the candidates and a search will … | |
Hi, Is it possible to upload a file that contains some data and directly save the data in specific fields as in database using php?. this is important as the data retrieved according to their field name. Thank you. | |
Hi, this is one of my hw problems for the week and having trouble writing this code.-- QUESTION: 1. Create a program that will generate a 10 question math quiz for single digit addition. Your program should create 2 random numbers in the range of 0 – 9 and then … | |
[CODE]hi can any one tell me how validation can be done in PHP WITH OUT USINGjavascript[/CODE] | |
Hello, I am currently doing a research at my university about the ways in which we can use multicore CPU to enhance graphics performance instead of putting all the load on the GPU, I am trying to work with both OpenGL and OpenMP and I am planning on using gDebugger … |
The End.