Forum: PHP Dec 5th, 2005 |
| Replies: 3 Views: 1,169 Re: Scripts Linux You sure can do that. Assuming that user.sh is in the same directory as the php page, just use the backtick operator:
<?php
`./user.sh`;
?>
If user.sh isn't in the same directory, try using the... |
Forum: PHP Nov 30th, 2005 |
| Replies: 4 Views: 1,316 Re: specifying home dir There are more than likely server configurations that are preventing you from accessing the file in ~/functions/. This is primarily due to security issues.
Also, you probably should specify which... |
Forum: Computer Science and Software Design Nov 23rd, 2005 |
| Replies: 5 Views: 3,397 Re: Trie/Tree addWord() method Well, if you are using Java, this is pretty darn easy to do. Each node could have a list of node references (or pointers, in other languages) within its structure. For example:
class Node {
... |
Forum: Game Development Nov 21st, 2005 |
| Replies: 3 Views: 3,298 Re: Basic virtual reality questions http://www.ncsa.uiuc.edu/VR/VR/
I've taken a few classes in developing virtual reality programs. We used the facilities posted above. I wrote code with primarily CaveGL (very similar to OpenGL),... |
Forum: C Nov 18th, 2005 |
| Replies: 1 Views: 990 Re: Saving to a file You can check out CFile, if you want to stick with the MFC stuff and not mess with STL or the C file input/output functions. For... |
Forum: C Nov 18th, 2005 |
| Replies: 4 Views: 2,898 |
Forum: PHP Nov 15th, 2005 |
| Replies: 3 Views: 1,502 Re: Function variables By default, all variables used in functions are local variables, even if you use the same name of a global variable. You have to declare them global within the function. You can achieve this by... |
Forum: Geeks' Lounge Nov 14th, 2005 |
| Replies: 8 Views: 1,830 |
Forum: Java Nov 14th, 2005 |
| Replies: 3 Views: 2,057 Re: creating a Trie There is. Here's a handy little link:
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Map.html |
Forum: Geeks' Lounge Nov 13th, 2005 |
| Replies: 7 Views: 1,329 Re: Bankruptcy Thank you, it was reassuring to hear that.
You're right, if I can convince them to accept my offers for repayment then I would be set. The only problem is that they think my parents are rich and... |
Forum: Geeks' Lounge Nov 12th, 2005 |
| Replies: 7 Views: 1,329 Re: Bankruptcy Thank you for the replies. I managed to talk some sense into the financial aid loan place today and they reinstated the loan...so there is a bit less pressure on me now.
I'll keep that in mind... |
Forum: Geeks' Lounge Nov 11th, 2005 |
| Replies: 7 Views: 1,329 Bankruptcy This is a very sensitive subject for me, however I am looking for opinions from the tech community on it.. This past year has been screwing me left and right financially. I'll let you all in on... |
Forum: Geeks' Lounge Nov 10th, 2005 |
| Replies: 48 Views: 7,121 |
Forum: C++ Nov 9th, 2005 |
| Replies: 5 Views: 3,189 Re: converting C++ to C Well, one thing that you could do is to take away the couts and use printfs... Use fopen, fprintf, and fscanf instead of the std fstream stuff. Make sure all of your variables for functions are... |
Forum: C++ Nov 8th, 2005 |
| Replies: 13 Views: 3,893 Re: GUI with C++ That may be true, but you should know that I had been using MFC exclusively for the past 3+ years...sigh... I had only found out about fltk and gtk within the past few months.
-Fredric |
Forum: C++ Nov 8th, 2005 |
| Replies: 13 Views: 3,893 Re: GUI with C++ Actually, I do write programs with user interfaces in emacs IN Linux. I use gtkmm, and fltk. They are extremely easy to use, understand, and I don't need to constantly check back through... |
Forum: C++ Nov 8th, 2005 |
| Replies: 13 Views: 3,893 Re: GUI with C++ In my opinion, if you can sit down in a simple text editor, and without looking at any notes, write out the code for a simple application, then you are using the right libraries for the job. If you... |
Forum: PHP Nov 7th, 2005 |
| Replies: 2 Views: 1,256 Re: str_replace The 'return' character is not a space, it is '\n'.
-Fredric |
Forum: C++ Nov 7th, 2005 |
| Replies: 2 Views: 2,426 |
Forum: C Nov 7th, 2005 |
| Replies: 1 Views: 1,226 Re: Problems reading from files Probably the '.txt' that you are reading is an ASCII file. .jpg and (I think) .doc are binary files. The difference is that ASCII files generally store readable text data, and binary files... |
Forum: C++ Nov 7th, 2005 |
| Replies: 13 Views: 3,893 Re: GUI with C++ Sorry, I was referring to developing MFC applications, and I haven't seen anyone do it without that resource editor that comes with MSVC++ 6.0.. Seriously, do you know of any good tutorial or... |
Forum: C Nov 7th, 2005 |
| Replies: 1 Views: 2,807 |
Forum: C++ Nov 7th, 2005 |
| Replies: 13 Views: 3,893 Re: GUI with C++ Sure. If you are just starting out with GUI's then stay away from MFC, far, far, far away from MFC. In fact, always stay far away from MFC, there are things out there that surpass it in every... |
Forum: Getting Started and Choosing a Distro Nov 3rd, 2005 |
| Replies: 2 Views: 3,052 Re: Gentoo, Slackware??? I started out with Gentoo, and I still use it for my server, because I haven't found anything better for my experience level...but I use Ubuntu for everything... |
Forum: Java Nov 2nd, 2005 |
| Replies: 11 Views: 1,657 Re: Compiling public class b
{
public static void main(String args[])
{
a w = new a();
a.prt();
}
You're trying to call prt() as a static method of a, which it is not. Shouldn't that be w.prt()? |
Forum: C Nov 2nd, 2005 |
| Replies: 4 Views: 1,466 Re: interesting doubt Easy. Go to the spot in the array where you want to delete the element. Copy the next element in the array to that spot, move to the next element. Repeat the process until you get to the end of... |
Forum: C++ Nov 2nd, 2005 |
| Replies: 3 Views: 1,094 Re: Couple of little things I think he meant doing something like:
*sSaverPtr = filled;
Which dereferences whatever sSaverPtr points to, and changes the stored value there to filled.
-Fredric |
Forum: C Oct 31st, 2005 |
| Replies: 3 Views: 979 Re: Dont kNow Where this is going wrong?? Well, if you don't know what is wrong with it, you can't expect anyone else to know what is wrong with it. What problem is it giving you, specifically? It compiles and runs just fine for me, and it... |
Forum: PHP Oct 30th, 2005 |
| Replies: 4 Views: 2,644 Re: File Attachment Small Problem Like the error message makes perfectly clear, the variable is not defined anywhere before that call. Are you trying to send over the attachment's filename? Judging from your code, isn't that being... |
Forum: PHP Oct 30th, 2005 |
| Replies: 3 Views: 1,183 Re: Newb PHP question In PHP, as with most object oriented languages, $this is a reference variable that allows access to members variables of the class $this is used in. For example:
class NumberClass {
var... |
Forum: C++ Oct 29th, 2005 |
| Replies: 1 Views: 1,706 Re: queue implementation error I don't quite understand what it is you're doing here:
void insert(int array[])
{
int value;
int *frontPtr = array; // referenced both pointers to first element into the array
... |
Forum: C++ Oct 27th, 2005 |
| Replies: 7 Views: 1,730 Re: homework assignment help Well, try all numbers from D to 1,000,000. I was able to write a program that calculates this in under 20 seconds.
BestPi: 3.141592653588651 3126535/995207
I used one loop that went from D equals... |
Forum: C++ Oct 25th, 2005 |
| Replies: 2 Views: 2,379 Re: Need C++/OpenGL Help I managed to get your code to compile and run, but I had to kill it after clicking twice. After looking at your code I noticed that you were trying to draw in the glut mouse function, that's a bad... |
Forum: Java Oct 17th, 2005 |
| Replies: 2 Views: 2,490 Re: Special Character generation int i = 5; // Or number in the ascii table.
System.out.format("%c ", (char)i);
http://www.lookuptables.com/
Is that what you mean by special characters?
-Fredric |
Forum: C++ Oct 17th, 2005 |
| Replies: 2 Views: 914 Re: C++ A final class? You mean like a final variable in Java? I haven't heard of that before in C++. But to answer your question about making private constructors, the only reason why I could see you... |
Forum: C++ Oct 14th, 2005 |
| Replies: 8 Views: 1,974 Re: Anyway can help me to solve this problem??? I didn't see it the first time, but the ^ doesn't do what you think it does in C++, if you want to take m to the n power then you use the pow function like so...
#include <math.h>
...
double... |
Forum: C++ Oct 14th, 2005 |
| Replies: 8 Views: 1,974 |
Forum: C++ Oct 14th, 2005 |
| Replies: 3 Views: 2,352 Re: deleting spaces in an ansistring Isn't std::string the ANSI string?
Why are you not using std::string? If you were you could just do...
result.erase(result.find(' '));
To remove one space...
-Fredric |
Forum: C Oct 10th, 2005 |
| Replies: 4 Views: 2,770 |
Forum: C Oct 8th, 2005 |
| Replies: 4 Views: 2,770 Re: HTTP1.1 GET problem. That doesn't seem to work, although it should. I have no idea what's going on, I think I'll just have to settle with HTTP1.0...
-Fredric |