64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for a007s

I have this program I'm trying to write, a simple application with gui: a menu and a button. Whenever I go to run it, this is the error I get: Traceback (most recent call last): File "/Users/[I]myname[/I]/Documents/School/Programming/Window.py", line 27, in <module> app = Application() File "/Users/[I]myname[/I]/Documents/School/Programming/Window.py", line 14, in __init__ …

Member Avatar for a007s
0
3K
Member Avatar for UaBoy

I am new to this whole programming thing. I am currently using python 3.2. I want to get into trying to build GUI, but i can't find any programs that seem to work with python version 3.x. Should I downgrade to an earlier version of python? If so what is …

Member Avatar for vegaseat
0
279
Member Avatar for NewOrder

This is my array: pieces[2][1]=new Pawn("Bpn1"); pieces[2][2]=new Pawn("Bpn2"); pieces[2][3]=new Pawn("Bpn3"); pieces[2][4]=new Pawn("Bpn4"); pieces[2][5]=new Pawn("Bpn5"); pieces[2][6]=new Pawn("Bpn6"); pieces[2][7]=new Pawn("Bpn7"); pieces[2][8]=new Pawn("Bpn8"); pieces [1][1]=new Rook("BR1"); pieces [1][2]=new Knight("BN1"); pieces [1][3]=new Bishop("BB1"); pieces [1][4]=new King("BKing"); pieces [1][5]=new Queen("BQueen");; pieces [1][6]=new Bishop("BB2"); pieces [1][7]=new Knight("BN2"); pieces [1][8]=new Rook("BR2"); pieces[7][1]=new Pawn("Wpn1"); pieces[7][2]=new Pawn("Wpn2"); pieces[7][3]=new Pawn("Bpn3"); …

Member Avatar for NormR1
0
232
Member Avatar for cac186

I am reading code out of a txt file which contains text in this format.. [text file] Name of Project Experiment One cows, dogs, pigs, horses, sheep, goats 1,1,1,1,20,10 cowweight,dogweight,pigweight,horseweight,sheepweight,goatweight 560,50.5,54.3,641.1,35.4,42.5 deer,elk, moose 2,4,5 etc... [text file] I am trying to read in the numeric values to use for a …

Member Avatar for NormR1
0
381
Member Avatar for dcforshaw

Hi all, I am currently working analysising silicon pixel detectors for the LHC at my university. One thing i have to do is to find clusters of signal in a silicon pixel detector. I have directory of macros which handles the data and getting it ready, not important. My goals …

Member Avatar for dcforshaw
0
185
Member Avatar for Awah Mohamed

hello everyone, i need your help i want to create a php age that work the same as the mobile application"to do !ist" so i want to create to do liat with php and mysql but i really dont know how to start and how it is supposed to work …

Member Avatar for Awah Mohamed
0
120
Member Avatar for Rhuntsman21

I am still learning C# so I am sorry if I do not use the correct terminology. Here is what I am trying to do. I have the following code that I use to check to see if an instance of a form already exists, and if it does show …

Member Avatar for Rhuntsman21
0
117
Member Avatar for hurbano

i have written the following code for an add fucntion for a linked list implementation. when i run it, it runs correctly. when i went to class today, i found i had made a mistake. my add function adds only a student data type, whereas the assignment was to make …

Member Avatar for hurbano
0
148
Member Avatar for awk

So I've just been getting into jquery, been reading some tutorials and I've found myself very confused to do with event delegation/rebinding Basically: User clicks "Show Users" result is retrieved using jquery and is a HTML forms and placed into <div id="listusers"></div> Then when they click the submit button jquerys …

Member Avatar for bonfire89
0
109
Member Avatar for ambikanair

HI, I am currently working on a project to develop a webpage using jsp. I need to include some css properties in the jsp file. But it doesnt work even though I am not getting any errors. My jsp code is [CODE] <% String captcha = (String) session.getAttribute("captcha"); String code …

