199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for homeryansta

Greetings fellow programmers! I'm doing a computer vision project in my AI class and am looking for some tips. My task is to read a bitmap into memory and alter that image file and find an object within it. In my case, I'm searching for a box that appears in …

Member Avatar for Taywin
0
149
Member Avatar for khaled_jawaher

how can i associate jar files with java.exe not javaw.exe in window 7,since if jar file is associated to javaw.exe,then console is not displayed. thanx

Member Avatar for JamesCherrill
0
333
Member Avatar for atramposch

I have no syntactical errors, but i cant figure out why this wont work. Heres the code. [CODE]#include <stdio.h> #include <string.h> #include <ctype.h> #include <math.h> int main (void) { char str[100]; int i = 0, line_count = 0, len = 0, alpha = 0, lower = 0, upper = 0, …

Member Avatar for Taywin
0
335
Member Avatar for rje7

[code] public class Animal { public void eat() { System.out.println("I eat like a generic Animal."); } public static void main(String[] args) { } } class Fish extends Animal { @Override public void eat() { System.out.println("I eat like a fish!"); } } class Goldfish extends Fish { @Override public void eat() …

Member Avatar for javaAddict
0
170
Member Avatar for timb89

im trying to get my code to perform dijkstra's algorithm on my adjacny matrix, it works great for the inital row (0) but i cant get it working for any other value?! [CODE]void dijkstra (int a[size][size], int matSize, string CityID[size]) { string startCity; cout << "Enter start city : "; …

Member Avatar for Taywin
0
150
Member Avatar for daffi_gusti

Dear all, any one knows how to print string out based on combination using php. the string a b c d will print a b c d ab ac ad bc bd cd abc abd acd bcd abcd Thanks in advance....

Member Avatar for monica singh
0
149
Member Avatar for killbill07

I have a folder with pics and I need to use scandir() to show all images in a html file. But scandir returns, for example, "image.jpg1". Why? How can I do that withouth problems?

Member Avatar for monica singh
0
159
Member Avatar for khurramraja

[CODE]<script language="javascript" type="text/jscript"> function showhide(layer_ref) { obj = document.getElementById(layer_ref); if (obj.style.display == "none") { obj.style.display = ""; } else { obj.style.display = "none"; } } function changepic_menu(arrow) { obj = document.getElementById(arrow); if (obj.src.indexOf("arrow_up.jpg") > 0) { obj.src = "../image/arrow_down.jpg"; } else { obj.src = "../image/arrow_up.jpg"; } } </script>[/CODE] this code …

Member Avatar for khurramraja
0
78
Member Avatar for nikc121

Ok so here is a good one. "Must display an image and three buttons. The buttons should be labeled 1, 2,3 and when pressed each button should changed the content of the image to that of a different image. This is due before MIdnight, and I have tried everycode I …

Member Avatar for Taywin
0
203
Member Avatar for adams161

I figured out how to make indentation with [code=java] SimpleAttributeSet style = new SimpleAttributeSet();// = doc.addStyle(null, null); StyleConstants.setLeftIndent(style, 12); StyleConstants.setFirstLineIndent(style, -12); [/code] and then use doc.setParagraphAttributes(doc.getLength(), 1, style, false); after the insert into document. now numbers there doc.getLenght(), 1, i've been changing around but always same issue. The problem is …

Member Avatar for adams161
0
193
Member Avatar for prayag.419

i have just entered T.Y.B.Sc.I.T 6th sem. and i am confused which project topic should i select, can anyone help plz. Project wourth is 200 marks

Member Avatar for Naveed_786
0
73
Member Avatar for steelshark

Hi, I was wondering if it is possible to create thumbnails automaticly from images when they are uploaded to the server?I would need a seperate file for the thumbnails... Does anybody have any clue of this?I was thinking in the direction of jquery but i dont know for sure :) …

Member Avatar for Taywin
0
82
Member Avatar for ivan3510

Hi! Sorry for my bad english! I want to make HTML editor (editor with tags, like this on daniweb) with tables. Here's the problem: If user writes [TABLE], I made that this replace with <table>. If the user write, eg. [TABLE:BORDER=1;WIDTH:300;], it will change this to <table border=1 width=300> Here's …

Member Avatar for ivan3510
0
87
Member Avatar for saadi06

//i have a problem i have made an edit page and it is working properly and i have done image uploading in it but if the user updates without uploading any image its previous image is removed can any body help me how to get the previous image my code …

Member Avatar for saadi06
0
167
Member Avatar for Chris Ewe

Hi, appreciate if you can spend few minutes to analyze the problem below and shed some lights. Thanks I would like to Sum up MTD Value and separate by employee ID. I've used SUM(MTD_Value) and Group By Employee_ID but is not work. Thanks [B][U]VB.NET Coding[/U][/B] [code] Dim connetionString As String …

Member Avatar for kvprajapati
0
104
Member Avatar for tyras
Member Avatar for AndreRet
0
108
Member Avatar for zulhimi89

Hi experts, I'm using vba to do my coding. I have to check whether the data exists in the db or not. so I'd done this to check it. [code] Set rs = New ADODB.Recordset With rs .Open "pr_q", cn, adOpenKeyset, adLockOptimistic, adCmdTableDirect curr_year = Year(Date) q = 4 .MoveLast …

Member Avatar for AndreRet
0
87
Member Avatar for jmcorpse

I want to say thank you to everyone in advanced for all the help that has been provided. I am currently stuck on two more items on this program. Currently I am completely stumped on how to create a bar graph using the information gathered by the program. Some reason …

Member Avatar for jonsca
0
99
Member Avatar for johntech2001

I am working through the book Beginning Visual Basic 6 Database Programming by John Connell. I have finished the section on Building a Data Control Class Module and have created a nice Book List program for my wife. I am using the DAO database control as shown in the book. …

Member Avatar for AndreRet
0
608
Member Avatar for JayGeePee

I have mySQL v.5.3 I think... I cannot figure out what is going on. Ive searched high and low and cant find an answer as to why i keep getting a syntax error. Heres the error I keep getting. [code] You have an error in your SQL syntax; check the …

Member Avatar for smantscheff
0
197
Member Avatar for niths

hi all, i need to save the uploaded image in some images folder with uploaded date folder and then image like images/2010-11-01/image.jpg can any one help me.. i tried this...it is working fine but wat i want is i need to create uploaded date folder and save in that folder.. …

Member Avatar for niths
0
122
Member Avatar for vivi288

Hi guys, you've helped me out before and I'm hoping you'll be able to help me out again. This is actually a two-part question. I have a gallery which I'm trying to create, and while the current code I have works with one table only, but after doing union selects, …

Member Avatar for vivi288
0
142
Member Avatar for phaedrusGhost

Hi all, I am totally pulling my hair out at the moment. The pages I have included sessions on all work great except when I make submit a form or basically anything I do in relation to MySQL. Is there a typical reason as to why this would happen? So …

Member Avatar for phaedrusGhost
0
83
Member Avatar for numancia

Hi guys I need help with my C# winform app below/attached the code Thanks. -------------------------------------------------------------------------------- [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; namespace ListOfRunners { public partial class Form1 : Form { //protected Runner runner; //protected List<Runner> listRunner; …

Member Avatar for numancia
0
203
Member Avatar for Chargerfan

how do i receive two separate inputs from the same text box? here is what i have so far: [CODE] c1 = textBox1.Text; textBox1.Clear(); c2 = textBox1.Text; [/CODE]

Member Avatar for kvprajapati
0
71
Member Avatar for Tellalca

How is it possible to delete a byte ( char, int, double .. ) from a text file ? Suppose that the file.txt contains :"110Hello". And I want to delete "110" from the file leaving only the "Hello" part. How to do this without reading the whole file into the …

Member Avatar for WaltP
0
74
Member Avatar for adaniel058

[ATTACH]17854[/ATTACH] [ATTACH]17855[/ATTACH] [ATTACH]17856[/ATTACH] Guys I am trying to help a friend of mine with this project they have due in a few days and because I program in Java mainly I am a bit rusty with this. I can not figure out why my getInput function shows up under the …

