199,114 Archived Topics
Remove Filter ![]() | |
I have created a Combo box with the 3 items. And one more Combo Box with the 9 items. When one item of 1st combo box selected,the 2nd combo box should show only 3 items out of 9 items. how to do this? I tried but not getting it. | |
Hi there one and all. I am attempting to learn to code in python with the intention of teaching it to a class of 12 year olds later in the year!!! So far I've been going ok if a little slowly, however this one is stumping me. I am trying … | |
Hi guys can we update data (Edit) in view table in sql server? If Yes How ,if No Why? Thanks in advance...... | |
![]() | import java.util.*; import java.io.IOException; import java.util.Scanner; import java.util.Random; public class LinkedListProgram { public static void main(String[] args) throws IOException { int i,number, ran; Scanner sc = new Scanner(System.in); LinkedList<Integer> list = new LinkedList<Integer>(); ListIterator li; String line; Random random = new Random(); int pick = random.nextInt(150); System.out.println("Enter # of nodes"); … ![]() |
I'm using a loop to get user input and compare it; Idk why but on the first iteration of the while it works fine and displays only once. Second run thru I get two prompts, hoping someone can point out where I'm screwing up. public static void main(String[] args) { … | |
I need to make a program that runs two threads. One that outputs ping and sleeps for ten second and one that outputs pong and sleeps for ten seconds. Everything works except instead of sleeping for ten seconds everytime the thread is ran its just jumps to the second thread … | |
Hi, i'm new to python and I'm having a problem that I'm not able to solve. I have the following 2D array: valuearray = [['A', '21', '45'], ['A', '12', '23'], ['A', '54', '21'], ['A', '15', '54'], ['B', '23', '53'], ['B', '34', '53'], ['B', '32', '54'], ['B', '24', '13'], ['C', '31', … | |
hello all,,i added a pagination in my table,,before that,all the button is working,but now after i add a pagination,the image button is not now working....is any problem in my codes,this is my comple codes: hope someone help me out again.. <?php if(!isset($_COOKIE['POGI'])) { header("location:index.php"); } ?> <?php include('config2.php'); ?> <?php … | |
I just added a .show for a div to a page where users can rate movies, works just fine as it is. I would like to change it up a bit by showing an image for the number rating that they gave it, 1-5. I have something like it set … | |
I have this Singleton class: package com.CCharles.Singleton; import java.util.ArrayList; public enum Singleton{ INSTANCE; public void createList(){ ArrayList arrayList = new ArrayList(); for(int i=1;i<101;i++) { arrayList.add("Job "+i); } for(int i=1;i<101;i++) { System.out.println(arrayList.get(3)); } System.out.println("DONE"); } public void sayHello(){ System.out.println("Hello World"); } } and I am accessing Using: package com.CCharles.Singleton; import com.CCharles.Singleton.Singleton; … | |
Hi, I have an application that is running in the system tray. It displays a popup menu when the user right clicks on it. I need to set shortcut keys for displaying the popmenu and also for the menu items. Is this achievable? If yes, then please advice. | |
hi guys, this is my first javascript program so i'm certainly a noob. i just want to ask why doesn't this global variable not recognized by my functions .. ? the thing is i need to get the id of a certain table to count the number of rows and … | |
Hi I have never done this before and am having some trouble. Could someone tell me where I am going wrong: $sql = mysql_query("UPDATE `gigs` (txnid, payment_amount, payment_status, itemid, createdtime) VALUES ( '".$data['txn_id']."' , '".$data['payment_amount']."' , '".$data['payment_status']."' , '".$data['item_number']."' , '".date("Y-m-d H:i:s")."' )WHERE (gigname)=".$data['item_number']."'" , $link); In case I have … | |
Hi! I am working into the development of a C++ related Phone Management System where the request is to: 1. Input information of new subscriber: The program should input a line of data from the keyboard in the following format: <surname> <name> ! <telephone1> <mode> ! <telephone2> <mode> ! ...! … | |
I'm very new to programming, so sorry if this is a dumb question. Is it possible to write a program that can view the source of a webpage and extract and re-write a certain part of the code? For example, I would want the program to view the source of … | |
**does anyone here know what is binaryformatter database? and how it works? Thank you friends** | |
Please help me with my database connection. It says that I have an error with my Insert Statement. Imports System.Data.OleDb Public Class Form1 Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click Dim connection As OleDb.OleDbConnection Dim mydb, mystr As String Dim dateFiled = Date.Today Dim user … | |
Hi I populate a drop down menu like this: <select name="mySelect"> <?php $result= mysql_query('SELECT DISTINCT Year FROM MonthlySales'); ?> <?php while($row= mysql_fetch_assoc($result)) { ?> <option value="<?php echo htmlspecialchars($row['Year']);?>"> <?php echo htmlspecialchars($row['Year']); ?> </option> <?php } ?> </select> Then build a HTML table like this: <?php while( $row = mysql_fetch_row($results) ) … ![]() | |
I am a newbie of node.js and I am trying to run a simple chat application but I got an this error: node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: Cannot find module 'now' at Function._resolveFilename (module.js:334:11) at Function._load (module.js:279:25) at Module.require (module.js:357:17) at … | |
Hi, I need a perl function that will check the following in a file, modify if only the first two columns match , and if not found in the file, insert the values. The file is like below **lookup.txt** InstanceName1::DomainName1::Server1 InstanceName1::DomainName2::Server2 InstanceName2::DomainName3::Server3 InstanceName2::DomainName4::Server3 ... ... The perl function needs to … | |
Its an exam question that wants to modify code so that the following output is generated 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5 **This was the original code** #include<stdio.h> void main() { int i,j; for(i=1;i<5;i++) { for(j=1;j<=5;j++) { printf("%d",i); } printf("\n"); } … | |
I just can't help but feel that there's a more efficient way to do this than with multiple calls to the string[i] operator. I've tried storing the results of string[i], but that leaves me with a char, which I'm evidently unable to compare. I know that I can compare a … | |
Hey, im trying to dynamically add an image to a gridview for each row if it meets a condition. DataTable dtSub = new DataTable(); dtSub.Columns.Add("ID", Type.GetType("System.String")); dtSub.Columns.Add("FirstName", Type.GetType("System.String")); dtSub.Columns.Add("LastName", Type.GetType("System.String")); dtSub.Columns.Add("Tutor", Type.GetType("System.String")); dtSub.Columns.Add("test", typeof(System.Web.UI.WebControls.Image)); //not sure if this is correct?? DataSet ds = new DataSet(); ds.Tables.Add(dtSub); Session["myds"] = ds; foreach … | |
hello :) i'm looking for an algo to find out all possible combinations of a 2d array entries, wich are (Tasks x Processors). i.e, i have to find out all possible schedules to schedule tasks against processors. numbers of tasks and processors are variable. Suppose : ............P1.......P2.......P3 .................................... T1........3 ........6..........4 … | |
The language i'm trying to do this in is c++ let's say i have a number 123456 , i want to divide this up into partitions of two so i would have: 12,34,and 56. I want to add the partitions up and it would equal 102. How can this be … | |
![]() | > My code Not working Why ???? there is some processor fault Error |
Purpose: Create a C++ class; use operators, overloading, member functions, friend functions, constructors and private data. • Make the data members private. (This means that the non-member functions below will have to be friends of the Data). • Create a member function called ‘set’ with the same arguments, and return … | |
![]() | Learning Java, I have never used the keyword "this". So I am wondering when it is smart to use it. I know that it does prevent name conflicts: public class test { int x; int y; public test(int x, int y) { this.x = x; this.y = y; } } … |
Hi all, I have a simple OpenGL program (learnt from NeHe of course) and I've tried to implement GLSL shaders into my program. Currently, its meant to draw a cube with a shader and quit on escape. However, at the line **`GLenum program = glCreateProgramObjectARB();`** it stops responding and closes. … | |
Problem 2. tttCheckMove() Write a function named tttCheckMove() that checks whether or not a TicTacMove is on an empty space on a TTT board. Input (two parameters): · Parameter 1: A string of 9 characters denoting the state of a TTT board. Each character in the string indicates the state … | |
![]() | So my java class is a joke, and we're expected to learn how to do our assignments via the web...I'm a hard worker, but I'm just not good at this. [Assignment pic](http://oi50.tinypic.com/aw3zx2.jpg) There's the assignment image. I think i got how to do the first part with the adding random … ![]() |
Hi, I am trying to create a page where depending on which one of three radio buttons is selected something different happens. The context is that users have already registered and so the 'gigname' is taken from url (which seems to work now). The original url looks like example.com/listtype.php?name=gigname (with … | |
package gui; import javax.swing.*; Import java.awt.event.*; import java.applet.Applet; public class FE extends Applet implements ActionListener { private JLabel lb = new JLabel("Enter text :"); private JTextField jtf1 = new JTextField(10); private JButton jb = new JButton("ENTER"); private JLabel lb2 = new JLabel(" "); public void init() { add(lb); add(jtf1); add(jb); … | |
Maybe I'm just missing something but I was thinking what do you call something like a Windows Form Application in Visual Studio where you can drag and drop and stuff like that. Do you call that an API or SDK or GUI or something else? By the way, as I … | |
hi.. i am trying want to solve this Write a complete program that reads 11 integers from a file called ‘file.txt’ and stores them in an array. Your program should then remove the duplicated numbers, find and print the sum of all the even numbers in the array as well … | |
I'm going over a practice exam right now and I've come across something I can't figure out. I understand what incrementing is but I just don't know why the answer is 0. //What is the value of a after the following code is run (int a=12). a += a -= … | |
hello please how can import just one SCROLLING for all page same this  <html> <frameset NORESIZE SCROLLING=yes rows="33%,60%"> <frame SCROLLING=no NORESIZE src="bannar.php" name="up"> <frameset FRAMEBORDER=NO cols="10%,80%,10%"> <frame NORESIZE src="" > <frame SCROLLING=no NORESIZE src="home.php" name="down" > <frame NORESIZE src="accounts_page.php" name="account" > </frameset> </frameset> </html> please help me ![]() | |
hi There please help me in these program because the character only moves 1 time but it must be like this input: abcd output: dabc then when i click forward again output cdab output: bcda output: abcd like this and also it must be in backward to when i click … | |
Hi I have a program in java that outputs 1000 hello world without using iterators (for, do while etc).. I tried to translate my code into vb.net and here's my code: `Module Module1 Sub Main() printToThousand(1) End Sub Public Function printToThousand(ByVal i As Integer) Dim r As Boolean Console.WriteLine("Hello World") … | |
Here slightly edited code from one of my earliest posts to DaniWeb. Limitted by recursion limit of Python as it uses recursion, but interesting for me. | |
The output of the following line of code is: Not Done End boolean notDone = false; if (notDone = true) System.out.print("Not "); if( notDone = false) System.out.print("Done "); System.out.println("End"); The answer is false but I am having a hard time understanding why. Aren't the if statements setting notDone equal to … | |
Hi, how do i output a list,1-5 of the following factorial? #include <stdio.h> #include <stdlib.h> #define fact 5 int main(void) { int i,result=1; for (i=fact;i>=1;i--) result*=i; printf("factorial of (%d) = %d\n", fact, result); return(EXIT_SUCCESS); } | |
hello i want if enter account save in database :) this is my code , but it's not save anything in database :"( i don't know why ! i have database "accounts" have "2 row name & account" <html> <body> <?php $con=mysql_connect("localhost","root",""); if(!$con) { die('can not connect'.mysql_error()); } mysql_select_db("scms", $con … | |
I'm not entirely sure how function work, and ive been trying different combos for a while.. Main: import pygame, motherWhale, scoreBoard pygame.init() def main(): global motherWhale global seaWorld global scoreBoard screen = pygame.display.set_mode((640, 480)) pygame.display.set_caption("Bubble Battle") background = pygame.Surface(screen.get_size()) background = background.convert() background.fill((255, 255, 255)) screen.blit(background, (0, 0)) motherwhale = … | |
I came across a problem that I can't solve and it's associated with multiprocessing and use it inside the decorator. When I'm calling the method **run_in_parallels** using multiprocessing I 'm getting the error: `Can't pickle <function run_testcase at 0x00000000027789C8>: it's not found as __main__.run_testcase` The call takes place inside the … | |
I keep getting an error with the "ButtonListener." I don't know what it is that's causing it, but help would be appreciated. import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class MovingCarPanel extends JPanel { private int delay = 2; private Car car; private Timer … | |
I made a program, hangman. And I am trying to complete it. I have succesfully been able to compare the input letter by all the characters of the word to be guessed (which is saved in an char array) and display it. But now, I can not figure out how … | |
Hi, I have to create several services that have to use some sort of registry, to store and get data from. Also, services should have to communicate with each other, in order to exchange data, using the previously mentioned registry. Each service should be able to connect to the registry … | |
I have my project due of hangman and it is worrying me lately. I need to make a hangman game. I have studied arrays, functions, loops, if else statements. That is about it. I haven't done 2d arrays. Will do it now, because someone told me it is not possible … | |
I Have This Workers List: private List<Worker> buildWorkerList( Producer producer ) { List<Worker> workerList = new ArrayList<Worker>( 11 ); workerList.add( new WorkerImpl( "Garnett", producer ) ); workerList.add( new WorkerImpl( "Durant", producer ) ); workerList.add( new WorkerImpl( "Xavier", producer ) ); workerList.add( new WorkerImpl( "Daniel", producer ) ); workerList.add( new WorkerImpl( … |
The End.