EMBEDDED SYSTEM2008. 5. 13. 19:40
#mount –t nfs ip_addr_of_host:/export target_mnt_point –o nolock
Posted by young.h.rhie
Dev Tool Tips/C/C++2008. 5. 13. 19:36
#define PRINTOUT(x) printf("string to print is " #x "\n")

#x means x -> "x"
Posted by young.h.rhie
EMBEDDED SYSTEM2008. 5. 13. 19:33
# /sbin/flashcp -v /tmp/imagefile.img /dev/mtd0
Posted by young.h.rhie
EMBEDDED SYSTEM2008. 5. 13. 19:32
# dd if=/dev/mtd0 of=imagefile.img

Posted by young.h.rhie
Tips/PDA Tips2008. 5. 13. 19:31
[HKEY_LOCAL_MACHINE] -> [SOFTWARE] -> [Microsoft] -> [Today] -> [Items]  아래에 있는 각 항목의 Order 부분에 있는 숫자를 변경하면 된다.

각 항목끼리 숫자는 중복될 수 있다.
Posted by young.h.rhie
Tips/LINUX2008. 5. 1. 12:54
$ find ./ -mtime 0

해설
-mtime은 modified time을 의미하고 그 다음에 나오는 숫자를 n이라고 하면 n*24 시간 전을 의미한다. 그러니까 n은 날짜로 생각하면 된다.

추가로 예를 들면,

-mtime -5 지난 5일전부터 지금까지 수정된 파일
-mtime 5 오일전에 수정된 파일
-mtime +5 지난 5일 이전에 수정된 파일

과 같이 +, -를 활용할 수 있다.
Posted by young.h.rhie
Tips/LINUX2008. 5. 1. 12:52

mount -t cifs //192.168.1.10/share /mnt/smb -o username=Administrator,password=xxxx

Posted by young.h.rhie
Tips/LINUX2008. 5. 1. 11:52

1. Read data from /dev/fb0
  [15bit]  raw15toraw24 < /dev/fb0 > raw24.tmp
  [16bit]  raw16toraw24 < /dev/fb0 > raw24.tmp
  [24bit]  cat /dev/fb0 > raw24.tmp
  [32bit]  raw32toraw24 < /dev/fb0 > raw24.tmp

2. Raw Data to ppm
rawtoppm 800 600 raw24.tmp > ppm24.tmp

3. ppm to png
 pnmtopng <ppm24.tmp >screenshot.png

Posted by young.h.rhie
Tips/APPs TIPs2008. 5. 1. 11:51
alias svndiff='svn diff --diff-cmd /usr/bin/diff -x -uwbB'
Posted by young.h.rhie
Tips/APPs TIPs2008. 2. 16. 00:47
HOW TO MERGE MULTIPLE BLANK LINES
-------------------------------------------------
blank.pl

#!/usr/bin/perl
$/ = "";
print <>;


-----------------------------------------

awk 1 RS= ORS="\n\n" srcFileName > destFileName


Posted by young.h.rhie