199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Mr. Shannon

Hello, I have been working on a website at my college (not coursework) that uses Pylons and Genshi. To avoid Genshi parsing the JavaScript code in a template I moved the JavaScript to a separate file. The problem is I tried putting the .js file in the templates directory (where …

Member Avatar for Taywin
0
176
Member Avatar for hardsoft123

I have been stuck on this program for MANY DAYS and I really need help. I am a total NOOB! I don't know what more to do. I am far too confused. THIS IS WHAT MY PROGRAM SHOULD OUTPUT: Play the game of Precaution. Try and create as many unique …

Member Avatar for Ezzaral
0
251
Member Avatar for TannerT

Hello all. I am in the process of piecing together a software project that I plan to use in the day-to-day operation of my service business. I'm sure this will be a simple question for someone here. I will be tracking employees, service tickets, clients, & client IT Assets. I …

Member Avatar for Ezzaral
0
138
Member Avatar for Lost Monk

Hey people! Very happy to join Daniweb :) I'm having trouble retrieving form data via php thereby sending it to email. My code is as below. I've listed entire code though problem is only in declaring the selectlist value for POST processing. I've highlighted troubling part in red color. There …

Member Avatar for ddymacek
0
214
Member Avatar for valestrom

Hi, I got the error C2064: term does not evaluate to a function taking 2 arguments The error is in line 76, help would be great. Here is my code: [CODE]#pragma once namespace ValestromsCalculator { using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms; using namespace System::Data; …

Member Avatar for valestrom
0
479
Member Avatar for jtodd

Hey guys! I am kind of new to Java and am having issues understanding why this code will not run. Any advise would be greatly appreciated! Thanks in advance! [CODE] // Phone.java // Program creates a GUI that resembles a phone with functionality. import java.awt.*; import java.awt.GridLayout; import java.awt.event.*; import …

Member Avatar for JavaStudent321
0
432
Member Avatar for rameezsadikot

Hi, I am building a database that will be populated with financial data. Taking into account what the data looks like, how the data will be organised, what I am trying to do with this data, my hardware, budget and competency, I am looking for the most efficient design for …

Member Avatar for MartinPlatt
0
240
Member Avatar for calebcook

Hi. I have a system where a user fills out some information. There can be multiple answers, so I've made a script that adds a new text box if you click a button. My problem is, I don't know how to process it in PHP. The script will create a …

Member Avatar for cereal
0
174
Member Avatar for jalo4

[img]http://i.imgur.com/ACkqA.png[/img] Create an E-R diagram for a medical clinic, using the following business rules. Use Crow's Foot notation: • A patient can make many appointments with one or more doctors in the clinic, and doctor can accept appointments with many patients. However, each appointment is made with only one doctor, …

Member Avatar for MartinPlatt
0
1K
Member Avatar for NoUserNameHere

This topic is really hard for me to grasp. I tried making a program to test out operator overloading and I can't seem to get it to work. [CODE]#ifndef TESTCLASS #define TESTCLASS using namespace std; class testClass { public: testClass(double, double); friend testClass operator+(testClass& a, testClass& b); private: double num1, …

Member Avatar for NoUserNameHere
0
145
Member Avatar for hughesadam_87

Hey everyone, this should be simple, but I keep running into errors so help is greatly appreciated. I have a large class, call it class A, which has several methods. Most of these methods modify data. [CODE]ClassA() def __init(X,Y,Z) ... .. def data_mod1(): ... def data_mod2(): ... [/CODE] I'm dealing …

Member Avatar for TrustyTony
0
2K
Member Avatar for BoBok2002

