Search Results

Showing results 1 to 40 of 97
Search took 0.01 seconds.
Search: Posts Made By: plgriffith
Forum: PHP Jul 1st, 2009
Replies: 8
Views: 683
Posted By plgriffith
FIGURED IT OUT! That took way too long though.

It wasn't just a mac thing, and it wasn't php. It was in the MySQL settings. For whatever reason, the default MySQL install had query_cache_size...
Forum: PHP Jun 30th, 2009
Replies: 8
Views: 683
Posted By plgriffith
I lied. The two instances of php.ini are exactly the same. One thing I did notice is that the server timeout is set to 30 seconds, but when I run a script from the command line it is allowed to...
Forum: PHP Jun 30th, 2009
Replies: 8
Views: 683
Posted By plgriffith
I'm not positive yet but I think you may have just solved my problem. There are two php.ini files on my machine. One is at /etc/php.ini. The other is at /private/etc/php.ini. I was editing the...
Forum: PHP Jun 28th, 2009
Replies: 8
Views: 683
Posted By plgriffith
Hmm. I checked the two php.ini files and they are exactly the same except for the memory_limit line.

Oddly enough, memory_limit was set to 16 in Ubuntu and 128 in OS X.

Do you know if php...
Forum: PHP Jun 28th, 2009
Replies: 8
Views: 683
Posted By plgriffith
Hey guys.

I am running a php script (locally) which runs through a loop several hundred times. Each time through the loop the same computation is done with the exception of two input variables...
Forum: Advertising Sales Strategies May 4th, 2009
Replies: 3
Views: 1,038
Posted By plgriffith
Hey everyone,

I finished my site several weeks ago and I also made an affiliate program to go along with it because I figured it would help if other people were basically doing the advertising for...
Forum: C Mar 15th, 2008
Replies: 14
Views: 1,515
Posted By plgriffith
Could we have a bit more detail?
Forum: C Mar 14th, 2008
Replies: 3
Views: 558
Posted By plgriffith
You can't just give us a couple hundred lines of code and say that it doesn't work. What doesn't work, where does it fail, and what is the output?
Forum: Network Security Mar 13th, 2008
Replies: 3
Views: 1,250
Posted By plgriffith
There are four computers involved. They all run Windows with the exception of mine. We have a D-Link WBR-2310 router, and the only firewall I am using is the default one on the router. If it helps...
Forum: C++ Mar 12th, 2008
Replies: 3
Views: 536
Posted By plgriffith
You need something like the following...expanding on the previous code.



#include <iostream>
#include <cstdio>
using namespace std;

