199,114 Archived Topics
Remove Filter ![]() | |
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 … ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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! … | |
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 … | |
Hi What happen whene a .jar file install in mobile device ??? | |
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 … | |
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; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
Hello, Can someone explain me what does this mean? "40[^\"], %*c" Thanks | |
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 … | |
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 … | |
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 … | |
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) … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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.... | |
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 … | |
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 = … | |
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, … | |
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 … | |
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 … | |
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 … | |
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', … | |
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 … | |
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); /* … | |
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 … | |
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) { … | |
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 … | |
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". … | |
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. … | |
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 … |
The End.