199,114 Archived Topics
Remove Filter ![]() | |
I wrote a code about circle starts to grow followed by finner circles, with each new one disappearing earlier while growing but in my code it is only growing how can I disappear the early one?? I didnt put the main method only classes [code] import java.util.ArrayList; import javax.swing.*; import … | |
Hello all, I'm currently trying to setup a SQL View that's going to be used to pull info from a table and output it onto a label... Long story short the only piece I need help with is having the SQL view remove leading zeros from one column called "Reference". … | |
I have been reading about public key encryption for the past day or2 and got thinking about something, and am hoping someone here can offer some insight. anyways here it goes Since public key encryption is based off of the person sending the info being able to get the other … | |
My program compiles without any errors, however, when I go to run it all I get is a message saying "Welcome to the Payroll Program". From there it does not print anything else nor allows me to enter any information. If someone could please take a look at my program … | |
Hey guys I was wondering if you could provide some help, It is pretty complex for a person who is just starting loops. I have included the problem as well as the code I have below. Please help me, I know their is something wrong with my [B]for[/B] loop as … | |
Hi I am having a problem in the sixth edition on starting out with C++ programming. I need the full code of how to do it cause I am getting errors and dont know what I am doing. The question ask.Write a funtion named coinToss that simulates the tossing of … | |
Ok so this is what I am trying to do but seem to have a problem with my input loop because it keeps reading in only the first set of student data. I am also unsure where to put the cin.ignore because my getline function is not working. Please fogive … | |
Good afternoon, I am currently working on a payroll program for school. I have a question. Here is my code. [ICODE] #Mainline def employee(): global eName global pRate global hWork def Lowest(hoursList): PAYList.sort() lowestPay = hoursList[0] return lowestPay def Highest(hoursList): hoursList.sort() highestPay=hoursList[len(hoursList)-1] return highestPay def Average(hoursList): total=0 for hour in … | |
Create a list of lists to store 3by3 matrix data like 3 5 6 7 8 30 9 6 20 Write a program which consumes this list and returns the list which has the transposed data like 3 7 9 5 8 6 6 30 20 pls help | |
Greetings Please help. I developed a programme in vb6. It refuses to open on Vista. I do not experience any problems with XP. Thank you | |
/** * This method will ask the user for some information, create a blank picture to use as a palette and create and display the palette. */ 186 public static void main(String[] args) { 187 int redValue; 188 Scanner sc = new Scanner(System.in); 189 System.out.print("Enter a Red value: "); 190 … | |
Hi all, I am working on the "Pacman" game and I want to use the "double buffering" technique for animation. By now, I have used this code: [CODE=Java] class GamePanel extends JPanel { public void paint(Graphics g) { // Do some drawing here... } } [/CODE] and there was by … | |
attached is a screenshot of what my table already has for the URL micorosft.com. The column headings are the same as column names. Now, if I do the following statement: [CODE=MYSQL]select * from assign2 where UPPER(keyword1) LIKE '%MICROSOFT%';[/CODE] OR [CODE=MYSQL] select * from assign2 where keyword1 LIKE '%microsoft%'; [/CODE] I … | |
I'm bored, if there's any socket programming that someone needs post a comment, and I'll see what i can come up with. :) | |
Hi, I am attempting to write a query to return whether or not a particular items value entered is the lowest value and also unique. For example, if an item as 6 values against it e.g. user_id item_id value 1 101 3 2 101 3 2 101 4 3 101 … | |
Can you compare strings with if, or do you have to use something else? Can you compare strings at all? Im attempting to write a console program just for fun. Eventually I want it to be able to move around files and such but im not even close to that … | |
Hi, I have a simple code which works well in I.E ,but it is not working in mozilla firefox 3.0..Why is it so. the code is as follows: [code=html] <!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=utf-8" /> <title>Ajax - PHP example</title> </head> … | |
"Define a class Student that has as its members the student_name and a student_idnumber both of type string. Input from the keyboard the number of students in the database, then create a dynamic array of type Student and input the information for each student. Once you populate the database (stored … | |
Hello everyone, i have not posted here in a while. But i have a question about a string class I'm creating. Every time i make a string class this always happens, and i cannot figure out why. Maybe its something i didn't include or something i have to add. But … | |
Hi, I'm new in this forum :D I've started learning C# @ school 1 year ago , and i love it,and it's going very well, now We had 2 lessons of Windows applications in C#, and to be honest i find it much harder than console application. now we have … | |
so i have some code that ive been working on, and dare i say, understanding, involving linked lists, only i've hit a wall I need to add a new structure, called date, so that a day, month, and year, are associated with every node, for rolls, jam, and tea, and … | |
Hi, If i need to use many same components in a window form (let say 20 picture boxes or 20 text boxes), which of the method below is more efficient?? 1. Drag and drop the component 20 times. Configure their properties one by one. 2. Declare array of that component … | |
Hi, I wonder if it's possible to check whether a MySQL DB has updated. e.g. new information is added to a table? and if it detect an update. it will perform search or something else. Main question is if it is possible to listen for changes in the db. | |
Well, I'm new here but you can halp me also. I have pretty big problem. I need to store large text (more than 8000 charaters) in variable inside of procedure and then execute that query with EXEC command. Problem is that varchar supports up to 8000 characters and text and … | |
Hi, I am Mike and run a small law student site, recently I was donated a dictionary and have a glossary system installed on my forum. I am pretty bad with scripting but hope someone can help me along, What I want is to put the dictionary written like this, … | |
Hi, I have a website full of code snippets at [URL="http://syntax.cwarn23.info/PHP:_Contents"]http://syntax.cwarn23.info/PHP:_Contents[/URL] but I need some ideas of small scripts that I can make for the example list. So there are some examples of what I have done at that link but I don't want the examples to be too complex. … | |
What is the FTP server? Please tell me the key of the Renames a file or directory on the FTP server, Changes the current directory to the parent directory on the FTP server? | |
Hey guys, i'm fairly new to ajax, and today discovered that javascript files won't fire within an ajax loader. my problem: i've built a web application using a mixture of javascript, ajax, and html. however this is designed to go on a page that already takes a little time to … | |
I need some help with avg... I am attached files for xml --- I am struggling.... the question i have is : 1. What is the average speed of all the dinosaurs? A. <xsl:value-of select="format-number((sum(dinosaurs/*/speed[@units='mph'])div count(dinosaurs/*/speed[@units='mph']))"/>ft it does not work... or B. <xsl:value-of select="sum(//speed) div count(//speed)" /> or C.9. <xsl:value-of … | |
How to get Ip address and MAC address of system for an IP address i tried this code [icode]echo $ip=GetHostByName($REMOTE_ADDR);[/icode] But after uploading through FTP i'm getting Server ip But i want local system IP can any one solve problem. | |
Hello everyone, i'm an IT student (first year) and i've received a task to make a website for my school (fictional ofcourse). Now i have an idea on how to make it,but after asking my teacher, he said i cant use iFrames but have to use AJAX instead. The code … | |
i am new to php..can anyone help me with the basics of PHP. i mean after installing php,how do i save my first PHP file. i mean saving that file as .php i know ..but in which folder should i save it and after saving how do i run myprogram. … | |
I have created an application. It is a little bit heavy application and i hv tried to minimize the number of functionalities in OnPaint() methods of the various forms. But still my application takes time to repaint the view after it is restored from minimized state. Is there any method … | |
hi all. I want to ch ange my jframe's icon(cup of coffee). i chkd the forum but that's what i m doing... here's my code: [CODE]public static void main(String args[]) { java.awt.EventQueue.invokeLater(new Runnable() { public void run() { AppStarter dialog = new AppStarter(new javax.swing.JFrame(), true); dialog.setLocationRelativeTo(null); dialog.addWindowListener(new java.awt.event.WindowAdapter() { public … | |
I want to add LinkLabel-s at the end of the text in RichTextBox control.I do that with this code: int index = richTextBox1.Text.Length; Point position = richTextBox1.GetPositionFromCharIndex(index); LinkLabel label = new LinkLabel(); label.Text = "whatever"; label.AutoSize = false; label.Location = position; label.LinkBehavior = LinkBehavior.NeverUnderline; richTextBox1.Controls.Add(label); The problem here is that … | |
I need a nonblocking socket so in an older version of the program i made a new thread to do this. and now that ive migrated into visual c++ it crashes with no explination... yea im really aggravated... can anyone tell me why this crashes? [code] #include <iostream> #include <winsock.h> … | |
Hello, this code is throwing and IOException and FileNotFoundException and I am having trouble figuring out why. Where exactly does the song need to go in order for the program to pick it up? Also, is this code for putting the song in the program correct? Thanks! [code] //Hangman a … | |
I have been working on this for a few days now. I'm just trying to make a deep copy of a template linked list. I have successfully copied the list, but when I enter a new item to the new list, it also adds it to the original list. I'm … ![]() | |
I couldwrite a customize JButton in java What I mean by a customize JButton is that I overridden some of it's methods, such as paintBorder, paintComponent. I could write a round,triangle or any other shaped JButton. I wonder how to write a different shaped JFrame, such as round or triangle … | |
You can include cc: and bcc: [ICODE] //filename: html_mailer.php class htmlMailer { function sendWelcomeHTMLMail($email, $age, $sex){ $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= "From: ".EMAIL_FROM_NAME." <".EMAIL_FROM_ADDR.">\r\n"; //define constants $headers .= 'Bcc: [email]email1@msn.com[/email], [email]email2@yahoo.com[/email], [email]email3@aol.com[/email]' . "\r\n"; $subject = "Welcome!"; $message = <<<EOT … | |
Hi all! I have one problem when i try to open exe with shell function it works fine but how can i open XY file using program who is designed to open that file. For example i have picture in mad in corel draw and i want tu open that … | |
While Not EOF(hfile) Line Input #hfile, buffer [COLOR="Red"] Data() = Split(buffer, ",") [/COLOR] i = i + 1 With fghStudentInfo .TextMatrix(i, 1) = Data(0) End With Wend i'm new to VB. can someone help me to understand the command? i want to load the data from .csv to my vb … | |
Hello guys. I am doing a swing application wherein I m using a DefaultTableModel. Here's my code: [CODE] DefaultTableModel tab = new DefaultTableModel(){ @Override public boolean isCellEditable(int r, int c){ //if(c == 10) {return true;} return false; } }; private JTable jt = new JTable(tab); [/CODE] The JTable will diplay … | |
Hi I have 4 questions 1-Is it right that when you learn assembly you learn machine language,too?How? 2-What makes a programming language feature OS dependent? 3-Does Assembly have OS dependent feature?what about HLA? 4-How can i write an OS independent program(bootable programs)? thanks alot | |
[/COLOR][/I]Hi all! I'm quite new with databases. Need some help on the case study below for my assignment: [COLOR="Green"]ABC is a successful business providing design and drafting services to the local construction industry. With rapid growth over recent years, owner Tony Daley can no longer track active projects in his … | |
Hi guys, Just a question I think many people like myself would like to know the answer to. I have been using the Graphics2D class and it works great, however now I want to do some 3D things. I would like to know how to place ellipsoids in 3D space, … | |
I am having problems getting my procedure to read characters recursively to terminate. Can somebody help me here, I am not suppose to use arrays or lists. I have the following procedure: [code=language] void recursive() { char c; cin>>c; cout<<c; recursive(); return; } [/code] I also need to print the … | |
I dabbled in Ruby quite a while ago but only at the console level. I didn't take it any further at the time. I'm now considering treating it more seriously this time, though I'd have to start from the start. My understanding is that Ruby is a cross-platform development language. … | |
I am trying to learn GridBagLayout. I've gotten the hang of it in many respects, but I am having serious problems when the first row has element(s) with a gridwidth greater than 1 or the first column has elements(s) with a gridheight greater than 1. I'm trying to make a … | |
Greetings to all, I am a Computing Science Student and am currently undertaking a final year project. I have done some research on RFID and WAP, but were unable to find a clear answer to the differences between the Radio Wave of RFID standard and WIFI. I wanted to do … |
The End.