64,152 Solved Topics
Remove Filter ![]() | |
Hi, I am trying to make some "a la captcha" it must be simple, but not for me. my code is: [CODE] using System; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; public partial class _Default : System.Web.UI.Page … | |
What i want is when i click upload button upload the file with progress bar [CODE] <form action="image_upload.php" method="post" enctype="multipart/form-data"> <input type="file" name="filei" id="filei" /> <input type="submit" name="button2" id="button2" value="Upload" /> </form> [/CODE] this is my php file [CODE] <?php $name=$_FILES["filei"]["name"]; $size=$_FILES["filei"]["size"]; $type1=$_FILES["filei"]["type"]; $dirpath = "upload/"; //upload image if ((($_FILES["filei"]["type"] … | |
As the Title states I'm trying to Display a Form that has a Listbox Docked to "Fill", theres no problem displaying the form but I want to Display the Items in the ListBox as each line is added to it (in this case the lines are added programatically through the … | |
[CODE]import java.io.*; import java.util.*; class Telefon { public static void main(String[] args) throws Exception { /* IO */ BufferedReader sisend = new BufferedReader(new FileReader("telefon.sis")); // IN PrintWriter valjund = new PrintWriter(new BufferedWriter(new FileWriter("telefon.out"))); // Out int n = Integer.parseInt(sisend.readLine()); // Reading first integer String abi; String abi2; String[] numbrid = … | |
I have a class which extends LinkedList and implements Runnable. I also have a main class which modifies the extended LinkedList. So, the issue is, the LinkedList is being modified by 2 threads: main() in the main thread and run() in the thread which is created from implementing Runnable An … | |
I have a gameboard class: class gameboard extends JInternalFrame In the constructor i have the line: setDefaultCloseOperation(DISPOSE_ON_CLOSE); my gameboards are actually in an array myboards[500] were each is an object of this class. the deal is I want to be able to tell which are open and i want to … | |
G'day all, The program i'm currently working on has a search feature, I want to be able to search a Folder and any Sub-Folders contained within that structure. I'm really confused at the moment as to how i'm going to keep going deeper into a directory and still manage to … | |
Hello, I am building a servlet which handles the login process after the user clicks the submit button on the previous HTML form. The servlet should get the data entered from the form then perform an SQL statement to select all the data in the registered users table. Once all … | |
[CODE]<?php //Start session session_start(); //Include database connection details require_once('config.php'); //Array to store validation errors $errmsg_arr = array(); //Validation error flag $errflag = false; //Connect to mysql server $link = mysql_connect('localhost','root',''); if(!$link) { die('Failed to connect to server: ' . mysql_error()); } //Select database $db = mysql_select_db(shop); if(!$db) { die("Unable to … | |
Hello all. im new to mySQL database so dont know very much so sorry if its a daft question. I have a mySQL database with a company called 5quidhosting but my hosting is with heart internet. Can i get a web page hosted with heart to access the database on … | |
Hello again! I have a new question. I have run a script and wants to run it again with a "keypress" input from the user, how do i code that. Like this: import subprocess drive=input(" If you want to start the script again , press 1: ") if drive == … | |
Heyah Does anyone know how can I change the bacground color of my textfield by using : the commands if & else It's for one of my school assignments but I really can't get to solve it by myself i searched through web but nothing :S We must use the … | |
why this function display [B]sharma[/B] not love on browser [CODE] <?php $a='abc'; define("h",sharma); define("h",love); echo h; ?> [/CODE] and second [CODE] why this will show nothing on browers? <?php $a='abc'; bb(); function bb() { echo $a; } ?> [/CODE] | |
Im trying to solve a ACM problem 10189, LINK: [url]http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=13&page=show_problem&problem=1130[/url] It looks ok to me...but, online judge is showing wrong answer... can anyone help me to figure out the problem. [CODE]#include<stdio.h> int row = 1, column = 1,i=0, j=0, a=0, b=0; char array[100][100] = {0}; int change(int a, int b) … | |
Hello, I have a quick question I want to ask. How can I copy the data from a allocated variable, so that when I free up the allocated variable the copied data isn't erased with it. Thanks, -A2H | |
Java implements pass by reference right? So when I do cons("item", stack) with the following code I should print out --> itemabcd. But that isn't the case, why? String stack = "abcd"; cons("item",stack); System.out.println(stack); // public void cons(String item, String stack) { stack = item + stack; } | |
Hi, I am playing around and trying to understand template singleton class and I accidentally created something that I am surprise it even runs. What I don't understand is when did Apple and Orange instances get created? Could you also comment on the good and bad of the Singleton class … | |
![]() | Hi all, So i basically created a database with an arraylsit. All the data is stored in the arraylist and is added by a stringLine. [B][U]All this is shown in the code[/U][/B] My Database is an Insurance Database. Well basically i'm finding it hard to find out how to actually … ![]() |
Hi everyone, I have quite a problem. I have a text pane and three menu items which are cut copy and paste. In my textpane i have some text and an embedded icon. when i select all the contents of the textpane and click cut all the contents of the … | |
HI Guys I have an issue, I would like to know if anyone can suggest how I can achieve what I want. I have two tables, a user table and a media table. The media table has a FK, User_id , referenced to User.User_id. Table structure User: user_id username password … | |
Hi there , Just wondering if anyopne could help me out with a problem I am having with a update statement. I this error [I] ExecuteNonQuery: Connection property has not been initialized.[/I] I have been at this all day and still can't figure the problem. Hope someone can put a … | |
Hi guys, The following code doesn't compile, and I've been banging my head why. Some header code: [code] template <typename T, typename LESS_THAN> class RestrictedSet { private : int _size; int _max_size; set<T, LESS_THAN> _S; typedef typename std::set<T, LESS_THAN>::iterator tIt; public : RestrictedSet (int max_size); RestrictedSet (RestrictedSet<T, LESS_THAN> &other); ~RestrictedSet … | |
Hi people. :) I'm making a function callback system for a console, so I would dynamically be able to send a function pointer to my console class, and then it would be callable from the console. Well, it works - but only with functions that are not member of a … | |
Hi guys, just playing about with pointers and keywords and to my surprise, this code does not throw up an error... can anyone tell me why? [CODE] int main() { int *P = new int; *P = 50; cout << *P << endl; // output: 50 delete P; *P = … | |
Hi! Basically, what I'm trying to do is a site for online storage of my own files, like Microsofts SkyDrive service. One thing I'm wondering about is what way that would be most effective to organize the files? My first thought was that when I upload the files to the … | |
Hi, I have the problem that a char ch2 = '\u0041' is confirmed as a character and also printed as "A", but the char ch3 = '\u00c6' , which is also confirmed as a character, is not printed only as a "?" where it is supposed to be a "æ". … | |
i am trying to run this code but i am not getting anything from the mysql_fetch_assoc($result) it is just blank can anyone help me thanks in advance [CODE]<html> <body> <?php $host="localhost"; // Host name $username="root"; // Mysql username $password="hayden"; // Mysql password $db_name="ecng3020"; // Database name $tbl_name="students"; // Table name … | |
Hi, Assume I start session and print data stored in session and print some html stuff at the begining of php file. Then I need to use header() to download a file afterwards. When I do it i get this error: [CODE]Warning: Cannot modify header information - headers already sent … | |
Hello again. I was trying to login to my web server protected with basic auth, and after i understood that it would be nice to automatically detect the realm so now i want to know on how to do so. Thanks in advance. | |
I have a query that looks good to me but MySQL does not agree. I am using the DATE_FORMAT function and I do not see what is incorrect so I am hoping some one can point it out. [code] SELECT title, DATE_FORMAT(event_date '%Y-%c-%e') AS event_date FROM event WHERE event_date LIKE … | |
hi, i debug it keeps show: Syntax error in FROM clause. i google and read many website tried remove ' ' from sql line still cannot. can anyone help pls [code] Public Class frmLogin Dim mypath = Application.StartupPath & "\password.mdb" Dim Password = "" Dim conn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\Users\Du\Documents\password.mdb") … | |
How does a property that returns a byte[,] signature have the same parameter types as a function that returns a bool and has a passed byte[,] signature? Here is the command: ...My Documents>csc /target:library /out:CourtneyNumbrs.dll CourtneyNumbrs.cs here is the output: Microsoft (R) Visual C# 2008 Compiler version 3.5.30729.1 for Microsoft … | |
I need an API function that disconnects the computer from internet! does type of connection matter? eg dial up, adsl or.. :) | |
i am making a game in python 2.3.5 and i wanted to know if there is a command that would make it so one sprite will move to another no matter what the position is on the screen. | |
newbie here can anyone help me with C# dealing with RFID and file handling process?? if you have tried this kind of IDEA or codes or something..you can post it here thanks.. | |
This works: -----------PrintInfo.php <?php phpinfo(); ?> -------------------------- But this doesn't: -------------PrintInfo.html <html> <head> <title> Hello World </title> </head> <body> <?php echo 'This is my first PHP web page.'; ?> </body> </html> ------------------------- I'm using Apache 2.0 on WinXP Home with php 5. Thanks! ![]() | |
Hi, It must be a simple issue, but couldn't find any answer googling. Here is the problem: I have a simple test application with a TextCtrl, Button and StaticText. When I press the Button, it must query PostgreSQL with ...[code]SELECT name FROM contacts WHERE name LIKE '%"+TextCtrl.Value+"%'[/code] and return the … | |
I have a little tabbed content window that uses jquery and I have an annoying little problem: whenever I click on one of the tabs, the page resets to the top, so if you click on the last tab, you have to scroll down to see it again. Here's a … | |
hey there, i've been messing around with applying graphics to windows of other applications, using their window handles.. (if that's even possible..). here's my code so far: [code] [DllImport("user32.dll")] public static extern IntPtr GetForegroundWindow(); [DllImport("user32")] public static extern IntPtr GetWindow(IntPtr hWnd, uint uCmd); [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] … | |
hello..i am new to VB.net i know VB i created a button on the form [code] private void button1_Click(object sender, EventArgs e) { MessageBox.Show("neha"); } [/code] i am not getting display .I just get a blank form when i choose start debugging | |
Hello everyone. The problem: I am developing a form that i have to validate some fields against the database. For this particular scenario lets say the Part ID field, I do not want to create a dropdownlist with all part id because is too big. maybe i can let people … | |
I started to program on C++ on converting 8bit binary to its decimal requested for my school project. But i have problem to proceed further as i am lost on what to add on next. Can someone help me to add on to my program to allow it to work.. … | |
Hi....can anyone help me to explain what is the use of isPrime=true; in the last line of this coding..?? I found that it is very important because if i delete it, the answer of the prime number will always constantly 2 and 3.. Even if i put 7 as the … | |
I was working on a game where I have a bunch of enemies. I wanted the game to randomly select which enemy to use but it always picks the same one. Here is the file were I make the enemies: [CODE]using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; … | |
What is the best way to parse the string in C# In java u have a class like Scanner. Is there any equivalent class in c#. | |
how can we use a printf statement without a semicolon??? this was a question asked during an interview of a computer engineering student. | |
When I do the following: [code] s= serial.Serial('/dev/',9600) # or set a function and pass via command line s= serial.Serial(arg1,9600) [/code] The code executes without any error. [b]But[/b], when I use AJAX and POST the parameters to the script [code] def index(req): info = req.form sys.stderr = sys.stdout s= serial.Serial(info['device'],9600) … | |
Hi! I have a dropdown that is populated by a hashtable. THis part is working fine. But, I have to select an option in this dropdown according to information I get from a SQL Query. It's like this: The field in the table can have 0 - 3 0 First … | |
how are you all I want to write a program where when i enter the number For example 10 must give the numbers of Singles 1, 3, 5, 7 and 9 please its important | |
Can someone please help me with this - it's driving me mad. I have a very simple app (at the moment) that stores file names/paths and folder names/paths in an SQL database and displays them in a ListView and TreeView respectively. All fine and dandy. I have an option to … |
The End.