64,152 Solved Topics
Remove Filter ![]() | |
Hello everyone, Im new here. I'm not new to web design but a bit new to PHP. I really need some help with this. I have an email script that sends a bunch of user choices to me. The choices ware one or more and are sent to the email … | |
Hi guys~! Consider the following code: [CODE=Java] public void reset(int[] arr) { for (int i=0;i<arr.length;i++) { arr[i]=0; } } [/CODE] I know that regardless of what the actual array is before this method is called it will not change afterward because the method cannot modify it since it is not … | |
Hello, I'm trying to pull data from multiple tables in a single mysql_query and I'm having trouble displaying the data that's pulled. Here's what I've got so far.. the highlighted code is the part that doesn't work. (sorry in advanced for the sloppy code.. i've been copying/pasting stuff all over … | |
I have compiled a project with "Build Solution" in VC++ 2008 Express Edition wich have worked fine all the time. Suddenly without doing any changes nowhere after the last F7 (1 minute ago), I do get this Error message: [B]1>Linking... 1>LINK : fatal error LNK1104: cannot open file 'E:\Documents and … | |
[B]So basically, my JMenuBar has to appear everywhere in my applet (I have CardLayout, 3 cards/screens), in every screen and in the same location (looks nice, consistency). How would I go about doing this?[/B] So, I was making a menu for my applet. I followed the exact instructions at: [url]http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html[/url] … | |
Hi.. I am trying to connect to my database (MySQL) within a JSP page. The is compiling without any error, but still I am not getting any output. Can anybody help?? The code is as follows: [CODE] <%@page contentType="text/html" pageEncoding="windows-1252"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head><title>Enter … | |
Hey guys, here's a simple one: I'm developing a load test suite (for GSM networks) at the moment and i have scripts that create traffic patterns and all that. I am developing a GUI for the test suite that dynamically adjusts the layout and controls which are displayed on a … | |
Hi. I am coding a game for my basic Java programming course, and I am currently coding a game (Othello, aka Reversi). I am having issues with the JButton size. [CODE]public void game () { resize (800, 680); game = new Panel (); Panel board = new Panel (new GridLayout … | |
I have to make an array of Nodes. I have #include "Node.h" as my header file and then in main I am writing the following code Node[] Node_array = new Node[]; but then I am getting errors referring to the above line: error C2143: syntax error : missing ';' before … | |
Hi everyone! I am working my way through some problems from projecteuler.net and came across one that has stalled me. The task is to find the sum of all primes under 2,000,000. I am attempting to use the Sieve of Eratosthenes algorithm for identifying prime numbers. Here is my code … | |
I am using Visual basic 6 I am trying to create a new txt file with the textbox (text1) contents. But instead of calling that text file "Stored.txt" as I currently am doing, I am trying to create the new .txt file with the text from the textbox. Private Sub … | |
[B]Here is the actual homework problem. I am stuck on parts 1 and 2 and I really don't know how to make this right. Any help is greatly appreciated.[/B] 1. Write a C++ program that reads following data from an input file called “in.txt”, And stores them to an array … | |
This is an example from an assignment I'm working on in which we need to validate that the user enters at least 1 Like for the temp.like[3] array and 1 Dislike for the temp.dislike[3] array. I tried using a while statement that said " while (temp.like == "") " or … | |
Hi there I have a form which will delete items from a MySQL database. I'm having one problem though. I'd like to have a confirmation window popup and if yes is clicked then the php gets processed to delete the row out of the database. Is it possible for javascript … | |
Hi, I am pretty new to php. On my site, I have set up a form to store images in a database, it works fine, and the images are stored in there as BLOB files. However, I can't work out how to display the image from the database. I want … | |
[B]How would I implement two listeners?[/B] I need to implement ActionListener and [URL="http://java.sun.com/docs/books/tutorial/uiswing/events/mouselistener.html"]MouseListener[/URL]: I have the [CODE]public class Othello extends Applet implements ActionListener[/CODE] which is just below my libraries. But I also want to be able to use the MouseListener. So, I'm having trouble implementing both listeners. I tried: [CODE] … | |
Hey guys. I wanted to know if someone can tell me what's wrong with my code. I got it to work, to a point. It shows all the months, however, when a user inputs the month/number it ends. Which it needs to playback the month... Example: 2 = March Here's … | |
I'm coding a small test app in C# and I thought it would be real nice to be able to parse the "description" meta tag and also download the favorite icon. I'm not asking for a complete solution but does anyone have any ideas where I should start? Thanks. As … | |
could i get help with the syntex on reading a file to an array in c++. all the examples i see are more ![]() | |
I have to write a JUnit test method for a short program that lets the user add/remove/browse images in a collection. (Adding an image is done with a JFileChooser) The test method that I wrote exhibits some really bizarre behavior; it passes every so often, but fails most of the … | |
I have command line c++ project for my final project of my course. I've decided to go a little further than the course intends and write a class for creating an uncompressed bitmap picture file. As an initial exercise I decided to create the 2x2 pixel bitmap example from Wikipedia. … | |
Hi, I`ve started doing PHP and MYSQL for a few months now and I am working on a project for a friend. Basically I had the code written down in mysql format and decided to change my code too mysqli. Everything was working fine except for one function. I keep … | |
Hi everyone, i'm a final year student doing this project on rfid recognizing system. i'm using a rfid reader with smartcards and vb.net as the software platform for this project. 1. i need a help on how to do coding in vb.net(i'm using 2005). in my system, i'm using hyperterminal … | |
I am trying to strip a prefix from a string, e.g. turn [code] VTK/Examples/Test [/code] Into [code] Test [/code] Sometimes the string does not contain the prefix, in which case I would expect nothing to happen. However, [code] >>> S="Main Page" >>> S.strip("VTK/Examples/") 'Main Pag' [/code] You can see that … | |
![]() | Hi all, I think I have a fairly basic question. I have a matrix and I would like to find the eigenvalues and eigenvector. In both MatLAB and Python (pylab) I can use the eig() function. Can anyone explain the reason for the differing answers? [CODE]MatLAB Code >> A = … |
I have to make an audio player in java applet so that it can be used on websites. It will browse files on the computer, make its playlist and will play them one by one. I have compiled the .jar file and done everything correctly in the <applet> tag in … | |
Hello guys. I made a code , which contains: a Circle and a ball. The ball is moving on the axis of Circle. But I'm using Thread.Sleep(80) , and when i want to close the form , i must press X for 10+ times , and after that i recive … | |
Heya guys, this is my first post - this forum has been loads of help in the past :) Anyway, I am currently coding a program that requests a user's Log In name and password, and then (via a SQL query) checks it against a record in the database, and … | |
Hello, I want to create a sorted list, where I enter a name in two separate text boxes(Jones, Brown) and their values in two other textboxes(200,500), then in a fifth text box I enter one of the names and it gives me a messagebox with its corresponding value. Am I … | |
Hello guys. I made an orbit ( circle ) and a ball. I built the code , like the ball to move on the orbit. But i have a problem with the orbit , because it flash. Is there any option like the orbit to don't flash ? Here's the … | |
hi, i work on a csharp application with sql server ce database and i have this code: [CODE] private void recherchebtn_Click(object sender, EventArgs e) { SqlCeConnection con = new SqlCeConnection(); con.ConnectionString = @" Data source= `|DataDirectory|\Database1.sdf"; try { con.Open(); } catch (Exception ex) { MessageBox.Show("connection failed"); } finally { SqlCeDataReader … | |
Hi, so i was told that i could use the scanf() function, validating it with a space, instead of an "ENTER". [CODE] scanf ( "% [^] d", & a); [/CODE] The person told me to use that. I couldn't get it working. Do you know what is wrong? Extra info: … | |
i have no idea to return multiple statement. [code] public double[] compute(double[] times) { double[] t = this.Portion(times); double aa = this.computeTime(180-19.5,t[0]); double bb = this.computeMidDay(t[1]); double cc= this.computeAs(1 + asrJuristic, t[2]); double dd = this.computeTime(0, t[3]); }[/code] how to return all double " aa, bb, cc, dd" in this … | |
hi i want to know to run php we use localhost as a server....can we use any other server??????or php is server side scripting language thats why we use localhost....but want to know can we use any other server?? | |
I've been altering code back and forth for an hour or so to get my form to send data to a mysql database if a radio button is checked. Right now it is not filling the table. other tables are getting populated. Here is the part of the html of … | |
hi would you please help me in retrieving values related to user select a country then its automatically shows the states name of that country in next dropdownlist and after that it will automatically display the city names respected to that country.. please do the needful.its really very urgent thank … | |
i got a problem wana display my String but it doesnt work here is my code i dont understand why it doesnt print me anything..... [code]class StringDemo { public static void main(String[] args) { String s1,s2,s3,output; s1=new String("hello"); s2=new String("hello guys"); s3=new String("happy birthday"); output="s1 = " +s1+ "\ns2 = … | |
[CODE]import java.io.*; import java.util.*; public class UMUC { public static void main(String[] args) throws Exception { String s1 = "input.txt"; String s2 = "output.txt"; try { FileReader fr = new FileReader(s1); BufferedReader br = new BufferedReader(fr); String lineRead = br.readLine(); while(lineRead != null){ s2 = s2 + "\n" + lineRead; … | |
![]() | I'm new to C Programming ( 6th week of an 8 week course ) and I am working on user defined structures. I have created a structure to store data received from a file and three of the four sub functions planned: open the file, store the data in the … ![]() |
here's my question: write a program that asks the user to type the value of N and writes this picture : N=1 * N=2 ** * N=3 *** ** * here's my work: [code=c]#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { int numOfStars = 0; int count = … | |
I'm trying to program a simple traffic light control using a 8051 micro-controller and assembly language. I use the Multisim application for simulation purposes. I'm having a problem with the timers. I want the red and green lights to be on for 10 seconds and the yellow ones for 2 … | |
I'm having a little trouble understanding saving state data properly. What I have is 3 forms, which go into a summary, and then the user can click on register and register for the seminars. The data is then submitted to a database. Each form has a next and back button. … | |
Hi, Although I have done a reasonable amount of coding I have very little training (self taught) so apologies if this is a stupid question. I have written a basic Defect Management app which allows developers to create a release and assign defects to it. The release object has the … | |
Guys i am looking forward to do a project for my final year and i have chosen SUPPLY CHAIN SYSTEM as detailed below i am now looking forward for ideas and suggestions. here is what i am thinking to do. i what to have a web based inventory system that … | |
i would really like to automate something like ... login to mysql cmd followed by creating a database following by creating tables... with one bat script here is my try: [code] mysql -u root password password; [/code] however it returned me this: [code] C:\Documents and Settings\lih>mysql -u root password root … | |
Hi , I have created a submit button "sbutton" that should take all totals from 3 boxes and if that total is greater than 1, then it should be subtracted from 1 and the remainder is suppose to be displayed as change...this is what i have [CODE]public void actionPerformed(ActionEvent evt) … | |
hi guys, i'm having a bit of a prolem with C++, i've been programming c# for quite a while now, so i am not a novice lol. problem -- i've created the following ofstream in my main method: [CODE]ofstream out1("array1.txt");[/CODE] however later on in the code i call [CODE]out1 << … | |
Hi. Quite a simple question I guess. I have this xml file: [CODE] <?xml version="1.0" encoding="utf-8" standalone="yes"?> <tasks> <subject> <id>123</id> <headline>a big headline</headline> <content>important stuff</content> </subject> <subject> <id>222</id> <headline>even bigger headline</headline> <content>important stuff 2</content> </subject> <subject> <id>333</id> <headline>a small one</headline> <content>important stuff333</content> </subject> </tasks> [/CODE] With C# I have loaded … | |
these are my instructions: [url]http://tinman.cs.gsu.edu/~raj/2010/sp10/lab6.html[/url] this is what I have so far: [CODE] from myro import * from random import * def moveCell(pic1,cell1,pic2,cell2): x1 = 240*((cell1-1)%3) y1 = 240*((cell1-1)/3) x2 = 240*((cell2-1)%3) y2 = 240*((cell2-1)/3) for i in range(240): for j in range(240): pix1 = getPixel(pic1,x1+i,y1+j) r,g,b = getRGB(pix1) color … |
The End.