int main()
{
Forum: C++ Mar 12th, 2008
Replies: 5
Views: 555
Posted By plgriffith
What do you want it to do?
Forum: C++ Mar 12th, 2008
Replies: 4
Views: 795
Posted By plgriffith
The output of C++ programs is in text format by default.
Forum: C++ Mar 11th, 2008
Replies: 4
Views: 468
Posted By plgriffith
It has everything to do with this - you answered it yourself.
There are no braces associated with the "else" statement so that means that only the line immediately following the "else" statement is...
Forum: C Mar 11th, 2008
Replies: 6
Views: 700
Posted By plgriffith
He's not asking you to be a good programmer. He is just asking that you make an effort first and then we will be glad to help.
Write the code the way that you think it should be written and then...
Forum: C++ Mar 10th, 2008
Replies: 8
Views: 1,837
Posted By plgriffith
http://www.rt.com/man/rand.3.html
Forum: C++ Mar 10th, 2008
Replies: 2
Views: 364
Posted By plgriffith
I'm not really sure what you are asking. Do you just want a program that calls that function?


#include <iostream>
using namespace std;

int main()
{
print_splash();
Forum: C Mar 10th, 2008
Replies: 9
Views: 902
Posted By plgriffith
Try using periods every once in a while.
Forum: IT Professionals' Lounge Mar 10th, 2008
Replies: 49
Views: 6,266
Posted By plgriffith
I have been programming for five semesters now. At least one class each semester uses C++ so I would say I've been programming in C++ for about three years. I've also gotten to play around with...
Forum: C++ Mar 10th, 2008
Replies: 8
Views: 1,329
Posted By plgriffith
What does that mean? Do you want C++ development software? or software that was designed using C++? or C++ compilers?
Forum: C++ Mar 7th, 2008
Replies: 2
Views: 414
Posted By plgriffith
Finding the largest and smallest numbers in a set using "if" statements is normally a horrible idea, but if the size is only 4 then I would recommend some "if"s.

smallest = values[0];
largest =...
Forum: C Mar 6th, 2008
Replies: 2
Views: 503
Posted By plgriffith
Forum: C++ Mar 1st, 2008
Replies: 5
Views: 791
Posted By plgriffith
You could have nested "switch" statements. i.e.


switch(userPlay)
{
case 'r':
switch(cPlay)
{
case 'r':
cout << "Draw";
Forum: C++ Mar 1st, 2008
Replies: 5
Views: 791
Posted By plgriffith
Yes. Or just deal with the upper and lower cases like you did with everything else.

i.e.


if( (userPlay== 'R' || userPlay == 'r') &&
(cPlay == 'P' || cPlay=='p'))
Forum: C++ Feb 29th, 2008
Replies: 3
Views: 479
Posted By plgriffith
If you just want the value to always be positive than you can do:


if(deposit < 0)
deposit *= -1;
Forum: C++ Feb 29th, 2008
Replies: 7
Views: 933
Posted By plgriffith
Oops, lol. I did mean 6, but that would make it 6 iterations.
Forum: C++ Feb 29th, 2008
Replies: 7
Views: 933
Posted By plgriffith
That loop is saying that you are going to start the loop with i initialized to 0, and increment i by 1 for each iteration. You will keep looping as long as i is less than 5.
So, the first time...
Forum: IT Professionals' Lounge Feb 29th, 2008
Replies: 3
Views: 2,077
Posted By plgriffith
You need to get "royalty free" templates and images. These are sometimes not free, but they allow you to use them without disclaimers.
Forum: C++ Feb 29th, 2008
Replies: 1
Views: 984
Posted By plgriffith
This will be an infinite loop if there is a 0 in the row.



When you use "else if" you are saying to only check for that scenario if the previous scenario was not true. Therefore, you are right...
Forum: HTML and CSS Feb 29th, 2008
Replies: 5
Views: 760
Posted By plgriffith
Do you mean which software or which language? I would go for php and MySQL (obviously html, etc. as well). As far as software goes, just use a text editor.
Forum: C++ Feb 29th, 2008
Replies: 5
Views: 504
Posted By plgriffith
You can't initialize variables like that. You have to do int row = 0; int column = 0;, etc.
Forum: C++ Feb 29th, 2008
Replies: 5
Views: 504
Posted By plgriffith
Forum: C Feb 29th, 2008
Replies: 6
Views: 774
Posted By plgriffith
Please specify what you want the program to do.
Forum: IT Professionals' Lounge Feb 29th, 2008
Replies: 2
Views: 1,571
Posted By plgriffith
Hi,

I have two roommate's that download movies all day, every day. It's to the point now that there is no bandwidth left for me to even surf the Internet with. My question is:

Is there anyway...
Forum: Network Security Feb 29th, 2008
Replies: 3
Views: 1,250
Posted By plgriffith
Hi,

I have two roommate's that download movies all day, every day. It's to the point now that there is no bandwidth left for me to even surf the Internet with. My question is:

Is there anyway...
Forum: Website Reviews Feb 28th, 2008
Replies: 13
Views: 1,530
Posted By plgriffith
I am assuming you are doing all of your designing and checking in windows? You should see what the page looks like on other platforms. For example I run linux and the "search and compare" icon is...
Forum: C++ Feb 28th, 2008
Replies: 16
Views: 1,238
Posted By plgriffith
int main()
{
int n;
cout << "input number" << endl;
cin >> n;
Eigen(n);

return 0;
}
Forum: C++ Feb 28th, 2008
Replies: 16
Views: 1,238
Posted By plgriffith
This is the way I would approach it:
Call a function Eigen from main.
Have an array of ints in eigen. Store the first number in array[0], second in array[1] and so on.

For example, with the...
Forum: C Feb 28th, 2008
Replies: 8
Views: 1,400
Posted By plgriffith
If there is a possibility of overlapping cells, move the cells that are in the overlap section first.
Forum: Getting Started and Choosing a Distro Feb 27th, 2008
Replies: 3
Views: 3,994
Posted By plgriffith
Thanks for the advice! And, of course i'll go the legal way. :)
Forum: Computer Science Feb 27th, 2008
Replies: 2
Views: 1,051
Posted By plgriffith
Wow, it looks like you've put a lot of effort into working this problem out.
Showing results 1 to 40 of 97

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC