2012년 8월 21일 화요일

Regular expression

The regular expression is very useful, however, it makes me have a headache.

Below sites are useful to verify or study the reg exp.

http://gskinner.com/RegExr/

http://www.gethifi.com/tools/regex

2012년 2월 17일 금요일

llvm Kaleidoscope ch3

I have been studying llvm in following http://llvm.org/docs/tutorial/LangImpl3.html.

In compiling example on ch3, i met below errors.


ch3.cpp:401:18: error: no matching member function for call to 'CreateCall'
  return Builder.CreateCall(CalleeF, ArgsV, "calltmp");

ch3.cpp:406:22: error: no matching constructor for initialization of
      'std::vector<Type *>'
  std::vector<Type*> Doubles(Args.size(),Type::getDoubleTy(getGlobalContext()));
                     ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

solution
--------------------------------------------------------

 return Builder.CreateCall(CalleeF, ArgsV.begin(), ArgsV.end(), "calltmp"); 

 std::vector<const Type *> Doubles(Args.size(), Type::getDoubleTy(getGlobalContext()));


2012년 2월 14일 화요일

llvm-gcc: invalid bitcode signature

ubuntu 11.10
llvm and llvm-gcc have been installed by ubuntu package ( apt-get install llvm llvm-gcc ). 
llvm-2.8 or llvm-2.9 and llvm-gcc-4.5 were tested.

llvm-gcc hello.c -> ok.
llvm -gcc -O3 -emit-llvm hello.c -c -o hello.b-> ok
but
lli hello.bc -> error : invalid bitcode signature 
In googling, I found below, but it was not useful.

There are two solution.

1. build all of things on your PC not packages, llvm and llvm-gcc. 

2. using llvm-clang , I chosen this option. 
apt-get insatll llvm-clang
llvm-clang ........ -> it's still ok !.


2011년 11월 7일 월요일

Flash-Aware RAID Techniques

Flash-Aware Raid Techniques for Dependable and High-Performance Flash Memory SSD


IEEE Transactions on Computers, page 80~92, 2011
Soojun Im : Sungkyunkwan Univ.
Dongkun Shin : Sungkyunkwan Univ.


Conclusion

•Efficient RAID techniques for reliable flash memory SSDs
–The delayed parity update technique
•Reduces the number of flash memory write operations
–The partial parity caching technique
•Exploits the implicit redundant data of flash memory
•Reduce the number of read operations required to calculate the parity
•Reduce GC overheads in flash memory

2011년 11월 4일 금요일

source insight in linux

How to use source insight in linux??

OS : ubuntu 11.04

download source insight
http://sourceinsight.com

trial 30 days or something :)

apt-get install wine
or
install using synaptics

chmod +x sourceinsight.exe

right click on incon of sourceinsight.exe

run on wine !!

how to add file
z: is root directory (/)

enjoy source insight on Linux~~~~


2011년 9월 28일 수요일

동성동본 혼인 신고

검색에 속지 말고 한방에 가는 동성동본 혼인신고 ^^

동성동본에서 의미있는 관계는 부계 모계 즉 어머니 아버지 쪽으로 8촌이내를 말한다.

와이프와 어머니가 동성동본이기 때문에 혼인 신고 전 열심히 구글링을 하였는데

어디 속시원하게 설명한 곳이 없었음.

신빙성 있어보이는 사이트에서 얻은 결과는 혼인신고와 부부가 8촌에 속하지 않는다는 확인서를 제출해야 한다였다.

두 서류를 들고 와이프와 구청에 가서 신고 하려 하니 담당자가 확인서에 대한 언급조차 없더라는 ㅎㅎ.. 낚였음..-> (http://root.or.kr/root/d11.htm)

혼인신고 양식에 보면 아래 동성동본에 8촌이내이냐? 라는 질문이 있는데 단순히 아님이라고 하면 모든 절차가 끝난다.

괜히 이상한테 낚이지 말고 혼인신고 양식만 출력해서 아는 것만 채우고 증인 2명 정보 적은 후

신분증 들고 와이프와 구청으로 갑시다 ~~

시청, 동사무소 머 이런데 안됩니다. ~~

혼인신고 절차 전자정부 안내, 신청서를 누르면 양식 다운됨
http://www.egov.go.kr/main?a=AA020InfoCappViewApp&HighCtgCD=A01004&CappBizCD=12700000050

2011년 9월 19일 월요일