Member Avatar for peter_budo
0
153
Member Avatar for rebellion346

Hey guys, I need some help with this code I have. I'm running into several issues at the moment. 1 - I don't know what bitwise operators to use for finding the difference of A and B 2 - When the Union and Symmetric Difference calculate, the outputs aren't displaying …

0
82
Member Avatar for mpc123

Hi im looking to echo a result of a query code i have at the moment is connections + [code=php] <?php $result = mysql_query("SELECT SUM(tablefield) FROM table") or die(mysql_error()); [/code] got no idea if this is right, i seem to have got really mixed up with this. Can anybody help …

Member Avatar for d5e5
0
113
Member Avatar for BestJewSinceJC

Hi everyone, I'm in a situation where I would like to have a ServerSocket that listens on a specific port. However, if this port is already taken, I would like to listen on a different port. How can I advertise what port my Java program is listening on, so that …

Member Avatar for masijade
0
142
Member Avatar for ilanpillai

Hi, I am getting the following error when I try to submit registration on my website. Am not able to figure out the issue. Any help is greatly appreciated. Parse error: syntax error, unexpected T_STRING in /home/content/t/h/i/thinkvirtual/html/includes/registration_mail.php on line 3 The code on registration_mail.php is <?php $message="<body> <div align=Â¥"centerÂ¥"> <table …

Member Avatar for ilanpillai
0
173
Member Avatar for ancrawford

Can anyone help me? I'm trying to display a date range from a Saturday to the following next Friday (every two weeks) in an asp:listbox for the past 12 months. I.e., would show something like: 9/11/2010 - 9/24/2010 8/28/2010 - 9/10/2010 8/14/2010 - 8/27/2010 etc... I'm using asp.net c#. Any …

Member Avatar for ancrawford
0
133
Member Avatar for Ana D.

