199,112 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for curtissumpter

I wrote this simple java program to test the repaint mechanism in Java for my Eclipse IDE (not that it works on XCode either). The repaint() mechanism is not repainting, it does not erase the code previous to it in the graphic. It should according to everything I've read. Help …

Member Avatar for toucan
0
3K
Member Avatar for nathenastle

Hi this is nathen can you please some one help me the following is my form what i want is when ever i fill an empty value that is nothis in my text box and when click on shareacoupon button i need a message that empty values are not allowed …

Member Avatar for samarudge
0
123
Member Avatar for aztos

Hi, I'm working on creating my first game to sharpen my programing skills and as a great learning experience for programming in general. I'm using private ints for the stats and was working on get and set methods for retrieving them and changing them and I was wondering if anyone …

Member Avatar for JamesCherrill
0
70
Member Avatar for Rohinir

Hi all, I have set CheckedListbox multicolumn property =true. I wants to add two columns in checklistbox first one will contain Groupname and second column will contain descr . How can i add items in these two columns ?

Member Avatar for Teme64
0
3K
Member Avatar for solocky

Hello all i have (after much googleing) written a php script which when activated appends to a main text file with the text seen below in this exact format type= name=---------------------------------------------------------------------------------------------- # type= name=(USER INPUT HERE) # type= name=---------------------------------------------------------------------------------------------- # what i need is a simple webform with one input …

Member Avatar for solocky
0
153
Member Avatar for misticles

