199,114 Archived Topics
Remove Filter ![]() | |
I am having an issue with an external javascript. I've included the code from the web page and the javascript code I have. Instead of opening a website when the selection changes in any of the menus, I get a pop-up message box with the address of the web page. … | |
You can only inherit from one parent class in java. true or false.Why? | |
Hi all, I apologise in advance if this is too simple, but I've been searching around for a good hour or two now, and I can't quite get my head around this. Basically, I'm looking to teach myself Python (3), and one of the things I'm trying to do is … | |
hello all, Ive been trying to figure out how to find the next empty row in an excel spreadsheet. My project is a VB project, written in Visual Studio 2010 Express. What i need to do is open the spreadsheet (that is predefined) and find the next available row. (in … | |
I want to be able to write a program that repeatedly prompts the user to enter an integer. The program determines if that numbers is perfect and then writes out a message saying if it is or not, then prompts once again. I'll end the loop (and the entire program … | |
I currently have the following code for a sprite struct (c-style for use in DLL): typedef struct LABglSpriteTAG { unsigned int glTexture; int w; int h; LABglColour *data; bool compiled; }*LABglSpriteHANDLE; And the following function: void LABglSpriteConvolute(LABglSpriteHANDLE spr, int w, int h, int *kernel) { size_t dim=spr->w*spr->h; LABglColour *out=new LABglColour[dim]; … | |
help! I'm trying to figure out how to verify looped form fields by name. This seems like it should work, but it's just skipping right past this verification step. Here's the code: <?php session_start(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type='text/javascript'> function myForm(){ // … | |
Hi all, Have a nice day.. I want to know that way to backup our SQL data from server. Any suggestion for me? | |
I had this working fine under php 5.2 but my hosting company upgraded to 5.3 and now its broken. I get an erro of Fatal error: Call to undefined method PDF::FPDI() in /home/freedoms/public_html/admin/phptopdf/html_table.php on line 45 Not sure why, any help is appreciated. html_table.php <?php //function hex2dec //returns an associative … | |
Hi, I have created the following code to get connection object to Database(MySql in my case) using a static method. I wanna know whether it is a good practice or not? Will there be any problem like concurrent access? Any information will be helpful. public static Connection connection(){ Connection conn … | |
Hi I was ask to do a code in c wich read the contenent inside a txt file and display it then after display it they wan't me to tokenize those command and interpretate them in c. I have no experience in c if someone can show me how to … | |
I am working on a struct program and it is working perfectly except for one thing. 2 of my struct elements are arrays and I can't populate them. I have tried a number of different things but I keep getting compiler errors. What is the correct way to pass an … | |
Soooo ... quick question :) I need to do some HTML parsing with regex :) I currently use `$output = preg_replace('/>\s+</', "> <", $output)` to strip whitespace between any two HTML tags. What can I do to strip whitespace only between paragraph tags. For example, only between `</p>` and `<p>` … | |
Please this has being coursing me a sleepless night, can someone kindly help me out once again I have multiple links of movies in my site for download but the movies are uploaded with a different site (my Host site).so is just the links that will lead to the Host … | |
Hey everyone. I really need some help with my code for class. Here is the prompt : Write a program to manage a dictionary. The dictionary should be stored on a text file named diction.txt and consist of an alphabatized list of words, one per line. When a user enters … | |
hi. would someone minf giving me a snippet of a code where a program searches for a specific character in a string? for example. if i have a label that contains a string "abcd" the program would check if the characters "b" and "d" exist in the string regardless of … | |
hi i really interest in C game programming. i looked online for tutorials but they seem confusing. I am using c for one year, but i have no knowledge of game programming. could any one tell me where should i start and what is the best language for game programming. … | |
Hi I am interseted in designing web sites but i dont want to learn 5 different scripting languages. Is it possiable to create a good working web site just by ruby and sql? | |
hi everyone.... i have a script i made that chooses a random name from a database i need to output many names on the page the code is used on, one name for each comment shown on screen.....i tried a few things but the code below is resulting 10 names … ![]() | |
I'm a 'JMenu Expert' or w/e, but I've used JMenus a few times before and have gotten them to do what I needed them to do... However, I am trying to do a new thing, and I'm not actually sure it's possible in java (maybe in Xcode) I am using … | |
so i fork n process: for(i=0; i<numOfProcess; i++) pid == fork(); if(pid == -1) //error handling if(pid == 0){ //child, do something exit(0); } else{ //parent //i want to wait till all children are done before continue..how? //i tried wait(NULL), and waitpid(pid, NULL, 0) //but both wont work..? //........... //something … | |
my coding is working but it is showing html tags from text.html,i want that onmouseover it get data from text.html by tag or div id naem and also by changing in text.html its suddenly chane not on refresh <html> <body> <script language="javascript" type="text/javascript"> <!-- //Browser Support Code function ajaxFunction(){ var … | |
Hey guys. I'm new to this site. I just wanted someone to look over the code I have so far for a hash table that operates on linear probing. I don't have anyone to really check these things for me as my professor is always busy. Can anyone tell me … | |
Hello everyone, I'm new to java and I'm working on a assignment, but I couldn't compile the BookTest.java. Here's my Book.java package question_1; public class Book { private String title; // Title of the book private String author; // Author of book : private String isbn; // International Standard Book … | |
i created some segement of shared memory using <sys/shm.h> <-- im not sure what this thing called.. shared memory? seems shared memory doesnt like dynamic allocation and vectors what are some apporaches i could create a 2D array like structure in shared memory? | |
Hey guys, i need help with this assignment. I am a complete beginner in java programming so i don't know how to get started in this thing. For this project, i am suppose to search for a specified word within a block of text. The word, the size of the … | |
I'm making a Login form with two text boxes(username, password) and a button called "Login". I would like to simulate the Login click when the user finishing enter the password and press the "Enter" key. Could someone tell me how to go about doing this? Thanks in advance. | |
Hi, I tried to make a script but I need some help from you guys.. ıt will be like a fixing.. The output which ı had from my script and my script were sent as an attachment. 1)Can i get that output as left aligned? 2)Besides can you guys make … | |
Hi, I'm trying to get data from a database and display the results using Eval, but it doesn't seem to work, I've tried `<asp:label id="InfoAvailableDesc" runat="server" Text='<%# Eval("InfoAvailable") %>' /></td>` and <asp:label id="InfoAvailable" runat="server"> <asp:literal id="litInfoAvailable" runat="server" text='<%# Eval("InfoAvailable") %>'/> </asp:label> Neither seem to work, these are both inside a … | |
I want to put some weather in my system and so far its working great. I've been copying the weather stuff from the yahoo website and this is the code 'Tomorrow Conditions startpoint = 0 : endpoint = 0 _search = String.Empty : _search = "Tomorrow" startpoint = _response.IndexOf(_search) + … | |
hey all! i created a keylogger of my own in visual c++ 2010, and included iostream, windows.h winUser.h the problem m facing is that it runs only when visual c++ is open. as soon as i try to close it, it pops a message to stop debugging and if i … | |
hi! I am designing a 2d game, in my game i want to add a feature e.g. in my jframe i have three images if a user clicks on a image that image will automatically get set as a background throughout the three laves (in my game they are three … | |
I need to build a database for a theatre booking system Im not sure how many tables I will need to have for the seating etc. The theatreSeating Numbers are as follows. • 800 seats on two floors (500 on top, 300 on bottom, however without seats capacity is 750) … | |
![]() | I need to input multiple files from directory but how to do it for any file name? If I do not know the file name So I can pass one by one file to thread? int 1 = 0; while(true) { String name = "Lab3File"+i+".dat"; File file = new File(name); … ![]() |
Hey, I have the following piece of code in Processing (programming language) that I am supposed to change and implement in new ways. However I just can't seem to understand it. I would love it if someone here explained it to me step by step. Here's the code: [CODE]// TREE … | |
Hi all, I encountered some weird act from the return(); function. I'm doing some book exercise in recursions: write a recursive function that makes a summation 1 + 1/2 + 1/3 + 1/4 + ... + 1/n. Rather basic. So I wrote this: float summation(int n) { if (n == … | |
hi! kindly help meeeee :D Populating the combo box with the list of items from the one of the column in table from database. Based on the selection of item in the combo box, the another combobox should be populated with value corresponding to the selected item in the first … | |
![]() | How to take any bumner of arguments form command line and to search in arraylist> I now do it in with defined number of arguments and take every argument and search, but this is unlcear to me? Thanks ![]() |
Hi, I've been using C++ for quite a while but recently I discovered this peculiar behaviour. The following code works as expected: #define TWO 2; int nVal = 3 + TWO; cout<<nVal<<endl; // output is 5 ...if on the other hand I place the literal integer after the '+' in … | |
I have an application that can filter a datagridview based on date using a datetimepicker. The "date" column in my database is a datetime data type, hence it will contain a date and time stored within but there is some data which have only dates. My problem is my datetimepicker … | |
Me and my freinds are heading towards a C++ Game Project of Snake-Game in which a Snake is to be made of 6 "*"s and it is controlled with keybord.... We had progressed till here and weare finding difficulty in handaling more than 1 stars plz help #include<iostream.h> #include<conio.h> void … | |
I am new to usage of jquery.I want to show a confirmation facebox while all my input requirements are true.ie when my form fields are validated a simple facebox should appear showing the forms are validated.How can i do it.Itried a lot.But i didnt get the source for facebox.I didnt … | |
please tel me the logic behind the code for find the common aphabets between two words?? ex ... mine mind common letters are : m i n like | |
Hello, I need to store the cooridants of a vector, for example: If the vector was: 0 1 0 1 0 0 1 0 1 0 0 1 1 1 1 0 0 0 0 0 And this vector is then split into blocks, I need to store the the … | |
We know we already have built-in [I]Trim methods[/I], but trimming doesn't get rid of internal, (and unwanted) extra spaces. -So this is where Normalize method comes to play. It trims left, it trims right, but most importantly it also trims on the inside, one could say: "it trims inside-out". In … | |
I am wondering how to perform a 2D image blit with openGL. I used to use SDL and it was easy, but with opengl I end up making a rectangle with texture coords that is sunk a little into the screen. Is there any way to perform a 'real' blit? … | |
while configuring workspace in Eclipse, applet is not loading i am using jdk1.5 and Tomcat 5.5 but when iam try to open same application in IT link applet is loading sucessuflly (i have used the same code to configure locally) can any one please let me know how to resolve … | |
I have this Regular Expression in C#: Regex myRegex = new Regex(@"^[a-zA-Z]{1}\s(! | && | \|\| | -> | <->){1}\s[a-zA-Z]{1}$"); if (myRegex.IsMatch(expression)) { validated = true; } else { validated = false; } and I would like to match the following types of Strings: A && B A -> B … | |
Hi! I'm working with a huge software system with a lot of people being involved in the coding through many years. I'm noticing more and more that there is a lot of bad code, especially get methods here and there with huge side effects, which you totally not expect. So … | |
I have a drop down box which has two values, when either is chose a seperate text box or another drop down box is opened. However it part works with the second option but not the first one. can someone have a look: php/html code: <tr><td> Choose Delivery Type </td> … |
The End.