Infarction 503 Posting Virtuoso

Approximately 400 GB of music. That's like, I dunno, 30,000 songs? Something like that :p

Your collection has grown since your last post in the thread 2+ years ago...

I'm up to 5218 songs, which is putting me at around 34GB. A lot more of it was legally acquired than when I last posted though ;)

Nick Evan commented: good to see you back +17
Infarction 503 Posting Virtuoso

I can't narrow it down to 3. But Hellsing was in there somewhere.

Infarction 503 Posting Virtuoso

You can use the key with any Home Premium disc. You're even allowed to buy another copy and change your key after it's been installed (don't know why they have this feature, but it can be useful if you need a quick install but don't have a new key handy).

deerslayer_1704 commented: Thanks for your help Infarction +1
Infarction 503 Posting Virtuoso

For me, the list would probably be something like:

surfing the 'net (not very IT, really)
watching anime
knitting (even while watching anime!)
my girlfriend :P

Infarction 503 Posting Virtuoso

I'm probably wrong but it looks like the pattern a .410 shotgun would make choked down. If I am right, I would like to know the distance for that spread (er, if I am wrong, nevermind).

I had the same idea, though I wasn't particular about the caliber of the gun. Of course, whatever choke may have been used, the range would have to be long enough that the shot had mostly dispersed, or else there wouldn't be a piece of paper left...

Infarction 503 Posting Virtuoso

I've largely abandoned Facebook. It's only useful for managing events with people who don't use anything else.

Social networking sites are highly overrated :P

Infarction 503 Posting Virtuoso

Well I supposed you're sort of expected to :P

Actually, it was a bad experience writing a PHP website. I was sick of the language at the end, and then came across ASP.NET. Neither's perfect, certainly, but I find the model for ASP.NET easier to manage on a larger project.

Infarction 503 Posting Virtuoso

You might also come to find that php is cooler than asp, and quite possibly never look back.

I found the opposite, so you never can tell.

@OP: as mentioned, Visual Web Developer 2005 and 2008 have their own web server. It's not exactly the same as IIS, but you can use it to test and debug your web applications before deploying them to a web server.

Infarction 503 Posting Virtuoso

I'm again suspicious of your PATH. Here's mine:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Intel\Wireless\Bin\;C:\Program Files (x86)\Windows Imaging\;C:\PROGRA~1\CA\SHARED~1\SCANEN~1;C:\Program Files\CA\eTrust Antivirus;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\

Notice the system directories at the beginning. These should be first, as they should be the first place the system looks for executables. Since they didn't show up in yours, I'm almost curious if something wiped your PATH out. You can try putting those back in (just edit the value from that dialog) and see if that fixes it. ping, for example, is in the %systemroot%\system32 directory.

pavithraCS commented: this is exactly what i wanted, thanks! +2
Infarction 503 Posting Virtuoso

First guess would be that your PATH environment variable is screwed up. If you go to Start, right click Computer, select properties, hit the Advanced System Settings link, and then hit the Environment Variables button, you should be able to find the Path. Make sure it's not empty.

Infarction 503 Posting Virtuoso

I have a pretty good idea, but I can't remember what the official date is... :P

I hope it's safe to say "first quarter of 2008"

Infarction 503 Posting Virtuoso

Didn't they say they were gonna stop selling XP? Or have they not done that yet?

While most manufacturers are moving to Vista, I believe XP will still be supported for a while to come. Afterall, there will be an SP3 that comes out I think when Vista SP1 launches. XP will probably stick around till the system after Vista is released.

Infarction 503 Posting Virtuoso

seredipity, I'm pretty sure you mean Vista SP1.

That said, most any computer store that sells a decent amount of software should still carry XP. Heck, even the MSFT company store still has a lot of it... :icon_wink:

Infarction 503 Posting Virtuoso

Or start giving warnings to those who do it.

IMHO this is the better plan. It should be considered unacceptable behavior to leave such messages, whether or not the words show up or the comment is rephrased.

Infarction 503 Posting Virtuoso

Should I set up an Access database for this menu?
Such as the appetizers, main course... , but leave the prices in an array.
Or should I also set the prices up in a database too.
I will set this up if this happens to be the right way to go and then post back if I
run into any problems. Again I am not asking for anyone to do my
homework for me, just to steer me in the right direction.

