199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Mahaa

Hi all, I am pretty new to this PERL programming. I have heard that anything could be done with PERL's magic... So out of my own interest, I have started learning perl language, to ease my project works(sort of Automation stuffs). I have PERL V5.10.1 installed in my PC,and am …

Member Avatar for richieking
0
2K
Member Avatar for close_encounter

I've been hitting my head against a wall here trying to figure out what stupd thing I'm doing wrong. I know its right in front of me but can't grasp it and my chapter for multiforms is pathedically short. What I'm trying to accomplish is for the user to select …

Member Avatar for close_encounter
0
110
Member Avatar for srikanth2321

Hi all, I'm trying to implement K-means on a database.I have a table like this: The main task is to group id's and return them based on similarity in intensities depending on the number of clusters that the user want to see them. [CODE]id I1 I2 I3 I4 I5 1 …

Member Avatar for srikanth2321
0
134
Member Avatar for royalx

Hi guys, I'm kind of stuck on a problem I was assigned. Pretty much we're trying to reverse words in a sentence. As in, input = Hi I am new to Java to: Java to new am I Hi I've tried this [CODE]String[]Tyler = new String[Sentence.length()]; Tyler[0] = Sentence; for(int …

Member Avatar for Katana24
0
107
Member Avatar for Protoroll

I have two constructors that are pretty much exactly the same except that one also takes in a boolean value. I want the constructor with four parameters to the call the other one in order to get the the first three. Here is what I have so far. [CODE] public …

Member Avatar for ~s.o.s~
0
106
Member Avatar for poojabi

pls tell what is the difference between this two 1)taking a initger (or any fundamental data type) pointer in the main function and then send it to some funtion as parameter. int *p; function(p); 2)taking a intiger and sending its adress to any function. int p; function(&p); will both do …

Member Avatar for poojabi
0
142
Member Avatar for rob3097

I figure my formulas are wrong and need tweaking. Can someone help[CODE]package mortgage_calculator; /* Write the program in Java (without a graphical user interface) using a loan amount of $200,000 with an interest rate of 5.75% and a 30 year term. Display the mortgage payment amount and then list the …

Member Avatar for kramerd
0
159
Member Avatar for aviavyne

I need to write a new code which can do the following: Write a function-driven program that gives the new ID for a 4-digit integer entered from the keyboard. The new ID is formed in the following procedure: The last four digits of a social security number (SSN) will have …

Member Avatar for myk45
0
149
Member Avatar for rohan_tahil

Can someone explain the difference between a web service and web app? and also if i am making a J2me app and want a user to get authenticated when he sends a login request to the server which 1 should i use? Do both perform all functions automatically without human …

Member Avatar for peter_budo
0
144
Member Avatar for davidhenry0001

I created this code in ASP.NET which asks no. of files to upload in a text box and then it dynamically createsthat no. of File upload controls. Till here its working fine. But i m unable to save files which should happen when i click on Button. Please help... Here …

Member Avatar for davidhenry0001
0
107
Member Avatar for XodoX

I'm trying to do the following using a linked list. [quote] delete("is",2) print 1:This 2:is 3:an 4:an 5:icorrect 6:sntence delete("an",3) print 1:This 2:is 3:an 4:icorrect 5:sntence delete("icorrect",4) print 1:This 2:is 3:an 4:sntence insert("incorrect",4) print 1:This 2:is 3:an 4:incorrect 5:sntence delete("sntence",5) insert("sentence",5) print 1:This 2:is 3:an 4:incorrect 5:sentence neighbors("is") 2:is previous:This …

Member Avatar for myk45
0
96
Member Avatar for ruwanaru

[B]This is the code that not getting the result[/B] [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html> <head> <title>Nice select</title> <script Language="JavaScript"> function checkData() { var myTest = me.D1.value; //alert(myTest); var req = new Request.JSON({ url: 'dbselect.php', method: 'post', data: 'brand=' + encodeURIComponent(myTest) }); req.addEvent('success', function(response) { var …

Member Avatar for hielo
0
155
Member Avatar for rajeesh_rsn

Hi I am doing a simple php file upload script. Works fine but I cant upload more than 3MB files using this script... Please help me. This is my code [CODE]$target_path = "../items/"; $target_path = $target_path . basename( $_FILES['file1']['name']); $name=$_FILES['file1']['name']; $ext=end(explode('.',$name)); if ($ext=="flv"){ move_uploaded_file($_FILES['file1']['tmp_name'], $target_path); $new_name=$itemId.".".$ext; rename ("../items/".$name, "../items/".$new_name); mysql_query("UPDATE …

Member Avatar for lordspace
0
227
Member Avatar for znz

Hi, could some help me . as i want to know how to delete last record. currenlty the code im using its based on two different pages, one for update/display record and second for deleting record. but sum reason this code not working for me . add.php <?php include("connect2.php"); $authorname …

Member Avatar for hielo
0
186
Member Avatar for ceyesuma

I have a java app that used to use a property and I am not sure with the changes I've made to the class path how to find the driver. I thought I was using the exact same installation but I can't find the driver. Can someone please tell my …

Member Avatar for ~s.o.s~
0
497
Member Avatar for NewOrder

[CODE]import java.io.*; public class EnumEx3 { /** * @param args */ public static void main(String[] args) { Fishs fishs=Fishs.AMNON; System.out.println(fishs.getX()); } } enum Fishs { BURI(20), AMNON(50); private int x; private Fishs(int x) { this.x=x; } public int getX() { return x; } } [/CODE] i have that code and …

