199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for DeIntegro

Say 3 integers are giving: 3, 4, 16 how does one go about writing a program to find the least common denominator? greatest common divisor? etc.. I was wondering if there is a way to use the multiples and then select the number that matches up, in this case 48 …

Member Avatar for coil
0
649
Member Avatar for beforetheyknew

Hi guys, i'm using a php response once the javascript has validated the form. I've tested it from(/on?) the server and the the form is submitting so javascript is working fine, then it reaches the php and although it was working fine earlier, displaying the 'score' etc now after i …

Member Avatar for ﻼim
0
167
Member Avatar for agent154

I'm writing a tool that will manipulate files via the command line, and what I would like to do is be able to supply a path to a file that is not necessarily in the current working directory. For example, if I run my software with the command line paremeter …

Member Avatar for Matt Gudmundson
0
301
Member Avatar for ceeandcee

What I am trying to do is to run a query in my database and output a table to a php file. If the query yields 10 resuts or rows, I would like the far left column to read 1,2,3,4,5,6,7,8,9,10. What happens now is it outputs all 1's in the …

Member Avatar for ﻼim
0
90
Member Avatar for heshanm

Hi all, I have created several validations to my forms in the web site.If a particular field is empty then a message box displayed [B]"Please enter name/address/contact number etc[/B].At the same time if I added data successfully to the database there is a message box displaying and saying [B]" Data …

Member Avatar for vhss
0
73
Member Avatar for phpDave

HI! I just wanted to ask a question. All the code looks good and works exept for this line [CODE]<input name="btn1" type="image" onMouseOut="turnYellow()" onMouseOver = "turnGreen()"/> <img name="signin" src="images/images/images/sign-in.gif" border="0">;[/CODE] What I am trying to do is use an image instead of the standard submit button. Anyone know why this …

Member Avatar for phpDave
0
89
Member Avatar for Lolecule

Hey, I'm currently writing a SUVAT calculator in Java, my program needs to know when the user enters a dash as an argument, my problem is essentially this code fragment: [code=java]if(args[x] != "-") { valuesYouHave[x] = true; values[x] = Double.parseDouble(args[x]); }[/code] From my own testing I have deduced that the …

Member Avatar for wildplace
0
161
Member Avatar for BboyRodimus

So my instructor told us to submit our assignment which I've done. She has an online java compiler that checks if the answer is right. I looked at the report and it has the right outputs and everything and below is this that makes my answers wrong: Exception in thread …

Member Avatar for jon.kiparsky
0
111
Member Avatar for psuspect

I have this program that counts characters in a string is there a way to modify this code so that for example it counts specific characters entered. Exmaple.. user entered Hello, and I wanted the program to say there are 2 "L"''s entered in that word. THanks for your help! …

Member Avatar for bluntaxe1
0
538
Member Avatar for ivatanako

I am trying to make a website that uses fopen to open up text file. Something like this [url]http://somesite.com/readarticle.php?name=sample.txt[/url] [code]<?php $file = 'sample.txt'; $f = fopen($file, r); while ( $line = fgets($f, 1000) ) { print $line; } ?>[/code] The sample.txt is located on the web server, I was able …

Member Avatar for ndunks
0
171
Member Avatar for mahdi68
Member Avatar for zachattack05

I am working on a software project that utilizes the MSSQL Express version. My question is... I have checked out software that does the same thing that I want to do, but it seems that the competition uses a file based database system. I intend to use SQL because it …

Member Avatar for zachattack05
0
107
Member Avatar for andrewliu

Hello, I got my search engine working and it does show the number of results including the number of pages it should have. But I'm having trouble outputting the results when I click next. When I click the next page it doesn't show any results. [code]<?PHP global $search_term; global $location_term; …

Member Avatar for andrewliu
0
294
Member Avatar for DaveTran

I have a 1D array and I wish to access it like a 3D array. If I know the values of the 3 dimensions Width (x) Height (y) Depth (z) then I can create the 1D array using array[width * height * depth]. How can I now access the indices …

Member Avatar for DaveTran
0
396
Member Avatar for MarounMaroun

Hello All, I'm new here, and glad to be part of this wonderful and helpful site. I'm trying to allocate a new array (lets say of size 10) inside a struct. I want to do it this way: [code=c] #include <stdlib.h> #include <stdio.h> typedef struct Circle { int *x; int …

Member Avatar for MarounMaroun
0
1K
Member Avatar for amby

hey can anybody help me.. i want to interface my hardware with the PC through usb port.... and my application program is written in vb6.0...so do i need WIN DRIVER type software for low level programming and then call win driver libraries in vb 6.0 or else? can somebody send …

Member Avatar for glenndr_15
0
2K
Member Avatar for laughnan

I send out multiple types of variables (i.e. 2 char arrays, 1 int, 1 double, and two more char arrays). But when I read then back at the beginning of the program (building a LLL) I get multiple declarations of the same variables and then when I display the LLL …

Member Avatar for Kanoisa
0
4K
Member Avatar for shaqtus

