December 2011
1 post
AMI with EBS volume
select source AMI and launch Instance (AWS console->IMAGES->AMIs)
create volume and attach to running Instance (AWS console->ELASTIC BLOCK STORE->Volumes)
associate EIP and ssh login
mkfs.ext3 /dev/sdf
mkdir /mnt/ebs
mount /dev/sdf /mnt/ebs
rsync -a -d -p -x —exclude /root/.bash_history —exclude /etc/ssh/ssh_host_* —exclude /etc/ssh/moduli...
November 2011
2 posts
#insanity
어중이 떠중이들이 RESTful API랍시고 enterprise integration에 마구 사용하고 있다. 더 웃긴건… 별로 RESTful하지도 않다.
Even the simplest jokes are based on tiny twinges of fear.
– Kurt, A man without a country
October 2011
1 post
동네 카페바바 라떼가 이천원인데? 커피는 사천원짜린데 아줌마들 시끄러워서 마이너스 이천원. 합리적인 가격이네.
September 2011
1 post
August 2011
7 posts
아이에게 혼자만의 세계가 생겼다.
아빠, 나 혼자 놀게 나가줄래?
July 2011
1 post
June 2011
2 posts
May 2011
6 posts
오늘의 미션
케이블TV를 켰다. 광고시간. 오늘의 미션은 ‘손님상 쉽게 차리기’. 어제도 같은 미션이었다.
매일 같은 미션. 누구나 똑같구나.
알기 쉬운 설명
마누라가 ‘지랄 총량의 법칙’에 대해 알기 쉽게 설명해 주었다. ‘당신은 틀림없이 모범생이었을거야’
선인장
선인장의 가시는 건조한 환경을 견디기 위해 변형된 것이다. 그리고 선인장은 분명 당신이 굳이 사막에까지 와서 가시에 찔리게 될거라고는 생각하지 못했던 것일 뿐이다.
April 2011
3 posts
보르헤스 패러디
절묘하신 신의 조화를 보라. 나에게 휴일과 장대비를 동시에 주시다니!
March 2011
14 posts
넌 뭘 할 수 있는데?
죽어라 일하기 싫어하는 사람들과 꾸역꾸역 지내야 하는 곳이 아니라면, 내가 해야 하는 일은 무엇일까? 내가 할 수 있는 일은? 그보다, 하고 싶은 일이 있긴 한거야?
불 폭풍으로 인해 엿기름 시럽 공장은 없어져 버렸다. 모든 것이 사라져 버리고 지하실만 남아 있었다. 그런데 그 지하실에는 13만 5천여명이...
– 내 영혼의 밤, 서문 - 보니거트
Maverick에 VirtualBox 준비
$ sudo vi /etc/apt/sources.list
deb http://download.virtualbox.org/virtualbox/debian maverick contrib non-free
$ wget http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc
$ sudo apt-key add oracle_vbox.asc
$ sudo apt-get update
$ sudo apt-get install virtualbox-4.0
Windows 7 PAE
bcdedit /set pae forceenable
특별한 변화는 못 느끼겠음. 페이징을 크게 할 수 있는 효과밖에 없는건가?
Android stdio 로그 보기
adb shell stop
adb shell setprop log.redirect-stdio true
adb shell start
NAT simulation finally
Full cone
iptables -t nat POSTROUTING -o $EXTIF -p tcp --sport $P -j SNAT --to-source 192.168.2.170
iptables -t nat POSTROUTING -o $EXTIF -p udp --sport $P -j SNAT --to-source 92.168.2.170
iptables -t nat PREROUTING -i $EXTIF -p tcp --dport $P -j DNAT --to-destination 10.0.0.1
iptables -t nat PREROUTING -i $EXTIF -p udp --dport $P -j DNAT --to-destination 10.0.0.1
Address restricted
#...
How to write iptables rule →
이게 좀 낫구나.
Software NAT for development and test →
그런데 mapping behavior는 어떻게 컨트롤하지?
dnsmasq setup for test
Don’t edit /etc/hosts any more.
$ apt-get install dnsmasq
$ vi /etc/dnsmasq.conf
interface=lo # self-service
bind-interface # multi-tier service
$ vi /etc/dnsmasq.d/fakedomain.net
address=/fakedomain.net/127.0.0.1
$ service dnsmasq restart
$ vi /etc/resolv.conf
nameserver 127.0.0.1
$ host fakedomain.net
fakedomain.net has address 127.0.0.1
작지만 유용한 erlang 매크로
Proplist는 매우 편리한 파라메터 사용 방식인데 보통 이런 식이다.
foo(Props) ->
Value = proplist:get_value(key, Props, "default"),
io:format("~p~n", [Value]).
그런데 OTP를 하다보면 모듈의 init/1 콜백에서 proplist를 받은 다음, 값을 하나하나 꺼내서 미리 정의한 레코드를 채운 후에 모듈 내부에서는 레코드만 사용하는 경우가 많다. 이런 식으로.
-behavior(gen_server).
-record(state, {name, age}).
init(Props) ->
State = #state{name = proplists:get_value(name, Props, ""),
...
사라진 시간 →
부제가 허언이 아닌 걸작. 조금이라도 내용을 쓰면 스포일러가 되어버리지 않을 수 없다. 어차피 구할 수 없을테니 문제가 안되려나?
개인용 클라우드 솔루션 →
C/C++ 프로그램을 병렬 처리
절묘하신 신의 솜씨를 보라!
기막힌 아이러니로
내게 책과 어둠을 동시에 주시다니!
- 보르헤스
February 2010
1 post
January 2010
2 posts
Reading: The 4-Hour Work Week: http://bit.ly/8lvY8p #4HWW #TimFerriss
– kworthington
Facebook joins Apache Foundation →
Apache platinum sponsor: Microsoft, Yahoo, Google
Apache gold sponsor: IBM, Facebook