199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for panagosa

First of all i'd like to say hello to everybody. I've been working upon a script and i seem to be facing a problem with a mysql_query. Here it goes: I have 2 tables on my data base and there are some html forms through which tha data is entered …

Member Avatar for MindSter
0
133
Member Avatar for rcmango

I'm quite new to the standard template library, I'm trying to understand how to use them with my code. There may still be some logic errors in my code. However I am trying to sort out my syntax errors. One big one is this: type/value mismatch at argument 1 in …

Member Avatar for rcmango
0
531
Member Avatar for felix001

Im pretty new to python so im still finding my feet.. Ive written a small ftp program that downloads a file but its quite basic in that it gets the last element from the list and then downloads it. What is the easiest way to add some logic so it …

Member Avatar for felix001
0
162
Member Avatar for Smed

Hi, I'd like to find the maximum value in a list but be able to state certain exceptions. For example: if list A=[1,5,3,4] I want to say [CODE]max(A) except index 1[/CODE] which would return '4' as the maximum value. Is there a way of doing this? Thanks.

Member Avatar for TrustyTony
0
126
Member Avatar for mangopearapples

How can I get a single line of text of a textarea? So like if I had "Hello Mellow Yellow" Then line 1 would be Hello and line 2 would be Mellow ect. How can I get that? Something like: [CODE] JTextArea area = new JTextArea(); System.out.print(area.getLineOfText());[/CODE] Thanks.

Member Avatar for mangopearapples
0
2K
Member Avatar for Neversleepin

Hi, I’m trying to code a small program which allows us to select multiple files from a folder and save the content of all files previously selected in one file. The code is very well without GUI (in console). But now I want to do the same with a GUI. …

Member Avatar for Neversleepin
0
2K
Member Avatar for hazyvisions

I can't get images to load.. I always get an error here's my code so far: #pong import os, sys import pygame from pygame.locals import * if not pygame.font: print "Warning, fonts disabled" #-------------------------------------------------------- def load_image(name, colorkey=None): fullname = os.path.join('data', name) try: image = pygame.image.load(fullname) except pygame.error, message: print 'Cannot …

Member Avatar for wanna_develop
0
170
Member Avatar for vasuv

Hi all, We have many number of Procedures/Packages/Functions/Package bodys.In these objects some coulmns contains Hardcoded values.we need to find out the hardcoded values for that particular column.Right now we are doing manually by analyzing the code and find out the hardcoded values. Is it possible to write any shell script …

Member Avatar for griswolf
0
346
Member Avatar for HDRG

What do these errors mean? im new to java.. Exception in thread "main" java.lang.NullPointerException at java.awt.Container.addImpl<Container.java:1041> at java.awt.Container.add<Container.java:365> at OptionWindow.<init><OptionWindow.java:63> at OptionWindow.main<OptionWindow.java:182> please help

Member Avatar for HDRG
0
195
Member Avatar for soapyillusion

Hello all, Just took a JavaScript class, where they didn't teach us anything about slide shows. Now I have a client and I promised them a slide show on their website. I made an external Js file, and Firefox debugger keeps on giving me this error: document[place].src is undefined. Here's …

Member Avatar for soapyillusion
0
102
Member Avatar for DarkLightning7

I am building a text only hangman game and I have gotten it to the final stages as far as I know I only have one problem I can't figure out why my char comparison values are always returning false even though I know that the characters are the same. …

Member Avatar for JamesCherrill
0
260
Member Avatar for Commando123

hi guys. i want to give a button a text but i dont want to write button1.text = 'blabla' becuase i dont know the button name. is there anyway to to call the button by a string for example "button"&I.text = 'blabla'

Member Avatar for Commando123
0
110
Member Avatar for thebluestar

I don't know how to use the onmouseover event the text , then display the image. For example, I have a <p onmousever="">CHECK</p>, then when I move the mouse over the text, the image will display. Please help me!

Member Avatar for AMADH
0
3K
Member Avatar for Josef01

