- Upvotes Received
- 2
- Posts with Upvotes
- 1
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
- PC Specs
- Linux
13 Posted Topics
Re: It would be better to let the shell expand the tilda by removing the quotes or use $HOME with double quotes, because awk probably doesn't expand a tilda. | |
Re: I don't understand what we're trying to do here. Is it a macho thing? Do we want to show that were's so masochistic that we can write our programs directly in binary? Or is there some specific binary data that needs to be put in a file for which no … | |
Re: Firefox 3.6? That's interesting for two reasons. One, he didn't say just say Firefox--he specified a particular version of Firefox. Two, the version he specified is old. I wonder if this was an old conversation or if he really meant 3.6. | |
Re: I dislike working with floating point numbers too, but this looks like a case where they would make sense. Alternately, you could get slightly better results by moving the 100 multiplier in front so your intermediate value doesn't dip to zero. (100 * (voltage - 3000) / 1200) | |
Re: Of course you can. Declare the array parameter as a pointer to void, add a parameter that tells the function what the type is, use the type parameter in a switch statement or if-then-elses, and cast the array parameter appropriately in each case. The afforementioned qsort function is only slight … | |
Re: Some compilers check the types of printf()'s arguments against the types in the format string and give an error or warning message if they don't match. That's always a good feature to enable, if it's available. But assuming you're not compiling this for something like an 8051 microcontroller, the *bf2* … | |
Re: for FILE in *; do NEWFILE="${FILE%.*}_DEFAULT.${FILE##*.}" mv "$FILE" "$NEWFILE" mkdir -p "$FILE" mv "$NEWFILE" "$FILE" done | |
Re: The short answer to your question is that you define *cmd* like this: `cmd="something "\" something"` You can't put quotes inside of quotes like that. Use single quotes. Also the backslash is a special character. You can probably fix that by doubling it `'\'`, but since you're passing it through … | |
Re: You could use the [b]find[/b] command. [code]find . -maxdepth 1 -type f ! -uid 0[/code] The period specifies the current directory. [U]-maxdepth 1[/U] prevents it from looking into subdirectories. [U]-type f[/U] returns only regular files [U]! -uid 0[/U] returns only files that do not belong to root | |
Re: It looks variables [B]s[/B] and [B]sop[/B] are declared in the header file, pro_cons.h, and that header file is included in three source files. So all three files have there own copies of those two variables. That means that functions [B]wait()[/B] and [B]signal()[/B] always use their file's copy of those variables … | |
Re: Well, think about what a disk drive does. Actually, the way you've stated it, you need to decide how literally to take the assignment. I see two different interpretations. It probably means to simulate a file system which uses the disk drive. File systems allow files to be opened (and … | |
Re: [QUOTE=ioiinc;1198251]I would like to know if anyone knows the date that asselin.com was aquired by Hover. Also, who started asselin.com and where would I go to find out this information.[/QUOTE] Those answers are in the [url=http://www.internic.net/whois.html]InterNIC Whois database[/url]. I'm not sure why you're getting such a hard time about your … | |
Hi everyone, I support myself developing C/C++ on embedded platforms. [I]Embedded[/I] means there is typically no user interface, or only a limited one, like a few buttons and LEDs. Also, embedded processor are often very limited in power and resources. I particularly enjoy solving asynchronous interaction issues, e.g. passing control … |
The End.