Are you sure that at no point in time one of your variables which is a denominators is a 0? If it is then it could cause you to get 0.
Try simply echoing all of the variables to actually see what their values are
User Profile
Collapse
-
Using JOGL with Eclipse under Ubuntu 10.05
I am trying to use JOGL under ubuntu 10.04 on a dell Inspiron 1501 which has run OpenGL before under XFCE using C.
After installing JOGL I can importCode:javax.media.opengl.*;
Code:com.sun.opengl.util.*;
Any ideas? -
Accessing elements in the Policy Editor
I'm attempting to make a VBS script to automate a series of changes that I need to make on over 100 computers.
Thus far I've been simply using VBS to open the policy editor, then sending key inputs to the application to get it to do what I want (Move Up, Left, Hit Enter, Tab 5 times etc...)
I'm trying to find a better way, ie: once I do have a property open in the policy editor, is there a way for me to get the radio... -
PHP upload limit
Hi all,
I've been working on an image gallery where by the user can upload files to create a new gallery.
To upload files I used theCode:move_uploaded_file
Is there a upload limit to the file size based on my server or the function itself? -
Thanks alot, your suggestion fixed it all. Now I'm using PHP like an OO language and I don't plan on ever looking back.Leave a comment:
-
Thanks for your advice everyone. I think myself and my customer have sorted out a price which works nicely for both of us based on what he wants and what I can give.Leave a comment:
-
Hi all,
Though I've upgraded from PHP 4 to 5 I'm still having issues with having an SQL query in my constructor, and then accessing the results later on through functions.
Even when I just put regular text in there to be displayed I get nothing when calling it later on. Here is a snippet of the code:
Code:<?php class News { private $private = 'Private'; function
Leave a comment:
-
-
Well I've been working on this for 5 weeks now and I put about 4 or 5 hours of work into it every other day.Leave a comment:
-
-
RapidILL error
I'm attempting to get an add on named rapidILL to work with a program called Illiad.
When I run the application as an admin, everything works fine, but when I run it as a user it gives a windows error (when they ask if I want to send the issue to microsoft or not). Giving the user an admin account is NOT an option as part of company policy.
I've made a group to which I've added all policies that admins have, but users... -
Thanks alot guys, I didn't realize my host was a version behind, but they allowed for an upgrade with no problems. The upgrade to 5 solved the visibility issue. I haven't had time to check the SQL connection though, but will do so this weekend.Leave a comment:
-
Well though the end product is simple I've considered the amount of work to be put into each of the 3 main elements.
Also I've lowered the price a bit so its now in the lower $600 range.Leave a comment:
-
Pricing
I'm doing some freelance work for a birdstore owner who wants a web page done for his products.
I'm wondering what pricing is fair? Currently I've drafted a bill of $775.00, which is inclusive of:
A simple image gallery which I will custom code
An up datable products page interface which will allow him to update his products on his ow : deleting old ones and adding new ones + descriptions pricing etc.
A... -
Visibility issues using classes
So i've recently been starting to program PHP in an object oriented way, but I'm running into some difficulties in from a design stand point and from an object oriented stand point:
Issue 1: In my class I cannot give visibility to any variable, it simple breaks everything. For example if I do:Code:private $private = 'Private';
The error is the same if I use public or protected. I have tried declaring a a private... -
Getting raw audio data
I'm trying to read raw audio input say from a guitar or keyboard from my line in port on my sound card, to read the data and analyze what notes are being played.
How do I even begin to do this?
Some people have mentioned using DirectSound, which I'm currently investigating (installing right now) but I just wanted to see if anyone else has recommendations ?
NOTE: Though I posted this is C#...I'm open to... -
So pretty much I'm just really passing along a string.
I think I got
Thanks for the reply. I'm moving onto an entirely different strategyLeave a comment:
-
MySQL result resource error
Hi everyone,
I have a form which updates some info in a DB. Currently the user does a search, which will load up results, which the user can change, and then submit those changes back into the DB.
I'm attempting to make it that after submitting data successfully that the search results load back up right away, so the user doesn't have to put in search criteria again.
Results are held in a $result variable... -
Ah sorry about that, but I got it resolved.
It was only outputting the first character of a line, so if I had in my list:
Alice
Bob
Carl
I would only get
A
B
C
Kind of embarrassing to admit, but the problem was that I was using the same variable name in another file which I was making a call to. This messed everything up since I didn't even notice the fact that...Leave a comment:
-
[PHP] <select name="category" tabindex= "7">
<option value="N/A"> Choose issue</option>
<?php
//Display descriptions from /categories.txt
for ($i=0; $i<$size;$i++)
{
echo"<option value='$categor y[$i]'>$description[$i]</option>" ;
}
?>
[/PHP]
Above is the HTML wrap...Leave a comment:
No activity results to display
Show More
Leave a comment: