Search Results

Showing results 1 to 40 of 80
Search took 0.01 seconds.
Search: Posts Made By: Daishi
Forum: PHP Dec 5th, 2005
Replies: 3
Views: 1,448
Posted By Daishi
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...
Forum: PHP Nov 30th, 2005
Replies: 4
Views: 1,890
Posted By Daishi
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 Nov 23rd, 2005
Replies: 5
Views: 4,330
Posted By Daishi
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: 4,216
Posted By Daishi
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: 1,210
Posted By Daishi
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 CFile:
...
Forum: C Nov 18th, 2005
Replies: 4
Views: 4,366
Posted By Daishi
http://www.cplusplus.com/ref/cmath/pow.html

Pow, in the standard C library for mathematical operations, takes two double values by default. You could also look into the powerful powf function.
...
Forum: PHP Nov 15th, 2005
Replies: 3
Views: 2,357
Posted By Daishi
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: 2,312
Posted By Daishi
Happy birthday!

-Fredric
Forum: Java Nov 14th, 2005
Replies: 3
Views: 2,835
Posted By Daishi
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,631
Posted By Daishi
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,631
Posted By Daishi
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,631
Posted By Daishi
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: 8,538
Posted By Daishi
Yes yes, being grounded when you're in college. A true sign of an obsessive Internet dweller.

-Fredric
Forum: C++ Nov 9th, 2005
Replies: 5
Views: 4,069
Posted By Daishi
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: 5,127
Posted By Daishi
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: 5,127
Posted By Daishi
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: 5,127
Posted By Daishi
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,537
Posted By Daishi
The 'return' character is not a space, it is '\n'.

-Fredric
Forum: C++ Nov 7th, 2005
Replies: 2
Views: 4,034
Posted By Daishi
Why not use a constant pointer to the vector? If the vector is not zero, then make a copy of it inside the function.


string whateverTwo( int a, const vector<string> *defaultV = 0) {
...
Forum: C Nov 7th, 2005
Replies: 1
Views: 1,496
Posted By Daishi
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: 5,127
Posted By Daishi
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: 4,969
Posted By Daishi
http://www.daniweb.com/techtalkforums/thread19956.html
Forum: C++ Nov 7th, 2005
Replies: 13
Views: 5,127
Posted By Daishi
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,730
Posted By Daishi
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 else:

http://www.ubuntulinux.org/
...
Forum: Java Nov 2nd, 2005
Replies: 11
Views: 1,975
Posted By Daishi
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,669
Posted By Daishi
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,337
Posted By Daishi
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: 1,170
Posted By Daishi
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: 3,333
Posted By Daishi
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,459
Posted By Daishi
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: 2,294
Posted By Daishi
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...
Forum: C++ Oct 27th, 2005
Replies: 7
Views: 1,989
Posted By Daishi
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...
Forum: C++ Oct 25th, 2005
Replies: 2
Views: 2,909
Posted By Daishi
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: 4,138
Posted By Daishi
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
C++
Views: 1,354
Posted By Daishi
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: 2,590
Posted By Daishi
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>

...
...
Forum: C++ Oct 14th, 2005
Replies: 8
Views: 2,590
Posted By Daishi
I think you know how to take a factorial of a number, but your variable usage is not good.


while ( z != 0)
{
result *= z;
z--;
}
Forum: C++ Oct 14th, 2005
Replies: 3
Views: 3,196
Posted By Daishi
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: 3,979
Posted By Daishi
I put the \r in there, and I started getting data from the server!

Thanks. :)

-Fredric
Forum: C Oct 8th, 2005
Replies: 4
Views: 3,979
Posted By Daishi
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
Showing results 1 to 40 of 80

 


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

©2003 - 2009 DaniWeb® LLC