Forum: Geeks' Lounge 2 Days Ago |
| Replies: 6 Views: 207 So, Avatar is an awesome movie. You need to see it in 3D. It is mandatory. |
Forum: DaniWeb Community Feedback 22 Days Ago |
| Replies: 80 Views: 6,454 Well you better do something about it. It wouldn't be fair to stop me after 3 hours, when it was funny, but let these doodooheads go on for weeks and weeks. |
Forum: Computer Science 22 Days Ago |
| Replies: 10 Views: 4,942 To heck with SAS. It is software that deserves to die. |
Forum: Computer Science 22 Days Ago |
| Replies: 12 Views: 1,207 Take Japanese and then you can get really freaking tired of all the otakus in your class. |
Forum: Computer Science 22 Days Ago |
| Replies: 1 Views: 475 Edit what? A string? What does editing a string have to do with measuring the distance of two strings? What are you trying to do? Why do you want to compute the distance? |
Forum: C++ 22 Days Ago |
| Replies: 3 Views: 232 Objects in C++ can't change their type. You can have a variable of some pointer-to-animal type and then assign a new pointer-to-animal to that variable though. |
Forum: Computer Science 30 Days Ago |
| Replies: 2 Views: 535 http://en.wikipedia.org/wiki/Fibonacci_search_technique |
Forum: Computer Science 30 Days Ago |
| Replies: 1 Views: 377 What kind of Lisp? Common Lisp? Use SLIME. Emacs Lisp? I guess not, because then you wouldn't need to ask. |
Forum: Computer Science 34 Days Ago |
| Replies: 7 Views: 531 If there are 32-bit instructions, that means there are 2^32 total values these instructions could have. If addresses are 12 bits, each 2-address instruction has 2^24 values it could have. So... |
Forum: Geeks' Lounge Nov 16th, 2009 |
| Replies: 5 Views: 494 The compiler doesn't see their bodies. The functions are already compiled into a library. Lookup detailed descriptions of how compiling and linking works -- this is the sort of thing where... |
Forum: Computer Science Nov 15th, 2009 |
| Replies: 8 Views: 769 For example, suppose you have a function
int f(int n) {
if (n == 0) {
return 1;
}
else {
return n * f(n-1);
}
}
We want to measure its cost. But before we do so, we'll... |
Forum: Geeks' Lounge Nov 14th, 2009 |
| Replies: 3 Views: 478 Don't use non-open source revision control systems. They're no good anymore. Use Mercurial. Don't use Subversion unless you have large binary files or the need to control permissions for... |
Forum: Computer Science Nov 13th, 2009 |
| Replies: 8 Views: 769 Create a recursive formula for the time complexity and figure it out from there. |
Forum: Legacy and Other Languages Nov 13th, 2009 |
| Replies: 3 Views: 857 Take the sum and multiply by the step size. It's that easy.
Or see Simpson's method.
Edit: Gah, of course you have to have fractional endpoints. So treat the first and last segments specially. |
Forum: Computer Science Nov 12th, 2009 |
| Replies: 7 Views: 531 To represent an N-bit value whose value could be anything, you need.... N bits. Which eats up 2^N possible numbers. You have 2^20 available numbers. |
Forum: Computer Science Nov 12th, 2009 |
| Replies: 5 Views: 581 It apparently does, if he's considering it.
I also think the probability of the linear algebra class sucking is higher than the intro to mathematical proofs class sucking. Math department tend to... |
Forum: Computer Science Nov 12th, 2009 |
| Replies: 7 Views: 531 Why don't you just count? Each two-address instruction eats up enough of the available instruction space to represent 2 addresses. Each one-address instruction eats up enough of the available... |
Forum: C# Nov 12th, 2009 |
| Replies: 21 Views: 1,379 The real value of a forum like Daniweb is in how it helps the people who search for problems in the future. The needs of the OP are immaterial. |
Forum: Computer Science Nov 12th, 2009 |
| Replies: 1 Views: 360 I think this sort of thing should just be... intuitively straightforward. The only part that might not be is the question of how to deal with different operator precedences.
What is a program? ... |
Forum: Computer Science Nov 12th, 2009 |
| Replies: 2 Views: 533 You need to explain your problem better. What is a subdomain? Why are "keys"? What about the binary tree lets you search efficiently? If it's just a binary tree, and not the more specific case of... |
Forum: C# Nov 12th, 2009 |
| Replies: 21 Views: 1,379 The reason it exists is because somebody put it there. Supporting the marking of threads as solved is like supporting the death penalty: innocent people will get executed, and threads with bad... |
Forum: Geeks' Lounge Nov 12th, 2009 |
| Replies: 26 Views: 2,108 The trouble with trying to argue with me is that you don't disagree with me about C++.
Edit: What you disagree with, apparently, is the practice of providing reasons for the things you say. |
Forum: Geeks' Lounge Nov 11th, 2009 |
| Replies: 26 Views: 2,108 I don't care about you or your appeal to self-authority. I'm going to assume you don't know what you're talking about because most people don't.
And stop having a chip on your shoulder, and I was... |
Forum: Geeks' Lounge Nov 11th, 2009 |
| Replies: 26 Views: 2,108 Here's a nice review by somebody I consider smart: http://scienceblogs.com/goodmath/2009/11/googles_new_language_go.php |
Forum: Computer Science Nov 11th, 2009 |
| Replies: 4 Views: 546 Hey, you're right, it is easy for me. |
Forum: Legacy and Other Languages Nov 11th, 2009 |
| Replies: 1 Views: 639 You need to tell us the error message and what line it's on, and you need to use CODE tags for us to want to look more closely. |
Forum: Computer Science Nov 11th, 2009 |
| Replies: 8 Views: 769 Let's look at this one. I'm going to ignore the swap for now.
Iteration2:
public static long dominoes(long x, long y){
long temp;
double koeficient = 0, faktor;
for(long i=0; i<=x+y;... |
Forum: Computer Science Nov 11th, 2009 |
| Replies: 5 Views: 581 Take Introduction to mathematical proof. It will make you a better, smarter programmer.
Another reason is that if you find yourself interested in graphics, it wouldn't be that hard to pick up the... |
Forum: Geeks' Lounge Nov 11th, 2009 |
| Replies: 26 Views: 2,108 I think that quote is referring to type safety. Not to mention monkey-patch safety. If you know how to use C++, it's a very safe language. C++ provides the best "resource safety" of any mainstream... |
Forum: DaniWeb Community Feedback Nov 11th, 2009 |
| Replies: 80 Views: 6,454 That's just crazytalk.
See you on IRC. |
Forum: Computer Science Nov 11th, 2009 |
| Replies: 8 Views: 769 Addition is O(n) where n is the number of bits in the BigInteger, and multiplication depends on the algorithm used: http://en.wikipedia.org/wiki/Multiplication_algorithm . That depends on the Java... |
Forum: Geeks' Lounge Nov 11th, 2009 |
| Replies: 26 Views: 2,108 Well, I like it. In particular, slices, rather than pointer arithmetic, is simply The Right Thing.
I have been looking for a good safe systems programming language, and it seems like garbage... |
Forum: DaniWeb Community Feedback Nov 10th, 2009 |
| Replies: 9 Views: 1,067 I just automatically downvote every one of your posts. It's like when a girl punches you -- it means she loves you. Except I'm not a girl. And I don't love you. You're the closest thing to serkan... |
Forum: Geeks' Lounge Nov 10th, 2009 |
| Replies: 26 Views: 2,570 You are popular the way Bill O'Reilly is popular. |
Forum: Computer Science Nov 10th, 2009 |
| Replies: 1 Views: 359 First, start working on it. Then, after you've shown some progress, you'll have an easier time convincing somebody to help you. |
Forum: Computer Science Nov 10th, 2009 |
| Replies: 11 Views: 22,167 yeah
Why would you pay for something stupid? Maybe you are stupid :P |
Forum: Computer Science Nov 10th, 2009 |
| Replies: 80 Views: 108,776 |
Forum: C++ Nov 9th, 2009 |
| Replies: 1 Views: 202 Just remove a letter from the first string, print that letter, and do a recursive call. Of course, you'll want to do this for each letter. |
Forum: Computer Science Nov 9th, 2009 |
| Replies: 4 Views: 456 If you're writing production software, you should use openssl or gpg or whatever -- you shouldn't be calling cryptography routines yourself, and especially you shouldn't be writing them, unless you... |
Forum: Computer Science Nov 9th, 2009 |
| Replies: 4 Views: 456 openssl is open source.
Uh... what do you want this for? |