199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for whoadiz

Hey there everyone, first post here so please excuse any mistakes :) Ok so I have this assignment here: Suppose the weekly hours for all employees are stored in a two dimensional array. Each row records an employee's seven-day works hours with seven columns. For example, the following array stores …

Member Avatar for BestJewSinceJC
0
260
Member Avatar for habibur

Hi all, I have a C program namely NetLibExample.c.I have compiled it to get a NetLibexample executable in RHEL5. It is successfully running from the terminal itself by the syntax: ./NetLibExample I have written a shell script to call the same.The shell script is test.sh **test.sh** cd /working/AVClient mkdir habib_test …

Member Avatar for freesoft_2000
0
268
Member Avatar for Andy_nexus

Hey all, need some advice. which would you say was more efficient i've checked the execution times of both scripts and they average out about the same tbh, just wondered if one way was a 'better' way of doing it. Code 1 [CODE=php] <?php $url_home = 'url'; $top_10 = "SELECT …

Member Avatar for jomanlk
0
155
Member Avatar for Xessa

I want to write this. [b]Last[/b] night i dreamt of [b]San Pedro[/b]. How can I write this with 1 PdfPCell

Member Avatar for quuba
0
110
Member Avatar for akkkk

Hello, can somebody tell me why I get a parse error in this file? The error message is on line 20 according to the error log, the last line. [CODE]<?php // errormsg.php function error($msg) { ?> <html> <head> <script language="JavaScript"> <!-- alert("<?=$msg?>"); history.back(); //--> </script> </head> <body> </body> </html> <? …

Member Avatar for akkkk
0
247
Member Avatar for Qmage

This is just part of my code. For some unknown reason, the value of staff is correct after using copy constructor, however, once it goes out of the loop, 2 of s value's turn into -858993460, other values stay fine, look at the red lines part of the code [CODE] …

Member Avatar for Qmage
0
402
Member Avatar for anbuninja

so im trying to practice writing a few programs that might have to do with my upcoming test soon. in this program i wanted the user to enter a test score and it couts the letter grade. doesnt work properly it couts the test score instead of the letter grade. …

Member Avatar for dgr231
0
166
Member Avatar for NinjaLink

I started a new thread since my last thread was getting to long. I am using stacks to find out if a string of characters is a palindrome, is not a palindrome, and is almost a palindrome. However, my output comes up and then disappears when i compile. So far, …

Member Avatar for VernonDozier
0
145
Member Avatar for s28walters

I am a new SQL user and I have created my code but when I execute it I get this error : [COLOR="Red"]Msg 2714, Level 16, State 6, Line 1 There is already an object named 'Job_Title' in the database.[/COLOR] I do not understand why I keep getting this same …

Member Avatar for spthorn
0
130
Member Avatar for peck3277

Hi all, I've tried searching both here and google for help on this one. I'm not quite sure what to call it basically I have a directory with different files all .txt. I want to display only the ones beginning with letter A. How do I modify my below code …

Member Avatar for ShawnCplus
0
123
Member Avatar for j_limboo

Lately I have learnt many things from Daniweb specially on PHP and mysql. I am building a HR application where I was looking for visitor to leave a message and which should redirect to admin or who ever is responsible Any suggestions is greatly appreciated

Member Avatar for j_limboo
0
90
Member Avatar for fferrandini

Hello, I got a python script to send emails for my clients , that script is fired whenever i got new products in the store. i have like 4000 emails, but the server pops me an error when it hits the 1000 email. The error says the limit is 1000. …

Member Avatar for Gribouillis
0
192
Member Avatar for hdk

Hi, I am having trouble producing my chart in the wx python gui. Keeps giving me an "ABORTED" message. Could you help if possible please? Code below : [CODE]import wx import cx_Oracle import datetime import wx.grid import csv import numpy as np import matplotlib.pyplot as plt import matplotlib.mlab as mlab …

Member Avatar for hdk
0
409
Member Avatar for ankur_

Hi, Has someone got a code of skip list(in link list). Skip list is a list through which we can do binary search in a link list Thanks....

Member Avatar for ankur_
0
89
Member Avatar for rui_esi

Hi, Newbie to this python lark so please forgive any silly questions - thank! Have installed various versions of python from 2.4 to 2.6 all with same issue. Current install is 2.5.4 AMD64 on XP64 platform. Python IDE doesn't do anything at all Python command line reports >> 'import site' …

Member Avatar for rui_esi
0
2K
Member Avatar for shishtawitch

how can i fix use of undefined constant in php.ini so that [B]constant[/B] and [B]"constant"[/B] should not gives me any error

Member Avatar for Atli
0
156
Member Avatar for NICEGUY123