Hi, I have this code snippet (see below) that I'm working with. I keep getting the above error. Can anyone tell me what I'm doing wrong and how to solve it? Thanks. [CODE] private static Image<Bgr, Byte> GetImageFromIPCam(string sourceURL) { byte[] buffer = new byte[300000]; int read, total = 0; …

Member Avatar for BoBok2002
0
576
Member Avatar for suunker

Hey! I'm going to make a windows service file watcher program. What it going to happened is that some time during the first day of each month, files are going to be added to a directory on the web server. The files are going to look pretty much like this: …

Member Avatar for MartinPlatt
0
311
Member Avatar for michael123

I created a from which includes a textarea, this data will be saved to mysql, when I retrieve it, I want to only display the first two lines of this textarea data(ignore the rest), and only limit to text format(not html), how can I do that? If I continue to …

Member Avatar for cicovy
0
196
Member Avatar for divin757

I am having trouble debugging in sharepoint. It is acting like I am debugging a different dll than the one I made code for. When stepping through it will skip lines occasionally and randomly just stop debugging. Often it will start debugging then stop randomly and show any new breakpoints …

Member Avatar for divin757
0
190
Member Avatar for coolsasuke

Hi, i would like to enquire if there is a tool out there which will convert c# project to a vb.net source? I think it is possible , but i do not know which tool to use.. Thanks in advance . :)

Member Avatar for MartinPlatt
0
272
Member Avatar for Jamblaster

Title says it all: I am wondering in what kind of situations a programmer would use a union vs using a structure. I'm pretty new to this stuff and my book only devotes about 2 pages to Unions so it isn't the best source of info on Unions really, but …

Member Avatar for rubberman
0
493
Member Avatar for Andy90

I want to make an application in vb.net which will allow user to use mouse in a different way. i.e Dwell Clicking. Suppose user moves mouse pointer at particular location and if the user doesnt move the mouse pointer from that location for 2 seconds then single click will be …

Member Avatar for Unhnd_Exception
0
224
Member Avatar for ITHope

So when I compile it says i'm missing an if statement at line 38/39 but im using nested else if's and when I take it out it causes more errors. [CODE]import java.util.*; public class lhlBanking { static final double servicecharge_savings = 10.00; static final double servicecharge_checking = 25.00; static final …

Member Avatar for NormR1
0
153
Member Avatar for bkimbriel

Hey guys, I've been working on this for like 2 days now and I know it's something pretty simple to do, I'm just a rookie with php lol. Basically I have checkbox forms that I want to email all the checked values in. Here is my html: [CODE]<table class="pstable"> <tr> …

Member Avatar for ddymacek
0
138
Member Avatar for deni_bg

Hi, everybody! I have a big problem. I don't understand Unix, but I work as a system administrator, and sometimes I make some data exports and I have to delete old .dmp files, but today I had a mistake, I wrote rm * 909* This is a part of my …

Member Avatar for L7Sqr
0
164
Member Avatar for caseyl89

I have the code to parse data to a Datagridview and then export that into an excel spreadsheet. How can I export the headers of the datagridview? [CODE] var bs3 = new BindingSource { DataSource = query }; dataGridView1.AutoGenerateColumns = true; dataGridView1.AutoSize = true; dataGridView1.DataSource = bs3; } } private …

Member Avatar for caseyl89
0
701
Member Avatar for geojia

