Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 40 of 105
Search took 0.02 seconds.
Search: Posts Made By: Nuticulus
Forum: Coder's Corner Lounge Jul 1st, 2005, 3:49 PM
Replies: 26
Views: 740
Posted By Nuticulus
Holy crap that's sly. I kicked myself when I got...

Holy crap that's sly. I kicked myself when I got it.
Forum: C Jul 1st, 2005, 2:13 PM
Replies: 7
Views: 505
Posted By Nuticulus
Wait a moment, wasn't it you who made the thread...

Wait a moment, wasn't it you who made the thread about using pre-incrementation as opposed to post incrementation? Just nitpicking :P

But anyway the code is a perfectly fine substitute for using...
Forum: C Jun 29th, 2005, 7:41 AM
Replies: 10
Views: 380
Posted By Nuticulus
Like posts above, I recommend you use time.h....

Like posts above, I recommend you use time.h. It's full of functions for getting the time. Here's a reference. (http://www.cplusplus.com/ref/ctime/) Nice and simple.

If you need microseconds, you...
Forum: Coder's Corner Lounge Jun 27th, 2005, 7:17 AM
Replies: 21
Views: 460
Posted By Nuticulus
I'd agree with rory here. If you can get a...

I'd agree with rory here. If you can get a prepackaged system (normally intended for educational purposes) then it could make your simple programming a lot easier. Bear in mind how simple this gets...
Forum: Coder's Corner Lounge Jun 27th, 2005, 7:10 AM
Replies: 10
Views: 284
Posted By Nuticulus
What program was it, may I ask? I'm just vaguely...

What program was it, may I ask? I'm just vaguely interested.

I don't know if it's a great achievement to crack an MSIL program. It's an intermediary language, right? Like Java bytecode. So is it as...
Forum: Coder's Corner Lounge Jun 20th, 2005, 2:51 PM
Replies: 19
Views: 412
Posted By Nuticulus
<3 Pizentios' avatar. </3 your...

<3 Pizentios' avatar.

</3 your avatar.

WINNAR!
Forum: Coder's Corner Lounge Jun 20th, 2005, 2:49 PM
Replies: 101
Views: 2,052
Posted By Nuticulus
I bugger off from PFO for a week or two and I...

I bugger off from PFO for a week or two and I come back to find this! Pah! You, you... smelly poo poo head! In a not un-French way, I fart in your general direction!

I'm appalled that you hurl...
Forum: Coder's Corner Lounge Jun 12th, 2005, 2:46 PM
Replies: 24
Views: 551
Posted By Nuticulus
I use kwrite. Pweeety syntax highlighting. In...

I use kwrite. Pweeety syntax highlighting.

In windows I develop C/C++ code with the MSVC++ IDE, I use dreamweaver for PHP work, and I use textpad/SCiTE for other things.
Forum: C Jun 8th, 2005, 11:52 AM
Replies: 26
Views: 991
Posted By Nuticulus
Just to note, that code's a bit inefficient. You...

Just to note, that code's a bit inefficient. You only need the one value of i to populate your little array, like this:
char myChars[52];
int i;
for(i=0;i<26;++i)
{
myChars[i] = 65 + i;
myChars[i+26]...
Forum: C Jun 8th, 2005, 11:45 AM
Replies: 28
Views: 981
Posted By Nuticulus
Err, oops, I forgot to multiply by 4 (the size of...

Err, oops, I forgot to multiply by 4 (the size of an int on a 32 bit system) on my calculator. Silly me.

I won't correct my post because it'll make you look silly. But the actual figure of memory it...
Forum: Coder's Corner Lounge Jun 8th, 2005, 11:26 AM
Replies: 53
Views: 1,299
Posted By Nuticulus
If you're talking about converting english text...

If you're talking about converting english text into code for a program, then it's been done before (or is being in the process of being done). I remember it was slashdotted, but I too can't remember...
Forum: Coder's Corner Lounge Jun 8th, 2005, 11:09 AM
Replies: 2
Views: 141
Posted By Nuticulus
Yeah, why don't you multiply it by...

Yeah, why don't you multiply it by 0.175...

Using a DB like MySQL would probably be overkill for this -- but if you want, it might make things a little easier. You could use a plain flat file...
Forum: Coder's Corner Lounge Jun 8th, 2005, 9:06 AM
Replies: 29
Views: 599
Posted By Nuticulus
I don't mind the slightly saucy avatars some...

I don't mind the slightly saucy avatars some people have. It doesn't bother me at all. I don't really care what's in an avatar.

The only gripe I would have with turning off avatars would be the...
Forum: C++ Jun 8th, 2005, 8:56 AM
Replies: 11
Views: 396
Posted By Nuticulus
Store the first working directory in a buffer...

Store the first working directory in a buffer somewhere (using getcwd), then later, after you've chdir()'d all over the place, chdir() back to the initial value stored from getcwd.

That's under...
Forum: C Jun 7th, 2005, 5:00 PM
Replies: 28
Views: 981
Posted By Nuticulus
Whoa, you've got oodles of memory used up there....

Whoa, you've got oodles of memory used up there. Dear god I hope you remember to free. Just as an example, for a volume that's 2048*1024*16, you use up 32MB of RAM, which is pretty big to eat up in...
Forum: Coder's Corner Lounge Jun 6th, 2005, 2:39 PM
Replies: 53
Views: 1,299
Posted By Nuticulus
Ahh, now this is much more the kind of open ended...

Ahh, now this is much more the kind of open ended challenge that I was wanting when uman opened up his challenge. Something to make life easier... nope, I'm out of ideas.
Forum: C Jun 6th, 2005, 2:32 PM
Replies: 2
Views: 435
Posted By Nuticulus
Surely you could use popen()? It'd probably...

Surely you could use popen()? It'd probably reduce the amount of code required to do the task. Just man popen for more information on how it works.

With a more hacked idea, I suppose you could...
Forum: Coder's Corner Lounge Jun 5th, 2005, 3:04 PM
Replies: 24
Views: 368
Posted By Nuticulus
Probably to start posting more again....

Probably to start posting more again. :P

Hopefully we'll all be using at least 64bit systems by 2010. 32 bit is so old, now.
Forum: Coder's Corner Lounge Jun 5th, 2005, 3:01 PM
Replies: 39
Views: 704
Posted By Nuticulus
Agreed, cat.shoot() seems backwards. Although, in...

Agreed, cat.shoot() seems backwards. Although, in IR's avatar, it's completely apt.

Why are we talking about the most semantically correct way to implement shooting a cat in C++?
Forum: C Jun 5th, 2005, 10:58 AM
Replies: 11
Views: 376
Posted By Nuticulus
Actually, a RFC on the IRC protocol can be found...

Actually, a RFC on the IRC protocol can be found here (http://www.irchelp.org/irchelp/rfc/rfc.html). It has some pseudo regular expressions there too to explain how it's formatted. Quite...
Forum: C++ Jun 5th, 2005, 5:12 AM
Replies: 32
Views: 877
Posted By Nuticulus
Those blocks are aligned horribly. It makes it...

Those blocks are aligned horribly. It makes it really annoying to read. You should really adopt a method of indentation and stick to it. Normally, I go for something like this:
while(condition)
{
...
Forum: C Jun 5th, 2005, 5:03 AM
Replies: 15
Views: 783
Posted By Nuticulus
Why do people always assume that reinstalling...

Why do people always assume that reinstalling Windows will fix everything? If he's recently reinstalled his OS, I don't think he needs to go and wipe it /again/. I don't know what the source of his...
Forum: Coder's Corner Lounge Jun 4th, 2005, 11:05 AM
Replies: 39
Views: 704
Posted By Nuticulus
You make kitty...

You make kitty scared!

http://img.photobucket.com/albums/v231/neogamer_101/76073999.jpg
Forum: Coder's Corner Lounge Jun 4th, 2005, 6:26 AM
Replies: 39
Views: 704
Posted By Nuticulus
Well this is a silly thread....

Well this is a silly thread. :P

slap(uman);
while(!uman.sober)
uman.sleep(3600);


Hrm, maybe Ooble's real life code was written by Microsoft?
Forum: Coder's Corner Lounge Jun 4th, 2005, 6:24 AM
Replies: 34
Views: 1,200
Posted By Nuticulus
This sounds like a bit of a waste of time. If you...

This sounds like a bit of a waste of time. If you win, you get to spend more of your time judging more work! Yay! If you don't, you just spent your weekend writing something that's no use to you and...
Forum: C Jun 4th, 2005, 6:12 AM
Replies: 16
Views: 528
Posted By Nuticulus
Grumpy, you confuse me slightly. In your steps,...

Grumpy, you confuse me slightly. In your steps, you add x to each angle (shifting the range 0 to 360 to 0+x to 360+x), then average all the angles, and subtract x. If you think about this, it doesn't...
Forum: C Jun 4th, 2005, 4:48 AM
Replies: 16
Views: 528
Posted By Nuticulus
Firstly, you need to work out a set system. Will...

Firstly, you need to work out a set system. Will you be using only unsigned floats (0 to 360), or will angles be represented as signed floats (-180 to +180)? You have to decide. I'm guessing that the...
Forum: Coder's Corner Lounge Jun 3rd, 2005, 9:23 AM
Replies: 10
Views: 228
Posted By Nuticulus
I'd probably go for 3 and 2. Although, to be...

I'd probably go for 3 and 2. Although, to be honest, the second list seems a lot less interesting ;p

I think you have to decide for yourself based on your own skills, interests and knowledge.
Forum: Coder's Corner Lounge Jun 3rd, 2005, 9:15 AM
Replies: 10
Views: 214
Posted By Nuticulus
I don't have a car. I'm not old enough to drive a...

I don't have a car. I'm not old enough to drive a car.

I'll just settle for this instead (http://www.albinoblacksheep.com/flash/dengdeng.php).
Forum: Coder's Corner Lounge Jun 3rd, 2005, 9:11 AM
Replies: 24
Views: 368
Posted By Nuticulus
/me stands up My name's Nuticulus, and I'm a PFO...

/me stands up

My name's Nuticulus, and I'm a PFO addict.
Forum: Coder's Corner Lounge Jun 3rd, 2005, 9:04 AM
Replies: 24
Views: 368
Posted By Nuticulus
He's making up for the lost posting time by...

He's making up for the lost posting time by posting at an increased speed now.

Scientists predict that Ooble's post count will no longer be able to be represented in a 32 bit integer by 2010. ;-P
Forum: Coder's Corner Lounge Jun 3rd, 2005, 9:02 AM
Replies: 32
Views: 603
Posted By Nuticulus
Nothing! Bwahahah. Just kidding. Right now, I'm...

Nothing! Bwahahah.

Just kidding. Right now, I'm wearing boxers and a dressing gown. It's unlikely I'll get dressed before 12 noon on a holiday. When I do get dressed, I wear normal pants and...
Forum: C++ Jun 3rd, 2005, 8:56 AM
Replies: 63
Views: 1,379
Posted By Nuticulus
Yes, they have code tags, but once you minimise...

Yes, they have code tags, but once you minimise the space it takes up, it's annoying to read the code because it's cramped into such a tiny space. So if there's a large wad of code to read through,...
Forum: C++ Jun 3rd, 2005, 8:43 AM
Replies: 7
Views: 286
Posted By Nuticulus
The program is doing exactly as it was instructed...

The program is doing exactly as it was instructed to do. An output file is created, and some stuff is written to it, neatly spaced out.

If you wanted to print this to the screen, you can remove the...
Forum: C++ Jun 3rd, 2005, 8:29 AM
Replies: 63
Views: 1,379
Posted By Nuticulus
Apologise/edit posts if you double post? ;-P If...

Apologise/edit posts if you double post? ;-P
If you have a load of code or something else paste (like a big quote), post it as an attachment to your post or put it in a nopaste. Noone likes...
Forum: C++ Jun 1st, 2005, 1:05 PM
Replies: 22
Views: 539
Posted By Nuticulus
I presume it's just habit. I agree totally with...

I presume it's just habit. I agree totally with Infinite Recursion on this too, though.

I doubt it really has that great an effect on efficiency, though. Unless you're writing something very...
Forum: C Jun 1st, 2005, 1:02 PM
Replies: 4
Views: 303
Posted By Nuticulus
Erm, evidently you haven't been reading on how to...

Erm, evidently you haven't been reading on how to operate it enough. Here's a handy tip: F1. (In case you were wondering, press it)

Running a programming in debug mode is the same as always. Press...
Forum: Coder's Corner Lounge Jun 1st, 2005, 11:13 AM
Replies: 21
Views: 467
Posted By Nuticulus
With programming excessively comes porn. And...

With programming excessively comes porn.

And with porn comes wrist strain.

That and you might get fired.
Forum: C++ Jun 1st, 2005, 7:27 AM
Replies: 21
Views: 586
Posted By Nuticulus
I'm sure you could use the STL vector class to...

I'm sure you could use the STL vector class to load them, then use the sort() function to sort them. I think it does it alphabetically. Google for C++ STL and you'll find some documentation on it.
Forum: Coder's Corner Lounge May 31st, 2005, 5:34 PM
Replies: 5
Views: 168
Posted By Nuticulus
Woo! Go Trogdor. Man I love Trogdor.

Woo! Go Trogdor.

Man I love Trogdor.
Showing results 1 to 40 of 105

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:22 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC