Programming Forums
User Name Password Register
 

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

Showing results 1 to 40 of 149
Search took 0.02 seconds.
Search: Posts Made By: L7Sqr
Forum: Ruby Aug 9th, 2008, 11:04 AM
Replies: 7
Views: 182
Posted By L7Sqr
Re: Ruby syntax is hard to digest

There is definitely a jump from one style to another. However, I came from a C background and eased right in to Ruby. I liked the fact that 'everything was an object'. I like its dynamic nature. I...
Forum: C++ Aug 5th, 2008, 6:14 AM
Replies: 5
Views: 174
Posted By L7Sqr
Re: Function templates...

I dont think that templates are going to help you here.
What you are doing is trying to return multiple different values/types from the same function. void will never be a bool will never be a...
Forum: Python Jul 21st, 2008, 11:29 AM
Replies: 10
Views: 384
Posted By L7Sqr
Re: python vs ruby?

I understand what you are saying. You are missing the point.
If Python has the best GUI toolkit and library base but you dont undertand (or cant use) the tools then they are useless to you.
You have...
Forum: Python Jul 21st, 2008, 6:03 AM
Replies: 10
Views: 384
Posted By L7Sqr
Re: python vs ruby?

You are asking the wrong questions. Ruby/Python/C/Assembly dont excel in anything. They just are. Some things are easier done with one than another. However, if you are more comfortable with C and...
Forum: C++ Jul 17th, 2008, 1:11 PM
Replies: 11
Views: 460
Posted By L7Sqr
Re: Which programming language would you recommend/learn first?

The perl community started something called 'perl quiz of the week' a while back which does a quiz a week on random topics. Im not too familiar with the rules of that, but the ruby community does a...
Forum: Other Programming Languages Jul 10th, 2008, 4:23 PM
Replies: 7
Views: 215
Posted By L7Sqr
Re: Yet another "I don't know which language I should choose"

Shove some of your funding the CS departments way. That would probably save you money and time.
Forum: C++ Jul 10th, 2008, 5:50 AM
Replies: 11
Views: 460
Posted By L7Sqr
Re: Which programming language would you recommend/learn first?

Agreed. But, that doesnt change the fact that _people_ have different preferences. ;)
Forum: C++ Jul 9th, 2008, 6:46 PM
Replies: 11
Views: 460
Posted By L7Sqr
Re: Which programming language would you recommend/learn first?

Unless, of course, you migrate across editors :P
I was a TA for an algorithm course that used python exclusively. No other class did I hate to grade projects for more than that class. Each editor...
Forum: C++ Jul 9th, 2008, 6:02 AM
Replies: 11
Views: 460
Posted By L7Sqr
Re: Which programming language would you recommend/learn first?

Personally, I learned C first - I mean really learned it. I was using malloc/free to manage my own memory, using function pointers to do callback routines, networking and IPC, and pthreads to do...
Forum: Coder's Corner Lounge Mar 18th, 2008, 12:23 PM
Replies: 25
Views: 749
Posted By L7Sqr
Re: 500 Ways to Cause An Error

18) Introduce it to management
(This *definitely* qualifies under: 'general potential to cause havoc')
Forum: C Mar 12th, 2008, 6:26 AM
Replies: 15
Views: 731
Posted By L7Sqr
Re: Causing a Seg Fault on Purpose

#include <signal.h>

/* ... */

raise (SIGSEGV);
Forum: C Mar 3rd, 2008, 4:41 PM
Replies: 2
Views: 161
Posted By L7Sqr
Re: if and else statements

You have a couple of problems with the code you are using. I have bolded a couple of areas in your example that you should look at.

main should always be declared as returning an int. You declare it...
Forum: Coder's Corner Lounge Oct 25th, 2005, 9:47 PM
Replies: 71
Views: 1,558
Posted By L7Sqr
Make's it tough to do anything worth getting shot...

Make's it tough to do anything worth getting shot over :D
Forum: C Oct 25th, 2005, 8:45 AM
Replies: 5
Views: 242
Posted By L7Sqr
May I suggest the use of the strtol function as a...

May I suggest the use of the strtol function as a replacement?
It has better error checking and is more robust in general.

