199,114 Archived Topics
Remove Filter ![]() | |
I've installed coldfusion and its server. I have two major questions and am completely new to CF. 1. I copied a folder from our website (our hosting company put it together for us) into the wwwroot folder. I am able to access only one of the pages of that folder--the … | |
I want to rank sentences in a text based on weights.. for example i want to extract certain important sentences from a text based on its weights(importance).. please help if possible with an executable algorithm... | |
I am currently writing a simple program that matches a already written program, with certain specifications that are required. For the most part I have written what seems like working code, but I do have problems. Here is the program that I have to make: [URL="http://mavdisk.mnsu.edu/wangj/lab10sol.exe"]Sample[/URL] 1st problem: When the … | |
this program will replace a substring from the string with a new string . It is working perfect ... [CODE]#include <stdio.h> #include <conio.h> #include <string.h> #include <iostream.h> char *replace(char *st, char *orig, char *repl) { char buff[50]; char *ch; if ( !( ch = strstr( st, orig ) ) ) … | |
Thanks in advance for your help. Ok...the last part of this program is where I am stuck. I am supposed to read data in from a file and sort by gender. But the output is supposed to read department, gender, first, last names, job title and salary -- then to … | |
Hi all, I have been reading on the net searching for what others alternatives do i have besides singleton and i came across the following site:- [URL="http://www.bigroom.co.uk/blog/better-without-singletons"]http://www.bigroom.co.uk/blog/better-without-singletons[/URL] There is a paragraph stating:- [B]To accomplish this(singleton effect), create the class as a normal, non-singleton, class and enforce the single-instance only behaviour … | |
Hi, i would like to programatically send the user an email of all the files they have backed up + associated file information. My question is how can i send the body in a formated way for example To: userEmail() subject: File Backup Report Body: All users files here e.g. … | |
Does anyone know of any open source libraries that provide a simple grid (2d matrix) structure- for simple game navigation? I am running into a lot of problems with the one I created for my ai project and it would be nice to have something reliable to work with. Thanks! | |
Hi everyone, I'm trying to create a simple Java game, The Last Space Invader, where you control the last space invader and the tank automatically tracks and shoots at you. The code for my invader is as follows: [CODE]import javax.swing.*; import java.awt.*; import java.io.*; import javax.imageio.*; import java.awt.event.*; public class … | |
can anyone help me with this program write in c++ a defintion of a complex class for complex numbers.Each object of this class will represent a complex number x+y*j storing the real part x and the imaginary part y as float in private section. Include a constructor, a destructor, access … | |
I'm using XAMPP to test a mini-website - I have some zip files I'd like to be able to place on the server, then for them to be unzipped using PHP via a browser. How can I do this? I've tried the following... [code] <?php $zip = new ZipArchive; $res … | |
hi guys.. i implemented a stopwatch and as i run my software, the stopwatch starts. what i want is to implement a method to start the stopwatch and another method to stop the stopwatch. can u give me an example of this please? thanks.. | |
hi, would someone please point out what is wrong with my ActionListener setup? [code] // in my menu class, parse JScrollPane and JTable to the showTable constructor in the ShowTable Class showTableMItem.addActionListener(new ShowTable(scrollPane, table)); [/code] [code] /* * set local JScrollerPane and JTable to be the JScrollPane and JTable from … | |
Hello guys, I want to know if its possible to use the same socket to transfer two things at the same time. [code] // set up input stream for objects input = new BufferedReader(new InputStreamReader(clientsoc.getInputStream())); // set up output stream for objects output = new PrintWriter(new OutputStreamWriter(clientsoc.getOutputStream())); output.println(nickName + " … | |
Hello, I'm new to javascript, and need some help, why the following code refuses to do anything. [CODE]<html> <head> <style type="text/css"> .btn { background:URL("elemer.jpg"); width:200px; height:100px; display:block; } .btn.sfhover, .btn:hover { background-image:none; } </style> <script type="text/javascript"> sfHover = function() { var sfEls = document.getElementById(„btn”); sfEls.onmouseover=function() { this.className+=” sfhover”; sfEls.onmouseout=function() { … | |
Hi i had a php page which show thumbnail images from a database. I need to show enlarged image when mouse roll over to that thumbnail one. Pre-loading of all of that images is not possible ( it will take time to page loading ) . It must be load … | |
I'm struggling on how to do this. For example. [code] for i in range (1 ,100): if i % 3 == 2: print i, " mod ", 3, "= 2"[/code] i think i need to understand what this does more. Firstly what does % mean? [B]if i is the square … | |
I have 2 combobox(select) on html page and i want to populate data in second combobox based on data selected in first combobox by user.I am using jsp and ajax for that.I have Ajax code but i dont know how to return data in combobox from server side jsp page.. … | |
wow it's me again! i have: [code] i=0 while i<11: print i, print '' i=i+1[/code] this gives the answer: 0 1 2 3 4 5 6 7 8 9 10 i need to give the answer. * * * * * * * * * * * * * * … | |
hi. I get a NillpointerException. Here's my code: [CODE] private void Login_ButtonMouseClicked(java.awt.event.MouseEvent evt) { String usrname = uname_TextField.getText(); String pass = passwd_PasswordField.getText(); String pwrd = pass.toString(); String args[] = null; boolean auth_flag = false; try{ R = S.executeQuery("select uname, passwrd from Employee_Master;"); while(R.next()){ if(usrname.equals(R.getString("uname"))){ if(pwrd.equals(R.getString("passwrd"))){ this.dispose(); [B]args[0] = R.getString("uname")[/B]//causing nullpointerexception … | |
hii i am new learner of java.. I just want to know that it is necessary to declare a default constructor if we are declaring parameterised constructor.. | |
Hello friends, Got a new question, can someone explain to me how to put an HTML link in my Java program. Example ... "Click here to visit the developer website". So when someone will click on the link, the web page should automatically open in the browser. I searched on … | |
Hi Is it posible to display a list of members that are currently logged in on my website in PHP. Or should I use AJAX ? Any ideas, and if possible how would I go about doing this. Happy easter everyone :) | |
Why am i getting a segmentation fault when i try to compile this code? [CODE=c++]#include <iostream> using namespace std; int main() { bool x; string odgovori; cin>>odgovori; int xd[2], rez=0, vkupno=0, odlen=odgovori.length(); xd[1]=1; for(int i=0; i<odlen; i++) { if(odgovori[i]=='O') { if((xd[1]==1)&&(x==false)) { rez=rez+1; x=true; } else{ xd[2]=xd[1]*2; rez=rez+xd[2]; xd[1]=xd[2]; } … | |
How good this code in terms of clarity, readability, and overall design? Easy to understand them or not? Note: i put system("pause") which is not recommended. cin.get() is a better one in case you didn't know. [B]First: Port Scanner[/B] [CODE]/**program description: * * this is a simple port scanner * … | |
Hello all, A friend and I are working on a website and we are having some issues with the timeout functionality. We set $_SESSION['activeTime'] to the current time at login and then We are using the code below at the top of every page to set the session time every … | |
Hi guys! I've worked so hard on this really long program. I think I'll just post the relevant subprograms. I hope it's still easy to understand. This is just before the main function. [code] #include <iostream> #include <iomanip> #include <conio.h> #include <string> using namespace std; //function prototypes int cashier(); //generates … | |
how to make a validation like vb in asp.net? I want to make a text box should only accept numeric values.... samy | |
Dear Friends, i host a website and use visual web developer for aspx ... i want to create a form , in which users will aftre logging to my page enter 10-12 fields and that will be appended in a backend database on my server eg MS Access... please suggest.. | |
hello, quick question regarding template classes and pointers. I'm making a linked list kind of container system, and I'm running into trouble with it when I (don't know if the terminology is 100% correct here) declare an instance of it. An example would be best to explain what's happening: I … | |
So im using this code to start a thread... [code=cplusplus] namespace Monitor4vc { public ref class Stats { public: Stats() { } ~Stats(){} void set(int prid, String ^url, String ^pst, String ^pth){ pid=prid; httpUrl=url; post=pst; path=pth; } void start(){ thread=_beginthread(OpenProc,0,NULL);//Error } private: ArrayList playing; ArrayList quitp; HANDLE thread; int pid; … | |
Hi all; i have some problem with my code.. I want to read txt file which include : rectangle 0 0 1 1 orange rectangle 0 1 1 1 green rectangle 0 2 1 1 white rectangle 0 3 1 1 orange rectangle 0 4 1 1 white rectangle 0 … | |
Hi, I am trying to display 5 pics named "pic1", "pic2"....."pic5" in one div. I have settled that the div will be visible after 5000 ms, and then i have settled cleartimeout function to make the div again hidden. I need to revise it 5 times so that 5 pictures … | |
Hi everyone, because I've recently decided to try making a webgame, I've begun scripting an editor for it. However, I'm quite stuck on the little project and would like some help. The script works as follows, a directory of tiles is being read via PHP (however not alphabetically). These tiles … | |
Hey i have a weird problem when im trying to print out elements in my temp pointer array, at the bottom where im just using cout to print random indexs of temp, it will only work if i comment out temp[1]... anyone have any idea why? if its not commented … | |
My exposure to arrays and pointers are bit limited. And concatened strings even less ( it was not covered in my class so I had to google it. ) So I know there are errors. I can not use any of C string libary functions. Thoughts? [code=c] #include <stdio.h> char … ![]() | |
how can i create 50 apples at different positions on screen without having to each time call the constructor 50 times? [icode] import Tkinter as tk from Tkinter import * import time class Apple(object): def __init__(self, a,b,c,d): self.rect = canvas.create_oval(a,b,c,d) root=tk.Tk() canvas = tk.Canvas(root, width=300, height=300, bg="#FFFFFF") canvas.pack() for x … | |
Hello, I have a question, when does a global variable get destructed? ex. [code=c++]#include <iostream> using namespace std; class simple { public: int *i; simple(int ni){ i = new int(ni); } ~simple(){ delete i; } } simple simple1(10); //for simplicity no command line int main(){ cout<<*(simple.i) } [/code] when will … | |
Right now i am using the method where i put the picture in a picbox, then save it as a .bmp then use SystemParametersInfo function to set the picture. I do not like this because of one main reason: it takes huge amount of ram for a simple program such … | |
Hi all, what is the bug in the following code: [code=cplusplus] #include <iostream> #include <string> int main() { string str = "Hello World!" cout << str << endl; cout << float x = 5.0f * str << endl; int 65Num = 65; cout << "65Num = " << 65Num << … ![]() | |
i have my program doing what i want it to do untill it gets close to the end. the ouput that is transferred to the word document is not right. i have random charactes appearing before the "Date:". how can i fix this minor problem?? Thanks [code=cplusplus] #include <iostream> #include … | |
Hi, I'm pretty new to java and I'm not asking for anyone to do any coding for me. I just need pointing in the right direction. How do I go about printing out the objects of an array sorted alphabetically by name without altering the original array. I know I … | |
hi friends, i am new to php. i have source code to logout from a page when that page is inactive for certain seconds. and it is logging out . but the thing is it is logging out even when my mouse and keyboard is active. i.e. even when i … | |
i have to do a java program to perform polynomial operations. i can manage those operations part. but i have a problem when storing the terms of the polynomial in to a linked list. for example when it is given polynomial("4 2 5 3 6 0"); // 4x^2+5x^3+6 may be … | |
Hi Not sure if I am in the correct place on this forum but this is the nearest area I could find. Basically I have one question regarding converting binary numbers to two's complement negative binary numbers. From what I have read you add a 1 if it's negative after … | |
Hi I am beginning to learn wxPython a little with the "wxPython in Action" book but I haven't managed to figure out this one thing I really want to do and am hoping someone can help me. I want to do something like create an Ellipse to which I can … | |
Hi, I wanted to post my login system I will use for an upcoming site for rating. I want to ensure a safe login, so please, if you know anything about this and see a security leak somewhere... Please post, any remarks are welcome. How it works: the script generates … | |
Is this the best datatype to use for doing calculations for extremely large numbers such as computing pi . Or am I going to need to create my own algorithm for handling extremely large numbers? how does software like superpi handle such a large number, im assuming its all split … | |
Hi all, I am quite confused about the usage of both. Both of them seems to enable a variable to be shared consistently between classes. Is the following true? [B]Namespace[/B]-used for defining some constant values that you want to share in your application. [B]Static variable[/B]-used to maintain a consistent value … | |
Hi, so my problem is that when I write a program, and then try to debug it, there comes a error, on VC++ 6.0 there is "Cannot execute program" And in VC++ 2008 express edition it says, that there ain't the file I'm trying to debug. Here's the output; 1>------ … |
The End.