199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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...! | |
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); … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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) { … | |
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 … | |
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! :) | |
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 … | |
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 … | |
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: … | |
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 … | |
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 … | |
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: … | |
please help me with this program...badly needed.... | |
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 … | |
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 … | |
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. | |
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> … | |
[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 … | |
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] | |
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, … ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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; | |
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 … | |
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 … |
The End.