Things that might come in handy in the future.
Forum: Coder's Corner Lounge Oct 24th, 2005, 11:06 PM
Replies: 111
Views: 2,635
Posted By L7Sqr
Come on, isnt that the one you wrote? No fair. :p

Come on, isnt that the one you wrote?
No fair. :p
Forum: Coder's Corner Lounge Oct 24th, 2005, 10:28 PM
Replies: 71
Views: 1,558
Posted By L7Sqr
Sorry guys, had to vote no. The woman by my side...

Sorry guys, had to vote no.
The woman by my side for the past 6 years is a stylist (yes, hair dresser to some, but she charges much more ;))
She can complete any cryptogram and does her crosswords in...
Forum: C++ Oct 22nd, 2005, 11:33 PM
Replies: 53
Views: 1,491
Posted By L7Sqr
There's quite a bit of C++ to understand. The...

There's quite a bit of C++ to understand.
The answer to your question depends, really, on what you want to do.
Are you going to be working mostly with text processing? Then I would suggest you...
Forum: Coder's Corner Lounge Oct 22nd, 2005, 11:25 PM
Replies: 9
Views: 254
Posted By L7Sqr
Tab completion is gone :( Cant open a browser...

Tab completion is gone :(
Cant open a browser either ;) Although that would have been interesting.
Forum: C++ Oct 19th, 2005, 5:53 PM
Replies: 11
Views: 379
Posted By L7Sqr
sleep Sleep usleep others I'm sure depends on...

sleep
Sleep
usleep
others I'm sure

depends on your systema and goals
Forum: C++ Oct 17th, 2005, 9:59 PM
Replies: 15
Os
Views: 358
Posted By L7Sqr
@DaWei I understand that, especially on...

@DaWei
I understand that, especially on proprietary embedded systems, you may design any implementation necessary to complete the task. Often the cost of molding something new to fit your needs is...
Forum: C++ Oct 17th, 2005, 8:08 PM
Replies: 15
Os
Views: 358
Posted By L7Sqr
With the number (and variety) of OS' out there,...

With the number (and variety) of OS' out there, do you think there is even reason nowadays to design a new one?
What would be the purpose/advantage not provided by an already reliable source?

Don't...
Forum: Coder's Corner Lounge Oct 10th, 2005, 10:18 PM
Replies: 75
Views: 1,971
Posted By L7Sqr
Yeah, try binary 4 with ten fingers :D

Yeah, try binary 4 with ten fingers :D
Forum: Coder's Corner Lounge Oct 10th, 2005, 12:19 PM
Replies: 75
Views: 1,971
Posted By L7Sqr
Marriages would be arranged by online...

Marriages would be arranged by online questionaires determining compatability and divorces would only happen when a larger company bought the rights to the questionaire and redesigned it.

In the...
Forum: Coder's Corner Lounge Oct 10th, 2005, 11:59 AM
Replies: 34
Views: 856
Posted By L7Sqr
LOL, probably couldn't read the name on the door...

LOL, probably couldn't read the name on the door either...
Man do I love to hear stories like that, reminds me how close to reality Dilbert & Office Space really is. :D


My favorite enviornment is...
Forum: C++ Oct 2nd, 2005, 12:08 AM
Replies: 9
Views: 222
Posted By L7Sqr
No need for appology. To tell you the truth, with...

No need for appology.
To tell you the truth, with all the currents', nexts', firsts' and lasts' I was kinds spinning myself. It's hard to pluralise items in a sentence that contains singular items...
Forum: C++ Oct 1st, 2005, 11:50 PM
Replies: 9
Views: 222
Posted By L7Sqr
No. currents->nexts points to NULL, that is the...

No. currents->nexts points to NULL, that is the terminating case.

@JessehK
Your print statement is never being reached.
You are doing some funky stuff in your appendnumber function...
You are always...
Forum: C++ Oct 1st, 2005, 11:13 PM
Replies: 9
Views: 222
Posted By L7Sqr
Consider this for a moment... You are telling the...

Consider this for a moment...
You are telling the computer to move to the next node (regardless of it validity) and then (without checking the validity) dereference that node.
When that node is NULL,...
Forum: Other Programming Languages Sep 30th, 2005, 5:20 PM
Replies: 5
Views: 212
Posted By L7Sqr
If you want to check that the string contains...

If you want to check that the string contains ONLY letters, you could use isalpha (#include <cctype>) and a loop.
To search for a particular string, the std::string has plenty of search routines,...
Forum: Coder's Corner Lounge Sep 30th, 2005, 12:51 PM
Replies: 47
Views: 1,094
Posted By L7Sqr
About three and 1/2 years ago, I hurt my back (I...

About three and 1/2 years ago, I hurt my back (I was in construction). So it was time to go back to school. I took an intro programming class as one of my electives. I took to it pretty well (it was...
Forum: C++ Sep 29th, 2005, 11:45 PM
Replies: 11
Views: 354
Posted By L7Sqr
first you have to know its number.... (sorry, I...

first you have to know its number....
(sorry, I couldnt resist)

Your question is not very descriptive...
Do you mean from within you program, via a pipe, or just plain 'how do I execute my compiled...
Forum: C++ Sep 29th, 2005, 9:25 AM
Replies: 28
Views: 722
Posted By L7Sqr
Not true. I would like to see a section of code...

Not true.
I would like to see a section of code that demonstrates this, if you have an example in mind....



If you are working on a system where an integer/boolean flag is too 'heavy' you will...
Forum: C++ Sep 28th, 2005, 11:17 AM
Replies: 28
Views: 722
Posted By L7Sqr
As mentioned by others in this forum, the use of...

As mentioned by others in this forum, the use of a goto indicates a design flaw in the code. If you feel that the a goto is the only way to get to a position, your code could use some refactoring.
Forum: C++ Sep 27th, 2005, 10:46 PM
Replies: 5
Views: 243
Posted By L7Sqr
c'mon, push_front and node *next... I would never...

c'mon, push_front and node *next... I would never have thought to use them. I think Narue has a valid gripe here....
Forum: C++ Sep 24th, 2005, 10:17 PM
Replies: 4
Views: 210
Posted By L7Sqr
After looking into it, alarm (standard library...

After looking into it, alarm (standard library call) is depreciated. getitimer/setitimer are the replacements. However, threads seem to be a better idea here as catching the signal wouldnt do too...
Forum: C++ Sep 24th, 2005, 3:31 PM
Replies: 4
Views: 210
Posted By L7Sqr
You could look into alarm But I believe that that...

You could look into alarm
But I believe that that has a granularity of seconds....
You might look into a seperate thread to signal the funtion upon a timeout...
Forum: C++ Sep 24th, 2005, 2:47 PM
Replies: 27
Views: 906
Posted By L7Sqr
What about 'ioctl' My boss says "eye owe kottle",...

What about 'ioctl'
My boss says "eye owe kottle", although, I've never heard another way of saying it.

Also, the program 'ethereal'.
"ether real" OR "e thee ree al"
Forum: C++ Sep 23rd, 2005, 6:39 AM
Replies: 4
Views: 200
Posted By L7Sqr
A base class also becomes useful when building...

A base class also becomes useful when building tree-like structures.
Suppose you want to build a tree of objects and each object will be somewhat different from the others, but you want them in the...
Forum: C++ Sep 23rd, 2005, 6:09 AM
Replies: 10
Views: 352
Posted By L7Sqr
To address the first issue: You need to output a...

To address the first issue:
You need to output a backspace character each time you want to 'rotate' the bar. I think the backspace is \b, but not sure.
Notice that if you are not preforming any...
Forum: C++ Sep 23rd, 2005, 6:04 AM
Replies: 12
Views: 304
Posted By L7Sqr
x is pointing at nothing. How exactly do you...

x is pointing at nothing.
How exactly do you expect to advance 'points' places past nothing?
When you say x = 0, you are making x NULL. If you then try to dereference that NULL pointer (as you do in...
Forum: C++ Sep 22nd, 2005, 2:24 PM
Replies: 11
Views: 284
Posted By L7Sqr
Agreed. It just seemed to me like you had a...

Agreed.

It just seemed to me like you had a project in mind, with particular specs, and you just expected to have a workable solution plopped in your lap. Don't get me wrong, I see that you are...
Showing results 1 to 40 of 149

 
Forum Jump



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

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