im trying to display the results of a search when users use the drop down menus. ive been at this for 2 wks and cannot get it to work at all. please help :( [ICODE] <?php $programme = $progyear = $subjectname = $examyear = null; //declare vars $conn= mysql_connect("localhost", "root", …

Member Avatar for misticles
0
149
Member Avatar for Stefano Mtangoo

Hi all, I have MP3 player from [url]http://www.premiumbeat.com/flash_resources/free_flash_music_player/multiple_tracks_mp3_player_menu.php[/url] and I want to put it in my page. I want it to appear in every page. I'm pretty new to many PHP stuffs and with PHP page I judt do simple include statement. How do I do that? Here is their …

Member Avatar for Stefano Mtangoo
0
110
Member Avatar for Nawsheen

I am a begginer in vb.net. Actually i am having problems to do my homework. I will be posting both the question and my answer. [B]Question[/B] Create a small program that allows you to enter a number. If the number is greater than 100, you will see the "You win …

Member Avatar for Nawsheen
0
125
Member Avatar for neutralfox

Hello, I am having a null pointer error, don't know where it came out. Can someone check this code for me please: The error is in the sendBytes methods, I have put a comment over there, actually there are two null errors. 1. [code] pw.println(filenm);[/code] 2. [code]out.write(buffer,0,bytes);[/code] Thanks a lot …

Member Avatar for ~s.o.s~
0
201
Member Avatar for cmrhema

Hi, I am learning generics, I want to insert empname, empid and empsalary, I implemented this way using System; using System.Collections.Generic; using System.Text; namespace EmployeeDetails { public class Emp_Details { readonly string _EmpName; readonly int _EmpId; readonly double _EmpSalary; public string EmpName { get { return _EmpName; } } public …

Member Avatar for JerryShaw
0
104
Member Avatar for nimbusania

Hi, I'm having trouble with 'stringBuilder'. this the snippet of code: [CODE]using (StreamReader sr = new StreamReader("file.txt")) { word = sr.ReadLine(); listBox1.Items.Add(word.ToString()); label1.Text = word.Length.ToString(); StringBuilder sb = wr.GetStringBuilder(); [COLOR="Red"]sb.Remove(0,word.Length);[/COLOR] }[/CODE] it gives this error: "Index was out of range. Must be non-negative and less than the size of the …

Member Avatar for thoughtcoder
0
138
Member Avatar for bhanu1225

Hello everyone I have created [COLOR="Red"]Tkinter application on Mac OS X.[/COLOR] [COLOR="Green"]I need to take printout for the output of that program from that application only.[/COLOR] Kindly please give me a valuable response. Regards BHANU

Member Avatar for scru
0
128
Member Avatar for blerina12

Hello guys. I have developed a program which is supposed to read several times from the same file. I have used clear() and seekg() but nothing works. When the file gets open for the second time the program doesn't read anything from it. I would appreciate any suggestions. Here is …

Member Avatar for blerina12
0
213
Member Avatar for number87

ok so I need to use a 2d array to draw a hangman picture for a hangman game. the picture should be something like this ============ |<space>| |<space>O |<space>/|\ |<space>/\ | | but when i run this code with main. i get this = = = = = = || …

Member Avatar for JamesCherrill
0
249
Member Avatar for Nada403

I'm working on my graduation project and within it i need a function gives me random ID numbers and random dates since 2008,01,01 untill now .. I'm done with the ID numbers but i couldnt find a solution for the dates .. how can I do this ????

Member Avatar for Teme64
0
101
Member Avatar for tripes

i am working on a project in vb.net 2003 and i want to get the color of a pixel when i click on the image loaded in the picturebox. i ve tried anything but nothing seems to work.... help please :'(

Member Avatar for Teme64
0
832
Member Avatar for Tank50

Hi I wrote below coding ,and last Message "Test" never appear in my project ,it means while loop never works.Plase tell me what is problem in my coding [CODE] public partial class Form1 : Form { public static int Number_Records; public static DataSet ds; public static DataTable dt; public static …

Member Avatar for djloser
0
221
Member Avatar for bthaxor

hey everyone, i've been using a wordpress blog for a while now, and i recently decided i'm tired of the hassle of having to manage all the plugins, spam comments and updates. i don't know a lot about php either, however i am a web designer by hobby: so i …

Member Avatar for Airshow
0
157
Member Avatar for netwrkengeer

This is my first post, I'm new to programming. I'm trying to update an existing site. Here is my problem, I'm looking to have my textbox submit only when input has been entered. If the box is empty, null or simply has nothing entered I want an astirisk to appear …

Member Avatar for varun allahabad
0
109
Member Avatar for yamster

i wanna know if its possible to set one of my JPanels as my background ?? i have been googling up all day n i only find dat u can attach a .gif as ur background or juz plain colour but haven been able to find anything on this... please …

Member Avatar for JamesCherrill
0
101
Member Avatar for sivak

i am using javascript for validations purpose...i want to know all the functions in javascript ... can any one tell me is there any link to free download javascript book....

Member Avatar for peter_budo
0
89
Member Avatar for xXxWiredxXx

hi.. is it possible.. when i type a letter "S" all the records begins with "S" will be shown or highlighted? its like when you register in a website.. in choosing country section.. thanks

Member Avatar for xXxWiredxXx
0
51
Member Avatar for turbomen

Dear Sir, After finishing the 1st part, I still have many problem of the question. Program Student_millionaire; {$APPTYPE CONSOLE} { } uses SysUtils, OurCrt; Var User_Choice:Integer; Procedure ContestantsList; Begin WriteLn('1 pressed,listing all the contestants...'); ReadLn; End; Procedure Generate10finalists; Begin WriteLn('2 pressed,generating the 10 finalist''s numbers...'); ReadLn; End; Procedure UpdateFinalists; Begin …

Member Avatar for FlamingClaw
0
116
Member Avatar for jda318

I have a form that I am trying to post to a table, everything works fine except for the one multiple select option I have. When it posts to the table, only the last selected option shows. How do I get it to either a. post to separate fields in …

Member Avatar for GameGape.com
0
157
Member Avatar for ning2009

Hi, there my code is below [ICODE] resultlines=[targetlines[0] % dResult['SEC'], targetlines[1] % line1b, targetlines[2] % (section_type,dResult['SEC'],mat_data), targetlines[3] % section_data, targetlines[4] % (math.sin(float(dResult['ANG'])*math.pi/180), math.cos(float(dResult['ANG'])*math.pi/180), 0)] for line9 in resultlines: line9=line9+"\n" binf.write(line9)[/ICODE] , which generated the format with empty lines below *beam section,section=I,elset=UC356X368X202,material=STEEL 0.1873,.3746,.3747,.3747,.027,.027,.0165 1.000000, 0.000000, 0.000000 *element,type=b31,elset=LCHS965-14-3 39,3490,1612 *beam section,section=PIPE,elset=LCHS965-14-3,material=S355 0.4825,.0143 …

Member Avatar for amitattri1987
0
415
Member Avatar for halfnode

hi all, me again, i need to create an array within a function but somehow i'm getting errors. anyone can enlighten me? [code=cplusplus] string TravelVoucher::exchange(int i) { const int tix = 3; TravelVoucher::exchItems[tix]={"Dinner for TWO at BestFood Restaurant", "Buffet for TWO at EatTillDrop", "Ticket for TWO for Singapore Flyer", "High …

Member Avatar for siddhant3s
0
150
Member Avatar for badboizEnt

i have a program, which uses a password inputation but when i made the password encrypted. when inputting my password which now appear as star(***) due to encryption. trying to delete a character but backspace is being read as a character. please can someone show me the way forward... thanks …

Member Avatar for way29
0
1K
Member Avatar for orcsoul

My brain has just switched off on me... have an easy program to write for a C++ class that involves a for loop with a running total, but my brain has shut down on what needs to be put into the for loop to complete the program. The program needs …

Member Avatar for siddhant3s
0
535
Member Avatar for #include_rose

Hey guys, I have implemented the Knuth Morris Pratt algorithm and wanted to share the C code with all of you. If you feel it can be optimized please let me know. Feel free to play with it or use it for your school work :icon_biggrin: *************************KMP****************************** [code=c] #include<stdio.h> #include<string.h> …

Member Avatar for jephthah
0
213
Member Avatar for JimD C++ Newb

Good morning, all! As the title suggests, I am having a syntax error. I'm using Notepad++, and I don't seem to be missing any curly braces. Is there somthing else I'm missing? Thank you [code] <?php session_start(); include('header.php'); if((isset($_GET['movie_users_id'])) && (is_numeric($_GET['movie_users_id']))) { $movie_users_id = $_GET['movie_users_id']; } elseif ((isset($_POST['movie_users_id'])) && (is_numeric($_POST['movie_users_id']))){ …

Member Avatar for vicky_rawat
0
181
Member Avatar for kurraboy

Hi there, I have a problem in FireFox, whereby a Javascript function only works if I make the first line of code an alert() statement. If I take out the alert() statement, the following code doesn't work. Any ideas ? The alert() statement I am talking about, is the first …

Member Avatar for essential
0
136
Member Avatar for bsdpowa

Can anyone help me with Kuskal and Dijkstra algorithms in C#? I have no idea where to start. Any tips?

Member Avatar for Ramy Mahrous
0
124
Member Avatar for Debangana

Hi I am trying to ftp files from a windows server to a unix machine. When I login with the required credentials into the windows server , I want to make sure that the login directory is the correct one else I should change directory before initiating the ftp process. …

Member Avatar for ghostdog74
0
119
Member Avatar for tivrfoa

Hi! I'm using IDLE. [CODE]Python 3.0.1 (r301:69561, Feb 13 2009, 20:04:18) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> test = 1 >>> if test: print "ok" SyntaxError: invalid syntax (<pyshell#2>, line 2) >>> [/CODE] Does someone can help me? Thanks.

Member Avatar for tivrfoa
0
173
Member Avatar for vizy

Hi Guys, I am in situation.. where I need to Convert List of Class objects to DataTable. for example : - Class Product - ProductId,ProductName,Description,Price are the Product class's get/set properties. - I got List<Products> - this need to DataTable any help would be great... Thank you

Member Avatar for JerryShaw
0
671
Member Avatar for CS Lover

Iam trying to show some results from database - multi results - on JSP page using struts, already did the servlet code to fetch the data as follow : [CODE] private void manage(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ ArrayList cats = new ArrayList(); PrintWriter out = response.getWriter(); try{ db.rs …

Member Avatar for CS Lover
0
179
Member Avatar for smb3d

Hi, I've written a python cgi app that lists image files in a directory then when the user clicks on a link it converts the image to a .jpg and displays it in a simple html page. I'm using tempfile.NamedTemporaryFile to create a temp file that the converter can write …

Member Avatar for smb3d
0
153
Member Avatar for xXxWiredxXx

is there a way to add the value of two rpttextbox to rptfunction (Sum)... is that possible? i need to get the sum of two rpttextbox and show it to rptlabel or rptfunction. or two rptfunction to a label or rptfunction(sum)

Member Avatar for xXxWiredxXx
0
83
Member Avatar for Crinkly

Can the edit wizard be altered to allow more than 4 packs to be used? Now more of us use large screens more than four can be useful.

Member Avatar for Crinkly
0
81
Member Avatar for max.yevs

i made another extremely simple script, but i've looked through all the random python commands(10.6) and can't figure out how can i write a nonunique random script? as in all the random numbers can be the same? like random.sample? say i have a list [1,2,3,4] and i want to pick …

Member Avatar for max.yevs
0
128
Member Avatar for ViRiPuFF

Hi I have just uploaded an Access DB and an .aspx page that writes to the DB. It works fine locally ie IIS. The problem is that when on the host the db does not get written to. I think its to do with the Source to the DB on …

Member Avatar for ViRiPuFF
0
214
Member Avatar for macfi

Hi All I am a bit of a begginer in PHP. How do I store multiple vales in a cookie? I am going along the lines of: [code=php]$data = array('apple'=>'green', 'orange'=>'orange', 'banana'=>'yellow');[/code] then something like (not sure about the sytax here):: [code=php]$var=implode($data); setcookie('data', $var, time() +3600);[/code] Basically how do I …

Member Avatar for macfi
0
4K
Member Avatar for max.yevs

yet another quick question... I wrote this at the end of a script [code]y = 1 n = 0 i = input("Again? Y/N: ") if i is 0: print ("Good bye!") exit if i is 1: execfile ("program2.py")[/code] now of course if i is 0, they won't be able to …

Member Avatar for adam1122
0
108
Member Avatar for kev smith

I am new to using matlab I am trying make a network which has 20 inputs and one output, when i run the code it says : "Error using ==> network/sim Inputs are incorrectly sized for network. Matrix must have 39 rows. " and points to the line NNA=sim(NN,I) Below …

Member Avatar for ozzybee
0
145
Member Avatar for sciwizeh

Hello, the game development forum seemed the best place to ask, because it seems to be the only place where people might be using a 3D modeling program... if you have a better place for this to go please tell me. I've been thinking out a way to write a …

Member Avatar for sciwizeh
0
219
Member Avatar for txwooley

I am working on a function to find the slope of a line if given x1, y1 and x2, y2. Not too hard. But I need the results to be floating point not integers even though the x and y inputs are integers. I have : [code=python] def slope(x1, y1, …

Member Avatar for txwooley
0
134
Member Avatar for BruenorBH

I am trying to create radio buttons in Dev-C++ using C. I am new to Win32 API programming also. What I have done so far is create the main app window, added textboxes, check boxes and a few radio buttons. The only issue I have now is that You cannot …

Member Avatar for BruenorBH
0
315
Member Avatar for neutralfox

Hello everyone, I am currently learning assembly language and I am using MASM 615 but I don't like the interface, can someone recommend me a good assembler. The assembler should make the same work as MASM 615 . Which assembler is easy to use and have intellisense if possible. In …

Member Avatar for neutralfox
0
203
Member Avatar for ktunisia

Hi to all I need some help to write a java program to parse 2 text file one containing the details of the database and the other the data that will be used to insert in the tables of the database A sample for the first file : schema : …

Member Avatar for ktunisia
0
112
Member Avatar for jworld2

I have been looking for a way to compile my [B]whole[/B] program into a single executable file that can be run completely by itself. That also includes any image files that my program uses. Something like when the executable is run, all extra files are extracted into a temporary directory …

Member Avatar for jworld2
0
133

The End.