I've been trying to code a link list in c and though it seems fairly straight forward I'm getting strange output. My link list nodes: [CODE] struct OBJECT { int Status; struct OBJECT *P_LINK; struct OBJECT *N_LINK; struct VALUE *P_VALUE; }; [/CODE] Link list [CODE] struct llist { struct OBJECT …

Member Avatar for nezachem
0
108
Member Avatar for Cap'nKirk

Hi, I have an XML file that I am trying to parse and then sort into an re-ordered list. Currently the XML file is ordered via date ascending i.e. oldest item first, newest last. I know how to parse an XML file using 'XMLNodeList - GetElementsByTagName' but what would be …

Member Avatar for Cap'nKirk
0
1K
Member Avatar for NyQii

Hey guys! I'm new to java, I have to write a program using a linked list, that will prompt a user to enter 10 names, and display them reversed. But is has to be a GUI. Any idea where i can start, or give me some clues, i would really …

Member Avatar for NyQii
0
163
Member Avatar for baby_c

Hello friends..! I tried to implement HeapSort algorithm in Java. but I've got some problems. First I should say that I have tried to implement the algorithm mentioned in the book "Introduction to Algorithm". the first question is how we can maintain the heap size? The book doesn't help with …

Member Avatar for baby_c
0
143
Member Avatar for bondo

Hey everyone. I've been contemplating something lately and I haven't been able to come to a conclusion, so I thought I'd see what you all thought about it. When checking for null (nevermind that we should try to not make something null in the first place), would it be better …

Member Avatar for Narue
0
194
Member Avatar for emily-bcot

I'm new to PHP OOP. The project need a site class and the below is my code (): [CODE]class Sites { private $siteName; private $location; private $postcode; function __construct($name, $loc, $pc) { $this->siteName = $name; $this->location= $loc; $this->postcode = $pc; //use "insert SQL" to store new added site info to …

Member Avatar for ddymacek
0
138
Member Avatar for taruna patil

Plz help me in converting vb code to vb.net [CODE]Function Main() Dim sMsg as string sMsg = MoveFile(DTSGlobalVariables("LoadFileName").Value) if (sMsg) = "" then Main = DTSTaskExecResult_Success else Main = DTSTaskExecResult_Failure end if End Function Function MoveFile(ByVal fileName) on error resume next Dim objFSO as string Dim objFolderDestination as string Dim …

Member Avatar for hkdani
0
394
Member Avatar for Sekhrian

Hi hi What would I add to this code in order for it to pick a random word from the txt file? [CODE]try{ RandomAccessFile raf = new RandomAccessFile("Words.txt", "rw"); guessme = ""; while ((guessme = raf.readLine()) !=null){ guessme.toUpperCase(); } }[/CODE] Help is much appreciated!

Member Avatar for Sekhrian
0
96
Member Avatar for coroll

Hi all, I've declared a static int variable call Click=0; in the Pay.Designer.cs. then i just want to get the value of it in a button click of another form. But it says : [B]The event 'System.Windows.Forms.Control.Click' can only appear on the left hand side of += or -=[/B] It …

Member Avatar for avertyn
0
2K
Member Avatar for ITHope

my assignment was to create a calculator using either if statements ir switch methosd i opted for the switch method. everythign compiles but when I type in two integers this is what comes up:Enter two integers to be calculated (separate using space): 2 3 Exception in thread "main" java.lang.NumberFormatException: For …

Member Avatar for ITHope
0
290
Member Avatar for ITHope

So i had to write a program that uses these functions to add, subtract, multiply and see if the numbers equal each other. and also You must create a way to keep track of the relationships between friends, the spouses, the siblings, the children of the men and women. attached …

Member Avatar for ITHope
0
144
Member Avatar for vaitalaziz

Hi ... I'm doing 1 web-system, where login page in .jsp but other functional page in .html where I use javascript to do function. So if user knows any other html page's url then they can browse directly any of those page. But I've to prevent them & send to …

Member Avatar for Taywin
0
311
Member Avatar for sharelife

Hi, Sorry for my bad English. I'm trying to get HTML source of this webpage [url]http://priceboard.kimeng.com.vn/webdeploy/HoseBoard.aspx[/url] When I used function 'View Page Source' I get [CODE] ... <div id="divPTableInner" style="width:100%"> <div id="divPTable"><center style="margin:40px"><img src="images/loader.gif" width="32" height="32" border="0" alt="Loading"/></center></div> </div> ... [/CODE] But when I used Firebug (Firefox) to view source …

Member Avatar for Taywin
0
126
Member Avatar for danarashad

I am trying to figure out how to have a certain value as my selected value in a cfselect that is running a cfc? I am running a cfc, but when someone saves that answer in the database, when they go back into the form. I want the answer they …

Member Avatar for arrgh
0
157
Member Avatar for kahaas

Hi guys. I'm in a beginning C# class and I' having trouble with an assignment. I need to make a windows forms application that takes English text from a text box, converts it to Pig Latin, and then returns it to a second text box. The specifications are: If a …

Member Avatar for Momerath
0
655
Member Avatar for raviaaaa

I am new to Struts I have jsp file combined with servlet and jsp(jsp tags) i need to separate them according to struts 1.0 standards Please tell me the way i can do or give me some tutorials or examples Please tell me wqat need to separe and how here …

Member Avatar for Taywin
0
216
Member Avatar for java.util

Hello, I have this code that's giving me some problems: [CODE]import java.util.Scanner; class Bæreevne{ public static void main(String[] args) { int avstand, vektTre, vektBetong; Scanner tastatur = new Scanner(System.in); System.out.print("Oppgi antall meter mellom søylene"); avstand = tastatur.nextInt(); vektTre = 3000 - 20*avstand*avstand; vektBetong = 7000 - 80*avstand*avstand; if (vektTre > …

Member Avatar for Taywin
0
150
Member Avatar for khentz

I would like to know what is the correct format of virtual path on vb.net or vs 2010. In my project folder, is it advisable to save it in bin folder? If yes, what will be the virtual path of it?

Member Avatar for AnkitGuru
0
190
Member Avatar for anonadre

I'm having trouble with the 3rd if statement of my code if(select == 3). Here, if the user selects '3', then they should be able to search for students (given that students have already been inputted), via their ID. The ID that is searched and the subsequent Name relating to …

Member Avatar for anonadre
0
129
Member Avatar for shravya

hello?? every body know what just now a question came to my mind:-/ :idea:to which i'm unable to figure out the answer:confused::-O hope fully you pepple can help.The question is how to create an antivirus on your own:icon_question:thank you advance:icon_biggrin:

Member Avatar for shravya
0
66
Member Avatar for tawboiid

I have a C# App with a form which has a groupbox containing many controls. I have the groupbox anchored Top/Bottom/Left/Right to ensure that it sizes appropriately to the users screen resolution. This app was developed on a machine running Windows XP and it has been working flawlessly for over …

Member Avatar for tawboiid
0
494
Member Avatar for vergil1983

I'm trying to make a function to insert a few integers into a sorted vector and display the integers in decreasing order. Actually is from my college tutorial question. Not that i don't want to ask my lecturer but i'm trying to learn myself how to solve the problem and …

Member Avatar for Narue
0
305
Member Avatar for urbangeek

well...i tried in google...but actually i didn't quite get it. :) [url]http://www.thinkage.ca/english/gcos/expl/c/lib/fflush.html[/url] in the above link they are saying, user should definitely NOT write code of the form [CODE]printf("Prompt: "); fflush(stdout); gets(s);[/CODE] but before we used fflush after printf...for example [URL="http://www.daniweb.com/forums/post1168561.html#post1168561"]here[/URL] jephthah gave a solution where he used fflush after …

Member Avatar for Narue
0
2K
Member Avatar for nitzanh

hello , i am using PyQt4 : QtCore and QtGui . i built a GUI with few tabs using QTabWidget(self.centralwidget) and addTab(self.device) device is a QtGui.QWidget() device is one of my tabs... i send text to this tab with self.ui.name.setText(' ....') (name belongs to this tab) how can i clear …

Member Avatar for nitzanh
0
101
Member Avatar for ymathur

I am using a ListView control in my VB Form and I want to save all the data in my ListView control. It has 2 columns and the number of rows can keep increasing depending on the user. Please help me with this query. Thanks in advance.

Member Avatar for mb01a
0
208
Member Avatar for puvi

Hi everyone.. I was going thru php interview questions and came across these doubts. [I]What does a special set of tags <?= and ?> do in PHP? - The output is displayed directly to the browser.[/I] I saw this in a blog written in 2005 is this still valid or …

Member Avatar for puvi
0
185
Member Avatar for naveedqadri

Hi Experts: When i run this page on my online website with mysql (already with Oracle), this errors orrurs. Exception Details: System.Data.OleDb.OleDbException: [1]: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'exec print_pack.check_print …

Member Avatar for naveedqadri
0
317
Member Avatar for geeta_11

I wanted to know the advantage of consts over macros. And I found the line "The main disadvantage of macro is it doesn't do type checking.". Is it not an advantage of macro? So that I can #define any constants without a limit. Can you pls explain me why it …

Member Avatar for Narue
0
104

The End.