199,114 Archived Topics
Remove Filter ![]() | |
i m searching for it from last two hrs. but didnt find anything useful.. i hope some reply to this topic..!!! i just need a php script to upload excelsheet data into mysql table..!! thanks | |
[CODE]import Tkinter class converter(Tkinter.Tk): def __init__(self,parent): Tkinter.Tk.__init__(self,parent) self.parent = parent self.initialize() def initialize(self): self.grid() self.labelVariable = Tkinter.IntVar() welcome = Tkinter.Label(self, textvariable=self.labelVariable, anchor="w", fg="black", bg="lightgrey") welcome.grid(column=0, row=0, columnspan=3, sticky='EW') self.labelVariable.set(u"Hello there. Welcome to MAKK's currency converter.") self.entryVariable = Tkinter.StringVar() self.entry = Tkinter.Entry(self,textvariable=self.entryVariable) self.entry.grid(column=0, row=1, sticky='EW') self.entry.bind("<Return>", self.OnPressEnter) self.entryVariable.set(u"Enter currency here.") money … | |
[CODE]public class Getnumbers { private int num1; private int num2; public int getNum1() { return num1; } public void setNum1(int num1) { this.num1 = num1; } public int getNum2() { return num2; } public void setNum2(int num2) { this.num2 = num2; } } [/CODE] [CODE]import java.util.Scanner; public class Case { … | |
Hi, i am trying to validate credit card. I want to validate credit card 1> name on card 2> card number 3> card type (visa,mastercard... etc) 4> cvv 5> expiry date I seared on google but most of links gives information to validate card according to number. How to do … | |
hi I am working on HQL queries and writing an application in Java it is just in development phase so I am using a dummy database. But I am having troubles with displaying result using HQL queries. /** * Displays a report listing all companies that have no departments. */ … | |
Please, I need a code that is capable of preventing SEOQuake from loading on my websites, even if a user has installed the plug-in. For example, Google, Yahoo and Bing implements such feature. I just don't want it to load whenever anybody visits my sites. | |
I need to iterate through a TreeMap. I won't be able to use another collection instead of a TreeMap, I am merely changing some code in someone else's program. Is it at all possible to do this? I'm thinking: [CODE]while (Treemap.hasNext())[/CODE] or something similar. Is this possible in Java? | |
hello, i'm new to this website and well only have a few months of python exp. i decided to make a small, simple rather easy if HUMOR game. When is started, i did not know a whole lot other than how to make lists and scenes and make a way … | |
please, i am havin problems developing a setup file using ms interdev98. Need help urgently. Thanks. | |
i have made a programe of queue in c++ code is : [code] #include<iostream.h> #include<conio.h> #include<stdio.h> #include<stdlib.h> #include<process.h> #define maxsize 5 struct que { int items[maxsize]; int rear , front; }; void insert(struct que *,int); int remove(struct que *) ; int empty (struct que *); void makenull(struct que *); void … | |
I'm trying to run my program but i can't find out why its giving me a segmentation fault. Please Help. [CODE]#include <cmath> #include <cstdlib> #include <ctime> #include <string.h> #include <fstream> #include <sstream> #include <stdexcept> #include <stdio.h> #include <ctype.h> #include <vector> #include <cctype> #include <algorithm> #include <iterator> #include <iomanip> #include <cstdlib> … | |
How could I call function by clicking in the graphics window. I currently have a draw eyes function but i want to be able to call it by clicking on the graphics window and call 30 eyes in the same colour sequence of blue, green and brown? so i could … | |
Hi y´all. I´m more than a little green at this and have been trying to get an understandig of Python. I came across WXPython and decided to try the first program in the tutorial by Fuze I´ve downloaded and installed python 2.6.3 and Wxpython 2.8.10.1. I´ve also got Python 3.1 … | |
Im making a chat application where one client will send a message to ALL other clients who are currently online through server. The problem is that I'm unable to make such a loop which can infinitely send n receive messages using server. Secondly can't we just use PrintWriter and BufferedReader, … | |
These three things are holding me back. 1. The new style class object parameter - [CODE]class MyClass(object)[/CODE] [INDENT]Note that I'M also also not familir with the old style[/INDENT] 2. The [CODE]_init_([/CODE] - constructor, or any constructs for that matter. 3. The [CODE](self)[/CODE] parameter. How is it different from the normal … | |
hi: [code] Module Module1 Public objconcetion As New OleDb.OleDbConnection Public objcommand As New OleDb.OleDbCommand Public Function open_database() As OleDb.OleDbConnection Try Dim route As String Dim cnn As New OleDb.OleDbConnection route = Application.StartupPath & "\" & "video.accdb" If cnn.State = 1 Then cnn.Close() cnn.ConnectionString = "provider=microsoft.ace.oledb.12.0;data source =" & route & … | |
Hey, I got a problem with my multi-threaded application. I have one thread that waits for an event to be signaled, when it happens it calls PostMessage and passes a handle of the main window created by the GUI thread with a custom message I handle in my window message … | |
Hi, I'm new to this and have a quick question. I have a form called register.html and have javascript to check the form validation [CODE=html] <form <input type="submit" value="Submit" onClick="return formValidate()"> </form> [/CODE] so in register.html when user presses submit the formValidate method (javascript) is run. once it returns true, … | |
hi daniweb guys i need to develop a web-based application in vb6. what is the best way to go? And if you don't mind how can i randomly generate passwords in vb6 i.e. like the way they do it in e-mail registration? thanks guys! | |
Hi everybody, I'm trying to write a function that takes in 2 values, a min and a max, that prompts the user to enter a value within that range, and uses 0 as a sentinel to quit the loop. My issue is, I also want the loop to continue prompting … | |
Hi all, i am making a c# window application,in which i am entering marks of students of individual subjects in database. Now, how can i pick these values from database dynamically and draw the pie chart and bar graph of these marks. I want that as i click on button, … | |
I am trying to complete an assignment for an introductory java class and need some help in getting past a "Exception in thread "main" java.lang.NullPointerException at Week5Assignment.PartyStock.main(PartyStock.java:70)" error. I'm sure I've forgotten to initialize something but can't seem to find what it is. Any help that you can provide would … | |
I am trying to read from a text file which of size 1 MB, and contains 5000 lines of data. Following is the code of class which I am using to read from the file [CODE] public class PlayFile extends Timer implements ActionListener{ File filename; BufferedReader out; //float frameid,prev_frameid; public … | |
Hi all , I need the Textbox to display data from the Datagrid according to the columns data i wanted . Like Textbox1.Text = Datagrid Columns (1) I need Codes Thanks. | |
Hi, im trying to calculATE DFT through this code, i dnt know what's wrong please enlighten. Thanks [CODE]#include<conio.h> #include <math.h> #include <complex.h> main() { int m,n,r,N,j; float l,o; float complex x[1000]; float real, imag; { for (m=1;m<=10;m++) { for (n=1;n<=10;n++) { for (j=1; j<=10;j++) N=1000; r=1/N; l=sin(3*j); printf("the value of … | |
I have some code i've written and i need to splita string and assign the results to 2 variables type and value The first part of the string up to the : would the type and what is after the : would be the value When i output the variables … | |
I have a com component that logs error details. I wan't to delete the log files that were created one month back. Where this code has to be written ? I mean it should be run only once when the COM compponent is loaded for the first time. | |
hello guys, I get this error MSG and I can't understand what is the problem with my code. my program consist a menu with 5 options: 1. The program remove double digit from a given number. 2. The program rotate the first number to the right according to the second … | |
Hi, I wan't to add simple web form to my page. name, e-mail, comment, so I started poking around internet and found out about CGI. I put premade cgi.(pearl) script in cgi-bin folder on server and adjusted form for that script: When I tested out my form , i got … | |
Hi, I wrote this sample code to check the integrity of an IBAN (International Bank Account Number) bank account number. (See Wikipedia for further information) Any advice to simplify this? [code=python] # # IBAN_Check.py # Utility to check the integrity of an IBAN bank account No. # Python 2.5.1 # … | |
I need an advice: I have a program made from a person that now it is not available. It is a Java applet; it is perfectly working and I have the sources: 4 Java files of, respectively, 326, 210, 119 and 35 lines (not a big program) and a very … | |
i live in Vietnam, so My English is so bad, but i hope you know what i mean. I want to setup a server that use : Apache, PHP, and Ms SQL server persional edition 2000. But i only can connect Apache 2.0 and PHP 5.x it run ok But … | |
[CODE]int a = 4, b = 3; String code = "a*b+a+2*b"; int result = unknown_function(code); System.out.println(result);//expecting 22[/CODE]Any ideas how to do that please? | |
Hey, I'm new here. Just getting into c++ programming and saw some great resources on this site. I figured out how to print a fully random array, but I need help printing an array like this. 1 2 3 2 3 1 3 1 2 It could be any three … | |
Why is it that if input 1, line 1 isn't deleted in a.txt? [code] x = open('a.txt','r') l = [] q = 0 for line in x: l.append(str(line)) b = "".join(l) print b a = raw_input("Which line do you want to delete?: ") l[int(a)] = "" x.close() x = open('a.txt','w') … ![]() | |
Hi, I have a small FTP class, written in VB.NET 2.0, which keeps polling for a particular file at a remote location, at 2 minute intervals, till it successfully downloads the file, and then it stops. So far I had been using wget as an external process, and recently I … | |
When I run [CODE] $sendURL = "www.example.com"; $fp = fsockopen ($sendURL, "80", $errno, $errstr, 30);[/CODE] I get [CODE] Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/trunk/www/modules/webshop/run/payment/paypal/ipn_listener.php on line 51[/CODE] And when I set $sendURL to "www.sandbox.paypal.com", I get the same warning. I've been looking into this … | |
Hi everybody, My request out here is Urgent, though i have passed through what I could access in this forum and others also, but cannot finding a working solution. I have designed an ASP.NET application, at our organizational intranet, I have used Windows Authentication and it worked very efficiently. My … | |
Hi all, I'm a beginner in jsp and need help in this. How do you write a jsp code to print different colours for different columns in a table of 5 by 5 squares? Any help would be appreciated. :) | |
is it possible to put void function into loop statement? | |
Hello, I've a program that asks a user for four different integer values, and then draws a rectangle on a graph based on those values. I have done everything except now I need to set limits within the program so a user can only use valid values and I'm lost! … | |
Hello, Right now, I am working on a little text-based game in PHP, and I am running into some problems with some functions that I defined. The exact error is this: [b] Notice: Undefined variable: level in C:\Program Files\wamp\www\germ\game_functions.php on line 52 Notice: Undefined variable: exp_cap in C:\Program Files\wamp\www\germ\game_functions.php on … | |
I'm trying to pass "this" as an argument of a constructor. Is there any way can determine what the type of Object "this" is? Thanks.... | |
I am developing a small web site. I have a login Page (login_form.php) from where user has to select there user type from dropdown box values are "Administrator", "Store Keeper", "User". When user select "User" option from list in onchange event I am opening one popup window (depart.php) from which … | |
I was stuffing around and I was wondering if it was at all possible to make a function or method, dynamic at all? In what context? well I would like not to have the specify the elements required by the function so at any given day it can be more … | |
Hi, Am new to shell scripting. Please advise me as to how to write a shell script that checks a set of files under a directory, if the files are not updated/modified today then an alert mail should be sent to certain mail id. Please help. Am new to this … | |
Hi i'm trying to compile this code, but getting warning. need some help to understand what I'm doing wrong. void printGraph(FILE *out, GraphRef G){ out = fopen (out, "w"); if( out==NULL ){ printf("Unable to open file %s for writing\n", out); exit(1); } } warning: passing arg 1 of `fopen' from … | |
Hi I need a help in SQL,There is table called sales.Its contains the day,sales quantity.If I write sql like below [CODE]select day,Sales_quantity from Sales.[/CODE] Then result should be Day SalesQuantity Monday 20 Monday 302 Monday 50 Tuseday 30 etc.. The problem is I want to get result like below Day … | |
I tested /project/pages/page[@completed='n'][not(text())=''] at [url]http://www.mizar.dk/XPath/Default.aspx[/url] with success but the xpath expression below doesn't work in C#. How do I re-write the xpath statement so I can use .Evaluate to return a empty node-set in C#? [code] string xpath = "/project/pages/page[@completed='n'][not(text())='']"; bool not_finished = (bool)xd.CreateNavigator().Evaluate(xpath); [/code] [code=xml] <project> <pages> <page id="1" … | |
[code] float[] x = new float[10000]; float[] y = new float[10000]; int c=0; using (StreamReader sr = new StreamReader("e: \\CuPeak.dat")) { while (!sr.EndOfStream) { string s = sr.ReadLine(); string[] variables = s.Split(' '); x[c] = float.Parse(variables[0]);//run time ERROR in this line " format exception was unhandled" y[c] = float.Parse(variables[1]); Console.WriteLine(x[0]); … |
The End.