Search Results - JustLinux Forums


Search:

Type: Posts; User: debiandude

Page 1 of 20 1 2 3 4

Search: Search took 0.20 seconds.

  1. Replies
    2
    Views
    778

    Its pretty much the same thing. if(...

    Its pretty much the same thing.



    if( $option == 1) {
    print "Stuff";
    } elsif ( $option == 2) {
    print "Different Stuff";
    } else {
    print "None stuff";
  2. Thread: Ruby Help

    by debiandude
    Replies
    2
    Views
    616

    Wow if it wasn't for that email thing I don't...

    Wow if it wasn't for that email thing I don't think i would have every seen this. If been gone for a while from LNO, seems kinda wierd, when did they chnage the BB system?

    Oh and thanks...
  3. Replies
    7
    Views
    765

    Why were you explicitaly callind std:: ? This...

    Why were you explicitaly callind std:: ?

    This compiles fine and runs, no errors.



    #include <iostream>
    using namespace std;

    int Add (int x, int y)
  4. Thread: Ruby Help

    by debiandude
    Replies
    2
    Views
    616

    Ruby Help

    Im trying to work with ruby. It seems pretty cool so far, but I am having a little trouble.

    Let say I have a string "ABCDE" and I want it to print out the ascii number values of it like 65,66...
  5. Replies
    8
    Views
    1,152

    Well if speed is reason enough for you then the...

    Well if speed is reason enough for you then the concatenation operation is faster.

    that is
    $string1 .= $string2;

    is faster than

    $string1 = "$string1$string2";

    first since it's in...
  6. Replies
    8
    Views
    1,152

    Okay thats fine and good that you want to stick...

    Okay thats fine and good that you want to stick to what you wrote becuase it works. However that is the WORST resason I have ever heard for using something.

    I mean for instance I have


    ...
  7. Replies
    8
    Views
    1,152

    Perl has a special operator for this, the dot,...

    Perl has a special operator for this, the dot, '.' operator.

    So to concat you just do:

    $string1 .= $string2;
  8. Replies
    14
    Views
    1,716

    I should note that chaning is not of dire need...

    I should note that chaning is not of dire need because even though searching though the list for an item to update is at worst n, n has yet to be very large. However, if it ever does get very big...
  9. Replies
    14
    Views
    1,716

    Woah. Thanks for all the input so far. I still...

    Woah. Thanks for all the input so far. I still havn't decied on what I'm going to do, but I am leaning to change it to a binary tree.

    Oh and someone asked if this was for school, its not its for...
  10. Replies
    14
    Views
    1,716

    A double linked list is a structure that has...

    A double linked list is a structure that has pointers to both the next and previous members.

    so member b would have a pointer to its previous a and to its next c. Its a long chain. A binary...
  11. Replies
    14
    Views
    1,716

    Yeah its C and a doubly linked list. What your...

    Yeah its C and a doubly linked list. What your asking me to do is create a binary tree or something. That seems a little overkill. I just want a little bit better of a way they going through the...
  12. Replies
    14
    Views
    1,716

    Searching linked lists

    Any one know of a good method to search through a linked list. Right now Im doing it linearly and I can't think of a way to make it faster.
  13. Replies
    8
    Views
    897

    What your doing IMO sounds like a bad idea. ...

    What your doing IMO sounds like a bad idea. First it forces some one who is looking at your code to WTF, becuase well macro definitions do not change (well except in your case). Just use the...
  14. Hey TLD. This one is actually pretty simple. ...

    Hey TLD. This one is actually pretty simple.

    Enjoy!



    #!/usr/bin/perl -w
    #
    use strict;
    use File::Find;
  15. Replies
    3
    Views
    721

    Yeah, that what the code I posted does, you feed...

    Yeah, that what the code I posted does, you feed it a list.
  16. Replies
    3
    Views
    721

    If you write it like this, you feed it a list...

    If you write it like this, you feed it a list like machine1 machine2 and it will do each individually.

    However if you just want it to get it for all machines you will need to do a broadcast...
  17. Replies
    5
    Views
    612

    Also try: use Data: :Dumper; and then do...

    Also try:
    use Data: :Dumper;

    and then do print Dumper \@array;

    Its maybe can help you debug.
  18. Replies
    5
    Views
    612

    When you pass several arrays to a subroutine,...

    When you pass several arrays to a subroutine, Perl creates one list in @_. There is no possibility to determine which elements are from which array. If you need these informations, you can pass...
  19. Replies
    8
    Views
    660

    I know I know. I have this bad habit of assuming...

    I know I know. I have this bad habit of assuming that everyone know whats going on in my head. Funny thing is half the time I don't even know whats going on up there ;-)
  20. Replies
    8
    Views
    660

    See but I couldn't just call waitpid becuase I...

    See but I couldn't just call waitpid becuase I wouldn't be able to execute other things in the mean time. What I did was set up a signal cather to SIGCHLD and interupt what ever Im doing.
  21. Replies
    8
    Views
    660

    Thanks, SIGCHLD was exactly it. Grazie!

    Thanks, SIGCHLD was exactly it. Grazie!
  22. Replies
    8
    Views
    660

    fork question

    Im writing a timer program. However I need to know if my child finishes exiting and quits. Is there a signal I could listen to that tells me the process has quit?
  23. Replies
    5
    Views
    626

    Perl has an argument array to :-) ...

    Perl has an argument array to :-)



    #!/usr/bin/perl -w

    use strict;

    unless(open FILE, shift @ARGV) {
    die "Cannot open file: !$\n";
  24. Replies
    7
    Views
    697

    const char blarg

    const char blarg
  25. Replies
    1
    Views
    489

    Mail server question

    Right now I own two domains. So I have both of those domains MX records set to my box. And I am able to get my mail, however when I connect to them to get my mail I always get the email for both...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4