This code is in the Page_Load method of my web page. [CODE][COLOR="Red"]if (Request.UrlReferrer.AbsolutePath == "/Home/Default.aspx")[/COLOR] { Label1.Text = "You are coming from the home page."; }[/CODE] When I try to open the page, I get this error: Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. …

Member Avatar for PsychoCoder
0
286
Member Avatar for dsul

I'd like to have a windows forms application execute a command line instruction similar in structure to the following: ProcessText file1 file2 where ProcessText is a working console tool for automated text processing, file1 is the text I need processed, and file2 is the created text output. From the command …

Member Avatar for PsychoCoder
0
206
Member Avatar for DeIntegro

I understand that y = n ^ 4 will be pow(n,4)...but what about drawing the curve y = 1 - x ^ 4 y = (1 - x) ^ 4 y = 1-(1 - x) ^ 4 I appreciate your help. Thanks.

Member Avatar for DeIntegro
0
178
Member Avatar for SMG_

Right, so for a project at my work experience placement, I have to make in vb.net a game in the style of the classic "Lights Out" ([url]www.ebaumsworld.com/games/play/1111[/url]). I'm still getting used to vb.net, and I've come across a very basic problem that I need a bit of help with, I'm …

Member Avatar for codeorder
0
366
Member Avatar for xylude

I have been trying to get a loaded element to fade in on Safari for about 2 hours now to no avail. Anyone aware of a fix for this? Here is my code: [CODE] $('#badgeHolder').fadeTo('slow',0); $('#badgeHolder').load('somePage',function(){ $('#badgeHolder').fadeTo('slow',1); }); [/CODE] I have also tried: [CODE] $('#badgeHolder').load('somePage').hide().fadeIn('slow'); [/CODE] Either one of the …

Member Avatar for xylude
0
486
Member Avatar for glenak

Hi, I want to code a client/server app such that there will be one server and multiple clients interacting with the server. The clients will send messages, like "Hello, server," and the server will send messages back. I know how to write a simple client/server app, however im confused as …

Member Avatar for glenak
0
236
Member Avatar for BonaDrag

I have a string that looks like this: [ID] [LastName], [FirstName] I want to fetch the ID, it consists of one or more digits. I'm guessing I have to find the first space of the string and then fetch the digit(s) before that space. If I understand things correctly I …

Member Avatar for BonaDrag
0
217
Member Avatar for fedya
Member Avatar for uday jha
0
612
Member Avatar for hinfeyg2

Hi all, So I would like a else statement that would go like this: <?php if ($image=="none") echo "no image"; else <img src="../images/<?php echo $image; ?>"> ; ?> Obviously this does not work. Any suggestions on how to get it to work? So if $image's value is 'none' then it …

Member Avatar for hinfeyg2
0
70
Member Avatar for Hafsa0110

hello! just started out here... i need help with this program i need to generate a 3*3 matrix having unique numbers in the range 1-9. I did this program using srand but i'm unable to get the correct output...i couldn't figure out the error...could someone plz help me?? here the …

Member Avatar for ananda2007
0
180
Member Avatar for aripurwahyudi

dear all, for 2 day ago, i have re-read and re-write my code in first i have very very broken code execution in web in second : being supported by mr. twain (thanks for support), i re write the code and in previewer browser ( i use mozilla 3.6.8) its …

Member Avatar for aripurwahyudi
0
191
Member Avatar for gameon

I am trying to make dir command .I have a problem in my code.it print name of all subdirectories and files but it does not print all files of all subdirectories only print one subdirectories files. I want to print all file and all subdirectory files Void list(const char *path) …

Member Avatar for Ancient Dragon
0
136
Member Avatar for eefh01

Hi, I have been breaking my head to solve this. May be this is very simple. I am trying to convert date value to string and to merge with another string. [CODE] $dt=$_POST['formdate']; //$dt is in format of Y-m-d $msg = "The date entered is ".$dt; echo $msg; [/CODE] But …

Member Avatar for eefh01
0
106
Member Avatar for Jazerix

Hey there, so basicly I'm writing a little application that will kill some processes and some junk programs running in the background. Yea i know this can be done in task manager aswell, but I want to learn ^^. So, I want a button called "Get all running proccesses", when …

Member Avatar for Jazerix
0
150
Member Avatar for nancy11

Hi Guys, I have a problem in my code that I don't know where it is. I submitted 400 jobs to cluster and after a while I got signal seven error. All the log files shows segmentation fault error. So I fixed the seed and used the same seed that …

Member Avatar for Narue
0
91
Member Avatar for Katana24

Hi - what im trying to do is to create a way of centering an image on a frame no matter what the size of the frame. I have two classes: one called "Picture_Frame.java"; the other "MyImage.java" In the latter I get the image and paint it then call on …

Member Avatar for Katana24
0
2K
Member Avatar for ultimatebuster

