199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for student.09

Hi, I need help getting started on this program: Write a sort method that uses the bubble- sort algorithm. The bub-ble- sort algorithm makes several passes through the array. On each pass, suc-cessive neighboring pairs are compared. If a pair is in decreasing order, its values are swapped; otherwise, the …

Member Avatar for student.09
0
324
Member Avatar for blah32

Is there any built in functionality in python as to rename files smartly in windows. I am using os.rename to move files to a higher directory. The problem is, the directory I move the file to could have a file that has the same name. I want to do what …

Member Avatar for blah32
0
135
Member Avatar for dreamy_ananya

Hi, I have a project that has 11 classes. Now each class refers to the tasklayer ( another set of multiple classes) and instantiates them everytime. For ex: TaskLayer: contains 3 classes under same namespace. A.cs ------ [CODE]public class A{}[/CODE] B.cs --------- [CODE]public class B{}[/CODE] C.cs -------- [CODE]public class C{}[/CODE] …

Member Avatar for vdeych
0
353
Member Avatar for bibiki

hey there, I have two pieces of code that I expected would behave the same. However, what I noticed is that one of them works fine, the other does not at all. I need help from someone experienced to explain what's going on under the hood. the code that does …

Member Avatar for NormR1
0
138
Member Avatar for renoua

Hi, How can I add via javascript an Event Attribute like onkeyup="xyz(this.value)" in a text input ? function x() { if (condition) { document.definesearch.textsearch. ???? ; } } definesearch is the name of the form. textsearch is the name of the text input. I tried this : document.definesearch.textsearch.onkeyup="xyz(this.value)"; but it …

Member Avatar for fxm
0
96
Member Avatar for jkalmar

Hi Everyone, I've got a library of ASM books I'd like to sell as a set to an ASM devotee. Here is the list of titles and what I originally paid for them. If you pay for shipping and make me a reasonable offer, they are yours. Or, if you're …

0
116
Member Avatar for Mikey12345

Hi im new to c#.. just wondering how to convert this vba code:- [code] Sub AddUP() x = 1 For i = 2 To 100 x = x + i Next i ActiveCell.Value = x End Sub [/code] Best Regards

Member Avatar for Zinderin
0
171
Member Avatar for cotrac

Hello! This is my very first post, anywhere, asking for advice. I have a mysql table named "children". It has 5 columns. "username" "child1" "child2" "child3" "child4" Based on my register form, A user creates a username and list the names of children he/she has (up to 4) on submit, …

Member Avatar for cotrac
0
143
Member Avatar for Medalgod

OK, so i've written a server to listen to TCP connections, and send a response. It can be connected to via telnet and works fine. Next, i started writing the client side of the application - I started out simple by trying the following: [CODE] public static void Send2(Server server) …

Member Avatar for Medalgod
0
117
Member Avatar for mikaelaillanes

Hi! I have a problem with a binary tree programing (AVL)where I have to check if it is or if it isn't balanced.... I have made a start but I know it isn't right... [CODE] public boolean isBalanced() { boolean balanced = true; isBalanced(root, balanced); return balanced; } private void …

Member Avatar for NormR1
0
200
Member Avatar for dumont

Here's the scenario: Let's say I passed a couple of querystring to populate my datalist on another page. Then I want to filter/refine that datalist further by clicking on links( which are dynamically created depending on the data on the datalist) and when clicked will pass another querystring to create …

Member Avatar for Lusiphur
0
130
Member Avatar for shingo99

hi im a beginner in Java i have make a simple program using the JCreator LE but when i execute file the error below is shown in the command prompt Exception in thread "main" java.lang.NoSuchMethodError: main may i know what is the matter? thank you in advance

Member Avatar for Cort3z
0
516
Member Avatar for Cort3z

Hi. I got a noobish question: Is it possible to return an array "directly", so, something like this. [CODE] public int[] getArray(){ return int[]{this.intA, this.intB}; } [/CODE] I know I can just make the array first. But does this not use unnecessary cpu time and memory? This is going to …

Member Avatar for Cort3z
0
110
Member Avatar for reza.adinata

