199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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 … | |
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. | |
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. | |
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. … | |
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 … | |
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 … | |
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 | |
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 … | |
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. … | |
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' | |
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! | |
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 … | |
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 … | |
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, … | |
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. … | |
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 … | |
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 | |
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 … | |
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. … | |
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 = … | |
[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 … ![]() | |
![]() | 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 … |
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 … | |
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". … | |
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 … | |
[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; … | |
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 … | |
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? | |
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 … ![]() | |
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 … | |
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 … | |
[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, … | |
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() | |
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 == … | |
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, … | |
Hi... I want to start with PyQt and I don't from where should I beggin !! I'm using Fedora Linux 14 ! | |
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 | |
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.. | |
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. … | |
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 … | |
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 … | |
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). | |
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 … | |
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 … | |
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 … | |
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: ----------------------------------------- … | |
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 = … | |
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 … |
The End.