Forum: PHP Jul 1st, 2009 |
| Replies: 8 Views: 683 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 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 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 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 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 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 Could we have a bit more detail? |
Forum: C Mar 14th, 2008 |
| Replies: 3 Views: 558 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 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 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 What do you want it to do? |
Forum: C++ Mar 12th, 2008 |
| Replies: 4 Views: 795 The output of C++ programs is in text format by default. |
Forum: C++ Mar 11th, 2008 |
| Replies: 4 Views: 468 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 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 http://www.rt.com/man/rand.3.html |
Forum: C++ Mar 10th, 2008 |
| Replies: 2 Views: 364 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 Try using periods every once in a while. |
Forum: IT Professionals' Lounge Mar 10th, 2008 |
| Replies: 49 Views: 6,266 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 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 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 |
Forum: C++ Mar 1st, 2008 |
| Replies: 5 Views: 791 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 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 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 Oops, lol. I did mean 6, but that would make it 6 iterations. |
Forum: C++ Feb 29th, 2008 |
| Replies: 7 Views: 933 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 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 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 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 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 What are you trying to do here? |
Forum: C Feb 29th, 2008 |
| Replies: 6 Views: 774 Please specify what you want the program to do. |
Forum: IT Professionals' Lounge Feb 29th, 2008 |
| Replies: 2 Views: 1,571 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 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 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 int main()
{
int n;
cout << "input number" << endl;
cin >> n;
Eigen(n);
return 0;
} |
Forum: C++ Feb 28th, 2008 |
| Replies: 16 Views: 1,238 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 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 Thanks for the advice! And, of course i'll go the legal way. :) |
Forum: Computer Science Feb 27th, 2008 |
| Replies: 2 Views: 1,051 Wow, it looks like you've put a lot of effort into working this problem out. |