Member Avatar for adaniel058
0
140
Member Avatar for littleCuteMaria

I am working on a control break algorithm in C, and part of this algorithm is to have while loop check for the end of file and whether two strings equal each other. the first string is a part of a typedef struct structure called 'record' [I]rec.state[/I], and the second …

Member Avatar for Ancient Dragon
0
123
Member Avatar for kesh1000

please can anyone tell me why this script doesnt seem to work.thankz [CODE]<script> function calculate (){ var age = document.getElementById('age'); var amt = document.getElementById('amount'); var plan = document.getElementById('plan'); var ben1 = document.getElementById('benefit1'); var ben2 = document.getElementById('benefit2'); var yrs = document.getElementById('length'); var ap = (amt.value/yrs.value)+Math.pow((100*Math.sqrt(age.value/(55*yrs.value))),2); document.write('annual premium'+ap); } function checkplan(){ var …

Member Avatar for kesh1000
0
90
Member Avatar for purijatin

Hello I am making an project in Netbeans and the following is my problem: I deleted some of my .java files of my project and later copy pasted the same files. Now the code runs perfectly fine but Netbeans doesnt detect the packages. I mean inside the code it shows …

Member Avatar for purijatin
0
102
Member Avatar for Rez11

The point of the program I am making is to have a pure abstract base class called BasicShape and have 2 child classes, Circle and Rectangle. I have the program written but with one unresolved error. [B]Main.cpp file[/B] [CODE]#include "Pure.h" #include <iostream> using namespace std; int main() { Circle pizza(2,2,10); …

Member Avatar for Rez11
0
968
Member Avatar for watery87

Hi guys, im having problems verifying date. My exact problem is that even if user inputs an incorrect condition, the system still stores it into the class. My question is, where do i put the conditions so that the error gets printed AND the user gets to reinput that value …

Member Avatar for watery87
0
120
Member Avatar for swathys

hi, when i run the code below its hit the error [COLOR="Red"]Index was outside the bounds of the array.[/COLOR] in a place that i highlight in red. Please help [CODE] Dim crParameterFieldDefinitions As ParameterFieldDefinitions Dim crParameterFieldDefinition As ParameterFieldDefinition Dim crParameterValues As New ParameterValues Dim crParameterDiscreteValue As New ParameterDiscreteValue rpt.SetDatabaseLogon("sas", "123") …

Member Avatar for swathys
0
843
Member Avatar for widapol

Hi all, I want to send a file to my gmail over socket. Reading a file and writing it to socket is simple but actually I donot know how to implement SMTP over socket. Could anyone tell me how to do it ?

Member Avatar for group256
0
102
Member Avatar for Dazaa

I am sure there is nothing wrong with this... I am racking my brain as to why it wont compile. [CODE] #include <iostream> #include <string> using namespace std; class Vehicle { public: Vehicle(); Vehicle(string m, int y); void print() const; protected: string model; int year; }; void Vehicle::print() const { …

Member Avatar for group256
0
103
Member Avatar for poojabi

between merge sort and binary insertion sort which is more efficient?i know that theoritically both are nlogn search bt practically which will be better.that means if we plot the graph of number of comparison vs number of element in the list hose slope wll be slightly more than the other.and …

Member Avatar for Adak
0
627
Member Avatar for Hawkpath

Hi, I'm trying to create a simple program in Win32 and I can't find how to accept input in the form of text. Like "What's your name: ___" then the user enters their name and my program can evaluate the input. I have already googled this for a long time, …

Member Avatar for Frederick2
0
504
Member Avatar for triumphost

kk so I am having a problem on a mac where the audio doesnt work very well unless my finger is on the touchpad... it works perfectly smooth... I want to write code to detect whether the finger is there or not and if it isnt then move the mouse …

Member Avatar for triumphost
0
181
Member Avatar for avocado_juice

Hi, I have this code. It is not working properly. Anybody may know the solution? Thank you [CODE]<?php include 'admin_homepage.php' ?> <div id="sidebar1"> <b></b><br /></br></br><img src="MMU_logo.jpg" width="180" height="150"/><br /> <a href="admin_view_student.php" style="font-size:13px" >View Student</a><br /> <a href="admin_new_student_reg.php" style="font-size:13px">Add Student</a><br /> <a href="student_excel.php" style="font-size:13px">Get Excel File</a><br /> <a href="student_mailing_list.php" style="font-size:13px">Get Mailing …

Member Avatar for avocado_juice
0
840
Member Avatar for Gatsby

Hi, All! This is my first ever post at the DaniWeb forum, and I'm very glad to be here. I have background in Web Development, though I am recently making a change over to Application Development, with an emphasis on Mobile Apps. That said, I just recently began using the …

Member Avatar for Gatsby
0
97
Member Avatar for emko

Hi, I need to make a simple calculator that just does addition and subtraction. But the program should keep a running total of the calculations entered like this: sum = 0 12 + 3 sum = 15 5-2 sum = 12 1+1 sum = 13 But it also needs to …

Member Avatar for emko
0
398
Member Avatar for HoneyBadger

I am trying to add two hexadecimal numbers. [CODE]def addbinary(n1,n2): s = "" carry = '0' for i in range(3,-1,-1): if (n1[i] == '1' and n2[i] == '1' and carry == '0'): s = '0' + s carry = '1' elif (n1[i] == '1' and n2[i] == '1' and carry …

Member Avatar for HoneyBadger
0
458
Member Avatar for zwench

What does this mean and how can I fix it? An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll Additional information: Index was out of range. Must be non-negative and less than the size of the collection. [CODE]dgtsCustomers.GridColumnStyles(0).HeaderText = "Factory ID" dgtsCustomers.GridColumnStyles(0).Alignment = _ HorizontalAlignment.Left[/CODE]

Member Avatar for samina228
0
161
Member Avatar for timb89

anyone have any ideas? for some reason uni forgot to include lectures notes on this, yet decided to base homework on it. i get the general idea just not sure how to implement it.

Member Avatar for SasseMan
0
3K
Member Avatar for qbmike

Hi, I am relatively new to JAVA and especially SQL and I am having trouble with a "cannot find symbol error. I believe it is at this line catch: "catch(SQLExeception e)". Any advise would be greatly appreciated. Thanks, Mike NetBeans code looks like this: [code] import java.sql.*; public class Book …

Member Avatar for qbmike
0
180
Member Avatar for vijay.neo

Hi friends, As i a writting small C program to pass the structure pointer in the function. i am endup with small problem, plz let me know how to crack this one? ///////////////// [code] void function1(void *); void main() { int size_offset = 0; typedef struct { int a; int …

Member Avatar for ahmad chehade
0
206
Member Avatar for jack223

It's from my homework assignment Question 1) Based on the O notation, approximately how many swaps and comparisons occur when Selection sort is called on a worst-case array of length 8? a) 16 b) 64 c) 100 d) 800 Number of swaps = O(n) which is "8" and Number of …

Member Avatar for Adak
0
153
Member Avatar for bio-grad

I received the following error, but I don't understand how to fix it. Help? "readline() on closed filehandle IN at transcribe.pl line 21." [CODE]#!/usr/bin/perl #transcribe.pl #convert DNA to RNA (T to U) use strict; use warnings; #TASK: Read DNA sequences from ‘DNAseq’ input file – #there is one sequence per …

Member Avatar for bio-grad
0
3K
Member Avatar for arithehun

I have joined our local high school's FIRST robotics club, but their programmer graduated last year, so who got selected? The wimpy freshman: me! I am an intermediate programmer (PLEASE don't look at my previous posts, I now know two languages, and am better). So I downloaded an instruction booklet. …

Member Avatar for arithehun
0
1K
Member Avatar for Bladtman242

This is probably really more of a math problem. I hope I want have to go into too much (for you, boring) detail about the code, as the problem resides in this loops. Please let me know if I provided too little detail :) Now for the problem: I would …

Member Avatar for Bladtman242
0
269

The End.