789 Posted Topics
Re: Please don't use bold text when you post. It's meant to give emphasis to parts of a post, not the entire body; using it too much is poor netiquette. Also, please use [noparse][code] and [/code][/noparse] tags when posting code excerpts. The problem is on this line: [inlinecode] area = sqrt(s(s-a)(s-b)(s-c)); … | |
Re: C#: You can shoot yourself in the foot, but it's unsafe to do so. | |
Re: While I resent the stereotype that young men are crazy drivers, there is some truth to it. I know I wasn't afraid to speed through areas, although I claim that I only did so to a safe extent. The only accident I've been in was not my fault (I was … | |
Re: [quote='Stein;264034]I would slightly argue against this last phrase. Let's take agriculture for example. If food stores and supermarkets were taken away (for whatever reason) do you think it would be possible for the current population to survive by farming/hunting/gathering? I would argue that these skills have been in time. Farming, … | |
![]() | Re: [quote=jbennet;365454]i know that under ubuntu you can use (its either automatix or easyubuntu, i cant remember) to install the sun JRE and other stuff like dvd support and the wma codecs easialy but im not sure if these apps work with kubuntu[/quote] Since the only difference between the two (AFAIK) … |
Re: I'd probably set up a computer as a lowly little server. And/or share the connection with my neighbors, depending on the cost. However, I sincerely doubt that such a connection will be available for residences in the US for a long time. It would take an enormous backbone network to … | |
Re: Look at degrees in IT or information systems (I think) if you're going to continue with school. And the CCIE is great to wave around and get you started. But here's the catch: the people in industry value experience over anything. A friend of mine is a network engineer at … | |
Re: It's stupid and even if it happens it won't change anything. | |
Re: I like the keyword highlighting, but I'm also too lazy to type the language so that doesn't work too well... unless each forum had the code blocks default to the appropriate language for that forum? That said, I prefer the green text because it's easier to distinguish than black. And … | |
Re: "Democrat" and "Republican" are references most non-American's wont quite understand. I don't associate myself with either party either; I'm mostly moderate but slightly conservative (adapted the the USian scale of moderate and conservative :icon_wink:). And I'm definitely a capitalist. | |
Re: You might look into ndiswrapper. It emulates the Windows driver API, allowing you to use Windows drivers in Linux. Never used it myself though, so I can't be of much more help. | |
Re: I was too lazy to turn off scripts so I added up my own. Screwed up on question 9 though. My score was 20 :icon_twisted: | |
Re: Haven't seen either of them. I don't have a TV, nor the time to watch it. :P | |
Re: Ok, first, if you'd read the rules and guidelines, you'd have seen that you should post your code between [noparse][code] and [/code][/noparse] tags. That preserves the indentation and adds line numbers to make it easer for us to read and refer to your code. Keep it in mind for next … | |
Re: I agree with the guy who thinks it's absurd. It is. Chimps are not humans. | |
![]() | Re: Linux is well known when it comes to a server OS. However, most people don't know or care about server OSs, so Linux is currently becoming known to the general public for its progress as a desktop system. And LAMP is not the end-all to server configurations. Sure, it works … |
Re: A fraction short of 6'. | |
Re: Different solution using stringstreams: [code] #include <sstream> #include <string> #include <iomanip> using namespace std; string foo(string city, string state) { stringstream ss; string str; ss << left << setw(16) << city << right << state << endl; getline(ss, str); return str; }[/code] | |
Re: Depends on what you're optimizing for. In general, it's fine to just use efficient algorithms and let the compiler do the nitty-gritty. It doesn't really matter how well you optimize something if you optimize the wrong part. | |
![]() | Re: Don't have one. Gentoo's been just about everywhere if you really feel up to it though. And I think YD might even be officially supported. |
Re: Post your code and we'll take a look at it. :) | |
Re: If you're looking for WM ideas and configs, try going to forums for various distros and see if they have a wallpaper/screenshot thread. The Gentoo forums does one each month (not everyone even runs Gentoo :P) but they're all very open about sharing configs and backgrounds. I'm pretty sure Ubuntu … | |
Figured we ought to split this out of the VT shooting thread. Here's some posts that have already been made (and if a mod can move others, that'd be great). Hopefully I got them all in the right order... (and hopefully the thread isn't a dupe... but I couldn't remember … | |
Re: Don't know how feasible it is in your situation, but a setup with transparent filtering (such as a proxy or firewall) would probably be easiest to monitor/log what she does and still limit what she can or can't do. Of course, this'll probably require a little more effort on your … | |
Re: [quote=cscgal;360434]I've darkened the color of the IT Water Cooler. Does it look shit-colored now though?[/quote] I'm not fond of the color, but I don't go to that part of the site anyways :P | |
Re: Taking Dani's post to heart, I turned off my adblocker (AdBlock Plus 0.7.5) and it sped things up significantly. | |
Re: I don't see it happening, at least not given the current status of each company. Microsoft is already pouring a ton of money into their search, and they are quickly improving their product. I can't see them gaining anything by integrating Yahoo's search. The benefit for Microsoft AFAICT would be … | |
Re: With a growth rate of 30%, it'll be at 130% after each year. Since that compounds, you'll just have a simple formula of: [tex]pop = 2000(1.3^x)[/tex] This assumes the compounding happens at one instant per year, rather than calculating continuously. Plug that in, and you'll get 5712 | |
Re: It's just a case of lazy evaluation. if $ret is false, then [inlinecode]$ret = $ret && foo()[/inlinecode] will never evaluate foo. The loop will execute 10 times, but the function call only as long as $ret is true. | |
Re: You're redirecting the output to a file called y, not into a variable $y. And do you need wc? You have the number of lines from using egrep -c. | |
| |
Re: Also in agreement with tgreer. And while the gaming crowd seems to stress the "lounge" part of it, I prefer to emphasize the "geek" part of it. At this point, I'm spending more time going to other forums when I want some intellectual off-topic discussions. The games are in the … | |
Re: [quote=joshSCH;358567]haha.. California is moving away from the U.S. mainland.. Which may be a good thing.. They can be their own little country out in the ocean by themselves! =p[/quote] Just like Hawaii. On a slightly more serious note, if such a thing were to happen, they'd be the 8th or … | |
Re: From a quick skim of Wikipedia articles for each of them, they seem largely unrelated. Thermal hysteresis seems to be the range of temperatures at which a solution will undergo a given state change. Hysteresis in general seems to be the phenomenon of systems which undergo a lagged reaction to … | |
Re: I prefer to use Sun's, since they're the ones who created the language. I don't know how others compare, though. | |
Re: [quote=joshSCH;358512]micheal jackson is gay, and shouldn't be allowed to live in the U.S...[/quote] I think the gay community would be offfended at that comparison :icon_evil: :icon_lol: | |
Re: It's more like you aren't even trying to match the professional appearance that Daniweb strives for. While many people, professionals included, to take to using common abbreviations, spelling as a whole should be correct. An abbreviation and a [sometimes deliberate] typo are two drastically different things, and they give off … | |
Presumably anyone who monitors Digg or Slashdot will already know, but the cryptographic key for AACS (the standard used in HD-DVD and BluRay) has been leaked and is spreading like a virus. What do you think the repercussions will be? Is it good that the key leaked? | |
Re: Aside from ;) I like them. That one just looks... I dunno... wrong... :-/ | |
Re: what about [inlinecode]sed "s/$stringa/$stringb/g" $filename[/inlinecode]? | |
Re: My crystal ball tells me you're calling pop() before you've called push(). It could also be due to a mismatch. For more detailed analysis, provide more details, such as how the stack works or an input string that causes the error. | |
Re: Sure, but first you'll have to help yourself. We won't do it for you, so show what you've considered so far and why you think it's right or wrong and what you're stuck on. | |
Re: [quote=christina>you;342492]Does that even matter?[/quote] If you were worried about details, it would matter. The passengers were part of the energy system, and stopping them would require energy as well. If passengers from one vehicle were to continue flying through the windshield, it would change the amount of energy involved in … | |
Re: As I recall, the ASCII for a space is 32, not 0127 (which is a 'W'). I recommend you look at the isspace(int) function available from <ctype.h> as it will match all whitespace characters (spaces, newlines, tabs, etc...) | |
Re: There isn't exactly a whole lot there to bother optimizing. And be sure that the code you're working on is worth optimizing. Most of the time people try to optimize their code, they end up worrying about details that hardly affect the software's performance. | |
Re: [quote=joeprogrammer;338335]<stuff about Geek Lounge>[/quote] Completely agree on this. I've almost stopped going to the Geek Lounge because it's filed with the same 5 word games and a few links each time. Every few days there'll be something interesting. Maybe we could have a play forum for the word games, and … | |
Re: If you're using C++, you should probably be using the std::string type rather than C-style strings (char*). And your line [inlinecode]strlen(getWord) = numLetters;[/inlinecode] is backwards. Try flipping it around. ;) | |
Since all our arguments are going everywhere and taking over everything, I propose that we keep our griping, whining, complaining, and whatever else rep related to this thread. And then we can continue hijacking everything else in our normal way... And now all the rep I've actually deserved (good and … | |
Re: [quote=Narue;354502]I wasn't ever encouraged, so either I suck at writing tutorials, or no. ;)[/quote] Having read a couple off your website, I'd go for the latter :icon_wink: |
The End.