Hi, In my ASP.NET page I have a TreeView where ShowCheckBoxes="Leaf". I want to mark as checked/unchecked all the visible checkboxes by clicking in a button. My code for selecting all/none nodes is like this: [CODE=javascript]function selectAllNone(tvID, value) { var tvNodes = document.getElementById(tvID); var chBoxes = tvNodes.getElementByTagName("input"); for (var i …

Member Avatar for ananthat
0
2K
Member Avatar for gunneronaspooky

I've built my fair share of computers and figured it was time to learn to take advantage of that hardware by learning to program. So I'm taking some courses online. I'm having some issues writing some programs though, so any help would be appreciated. Right now, I'm stuck on this …

Member Avatar for gunneronaspooky
0
133
Member Avatar for christiangirl
Member Avatar for TheSecOrg
Member Avatar for Takeshi91k

This is my first post here on Daniweb and I intend to do things right. I actually did read the "READ THIS FIRST" thread and instead of posting 500 lines of code I whipped up a test program I aptly titled test.cpp First I will walk you through my problem. …

Member Avatar for Takeshi91k
1
139
Member Avatar for captainSheepdog

Hi everybody, I recently created my first full application and have since passed it along to my friend for testing. Unfortunately, on his laptop, the executable, when double clicked, will act as if it is launching, show up in task manager, remain in task manager, but will not launch. The …

Member Avatar for captainSheepdog
0
136
Member Avatar for srice

I'm trying to populate my textboxs with data from my database when the user name is selected but I'm having trouble getting the code right. Help Please! table users (there is a textbox for each of these fields) password lastname firstname Using upcmd As New SqlCommand("SELECT * FROM users WHERE …

Member Avatar for srice
0
153
Member Avatar for kumpul101

Okay, We have a Laboratory Exercise that, asks a user to input his/her name and gives an output of its initial (from the input NAME). example: My name is Dani A. Ona and the output is >> D A O. My instructor said that I will use `CharAt()` ... is …

Member Avatar for tux4life
0
216
Member Avatar for arjen

hello guys..i have a question..Is it possible to make the time running in datagirdview? and also if it is possible to make the update of two form combine in 1 form for example you have a customer form that you save, update in database and another like for employee that …

Member Avatar for SpOOKy.Is.GoD
0
191
Member Avatar for Peter_TARAS

Hi! I am using a label widget in order to display a n rows and m columns matrix. My program allows repeated generation of a random matrix of integer (of arbitrarily number of rows and columns) - I am observing these matrices by representing them in a Label type widget. …

Member Avatar for Peter_TARAS
0
11K
Member Avatar for BigHappyGod

Here's the problem. Bought a new wireless printer, HP B209a. Have a wireless router, Belkin, been using it for years. I take it, the printer, out of the box, follow all the instructions on setting it up, run the setup program in a laptop, following all on screen instructions. It …

Member Avatar for Beat_Slayer
0
497
Member Avatar for daudiam

Suppose B class inherits A. Then the following code works. [CODE]A ob; ob=new B(); [/CODE] but the following throws an ArrayStoreException : [CODE]A ob[]=new B[2]; ob[0]=new A();[/CODE] Is [B]ob[0][/B] a reference of type A or B ? In the first code, [B]ob[/B] was a reference of type A and therefore …

Member Avatar for daudiam
0
57
Member Avatar for new SE

Hi, i want to display several record from database with data type "date"..but when display, the record displayed in datetime format (default)..what should i do to change the format date..i have tried many thing but it does not work.. now, this is mt coding [CODE] <asp:TemplateColumn HeaderText="Expiry date" HeaderStyle-Width="10%" SortExpression="CmpExpDate" …

Member Avatar for Citation
0
103
Member Avatar for Delu:sional

Im pretty new to Python (2.7) and no programming experience before. Anyway Im in the process of learning python but have a mysterious error that I can't figure out. Whenever I put equal sign in print statement, I get syntax error. here's an example code [CODE]def main(): f = open('lines.txt') …

Member Avatar for Delu:sional
0
148
Member Avatar for robertmacedonia

Hi again. I just wrote here to ask for a little help yesterday, so I got the help and worked that out, and I'm just curious about something I am going to do in the following couple of days, as soon as I work the network part of this project. …

Member Avatar for JamesCherrill
0
120
Member Avatar for FlyByNight73

Hi, I have a list of divs with IDs which are just incrementing numeric values. I want to select a subset of those divs with IDs between say 7 and 12, like this: $('.myDivs[ID between 7,12]').doSomething(); Anyone know how to do this? I can't find anything in the jQuery docs …

Member Avatar for FlyByNight73
0
119
Member Avatar for rahulvom
Member Avatar for nore

in my problems, i want to use event keyboard press 'Enter' on textbox, i'm very confuse because in event property from textbox there was Enter, but after I double click and read statement in that, after i test my program, there was nothing , please help thanks before :)

Member Avatar for nore
0
117
Member Avatar for UaBoy

from random import randint correct = 0 for i in range(10): n1 = randint(1,10) n2 = randint(1,10) prod = n1 * n2 ans = input('What's %d * %d? ' % (n1,n2)) if ans == prod: print('That's Right! Well done.') correct = correct + 1 else: print('No, I'm afraid the answer …

Member Avatar for UaBoy
0
126
Member Avatar for LRNPHP

Hi There. Is it possible to use the LOAD DATA LOCAL INFILE command from a crontab or what will the best way be of importing a csv on a hourly basis. Regards

Member Avatar for LRNPHP
0
284
Member Avatar for nikita.chandra
Member Avatar for nikita.chandra
0
60
Member Avatar for ayooshkasmth

Hi, I am trying to print different messages based on what is selected. The selections are stored in a database as $perm, and the options are low, intermediate and high. I am using switch, however i only get the first case printed: [CODE] $low = "Low"; $int = "Intermediate"; $high …

Member Avatar for ayooshkasmth
0
99
Member Avatar for msrd

Hi all, I'm fairly new to VB. I'm working on a Windows forms app that will average a set of numbers, the only catch is that there are 10 textboxes(4 in the example for times sake), and not all of the textboxes could be filled with a number... I know …

Member Avatar for msrd
0
97
Member Avatar for Dante2

Hi I have some homework that I need to get done here. Our instructions are to manipulate an array and add, replace, sort, and change an array as asked. I have gotten pretty much everything done up the the point where my teacher wants me to ADD a Finch to …

Member Avatar for Dante2
0
150
Member Avatar for zachattack05

For the past few hours I have been pouring through hundreds of internet articles, blogs and posts in various forums regarding interfaces. I get a general idea that it is basically a class with no implementation at all...a "skeleton" if you will. I was hoping for an a-ha! moment that …

Member Avatar for embooglement
0
168
Member Avatar for arjen
Member Avatar for msrd
0
90
Member Avatar for brown23

Hey Guys, I just wanted some help on how I can use Javascript's onClick function to allow my visitors to be able to navigate to different paragraphs. So, for example: [CODE]<html> <head> <title>Test</title> </head> <body> <p> <a href="#" onClick="?">Click here to go to Paragraph 1</a> <a href="#" onClick="?">Click here to …

Member Avatar for Airshow
0
271
Member Avatar for hurbano

Ive written this program yet have stumbled upon a problem. in this program, im supposed to make a linked list of students. i must then implement some basic functions. one is to add a student (which i believe is working properly) and another is to getStudent. i believe the code …

Member Avatar for hurbano
0
100
Member Avatar for drostydw

Hey y'all. I hope someone can shed some light on what I am needing to do. Just a little guidance should be good... What I have is an app where an employee slides their id badge and a form captures the long string of data from the magnetic strip on …

Member Avatar for drostydw
0
160
Member Avatar for GooeyG

I had this working before, but I modified it and it stop working. So, I change the code back to when it was working and I'm not getting the same results. Here is what I'm getting. How many employees you want to enter? 3 Enter gross pay for each employee: …

Member Avatar for GooeyG
0
112
Member Avatar for TahoeSands

I would like to write some Java code that will make the mouse "click" somewhere within a 25 by 50 pixel region on the screen. Additionally, I would like the majority of this "clicking" to occur nearer the center of that region (and less around the outside edges of the …

Member Avatar for Ezzaral
0
125
Member Avatar for Meg_Spence

<?php echo "<table>"<table cellpadding='4' cellspacing='3' border='1'>; $query = mysql_query("SELECT orderID, entrytime, advertiser, contactname, contactemail, billingadress, billingcity, billingstate, billingzip, accountexecutive, aeemail, aextphone, accountnumber, contactphone, contactfax, nrirep, nriemail, clientwebsite, clickthroughurl, adelements, campaignreports, additionalinfo, assignedto, workpath, status, submittedby, rev, lastupdate, approved FROM Mickeymouse"); while(list($orderID, $entrytime, $advertiser, $contactname, $contactemail, $billingadress, $billingcity, $billingstate, $billingzip, $accountexecutive, …

Member Avatar for nevvermind
0
101
Member Avatar for TahoeSands

Normally, I post all the information and code snippets that I can muster when asking a question, but this time I will throw "caution to the wind" and just pose the scenario/question... Right now there is an application running and displayed on my screen, the Firefox Web Browser. I want …

Member Avatar for TahoeSands
0
139
Member Avatar for andydeans

hi, i have been trying to work out how to list all the users on the database for my website with a particular access level and also only the user id that the client is associated to however i end up with duplicated users. here is my query so far …

Member Avatar for d5e5
0
99
Member Avatar for PriyaJaiGanesh

[FONT=Arial Black]hai![/FONT] (1)I have problem in deleting a record from a file. I was told that the only way to delete a record from a file is to copy the file to another temporary file and then copy the records to the same file again by skipping the record that …

Member Avatar for snivas519
0
9K

The End.