Hi all, I am trying to make a simple application, where when a user press a button, there will be 2 consecutive images shown inside the window with delay. Below is the source code [CODE] private void btnAddMore_Click(object sender, RoutedEventArgs e) { //first show image1 in window FunctImage(); //put a …

Member Avatar for reza.adinata
0
147
Member Avatar for Zinderin

So, a single user application, all data is local, no remote access .... If a go with an Access file (DB), from the user's perspective, they simply install the app and they are good to go. Is it the same if I go with a SQL DB, or do they …

Member Avatar for Zinderin
0
168
Member Avatar for anil1991

i need to submit a car racing in C language using graphic functioins and to derive a track on which i have to run a car in particular time.. in short i have to make a game in C having the phenomenon to beat the clock

Member Avatar for Member 784361
0
107
Member Avatar for Member 784291

how to make a program run when an external device is plugged in???(program run from the computer not an autorun from the flash)

Member Avatar for NormR1
0
66
Member Avatar for shankarz
Member Avatar for Banfa
0
197
Member Avatar for empror9

hello guys i have some questions and i want you to help me 1- how to find a factorial for a number e.g. input 5 = 5x4x3x2x1 so the is output 120, now please see my code [CODE]int fac = 0 ; int count = 0; int num; cout <<"Please …

Member Avatar for Agilemind
0
349
Member Avatar for CreativeCoding

Well, I am making an upload for people who make games with the Unity game engine. Basically, the engine will build the game and produce an html file and .unity3d file. here is my html form: [CODE]<html> <body> <form action="upload_file.php" method="post" enctype="multipart/form-data"> <label for="file">Index file:</label> <input type="file" name="file" id="file" /> …

Member Avatar for CreativeCoding
0
124
Member Avatar for pmedic

im trying to write a program to make the # someone puts in the prompt multiply this # by 7 how do i make this code ? i have result=Math.pow(number,7); but it does not give me the right answer... m

Member Avatar for NormR1
0
89
Member Avatar for Dan08

Hey everyone, I decided I didn't want to use Tkinter, so now I'm using wxPython, and I'm having some problems, such as getting values from a function to another. I know, it's a bit hard to understand, and I don't even know if this is possible. [CODE=python]import wx class Example(wx.Frame): …

Member Avatar for Dan08
0
96
Member Avatar for gretty

Hello I am new to Java & I have made a simple mortgage interest calculator. [b]I am looking for advice on my program such as:[/b] [i]- Proper java structure - Better more efficient ways of doing what I am doing below - Proper java format(variable names, function names) - Are …

Member Avatar for Cort3z
0
132
Member Avatar for atzaman

Hi guys Wondering if someone could give me a hand with another problem I'm currently having. A little background first... I'm trying to pick up a daily report which is in XML format via a URL. I then need to parse that data and insert it into a MYSQL table. …

Member Avatar for atzaman
0
300
Member Avatar for iamcreasy

A Mobile App development contest is going on in our neighborhood.I want to make a 3d game for this contest. But, I am new in Smart Phone/Mobile device development.I have searched and found few mobile phone game engines, though, they don't specify their exact requirement from phone. After searching a …

Member Avatar for iamcreasy
0
107
Member Avatar for kunkunlol

Ok people, I understand stacks and heaps, but when it comes to recursivity and binary trees, i have a major problem trying to understand this. if someone peopl explain me, how this recur. stuff works, I would be happy! For example, where the value goes, wich function is called and …

Member Avatar for mrnutty
0
152
Member Avatar for cmsc

I was wondering if it is possible to subtract 30 from 4ah? i thought so i can convert the ascii character 'C' to hexadecimal '43', i will just subtract 30h from 43h, then add 30 so it will become 43 again and i will be able to perfrom arithmetic on …

Member Avatar for cmsc
0
192
Member Avatar for makan007

I want to write a java program to read in two integers and then output a random integer number generated between these two integers. Is there any tips? Is there a random Java API (libraries) that I could use? Tks.

Member Avatar for hermann87
0
71
Member Avatar for siggivara

I'm actually trying to do this in objective c, but I belive the theory probarbly are the same for C++. Heres an example of what I want to do with a simple, working, example using an integer: [CODE=c]void func2(int *i) { *i = 2; } void func1() { int i …

Member Avatar for siggivara
0
190
Member Avatar for edie209

Hi this is my first post. I found this site through the need of a php script for my website. Now I'm not much of a coder, I can just about get by ish. I have a website [url]www.saltashcameraclub.co.uk[/url] I have built this site using E107 mainly because I have …

Member Avatar for edie209
0
192
Member Avatar for turnerca902

Hi everyone, I have a fairly simple problem, but having not used python in awhile, I just can't seem to get things working. Basically, I have a text file with a number of comma separated fields (attached). What I want to do is split the string, and extract the "File" …

Member Avatar for turnerca902
0
455
Member Avatar for MarkBrend

Hi, I am writting a dll and want to return a result back to the calling code. I have tried putting:- public string oSQL2XStreamBridge( string Name) public class string oMyDll both of which it does not like... the code below errors because there is a return statment and it says …

Member Avatar for nick.crane
0
120
Member Avatar for ptemedia

Hi, first of all sorry if this has come up before, but I couldn't find it anywhere. I have a working php form which submits data on submit. I need to verify the input fields to ensure they are not empty. I know i need a javascript function to run …

Member Avatar for ptemedia
0
244
Member Avatar for bchaney

Is there a problem with my code? i'm trying to refresh a few form checkboxes based on text typed into machinetxt.text with what is currently stored in the database. i put this into the refresh button click event. here is my code: [CODE]Private Sub machinerefreshbutton_click(ByVal sender As System.Object, ByVal e …

Member Avatar for bchaney
0
170
Member Avatar for Viruthagiri

Hello friends, I have a table which contains file names. For example i have stored a file "java.pdf" in a directory called "course". The file is located here. [url]http://www.something.com/course/java.pdf[/url] Now i stored the file name in a column named "document_filename". I stored it as "java.pdf" Now if a user click …

Member Avatar for Viruthagiri
0
111
Member Avatar for elearnindia

I am trying to create website with [B]PHP,MySQL,Ajax[/B].In my form,the [B]values [/B]of [B]sub-category[/B] [B]select box[/B] are populated according to the [B]value[/B] in the [B]category [/B][B]select box [/B] by calling [B]ajax [/B]function [B]showsubCategory(str)[/B],[B]below [/B]I am showing some of the code: [B]Ajax code[/B]: [CODE]<script type="text/javascript"> var xmlHttp function showsubCategory(str) { xmlHttp=GetXmlHttpObject() if …

Member Avatar for elearnindia
0
126
Member Avatar for Francis Waldron

I'm have trouble getting my area/volume progam going on a circle,cylinder,sphere,cone One with out a menu and onwe with a menu. Thanks for all your programmers help. This is a great site for help.

Member Avatar for Ancient Dragon
0
108
Member Avatar for csinquirer

Sorry guys, I know I should be thinking about this myself but after having all my seven proposals rejected:sad: , I have resorted to daniweb. Please give some ideas for a good thesis topic. If possible, please suggest something with some educational or business potential.:cool:

Member Avatar for Nick Evan
0
528
Member Avatar for hims4u

hello mods!! i am facing a strange problem!! i have redirected a URL via php script using html page!! whenever i open html page it redirects to my php code(script) on page instead of showing me the output of the data that i have put in i.e. the telephone number …

Member Avatar for hims4u
0
166
Member Avatar for artvor

Hello, I'm new in PHP and MYSQL.. I need a small help... Here is what i got: [B] CONDITIONS[/B] [CODE]<form action="update_conditions.php" method="post" > <table class="maxWidth" cellspacing="0"> <tr><td >Method</td><td>Commisions</td><td>Proccess Time</td><td>Min Deposit</td><td>Max deposit</td></tr> <tr> <td> <input type="checkbox" name="ud_bank_wire" value="<? echo "$bank_wire"?>" /> Bank Wire</td> <td><input name="ud_b_w_com" class="update_by" type="text" value="<? echo "$b_w_com"?>"></td> <td><input …

Member Avatar for artvor
0
182
Member Avatar for benhowdle89

Hi, What i have is a variable that is getting updated periodically and i've set the php script to refresh itself every 30 seconds to run a mysql query updating a db, this is good but if this value isnt changing from the source i get duplicate records in the …

Member Avatar for rajarajan2017
0
4K
Member Avatar for Hunter2379

Ok so i'm writing a chat program. My problem is that let's say i write something in the client or server, you only see it once you write something again. How do i make my program refresh it's self? (so it prints things in real time.) Thank You Client Code: …

Member Avatar for NormR1
0
295
Member Avatar for ubi_ct83

Hi all, i want to ask opinion,advice or mayb solution to my problem. i want to add data from this object to an ArrayList<string>.this is my code: [CODE] class Main { static ArrayList<String> test_case_list=new ArrayList<String> (); public static void main(String[] args) { //do argument.... TestCaseGenerator(s,count,test_suite_list); display_list("Final Result",test_suite_list); } private final …

Member Avatar for NormR1
0
234
Member Avatar for peter_budo

I have this long winded query [code=sql]select i.id,i.name, i.item_type_id, (select it.name from items it, relations rel, relation_types relType where it.id=rel.to_id and rel.from_id=i.id and rel.relation_type_id=relType.id and relType.name='CityCtountry') as cityCountry from items i where i.item_type_id=2;[/code] Cut the long story short, we inherited database from customer that hasn't been happy with other company, …

Member Avatar for tesuji
0
215
Member Avatar for bluebird

I try to read a file and display the data on the TextField. But it does not read the next line. For example, for two lines, How are you? Long time no see. I remember you. The program does not show the sentence "I remember you" How should i do …

Member Avatar for bluebird
0
74
Member Avatar for bryandan

hi, hmm guys i want to know what are the common kinds functions is visual basic.net .?? any answer please .

Member Avatar for G_Waddell
0
79
Member Avatar for iHacker

I've been trying to work on a personal project, in which the user enters in a text string in the first text box, and when the user clicks the "encrypt" button, the SHA1 hash of the text appears in the next text box. I've googled around for some information on …

Member Avatar for Teme64
0
286
Member Avatar for QWaz

Hi, I am trying to make a list of products with the product heading at the top. and trying to make it dynamic. I have put a foreach() inside another foreach(), I have all the info in the database, however nothing is displaying. So I am stumped.???. $sql = "SELECT …

Member Avatar for rajarajan2017
0
101
Member Avatar for rapids79

I'm working on a code that enables the user to input a string , compare it to some text in a file then send the approriate data ( from another file) using serial communication or TCP/IP. I ahve implemented the serial communication part but the TCP/IP..I've looked around but have …

Member Avatar for technology
0
157
Member Avatar for kiranbvsn

hi there, i've one requirement i am using a button in three different rows [CODE] for example ( <tr id="tr1"> <td/> <tr id ="tr2"> <td/> <tr id="tr3> <td/>) [/CODE] here i am using one button control (instead of 3 buttons) in 3 different rows now in button onclick event, how …

Member Avatar for kiranbvsn
0
93

The End.