199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for willpollock

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. …

Member Avatar for Troy III
0
310
Member Avatar for Valiantangel

You can only inherit from one parent class in java. true or false.Why?

Member Avatar for thines01
0
76
Member Avatar for LDJ95

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 …

Member Avatar for LDJ95
0
850
Member Avatar for Gobble45

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 …

Member Avatar for Reverend Jim
0
967
Member Avatar for userct

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 …

Member Avatar for userct
0
2K
Member Avatar for Labdabeta

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]; …

Member Avatar for mike_2000_17
0
1K
Member Avatar for turpentyne

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(){ // …

0
110
Member Avatar for HasNor

Hi all, Have a nice day.. I want to know that way to backup our SQL data from server. Any suggestion for me?

Member Avatar for HasNor
0
112
Member Avatar for mjones11

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 …

Member Avatar for mjones11
0
1K
Member Avatar for james chaco

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 …

Member Avatar for SRocks
0
239
Member Avatar for chrlop

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 …

Member Avatar for chrlop
0
895
Member Avatar for adohertyd

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 …

Member Avatar for histrungalot
0
275
Member Avatar for Dani

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>` …

Member Avatar for Dani
0
418
Member Avatar for samsnov

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 …

Member Avatar for ChrisPadgham
0
286
Member Avatar for amberrrrrNJ

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 …

Member Avatar for amberrrrrNJ
0
203
Member Avatar for yeeitsneo

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 …

Member Avatar for ChrisPadgham
0
1K
Member Avatar for hwoarang69

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. …

Member Avatar for Tumlee
0
175
Member Avatar for hwoarang69

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?

Member Avatar for DavidAntaramian
0
137
Member Avatar for shlokka

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 …

Member Avatar for diafol
0
127
Member Avatar for FALL3N

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 …

Member Avatar for FALL3N
0
138
Member Avatar for wildplace

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 …

Member Avatar for histrungalot
0
11K
Member Avatar for ak47carbon

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 …

Member Avatar for FullDuplex
0
104
Member Avatar for MastrLuigi

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 …

Member Avatar for MastrLuigi
0
267
Member Avatar for darkseeker

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 …

Member Avatar for NormR1
0
127
Member Avatar for wildplace

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?

Member Avatar for wildplace
0
172
Member Avatar for zach1

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 …

Member Avatar for NormR1
0
238
Member Avatar for nicewave

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.

Member Avatar for jbrock31
0
122
Member Avatar for abulut

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 …

Member Avatar for d5e5
0
219
Member Avatar for InS@NiTy

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 …

0
93
Member Avatar for tendaimare

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) + …

Member Avatar for adam_k
0
163
Member Avatar for f4fjks

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 …

Member Avatar for f4fjks
0
949
Member Avatar for drameshgar1

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 …

Member Avatar for 117
0
129
Member Avatar for tjginge

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) …

Member Avatar for BitBlt
0
311
Member Avatar for mehnihma

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); …

Member Avatar for mehnihma
0
157
Member Avatar for nickecarlo

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 …

Member Avatar for TrustyTony
0
230
Member Avatar for FelineHazard

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 == …

Member Avatar for FelineHazard
0
195
Member Avatar for kampao00

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 …

Member Avatar for kampao00
0
1K
Member Avatar for mehnihma

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

Member Avatar for mehnihma
0
68
Member Avatar for deanus

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 …

Member Avatar for deanus
0
107
Member Avatar for shah1509

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 …

Member Avatar for Mitja Bonca
0
619
Member Avatar for geekdevil

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 …

Member Avatar for Labdabeta
0
321
Member Avatar for bavenbabu

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 …

Member Avatar for pritaeas
0
173
Member Avatar for srinidelite

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

Member Avatar for JamesCherrill
0
83
Member Avatar for phorce

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 …

Member Avatar for Labdabeta
0
141
Member Avatar for Troy III

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 …

Member Avatar for Troy III
0
325
Member Avatar for Labdabeta

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? …

Member Avatar for Labdabeta
0
527
Member Avatar for raviaaaa

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 …

Member Avatar for NormR1
0
191
Member Avatar for saad749

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 …

Member Avatar for saad749
0
198
Member Avatar for SasseMan

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 …

Member Avatar for SasseMan
0
247
Member Avatar for Angelojoseph17

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> …

Member Avatar for Angelojoseph17
0
158

The End.