I need some help with a problem. I am attempting to insert numbers into a binary tree, then converted it to a rbtree, just curious on how i can change it over i know that 10 (black), 4(red), 5(black), 6(red), 11(red), 12(black), 13(red) as my input. int a[] ={10, 4, …

Member Avatar for Tom Gunn
0
97
Member Avatar for platinn

Hello , I have just started dealing with OpenCV and tried to open an sample.I am using version b4a. And when i opened a sample source file(for example:face detect). I compile source file(face detect) and it(visual stdio 6.0) gives 0 error or warning. But when i tried to run it …

Member Avatar for Muaz AL-Jarhi
0
391
Member Avatar for merse

I have the following integral function with Simpson's rule: [CODE] typedef double real; typedef real real_func(real); real Integral(real_func func, real a, real b, unsigned int N = 1000) {...} [/CODE] It works like: [CODE] real myfunc(real x) { ... } Integral(sin,1,2); Integral(myfunc,1,2); [/CODE] But does not work with a public …

Member Avatar for Tom Gunn
0
151
Member Avatar for anup.maverick

Hi, I want to create a Forum System in asp.net 2.0, Its better that i download the open source from microsoft, if anybody has Link for this source code, then please give it to me.. Or Suggest what should i do? Thanx...

Member Avatar for Ramesh S
0
84
Member Avatar for Viwe

[B]I am trying to prepare a report detailing all jobs entered into program sorted by customer and then by project name. Also produce a report for total products for all projects in database.[/B] I am able to create diferent classess (Component) for all my formular product calculations and then reference …

Member Avatar for Viwe
0
162
Member Avatar for ankur_

I am not able to find a good MFC Tutorial. Do anyone has got a link for a MFC Tutorial which consists from basic to advance.

Member Avatar for Ancient Dragon
0
175
Member Avatar for vishalanuj

[CODE]<%@ page language="java" pageEncoding="ISO-8859-1"%> <%@taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@taglib uri="/WEB-INF/struts-html-el.tld" prefix="html_el" %> <%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/c.tld" prefix="c" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Listing all cities</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <center><h3>city List</h3></center> </body> <html:form action="/UpdateSuccessAction.do" > <c:forEach …

Member Avatar for vishalanuj
0
139
Member Avatar for kazit

Hi I have a problem which i cant seem to solve or font really know where to start im only starting learning c# so dont have a lot of experience. Basically my problem is that i intend to loop through a directory of .tif images which contain BW and Colour …

Member Avatar for rajishms
0
197
Member Avatar for gauravagg2

HI Friends i am preparing for scjp 6 and i have started studying kathy sierra plz tell me that what more should i study and how should i study to crack scjp 6 plz reply with ur suggestion and experience...

Member Avatar for peter_budo
0
165
Member Avatar for skurenak

I am an absolute beginner with javascript and have no idea how to solve this one. got a function fu() which should display the NAME of the image upon onmouseover,but when I try it,all the images show the same name,although they have different names in the code. I thought the …

Member Avatar for skurenak
0
103
Member Avatar for Facte

Hi there everyone. Does anyone have any idea how to stop my xml feed displaying # instead of Ā£ and companys instead of company's. I've tried everything I can think of. In UTF-8 it won't show hardly anything in ASCII it works but still spits out the errors above. [CODE] …

Member Avatar for network18
0
99
Member Avatar for moin123

i jus want to submit Rss feed to google... i am not sure how to do it.plz help me <FAKE SIGNATURE>

Member Avatar for sylstain
0
149
Member Avatar for dhanh90

why the do-while couldnt return the main body when i did once.when I input n<2 and press enter, it stops and turns to error. i dont know why?could i any one told me why and how to change it and is there another code to do this loop( instead do-while).thanks …

Member Avatar for javaAddict
0
175
Member Avatar for ashu2409

Hi, i have created a sp, that is taking too much time (more than 35 sec, is it more?). [Code] SELECT top 11 ROW_NUMBER() OVER (ORDER BY hjs_job_details.date_posted desc, KEY_TBL.RANK desc) AS Row, job_id, (case when len(job_title)>59 then (substring(job_title,0,59)+'...') else job_title end ) as title, company_name as Source_Org, source_company_name as …

Member Avatar for ashu2409
0
311
Member Avatar for kcasmir

Hi, I want to generate an unpredictable random integer number but i dont know how. Below is my function to generate between (1 to 8)which keeps returning '6' on first run which is predicted and also, i dont want the numbers to repeat itself. Private Function RandomIt(Hv As long, Lv …

Member Avatar for kcasmir
0
107
Member Avatar for oded_r

i want to cast this two typs HtmlDocument doc = Webbrowser.Document; HTMLObjectElement FirstElm = doc.All[0]; how can i do it

Member Avatar for sknake
0
116
Member Avatar for romanne

Hi, Im new in C#, could you help with my codes. I need to connect to MS SQL DB (2000) and need to call Stored Proc to return value. Here is my codes: [CODE][COLOR="Green"]private void ExecuteStoredProcs() { SqlConnection conn = new SqlConnection(connectionString); try { conn.Open(); SqlCommand getRequestCmd = new SqlCommand(SP, …

Member Avatar for sknake
0
111
Member Avatar for waleed66

Hi, I am creating a website where users will be able to submit forms. In the form they will be able to submit text and uploaded images. With regards to uploaded images, once they are submitted, what is the best way to save them? Is it to a MySQL database …

Member Avatar for sylstain
0
91
Member Avatar for Gribouillis

Does anyone know how I can test if an object's type is a builtin type or a user defined type ?

Member Avatar for Gribouillis
0
171
Member Avatar for teteret

hi...i have a project to do which simulates a calculator, quiz and chat session....i finish writing my code but i have no idea how to write the pseudocode since classes and functions are involved....can someone pls give me an example of a pseudocode that has both functions and classes cuz …

Member Avatar for chipepalf
0
144
Member Avatar for sfuo

I am making a rubix cube game in OpenGL and I have run into a problem with rotations. When doing multiple rotations (x, y, z) the axis gets rotated as well (ie when doing an x-axis rotation of 90 or 270 deg the y-axis becomes the z-axis and z-axis becomes …

Member Avatar for mrnutty
0
144
Member Avatar for racumin

Hi, from my understanding, if you initialize an object without the "new", it will be only saved in the stack. If the method exits, the object is destroyed. Is that correct? What about this code? [CODE] int main() { string xxx = getText(); cout << "from main() " << xxx …

Member Avatar for mrnutty
0
133
Member Avatar for OldGrantonian

As an amateur weekend programmer, I find that the easist way to learn how a program works is to step through the program using my IDE debugger. Using breakpoints is obviously the best way to step over code that doesn't interest me. My problem is that in some large programs, …

Member Avatar for OldGrantonian
0
84
Member Avatar for Prakash.J

hi, i am sending u d code i hav written......when i execute it...it displays d no. of msgs in inbox n after tat gives a runtime error [ at d line: MAPIMessages1.Send() ] saying tat: An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in microsoft.visualbasic.dll Additional information: Unspecified Failure has occurred …

Member Avatar for ahura
0
113
Member Avatar for shishtawitch

guys i am trying to host a site on my own home server but when i make virtual host in httpd.conf like following NameVirtualHost *:80 [code=xml] <VirtualHost *:80> ServerName [url]www.mydomain.com[/url] DocumentRoot c:/wamp/www </VirtualHost>[/code] it gives me the following error [B]Forbidden[/B] You don't have permission to access / on this server. …

Member Avatar for network18
0
51
Member Avatar for xonxon

[code] import java.util.*; public class course { static Scanner sc=new Scanner(System.in); public static void main(String[]args) { String name,students,addStudent; int numberOfStudents; String courseName,getName,getStudents; int getnumberOfStudents; Course course1=new Course("C++"); Course course2=new Course("Java"); course1.addStudent("Peter"); course1.addStudent("Brian"); course1.addStudent("Anne"); course2.addStudent("Peter"); course1.addStudent("Steve"); System.out.println("Num of student in course1:"+course1.getnumberOfStudents()); String[]students=course1.getStudents(); for (int i = 0; i < course1.getNumberOfStudents(); i++) …

Member Avatar for xonxon
0
112
Member Avatar for Oskowich

I have a DataGrid that I create dynamically in codebehind. I add events to the datagrid, it works fine except of the SortCommand event. It will not fire. If I change my page_load to create and bind the datagrid everytime when a postback it works. But I donĀ“t want to …

Member Avatar for Oskowich
0
260
Member Avatar for DemonGal711

I've been working on this code to get data from a website and bring it back to my page so that I can use it. I've got that and I have another script to create an image from the line I got from the site so I'm good so far. …

Member Avatar for DemonGal711
0
89
Member Avatar for the_programmer

Hi; I'm sorry if this is a really newb level question. I have a register script and a login script. Both of my scripts work great seperatly until I include the login script with the register script. I know you aren't allowed to have two headers on one page and …

Member Avatar for network18
0
100
Member Avatar for Nishara

Hi I am trying to insert data into a sql server database table using sqlDataAdapter and adding newrow method.But the values entered are not saved in the database.What I did is............ [CODE] string sql = "Select * from Users"; dataCmd.CommandText = sql; SqlDataAdapter da = new SqlDataAdapter(dataCmd); da.SelectCommand = new …

Member Avatar for DanielGreen
0
840
Member Avatar for chiraag

Hi all, I am a beginner to coding. Forgive me if my question is too silly. What I would like to know is can dynamic allocation in a loop result in shortage of memory. what I am trying to do is find FFT of a large no of images in …

Member Avatar for chiraag
0
234
Member Avatar for mjenn2

A few years ago I wrote a mysql/php website, recently the host went bust and it has moved hosts but now quite a lot of the site gives errors - mostly the new server just gives me 500 - internal server errors. I've fixed a few of the problems that …

Member Avatar for network18
0
111
Member Avatar for therockey123

I have connected a sensor to serial port of PC and want to read incoming data from Serial port in C#. Below is code snippet. I tried to iterate through all the ports and open each port to check if device is connected to any port so that i can …

Member Avatar for sknake
0
2K
Member Avatar for FBIRyan

The idea is to have many MessageBox() calls, each within their own thread. The catch is, each thread has to be dynamically created. At first, being a noob, I tried this: [CODE]void Go[10](void) { MessageBox(NULL, _T("..."), _T("..."), MB_OK); } .......... CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Go[i], NULL, NULL, NULL); [/CODE] That, obviously, didn't …

Member Avatar for FBIRyan
0
122

The End.