Thank you

If you do decide to use a database, keep all the data together or else it would become a mess to keep it all together. Personally, I'd use a SQL Express database, but I'm familiar with SQL and I've not used Access so there's a huge bias there. For something this small, you could just leave it in the code as well.

Infarction 503 Posting Virtuoso

President Bush may not know how to pronounce "nukilar" correctly, but he knew all about carbondioxide net usage of the USA, in contrast to Al Gore.

:D Finally, I've found someone who understands...

There's also potentially severe economic affects that may have come into play by signing the Kyoto Protocol... or so I've heard...

Infarction 503 Posting Virtuoso

I think you might have to do something about taking the repeater and finding the label in its children or something... I had a problem like this once, but I don't quite remember what I did...

Infarction 503 Posting Virtuoso

Yes, especially in the English department. ".. needs to be scrapped and rebuilt".

It's been a loooong week... my speech is about as bad as my spelling too, maybe even worse... :'(

joshSCH commented: haha.. it's cool man ;) +12
Infarction 503 Posting Virtuoso

Like a lot of things in our government, it needs to be scrapped and rebuild. Properly.

Infarction 503 Posting Virtuoso

Try setting the font-color to black when you set enabled to false. :icon_wink:

Infarction 503 Posting Virtuoso

it sets endwait to be the current clock() value (presumably a timestamp) + a time to wait. It then goes into an empty loop until the clock() value becomes equal to endwait, at which point it exits the loop and continues. This technique is also known as a spinlock (link goes into some detail, certainly not required reading :icon_wink:)

Infarction 503 Posting Virtuoso

Most, if not all, professional programmers refuse to use the goto statement, and most companies will not allow it. If you are just learning programming for yourself and for the fun of it then by all means do whatever you want. But if you ever intend to make programming a profession then learn the best forms of coding and what to stay away from. Never use goto and never use void main(). Learn that now the right way and you won't have to unlearn it later in a couple years or so.

Not all professionals refuse to use goto, or else the Linux kernel stopped being updated some while back. Goto sometimes is very useful; just because it's hard to use properly doesn't mean it should never be used. Personally, I'll probably not come across a need to use one in the next several years, if ever. On the other hand, there's surely some other professional programmers that use them regularly, especially in embedded systems or low-level code. void main() on the other hand has no supporting arguments (the only one I can think of - "it saves keystrokes" - is also inaccurate).

Infarction 503 Posting Virtuoso

I don't know. But most here will tell you to never use void main()

They'll probably tell you to never use goto as well, but that doesn't mean you should just listen to them. Find out why, and then do what is best; and yes, the popular opinion can be wrong sometimes.

main() is a special function that, as mentioned, returns to the OS a value signifying if it completed successfully or not (0 being success, any other being typically an error). The OS usually doesn't act on that, but other programs waiting for yours might. The C and C++ standards have specified that main() should return an int-compatible type (which void is not). So, there's both technical and conventional reasons why you should not use void.

Infarction 503 Posting Virtuoso

The EULA for WinXP only allows you to install it on a certain number of machines (2 IIRC but I could be mistaken). That said, for your programming it's a toss up. I find that a Linux distro is great for C, whereas C# could be a pain. If you stick with Windows though, you can use VC# express, which is a pretty nice IDE. I don't know how well VC++ express would suit your needs for C though (I haven't even used it for several years...)

Infarction 503 Posting Virtuoso

works fine on mine (Vista, 2.0.0.5)

Infarction 503 Posting Virtuoso

I don't know that it'd be the most efficient, but you could save the Excel document as XML and use that as a data source on your website. You could then set up permissions to edit the XML data through a web interface. Like I said, this might not be the best way, but it should be functional.

Infarction 503 Posting Virtuoso

>my server has SCSI disks and they are called SDx
I forgot about SCSI. But IDE and SATA both use hdx.

My SATA showed up as sda back when I had Linux on it...

Infarction 503 Posting Virtuoso

Wow, I missed out on a bit of the thread :(

Everyone here seems to want to "over clock" their cpu. How and why do you overclock? The cpu that I have picked out runs at 3.2 ghz, I don't think I would want it any faster if it means a shorter life span. A duo core cpu would jax the price up a bit from what I was looking at.

A 3.2GHz processor really isn't all that great anymore. I've got one. My dual core system runs circles around it. Seriously, get a dual core machine. It's really not that much more expensive, especially if the prices you quoted were accurate. It'll be a faster chip too, so in a simplified manner it'll be like having 2 faster ones instead.

Iv heard people overclocking low end intel core 2 duos to over 3 ghz!

The Core 2 is stable up to 4GHz on air cooling according to Wikipedia. It surely has hella fans on it, but still...

Yea, intel has always run their processors at really high clock-speeds.. but they are inefficient, and operating at those speeds does not really give them much of an advantage..

I'm assuming that "always" refers to the P4 and P-D lines. The P4 took a very complicated design with a ton of pipeline stages, allowing the clock speed to increase. The design was much more inefficient though, especially if branch prediction went wrong. The Pentium M and later (including Core …

Infarction 503 Posting Virtuoso

On 32-bit stuff (which is most everything still) the Core 2 blows AMD out of the water last I checked. It also comes with a price tag to match. There aren't a lot of 64-bit benchmarks, so comparing the two at that level is tough; easier to say that they're probably about equal. Power consumption (and thus heat) for each brand is now comparable (early Athlons were very hot, and then Pentium 4 chips were pretty bad as well).

AMD has a reputation for being more friendly for over-clocking, but that's your call. The Core 2 Extreme (which is priced at like $1000?) is supposed to be one of the best CPUs for overclocking, but it costs as much as an entire system. Personally, I don't overclock my stuff. I like to get as much life out of 'em as possible...

Infarction 503 Posting Virtuoso

almost all mobos have thermal cutoffs now, so the temperature throttling shouldn't be a big deal. And most OSs also use dynamic throttling to keep pace with actualy CPU usage, so having a heat problem would probably mean you need to fix your ventilation.

Infarction 503 Posting Virtuoso

I'm not a fan at all of Pentium 4 chips. They had high clock speeds but relatively poor performance and high energy usage. Get a newer chip, and one with 2 cores. An Athlon X2 3800+ is also about $75 on newegg and you can find a comparable motherboard to fit it.

Infarction 503 Posting Virtuoso

My total was right about $450

Infarction 503 Posting Virtuoso

I just built a cheap box to run Vista on a couple weeks ago. I was on a tight budget so I stuck with a AMD Athlon64 X2 3800+, 2GB of RAM, and an ASUS M2NPV-VM motherboard. Don't know how the mobo shapes up on reviews, but it's working just fine. I've even got mine just using shared memory for video, which saves the cost of a graphics card, and the mobo has 2 IDE buses and 4 SATA ports. It's also got an AM2 socket, so there's room can upgrade the processor later if you feel like it, and a PCI-E x16 if you want to throw a GPU in. I put a 400W power supply in, just to be on the save side. For the case, PSU, mobo, CPU, and RAM I spent under $500, and carried over two HDDs and a DVD-burner from another computer.

If you're not concerned with cost, look into getting an Intel Core 2 Duo, but I've not looked into parts for those at all (like I said, I was on a budget).

As to CPU cooling, you'll want to use whatever comes with your new processor. Usually different sockets have the fan mount differently, and most processors come with the proper fan, so why not use the proper piece?

Infarction 503 Posting Virtuoso

I'd guess that it's due to how floating point values are stored imprecisely in memory, causing the weird results to come up on rare occasions.

Infarction 503 Posting Virtuoso

The new version of Office has a file format using XML. Vista itself has very little to do with XML, and it's certainly not based on it.

Infarction 503 Posting Virtuoso

I'd say to just keep writing code for now, when you get to the 4-year school they'll have plenty of resources. You might consider reading a couple books on algorithms or software development, and try applying those concepts on your own projects (algorithms would probably apply more, depending on what you're writing).

Infarction 503 Posting Virtuoso

i live in canada and over here we pay like 1 dollar

... per litre. Volume is important for comparing prices. :P

Infarction 503 Posting Virtuoso

I'm thinking about actually getting a hybrid for my next car. Although a lot of people say it's the same. You pay a couple thousand more on the car because it's a hybrid but you would be paying that amount anyway a year for gas. I don't know though.

I remember someone saying at one point that it took like 5-8 years for a hybrid to break even (the extra cost up front vs. the savings on gas). Of course, gas was cheaper then, but it still holds some small amount of truth.

Infarction 503 Posting Virtuoso

Yes, the use of & is optional in this case. Similarly, when calling the function *foo() and foo() will also be the same.

Infarction 503 Posting Virtuoso

I don't see the word screen anywhere in his post...

Infarction 503 Posting Virtuoso

Canadian dollars are not the equivalent of American dollars.

Anymore, they're not too far off though. A lot of the difference is probably due to the different methods of taxation, with possibly a little bit due to the good ol' days where the US dollar went a lot further...

Infarction 503 Posting Virtuoso

Don't complain. Up here, the dollar/gallon works out to be around $3.80 USD. Fortunately, diesel is usually about 25 cents cheaper than gasoline.

Yeah, the last time I went on a fishing trip up to Canada, we were paying a little over $4/gal as I recall. Of course, it was a pretty secluded region, but still very expensive.

Infarction 503 Posting Virtuoso

Used to be here, but it's actually more expensive now. Silly, because diesel is cheaper to manufacture and diesel cars get [typically] extremely good mileage.

Infarction 503 Posting Virtuoso

Prices here in and around Seattle tend to be about $3.45/gal for regular grade (89 octane IIRC).

As to the pricing, there are costs for refining, adding additives, and distributing the product, but the costs at the pump don't ever seem to waver with the price of oil very much. I can't remember who said it, but someone put it best saying that the price of oil is down, but the gas stations won't know about it for 6 months.

Btw, I've been told that California and Washington have such strict emissions laws so as to require extra-refined gasoline, which raises the costs a little bit more for us.

Infarction 503 Posting Virtuoso

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 [code] and [/code] tags when posting code excerpts.

The problem is on this line: area = sqrt(s(s-a)(s-b)(s-c)); You have to use * to multiply things. If you just have the parentheses, the compiler thinks you're trying to call a function. And for sqrt, put #include <cmath> at the top of your file.

Infarction 503 Posting Virtuoso

Different solution using stringstreams:

#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;
}
Infarction 503 Posting Virtuoso

If you're copying something, you need to allocate memory and then copy the appropriate values in. When dealing with strings, however, there's several library functions that'll help you along the way:

char* a = "hello world";
char* b;
b = strdup(a); // allocates and makes a copy of a
// ...
free(b);
Infarction 503 Posting Virtuoso

No, drivers ed was about $300 through my school. They stopped offering it a year later, so my sister had to pay $450 to go to another place.

Infarction 503 Posting Virtuoso

4th? Wow, you're lucky. :) I've only had one car, but I will be getting a new one on my 18th birthday. (I'm quite excited)... =p

Lucky? Maybe. I had to pay for everything car related (drivers ed, car, car insurance, etc...), and they weren't the nicest cars in the parking lot. I started with an '86 Toyota Tercel station wagon bought from a co-worker, then a '95 Ford Escort bought at an auction, then a '92 Nissan 240SX (sweet car if I'd been able to sink money into it) from a neighbor, and just recently a '97 VW Jetta (only because the 240SX was wrecked).

Definitely puts a different spin on it when you have to pay for everything though :icon_wink:

Infarction 503 Posting Virtuoso

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 T-boned when I had an obvious right of way - I was turnin left into a parking lot, and this gal was turning left out of it). On the other hand, I almost freak out when I'm riding with most any of my friends driving, speeding or not. Inexperience is probably the largest part of it, and it helps that I'm the only one of my friends that has actually owned their own vehicle (they all borrow their parents' cars on occasion; I'm on my 4th car :P).

Unfortunately, the only way to cure inexperience is to, well, get experience. On the other hand, there's also a lot of people who do things without considering the possible circumstances. I still make stupid decisions here and there, I'm just lucky enough to have not had an accident from it.

I will also note that, after a couple speeding tickets, my driving has been mostly tamed. :P