does anyone has a sample code or it it possible to fix error in this code I appreciate any advice the error i get : There was an error parsing the query. [ Token line number = 1,Token line offset = 13,Token in error = user ] cmd.ExecuteNonQuery() [code] Imports …

Member Avatar for Josef01
0
705
Member Avatar for Violet_82

Hi there, it's been awhile :$ I have just completed a small easy exercise which was to create an Account class, providing a constructor to receive the initial account balance, add some money to the initial balance and withdraw some money (providing that the amount of money to withdraw is …

Member Avatar for Violet_82
0
173
Member Avatar for ShadyTyrant

How can I get my editor to expand both horizontal and vertical? I have a simple test application that uses a subclass of a StyledTextCtrl. I create my editor object in a subclass of wx.Frame. [CODE=python] def CreateEditor(self): myEditor = editor.SyntaxControl(self) # subclass of StyledTextCtrl sizer = wx.BoxSizer(wx.VERTICAL) sizer.Add(myEditor, 0, …

Member Avatar for ShadyTyrant
0
473
Member Avatar for sinisterduke

So i made a small game using pygame, and I want to be able to give it out to some friends who don't have python, so I want to make it into an EXE. i've been trying for several hours using several different methods, but nothings seems to be working. …

Member Avatar for tendragons
0
597
Member Avatar for teedoff

Hi I have an application that dynamically adds unordered lists forms as needed, then once the user(backroom) enters values in the form fields, the lists are saved to an action page and displayed. The lists are written to a page called vendorProductList.cfm and written as an unordered lists. Then that …

Member Avatar for teedoff
0
134
Member Avatar for marooh

hi, i wrote an assembly code in my c code but i don't know how to use c declared var in my assembly,if someone could help me :) thx

Member Avatar for marooh
0
110
Member Avatar for Frederick2

Hello Vivayan! Its taken me this long to understand your sophisticated program you gave me using STL (Standard Template Library) iterators, container classes, algorithms, and the works! I’m truly grateful for the time you took to develop this program for me, and it inspired me so much I’ve decided to …

Member Avatar for Frederick2
0
181
Member Avatar for stevanity

Please help me debug this. Ive used a permutation generator class as a dll file. Its not loading. Please help me. Main Project: [code]http://www.mediafire.com/?7glk636ncm49spx[/code] DLL: [code]http://www.mediafire.com/?l41b3l2uaugqmwz[/code] Thanks. I had some problems with strings and stringbuilders. It would be nice if someone could suggest a better solution after seeing my code. …

Member Avatar for stevanity
0
139
Member Avatar for walerhola