Member Avatar for ~s.o.s~
0
117
Member Avatar for GrahamN

Hi Everyone, Could someone please help? I'm rewriting our website at present, and am quite ok with HTML and CSS, but am not particularly au fait with Javascript. Here's the page I'm having a bit of trouble with: [URL="http://www.ambersupplies.co.uk/thomas/miscellaneous.htm"]http://www.ambersupplies.co.uk/thomas/miscellaneous.htm[/URL] If you look at the long button marked 'Diagnostics', you'll see …

Member Avatar for fobos
0
137
Member Avatar for ahmedeqbal

Hello Friends, I need your help...! i want to create one function...! if string has total Character's [B]'160'[/B] or 'Less' then 160 ? I'll get just '[B]1[/B]' in result...! if string Character limit [B]'double'[/B] (160+160) = [B]320[/B]? But not [B]Less[/B] then 160? I'll get [B]'2'[/B] in result...! same triple limit …

Member Avatar for ahmedeqbal
0
163
Member Avatar for ahmedeqbal

Hello Friends, i want to allow '<br>' tags in my string not '<br />'...! i want to also disallow '<br />'. when i use strip_tags($string, '<br>'). in this case strip_tags also allow '<br />' tags. Please, help me...!

Member Avatar for ahmedeqbal
0
121
Member Avatar for Smudly

