64,152 Solved Topics
Remove Filter ![]() | |
My program requires users to be able to right click a tab and then close it, but I can't do this when the right clicked tab doesn't select. Any help would be nice, thanks. | |
Hey, So I have a *NIX box (CentOS 5.5) which runs a number of background processes, I leave it on 24/7 with just a terminal up on the screen (I don't have Gnome, KDE or any similar graphical frontend, just a prompt). Is there any way to get my background … | |
I have an implementation question. I am trying to have a rectangle change color based on the position of four sliders. (Alpha, Red, Green, Blue) I am attempting to use a dependency property to combine all four values, convert them to a brush, and apply the brush to a rectangle. … | |
Can I somehow use the following code to remove all the elements of a binary tree? [CODE] void BinarySearchTree::remove(int d) { //Locate the element bool found = false; if(isEmpty()) { cout<<" This Tree is empty! "<<endl; return; } tree_node* curr; tree_node* parent; curr = root; while(curr != NULL) { if(curr->data … | |
Hi, I have created a simple shopping cart using session array, selected products are stored in the table. So far I have no problem! I wish to remove (using x) individual product from the table/array, but I cannot access it. Is anyone SESSION expert who can help? Thanks in advance! … | |
I need to iterate through an array, starting with the first element, in chunks of, say, 5, then break off and do something else with the array, then go back to where I left off. I'm confused about how the array counter, using next, or current etc. would work. How … | |
Can anyone please help me with installation of oracle 11g on windows 7 home basic 64 bit? On prerequisite check its giving an error that "this version is supported by os version up to 6.0 only and not by this version 6.1" | |
I haven't needed to use fscanf before, so I'm not very familiar with it... Everything is working fine except that the numbers it inputs are not what's in the file and they are all the same number (-9.255959e+061 to be specific) I know exactly how the files are formatted they … | |
I am new to vb. I am trying to get a value for a textbox from a database according to the selected item in combobox. but i had this ex.message Operator '&' in not defined for string "select*from ......" and type 'dtarowview' Could anyone please tell me what is wrong … | |
today, I want to transform "c:\*\``"(it is a rout) to "c:/*/''" yes, just from "\" to "/" but it is always missed ,for example "\n" to "enter" and how can "c:\*''" just be "c:\*''" without changing ? thanks a lot! | |
Hi all, Hopefully a quick one. I have some weblogic build scripts that configure a WebLogic Server environment. Previously DB connection credentials have been allowed to be stored in build property files. However new security regulations mean that this is no longer possible. I am trying to write a prompt … | |
Hey guys, I seriously need some help here. I have no idea why but after undergoing the Rotation phase I lost coordinatesRotZ[a][0],coordinatesRotZ[a][1]. The value appears to be 0.0 However coordinatesRotZ[a][2] has values stored in it. so the output looks something like that after printing: coordinatesRotZ[a][0] coordinatesRotZ[a][1] coordinatesRotZ[a][2]: 0.0 0.0 13.44 … | |
I would like to learn how to save a JInternalFrame. Currently reading through Serialize info. I have never ran the app outside of Netbeans. I have had no success with creating the jar for the app (JDesktopPane). Now Serialization is adding to the confusion. Do I have to have the … | |
Hello, I am at the end of my first C# programming class. I am working on some extra credit. Having problems with my loops. I am supposed to get output looking exactly like this: Bark Bark Meow Bark Meow Bark Bark Meow Bark Meow Bark Meow Bark Meow Bark Bark … | |
Here's what I made to test how python works.... test.py: [CODE=python] class ECollector: #error msg collector #this class should be used as 'global' msgs = [] def addmsg(self,msg): self.msgs.append(msg) def clear(self): self.msgs = [] class test(ECollector): dcodes = [] ECollector def new(self): ECollector.addmsg("test!") [/CODE] And I typed the following on … | |
[CODE]<?php require_once('database.php'); $query="select * from news"; $result=mysqli_query($dbc,$query); while($row=mysqli_fetch_array($result)){ $Title=$row['Title']; //$Content=$row['Content']; echo $Title; echo "<a href=''>$Title</a><br>"; } ?>[/CODE] [QUOTE][B]Hi friends.... [B]I have a table named news which contain columns such as Title, Content,NewsId and many more. I want to display titles in form of link and [COLOR="Red"]when we click any link … | |
Hi, I'm working on a project which requires some sort of 'connection' between 2 (or more, actually) clients. Basically one person should be able to send data to another person with their webbrowser, somewhat comparable to a instant message system. My first idea was using XHRs to send data to … | |
can someone tell me how to convert a string to a float. [CODE](Float)"1";[/CODE] does not work. | |
My code works fine for smaller integers, but when it gets over 1 million or so the number changes or goes negative. I am sure this has to do with the range of int, but I tried float and double and all the numbers came out the same...... What is … | |
Hey all, I'm trying to implement a function InitMatrix which suppose to return a pointer to a new created 3d array of the size determined by x,y and z. I have a struct which represents a matrix and should be able to deal with some functions required, like setting the … | |
Hi, recently I have been working on a file upload script that users can upload an image. I got it to work but I am stuck on how to let user update or change the image they upload. I would like this to work kind of like facebook photos work. … | |
Ok here is my problem thus far. My program I have created is horrible lol...I am adult enough to admit it. My issue is the output I am getting that I will post after my code. It has weird characters at the top and I am not sure why. The … | |
Hi,i was a beginner in perl .please try to help m ein these areas. If i use [CODE]du -sh[/CODE] in my perl script i was getting output as 54M /home/abhinav/compare or 569M /home/abhinav/debug But i want only the size that is either like 54m or 569m and i dont want … | |
Hi, Daniweb members i have an listview containing an normal listviewitem plus one subitem What i want to do is save the info in the listview in a textfile and load when i start my program. So that all the info will be saved, but how do i do this? … | |
Hi i ve been dealing with a program and encountred a weird problem. the problem is that my array variable por[27][1]'s value changes for no reason. please take a look at the pictures in the attachment. the pictures belong to debugging. | |
I am doing the O'reilly School of Technology course and the current topic deals with Tkinter. It gave me the idea to write this application. The idea is to transfer files to various ftp sites. If I set a default master password, then the password should be used for all … | |
![]() | I've just landed myself in it. I offered to help out with a programming club at our school. Doh! The school is lumbered with VB6. I refuse to dirty my hands with it - the last time was about a 1000 years ago. I proposed to do a starter on … |
Hello, Right, basically I'm trying to write some HTML to a file, now the problem is that I do not want to write the whole of the HTML in the C# program, incase I ever need to change the HTML file. All I want to do is change a few … ![]() | |
Hi Okay so i have a text file and i have it converted to a bunch of lists with strings as the words. Now i need to find words that occur only once in the entire text file, how can i do this using a loop? A hint says that … | |
Hey guys, i'm working on a recursive problem that invlolves getting from a place "s" (start) to a part "e" (end) in as few moves as possible. There are road blocks "x" and the grid is a size up to 15x15. My problem is that when I try to write … | |
So I have a data file that looks like this [CODE] Movie1 Year Salary Actor1, Actor2 Movie2 Year Salary Actor3, Actor4, Actor5 ... etc [/CODE] The part that's throwing me off is the actors line. It can have from 1 to 5 actors on it, separated by commas. I have … | |
I'm working with sets and notice when I do: [CODE]s1 = set( ['a', 'b', 'c']) s2 = set([1,2,3]) print s1.symmetric_difference(s2)[/CODE] It prints it off as: [CODE] set(['a', 1, 2, 3, 'c', 'b'])[/CODE] Is there any reason to why it displays it in the order of 'a', 1, 2, 3, 'c', … | |
Hey. As the topic states i want to use a streamwriter to write the listbox from form1, but the streamwriter is in form2. How do i get the data from form1 to form2? I have the code to write everything out etc, all I need is help to get the … | |
Hello, I am just starting learning Python and I am having some trouble properly importing a function from a module. I wrote the short script: [CODE]def print_twice(param): print(param, param) [/CODE] When I try to import the function print_twice, the shell tells me it cannot import the name print_twice. When I … | |
I'm trying to create a print void function, however I'm not understanding how to call the database in the print function. I've tried to do something similar to what is in my textbook but all I'm getting is errors. This is what I've done so far. [CODE] #include <iomanip> #include … | |
Hi! Is it possible to dynamically update a text of items in JList? Let's say there is JList defined as follows: [CODE] list1.setModel(new AbstractListModel() { Object[] values = listOfTasks.toArray(); public int getSize() { return values.length; } public Object getElementAt(int i) { return "Task " + i; } }); [/CODE] As … | |
Hello, I am looking for a means of database interaction in which the database will be stored on a user's machine but with no actual server software running. I have read there is some way to create databases in SQL express and then take the files for use in your … | |
Hi all, I want to parse the elements in my arraylist to double. May I know how to implement that? [CODE]import java.io.*; import java.util.*; public class Array2 { static ArrayList myDouble = new ArrayList(); static String[] temp; static String[][] finalTemp; static String[] arr; static int rows; public static void main(String … | |
![]() | Hi folks, getting a problem adding name/values to make an array to pass to php. I've got a number of inputs named [B]week_start_x[/B] (where x is an integer ranging from 1 to a dynamic number [generated through php] - the max no. is determined by another field called 'yearblocks'). I … |
I have a javascript. I did not understand the language. here is the link of the script [URL="http://www.unitconversion.org/converter3/converter3.js"]http://www.unitconversion.org/converter3/converter3.js[/URL] Can anybody explain me the script. thank you | |
Hello All, I'm new to PHP, need some advice for my problem below. Here is my problem after enter my fullname and search, it show all the fields from a table, but if I enter a invalid fullname(fullname that doesn't exist in fields) , the page goes blank no error … | |
Create the init() function. Within this function do the following: a) Create a variable named allSelect that references all of the selection elements in the document. b) For each item within the allSelect object collection, add an onchange event handler that runs the loadLink() function when the selection list changes. … | |
Wasn't sure whether to put this with PHP or Mysql I'm having trouble with the below code, it only does the inner while loop once, while still cycling past it every time. It should update the "favourite" integer column in each "link" by checking if it's in the favourites of … | |
Hello,I am making a website in JSP celled employee info system.In this whenever a new emp. registers in the system he is given a unique employee id. Currently in my registration page the employee himself will have to manually enter a unique id.Is there a way in which the unique … | |
Hello gentlemen. I have a question over here. with the following piece of code i want to extract data from a document. The question is how can i assign the values [B]Sentences, Words[/B] in the Array. [CODE] String data[][]; //[files][sentences][words] public void ScanSearch() { for (int i = 0; i … | |
I need t o make these paterns [code] * * ********** ********** ** ** ********* ********* *** *** ******** ******** **** **** ******* ******* ***** ***** ****** ****** ****** ****** ***** ***** ******* ******* **** **** ******** ******** *** *** ********* ********* ** ** ********** ********** * * [/code] I … | |
[CODE]java.lang.NoClassDefFoundError: Main Caused by: java.lang.ClassNotFoundException: Main at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: Main. Program will exit. Exception in thread "main" Java Result: 1[/CODE] after i had done my system. this error message pop up and restricted me … | |
Hi Everyone I'm busy preparing for my programming examination and I would really appreciate it if someone could just give me some references(websites) to some c++ programming exercises. I believe the best way to prepare for this kind of examination is to practice writing code and understanding it. Thanks! | |
While reading Stroustrup's "The C++ programming language", I was puzzled at 'declaring a pointer to an array of character strings and declaring a reference to an array of 10 integers', and I had to clear my mind on pointers to arrays. I am posting here the notes I made to … | |
Hi all I made this animation app and I think its all correct however i get a error message which is: Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 2, Size: 2 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at Animation.getScene(Animation.java:56) at Animation.getImage(Animation.java:49) at MainAnimation.draw(MainAnimation.java:64) at MainAnimation.movieLoop(MainAnimation.java:53) at MainAnimation.run(MainAnimation.java:34) at MainAnimation.main(MainAnimation.java:10) I cant … |
The End.