199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 | |
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, … | |
[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() … | |
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 : "; … | |
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.... | |
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? | |
[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 … | |
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 … | |
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 … | |
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 | |
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 :) … | |
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 … | |
//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 … | |
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 … | |
some one help me with visual basic bus management system please | |
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 … | |
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 … | |
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. … | |
![]() | 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 … |
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.. … | |
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, … | |
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 … | |
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; … | |
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] | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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); … | |
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 … | |
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") … | |
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 ? | |
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 { … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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] | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … |
The End.