This script is something i wrote during work, as I often need to do this (concatenate strings via multiple lines so it's clearer). Hopefully you guys like it.

Member Avatar for TrustyTony
0
185
Member Avatar for ashwinpdy

Hi..I'm Ashwin here...i need urgent help in implementing PaaS in cloud computing for my final year project...Is there anyway u can help me with this?? even a little push to get started wud be highly helpful....

Member Avatar for jon.kiparsky
0
110
Member Avatar for PoisonedHeart

Hi everyone, is there a possible way in moving the position of a picturebox anywhere inside an MDI form? [ATTACH]16691[/ATTACH] I tried to use the picturebox's left and top property through code but when the mdi form is loaded, the picture box is still aligned at the top, or at …

Member Avatar for Aslam Mansoor
0
684
Member Avatar for cac186

Hi there. I'm a newbie and am having what I'm sure is an easily corrected issue. I am using JFileChooser in one class to select a file that I would like to to have passed onto another class for file reading. [CODE] private String selectFileOpen(String title) { JFileChooser fileopen = …

Member Avatar for cac186
0
147
Member Avatar for hlonihloks

Hi, please assist; I'm trying to read a text file located on a url, and that file information is separatedby tabs, and some cases the results on it are null values, depending on the systems performance. now, I can't read it if all values are tabs, especially the last values, …

Member Avatar for NormR1
0
172
Member Avatar for teedoff

Ok I am still unable to create a foreign key restraint in my database. I know I posted this in another post, but after 3 or 4 days with no responses, I wanted to reword and properly explain my problem. I executed two show create table commands for my two …

Member Avatar for teedoff
0
170
Member Avatar for kiranbvsn

Hi all, I am working on a project in which when I clicked a hyperlink a pop up window has to be displayed for 2 pages. But at first when i did this in javascript it worked, later after i finished the whole coding suddenly an error box displayed that …

Member Avatar for dnanetwork
0
212
Member Avatar for shaqtus

I'm creating a website which has a login function. Once the user logs in, they are shown a button that allows them to log out. When the user logs in, a boolean variable on the server is changed to "true", because the user has logged in. When the user clicks …

Member Avatar for dnanetwork
0
131
Member Avatar for acrocephalus

Hello! I have been playing around with python and mysql, and I have started thinking about creating a database to record my bird sights. For connection purposes, I have programmed this class [CODE]class LoginDlg(wx.Dialog): def __init__(self): wx.Dialog.__init__(self, None, -1, 'Login to Ornithobase 1.0b', size=(250,150)) def comboLogin(): import MySQLdb db= MySQLdb.connect(host='localhost', …

Member Avatar for acrocephalus
0
193
Member Avatar for Hisham-Usif

I'm wondering whether it is possible to declare a global variable in a click event. I need to declare an array of a specific size. The specific size is generated using a series of IF statements. I only need to know how to declare it. Thanks in advance I'm using …

Member Avatar for peter_budo
0
161
Member Avatar for NicAx64

hi all, I'm new to the linux programming first of all. I just wrote this program. [code] #include <fcntl.h> #include <stdio.h> #include <iostream> #include <string> using namespace std ; int main(int argc,char **argv) { /* open the file */ string _path_name = "./file"; string _return ; int fd=open(_path_name.c_str() ,O_RDONLY); /* …

Member Avatar for mike_2000_17
0
146
Member Avatar for judithSampathwa

hey, i am using a datagrid view calender column in a form, i add all the details of it to the database.(such as the due date as 08/20/2010) and then when i come and open it in the next day try to edit it, it gives an error saying "Argument …

Member Avatar for Geekitygeek
0
141
Member Avatar for Lightninghawk

One of my affiliates is having a problem with his Google Adsense and JavaScript. It works about 2/3's of the time. But on other occasions it gives an undefined error or only one ad shown. The original code is as follows: [CODE] function google_ad_request_done(google_ads) { if (google_ads.length > 0) { …

Member Avatar for mplok
0
216
Member Avatar for blaisemcrowly

I have a problem that i have tried my best to solve.. but its not working well in my program i take both integer and character inputs. [B]when typing fast i noticed that, when a user accidentally enters a character instead of integer or integer instead of character the program …

Member Avatar for MooGeek
0
2K
Member Avatar for morganJohnson

I've got a slight problem with a function I'm writing. I'm trying to pass a 2d array to a function whose sole purpose is to display the contents of said array. Now, what I'm about to give you all compiles, but my compiler (bloodshed's dev-c++ v4.9.9.2) is giving me "warnings". …

Member Avatar for morganJohnson
0
184
Member Avatar for insanely_sane

Ok.. so I just started python (just = 3 hours ago). I have basic input and output set. Hell I even understand slicing and stuff (OMG SUBSTRINGS SO MUCH EASIER ON PYTHON :O ) but Im finding it not so easy to understand how to use for loops (silly me. …

Member Avatar for insanely_sane
0
210
Member Avatar for willgr

I have developed a C++ CGI which runs fine on Apache on Win32. I would like to deploy the program onto linux. My plan is to install Wubi (i.e. Ubuntu) and compile the CGI there so that it will work on the linux server. But before I do, I need …

Member Avatar for willgr
0
239

The End.