The bit of code below is giving me the error: Cannot read from a closed TextReader. [CODE]public static int maxUsers(int logMinute) { StreamReader maxNum = new StreamReader(@"C:\Users\jplishka\Desktop\LoginSorted.csv"); string sortedstrline = ""; string sortedUser = null; string sortedComputer = null; string sortedDate = null; string sortedInTimeSec = null; string sortedOutTimeSec = …

Member Avatar for Mitja Bonca
0
5K
Member Avatar for partz21

[CODE]<?php mysql_connect("localhost","root","root") or die (mysql_error); mysql_select_db("test") or die (mysql_error); $ProductName = $_POST['ProductName']; $Price = $_POST['Price']; $Quantity = $_POST['Quantity']; $Description = $_POST['Description']; $query = "insert into ProductTable(ProductName,Price,Quantity,Description) value ('$ProductName','$Prioce','$Quantity','$Description')"; mysql_query($query) or die ($query); ?>[/CODE] i already review it,i have the database and is also connected and yet the browser is just …

Member Avatar for diafol
0
76
Member Avatar for CobRalf

Hello everybody!! I know that the topic "compiling python script" is a very popular topic, and there are informations about it everywhere on the net. I use windows and want to make a .exe-executable My problem: Everything I found... * is to old * does not work (exe has an …

Member Avatar for tendragons
0
383
Member Avatar for ilikepaste

import urllib.request page = urllib.request.urlopen("http://www.randompickupline.com/") text = page.read().decode("utf8") where = text.find('<p id="pickupline">') start_of_line = where + 18 end_of_line = start_of_line + 150 line = (text[start_of_line:end_of_line]) print (line) This is a basic html import for a text based game I'm writing for fun, and I'm making a dynamic string. However, the …

Member Avatar for ilikepaste
0
203
Member Avatar for ans2007kumar

Guys i am trying to create a shopping cart in php + mysql. I have a page with product and one input button for each one of them. I want that when ever the product button is clicked it stores the data of product and amount in the database "cart". …

Member Avatar for chrishea
0
167
Member Avatar for rssk

hi all.......... 1)~ # free cat /proc/meminfo total used free shared buffers Mem: 62192 32080 30112 0 0 Swap: 0 0 0 Total: 62192 32080 30112 2)~ # free cat /proc/meminfo total used free shared buffers Mem: 62192 32440 29752 0 0 Swap: 0 0 0 Total: 62192 32440 29752 …

Member Avatar for rssk
0
120
Member Avatar for fab2

[ICODE]Hi, I have written the program below and the compiler is not giving any error message and when I run it, the first request for an enter is almost always followed by strange numbers,which I don't know where they come from[/ICODE] [CODE] #include<stdio.h> int main() { int value; int inputs; …

Member Avatar for anirudh33
0
111
Member Avatar for Snader

This code from C++ to Turbo C [ICODE]#include<stdio.h> #include<conio.h> public class Stack { private: int size; int top; int *values; public: Stack(int size) { this->size =size; values = new int [size]; top = -1; } void main() { Stack *myStack = new Stack(10); } }; [/ICODE] what will be its …

Member Avatar for stevanity
0
88
Member Avatar for tcollins412

i am writing a program and i need to increment a table row. How would i increment a table row on the click of a button?

Member Avatar for tcollins412
0
182
Member Avatar for docjon

Using a php to copy a dir and when finished to redirect browser ie 1. print "wait" message in browser. 2. copy the dir 3. finished copy redirect page but noticed if dir is large (ie takes a long time) it is copied but the redirect does not happen, still …

Member Avatar for diafol
0
162
Member Avatar for Hakarune

Ok, so I used to be very good in HTML, PHP, and JS, but it's been a long time since I used it. been trying to make just a simple order form for a friends business. Though I wanted it to do server side validation and emailing... But it doesn't …

Member Avatar for TySkby
0
229
Member Avatar for panagosa

First of all i'd like to say hello to everybody. I've been working upon a script and i seem to be facing a problem with a mysql_query. Here it goes: I have 2 tables on my data base and there are some html forms through which tha data is entered …

Member Avatar for panagosa
0
127
Member Avatar for HeartBalloon

[QUOTE]You said the function returns just a single character yet you are trying to return a character array. You can't have it both ways. What you should have done is [icode]char* getEmpName()const[/icode] -- notice there is a * after char to indicate it will return an array of characters.[/QUOTE] Hi, …

Member Avatar for HeartBalloon
0
382
Member Avatar for Boubakr

Hi... Let's say that we have this: [CODE]somme = raw_input('1 + 1 = ') if somme == 2: print 'Good - Time For Answer: ' else: print 'False - The Right Answer is: 2 -Time For Answer:'[/CODE] So... how can we get the time for writing any things on raw_input()

Member Avatar for richieking
0
167
Member Avatar for MasterGberry

I am having a mental block with this LINQ expression and cannot seem to figure out how I need to convert it to C++. [CODE](var item in inTables.SelectMany(table => table.Items))[/CODE] This code applies to the following piece of code [CODE] foreach (var item in inTables.SelectMany(table => table.Items)) { Trace.Assert(oldDrs.Position == …

Member Avatar for MasterGberry
0
416
Member Avatar for bensewards

Hey guys, This is only my second thread on DaniWeb and I am a beginner programmer. My code looks like this: (really easy to understand and shouldn't need any further explanation besides the fact that I need help understanding why when i give an answer related to the 'else' loop, …

Member Avatar for Fbody
0
605
Member Avatar for Boubakr

Hi... I want to start with PyQt and I don't from where should I beggin !! I'm using Fedora Linux 14 !

Member Avatar for Boubakr
0
77
Member Avatar for Neversleepin

Hi, i'm trying to create a "Save as" frame with my small program. It must open a Save As windows where i could choose the name of the file (txt) that i want to save. Is there any method to do this? i didn't find with google. Thanx

Member Avatar for Neversleepin
0
846
Member Avatar for saransh60

plz see this code [icode] x=raw_input('enter any number :') def adder(d): d=d+1 adder(x) [/icode] in this function when x is passed to function adder ,,is 'x' and 'd' are copy of each other or d is reference of x..

Member Avatar for vegaseat
0
142
Member Avatar for jaylisa75

Hi I am after some code to place on my website. What I need is when someone enters text (their licens plate number) and chose some options then it is displayed on my image. I believe this is called dynamic text on a background image to make a new image. …

Member Avatar for jaylisa75
0
113
Member Avatar for prithvi.web

Hi All, I have made a dynamic form details content table where the data is storing by comma separated values.All the form fields are stored as dynamic in the table. Fields : [CODE]n1_First_name,n2_bank_aaccount,piriod_to,n5_comments_by,n6_like,n7_comments[/CODE] Data: [CODE]nil@nil.com,test1,4-May-2010,test2,no,abc nil@nil.com,test1,4-June-2010,test2,no,abc[/CODE] Now as you see this field "piriod_to" refers to 4-May-2010 and 4-June-2010.....till now its …

Member Avatar for prithvi.web
0
180
Member Avatar for Frederick2

I don’t know why my operator += and operator + string class member functions are taking so long to do their job and are so inefficient compared to the Standard C++ Library String Class. Its not that they don’t work; its just that they are slower by a factor of …

Member Avatar for Frederick2
0
586
Member Avatar for pritaeas

SetAutoSubClass() has been deprecated in newer versions of Delphi. Can anyone tell me what to replace it with ? I cannot find it in the Delphi 2009 OLH, nor in the VCL source (Forms).

Member Avatar for pritaeas
0
142
Member Avatar for sudhirs18

Hi, The program below takes input from user the marks of 10 students in 6 subjects and gives output as: [output] Maths Phy Chem Bio C.Sc Eng Tot Stud_Avg studentname1 10 20 30 40 50 60 210 35 studentname2 20 30 40 50 60 70 270 45 -- -- studentname10 …

Member Avatar for sudhirs18
0
164
Member Avatar for tendaimare

this code works well but somehow it is giving me a warning saying: "Variable 'str1' is used before it has been assigned a value. A null reference exception could result at runtime."How can i remove the warning. [CODE] Public Shared Function getAllColumnNames(ByVal tblname As String) As String() Dim com As …

Member Avatar for Luc001
0
341
Member Avatar for jsefraijeen

Define a method hypotenuse that calculates the length of the hypotenuse of a right triangle when the lengths of the other two sides are given. (Use the sample data in the table below) The method should take two arguments of type double and return the hypotenuse as a double. Incorporate …

Member Avatar for bibiki
0
3K
Member Avatar for kkjay

I need to know how to link (via a regular href anchor on a different page) to content that is inside a tab that is not the default tab. Can this be done? My code will explain hopefully what I require: My Code: The following is my profile_edit.php page: ----------------------------------------- …

Member Avatar for Airshow
0
307
Member Avatar for NewOrder

1) why cant my static function see the class variables and a non-static method can: example: [CODE] class Chess { int columnStart; int rowStart; int columnEnd; int rowEnd; public static void Main(string[] args) { int[] locationMap = new locationMap[4]; columnStart = locationMap[0]; rowStart = locationMap[1]; columnEnd = locationMap[2]; rowEnd = …

Member Avatar for tripleD
0
172
Member Avatar for loken

I am currently working on a project (contact IS) built using openlaszlo and I am using mysql as database... I use JSP as the servlet that will handle the connection to the database and present the information to openlaszlo as XML, however when I try to add a new contact …

Member Avatar for cute_adi
0
4K

The End.