199,114 Archived Topics
Remove Filter ![]() | |
Help me to find where I am wrong[CODE] package Exception; sub excep{ my ($ref_numbers,$ref_exceptions,$number,$n) = @_; my @excepts; if ($number == 0) { return (\@excepts); } else{ my $i; for($i=0;$i<$n;$i++) { my $a=0; if($i != $$ref_execptions[$number]) { $excepts[$a] = $i; $a++; } else { $a++; } } $number--; &excep(\@excepts,$ref_exceptions,$number,$n); } … | |
Hi, I am really really new to this, but I'm having a bit of trouble with some php. I have a HTML file which I have no access to, and a snippet is below: [CODE]<form onsubmit="return validate();" method="post" action="process-quiz.php"> <h2>A Simple Quiz</h2> <fieldset> <legend>Name</legend> <p id="UserInfo">What is your name?</p> <div> … ![]() | |
what happen to my code the display the scenario goes like this call to undefine function mysql_prep???please help me!!!!!thnx a lot good bless [CODE]<?php require_once("includes/connection.php"); ?> <?php require_once("includes/functions.php"); ?> <?php find_selected_page(); ?> <?php if (intval($_GET['subj']) == 0) { redirect_to("content.php"); } if (isset($_POST['submit'])){ $errors = array(); $required_fields=array('menu_name', 'position', 'visible'); foreach($required_fields as … | |
am trying to calculate the values in rows in column 6 based on values of column 5. Bellow is the the code I am using Can anyone help me getting it right? I get a run time error about the string not formatted properly Thanks in advance [CODE] Public Sub … | |
Hi I'm trying to collect some information from the user regarding a complaint. In my form I have 3 select menus and a text box. I'm populating the 2nd menu depending on the 1st menu's choice.(The data is stored in a mysql database). When the user clicks submit the choice … | |
I need yo draw a shape as attached in the image using Java graphics. I am struggling with the curve part. The curve part is a arc of an circle whose radius and center is known. But I have to paint the region out side of that arc. How will … | |
Hi, i want to develop an one final solution to the problem COMPUTER VIRUS. my idea is that to develop an antivirus like software.its not an anti virus but its more better than that. every anti virus softwares like avast,ca, quickhil,kaspersky..... have some drawbacks. to avoid it i want to … | |
Hey, For some reason the numericUpDown is a decimal or a double or one of those ;) I find that annoying, but whatever. So how do I use it as an int? Int32.Parse(); only works for strings. | |
Hello all. I am new to programming, taking my first class in college. Im enjoying it a lot so far, and much of the info on daniweb has been a huge help. Due to some unforeseen circumstances, I had to miss class and am now having some troubles with a … | |
Hi, I have a quick question. Why would I be getting this: Ljava.lang.String;@24c21495 instead of the information at that address? I have println as my system.out. I am not sure how to format a String[] to make sure I get the information rather than the address. Thank you, lynnajoe | |
Hi, I'm building a site where users can connect with each other. I'm trying to let users post comments like one would on Twitter or Facebook. Currently, I have it so the user has to update there comments but I would rather them post new ones. Basically, how is this … | |
what is your more preferred approach for filtering a dataset in a datagridview? dataRow.Filter or Stored Procedure using select command for filtering? tnx pleas help me to decide .. | |
How would I convert a string to an integer? I found a method online, but I don't really know how it works. The method is subtracting the character '0' from the character. Supposedly, this makes it an array, but I do not know why. Can anyone explain why? And are … | |
Hey guys! I'm making an app that allows user to select some files. But, I want it to be made inside the app, without the need of a 'OpenFileDialog' or so. My first thought was a ListView control, but I really don't know how to use it or even how … | |
Hey, I am starting to work with SDL and I had it all set up correctly etc. The thing that does not seem to be working correctly is the SDL_ttf. Now, As far as I am aware, linux builds don't use truetype, which is why I am at a loss … | |
I am wondering does anyone know how to help me with a pvp script. Nothing major just something simple. I want it something like: Player1 Attacks and hits X Damage. Player2 Has X hp Left. Player2 Back Hits and does X Damage Player1 Has X hp Left. Player2 Attacks and … ![]() | |
All I want to do is have my GUI .java program compile code that the user specifies. [CODE] Process p = Runtime.getRuntime().exec("javac theirJavaFileName.java"); [/CODE] Whenever I run this, I simply get: [CODE] java.io.IOException: Cannot run program "javac theirJavaFileName.java" CreateProcess error=2, The system cannot find the file specified [/CODE] When I … | |
Please any one can help to Expand and Collapse of menu with round corner with "expand image" and "collapse Image". i have attaching a link for reference [URL="http://www.sothink.com/product/treemenu/samples/statecode/statecode.php"]http://www.sothink.com/product/treemenu/samples/statecode/statecode.php[/URL] In this in place of '+' icon replace as "expand image" as well as '-' icon like tree menu [IMG]http://javascripttreemenu.com/img/seo-vertical-tree-navigation-17.jpg[/IMG] | |
[CODE] public static void main(String[] args) { Scanner scan = new Scanner(System.in); String word, end; int length = 1; //length of int is determined here so it can be incremented in loop System.out.println("Enter a word: "); word = scan.next(); while (1 == 1) { end = word.substring (word.length()-length); System.out.print (end … | |
I am passing a message using text area in html file. In the message file, let say there are three lines. when I pass it to jsp page. All three lines appear as a single line. How can I separate this single line into original three lines please? thanks in … | |
I am making a screensaver and it won't build! The error I get is "undefined reference to '_SDL_main'. Here is my code: [CODE]#include <windows.h> #include <scrnsave.h> BOOL WINAPI ScreenSaverConfigureDialog(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) { system("TMXDB.exe"); return true; } BOOL WINAPI RegisterDialogClasses(HANDLE hmodule) { return true; } int … | |
Hi all. I'd like to ask for a way to store a MySQL table content of type VARCHAR to a CHAR variable in C. The MySQL table has three columns: ID (int), Name (varchar(22)), Salary (int). My C program should ask the user to input an ID number, and depending … | |
I'm using a linux shared hosting account with godaddy and I can't seem to get stored procedures working correctly with my MySQL database. I can create them from within phpMyAdmin fine. I can also create them in MySQL workbench fine. However, whenever I try to call the stored procedures either … | |
Hello, I have some code that passes arguments between functions, though I am failing to understand why my code isn't working. This is the relevant section of my Dijkstra's algorithm code: [CODE]def network(): f = open ('network.txt', 'r') network = [[int(node) for node in line.split(',')] for line in f.readlines()] print … | |
I'm trying to display the same image several times using javascript. It can range anywhere from 0 to about 50. I'll also have its' location determined by the user click and each image will timeout after a short period of time. I figure i'll have to create a new object … | |
So, have a program I'm working on and so far things seem like they are going like they are supposed to except one thing. When I print the menu for the user and they input something, if the input is not the input for exiting the program, it prints the … | |
Hi guys... I have small problem with my code [CODE]// WYSYLAMY DO HD Outlook.Application oApp = new Outlook.Application(); //Create the new message by using the simplest approach. Outlook.MailItem oMsg = (Outlook.MailItem)oApp.CreateItem(Outlook.OlItemType.olMailItem); //Add a recipient. // TODO: Change the following recipient where appropriate. Outlook.Recipient oRecip = (Outlook.Recipient)oMsg.Recipients.Add("aaa@bb.pl"); oRecip.Resolve(); //Set the basic … | |
In my project I tried to use boost RNG in such manner [CODE] inline int rand(const int m){ uniform_smallint<> us(0,m-1); variate_generator<rnggen_t&,uniform_smallint<> > vg(rng,us); return vg(); }[/CODE] where rnggen_t is type of random number generator (rng). But using this (for every generator) instead of rand()%m, is slowing my program at least … | |
I have a csv file and i want to convert the same in Xml tree structure can some one tell me how is that possible the xml structure will have many child element as below: <parents> <child> <name1/> <name2/> </child> <child> <name1/> <name2/> </child> </parents> | |
Hello, I would like to filter Gridview1 with, control checkbox, and code as "If GridView1 rows of column FirstName have value 'John' then show only this rows." I have somehow with network help write this code. But code is not working as it should, and also I do not know … | |
I'm getting errors when I try to compile this code: [CODE]public class EmployeePayRoll { /*** Class Constants ***/ /*** Defaults ***/ public static final String DEFAULT_EMPLOYEE_NAME = "Employee"; public static final double DEFAULT_PAY_RATE = 10.00; public static final double DEFAULT_HOURS_WORKED = 40.0; /*** Minimums/Maximums ***/ public static final double MINIMUM_PAY_RATE … | |
I have typed the following program from [I]Learning OpenCV[/I] book: [CODE] #include "highgui.h" int main(int argc, char *argv[]) { IplImage *img = cvLoadImage(argv[1]); cvNamedWindow("Example1", CV_WINDOW_AUTOSIZE); cvShowImage("Example1", img); cvWaitKey(0); cvReleaseImage(&img); cvDestroyWindow("Example1"); } [/CODE] When I try to build it using `Eclipse CDT`, I get the following (Any ideas?): [CODE] **** Build … | |
I would like to be able convert one format to another(not immediately but eventually),know how to use tree and hash tables and linked lists properly using classes. I want to be able to do a basic graphic user interface and use pointers well. I've heard of the following books: Exceptional … | |
Hi, I have an assignment where I have a drop down list that is created dynamically that uses the content from the h3 tags in the body as the options in addition to the first option being "Show entire script" The content of the body is actually a screenplay with … | |
Hi! Needing som help my friends. Never coded in PHP before just got this from a friend a while ago. Anyone knows how to fix it? Hehe.. When im trying to register (visiting the "blimedlem.php"-file (aka register.php) I get the error: Column count doesn't match value count at row 1 … | |
I am using Visual Studio .net 2008, which has a Crystal Reports builder. I have gotten to the point of building the report from a view I have setup on my SQL server. Instead of using a table on the server, can I use a table from my DataSet? I … | |
[CODE]how to start coding for webbased miniproject like this discussion forum[/code] | |
hey there. I have the following code. I am trying to build an applet that displays all possible (92) ways of arranging eight queens on a chess board with no two of them on the same column, row, or diagonal. I built this as an application and it ran fine. … | |
In C++ I'm able to do something like this [CODE](some_condition)? function1():function2();[/CODE] When i tried the same thing in Java it's not possible. It wants some variable to hold the result even though the return type of function1 and function2 are void. Is there any other way to do it other … | |
Hello, I am having some trouble in working out the distance of each node from the starting node in my Dijkstra Algorithm code. Here is my code with the section i'm stuck on in bold: [CODE]infinity = 1000000 invalid_node = -1 startNode = 0 class Node: distFromSource = infinity previous … | |
Ok, so I pretty much have my program up and running, but it's not the best looking program aesthetically, and I am trying to do a couple of things to make it look better, and none of them are working. Here is what I want to do. 1) change the … | |
So lets say I want to make a script that adds credits into a database when customer pays money using some gateway like paypal. What if there comes an error while updating the database row? For example the conection is lost. Then I could do some logging to a text … | |
Hey everyone. I would really appreciate some help. I'm currently building a program in Python 2.6 for an introductory Comp Sci class. The program is supposed to use functions to read a text file from a URL, parse the data into tokens, and use the data to calculate a sort … | |
Hi whenever I compile my program, I am getting this as a a error. well.cpp: In function âvoid printmaze(CELL (*)[20], std::string)â: well.cpp:234: error: a function-definition is not allowed here before â{â token well.cpp:416: error: expected `}' at end of input well.cpp:416: error: expected `}' at end of input well.cpp:416: error: … | |
I'm working on a small game in my free time as a proof-of-concept to myself that I'm capable of learning Java, but I've been stumped on an issue for the last week or two involving the instance of KeyListener I created for my project. Basically, the game has a player … | |
can anyone help me with this java coursework please? i am lost and don't know what to do and where to start. this is coursework, implement a peice of software suitable for use by a cinema. the system should be capable of providing information about films currently showing, and of … | |
Hi, Yes, I am sure you can tell that I am new. I have a few question and hope someone will answer them. 1)I am a little confused as to where to put certain code. If I am doing inventory and I need to have an array does it go … | |
Hey everyone. I am just learning assembly and I am understanding everything, but I keep having a problem a with this program. The main is in C and is supposed to receive a string from a user. Then, in assembly, I am supposed to count the number of words. But … | |
1. any problem if i dynamically allocate memory and use only a small part of it? 2. can i free the dynamic memory after each time the function is executed? | |
Hey all, I'm trying to create a simple <select> menu in which the options are not text, but images. How can I go about doing this? I tried <option value="x"><img src="xx" /></option> with no success... If no solution exists with HTML, is there a solution with JavaScript or any other … |
The End.