Search:

Type: Posts; User: falconindy; Keyword(s):

Page 1 of 10 1 2 3 4

Search: Search took 0.19 seconds.

  1. Replies
    45
    Views
    7,337

    Beginner's Programming Challenge #12

    Beginner Programming Challenge #12

    Welcome to the 12th Beginner Programming Challenge! As I was selected the winner of Challenge #11, I've been tasked with presenting a new challenge!

    If you...
  2. Replies
    90
    Views
    11,506

    Re: Beginner Programming Challenge #11

    Fun fun. I'll poke around and see if I can't find something fitting by the end of the day.

    edit: it's up! Enjoy!
  3. Replies
    8
    Views
    1,968

    [SOLVED] Re: GCC Auto Casting?

    It doesn't give an error, but compiled with -Wall, you would see a warning about what you're trying to do with printf. The token '%d' expects an int. If you need decimal precision in your output, use...
  4. Replies
    4
    Views
    359

    Re: Who owns The Most Servers?

    the answare is unintelligible when the image is that small.

    http://www.intac.net/a-comparison-of-dedicated-servers-by-company_2010-04-13/

    Doesn't surprise me, given that their business is all...
  5. Replies
    7
    Views
    5,427

    [SOLVED] Re: GCC warnings about data type value ranges

    I think the point was to explicitly overflow the data type, the OP was "correct" in his assignments.
  6. Replies
    7
    Views
    5,427

    [SOLVED] Re: GCC warnings about data type value ranges

    I could be mistaken, here but... Whole number literals are assumed to be of type int. If you use a cast in your third example, the compiler shuts up.

    In the 4th case, -1 can be adequately...
  7. Replies
    3
    Views
    255

    Re: shell script problem

    Running 'echo $?' twice will give you a success. The first time you run it, it really does recall the last error message. You'd be solving the chicken and the egg problem otherwise -- how can 'echo...
  8. Replies
    3
    Views
    255

    Re: shell script problem

    What are you expecting to happen? The variable $? holds the exit code of the last run program.
  9. Replies
    90
    Views
    11,506

    Re: Beginner Programming Challenge #11

    Submitting a partial rewrite that uses only stack allocated memory and has some mild improvements/fixes. I don't really consider myself a beginner in programming, but I'm still pretty green when it...
  10. [ubuntu] Re: capturing ALL output from terminal to file

    Probably means he had an idea and then realized it wouldn't work. There's no way to delete a post on these forums.

    'script' might do what you want.
  11. Replies
    17
    Views
    1,461

    [ubuntu] Re: Can you run two sets of RAID 1 mirrored?

    There's definitely monitoring tools available that can alert you if a drive is failing. The tools I'm familiar with are command line based and just send mail. I'm not aware of GUI based utils, but...
  12. Re: Create array consisting of each character in a string

    Unless there's some way to abuse the IFS to split unconditionally on anything, I think the sed solution may be the most concise.

    On the other hand, you're essentially creating an array in your...
  13. Replies
    17
    Views
    1,461

    [ubuntu] Re: Can you run two sets of RAID 1 mirrored?

    The LVM suggestion was nothing but a suggestion. Figured I'd let you know it's out there.

    I'm not sure why you have any doubts as to your hardware supporting it when its strictly a software based...
  14. Replies
    17
    Views
    1,461

    [ubuntu] Re: Can you run two sets of RAID 1 mirrored?

    That's fine, except you can't partition a raid device like you can a regular block device. I would suggest using LVM on top of the RAID-1 partition. This allows you to resize partitions on the fly...
  15. Replies
    20
    Views
    1,262

    Re: Help me decode this.

    If you keep saying it, maybe someone will believe you.

    http://www.fashion-res.com/EX/10-09-17/sense-this-picture-makes-none.thumbnail.jpg

    In the future, I'd recommend avoiding the use of the...
  16. Replies
    17
    Views
    1,461

    [ubuntu] Re: Can you run two sets of RAID 1 mirrored?

    I know Ubuntu enjoys keeping around every last kernel it ever found, but 500mb is enormous for a boot partition. 50mb is a little too small, but 100mb is more than sufficient. Regardless, a /boot...
  17. Re: How to switch XServer with console command / XLib ?

    Look at XOpenDisplay(3).
  18. Replies
    9
    Views
    3,851

    Re: How to use dmalloc?

    Aha. How often I forget Ubuntu enjoys splitting packages.
  19. Replies
    17
    Views
    1,461

    [ubuntu] Re: Can you run two sets of RAID 1 mirrored?

    Yeah fair enough. I thought you might be interested in using Ext3 and that sketch ext3fs driver for Windows. "Sandboxing" Vista in a 80gb partition and leaving the rest for RAID sounds fine to me.
    ...
  20. Replies
    17
    Views
    1,461

    [ubuntu] Re: Can you run two sets of RAID 1 mirrored?

    If you use software RAID, you won't be able to access those drives (safely) from Windows.

    Google returns this when searching for 'ubuntu mdadm'. It's a fairly simple process, you just need to be...
  21. Re: compare a variable to a list and exit on fail

    Interesting. Works fine from a prompt with -q, but not from a script.
  22. Replies
    90
    Views
    11,506

    Re: Beginner Programming Challenge #11

    Your entry exits as soon as its starts. Changing your while loop in main() to a do/while fixes that.

    Two cents: While commenting is valuable, I believe that comments should answer the question...
  23. Replies
    9
    Views
    3,851

    Re: How to use dmalloc?

    To locate a file:

    sudo updatedb
    locate dmalloc.h
    The first command is run nightly via cron, but you may as well make sure that your DB is up to date before searching. It *should* be installed to...
  24. Replies
    90
    Views
    11,506

    Re: Beginner Programming Challenge #11

    Late entry in C. I didn't do the advertised extra credit, but I added the ability to change the precision of the output by entering :N as a token, where N is the number of decimal places shown....
  25. Replies
    17
    Views
    1,461

    [ubuntu] Re: Can you run two sets of RAID 1 mirrored?

    Sure, you'll end up with a /dev/md0 and /dev/md1.
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4