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...
Type: Posts; User: falconindy; Keyword(s):
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...
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!
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...
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...
I think the point was to explicitly overflow the data type, the OP was "correct" in his assignments.
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...
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...
What are you expecting to happen? The variable $? holds the exit code of the last run program.
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...
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.
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...
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...
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...
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...
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...
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...
Look at XOpenDisplay(3).
Aha. How often I forget Ubuntu enjoys splitting packages.
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.
...
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...
Interesting. Works fine from a prompt with -q, but not from a script.
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...
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...
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....
Sure, you'll end up with a /dev/md0 and /dev/md1.