How can I call a PHP Function inside a Javascript Function? This is what I have so far, but I don't think I'm doing it the right way. Any suggestions? [code=php]<?php function phpQuery(){ $query = mysql_query("INSERT INTO mytable VALUES('','name','email')"); } ?> <script type="text/javascript"> function delayQueries() { timeoutID = window.setTimeout(doQueries, 2000); …

Member Avatar for Smudly
0
4K
Member Avatar for slvrmoon32

I need to create a Car class that has the following fields: brand, model, and speed. Each of the fields should have accessor and a mutator methods. In addition the class should have methods that allows the user of the Car class to accelerate and to brake. Accelerating or braking …

Member Avatar for Beauty1304
0
228
Member Avatar for thm

I'm trying to write a matrix multiplication program that takes in an int N on command line, creates two NxN matrices A & B, randomly populates them with ints, and then computes the result of multiplying A and B. I wanted to avoid malloc, but the first version started segfaulting …

Member Avatar for thm
0
323
Member Avatar for ceeandcee

I would like to query a set of values from a db....say GP1011_wk1 and this would yield 11 results. I then sum them together and get a value that i can echo. No problem so far. My question is, can i now take this calculated value from the query and …

Member Avatar for chrishea
0
81
Member Avatar for efus

Well, to make it simple, I have a multiselection listview and I need to know how many elements in the list I have choosen. How can I do that?

Member Avatar for efus
0
120
Member Avatar for rayda

i m doing a project using asp.net vb.. i wanna make 1 pc as the server to keep all my database and codes, another pc use to access the web page that i hv created in the server pc.. but i do not know how to or what to write …

Member Avatar for guru_sarkar
0
161
Member Avatar for mitrious

I wrote these functions and when I call them they're not working ... and I don't know why. here is the code for the functions [code=c]istream& read_notes(istream& in, vector<double>& nt) { if(in){ nt.clear(); double x; while(in, x){ nt.push_back(x); } in.clear(); } return in; } istream& read_info(istream& is, Info& inf) { …

Member Avatar for mitrious
0
178
Member Avatar for corrwee

Hi, guys I'm having trouble writing this word count program in python3. I've been able to find alot of help for past versions but nothing for 3. It is just a simple word count program, with a user input sentence. So far I have [CODE] def main(): print ("This program …

Member Avatar for griswolf
0
239
Member Avatar for moonlight06

Can some one please recommend me a link or the code for converting binary to decimal, hexadecimal and octal. Another for converting octal to binary, decimal and hexadecimal. Thank you and please help. I really do need it. Again, thank you and have a nice day! :)

Member Avatar for moonlight06
0
563
Member Avatar for Vv IVIatthew vV

Hello daniweb! i have recently started to learn c++ and have made a few programs, (a hello world and a multiplication program) following some tutorials. So i decided to try and make my own, but it did not go well. After debugging in microsoft visual c++ 2010 i got loads …

Member Avatar for gerard4143
0
268
Member Avatar for Syphilis

Ahoy Sailors! So I'm making an application using py2exe, Now as we all may know files get a tad hefty, I've trimming un-needed modules, Compressed the remained and finally compressed the resulting exe with UPX. Currently I've built the file under Python2.3 (Earlier the version, The smaller the dll). However …

Member Avatar for Syphilis
0
77
Member Avatar for Sci@phy

Hello. I've just started learning Python and I have a few questions. I'm using my program to communicate with some device through serial port using serial.py library. It's all going really fine. I've got a class device, and I'm using it to communicate with a device (logical ;) ). Q: …

Member Avatar for Sci@phy
0
113
Member Avatar for ganesh_IT

Hi guys, i want to overload input stream for class Date_Time [CODE] class Date_Time{ //Containment class Date d; Time t; public: Date_Time(); Date_Time(short date, Date::EMonth month, CYear year, short hour, short minutes, short seconds, bool meri); Date_Time(short date, Date::EMonth, CYear year); Date_Time(short hour, short minutes, short seconds, bool meri); Date_Time(Date …

Member Avatar for sowmyadantuluri
0
162
Member Avatar for Derice

I was trying to backup a database with the name test. I got the error as below: ERROR 1064 (42000): You have an error in your SQL syntax; check...... This error occurred when I am executing (command line) mysql> mysqldump -u root -p password test > test.sql; How could this …

Member Avatar for Derice
0
142
Member Avatar for Don Monroe

Hi, I am a beginner with python,and have this assignment that buggs me for some while..hope smb can help me...now, the thing is that I have merged the lists of view point positions of the camera in an function:[CODE] mergeList=list() def linear_merge(list1, list2): mergelList = [] for item in list1: …

Member Avatar for TrustyTony
0
324
Member Avatar for jecris
Member Avatar for drake10k

Hello, When I open my app an XML doc is created with several elements giving to each of them the value 0. After the XML is created I want that several labels on the form to change their text to spcific elements' values (in this case 0). Is there any …

Member Avatar for drake10k
0
782
Member Avatar for neoraghav

Hi, I have 2 dialog boxes. In the first dialog i'm getting input from the user to add two numbers and in the other dialog I'm printing the value. i.e., when i click on the add button on the first dialog , the current dialog shoud close and it must …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for Danny_501

I can't get strcmp() to return 0 with the following code. please help.. [CODE] char quit[10] = "q"; scanf(buf, ""); fgets (buf, 100,stdin); fflush(stdin); if(strcmp(quit, buf) == 0) { printf("Quiting program\n"); ...[/CODE] when I type 'q' into the command line it should enter that if statement, but it doesn't.

Member Avatar for myk45
0
672
Member Avatar for harpay

I cant figure out how to write the code where if the user inputs anything else than (a to h), it gives an output of Invalid Selection. Or if the user enters q, the application Quits. Here is my code so far. Please Help #include <iostream> #include <iomanip> #include <cmath> …

Member Avatar for myk45
0
275
Member Avatar for LithMaster

[code] Error 2 Inconsistent accessibility: parameter type 'SmartBackup.SmartBackupClass' is less accessible than method 'SmartBackup.BackupConfigurationForm.SmartBackupLoad(SmartBackup.SmartBackupClass)' C:\Documents and Settings\Mantas\My Documents\Visual Studio 2008\Projects\SmartBackup\SmartBackup\BackupConfigurationForm.cs 19 21 SmartBackup [/code] Hi all, I was just wondering what the above error message means in laymans terms? It relates to this code: [code] namespace SmartBackup { public partial …

Member Avatar for xolisamthobeli
0
167
Member Avatar for DoEds

Why am i getting this error? Can someone help me? You can compile it. I'll post all the necessary codes. Because i dont have enough time. Please this is really urgent. *argg my head hurts*** I put in an archive. [CODE]http://h1.ripway.com/Caterwauler/findTheCheese.rar[/CODE]

Member Avatar for JamesCherrill
0
127
Member Avatar for prem2

Hi, I am going to implement the Oops conecpt in php .So i written the below program it did not printing the values.Can any one say why this value is not printing . [code] class simpleclass{ echo "Hai how are you i am fine"; } [/code] Thank you, With Regards, …

Member Avatar for diafol
0
275
Member Avatar for pavan146
Member Avatar for dotmandd

hello everyone, please i wrote a perl script to run a .bat file using the syntax system 'file.bat'. this works fine when i run it from the command prompt. but i tried saving the script as .cgi and put it inside the cgi-bin so that i can call it from …

Member Avatar for richieking
0
2K
Member Avatar for Shikhin

Hi Ladies and Gentlemen, Some of you may remember may, while some may not, because I wasn't that famous with you guys. So let me introduce myself before I introduce my problem. That would create a base for you. I am Shikhin Sethi, a 12 year old programmer, with expeience …

Member Avatar for Shikhin
0
246
Member Avatar for crossbow25

SinglyList.h [CODE] #ifndef SINGLYLIST_H #define SINGLYLIST_H #include <iostream> #include <string> using namespace std; class Exception { private: string errMsg; public: Exception(const string& err) { errMsg = err; } }; class InvalidPositionException : public Exception { public: InvalidPositionException(const string& err) : Exception(err){} }; class EmptyException : public Exception { public: EmptyException(const …

Member Avatar for crossbow25
0
263
Member Avatar for jmcorpse

Hello, I had quite a few bugs with this program and it's fore-bearer. I got all but one of them fixed and it's in one of my if-else loops. When the program runs it runs good and then when it gets to the loop it only pulls out the first …

Member Avatar for jonsca
0
139
Member Avatar for MARKAND911

How to use TOP(1) keyword in MS Access query. select * TOP(1) from mytable orderby mycolumn desc; this querry gives me error; Any other alternate to implement this code;

Member Avatar for priyasudhakar
0
96
Member Avatar for myk45

Hello. i searched for the term relocatable code and this is what i found. Definition:[I][B]A code generated by an assembler or compiler, and in which all memory references needing relocation are either specially marked or relative to the current program-counter reading. [/B][/I] Can anyone please elaborate a little more and …

Member Avatar for myk45
0
142
Member Avatar for impaler_prince

We are writing a program in JAVA that thru a series of questions helps the user build a computer. This is being done with Radio buttons. We are wanting to know if it is possible to store the selections as objects in the database. So that is the user wants …

Member Avatar for ~s.o.s~
0
115

The End.