Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×

Submission + - Free Win7 Phone for MS employees 1

anonymous writes: i just got an email sent to every MS employees. it says free win7 phone for everyone.

Comment Re:#include "less.h" (Score 2, Informative) 390

vim already does exactly this. http://vim.wikia.com/wiki/Modeline_magic

it looks like this. (ts = tabstop, sw=shiftwidth) // vim: noai:ts=4:sw=4
      -or- /* vim: noai:ts=4:sw=4
*/
      -or- /* vim: set noai ts=4 sw=4: */
      -or- /* vim: set fdm=expr fde=getline(v\:lnum)=~'{'?'>1'\:'1': */

so using your example: /* MS_VC_INTENT=2; MS_VC_TAB=4 */

if you put on top of your file, // vim: set tabstop=4 shiftwidth=2

then vim will do the correct thing.

Comment Re:Is that why (Score 4, Informative) 711

how did this get modded up? this is misinformation.

du(1) man page (snow leopard):
          -H Symbolic links on the command line are followed, symbolic links
                          in file hierarchies are not followed.

          -h "Human-readable" output. Use unit suffixes: Byte, Kilobyte,
                          Megabyte, Gigabyte, Terabyte and Petabyte.

df(1) man page (snow leopard):
          -H "Human-readable" output. Use unit suffixes: Byte, Kilobyte,
                          Megabyte, Gigabyte, Terabyte and Petabyte in order to reduce the
                          number of digits to three or less using base 10 for sizes.

          -h "Human-readable" output. Use unit suffixes: Byte, Kilobyte,
                          Megabyte, Gigabyte, Terabyte and Petabyte in order to reduce the
                          number of digits to three or less using base 2 for sizes.

this is exactly same output as man pages fro those two in FreeBSD 6.1

this is man page from debian linux:
              -h, --human-readable
                            print sizes in human readable format (e.g., 1K 234M 2G)

              -H, --si
                            likewise, but use powers of 1000 not 1024

so it seems to me that behavior of darwin is exactly same as gnu tools.

Slashdot Top Deals

For God's sake, stop researching for a while and begin to think!

Working...