1,684 Posted Topics
Re: [QUOTE=joshSCH;418000]..obviously there is some controversy as to whether homosexuality is a choice or 'genetic'.[/QUOTE] That's not true. That is, there is not a dichotomy between it being a 'choice' and being 'genetic'. A condition can be congenital but not genetic, and it can be a result of environmental (chemical) stimuli. … | |
Re: All common human behavior has evolutionary causes. Societies that carried 'gay genes' apparently held some advantage over those that didn't. To treat evolution as a contest between individuals is to be mistaken. Also, not all human attributes are genetic, though -- some congenital attributes have to do with conditions in … | |
Re: Your fibonacci function runs in exponential time. Let me put it this way: Suppose that it takes 1 microsecond to compute fib_num(0) and fib_num(1). Then, in computing fib_num(2), you'll call fib_num(0), which takes 1 microsecond (mms, I'll abbreviate), and fib_num(1), which also takes 1 mms. This means that fib_num(2) will … | |
Re: Dev-C++ is not a compiler. You should try having reasons for your opinions in the future, it's a better strategy for being right. | |
Re: Don't give up brahle! You'll just get used to always making sure you're not overgeneralizing, the way we all did when we slammed into Narue... | |
Re: Binary code does not need to be compiled. | |
Re: Sorry, I'm interested in teaching, not in working. | |
Re: Instructions for proper password digestion: http://codahale.com/how-to-safely-store-a-password/ | |
Re: Describe all the interesting projects you've worked on outside of class. | |
![]() | Re: > Therefore, if someone posts an article or tutorial on DaniWeb, we require full copyrights to that content, because we need to make sure that it doesn't get published elsewhere, therefore damaging us with the search engines. By having these rights, we are able to go after other publications that … |
Re: If you can't learn trigonometry and calculus, I don't think you'll be able to get through a bachelor's in college, no matter what your degree is, since most require calc as part of the general education requirements. Though universities do have different definitions of what constitutes having 'learned' calculus... Also, … | |
Re: If you don't have data to store, you wouldn't use a database system. | |
Re: For the first programming language to learn, the universal recommendation is Python. Many people will argue you *can* go wrong with Java (to contradict the sentence fragment hwoarang69 emitted) and your goal, being to get your mental model of programming up and running, is best served with Python. (Other languages … | |
Re: Hello Christopher Welborn. Thanks for posting your code. By posting your code, you have granted DaniWeb an exclusive copyright license to your code according to DaniWeb's terms of service. You may no longer use it and have no rights to you code. Please delete your code from your computer. As … | |
Re: Hello lostelf and speakon. Thanks for posting your code. By posting your code, you have granted DaniWeb an exclusive copyright license to your code according to DaniWeb's terms of service. You may no longer use it and have no rights to you code. Please delete your code from your computer. … | |
Re: The proper functions are the basic string handling functions. It's called programming. There might be some command line parsing library but it is so trivial to support this feature yourself. | |
Re: A master's in computer science is basically worthless when it comes to causing increased future life earnings. Actually, it has negative value, because of the lost year or two. It might be *correlated* with higher earnings (or might not) but don't be fooled into thinking that's a causative effect. > … | |
Re: Hello silvercats. Thanks for posting your code. By posting your code, you have granted DaniWeb an exclusive copyright license to your code according to DaniWeb's terms of service. You may no longer use it and have no rights to you code. Please delete your code from your computer. As the … | |
Re: Well you certainly can't do it that way, it's against the law. By posting your code, you have granted DaniWeb an exclusive copyright license to your code according to DaniWeb's terms of service. You may no longer use it and have no rights to you code. Please delete your code … | |
Re: Unfortunately your problem is not solved, you'll have to rewrite everything, your code is illegal for you to use. By posting your code, you have granted DaniWeb an exclusive copyright license to your code according to DaniWeb's terms of service. You may no longer use it and have no rights … | |
Re: Hello Qonquest, unfortunately you no longer have the legal right to use the code you have written. By posting your code, you have granted DaniWeb an exclusive copyright license to your code according to DaniWeb's terms of service. You may no longer use it and have no rights to you … | |
Re: He posted it so that he would become legally prohibited from using the code under other circumstances. | |
Re: > What is MVC really? A design pattern. > Is "model-view-controller" basically the way all ASP.NET programs in Visual Studio are made? No. Certainly not. Programs using the ASP.NET MVC framework, on the other hand, might use the design pattern. Unless ASP.NET MVC framework actually is designed for a different … | |
Re: Having a variable named `l` is a bad idea. Overloading the address-of operator is a terrible idea. | |
Re: > Note that I fixed a few other issues as well... :-) Oh really? Now Valgrind can't catch uninitialized value errors when somebody forgets to initialize the object with setvolume. | |
Re: Did you change your BIOS settings back? Also, unplug your monitor cable and plug it back in, at both ends. Also, unplug your monitor power cable and plug it back in, at both ends (sorry, I know you know I'm assuming you're a bit retarded here, just do it). Unplug … | |
Re: > The website will be developed with PHP, MySQL, and several other established open source languages + technologies. The reason I list the two above technologies is because I remember hearing some stuff about a MySQL license that prohibits people from using it publically for profit, or selling software that … | |
Re: That is a low-specced laptop by modern standards, but it's not a cheap piece of trash by merit of being made by Lenovo, your classmate is an idiot. It's cheap because Lenovo's Ideapad line is a bunch of cheap laptops. Obviously if you're going to get the laptop that costs … | |
Re: You don't have to define a _SIZE macro to initialize the size of the vector to zero... If anything you should use const ints instead of #defines, but in this case just put a 0 in the code. Also _SIZE is a reserved word under POSIX, since it begins with … | |
![]() | Re: The answer is that yes, exploiting security holes requires programming. And finding them requires knowing how to code, too. (Or we could get butthurt and chatter on about how one person could write the code and another might deploy it, and gosh, some people are *morally wrong*, how dare they … |
Re: Okay... What part do you need help with? | |
Re: Look up "random shuffle" algorithms. The way it works is that you fill the array with N values, and then you pick which value should go last, picking a number from 0 to N-1. Then swap that value with the one in the last position. Then pick a value which … | |
Re: What you actually want to do is return a pointer to a function. (Or, perhaps you really want to return a `std::function<void(YType, ZType)>`, which is different, but the first thing to learn is how function pointers work.) Search for "function pointers" and learn how they work, they'll do what you … | |
Re: The Python documentation on the website provides a suitable introduction. | |
Re: In python you don't have to declare types and you don't have to declare interfaces, the way you do in certain other languages, and it has certain constructs like list comprehensions and general "functional" features that let you avoid having to write things in terms of declaring local variables and … | |
Re: 700 million records is not a lot for one machine. (Several million users trying to retrieve information from 700 million records would be a lot, though.) Facebook has many many more records than that, because there are many postings and photos per user. | |
Re: Just forget the desktop and crazy remote desktop schemes. You don't need a desktop for anything, and remote desktop will get tiresome fast. You should get a laptop and an external monitor. It'll have more power than you could need. You should get a Thinkpad T430 with Ultimate-N wifi, a … | |
When I go to reply to a post, the textbox is absurdly tiny, and since it's no longer a browser textarea, it can't be resized using browser controls. It's basically unusable. Also I'm not contributing an article when making this post. I am creating a new thread. | |
Re: Maybe your system is broken, and doesn't flush the output buffer (or displays it incorrectly) when the program exits. Try adding a `cout << flush` or perhaps a `cout << endl` before exiting main. | |
Re: Do a depth-first traversal through the decisionspace, ordering by expected time of finishing the design having made that decision. | |
Re: More succinctly: > I know .NET is a Microsoft framework. I currently use Visual Studio 2008 for C++ programming in school. Am I using .NET? No. > What is .NET? More specifically, is C++ a .NET framework by default? Does it just relate to the class libraries? .NET, in terms … | |
Re: Generally speaking, having different linking structures overlaid on the same information is a very normal thing. A common example is when you want a one-to-one bidirectional dictionary, where you can lookup values by key or keys by value. The appropriate solution is situational. If you have, for example, things concurrently … | |
Re: This is not a computer science question. And it's not interesting. Also the answer is that there are no such tools. (Or if there are, they aren't good. Heck, there aren't any good 2D UML tools. The fact that you're specifically asking for 3D instead of simply the most optimal … | |
Re: Look for books on Objective-C. Objective-C++ is just Objective-C with C++ features. Once you've learned Objective-C, you'll know how to use Objective-C++. |
The End.