64,152 Solved Topics
Remove Filter ![]() | |
[code] this is the simple program that i write import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.JFrame; import java.awt.FlowLayout; public class ShowFlowLayout extends JFrame { public ShowFlowLayout() { setLayout(new FlowLayout(FlowLayout.LEFT,10,20)); add(new JLabel("firstname")); add(new JTextField(10)); add(new JLabel("MI")); add(new JTextField(10)); add(new JLabel("Lastname")); } public static void main(String[] args) { JFrame frame=new JFrame("ShowFlowLayout"); frame.setSize(400,500); frame.setLocationRelativeTo(null); … | |
Hi So story goes, Ive recently started hashing user passwords to protect access, but have come to a bit of a problem in that if a user forgets their password, Im unable to retrieve it for them, because all I have is the salted-md5 hash? How has everyone else overcome … | |
Hello guys, I am doing a small C/C++ program(mainly for use in my father's work - Includes a batch processing inside a folder which is repetitive). I just need to find the number of files in a folder(not necessarily of a single filetype). What I thought was using [ICODE]system("dir > … | |
Im very new to php, but im trying to create a bit of code that you type in the part number and quantity you want and it returns the part number and the word "limited" if its the same "not enough" if it's less than and "in stock" if its … | |
I've got an open connection with a stream reader pulling data in to my system and storing in a database. Everything works great, except occasionally the stream from the remote server stops and this makes my program crash. How can I catch this situation when it occurs, and maybe attempt … | |
though i'm calling pr() function in the subclass after calling the get_details() function(which assigns value to name) it doesn't print the current value of name. My question is if i want to print the value of name in the subclass what should i do???? I've tried in many ways using … | |
Hi frnds... here i m doing search for my website... [CODE] $mcat='abc'; $query="SELECT * FROM news WHERE topic LIKE '%$mcat%' "; [/CODE] here , the problem is in my db table $mcat value stored as doublequotes ...the word itself having double qoutes.... the above query working for all other sarch … | |
Hi, I have problem, i have designed a web page in asp.net 3.5. I have a TextBox and a button, the User is expected to write some comment in the TextBox. The TextBox can also have a comment pattern including a (') on the click of button the data in … | |
Ok I'll try to be as clear as possible with what I want, but for all I know the solution might be so damn simple... anw... I have a picture, alright.. usual way of putting it: [CODE] <table><tr><td> <img src='bla bla' height='100%' width='100%'> </td></tr></table>[/CODE] And I actually wanted it to … ![]() | |
I have been attempting to write an auto-login code for some websites that I frequent, but one of the website's forms has an odd submit button. Instead of being the usual button that you can call by it's Id it's instead a link. I was actually wondering if I could … | |
Hi Guys, I am using sql in and am stuck. after "selecting * from table", how do i store whatever I have obtained from my database in a variable, for display? Thanks. | |
Hi there, I am wanting to find out how to add text to a hidden field in a HTML form. I want to add text from an array, the array holds the information for the caption placeholder for the images. Basically i have an image viewer which lets you scroll … | |
I am not an IT student however, a student of Healt and Human services and this IT class is an elective. I do not know any thing about programming but I am struggling to get through this class I read the text and disiffer some things. But as for the … | |
When i put in this code WHERE to='$username' won't work? [CODE]<?php $connect = mysql_connect ("localhost","root","") or die (mysql_error()); mysql_select_db ("login4") or die (mysql_error()); session_start(); $_SESSION['username']; $username = $_SESSION['username']; $query = mysql_query("SELECT * FROM pm ORDER BY id DESC"); $message = '' ; while ($row = mysql_fetch_array($query)){ $id = $row['id']; $to … | |
import java.util.Scanner; public class BookRentalSystem { public static void main(String args[]) { //Declaration of variable and instances String bTitle, bType, bAuthor, bISBN, bStatus, search; int choice = 1; int bCount = 0; boolean found; Scanner input = new Scanner(System.in); Book[] books = new Book[5]; //Executing user's selection from menu. Exit … | |
Hi, so im pulling arrays from facebook. But i would like to sort them. Here is how the arrays look [CODE] Array ( [0] => Array ( [eid] => 203966119376 [name] => Funtastic - a show for the whole family! [tagline] => [nid] => 0 [pic] => http://profile.ak.fbcdn.net/object2/857/53/s203966119376_6012.jpg [pic_big] => … | |
Hi all, Im trying to read an int from a binary file.. (As I have done many times before) [CODE] int chunkLength=0; fileRead.read (reinterpret_cast<char*>(&chunkLength),sizeof(chunkLength)); [/CODE] I know (and can see) that the file contains the bytes 00 00 00 0D, so to the best of my knowledge the int should … | |
Here is my program: [I]#avg2.py # A simple program to average two exam scores # Illustrates use of multiple input def main(): print('This is a program to average two exam scores') score1, score2 = float(input('Enter two scores separated by a comma: ')) average = (score1 + score2) / 2.0 print('The … | |
Can anyone help me with doing problem 12 on project euler? The question is asking which triangle number has more than 500 factors. The first few triangle numbers are: 1, 3, 6, 10, 15, 21, 28 ... Hope you understand the pattern, cause a can't explain it in words vary … | |
HI, I am creating a Forum System, this is a small system, I want to know where to store the forum data(Messages posted by users), Should I store it in SQL database or a Text File. Please suggest something. Thanx.... | |
Where can I find sample client-server program using poll. Or if someone has it can they share it. | |
I want tu use more than one form in my project and be able to code a button or something that will do that. I tried this on Form1 and it worked. [CODE]Public Class Form1 Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click 'Goes from this … | |
ive got a sample game from college and i would like to open it a see how the game is but when i open it a blank window appears like ms dos and then closes i wonder if anyone could help out. ive installed python 2.5 and pygame. the code … | |
after complete all process when I press finish then show a msg: "unexpected error number 70 has occured: permission dinied." what I need to do. | |
I must be overlooking something simple here, but I have no clue why it says that it is going out of bounds. Here is my entire program... [CODE]import java.util.Scanner; import java.util.Random; public class MadLib { static Scanner input = new Scanner(System.in); static Random rng = new Random(); static String t[] … | |
New to VB and using Visual Studio 2008. Trying to declare variables and arrays that can be used outside a specific procedure. I want to make the variable universally available within the program. I think I know how to do the declaration, I just can't find where in the code … | |
this is my first program using more than one method. while i like it because of its modularity and cleanness, i despise it for its multiple new problems it introduces into my world where i was just getting the hang of the old style. i am supposed to be doing … | |
Hi All I Importing a Excel File to a DataGrid . I want to filter some rows have the code of "91" and "90" for i.e. in the [COLOR="red"]Column of "A"[/COLOR] : so , I added manually , A column in the DataGridView , name [COLOR="red"]"Column1"[/COLOR] . now when i … | |
Hi Guys, Can you help on the abovementioned title of this thread. Thank you very much. | |
Hi newbee to php mysql appreciate if anyone can help in change password in sha1 Current mysql table [CODE] `users` ( `id` int(255) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(100) NOT NULL, `firstname` varchar(50) DEFAULT NULL, `lastname` varchar(50) DEFAULT NULL, `password` varchar(40) NOT NULL, `active` int(1) NOT NULL DEFAULT '0', `ip` … | |
Hello all. I have a small problem, i need to recieve a 8 digit number for example: 12345678 87654321 and so on. After i need to devide the value and use the int as a array, something like int i=123; System.out.println(i[1]); It should return 2 (therocially), but obviously the doesnt … | |
Hey, I was just wondering how do I make my edit boxes so that when the the tab button is hit the cursor will go on to the next edit box in windows API. I've done some research on functions that deal with the cursor but I can't string them … | |
I have a templated class set up like so: [code=CPP] template<typename T> class treeNode { public: bool operator==(const treeNode<T>&) const; bool operator>(const treeNode<T>&) const; void print(); T field; int key; }; [/code] Using the > operator as an example of my problem, I have it overloaded like this: [code=CPP] template<typename … | |
How can I protect a folder with some files from being accessed by htaccess? I'm newbie so take it with grain of salt. | |
Hello all, I am writing a java application where I have a Jtable with checkboxes next to the data. If the user checks a box, I want to store a specific value from the data table. I can do this inelegantly by setting setCellSelectionEnabled(true) and adding the following to the … | |
Hello everybody. I'm trying to get the current directory, save it, changing the current dir, then coming back to the previous one. My code so far [code=asm] TITLE ep1_7 .MODEL SMALL .STACK 10h .DATA msg DB 'Current directory:',0h msg_l equ $-msg buff db 64 dup('$') ;f_handle dw 1 dup(?) .CODE … | |
Hello everybody, Hope everyone is fine over here. Well .. actually, i am developing a networking application, or a client-server application where many clients on a LAN will connect to the server. Actually I am a bit confused with the database part, one of the features of my application is … | |
Hi can someone please explain to me what is the difference between writing onclick="confirmLink()" and onclick="return confirmLink()" I tried both and they did the same thing and I am confused since the lazy fellows from my university have given me old notes in which they randomly include the "return" sometimes … | |
Hello! I need some help please.. i searched a lot, and tried everything... can someone help me please.. here's the deal: i have this select: [CODE]SELECT * FROM localizacao, cliente, dispositivo WHERE disp_id = clien_disp_id AND disp_id = local_disp_id ORDER BY local_id desc[/CODE] it's output: [URL="http://i.imagehost.org/0746/tabela.jpg"]http://i.imagehost.org/0746/tabela.jpg[/URL] but what i really … | |
Hi i will describe my problem. When focus is on TextBox and we press ENTER or ESC then we will hear that sound. I'm trying to disable that. Did any one got that problem before ? I was trying to create my own SilentTextBox which will inherit from TextBox and … | |
Hi guys, really need your help on this one. Because i have been searching the web all day today and i cannot find out how to it. The only possibility i found was to pay a professionally do it for me, but sadly i don't have the money to afford … | |
Hi all, I have a pdo connection script to mysql, which works fine. What im a little stuck on is that when i "include" the file, its connected, but how do i call the table to which my query is related to? The first snippet is the connection, and the … | |
if and if-else statement: you will have to write a program that reads a 4-digit positive integer from the user and prints out the following information on the screen: 1. Whether the positive integer is an odd or even number 2. (display) The odd digits of the integer 3. (display) … | |
Hello, can somebody tell me why I get a parse error in this file? The error message is on line 20 according to the error log, the last line. [CODE]<?php // errormsg.php function error($msg) { ?> <html> <head> <script language="JavaScript"> <!-- alert("<?=$msg?>"); history.back(); //--> </script> </head> <body> </body> </html> <? … | |
Lately I have learnt many things from Daniweb specially on PHP and mysql. I am building a HR application where I was looking for visitor to leave a message and which should redirect to admin or who ever is responsible Any suggestions is greatly appreciated | |
Hi, Has someone got a code of skip list(in link list). Skip list is a list through which we can do binary search in a link list Thanks.... | |
Hi, Newbie to this python lark so please forgive any silly questions - thank! Have installed various versions of python from 2.4 to 2.6 all with same issue. Current install is 2.5.4 AMD64 on XP64 platform. Python IDE doesn't do anything at all Python command line reports >> 'import site' … | |
Hello , I have just started dealing with OpenCV and tried to open an sample.I am using version b4a. And when i opened a sample source file(for example:face detect). I compile source file(face detect) and it(visual stdio 6.0) gives 0 error or warning. But when i tried to run it … | |
I have the following integral function with Simpson's rule: [CODE] typedef double real; typedef real real_func(real); real Integral(real_func func, real a, real b, unsigned int N = 1000) {...} [/CODE] It works like: [CODE] real myfunc(real x) { ... } Integral(sin,1,2); Integral(myfunc,1,2); [/CODE] But does not work with a public … | |
Hi, I want to create a Forum System in asp.net 2.0, Its better that i download the open source from microsoft, if anybody has Link for this source code, then please give it to me.. Or Suggest what should i do? Thanx... |
The End.